@teambit/env 1.0.434 → 1.0.436
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/env-template/public/{182.4b56f4a98d61e73e41dc.js → 182.6025f4d340e1e24111c9.js} +7 -7
- package/artifacts/env-template/public/{913.12f709dd4636a012899b.js → 499.f87818e0aacb56fa877f.js} +13 -13
- package/artifacts/env-template/public/{919.e5463517715f57f1f2d0.js → 583.1fa8c5d82fee9a310a45.js} +2 -2
- package/artifacts/env-template/public/assets-manifest.json +14 -14
- package/artifacts/env-template/public/{compositions.ce6e8c883bb663eadba5.js → compositions.dafd657715048ab44373.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.10f94ae83c7b58663fd7.js → overview.afef8d34d3c3c952f43a.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.22e62da5ba87e5a7adf7.js +1 -0
- package/artifacts/env-template/public/{preview-root.3aca86a1e06623470458.js → preview-root.8846359cf3a2456f796e.js} +1 -1
- package/artifacts/preview/teambit_envs_env-preview.js +1 -1
- package/artifacts/schema.json +19 -91
- package/{compositions-1729135308654.js → compositions-1729307922602.js} +1 -1
- package/dist/{preview-1729135308654.js → preview-1729307922602.js} +2 -2
- package/{overview-1729135308654.js → overview-1729307922602.js} +1 -1
- package/package.json +10 -10
- package/artifacts/env-template/public/peers.b8c21577c10bd4789a56.js +0 -1
package/artifacts/env-template/public/{919.e5463517715f57f1f2d0.js → 583.1fa8c5d82fee9a310a45.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[919],{6019:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{arrow:()=>arrow,autoPlacement:()=>v,autoUpdate:()=>N,computePosition:()=>z,detectOverflow:()=>s,flip:()=>b,getOverflowAncestors:()=>H,hide:()=>P,inline:()=>E,limitShift:()=>L,offset:()=>T,shift:()=>D,size:()=>k,useFloating:()=>useFloating});function t(t2){return t2.split("-")[0]}function e(t2){return t2.split("-")[1]}function n(e2){return["top","bottom"].includes(t(e2))?"x":"y"}function r(t2){return t2==="y"?"height":"width"}function i(i2,o2,a2){let{reference:l2,floating:s2}=i2;const c2=l2.x+l2.width/2-s2.width/2,f2=l2.y+l2.height/2-s2.height/2,u2=n(o2),m2=r(u2),g2=l2[m2]/2-s2[m2]/2,d2=u2==="x";let p2;switch(t(o2)){case"top":p2={x:c2,y:l2.y-s2.height};break;case"bottom":p2={x:c2,y:l2.y+l2.height};break;case"right":p2={x:l2.x+l2.width,y:f2};break;case"left":p2={x:l2.x-s2.width,y:f2};break;default:p2={x:l2.x,y:l2.y}}switch(e(o2)){case"start":p2[u2]-=g2*(a2&&d2?-1:1);break;case"end":p2[u2]+=g2*(a2&&d2?-1:1)}return p2}const floating_ui_core_browser_min_o=async(t2,e2,n2)=>{const{placement:r2="bottom",strategy:o2="absolute",middleware:a2=[],platform:l2}=n2,s2=await(l2.isRTL==null?void 0:l2.isRTL(e2));let c2=await l2.getElementRects({reference:t2,floating:e2,strategy:o2}),{x:f2,y:u2}=i(c2,r2,s2),m2=r2,g2={},d2=0;for(let n3=0;n3<a2.length;n3++){const{name:p2,fn:h2}=a2[n3],{x:y2,y:x2,data:w2,reset:v2}=await h2({x:f2,y:u2,initialPlacement:r2,placement:m2,strategy:o2,middlewareData:g2,rects:c2,platform:l2,elements:{reference:t2,floating:e2}});f2=y2??f2,u2=x2??u2,g2={...g2,[p2]:{...g2[p2],...w2}},v2&&d2<=50&&(d2++,typeof v2=="object"&&(v2.placement&&(m2=v2.placement),v2.rects&&(c2=v2.rects===!0?await l2.getElementRects({reference:t2,floating:e2,strategy:o2}):v2.rects),{x:f2,y:u2}=i(c2,m2,s2)),n3=-1)}return{x:f2,y:u2,placement:m2,strategy:o2,middlewareData:g2}};function a(t2){return typeof t2!="number"?function(t3){return{top:0,right:0,bottom:0,left:0,...t3}}(t2):{top:t2,right:t2,bottom:t2,left:t2}}function l(t2){return{...t2,top:t2.y,left:t2.x,right:t2.x+t2.width,bottom:t2.y+t2.height}}async function s(t2,e2){var n2;e2===void 0&&(e2={});const{x:r2,y:i2,platform:o2,rects:s2,elements:c2,strategy:f2}=t2,{boundary:u2="clippingAncestors",rootBoundary:m2="viewport",elementContext:g2="floating",altBoundary:d2=!1,padding:p2=0}=e2,h2=a(p2),y2=c2[d2?g2==="floating"?"reference":"floating":g2],x2=l(await o2.getClippingRect({element:(n2=await(o2.isElement==null?void 0:o2.isElement(y2)))==null||n2?y2:y2.contextElement||await(o2.getDocumentElement==null?void 0:o2.getDocumentElement(c2.floating)),boundary:u2,rootBoundary:m2,strategy:f2})),w2=l(o2.convertOffsetParentRelativeRectToViewportRelativeRect?await o2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g2==="floating"?{...s2.floating,x:r2,y:i2}:s2.reference,offsetParent:await(o2.getOffsetParent==null?void 0:o2.getOffsetParent(c2.floating)),strategy:f2}):s2[g2]);return{top:x2.top-w2.top+h2.top,bottom:w2.bottom-x2.bottom+h2.bottom,left:x2.left-w2.left+h2.left,right:w2.right-x2.right+h2.right}}const c=Math.min,f=Math.max;function u(t2,e2,n2){return f(t2,c(e2,n2))}const m=t2=>({name:"arrow",options:t2,async fn(i2){const{element:o2,padding:l2=0}=t2??{},{x:s2,y:c2,placement:f2,rects:m2,platform:g2}=i2;if(o2==null)return{};const d2=a(l2),p2={x:s2,y:c2},h2=n(f2),y2=e(f2),x2=r(h2),w2=await g2.getDimensions(o2),v2=h2==="y"?"top":"left",b2=h2==="y"?"bottom":"right",R2=m2.reference[x2]+m2.reference[h2]-p2[h2]-m2.floating[x2],A2=p2[h2]-m2.reference[h2],P2=await(g2.getOffsetParent==null?void 0:g2.getOffsetParent(o2));let T2=P2?h2==="y"?P2.clientHeight||0:P2.clientWidth||0:0;T2===0&&(T2=m2.floating[x2]);const O2=R2/2-A2/2,D2=d2[v2],L2=T2-w2[x2]-d2[b2],k2=T2/2-w2[x2]/2+O2,E2=u(D2,k2,L2),C2=(y2==="start"?d2[v2]:d2[b2])>0&&k2!==E2&&m2.reference[x2]<=m2.floating[x2];return{[h2]:p2[h2]-(C2?k2<D2?D2-k2:L2-k2:0),data:{[h2]:E2,centerOffset:k2-E2}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t2){return t2.replace(/left|right|bottom|top/g,t3=>g[t3])}function p(t2,i2,o2){o2===void 0&&(o2=!1);const a2=e(t2),l2=n(t2),s2=r(l2);let c2=l2==="x"?a2===(o2?"end":"start")?"right":"left":a2==="start"?"bottom":"top";return i2.reference[s2]>i2.floating[s2]&&(c2=d(c2)),{main:c2,cross:d(c2)}}const h={start:"end",end:"start"};function y(t2){return t2.replace(/start|end/g,t3=>h[t3])}const x=["top","right","bottom","left"],w=x.reduce((t2,e2)=>t2.concat(e2,e2+"-start",e2+"-end"),[]),v=function(n2){return n2===void 0&&(n2={}),{name:"autoPlacement",options:n2,async fn(r2){var i2,o2,a2,l2,c2;const{x:f2,y:u2,rects:m2,middlewareData:g2,placement:d2,platform:h2,elements:x2}=r2,{alignment:v2=null,allowedPlacements:b2=w,autoAlignment:R2=!0,...A2}=n2,P2=function(n3,r3,i3){return(n3?[...i3.filter(t2=>e(t2)===n3),...i3.filter(t2=>e(t2)!==n3)]:i3.filter(e2=>t(e2)===e2)).filter(t2=>!n3||e(t2)===n3||!!r3&&y(t2)!==t2)}(v2,R2,b2),T2=await s(r2,A2),O2=(i2=(o2=g2.autoPlacement)==null?void 0:o2.index)!=null?i2:0,D2=P2[O2];if(D2==null)return{};const{main:L2,cross:k2}=p(D2,m2,await(h2.isRTL==null?void 0:h2.isRTL(x2.floating)));if(d2!==D2)return{x:f2,y:u2,reset:{placement:P2[0]}};const E2=[T2[t(D2)],T2[L2],T2[k2]],C2=[...(a2=(l2=g2.autoPlacement)==null?void 0:l2.overflows)!=null?a2:[],{placement:D2,overflows:E2}],H2=P2[O2+1];if(H2)return{data:{index:O2+1,overflows:C2},reset:{placement:H2}};const B=C2.slice().sort((t2,e2)=>t2.overflows[0]-e2.overflows[0]),V=(c2=B.find(t2=>{let{overflows:e2}=t2;return e2.every(t3=>t3<=0)}))==null?void 0:c2.placement,F=V??B[0].placement;return F!==d2?{data:{index:O2+1,overflows:C2},reset:{placement:F}}:{}}}},b=function(e2){return e2===void 0&&(e2={}),{name:"flip",options:e2,async fn(n2){var r2;const{placement:i2,middlewareData:o2,rects:a2,initialPlacement:l2,platform:c2,elements:f2}=n2,{mainAxis:u2=!0,crossAxis:m2=!0,fallbackPlacements:g2,fallbackStrategy:h2="bestFit",flipAlignment:x2=!0,...w2}=e2,v2=t(i2),b2=g2||(v2===l2||!x2?[d(l2)]:function(t2){const e3=d(t2);return[y(t2),e3,y(e3)]}(l2)),R2=[l2,...b2],A2=await s(n2,w2),P2=[];let T2=((r2=o2.flip)==null?void 0:r2.overflows)||[];if(u2&&P2.push(A2[v2]),m2){const{main:t2,cross:e3}=p(i2,a2,await(c2.isRTL==null?void 0:c2.isRTL(f2.floating)));P2.push(A2[t2],A2[e3])}if(T2=[...T2,{placement:i2,overflows:P2}],!P2.every(t2=>t2<=0)){var O2,D2;const t2=((O2=(D2=o2.flip)==null?void 0:D2.index)!=null?O2:0)+1,e3=R2[t2];if(e3)return{data:{index:t2,overflows:T2},reset:{placement:e3}};let n3="bottom";switch(h2){case"bestFit":{var L2;const t3=(L2=T2.map(t4=>[t4,t4.overflows.filter(t5=>t5>0).reduce((t5,e4)=>t5+e4,0)]).sort((t4,e4)=>t4[1]-e4[1])[0])==null?void 0:L2[0].placement;t3&&(n3=t3);break}case"initialPlacement":n3=l2}if(i2!==n3)return{reset:{placement:n3}}}return{}}}};function R(t2,e2){return{top:t2.top-e2.height,right:t2.right-e2.width,bottom:t2.bottom-e2.height,left:t2.left-e2.width}}function A(t2){return x.some(e2=>t2[e2]>=0)}const P=function(t2){let{strategy:e2="referenceHidden",...n2}=t2===void 0?{}:t2;return{name:"hide",async fn(t3){const{rects:r2}=t3;switch(e2){case"referenceHidden":{const e3=R(await s(t3,{...n2,elementContext:"reference"}),r2.reference);return{data:{referenceHiddenOffsets:e3,referenceHidden:A(e3)}}}case"escaped":{const e3=R(await s(t3,{...n2,altBoundary:!0}),r2.floating);return{data:{escapedOffsets:e3,escaped:A(e3)}}}default:return{}}}}},T=function(r2){return r2===void 0&&(r2=0),{name:"offset",options:r2,async fn(i2){const{x:o2,y:a2}=i2,l2=await async function(r3,i3){const{placement:o3,platform:a3,elements:l3}=r3,s2=await(a3.isRTL==null?void 0:a3.isRTL(l3.floating)),c2=t(o3),f2=e(o3),u2=n(o3)==="x",m2=["left","top"].includes(c2)?-1:1,g2=s2&&u2?-1:1,d2=typeof i3=="function"?i3(r3):i3;let{mainAxis:p2,crossAxis:h2,alignmentAxis:y2}=typeof d2=="number"?{mainAxis:d2,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d2};return f2&&typeof y2=="number"&&(h2=f2==="end"?-1*y2:y2),u2?{x:h2*g2,y:p2*m2}:{x:p2*m2,y:h2*g2}}(i2,r2);return{x:o2+l2.x,y:a2+l2.y,data:l2}}}};function O(t2){return t2==="x"?"y":"x"}const D=function(e2){return e2===void 0&&(e2={}),{name:"shift",options:e2,async fn(r2){const{x:i2,y:o2,placement:a2}=r2,{mainAxis:l2=!0,crossAxis:c2=!1,limiter:f2={fn:t2=>{let{x:e3,y:n2}=t2;return{x:e3,y:n2}}},...m2}=e2,g2={x:i2,y:o2},d2=await s(r2,m2),p2=n(t(a2)),h2=O(p2);let y2=g2[p2],x2=g2[h2];if(l2){const t2=p2==="y"?"bottom":"right";y2=u(y2+d2[p2==="y"?"top":"left"],y2,y2-d2[t2])}if(c2){const t2=h2==="y"?"bottom":"right";x2=u(x2+d2[h2==="y"?"top":"left"],x2,x2-d2[t2])}const w2=f2.fn({...r2,[p2]:y2,[h2]:x2});return{...w2,data:{x:w2.x-i2,y:w2.y-o2}}}}},L=function(e2){return e2===void 0&&(e2={}),{options:e2,fn(r2){const{x:i2,y:o2,placement:a2,rects:l2,middlewareData:s2}=r2,{offset:c2=0,mainAxis:f2=!0,crossAxis:u2=!0}=e2,m2={x:i2,y:o2},g2=n(a2),d2=O(g2);let p2=m2[g2],h2=m2[d2];const y2=typeof c2=="function"?c2({...l2,placement:a2}):c2,x2=typeof y2=="number"?{mainAxis:y2,crossAxis:0}:{mainAxis:0,crossAxis:0,...y2};if(f2){const t2=g2==="y"?"height":"width",e3=l2.reference[g2]-l2.floating[t2]+x2.mainAxis,n2=l2.reference[g2]+l2.reference[t2]-x2.mainAxis;p2<e3?p2=e3:p2>n2&&(p2=n2)}if(u2){var w2,v2,b2,R2;const e3=g2==="y"?"width":"height",n2=["top","left"].includes(t(a2)),r3=l2.reference[d2]-l2.floating[e3]+(n2&&(w2=(v2=s2.offset)==null?void 0:v2[d2])!=null?w2:0)+(n2?0:x2.crossAxis),i3=l2.reference[d2]+l2.reference[e3]+(n2?0:(b2=(R2=s2.offset)==null?void 0:R2[d2])!=null?b2:0)-(n2?x2.crossAxis:0);h2<r3?h2=r3:h2>i3&&(h2=i3)}return{[g2]:p2,[d2]:h2}}}},k=function(n2){return n2===void 0&&(n2={}),{name:"size",options:n2,async fn(r2){const{placement:i2,rects:o2,platform:a2,elements:l2}=r2,{apply:c2,...u2}=n2,m2=await s(r2,u2),g2=t(i2),d2=e(i2);let p2,h2;g2==="top"||g2==="bottom"?(p2=g2,h2=d2===(await(a2.isRTL==null?void 0:a2.isRTL(l2.floating))?"start":"end")?"left":"right"):(h2=g2,p2=d2==="end"?"top":"bottom");const y2=f(m2.left,0),x2=f(m2.right,0),w2=f(m2.top,0),v2=f(m2.bottom,0),b2={availableHeight:o2.floating.height-(["left","right"].includes(i2)?2*(w2!==0||v2!==0?w2+v2:f(m2.top,m2.bottom)):m2[p2]),availableWidth:o2.floating.width-(["top","bottom"].includes(i2)?2*(y2!==0||x2!==0?y2+x2:f(m2.left,m2.right)):m2[h2])},R2=await a2.getDimensions(l2.floating);c2?.({...r2,...b2});const A2=await a2.getDimensions(l2.floating);return R2.width!==A2.width||R2.height!==A2.height?{reset:{rects:!0}}:{}}}},E=function(e2){return e2===void 0&&(e2={}),{name:"inline",options:e2,async fn(r2){var i2;const{placement:o2,elements:s2,rects:u2,platform:m2,strategy:g2}=r2,{padding:d2=2,x:p2,y:h2}=e2,y2=l(m2.convertOffsetParentRelativeRectToViewportRelativeRect?await m2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u2.reference,offsetParent:await(m2.getOffsetParent==null?void 0:m2.getOffsetParent(s2.floating)),strategy:g2}):u2.reference),x2=(i2=await(m2.getClientRects==null?void 0:m2.getClientRects(s2.reference)))!=null?i2:[],w2=a(d2),v2=await m2.getElementRects({reference:{getBoundingClientRect:function(){var e3;if(x2.length===2&&x2[0].left>x2[1].right&&p2!=null&&h2!=null)return(e3=x2.find(t2=>p2>t2.left-w2.left&&p2<t2.right+w2.right&&h2>t2.top-w2.top&&h2<t2.bottom+w2.bottom))!=null?e3:y2;if(x2.length>=2){if(n(o2)==="x"){const e5=x2[0],n2=x2[x2.length-1],r4=t(o2)==="top",i4=e5.top,a3=n2.bottom,l3=r4?e5.left:n2.left,s4=r4?e5.right:n2.right;return{top:i4,bottom:a3,left:l3,right:s4,width:s4-l3,height:a3-i4,x:l3,y:i4}}const e4=t(o2)==="left",r3=f(...x2.map(t2=>t2.right)),i3=c(...x2.map(t2=>t2.left)),a2=x2.filter(t2=>e4?t2.left===i3:t2.right===r3),l2=a2[0].top,s3=a2[a2.length-1].bottom;return{top:l2,bottom:s3,left:i3,right:r3,width:r3-i3,height:s3-l2,x:i3,y:l2}}return y2}},floating:s2.floating,strategy:g2});return u2.reference.x!==v2.reference.x||u2.reference.y!==v2.reference.y||u2.reference.width!==v2.reference.width||u2.reference.height!==v2.reference.height?{reset:{rects:v2}}:{}}}};function floating_ui_dom_browser_min_n(t2){return t2&&t2.document&&t2.location&&t2.alert&&t2.setInterval}function o(t2){if(t2==null)return window;if(!floating_ui_dom_browser_min_n(t2)){const e2=t2.ownerDocument;return e2&&e2.defaultView||window}return t2}function floating_ui_dom_browser_min_i(t2){return o(t2).getComputedStyle(t2)}function floating_ui_dom_browser_min_r(t2){return floating_ui_dom_browser_min_n(t2)?"":t2?(t2.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t2=navigator.userAgentData;return t2!=null&&t2.brands?t2.brands.map(t3=>t3.brand+"/"+t3.version).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t2){return t2 instanceof o(t2).HTMLElement}function floating_ui_dom_browser_min_f(t2){return t2 instanceof o(t2).Element}function floating_ui_dom_browser_min_s(t2){return typeof ShadowRoot>"u"?!1:t2 instanceof o(t2).ShadowRoot||t2 instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t2){const{overflow:e2,overflowX:n2,overflowY:o2}=floating_ui_dom_browser_min_i(t2);return/auto|scroll|overlay|hidden/.test(e2+o2+n2)}function floating_ui_dom_browser_min_d(t2){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t2))}function floating_ui_dom_browser_min_h(t2){const e2=/firefox/i.test(floating_ui_dom_browser_min_l()),n2=floating_ui_dom_browser_min_i(t2);return n2.transform!=="none"||n2.perspective!=="none"||n2.contain==="paint"||["transform","perspective"].includes(n2.willChange)||e2&&n2.willChange==="filter"||e2&&!!n2.filter&&n2.filter!=="none"}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t2,e2,n2){var i2,r2,l2,s2;e2===void 0&&(e2=!1),n2===void 0&&(n2=!1);const u2=t2.getBoundingClientRect();let d2=1,h2=1;e2&&floating_ui_dom_browser_min_c(t2)&&(d2=t2.offsetWidth>0&&floating_ui_dom_browser_min_m(u2.width)/t2.offsetWidth||1,h2=t2.offsetHeight>0&&floating_ui_dom_browser_min_m(u2.height)/t2.offsetHeight||1);const g2=floating_ui_dom_browser_min_f(t2)?o(t2):window,p2=!floating_ui_dom_browser_min_a()&&n2,w2=(u2.left+(p2&&(i2=(r2=g2.visualViewport)==null?void 0:r2.offsetLeft)!=null?i2:0))/d2,v2=(u2.top+(p2&&(l2=(s2=g2.visualViewport)==null?void 0:s2.offsetTop)!=null?l2:0))/h2,y2=u2.width/d2,x2=u2.height/h2;return{width:y2,height:x2,top:v2,right:w2+y2,bottom:v2+x2,left:w2,x:w2,y:v2}}function floating_ui_dom_browser_min_v(t2){return(e2=t2,(e2 instanceof o(e2).Node?t2.ownerDocument:t2.document)||window.document).documentElement;var e2}function floating_ui_dom_browser_min_y(t2){return floating_ui_dom_browser_min_f(t2)?{scrollLeft:t2.scrollLeft,scrollTop:t2.scrollTop}:{scrollLeft:t2.pageXOffset,scrollTop:t2.pageYOffset}}function floating_ui_dom_browser_min_x(t2){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t2)).left+floating_ui_dom_browser_min_y(t2).scrollLeft}function floating_ui_dom_browser_min_b(t2,e2,n2){const o2=floating_ui_dom_browser_min_c(e2),i2=floating_ui_dom_browser_min_v(e2),l2=floating_ui_dom_browser_min_w(t2,o2&&function(t3){const e3=floating_ui_dom_browser_min_w(t3);return floating_ui_dom_browser_min_m(e3.width)!==t3.offsetWidth||floating_ui_dom_browser_min_m(e3.height)!==t3.offsetHeight}(e2),n2==="fixed");let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if(o2||!o2&&n2!=="fixed")if((floating_ui_dom_browser_min_r(e2)!=="body"||floating_ui_dom_browser_min_u(i2))&&(f2=floating_ui_dom_browser_min_y(e2)),floating_ui_dom_browser_min_c(e2)){const t3=floating_ui_dom_browser_min_w(e2,!0);s2.x=t3.x+e2.clientLeft,s2.y=t3.y+e2.clientTop}else i2&&(s2.x=floating_ui_dom_browser_min_x(i2));return{x:l2.left+f2.scrollLeft-s2.x,y:l2.top+f2.scrollTop-s2.y,width:l2.width,height:l2.height}}function floating_ui_dom_browser_min_L(t2){return floating_ui_dom_browser_min_r(t2)==="html"?t2:t2.assignedSlot||t2.parentNode||(floating_ui_dom_browser_min_s(t2)?t2.host:null)||floating_ui_dom_browser_min_v(t2)}function floating_ui_dom_browser_min_R(t2){return floating_ui_dom_browser_min_c(t2)&&getComputedStyle(t2).position!=="fixed"?t2.offsetParent:null}function floating_ui_dom_browser_min_T(t2){const e2=o(t2);let n2=floating_ui_dom_browser_min_R(t2);for(;n2&&floating_ui_dom_browser_min_d(n2)&&getComputedStyle(n2).position==="static";)n2=floating_ui_dom_browser_min_R(n2);return n2&&(floating_ui_dom_browser_min_r(n2)==="html"||floating_ui_dom_browser_min_r(n2)==="body"&&getComputedStyle(n2).position==="static"&&!floating_ui_dom_browser_min_h(n2))?e2:n2||function(t3){let e3=floating_ui_dom_browser_min_L(t3);for(floating_ui_dom_browser_min_s(e3)&&(e3=e3.host);floating_ui_dom_browser_min_c(e3)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e3));){if(floating_ui_dom_browser_min_h(e3))return e3;e3=e3.parentNode}return null}(t2)||e2}function W(t2){if(floating_ui_dom_browser_min_c(t2))return{width:t2.offsetWidth,height:t2.offsetHeight};const e2=floating_ui_dom_browser_min_w(t2);return{width:e2.width,height:e2.height}}function floating_ui_dom_browser_min_E(t2){const e2=floating_ui_dom_browser_min_L(t2);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e2))?t2.ownerDocument.body:floating_ui_dom_browser_min_c(e2)&&floating_ui_dom_browser_min_u(e2)?e2:floating_ui_dom_browser_min_E(e2)}function H(t2,e2){var n2;e2===void 0&&(e2=[]);const i2=floating_ui_dom_browser_min_E(t2),r2=i2===((n2=t2.ownerDocument)==null?void 0:n2.body),l2=o(i2),c2=r2?[l2].concat(l2.visualViewport||[],floating_ui_dom_browser_min_u(i2)?i2:[]):i2,f2=e2.concat(c2);return r2?f2:f2.concat(H(c2))}function C(e2,n2,r2){return n2==="viewport"?l(function(t2,e3){const n3=o(t2),i2=floating_ui_dom_browser_min_v(t2),r3=n3.visualViewport;let l2=i2.clientWidth,c2=i2.clientHeight,f2=0,s2=0;if(r3){l2=r3.width,c2=r3.height;const t3=floating_ui_dom_browser_min_a();(t3||!t3&&e3==="fixed")&&(f2=r3.offsetLeft,s2=r3.offsetTop)}return{width:l2,height:c2,x:f2,y:s2}}(e2,r2)):floating_ui_dom_browser_min_f(n2)?function(t2,e3){const n3=floating_ui_dom_browser_min_w(t2,!1,e3==="fixed"),o2=n3.top+t2.clientTop,i2=n3.left+t2.clientLeft;return{top:o2,left:i2,x:i2,y:o2,right:i2+t2.clientWidth,bottom:o2+t2.clientHeight,width:t2.clientWidth,height:t2.clientHeight}}(n2,r2):l(function(t2){var e3;const n3=floating_ui_dom_browser_min_v(t2),o2=floating_ui_dom_browser_min_y(t2),r3=(e3=t2.ownerDocument)==null?void 0:e3.body,l2=floating_ui_dom_browser_min_p(n3.scrollWidth,n3.clientWidth,r3?r3.scrollWidth:0,r3?r3.clientWidth:0),c2=floating_ui_dom_browser_min_p(n3.scrollHeight,n3.clientHeight,r3?r3.scrollHeight:0,r3?r3.clientHeight:0);let f2=-o2.scrollLeft+floating_ui_dom_browser_min_x(t2);const s2=-o2.scrollTop;return floating_ui_dom_browser_min_i(r3||n3).direction==="rtl"&&(f2+=floating_ui_dom_browser_min_p(n3.clientWidth,r3?r3.clientWidth:0)-l2),{width:l2,height:c2,x:f2,y:s2}}(floating_ui_dom_browser_min_v(e2)))}function S(t2){const e2=H(t2),n2=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t2).position)&&floating_ui_dom_browser_min_c(t2)?floating_ui_dom_browser_min_T(t2):t2;return floating_ui_dom_browser_min_f(n2)?e2.filter(t3=>floating_ui_dom_browser_min_f(t3)&&function(t4,e3){const n3=e3.getRootNode==null?void 0:e3.getRootNode();if(t4.contains(e3))return!0;if(n3&&floating_ui_dom_browser_min_s(n3)){let n4=e3;do{if(n4&&t4===n4)return!0;n4=n4.parentNode||n4.host}while(n4)}return!1}(t3,n2)&&floating_ui_dom_browser_min_r(t3)!=="body"):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t2){let{element:e2,boundary:n2,rootBoundary:o2,strategy:i2}=t2;const r2=[...n2==="clippingAncestors"?S(e2):[].concat(n2),o2],l2=r2[0],c2=r2.reduce((t3,n3)=>{const o3=C(e2,n3,i2);return t3.top=floating_ui_dom_browser_min_p(o3.top,t3.top),t3.right=floating_ui_dom_browser_min_g(o3.right,t3.right),t3.bottom=floating_ui_dom_browser_min_g(o3.bottom,t3.bottom),t3.left=floating_ui_dom_browser_min_p(o3.left,t3.left),t3},C(e2,l2,i2));return{width:c2.right-c2.left,height:c2.bottom-c2.top,x:c2.left,y:c2.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t2){let{rect:e2,offsetParent:n2,strategy:o2}=t2;const i2=floating_ui_dom_browser_min_c(n2),l2=floating_ui_dom_browser_min_v(n2);if(n2===l2)return e2;let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if((i2||!i2&&o2!=="fixed")&&((floating_ui_dom_browser_min_r(n2)!=="body"||floating_ui_dom_browser_min_u(l2))&&(f2=floating_ui_dom_browser_min_y(n2)),floating_ui_dom_browser_min_c(n2))){const t3=floating_ui_dom_browser_min_w(n2,!0);s2.x=t3.x+n2.clientLeft,s2.y=t3.y+n2.clientTop}return{...e2,x:e2.x-f2.scrollLeft+s2.x,y:e2.y-f2.scrollTop+s2.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t2=>{let{reference:e2,floating:n2,strategy:o2}=t2;return{reference:floating_ui_dom_browser_min_b(e2,floating_ui_dom_browser_min_T(n2),o2),floating:{...W(n2),x:0,y:0}}},getClientRects:t2=>Array.from(t2.getClientRects()),isRTL:t2=>floating_ui_dom_browser_min_i(t2).direction==="rtl"};function N(t2,e2,n2,o2){o2===void 0&&(o2={});const{ancestorScroll:i2=!0,ancestorResize:r2=!0,elementResize:l2=!0,animationFrame:c2=!1}=o2,s2=i2&&!c2,u2=r2&&!c2,d2=s2||u2?[...floating_ui_dom_browser_min_f(t2)?H(t2):[],...H(e2)]:[];d2.forEach(t3=>{s2&&t3.addEventListener("scroll",n2,{passive:!0}),u2&&t3.addEventListener("resize",n2)});let h2,a2=null;if(l2){let o3=!0;a2=new ResizeObserver(()=>{o3||n2(),o3=!1}),floating_ui_dom_browser_min_f(t2)&&!c2&&a2.observe(t2),a2.observe(e2)}let g2=c2?floating_ui_dom_browser_min_w(t2):null;return c2&&function e3(){const o3=floating_ui_dom_browser_min_w(t2);!g2||o3.x===g2.x&&o3.y===g2.y&&o3.width===g2.width&&o3.height===g2.height||n2(),g2=o3,h2=requestAnimationFrame(e3)}(),n2(),()=>{var t3;d2.forEach(t4=>{s2&&t4.removeEventListener("scroll",n2),u2&&t4.removeEventListener("resize",n2)}),(t3=a2)==null||t3.disconnect(),a2=null,c2&&cancelAnimationFrame(h2)}}const z=(t2,n2,o2)=>floating_ui_core_browser_min_o(t2,n2,{platform:floating_ui_dom_browser_min_D,...o2});var react=__webpack_require__(59496),react_dom=__webpack_require__(87995),index=typeof document<"u"?react.useLayoutEffect:react.useEffect;function deepEqual(a2,b2){if(a2===b2)return!0;if(typeof a2!=typeof b2)return!1;if(typeof a2=="function"&&a2.toString()===b2.toString())return!0;let length,i2,keys;if(a2&&b2&&typeof a2=="object"){if(Array.isArray(a2)){if(length=a2.length,length!=b2.length)return!1;for(i2=length;i2--!==0;)if(!deepEqual(a2[i2],b2[i2]))return!1;return!0}if(keys=Object.keys(a2),length=keys.length,length!==Object.keys(b2).length)return!1;for(i2=length;i2--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i2]))return!1;for(i2=length;i2--!==0;){const key=keys[i2];if(!(key==="_owner"&&a2.$$typeof)&&!deepEqual(a2[key],b2[key]))return!1}return!0}return a2!==a2&&b2!==b2}function useLatestRef(value2){const ref=react.useRef(value2);return index(()=>{ref.current=value2}),ref}function useFloating(_temp){let{middleware,placement="bottom",strategy="absolute",whileElementsMounted}=_temp===void 0?{}:_temp;const reference=react.useRef(null),floating=react.useRef(null),whileElementsMountedRef=useLatestRef(whileElementsMounted),cleanupRef=react.useRef(null),[data,setData]=react.useState({x:null,y:null,strategy,placement,middlewareData:{}}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware?.map(_ref=>{let{options}=_ref;return options}),middleware?.map(_ref2=>{let{options}=_ref2;return options}))||setLatestMiddleware(middleware);const update=react.useCallback(()=>{!reference.current||!floating.current||z(reference.current,floating.current,{middleware:latestMiddleware,placement,strategy}).then(data2=>{isMountedRef.current&&react_dom.flushSync(()=>{setData(data2)})})},[latestMiddleware,placement,strategy]);index(()=>{isMountedRef.current&&update()},[update]);const isMountedRef=react.useRef(!1);index(()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1}),[]);const runElementMountCallback=react.useCallback(()=>{if(typeof cleanupRef.current=="function"&&(cleanupRef.current(),cleanupRef.current=null),reference.current&&floating.current)if(whileElementsMountedRef.current){const cleanupFn=whileElementsMountedRef.current(reference.current,floating.current,update);cleanupRef.current=cleanupFn}else update()},[update,whileElementsMountedRef]),setReference=react.useCallback(node=>{reference.current=node,runElementMountCallback()},[runElementMountCallback]),setFloating=react.useCallback(node=>{floating.current=node,runElementMountCallback()},[runElementMountCallback]),refs=react.useMemo(()=>({reference,floating}),[]);return react.useMemo(()=>({...data,update,refs,reference:setReference,floating:setFloating}),[data,update,refs,setReference,setFloating])}const arrow=options=>{const{element,padding}=options;function isRef(value2){return Object.prototype.hasOwnProperty.call(value2,"current")}return{name:"arrow",options,fn(args){return isRef(element)?element.current!=null?m({element:element.current,padding}).fn(args):{}:element?m({element,padding}).fn(args):{}}}}},60510:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{fi:()=>popper_createPopper});function getWindow(node){if(node==null)return window;if(node.toString()!=="[object Window]"){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}function isShadowRoot(node){if(typeof ShadowRoot>"u")return!1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}var math_max=Math.max,math_min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getWindowScroll(node){var win=getWindow(node),scrollLeft=win.pageXOffset,scrollTop=win.pageYOffset;return{scrollLeft,scrollTop}}function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}function getNodeScroll(node){return node===getWindow(node)||!isHTMLElement(node)?getWindowScroll(node):getHTMLElementScroll(node)}function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getComputedStyle2(element){return getWindow(element).getComputedStyle(element)}function isScrollParent(element){var _getComputedStyle=getComputedStyle2(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){isFixed===void 0&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&((getNodeName(offsetParent)!=="body"||isScrollParent(documentElement))&&(scroll=getNodeScroll(offsetParent)),isHTMLElement(offsetParent)?(offsets=getBoundingClientRect(offsetParent,!0),offsets.x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;list===void 0&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getTrueOffsetParent(element){return!isHTMLElement(element)||getComputedStyle2(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle2(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle2(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle2(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle2(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}var enums_top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[enums_top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])},[]),enums_placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(modifiers){var map=new Map,visited=new Set,result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier)});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}}),result.push(modifier)}return modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier)}),result}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}function debounce(fn){var pending;return function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn())})})),pending}}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect=="function")})}function popperGenerator(generatorOptions){generatorOptions===void 0&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){options===void 0&&(options=defaultOptions);var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2=typeof setOptionsAction=="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),runModifierEffects(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(!!areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),state.options.strategy==="fixed"),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===!0){state.reset=!1,index=-1;continue}var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;typeof fn=="function"&&(state=fn({state,options:_options,name,instance})||state)}}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate(),resolve(state)})}),destroy:function(){cleanupModifierEffects(),isDestroyed=!0}};if(!areValidElements(reference2,popper2))return instance;instance.setOptions(options).then(function(state2){!isDestroyed&&options.onFirstUpdate&&options.onFirstUpdate(state2)});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref){var name=_ref.name,_ref$options=_ref.options,options2=_ref$options===void 0?{}:_ref$options,effect2=_ref.effect;if(typeof effect2=="function"){var cleanupFn=effect2({state,name,instance,options:options2}),noopFn=function(){};effectCleanupFns.push(cleanupFn||noopFn)}})}function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn()}),effectCleanupFns=[]}return instance}}var createPopper=null,passive={passive:!0};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive)}),resize&&window2.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive)}),resize&&window2.removeEventListener("resize",instance.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};function getBasePlacement(placement){return placement.split("-")[0]}function getVariation(placement){return placement.split("-")[1]}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function computeOffsets(_ref){var reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2,offsets;switch(basePlacement){case enums_top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;default:}}return offsets}function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})}const modifiers_popperOffsets={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=enums_top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle2(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===enums_top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1}if(placement===left||(placement===enums_top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y},getWindow(popper2)):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:state.options.strategy==="fixed"};state.modifiersData.popperOffsets!=null&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),state.modifiersData.arrow!=null&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})}const modifiers_computeStyles={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value2=attributes[name2];value2===!1?element.removeAttribute(name2):element.setAttribute(name2,value2===!0?"":value2)}))})}function applyStyles_effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style=styleProperties.reduce(function(style2,property){return style2[property]="",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}}const modifiers_applyStyles={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:applyStyles_effect,requires:["computeStyles"]};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,enums_top].indexOf(basePlacement)>=0?-1:1,_ref=typeof offset2=="function"?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset,data=enums_placements.reduce(function(acc,placement){return acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets!=null&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}const modifiers_offset={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var getOppositeVariationPlacement_hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return getOppositeVariationPlacement_hash[matched]})}function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&strategy==="fixed")&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width,height,x:x+getWindowScrollBarX(element),y}}function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body,width=math_max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=math_max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return getComputedStyle2(body||html).direction==="rtl"&&(x+=math_max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}function contains(parent2,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent2.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,strategy==="fixed");return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)))}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle2(element).position)>=0,clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=="body"}):[]}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=math_max(rect.top,accRect.top),accRect.right=math_min(rect.right,accRect.right),accRect.bottom=math_min(rect.bottom,accRect.bottom),accRect.left=math_max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value2,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value2,hashMap},{})}function detectOverflow(state,options){options===void 0&&(options={});var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding,paddingObject=mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[enums_top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply})}return overflowOffsets}function computeAutoPlacement(state,options){options===void 0&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?enums_placements:_options$allowedAutoP,variation=getVariation(placement),placements=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});allowedPlacements.length===0&&(allowedPlacements=placements);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),isBasePlacement=basePlacement===preferredPlacement,fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement)),placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i<placements.length;i++){var placement=placements[i],_basePlacement=getBasePlacement(placement),isStartVariation=getVariation(placement)===start,isVertical=[enums_top,bottom].indexOf(_basePlacement)>=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:enums_top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var numberOfChecks=flipVariations?3:1,_loop=function(_i2){var fittingPlacement=placements.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}}const modifiers_flip={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getAltAxis(axis){return axis==="x"?"y":"x"}function within(min,value2,max){return math_max(min,math_min(value2,max))}function withinMaxClamp(min,value2,max){var v=within(min,value2,max);return v>max?max:v}function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=getAltAxis(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue=typeof tetherOffset=="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue=typeof tetherOffsetValue=="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(!!popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide=mainAxis==="y"?enums_top:left,altSide=mainAxis==="y"?bottom:right,len=mainAxis==="y"?"height":"width",offset2=popperOffsets2[mainAxis],min=offset2+overflow[mainSide],max=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject(),arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=(_offsetModifierState$=offsetModifierState?.[mainAxis])!=null?_offsetModifierState$:0,tetherMin=offset2+minOffset-offsetModifierValue-clientOffset,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?math_min(min,tetherMin):min,offset2,tether?math_max(max,tetherMax):max);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2}if(checkAltAxis){var _offsetModifierState$2,_mainSide=mainAxis==="x"?enums_top:left,_altSide=mainAxis==="x"?bottom:right,_offset=popperOffsets2[altAxis],_len=altAxis==="y"?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=[enums_top,left].indexOf(basePlacement)!==-1,_offsetModifierValue=(_offsetModifierState$2=offsetModifierState?.[altAxis])!=null?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}}const modifiers_preventOverflow={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?enums_top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min,center,max),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$)}}function arrow_effect(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;arrowElement!=null&&(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement)||!contains(state.elements.popper,arrowElement)||(state.elements.arrow=arrowElement))}const modifiers_arrow={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:arrow_effect,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getSideOffsets(overflow,rect,preventedOffsets){return preventedOffsets===void 0&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[enums_top,right,bottom,left].some(function(side){return overflow[side]>=0})}function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}var defaultModifiers=[eventListeners,modifiers_popperOffsets,modifiers_computeStyles,modifiers_applyStyles,modifiers_offset,modifiers_flip,modifiers_preventOverflow,modifiers_arrow,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide}],popper_createPopper=popperGenerator({defaultModifiers})},54251:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;var native_link_1=__webpack_require__(18714);Object.defineProperty(exports,"NativeLink",{enumerable:!0,get:function(){return native_link_1.NativeLink}})},18714:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),externalLinkAttributes={rel:"noopener",target:"_blank"};function NativeLink(_a){var{href="",external,replace,onClick}=_a,rest=__rest(_a,["href","external","replace","onClick"]);const externalProps=external?externalLinkAttributes:{},handleClick=react_1.useCallback(e=>{const res=onClick?.(e);return e.defaultPrevented||!replace||external||(e.preventDefault(),window.location.replace(href)),res},[href,replace,onClick]);return react_1.default.createElement("a",Object.assign({},rest,externalProps,{onClick:handleClick,href}))}exports.NativeLink=NativeLink},27069:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;function affix(prefix="",str,suffix=""){return str?`${prefix}${str}${suffix}`:""}exports.affix=affix},6480:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;var affix_1=__webpack_require__(27069);Object.defineProperty(exports,"affix",{enumerable:!0,get:function(){return affix_1.affix}})},91454:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},74155:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(91454);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},35925:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(32699),component_version_1=__webpack_require__(22670),component_id_1=__webpack_require__(45301);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return Boolean(this.search(componentId))}hasWithoutVersion(componentId){return Boolean(this.searchWithoutVersion(componentId))}hasWithoutScopeAndVersion(componentId){return Boolean(this.searchWithoutScopeAndVersion(componentId))}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{const scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){const componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){const uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{const found=this.filterWithoutVersion(componentId);if(found.length>1)throw new Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
|
1
|
+
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[583],{6019:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{arrow:()=>arrow,autoPlacement:()=>v,autoUpdate:()=>N,computePosition:()=>z,detectOverflow:()=>s,flip:()=>b,getOverflowAncestors:()=>H,hide:()=>P,inline:()=>E,limitShift:()=>L,offset:()=>T,shift:()=>D,size:()=>k,useFloating:()=>useFloating});function t(t2){return t2.split("-")[0]}function e(t2){return t2.split("-")[1]}function n(e2){return["top","bottom"].includes(t(e2))?"x":"y"}function r(t2){return t2==="y"?"height":"width"}function i(i2,o2,a2){let{reference:l2,floating:s2}=i2;const c2=l2.x+l2.width/2-s2.width/2,f2=l2.y+l2.height/2-s2.height/2,u2=n(o2),m2=r(u2),g2=l2[m2]/2-s2[m2]/2,d2=u2==="x";let p2;switch(t(o2)){case"top":p2={x:c2,y:l2.y-s2.height};break;case"bottom":p2={x:c2,y:l2.y+l2.height};break;case"right":p2={x:l2.x+l2.width,y:f2};break;case"left":p2={x:l2.x-s2.width,y:f2};break;default:p2={x:l2.x,y:l2.y}}switch(e(o2)){case"start":p2[u2]-=g2*(a2&&d2?-1:1);break;case"end":p2[u2]+=g2*(a2&&d2?-1:1)}return p2}const floating_ui_core_browser_min_o=async(t2,e2,n2)=>{const{placement:r2="bottom",strategy:o2="absolute",middleware:a2=[],platform:l2}=n2,s2=await(l2.isRTL==null?void 0:l2.isRTL(e2));let c2=await l2.getElementRects({reference:t2,floating:e2,strategy:o2}),{x:f2,y:u2}=i(c2,r2,s2),m2=r2,g2={},d2=0;for(let n3=0;n3<a2.length;n3++){const{name:p2,fn:h2}=a2[n3],{x:y2,y:x2,data:w2,reset:v2}=await h2({x:f2,y:u2,initialPlacement:r2,placement:m2,strategy:o2,middlewareData:g2,rects:c2,platform:l2,elements:{reference:t2,floating:e2}});f2=y2??f2,u2=x2??u2,g2={...g2,[p2]:{...g2[p2],...w2}},v2&&d2<=50&&(d2++,typeof v2=="object"&&(v2.placement&&(m2=v2.placement),v2.rects&&(c2=v2.rects===!0?await l2.getElementRects({reference:t2,floating:e2,strategy:o2}):v2.rects),{x:f2,y:u2}=i(c2,m2,s2)),n3=-1)}return{x:f2,y:u2,placement:m2,strategy:o2,middlewareData:g2}};function a(t2){return typeof t2!="number"?function(t3){return{top:0,right:0,bottom:0,left:0,...t3}}(t2):{top:t2,right:t2,bottom:t2,left:t2}}function l(t2){return{...t2,top:t2.y,left:t2.x,right:t2.x+t2.width,bottom:t2.y+t2.height}}async function s(t2,e2){var n2;e2===void 0&&(e2={});const{x:r2,y:i2,platform:o2,rects:s2,elements:c2,strategy:f2}=t2,{boundary:u2="clippingAncestors",rootBoundary:m2="viewport",elementContext:g2="floating",altBoundary:d2=!1,padding:p2=0}=e2,h2=a(p2),y2=c2[d2?g2==="floating"?"reference":"floating":g2],x2=l(await o2.getClippingRect({element:(n2=await(o2.isElement==null?void 0:o2.isElement(y2)))==null||n2?y2:y2.contextElement||await(o2.getDocumentElement==null?void 0:o2.getDocumentElement(c2.floating)),boundary:u2,rootBoundary:m2,strategy:f2})),w2=l(o2.convertOffsetParentRelativeRectToViewportRelativeRect?await o2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g2==="floating"?{...s2.floating,x:r2,y:i2}:s2.reference,offsetParent:await(o2.getOffsetParent==null?void 0:o2.getOffsetParent(c2.floating)),strategy:f2}):s2[g2]);return{top:x2.top-w2.top+h2.top,bottom:w2.bottom-x2.bottom+h2.bottom,left:x2.left-w2.left+h2.left,right:w2.right-x2.right+h2.right}}const c=Math.min,f=Math.max;function u(t2,e2,n2){return f(t2,c(e2,n2))}const m=t2=>({name:"arrow",options:t2,async fn(i2){const{element:o2,padding:l2=0}=t2??{},{x:s2,y:c2,placement:f2,rects:m2,platform:g2}=i2;if(o2==null)return{};const d2=a(l2),p2={x:s2,y:c2},h2=n(f2),y2=e(f2),x2=r(h2),w2=await g2.getDimensions(o2),v2=h2==="y"?"top":"left",b2=h2==="y"?"bottom":"right",R2=m2.reference[x2]+m2.reference[h2]-p2[h2]-m2.floating[x2],A2=p2[h2]-m2.reference[h2],P2=await(g2.getOffsetParent==null?void 0:g2.getOffsetParent(o2));let T2=P2?h2==="y"?P2.clientHeight||0:P2.clientWidth||0:0;T2===0&&(T2=m2.floating[x2]);const O2=R2/2-A2/2,D2=d2[v2],L2=T2-w2[x2]-d2[b2],k2=T2/2-w2[x2]/2+O2,E2=u(D2,k2,L2),C2=(y2==="start"?d2[v2]:d2[b2])>0&&k2!==E2&&m2.reference[x2]<=m2.floating[x2];return{[h2]:p2[h2]-(C2?k2<D2?D2-k2:L2-k2:0),data:{[h2]:E2,centerOffset:k2-E2}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t2){return t2.replace(/left|right|bottom|top/g,t3=>g[t3])}function p(t2,i2,o2){o2===void 0&&(o2=!1);const a2=e(t2),l2=n(t2),s2=r(l2);let c2=l2==="x"?a2===(o2?"end":"start")?"right":"left":a2==="start"?"bottom":"top";return i2.reference[s2]>i2.floating[s2]&&(c2=d(c2)),{main:c2,cross:d(c2)}}const h={start:"end",end:"start"};function y(t2){return t2.replace(/start|end/g,t3=>h[t3])}const x=["top","right","bottom","left"],w=x.reduce((t2,e2)=>t2.concat(e2,e2+"-start",e2+"-end"),[]),v=function(n2){return n2===void 0&&(n2={}),{name:"autoPlacement",options:n2,async fn(r2){var i2,o2,a2,l2,c2;const{x:f2,y:u2,rects:m2,middlewareData:g2,placement:d2,platform:h2,elements:x2}=r2,{alignment:v2=null,allowedPlacements:b2=w,autoAlignment:R2=!0,...A2}=n2,P2=function(n3,r3,i3){return(n3?[...i3.filter(t2=>e(t2)===n3),...i3.filter(t2=>e(t2)!==n3)]:i3.filter(e2=>t(e2)===e2)).filter(t2=>!n3||e(t2)===n3||!!r3&&y(t2)!==t2)}(v2,R2,b2),T2=await s(r2,A2),O2=(i2=(o2=g2.autoPlacement)==null?void 0:o2.index)!=null?i2:0,D2=P2[O2];if(D2==null)return{};const{main:L2,cross:k2}=p(D2,m2,await(h2.isRTL==null?void 0:h2.isRTL(x2.floating)));if(d2!==D2)return{x:f2,y:u2,reset:{placement:P2[0]}};const E2=[T2[t(D2)],T2[L2],T2[k2]],C2=[...(a2=(l2=g2.autoPlacement)==null?void 0:l2.overflows)!=null?a2:[],{placement:D2,overflows:E2}],H2=P2[O2+1];if(H2)return{data:{index:O2+1,overflows:C2},reset:{placement:H2}};const B=C2.slice().sort((t2,e2)=>t2.overflows[0]-e2.overflows[0]),V=(c2=B.find(t2=>{let{overflows:e2}=t2;return e2.every(t3=>t3<=0)}))==null?void 0:c2.placement,F=V??B[0].placement;return F!==d2?{data:{index:O2+1,overflows:C2},reset:{placement:F}}:{}}}},b=function(e2){return e2===void 0&&(e2={}),{name:"flip",options:e2,async fn(n2){var r2;const{placement:i2,middlewareData:o2,rects:a2,initialPlacement:l2,platform:c2,elements:f2}=n2,{mainAxis:u2=!0,crossAxis:m2=!0,fallbackPlacements:g2,fallbackStrategy:h2="bestFit",flipAlignment:x2=!0,...w2}=e2,v2=t(i2),b2=g2||(v2===l2||!x2?[d(l2)]:function(t2){const e3=d(t2);return[y(t2),e3,y(e3)]}(l2)),R2=[l2,...b2],A2=await s(n2,w2),P2=[];let T2=((r2=o2.flip)==null?void 0:r2.overflows)||[];if(u2&&P2.push(A2[v2]),m2){const{main:t2,cross:e3}=p(i2,a2,await(c2.isRTL==null?void 0:c2.isRTL(f2.floating)));P2.push(A2[t2],A2[e3])}if(T2=[...T2,{placement:i2,overflows:P2}],!P2.every(t2=>t2<=0)){var O2,D2;const t2=((O2=(D2=o2.flip)==null?void 0:D2.index)!=null?O2:0)+1,e3=R2[t2];if(e3)return{data:{index:t2,overflows:T2},reset:{placement:e3}};let n3="bottom";switch(h2){case"bestFit":{var L2;const t3=(L2=T2.map(t4=>[t4,t4.overflows.filter(t5=>t5>0).reduce((t5,e4)=>t5+e4,0)]).sort((t4,e4)=>t4[1]-e4[1])[0])==null?void 0:L2[0].placement;t3&&(n3=t3);break}case"initialPlacement":n3=l2}if(i2!==n3)return{reset:{placement:n3}}}return{}}}};function R(t2,e2){return{top:t2.top-e2.height,right:t2.right-e2.width,bottom:t2.bottom-e2.height,left:t2.left-e2.width}}function A(t2){return x.some(e2=>t2[e2]>=0)}const P=function(t2){let{strategy:e2="referenceHidden",...n2}=t2===void 0?{}:t2;return{name:"hide",async fn(t3){const{rects:r2}=t3;switch(e2){case"referenceHidden":{const e3=R(await s(t3,{...n2,elementContext:"reference"}),r2.reference);return{data:{referenceHiddenOffsets:e3,referenceHidden:A(e3)}}}case"escaped":{const e3=R(await s(t3,{...n2,altBoundary:!0}),r2.floating);return{data:{escapedOffsets:e3,escaped:A(e3)}}}default:return{}}}}},T=function(r2){return r2===void 0&&(r2=0),{name:"offset",options:r2,async fn(i2){const{x:o2,y:a2}=i2,l2=await async function(r3,i3){const{placement:o3,platform:a3,elements:l3}=r3,s2=await(a3.isRTL==null?void 0:a3.isRTL(l3.floating)),c2=t(o3),f2=e(o3),u2=n(o3)==="x",m2=["left","top"].includes(c2)?-1:1,g2=s2&&u2?-1:1,d2=typeof i3=="function"?i3(r3):i3;let{mainAxis:p2,crossAxis:h2,alignmentAxis:y2}=typeof d2=="number"?{mainAxis:d2,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d2};return f2&&typeof y2=="number"&&(h2=f2==="end"?-1*y2:y2),u2?{x:h2*g2,y:p2*m2}:{x:p2*m2,y:h2*g2}}(i2,r2);return{x:o2+l2.x,y:a2+l2.y,data:l2}}}};function O(t2){return t2==="x"?"y":"x"}const D=function(e2){return e2===void 0&&(e2={}),{name:"shift",options:e2,async fn(r2){const{x:i2,y:o2,placement:a2}=r2,{mainAxis:l2=!0,crossAxis:c2=!1,limiter:f2={fn:t2=>{let{x:e3,y:n2}=t2;return{x:e3,y:n2}}},...m2}=e2,g2={x:i2,y:o2},d2=await s(r2,m2),p2=n(t(a2)),h2=O(p2);let y2=g2[p2],x2=g2[h2];if(l2){const t2=p2==="y"?"bottom":"right";y2=u(y2+d2[p2==="y"?"top":"left"],y2,y2-d2[t2])}if(c2){const t2=h2==="y"?"bottom":"right";x2=u(x2+d2[h2==="y"?"top":"left"],x2,x2-d2[t2])}const w2=f2.fn({...r2,[p2]:y2,[h2]:x2});return{...w2,data:{x:w2.x-i2,y:w2.y-o2}}}}},L=function(e2){return e2===void 0&&(e2={}),{options:e2,fn(r2){const{x:i2,y:o2,placement:a2,rects:l2,middlewareData:s2}=r2,{offset:c2=0,mainAxis:f2=!0,crossAxis:u2=!0}=e2,m2={x:i2,y:o2},g2=n(a2),d2=O(g2);let p2=m2[g2],h2=m2[d2];const y2=typeof c2=="function"?c2({...l2,placement:a2}):c2,x2=typeof y2=="number"?{mainAxis:y2,crossAxis:0}:{mainAxis:0,crossAxis:0,...y2};if(f2){const t2=g2==="y"?"height":"width",e3=l2.reference[g2]-l2.floating[t2]+x2.mainAxis,n2=l2.reference[g2]+l2.reference[t2]-x2.mainAxis;p2<e3?p2=e3:p2>n2&&(p2=n2)}if(u2){var w2,v2,b2,R2;const e3=g2==="y"?"width":"height",n2=["top","left"].includes(t(a2)),r3=l2.reference[d2]-l2.floating[e3]+(n2&&(w2=(v2=s2.offset)==null?void 0:v2[d2])!=null?w2:0)+(n2?0:x2.crossAxis),i3=l2.reference[d2]+l2.reference[e3]+(n2?0:(b2=(R2=s2.offset)==null?void 0:R2[d2])!=null?b2:0)-(n2?x2.crossAxis:0);h2<r3?h2=r3:h2>i3&&(h2=i3)}return{[g2]:p2,[d2]:h2}}}},k=function(n2){return n2===void 0&&(n2={}),{name:"size",options:n2,async fn(r2){const{placement:i2,rects:o2,platform:a2,elements:l2}=r2,{apply:c2,...u2}=n2,m2=await s(r2,u2),g2=t(i2),d2=e(i2);let p2,h2;g2==="top"||g2==="bottom"?(p2=g2,h2=d2===(await(a2.isRTL==null?void 0:a2.isRTL(l2.floating))?"start":"end")?"left":"right"):(h2=g2,p2=d2==="end"?"top":"bottom");const y2=f(m2.left,0),x2=f(m2.right,0),w2=f(m2.top,0),v2=f(m2.bottom,0),b2={availableHeight:o2.floating.height-(["left","right"].includes(i2)?2*(w2!==0||v2!==0?w2+v2:f(m2.top,m2.bottom)):m2[p2]),availableWidth:o2.floating.width-(["top","bottom"].includes(i2)?2*(y2!==0||x2!==0?y2+x2:f(m2.left,m2.right)):m2[h2])},R2=await a2.getDimensions(l2.floating);c2?.({...r2,...b2});const A2=await a2.getDimensions(l2.floating);return R2.width!==A2.width||R2.height!==A2.height?{reset:{rects:!0}}:{}}}},E=function(e2){return e2===void 0&&(e2={}),{name:"inline",options:e2,async fn(r2){var i2;const{placement:o2,elements:s2,rects:u2,platform:m2,strategy:g2}=r2,{padding:d2=2,x:p2,y:h2}=e2,y2=l(m2.convertOffsetParentRelativeRectToViewportRelativeRect?await m2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u2.reference,offsetParent:await(m2.getOffsetParent==null?void 0:m2.getOffsetParent(s2.floating)),strategy:g2}):u2.reference),x2=(i2=await(m2.getClientRects==null?void 0:m2.getClientRects(s2.reference)))!=null?i2:[],w2=a(d2),v2=await m2.getElementRects({reference:{getBoundingClientRect:function(){var e3;if(x2.length===2&&x2[0].left>x2[1].right&&p2!=null&&h2!=null)return(e3=x2.find(t2=>p2>t2.left-w2.left&&p2<t2.right+w2.right&&h2>t2.top-w2.top&&h2<t2.bottom+w2.bottom))!=null?e3:y2;if(x2.length>=2){if(n(o2)==="x"){const e5=x2[0],n2=x2[x2.length-1],r4=t(o2)==="top",i4=e5.top,a3=n2.bottom,l3=r4?e5.left:n2.left,s4=r4?e5.right:n2.right;return{top:i4,bottom:a3,left:l3,right:s4,width:s4-l3,height:a3-i4,x:l3,y:i4}}const e4=t(o2)==="left",r3=f(...x2.map(t2=>t2.right)),i3=c(...x2.map(t2=>t2.left)),a2=x2.filter(t2=>e4?t2.left===i3:t2.right===r3),l2=a2[0].top,s3=a2[a2.length-1].bottom;return{top:l2,bottom:s3,left:i3,right:r3,width:r3-i3,height:s3-l2,x:i3,y:l2}}return y2}},floating:s2.floating,strategy:g2});return u2.reference.x!==v2.reference.x||u2.reference.y!==v2.reference.y||u2.reference.width!==v2.reference.width||u2.reference.height!==v2.reference.height?{reset:{rects:v2}}:{}}}};function floating_ui_dom_browser_min_n(t2){return t2&&t2.document&&t2.location&&t2.alert&&t2.setInterval}function o(t2){if(t2==null)return window;if(!floating_ui_dom_browser_min_n(t2)){const e2=t2.ownerDocument;return e2&&e2.defaultView||window}return t2}function floating_ui_dom_browser_min_i(t2){return o(t2).getComputedStyle(t2)}function floating_ui_dom_browser_min_r(t2){return floating_ui_dom_browser_min_n(t2)?"":t2?(t2.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t2=navigator.userAgentData;return t2!=null&&t2.brands?t2.brands.map(t3=>t3.brand+"/"+t3.version).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t2){return t2 instanceof o(t2).HTMLElement}function floating_ui_dom_browser_min_f(t2){return t2 instanceof o(t2).Element}function floating_ui_dom_browser_min_s(t2){return typeof ShadowRoot>"u"?!1:t2 instanceof o(t2).ShadowRoot||t2 instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t2){const{overflow:e2,overflowX:n2,overflowY:o2}=floating_ui_dom_browser_min_i(t2);return/auto|scroll|overlay|hidden/.test(e2+o2+n2)}function floating_ui_dom_browser_min_d(t2){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t2))}function floating_ui_dom_browser_min_h(t2){const e2=/firefox/i.test(floating_ui_dom_browser_min_l()),n2=floating_ui_dom_browser_min_i(t2);return n2.transform!=="none"||n2.perspective!=="none"||n2.contain==="paint"||["transform","perspective"].includes(n2.willChange)||e2&&n2.willChange==="filter"||e2&&!!n2.filter&&n2.filter!=="none"}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t2,e2,n2){var i2,r2,l2,s2;e2===void 0&&(e2=!1),n2===void 0&&(n2=!1);const u2=t2.getBoundingClientRect();let d2=1,h2=1;e2&&floating_ui_dom_browser_min_c(t2)&&(d2=t2.offsetWidth>0&&floating_ui_dom_browser_min_m(u2.width)/t2.offsetWidth||1,h2=t2.offsetHeight>0&&floating_ui_dom_browser_min_m(u2.height)/t2.offsetHeight||1);const g2=floating_ui_dom_browser_min_f(t2)?o(t2):window,p2=!floating_ui_dom_browser_min_a()&&n2,w2=(u2.left+(p2&&(i2=(r2=g2.visualViewport)==null?void 0:r2.offsetLeft)!=null?i2:0))/d2,v2=(u2.top+(p2&&(l2=(s2=g2.visualViewport)==null?void 0:s2.offsetTop)!=null?l2:0))/h2,y2=u2.width/d2,x2=u2.height/h2;return{width:y2,height:x2,top:v2,right:w2+y2,bottom:v2+x2,left:w2,x:w2,y:v2}}function floating_ui_dom_browser_min_v(t2){return(e2=t2,(e2 instanceof o(e2).Node?t2.ownerDocument:t2.document)||window.document).documentElement;var e2}function floating_ui_dom_browser_min_y(t2){return floating_ui_dom_browser_min_f(t2)?{scrollLeft:t2.scrollLeft,scrollTop:t2.scrollTop}:{scrollLeft:t2.pageXOffset,scrollTop:t2.pageYOffset}}function floating_ui_dom_browser_min_x(t2){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t2)).left+floating_ui_dom_browser_min_y(t2).scrollLeft}function floating_ui_dom_browser_min_b(t2,e2,n2){const o2=floating_ui_dom_browser_min_c(e2),i2=floating_ui_dom_browser_min_v(e2),l2=floating_ui_dom_browser_min_w(t2,o2&&function(t3){const e3=floating_ui_dom_browser_min_w(t3);return floating_ui_dom_browser_min_m(e3.width)!==t3.offsetWidth||floating_ui_dom_browser_min_m(e3.height)!==t3.offsetHeight}(e2),n2==="fixed");let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if(o2||!o2&&n2!=="fixed")if((floating_ui_dom_browser_min_r(e2)!=="body"||floating_ui_dom_browser_min_u(i2))&&(f2=floating_ui_dom_browser_min_y(e2)),floating_ui_dom_browser_min_c(e2)){const t3=floating_ui_dom_browser_min_w(e2,!0);s2.x=t3.x+e2.clientLeft,s2.y=t3.y+e2.clientTop}else i2&&(s2.x=floating_ui_dom_browser_min_x(i2));return{x:l2.left+f2.scrollLeft-s2.x,y:l2.top+f2.scrollTop-s2.y,width:l2.width,height:l2.height}}function floating_ui_dom_browser_min_L(t2){return floating_ui_dom_browser_min_r(t2)==="html"?t2:t2.assignedSlot||t2.parentNode||(floating_ui_dom_browser_min_s(t2)?t2.host:null)||floating_ui_dom_browser_min_v(t2)}function floating_ui_dom_browser_min_R(t2){return floating_ui_dom_browser_min_c(t2)&&getComputedStyle(t2).position!=="fixed"?t2.offsetParent:null}function floating_ui_dom_browser_min_T(t2){const e2=o(t2);let n2=floating_ui_dom_browser_min_R(t2);for(;n2&&floating_ui_dom_browser_min_d(n2)&&getComputedStyle(n2).position==="static";)n2=floating_ui_dom_browser_min_R(n2);return n2&&(floating_ui_dom_browser_min_r(n2)==="html"||floating_ui_dom_browser_min_r(n2)==="body"&&getComputedStyle(n2).position==="static"&&!floating_ui_dom_browser_min_h(n2))?e2:n2||function(t3){let e3=floating_ui_dom_browser_min_L(t3);for(floating_ui_dom_browser_min_s(e3)&&(e3=e3.host);floating_ui_dom_browser_min_c(e3)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e3));){if(floating_ui_dom_browser_min_h(e3))return e3;e3=e3.parentNode}return null}(t2)||e2}function W(t2){if(floating_ui_dom_browser_min_c(t2))return{width:t2.offsetWidth,height:t2.offsetHeight};const e2=floating_ui_dom_browser_min_w(t2);return{width:e2.width,height:e2.height}}function floating_ui_dom_browser_min_E(t2){const e2=floating_ui_dom_browser_min_L(t2);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e2))?t2.ownerDocument.body:floating_ui_dom_browser_min_c(e2)&&floating_ui_dom_browser_min_u(e2)?e2:floating_ui_dom_browser_min_E(e2)}function H(t2,e2){var n2;e2===void 0&&(e2=[]);const i2=floating_ui_dom_browser_min_E(t2),r2=i2===((n2=t2.ownerDocument)==null?void 0:n2.body),l2=o(i2),c2=r2?[l2].concat(l2.visualViewport||[],floating_ui_dom_browser_min_u(i2)?i2:[]):i2,f2=e2.concat(c2);return r2?f2:f2.concat(H(c2))}function C(e2,n2,r2){return n2==="viewport"?l(function(t2,e3){const n3=o(t2),i2=floating_ui_dom_browser_min_v(t2),r3=n3.visualViewport;let l2=i2.clientWidth,c2=i2.clientHeight,f2=0,s2=0;if(r3){l2=r3.width,c2=r3.height;const t3=floating_ui_dom_browser_min_a();(t3||!t3&&e3==="fixed")&&(f2=r3.offsetLeft,s2=r3.offsetTop)}return{width:l2,height:c2,x:f2,y:s2}}(e2,r2)):floating_ui_dom_browser_min_f(n2)?function(t2,e3){const n3=floating_ui_dom_browser_min_w(t2,!1,e3==="fixed"),o2=n3.top+t2.clientTop,i2=n3.left+t2.clientLeft;return{top:o2,left:i2,x:i2,y:o2,right:i2+t2.clientWidth,bottom:o2+t2.clientHeight,width:t2.clientWidth,height:t2.clientHeight}}(n2,r2):l(function(t2){var e3;const n3=floating_ui_dom_browser_min_v(t2),o2=floating_ui_dom_browser_min_y(t2),r3=(e3=t2.ownerDocument)==null?void 0:e3.body,l2=floating_ui_dom_browser_min_p(n3.scrollWidth,n3.clientWidth,r3?r3.scrollWidth:0,r3?r3.clientWidth:0),c2=floating_ui_dom_browser_min_p(n3.scrollHeight,n3.clientHeight,r3?r3.scrollHeight:0,r3?r3.clientHeight:0);let f2=-o2.scrollLeft+floating_ui_dom_browser_min_x(t2);const s2=-o2.scrollTop;return floating_ui_dom_browser_min_i(r3||n3).direction==="rtl"&&(f2+=floating_ui_dom_browser_min_p(n3.clientWidth,r3?r3.clientWidth:0)-l2),{width:l2,height:c2,x:f2,y:s2}}(floating_ui_dom_browser_min_v(e2)))}function S(t2){const e2=H(t2),n2=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t2).position)&&floating_ui_dom_browser_min_c(t2)?floating_ui_dom_browser_min_T(t2):t2;return floating_ui_dom_browser_min_f(n2)?e2.filter(t3=>floating_ui_dom_browser_min_f(t3)&&function(t4,e3){const n3=e3.getRootNode==null?void 0:e3.getRootNode();if(t4.contains(e3))return!0;if(n3&&floating_ui_dom_browser_min_s(n3)){let n4=e3;do{if(n4&&t4===n4)return!0;n4=n4.parentNode||n4.host}while(n4)}return!1}(t3,n2)&&floating_ui_dom_browser_min_r(t3)!=="body"):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t2){let{element:e2,boundary:n2,rootBoundary:o2,strategy:i2}=t2;const r2=[...n2==="clippingAncestors"?S(e2):[].concat(n2),o2],l2=r2[0],c2=r2.reduce((t3,n3)=>{const o3=C(e2,n3,i2);return t3.top=floating_ui_dom_browser_min_p(o3.top,t3.top),t3.right=floating_ui_dom_browser_min_g(o3.right,t3.right),t3.bottom=floating_ui_dom_browser_min_g(o3.bottom,t3.bottom),t3.left=floating_ui_dom_browser_min_p(o3.left,t3.left),t3},C(e2,l2,i2));return{width:c2.right-c2.left,height:c2.bottom-c2.top,x:c2.left,y:c2.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t2){let{rect:e2,offsetParent:n2,strategy:o2}=t2;const i2=floating_ui_dom_browser_min_c(n2),l2=floating_ui_dom_browser_min_v(n2);if(n2===l2)return e2;let f2={scrollLeft:0,scrollTop:0};const s2={x:0,y:0};if((i2||!i2&&o2!=="fixed")&&((floating_ui_dom_browser_min_r(n2)!=="body"||floating_ui_dom_browser_min_u(l2))&&(f2=floating_ui_dom_browser_min_y(n2)),floating_ui_dom_browser_min_c(n2))){const t3=floating_ui_dom_browser_min_w(n2,!0);s2.x=t3.x+n2.clientLeft,s2.y=t3.y+n2.clientTop}return{...e2,x:e2.x-f2.scrollLeft+s2.x,y:e2.y-f2.scrollTop+s2.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t2=>{let{reference:e2,floating:n2,strategy:o2}=t2;return{reference:floating_ui_dom_browser_min_b(e2,floating_ui_dom_browser_min_T(n2),o2),floating:{...W(n2),x:0,y:0}}},getClientRects:t2=>Array.from(t2.getClientRects()),isRTL:t2=>floating_ui_dom_browser_min_i(t2).direction==="rtl"};function N(t2,e2,n2,o2){o2===void 0&&(o2={});const{ancestorScroll:i2=!0,ancestorResize:r2=!0,elementResize:l2=!0,animationFrame:c2=!1}=o2,s2=i2&&!c2,u2=r2&&!c2,d2=s2||u2?[...floating_ui_dom_browser_min_f(t2)?H(t2):[],...H(e2)]:[];d2.forEach(t3=>{s2&&t3.addEventListener("scroll",n2,{passive:!0}),u2&&t3.addEventListener("resize",n2)});let h2,a2=null;if(l2){let o3=!0;a2=new ResizeObserver(()=>{o3||n2(),o3=!1}),floating_ui_dom_browser_min_f(t2)&&!c2&&a2.observe(t2),a2.observe(e2)}let g2=c2?floating_ui_dom_browser_min_w(t2):null;return c2&&function e3(){const o3=floating_ui_dom_browser_min_w(t2);!g2||o3.x===g2.x&&o3.y===g2.y&&o3.width===g2.width&&o3.height===g2.height||n2(),g2=o3,h2=requestAnimationFrame(e3)}(),n2(),()=>{var t3;d2.forEach(t4=>{s2&&t4.removeEventListener("scroll",n2),u2&&t4.removeEventListener("resize",n2)}),(t3=a2)==null||t3.disconnect(),a2=null,c2&&cancelAnimationFrame(h2)}}const z=(t2,n2,o2)=>floating_ui_core_browser_min_o(t2,n2,{platform:floating_ui_dom_browser_min_D,...o2});var react=__webpack_require__(59496),react_dom=__webpack_require__(87995),index=typeof document<"u"?react.useLayoutEffect:react.useEffect;function deepEqual(a2,b2){if(a2===b2)return!0;if(typeof a2!=typeof b2)return!1;if(typeof a2=="function"&&a2.toString()===b2.toString())return!0;let length,i2,keys;if(a2&&b2&&typeof a2=="object"){if(Array.isArray(a2)){if(length=a2.length,length!=b2.length)return!1;for(i2=length;i2--!==0;)if(!deepEqual(a2[i2],b2[i2]))return!1;return!0}if(keys=Object.keys(a2),length=keys.length,length!==Object.keys(b2).length)return!1;for(i2=length;i2--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i2]))return!1;for(i2=length;i2--!==0;){const key=keys[i2];if(!(key==="_owner"&&a2.$$typeof)&&!deepEqual(a2[key],b2[key]))return!1}return!0}return a2!==a2&&b2!==b2}function useLatestRef(value2){const ref=react.useRef(value2);return index(()=>{ref.current=value2}),ref}function useFloating(_temp){let{middleware,placement="bottom",strategy="absolute",whileElementsMounted}=_temp===void 0?{}:_temp;const reference=react.useRef(null),floating=react.useRef(null),whileElementsMountedRef=useLatestRef(whileElementsMounted),cleanupRef=react.useRef(null),[data,setData]=react.useState({x:null,y:null,strategy,placement,middlewareData:{}}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware?.map(_ref=>{let{options}=_ref;return options}),middleware?.map(_ref2=>{let{options}=_ref2;return options}))||setLatestMiddleware(middleware);const update=react.useCallback(()=>{!reference.current||!floating.current||z(reference.current,floating.current,{middleware:latestMiddleware,placement,strategy}).then(data2=>{isMountedRef.current&&react_dom.flushSync(()=>{setData(data2)})})},[latestMiddleware,placement,strategy]);index(()=>{isMountedRef.current&&update()},[update]);const isMountedRef=react.useRef(!1);index(()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1}),[]);const runElementMountCallback=react.useCallback(()=>{if(typeof cleanupRef.current=="function"&&(cleanupRef.current(),cleanupRef.current=null),reference.current&&floating.current)if(whileElementsMountedRef.current){const cleanupFn=whileElementsMountedRef.current(reference.current,floating.current,update);cleanupRef.current=cleanupFn}else update()},[update,whileElementsMountedRef]),setReference=react.useCallback(node=>{reference.current=node,runElementMountCallback()},[runElementMountCallback]),setFloating=react.useCallback(node=>{floating.current=node,runElementMountCallback()},[runElementMountCallback]),refs=react.useMemo(()=>({reference,floating}),[]);return react.useMemo(()=>({...data,update,refs,reference:setReference,floating:setFloating}),[data,update,refs,setReference,setFloating])}const arrow=options=>{const{element,padding}=options;function isRef(value2){return Object.prototype.hasOwnProperty.call(value2,"current")}return{name:"arrow",options,fn(args){return isRef(element)?element.current!=null?m({element:element.current,padding}).fn(args):{}:element?m({element,padding}).fn(args):{}}}}},60510:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{fi:()=>popper_createPopper});function getWindow(node){if(node==null)return window;if(node.toString()!=="[object Window]"){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}function isShadowRoot(node){if(typeof ShadowRoot>"u")return!1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}var math_max=Math.max,math_min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return{width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getWindowScroll(node){var win=getWindow(node),scrollLeft=win.pageXOffset,scrollTop=win.pageYOffset;return{scrollLeft,scrollTop}}function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}function getNodeScroll(node){return node===getWindow(node)||!isHTMLElement(node)?getWindowScroll(node):getHTMLElementScroll(node)}function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getComputedStyle2(element){return getWindow(element).getComputedStyle(element)}function isScrollParent(element){var _getComputedStyle=getComputedStyle2(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){isFixed===void 0&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&((getNodeName(offsetParent)!=="body"||isScrollParent(documentElement))&&(scroll=getNodeScroll(offsetParent)),isHTMLElement(offsetParent)?(offsets=getBoundingClientRect(offsetParent,!0),offsets.x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;list===void 0&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getTrueOffsetParent(element){return!isHTMLElement(element)||getComputedStyle2(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle2(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle2(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle2(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle2(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}var enums_top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[enums_top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])},[]),enums_placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(modifiers){var map=new Map,visited=new Set,result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier)});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}}),result.push(modifier)}return modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier)}),result}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}function debounce(fn){var pending;return function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn())})})),pending}}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect=="function")})}function popperGenerator(generatorOptions){generatorOptions===void 0&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){options===void 0&&(options=defaultOptions);var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2=typeof setOptionsAction=="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),runModifierEffects(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(!!areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),state.options.strategy==="fixed"),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===!0){state.reset=!1,index=-1;continue}var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;typeof fn=="function"&&(state=fn({state,options:_options,name,instance})||state)}}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate(),resolve(state)})}),destroy:function(){cleanupModifierEffects(),isDestroyed=!0}};if(!areValidElements(reference2,popper2))return instance;instance.setOptions(options).then(function(state2){!isDestroyed&&options.onFirstUpdate&&options.onFirstUpdate(state2)});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref){var name=_ref.name,_ref$options=_ref.options,options2=_ref$options===void 0?{}:_ref$options,effect2=_ref.effect;if(typeof effect2=="function"){var cleanupFn=effect2({state,name,instance,options:options2}),noopFn=function(){};effectCleanupFns.push(cleanupFn||noopFn)}})}function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn()}),effectCleanupFns=[]}return instance}}var createPopper=null,passive={passive:!0};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive)}),resize&&window2.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive)}),resize&&window2.removeEventListener("resize",instance.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};function getBasePlacement(placement){return placement.split("-")[0]}function getVariation(placement){return placement.split("-")[1]}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function computeOffsets(_ref){var reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2,offsets;switch(basePlacement){case enums_top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;default:}}return offsets}function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})}const modifiers_popperOffsets={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=enums_top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle2(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===enums_top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1}if(placement===left||(placement===enums_top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y},getWindow(popper2)):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:state.options.strategy==="fixed"};state.modifiersData.popperOffsets!=null&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),state.modifiersData.arrow!=null&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})}const modifiers_computeStyles={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value2=attributes[name2];value2===!1?element.removeAttribute(name2):element.setAttribute(name2,value2===!0?"":value2)}))})}function applyStyles_effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style=styleProperties.reduce(function(style2,property){return style2[property]="",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)}))})}}const modifiers_applyStyles={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:applyStyles_effect,requires:["computeStyles"]};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,enums_top].indexOf(basePlacement)>=0?-1:1,_ref=typeof offset2=="function"?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset,data=enums_placements.reduce(function(acc,placement){return acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets!=null&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}const modifiers_offset={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var getOppositeVariationPlacement_hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return getOppositeVariationPlacement_hash[matched]})}function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&strategy==="fixed")&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)}return{width,height,x:x+getWindowScrollBarX(element),y}}function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body,width=math_max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=math_max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return getComputedStyle2(body||html).direction==="rtl"&&(x+=math_max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}function contains(parent2,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent2.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,strategy==="fixed");return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)))}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle2(element).position)>=0,clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=="body"}):[]}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=math_max(rect.top,accRect.top),accRect.right=math_min(rect.right,accRect.right),accRect.bottom=math_min(rect.bottom,accRect.bottom),accRect.left=math_max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value2,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value2,hashMap},{})}function detectOverflow(state,options){options===void 0&&(options={});var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding,paddingObject=mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[enums_top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply})}return overflowOffsets}function computeAutoPlacement(state,options){options===void 0&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?enums_placements:_options$allowedAutoP,variation=getVariation(placement),placements=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});allowedPlacements.length===0&&(allowedPlacements=placements);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),isBasePlacement=basePlacement===preferredPlacement,fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement)),placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i<placements.length;i++){var placement=placements[i],_basePlacement=getBasePlacement(placement),isStartVariation=getVariation(placement)===start,isVertical=[enums_top,bottom].indexOf(_basePlacement)>=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:enums_top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var numberOfChecks=flipVariations?3:1,_loop=function(_i2){var fittingPlacement=placements.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}}const modifiers_flip={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getAltAxis(axis){return axis==="x"?"y":"x"}function within(min,value2,max){return math_max(min,math_min(value2,max))}function withinMaxClamp(min,value2,max){var v=within(min,value2,max);return v>max?max:v}function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=getAltAxis(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue=typeof tetherOffset=="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue=typeof tetherOffsetValue=="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(!!popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide=mainAxis==="y"?enums_top:left,altSide=mainAxis==="y"?bottom:right,len=mainAxis==="y"?"height":"width",offset2=popperOffsets2[mainAxis],min=offset2+overflow[mainSide],max=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject(),arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=(_offsetModifierState$=offsetModifierState?.[mainAxis])!=null?_offsetModifierState$:0,tetherMin=offset2+minOffset-offsetModifierValue-clientOffset,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?math_min(min,tetherMin):min,offset2,tether?math_max(max,tetherMax):max);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2}if(checkAltAxis){var _offsetModifierState$2,_mainSide=mainAxis==="x"?enums_top:left,_altSide=mainAxis==="x"?bottom:right,_offset=popperOffsets2[altAxis],_len=altAxis==="y"?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=[enums_top,left].indexOf(basePlacement)!==-1,_offsetModifierValue=(_offsetModifierState$2=offsetModifierState?.[altAxis])!=null?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}}const modifiers_preventOverflow={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?enums_top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min,center,max),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$)}}function arrow_effect(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;arrowElement!=null&&(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement)||!contains(state.elements.popper,arrowElement)||(state.elements.arrow=arrowElement))}const modifiers_arrow={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:arrow_effect,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getSideOffsets(overflow,rect,preventedOffsets){return preventedOffsets===void 0&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[enums_top,right,bottom,left].some(function(side){return overflow[side]>=0})}function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}var defaultModifiers=[eventListeners,modifiers_popperOffsets,modifiers_computeStyles,modifiers_applyStyles,modifiers_offset,modifiers_flip,modifiers_preventOverflow,modifiers_arrow,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide}],popper_createPopper=popperGenerator({defaultModifiers})},54251:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;var native_link_1=__webpack_require__(18714);Object.defineProperty(exports,"NativeLink",{enumerable:!0,get:function(){return native_link_1.NativeLink}})},18714:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),externalLinkAttributes={rel:"noopener",target:"_blank"};function NativeLink(_a){var{href="",external,replace,onClick}=_a,rest=__rest(_a,["href","external","replace","onClick"]);const externalProps=external?externalLinkAttributes:{},handleClick=react_1.useCallback(e=>{const res=onClick?.(e);return e.defaultPrevented||!replace||external||(e.preventDefault(),window.location.replace(href)),res},[href,replace,onClick]);return react_1.default.createElement("a",Object.assign({},rest,externalProps,{onClick:handleClick,href}))}exports.NativeLink=NativeLink},27069:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;function affix(prefix="",str,suffix=""){return str?`${prefix}${str}${suffix}`:""}exports.affix=affix},6480:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.affix=void 0;var affix_1=__webpack_require__(27069);Object.defineProperty(exports,"affix",{enumerable:!0,get:function(){return affix_1.affix}})},91454:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},74155:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(91454);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},35925:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(32699),component_version_1=__webpack_require__(22670),component_id_1=__webpack_require__(45301);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return Boolean(this.search(componentId))}hasWithoutVersion(componentId){return Boolean(this.searchWithoutVersion(componentId))}hasWithoutScopeAndVersion(componentId){return Boolean(this.searchWithoutScopeAndVersion(componentId))}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{const scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){const componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){const uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{const found=this.filterWithoutVersion(componentId);if(found.length>1)throw new Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
|
2
2
|
${found.map(id=>id.toString()).join(`
|
3
3
|
`)}`)})}toVersionLatest(){return ComponentIdList.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){return ComponentIdList.fromArray(this.map(id=>id.clone()))}}exports.ComponentIdList=ComponentIdList},45301:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;const legacy_bit_id_1=__webpack_require__(22091),exceptions_1=__webpack_require__(23535);class ComponentID{constructor(_legacy,_scope){if(this._legacy=_legacy,this._scope=_scope,!_legacy.name)throw new Error(`ComponentID expects to get an object with "name" prop. got ${_legacy}`);if(!_scope&&!_legacy.scope)throw new exceptions_1.MissingScope(_legacy)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const arr=this._legacy.name.split("/");return arr[arr.length-1]}get scope(){const scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(scopeName){const legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId,this.scope)}changeDefaultScope(scopeName){return ComponentID.fromLegacy(this._legacy,scopeName)}changeVersion(version){const legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}isEqualWithoutVersion(id){return this.isEqual(id,{ignoreVersion:!0})}isLocal(scopeName){return this._legacy.isLocal(scopeName)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(id){return ComponentID.fromObject(id)}static isValidVersion(version){return legacy_bit_id_1.BitId.isValidVersion(version)}static getVersionFromString(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[1]}static getStringWithoutVersion(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}hasSameVersion(id){return this._legacy.hasSameVersion(id._legacy)}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));const idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){const object=this._legacy.serialize();return object.scope||(object.scope=this.scope),object}clone(){return ComponentID.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static isValidCompIdStr(idStr){return Boolean(ComponentID.tryFromString(idStr))}static fromString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!1);return new ComponentID(legacyId,scope)}static fromObject(object,scope){if(object instanceof ComponentID)throw new Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${object.toString()}`);return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;const result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion?result:result&&a.hasSameVersion(b)}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}static sortIds(ids){return ids.sort((a,b)=>a.toString().localeCompare(b.toString()))}}exports.ComponentID=ComponentID},23535:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(16580);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},16580:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope is missing from a component-id "${src.toString()}".
|
4
4
|
in case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.
|
@@ -90,7 +90,7 @@ Run "bit envs" to see other components that uses the same env`)}}exports.Preview
|
|
90
90
|
}
|
91
91
|
}
|
92
92
|
}
|
93
|
-
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},79271:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},49471:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={PreviewAspect:!0,PreviewRuntime:!0,ENV_PREVIEW_STRATEGY_NAME:!0,COMPONENT_PREVIEW_STRATEGY_NAME:!0};Object.defineProperty(exports,"COMPONENT_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().COMPONENT_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"ENV_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().ENV_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"PreviewAspect",{enumerable:!0,get:function(){return _preview().PreviewAspect}}),Object.defineProperty(exports,"PreviewRuntime",{enumerable:!0,get:function(){return _preview().PreviewRuntime}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _preview().PreviewAspect}});function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}var _events=__webpack_require__(67335);Object.keys(_events).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_events[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _events[key]}})});function _strategiesNames(){const data=__webpack_require__(87144);return _strategiesNames=function(){return data},data}},2094:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(27060);return _previewModules=function(){return data},data}},22395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},74649:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().linkModules}};function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(91526);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(75752));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(3105));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(32699);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(67166);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(67335);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(85216);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(73110);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(2094);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(79271);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(14285);return _sizeEvent=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},85216:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},14285:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},87144:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ENV_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME=void 0;const ENV_PREVIEW_STRATEGY_NAME=exports.ENV_PREVIEW_STRATEGY_NAME="env",COMPONENT_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME="component"},43979:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},23179:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(43979);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(17796);return _pubsubContext=function(){return data},data}},14339:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PubSubNoParentError=void 0;class PubSubNoParentError extends Error{constructor(){super("could not connect to parent window");this.name="PubSubNoParentError"}}exports.PubSubNoParentError=PubSubNoParentError},17796:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},56646:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},53707:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _uiFoundationUi(){const data=__webpack_require__(92900);return _uiFoundationUi=function(){return data},data}function _eventemitter(){const data=__webpack_require__(42481);return _eventemitter=function(){return data},data}function _penpal(){const data=__webpack_require__(63805);return _penpal=function(){return data},data}function _noParentError(){const data=__webpack_require__(14339);return _noParentError=function(){return data},data}function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PubsubPreview{constructor(){_defineProperty(this,"_parentPubsub",void 0),_defineProperty(this,"events",new(_eventemitter()).EventEmitter2),_defineProperty(this,"connectToParentPubSub",(retries=10)=>{if(retries<=0)throw new(_noParentError()).PubSubNoParentError;return(0,_penpal().connectToParent)({timeout:300,methods:{pub:this.handleMessageFromParent}}).promise.then(parentPubsub=>this._parentPubsub=parentPubsub).catch(e=>{if(e.code!==_penpal().ErrorCode.ConnectionTimeout)throw e;return this.connectToParentPubSub(retries-1)})}),_defineProperty(this,"handleMessageFromParent",(topic,message)=>{this.events.emit(topic,message)})}sub(topic,callback){const emitter=this.events;return emitter.on(topic,callback),()=>{emitter.off(topic,callback)}}pub(topic,event){this.events.emit(topic,event),this._parentPubsub?.pub(topic,event).catch(err=>{console.error("[Pubsub.preview]",err)})}inIframe(){try{return _uiFoundationUi().isBrowser&&window.self!==window.top}catch{return!1}}static async provider(){const pubsubPreview=new PubsubPreview;return pubsubPreview.inIframe()&&pubsubPreview.connectToParentPubSub().catch(err=>{err instanceof _noParentError().PubSubNoParentError||console.error("[Pubsub.preview]",err)}),pubsubPreview}}__webpack_unused_export__=PubsubPreview,_defineProperty(PubsubPreview,"runtime",_preview().PreviewRuntime),_pubsub().PubsubAspect.addRuntime(PubsubPreview)},38117:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactNativeAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactNativeAspect=exports.ReactNativeAspect=_harmony().Aspect.create({id:"teambit.react/react-native"});var _default=exports.default=ReactNativeAspect},65883:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _react(){const data=__webpack_require__(32750);return _react=function(){return data},data}function _reactNative(){const data=__webpack_require__(38117);return _reactNative=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactNativePreview{constructor(reactPreview,preview){this.reactPreview=reactPreview,this.preview=preview,_defineProperty(this,"registerProvider",this.reactPreview.registerProvider.bind(this.reactPreview)),_defineProperty(this,"getRenderingContext",this.reactPreview.getRenderingContext.bind(this.reactPreview))}static async provider([reactPreview,preview]){const reactNativePreview=new ReactNativePreview(reactPreview,preview);return preview.registerRenderContext(reactNativePreview.getRenderingContext),reactNativePreview}}__webpack_unused_export__=ReactNativePreview,_defineProperty(ReactNativePreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactNativePreview,"slots",[]),_defineProperty(ReactNativePreview,"dependencies",[_react().ReactAspect,_preview().PreviewAspect]),_reactNative().ReactNativeAspect.addRuntime(ReactNativePreview);var _default=__webpack_unused_export__=ReactNativePreview},28547:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=exports.PARAM_NAME=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_ui_component_highlighter_1=__webpack_require__(7238),query_string_1=__importDefault(__webpack_require__(42546)),highlighter_provider_module_scss_1=__importDefault(__webpack_require__(45394));exports.PARAM_NAME="highlighter";const classes={container:highlighter_provider_module_scss_1.default.label};function useHash(){const[hash,setHash]=(0,react_1.useState)(window?window.location.hash:"");return(0,react_1.useEffect)(()=>{const updateHash=()=>{setHash(window.location.hash)};return updateHash(),window.addEventListener("hashchange",updateHash),()=>{window.removeEventListener("hashchange",updateHash)}},[]),hash}const HighlighterProvider=({children})=>{const hash=useHash(),isActive=(0,react_1.useMemo)(()=>{const hashQuery=hash.split("?")[1];return query_string_1.default.parse(hashQuery)[exports.PARAM_NAME]==="true"},[hash]);return react_1.default.createElement(react_ui_component_highlighter_1.ComponentHighlighter,{disabled:!isActive,className:(0,classnames_1.default)(highlighter_provider_module_scss_1.default.highlighter,isActive&&highlighter_provider_module_scss_1.default.active),classes},children)};exports.HighlighterProvider=HighlighterProvider},87656:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=void 0;var highlighter_provider_1=__webpack_require__(28547);Object.defineProperty(exports,"HighlighterProvider",{enumerable:!0,get:function(){return highlighter_provider_1.HighlighterProvider}})},32750:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ReactAspect",{enumerable:!0,get:function(){return _react().ReactAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _react().ReactAspect}});function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}},72864:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactAspect=exports.ReactAspect=_harmony().Aspect.create({id:"teambit.react/react"});var _default=exports.default=ReactAspect},28177:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _lodash(){const data=_interopRequireDefault(__webpack_require__(11549));return _lodash=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _reactUi(){const data=__webpack_require__(87656);return _reactUi=function(){return data},data}function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactPreview{constructor(preview,providerSlot){this.preview=preview,this.providerSlot=providerSlot,_defineProperty(this,"getRenderingContext",({aspectsFilter})=>{let entries=this.providerSlot.toArray();if(aspectsFilter){const allowedAspects=new Set(aspectsFilter);allowedAspects.add(_react().ReactAspect.id),entries=entries.filter(([aspectId])=>allowedAspects.has(aspectId))}return{providers:(0,_lodash().default)(entries.map(([,provider])=>provider))}})}registerProvider(provider){this.providerSlot.register(provider)}static async provider([preview],config,[providerSlot]){const reactPreview=new ReactPreview(preview,providerSlot);return reactPreview.registerProvider([_reactUi().HighlighterProvider]),preview.registerRenderContext(reactPreview.getRenderingContext),reactPreview}}__webpack_unused_export__=ReactPreview,_defineProperty(ReactPreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactPreview,"slots",[_harmony().Slot.withType()]),_defineProperty(ReactPreview,"dependencies",[_preview().PreviewAspect]),_react().ReactAspect.addRuntime(ReactPreview);var _default=__webpack_unused_export__=ReactPreview},28919:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(55669),_teambit_harmony__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_teambit_harmony__WEBPACK_IMPORTED_MODULE_0__),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(22395),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12825),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(36717),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(56646),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(72864),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(38117),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(98695),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(74649),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_preview_runtime_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(90428),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_preview_runtime_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61517),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_preview_runtime_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(53707),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_preview_runtime_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28177),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_preview_runtime_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(65883),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_preview_runtime_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(97996);function generateSlot(length=5){return Array.from(Array(length)).map(()=>Slot.withType())}const isBrowser=typeof window<"u",windowConfig=isBrowser?window.harmonyAppConfig:void 0,mergedConfig={...JSON.parse('{"teambit.workspace/workspace":{"name":"bit","icon":"https://static.bit.dev/bit-logo.svg","defaultScope":"teambit.bit","defaultDirectory":"components","resolveEnvsFromRoots":false},"teambit.dependencies/dependency-resolver":{"packageManager":"teambit.dependencies/pnpm","policy":{"dependencies":{"@babel/core":"7.19.6","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","@babel/types":"7.22.3","@bitdev/node.generators.node-templates":"^2.0.7","@bitdev/react.generators.react-templates":"^2.1.2","@bitdev/symphony.generators.symphony-templates":"^1.0.2","@dagrejs/dagre":"^1.1.2","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"29.3.1","@mdx-js/mdx":"1.6.21","@mdx-js/react":"1.6.22","@monaco-editor/react":"4.4.6","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/client":"11.1.10","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config":"21.8.4","@pnpm/core":"15.3.5","@pnpm/default-reporter":"14.0.3","@pnpm/dependency-path":"5.1.6","@pnpm/error":"6.0.2","@pnpm/fetch":"8.0.7","@pnpm/list":"^10.2.1","@pnpm/lockfile-file":"9.1.3","@pnpm/logger":"5.2.0","@pnpm/modules-yaml":"13.1.7","@pnpm/network.ca-file":"3.0.0","@pnpm/package-store":"20.4.0","@pnpm/parse-overrides":"5.1.1","@pnpm/pick-registry-for-package":"6.0.7","@pnpm/plugin-commands-publishing":"10.0.9","@pnpm/plugin-commands-rebuild":"12.1.0","@pnpm/registry-mock":"3.4.0","@pnpm/reviewing.dependencies-hierarchy":"^3.2.1","@pnpm/semver-diff":"1.1.0","@pnpm/sort-packages":"6.0.8","@pnpm/store-connection-manager":"8.4.0","@pnpm/types":"12.2.0","@pnpm/worker":"1.0.11","@pnpm/workspace.pkgs-graph":"4.0.6","@prerenderer/prerenderer":"^1.2.0","@prerenderer/renderer-jsdom":"^1.1.2","@prerenderer/webpack-plugin":"^5.2.0","@react-hook/latest":"1.0.3","@svgr/webpack":"8.1.0","@teambit/any-fs":"0.0.5","@teambit/base-react.layout.row":"0.0.3","@teambit/base-react.navigation.link":"2.0.31","@teambit/base-react.themes.theme-switcher":"^1.0.2","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"0.0.4","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.0","@teambit/base-ui.graph.tree.recursive-tree":"1.0.0","@teambit/base-ui.graph.tree.root-node":"1.0.0","@teambit/base-ui.graph.tree.tree-context":"1.0.5","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.0","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.1","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.background":"1.0.1","@teambit/base-ui.surfaces.card":"1.0.1","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.0","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.1","@teambit/base-ui.text.paragraph":"1.0.1","@teambit/base-ui.text.text-sizes":"1.0.0","@teambit/base-ui.text.themed-text":"1.0.1","@teambit/base-ui.theme.accent-color":"1.1.0","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.1","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.0","@teambit/base-ui.utils.time-ago":"1.0.1","@teambit/bit.content.what-is-bit":"1.96.2","@teambit/bvm.config":"^0.2.3","@teambit/bvm.path":"^0.1.2","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.5","@teambit/code.ui.code-editor":"^0.0.8","@teambit/code.ui.code-tab-tree":"^0.0.614","@teambit/code.ui.dependency-tree":"0.0.546","@teambit/code.ui.hooks.use-code-params":"0.0.496","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"0.0.502","@teambit/code.ui.queries.get-file-content":"0.0.504","@teambit/code.ui.utils.get-file-icon":"0.0.496","@teambit/community.constants.links":"0.0.2","@teambit/community.starters.hello-world":"^0.0.16","@teambit/compilation.babel-compiler":"^1.1.8","@teambit/compilation.content.compiler-overview":"1.95.0","@teambit/component.content.component-overview":"1.95.0","@teambit/component.content.dev-files":"1.95.9","@teambit/component.instructions.exporting-components":"0.0.7","@teambit/component.ui.artifacts.artifacts-tree":"^0.0.26","@teambit/component.ui.artifacts.models.component-artifacts-model":"^0.0.12","@teambit/component.ui.artifacts.queries.use-component-artifacts":"^0.0.14","@teambit/component.ui.badges.component-count":"^0.0.15","@teambit/component.ui.component-compare.compare-aspects.compare-aspect-view":"^0.0.14","@teambit/component.ui.component-compare.compare-aspects.compare-aspects":"^0.0.147","@teambit/component.ui.component-compare.compare-aspects.context":"^0.0.12","@teambit/component.ui.component-compare.compare-aspects.hooks.use-compare-aspects":"^0.0.118","@teambit/component.ui.component-compare.compare-aspects.models.component-compare-aspects-model":"^0.0.11","@teambit/component.ui.component-compare.hooks.use-component-compare":"^0.0.113","@teambit/component.ui.component-compare.hooks.use-component-compare-url":"^0.0.9","@teambit/component.ui.component-compare.layouts.compare-split-layout-preset":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-change-type":"^0.0.7","@teambit/component.ui.component-compare.models.component-compare-hooks":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-model":"^0.0.111","@teambit/component.ui.component-compare.models.component-compare-state":"^0.0.7","@teambit/component.ui.component-compare.status-resolver":"^0.0.9","@teambit/component.ui.component-compare.utils.group-by-version":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-logs":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-tabs":"^0.0.102","@teambit/component.ui.component-deprecated":"^0.0.39","@teambit/component.ui.component-meta":"^0.0.359","@teambit/component.ui.component-size":"^0.0.77","@teambit/component.ui.component-status":"^0.0.504","@teambit/component.ui.component-status-resolver":"^0.0.510","@teambit/component.ui.component-tooltip":"^0.0.509","@teambit/component.ui.deprecation-icon":"^0.0.509","@teambit/component.ui.hooks.use-fetch-docs":"^0.0.21","@teambit/component.ui.version-label":"^0.0.509","@teambit/compositions.ui.composition-compare":"^0.0.255","@teambit/compositions.ui.composition-compare-section":"^0.0.100","@teambit/compositions.ui.compositions-menu-bar":"^0.0.177","@teambit/compositions.ui.compositions-overview":"^0.0.10","@teambit/compositions.ui.hooks.use-composition":"^0.0.177","@teambit/defender.content.formatter-overview":"1.96.1","@teambit/defender.content.linter-overview":"1.95.0","@teambit/defender.content.tester-overview":"1.95.0","@teambit/defender.eslint-linter":"^1.0.35","@teambit/defender.jest-tester":"^2.0.14","@teambit/defender.prettier-formatter":"1.0.12","@teambit/defender.tester-task":"^1.0.13","@teambit/defender.ui.test-compare-section":"^0.0.100","@teambit/defender.ui.test-loader":"^0.0.504","@teambit/defender.ui.test-row":"^0.0.503","@teambit/defender.ui.test-table":"^0.0.510","@teambit/dependencies.modules.packages-excluder":"^1.0.8","@teambit/dependencies.pnpm.dep-path":"^0.0.2","@teambit/design.buttons.action-button":"^0.0.2","@teambit/design.controls.menu":"^0.0.1","@teambit/design.elements.icon":"1.0.5","@teambit/design.inputs.dropdown":"1.2.16","@teambit/design.inputs.input-text":"1.0.21","@teambit/design.inputs.selectors.multi-select":"0.0.20","@teambit/design.inputs.toggle-button":"0.0.9","@teambit/design.navigation.content-tabs":"0.0.5","@teambit/design.navigation.responsive-navbar":"^0.0.8","@teambit/design.skeletons.base-skeleton":"^0.0.2","@teambit/design.theme.icons-font":"2.0.29","@teambit/design.themes.dark-theme":"1.91.4","@teambit/design.themes.theme-toggler":"0.1.3","@teambit/design.ui.alert-card":"0.0.26","@teambit/design.ui.brand.logo":"1.96.2","@teambit/design.ui.cli-snippet":"0.0.359","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.elements.level-icon":"0.0.20","@teambit/design.ui.empty-box":"0.0.363","@teambit/design.ui.error-page":"0.0.364","@teambit/design.ui.icon-button":"1.0.16","@teambit/design.ui.input.option-button":"1.0.0","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.12","@teambit/design.ui.navigation.link":"^1.96.11","@teambit/design.ui.pages.not-found":"0.0.371","@teambit/design.ui.pages.server-error":"0.0.368","@teambit/design.ui.pages.standalone-not-found-page":"0.0.369","@teambit/design.ui.pill-label":"0.0.356","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.354","@teambit/design.ui.skeletons.sidebar-loader":"0.0.4","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.surfaces.menu.link-item":"1.0.0","@teambit/design.ui.surfaces.menu.section":"^0.0.357","@teambit/design.ui.surfaces.message-card":"0.0.17","@teambit/design.ui.surfaces.status-message-card":"0.0.17","@teambit/design.ui.tree":"0.0.16","@teambit/docs.content.docs-overview":"1.95.9","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.overview-compare":"^1.0.10","@teambit/docs.ui.overview-compare-section":"^0.0.100","@teambit/documenter.code.react-playground":"4.1.9","@teambit/documenter.content.documentation-links":"4.1.3","@teambit/documenter.markdown.hybrid-live-code-snippet":"0.1.12","@teambit/documenter.markdown.mdx":"0.1.13","@teambit/documenter.theme.theme-compositions":"4.1.1","@teambit/documenter.theme.theme-context":"4.0.3","@teambit/documenter.ui.code-snippet":"^4.2.5","@teambit/documenter.ui.copy-box":"4.1.17","@teambit/documenter.ui.heading":"4.1.1","@teambit/documenter.ui.highlighted-text":"4.1.1","@teambit/documenter.ui.label":"4.0.3","@teambit/documenter.ui.label-list":"4.0.3","@teambit/documenter.ui.linked-heading":"4.1.6","@teambit/documenter.ui.paragraph":"4.1.1","@teambit/documenter.ui.property-table":"4.1.10","@teambit/documenter.ui.section":"4.1.1","@teambit/documenter.ui.separator":"4.1.1","@teambit/documenter.ui.sub-title":"4.1.1","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"4.1.13","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.2","@teambit/evangelist.elements.x-button":"1.0.7","@teambit/evangelist.input.checkbox.label":"^1.0.14","@teambit/evangelist.surfaces.dropdown":"1.0.2","@teambit/evangelist.surfaces.tooltip":"1.0.1","@teambit/explorer.plugins.preview-plugin":"^0.0.10","@teambit/explorer.ui.command-bar":"^2.0.15","@teambit/explorer.ui.component-card":"^0.0.30","@teambit/explorer.ui.gallery.base-component-card":"0.0.503","@teambit/explorer.ui.gallery.component-card":"^0.0.513","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/git.modules.git-ignore":"^1.0.2","@teambit/harmony":"0.4.6","@teambit/html.generator.html-templates":"^1.0.12","@teambit/html.modules.inject-html-element":"0.0.5","@teambit/html.modules.render-template":"0.0.104","@teambit/lanes.ui.compare.lane-compare":"^0.0.193","@teambit/lanes.ui.compare.lane-compare-drawer":"^0.0.158","@teambit/lanes.ui.compare.lane-compare-hooks.use-lane-diff-status":"^0.0.144","@teambit/lanes.ui.compare.lane-compare-loader":"^0.0.6","@teambit/lanes.ui.compare.lane-compare-page":"^0.0.162","@teambit/lanes.ui.compare.lane-compare-state":"^0.0.11","@teambit/lanes.ui.icons.lane-icon":"^0.0.9","@teambit/lanes.ui.lane-details":"^0.0.204","@teambit/lanes.ui.menus.lanes-overview-menu":"^0.0.10","@teambit/lanes.ui.models.lanes-model":"^0.0.221","@teambit/lanes.ui.navigation.lane-switcher":"^0.0.225","@teambit/mdx.compilers.mdx-transpiler":"^1.0.6","@teambit/mdx.generator.mdx-templates":"^1.0.11","@teambit/mdx.modules.mdx-loader":"^1.0.14","@teambit/mdx.ui.docs.link":"0.0.500","@teambit/mdx.ui.docs.snippet":"^0.0.509","@teambit/mdx.ui.mdx-layout":"^1.0.9","@teambit/mdx.ui.mdx-scope-context":"^1.0.5","@teambit/node.utils.esm-loader":"^0.0.6","@teambit/pkg.content.packages-overview":"1.95.9","@teambit/preview.modules.preview-modules":"^1.0.3","@teambit/react.content.react-overview":"1.95.0","@teambit/react.generator.react-native-templates":"^1.0.11","@teambit/react.instructions.react-native.adding-tests":"0.0.1","@teambit/react.instructions.react.adding-compositions":"0.0.6","@teambit/react.instructions.react.adding-tests":"0.0.6","@teambit/react.jest.react-jest":"^1.0.32","@teambit/react.rendering.ssr":"0.0.3","@teambit/react.ui.component-highlighter":"0.2.4","@teambit/react.webpack.react-webpack":"^1.0.25","@teambit/scope.content.scope-overview":"1.95.0","@teambit/scope.ui.empty-scope":"^0.0.509","@teambit/scope.ui.hooks.use-scope":"^0.0.453","@teambit/scope.ui.scope-details":"^0.0.526","@teambit/scope.ui.scope-icon":"0.0.91","@teambit/scope.ui.scope-labels":"^0.0.505","@teambit/scope.ui.scope-title":"^0.0.515","@teambit/scopes.scope-descriptor":"^0.0.24","@teambit/scopes.scope-id":"^0.0.7","@teambit/semantics.entities.semantic-schema":"0.0.71","@teambit/tests-results":"^1.0.5","@teambit/typescript.typescript-compiler":"^2.0.42","@teambit/ui-foundation.ui.constants.z-indexes":"^0.0.504","@teambit/ui-foundation.ui.corner":"^0.0.520","@teambit/ui-foundation.ui.empty-component-gallery":"^0.0.508","@teambit/ui-foundation.ui.full-loader":"^0.0.500","@teambit/ui-foundation.ui.get-icon-from-file-name":"^0.0.500","@teambit/ui-foundation.ui.global-loader":"^0.0.502","@teambit/ui-foundation.ui.hooks.use-bind-key":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-data-query":"^0.0.505","@teambit/ui-foundation.ui.hooks.use-in-out-transition":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-is-mobile":"^0.0.198","@teambit/ui-foundation.ui.hooks.use-user-agent":"^0.0.197","@teambit/ui-foundation.ui.is-browser":"^0.0.500","@teambit/ui-foundation.ui.keycap":"^0.0.500","@teambit/ui-foundation.ui.main-dropdown":"^0.0.502","@teambit/ui-foundation.ui.menu":"^0.0.502","@teambit/ui-foundation.ui.menu-widget-icon":"^0.0.502","@teambit/ui-foundation.ui.navigation.react-router-adapter":"^6.1.1","@teambit/ui-foundation.ui.notifications.notification":"^0.0.515","@teambit/ui-foundation.ui.notifications.notification-center":"^0.0.523","@teambit/ui-foundation.ui.notifications.notification-context":"^0.0.501","@teambit/ui-foundation.ui.notifications.store":"^0.0.500","@teambit/ui-foundation.ui.react-router.extend-path":"^0.0.486","@teambit/ui-foundation.ui.react-router.use-query":"^0.0.501","@teambit/ui-foundation.ui.top-bar":"^0.0.514","@teambit/ui-foundation.ui.tree.drawer":"^0.0.518","@teambit/ui-foundation.ui.tree.file-tree":"0.0.524","@teambit/ui-foundation.ui.tree.folder-tree-node":"0.0.510","@teambit/ui-foundation.ui.tree.tree-node":"0.0.515","@teambit/ui-foundation.ui.use-box.back-button":"^0.0.119","@teambit/ui-foundation.ui.use-box.bit-info":"^0.0.128","@teambit/ui-foundation.ui.use-box.bottom-link":"^0.0.119","@teambit/ui-foundation.ui.use-box.dropdown":"^0.0.142","@teambit/ui-foundation.ui.use-box.menu":"^1.0.7","@teambit/ui-foundation.ui.use-box.scope-menu":"^0.0.146","@teambit/ui-foundation.ui.use-box.tab":"^0.0.122","@teambit/ui-foundation.ui.use-box.tab-content":"^0.0.122","@teambit/workspace.content.variants":"1.95.9","@teambit/workspace.content.workspace-overview":"1.95.0","@teambit/workspace.ui.empty-workspace":"^0.0.508","@teambit/workspace.ui.load-preview":"^0.0.504","@teambit/workspace.ui.status":"^0.0.504","@testing-library/jest-dom":"5.16.5","@testing-library/jest-native":"5.4.3","@testing-library/react":"12.1.5","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/classnames":"2.2.11","@types/cors":"2.8.10","@types/didyoumean":"1.2.0","@types/eslint":"8.56.6","@types/eventsource":"^1.1.15","@types/express":"4.17.13","@types/find-root":"1.1.2","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/lodash.orderby":"4.6.6","@types/mdx-js__react":"1.5.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/mousetrap":"1.6.5","@types/node":"14.14.31","@types/pluralize":"0.0.29","@types/react":"^17.0.67","@types/react-dev-utils":"9.0.10","@types/react-dom":"^17.0.21","@types/react-syntax-highlighter":"15.5.10","@types/react-tabs":"2.3.2","@types/socket.io-client":"1.4.35","@types/ssri":"^7.1.5","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/url-parse":"1.4.3","@types/webpack":"5.28.1","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0","ansi-to-html":"0.6.14","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.26.2","apollo-utilities":"1.3.4","archiver":"5.3.1","archy":"1.0.0","assert":"^2.1.0","body-parser":"1.20.2","buffer":"6.0.3","camelcase":"6.2.0","chai-subset":"^1.6.0","classnames":"2.2.6","cli-highlight":"2.1.9","comlink":"4.3.0","command-exists":"1.2.9","compression-webpack-plugin":"11.0.0","copy-to-clipboard":"3.3.1","cors":"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","cross-fetch":"3.1.5","css-minimizer-webpack-plugin":"^6.0.0","didyoumean":"1.2.1","dreidels":"0.6.1","enquirer":"2.3.6","eslint-config-airbnb-typescript":"17.1.0","eslint-import-resolver-node":"0.3.4","eventemitter2":"6.4.4","events":"^3.3.0","eventsource":"^2.0.2","expose-loader":"3.1.0","express":"4.19.2","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1","filenamify":"4.2.0","find-root":"1.1.0","flatted":"3.1.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0","graceful-fs":"4.2.10","graphql-disable-introspection":"^1.2.0","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","history":"5.3.0","html-escaper":"3.0.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","http-proxy-middleware":"^3.0.0","humanize-duration":"3.23.1","humanize-string":"2.1.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","jest":"29.3.1","jest-message-util":"29.3.1","jest-watcher":"29.7.0","json-formatter-js":"2.3.4","junit-report-builder":"3.0.1","less":"^4.1.1","loader-utils":"2.0.4","lodash":"4.17.21","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.orderby":"4.6.0","map-obj":"4.2.1","mime":"2.5.2","mini-css-extract-plugin":"2.2.2","minimatch":"3.0.5","mousetrap":"1.6.5","multimatch":"5.0.0","nerf-dart":"1.0.0","node-pty":"^1.0.0","npm":"6.14.17","p-limit":"3.1.0","p-locate":"5.0.0","parse-package-name":"0.1.0","path-to-regexp":"6.2.0","penpal":"6.2.2","pino-pretty":"9.1.1","pluralize":"8.0.0","postcss":"8.4.45","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2","pretty-bytes":"5.6.0","process":"0.11.10","punycode":"^2.3.1","puppeteer":"13.7.0","query-string":"7.0.0","react-animate-height":"2.0.23","react-dev-utils":"11.0.4","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-native":"^0.64.1","react-syntax-highlighter":"15.5.0","react-tabs":"3.2.0","react-test-renderer":"17.0.2","reactflow":"^11.11.3","remark-admonitions":"1.2.1","remark-frontmatter":"2.0.0","reset-css":"5.0.1","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0","semver":"7.5.4","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","socket.io-client":"2.4.0","ssri":"10.0.1","string_decoder":"^1.3.0","strip-ansi":"6.0.0","subscriptions-transport-ws":"0.9.18","symlink-dir":"^5.1.1","table":"6.7.3","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ua-parser-js":"0.7.24","unist-util-remove":"2.0.1","unist-util-visit":"2.0.3","url":"^0.11.3","url-join":"4.0.1","url-parse":"1.4.7","user-home":"^3.0.0","util":"^0.12.5","version-selector-type":"3.0.0","vfile":"4.2.0","vscode-icons-js":"11.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","webpack":"5.84.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.0","webpack-manifest-plugin":"5.0.0","webpack-merge":"5.8.0","workbox-webpack-plugin":"7.1.0","ws":"7.5.10","yesno":"0.4.0"},"peerDependencies":{"@apollo/client":"^3.6.0","@teambit/base-react.navigation.link":"2.0.31","@teambit/legacy":"1.0.753","@testing-library/react":"^12.1.5","core-js":"^3.10.0","graphql":"15.8.0","mz":"2.7.0","react":"17.0.2","react-dom":"17.0.2","react-router-dom":"^6.22.3"}},"linkCoreAspects":false,"overrides":{"@types/fs-capacitor":"2.0.0","signal-exit@4":"^4.0.2","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","minio@7.0":"7.1.3"},"rootComponents":true,"nodeVersion":"20.11.1","engineStrict":true,"packageImportMethod":"copy","packageManagerArgs":[],"devFilePatterns":["**/*.spec.ts"],"strictPeerDependencies":true,"autoInstallPeers":true,"savePrefix":"","extraArgs":[],"peerDependencyRules":{"allowAny":["react","react-dom","@testing-library/react","@teambit/legacy","typescript"],"ignoreMissing":[]},"capsuleSelfReference":true},"teambit.preview/preview":{"bundlingStrategy":"component","maxChunkSize":20},"teambit.generator/generator":{"aspects":["teambit.harmony/aspect"]},"teambit.component/issues":{"ignoreIssues":["CircularDependencies","DuplicateComponentAndPackage"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}"}}},"{*/**}":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{}}}},"scopes/harmony/bit":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}","bvm":{"node":"20.11.1"},"bin":{"bbit":"bin/bit"},"engines":{"node":">=18.12.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"}}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/base-react.navigation.link":"2.0.31","@teambit/harmony.content.cli-reference":"^2.0.279","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@apollo/client":"3.6.9","@teambit/legacy":"1.0.753","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","graphql":"15.8.0","browserslist":"4.23.3","reflect-metadata":"0.1.13","monaco-editor":"0.33.0","mz":"2.7.0","react-native-web":"0.14.13","react":"17.0.2","react-dom":"17.0.2","core-js":"3.13.0","postcss":"8.4.18","buffer":"6.0.3","process":"0.11.10","react-router-dom":"6.3.0","typescript":"5.3.3","@parcel/css":"^1.8.3","lightningcss":"^1.20.0","@swc/css":"^0.0.20"},"devDependencies":{},"peerDependencies":{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-","browserslist":"-","graphql":"-","react":"-","react-dom":"-","react-native-web":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/harmony/node":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{"policy":{}}},"components/legacy":{"teambit.pkg/pkg":{}},"components/bit":{"teambit.pkg/pkg":{}},"components/typescript-compiler":{"teambit.pkg/pkg":{}},"scopes/component/sources":{"teambit.pkg/pkg":{}}},"teambit.harmony/bit":"teambit.workspace/workspace"}'),...windowConfig};_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default.id="teambit.preview/preview",_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default.id="teambit.docs/docs",_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default.id="teambit.compositions/compositions",_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default.id="teambit.harmony/pubsub",_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default.id="teambit.react/react",_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default.id="teambit.react/react-native",_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default.id="teambit.explorer/command-bar";function render(...props){return _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__.Harmony.load([_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default,_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default,_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default,_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default,_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default,_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default,_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default],"preview",mergedConfig).then(harmony=>harmony.run().then(()=>harmony.get("teambit.preview/preview")).then(rootExtension=>{const ssrSetup=!isBrowser&&rootExtension.setupSsr,setup=rootExtension.setup,setupFunc=(ssrSetup||setup||function(){}).bind(rootExtension);return Promise.resolve(setupFunc()).then(()=>rootExtension)}).then(rootExtension=>rootExtension.run?rootExtension.run():isBrowser?rootExtension.render("teambit.workspace/workspace",...props):rootExtension.renderSsr("teambit.workspace/workspace",...props)).catch(err=>{throw err}))}isBrowser&&render()},82187:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
93
|
+
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},79271:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},49471:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={PreviewAspect:!0,PreviewRuntime:!0,ENV_PREVIEW_STRATEGY_NAME:!0,COMPONENT_PREVIEW_STRATEGY_NAME:!0};Object.defineProperty(exports,"COMPONENT_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().COMPONENT_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"ENV_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return _strategiesNames().ENV_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(exports,"PreviewAspect",{enumerable:!0,get:function(){return _preview().PreviewAspect}}),Object.defineProperty(exports,"PreviewRuntime",{enumerable:!0,get:function(){return _preview().PreviewRuntime}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _preview().PreviewAspect}});function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}var _events=__webpack_require__(67335);Object.keys(_events).forEach(function(key){key==="default"||key==="__esModule"||Object.prototype.hasOwnProperty.call(_exportNames,key)||key in exports&&exports[key]===_events[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _events[key]}})});function _strategiesNames(){const data=__webpack_require__(87144);return _strategiesNames=function(){return data},data}},2094:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(27060);return _previewModules=function(){return data},data}},22395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},74649:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().linkModules}};function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(91526);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(75752));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(3105));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(32699);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(67166);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(22395);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(67335);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(85216);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(73110);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(2094);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(79271);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(14285);return _sizeEvent=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},85216:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},14285:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(23179);return _pubsub=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},87144:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ENV_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME=void 0;const ENV_PREVIEW_STRATEGY_NAME=exports.ENV_PREVIEW_STRATEGY_NAME="env",COMPONENT_PREVIEW_STRATEGY_NAME=exports.COMPONENT_PREVIEW_STRATEGY_NAME="component"},43979:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},23179:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(43979);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(17796);return _pubsubContext=function(){return data},data}},14339:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PubSubNoParentError=void 0;class PubSubNoParentError extends Error{constructor(){super("could not connect to parent window");this.name="PubSubNoParentError"}}exports.PubSubNoParentError=PubSubNoParentError},17796:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},56646:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},53707:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _uiFoundationUi(){const data=__webpack_require__(92900);return _uiFoundationUi=function(){return data},data}function _eventemitter(){const data=__webpack_require__(42481);return _eventemitter=function(){return data},data}function _penpal(){const data=__webpack_require__(63805);return _penpal=function(){return data},data}function _noParentError(){const data=__webpack_require__(14339);return _noParentError=function(){return data},data}function _pubsub(){const data=__webpack_require__(56646);return _pubsub=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PubsubPreview{constructor(){_defineProperty(this,"_parentPubsub",void 0),_defineProperty(this,"events",new(_eventemitter()).EventEmitter2),_defineProperty(this,"connectToParentPubSub",(retries=10)=>{if(retries<=0)throw new(_noParentError()).PubSubNoParentError;return(0,_penpal().connectToParent)({timeout:300,methods:{pub:this.handleMessageFromParent}}).promise.then(parentPubsub=>this._parentPubsub=parentPubsub).catch(e=>{if(e.code!==_penpal().ErrorCode.ConnectionTimeout)throw e;return this.connectToParentPubSub(retries-1)})}),_defineProperty(this,"handleMessageFromParent",(topic,message)=>{this.events.emit(topic,message)})}sub(topic,callback){const emitter=this.events;return emitter.on(topic,callback),()=>{emitter.off(topic,callback)}}pub(topic,event){this.events.emit(topic,event),this._parentPubsub?.pub(topic,event).catch(err=>{console.error("[Pubsub.preview]",err)})}inIframe(){try{return _uiFoundationUi().isBrowser&&window.self!==window.top}catch{return!1}}static async provider(){const pubsubPreview=new PubsubPreview;return pubsubPreview.inIframe()&&pubsubPreview.connectToParentPubSub().catch(err=>{err instanceof _noParentError().PubSubNoParentError||console.error("[Pubsub.preview]",err)}),pubsubPreview}}__webpack_unused_export__=PubsubPreview,_defineProperty(PubsubPreview,"runtime",_preview().PreviewRuntime),_pubsub().PubsubAspect.addRuntime(PubsubPreview)},38117:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactNativeAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactNativeAspect=exports.ReactNativeAspect=_harmony().Aspect.create({id:"teambit.react/react-native"});var _default=exports.default=ReactNativeAspect},65883:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _react(){const data=__webpack_require__(32750);return _react=function(){return data},data}function _reactNative(){const data=__webpack_require__(38117);return _reactNative=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactNativePreview{constructor(reactPreview,preview){this.reactPreview=reactPreview,this.preview=preview,_defineProperty(this,"registerProvider",this.reactPreview.registerProvider.bind(this.reactPreview)),_defineProperty(this,"getRenderingContext",this.reactPreview.getRenderingContext.bind(this.reactPreview))}static async provider([reactPreview,preview]){const reactNativePreview=new ReactNativePreview(reactPreview,preview);return preview.registerRenderContext(reactNativePreview.getRenderingContext),reactNativePreview}}__webpack_unused_export__=ReactNativePreview,_defineProperty(ReactNativePreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactNativePreview,"slots",[]),_defineProperty(ReactNativePreview,"dependencies",[_react().ReactAspect,_preview().PreviewAspect]),_reactNative().ReactNativeAspect.addRuntime(ReactNativePreview);var _default=__webpack_unused_export__=ReactNativePreview},28547:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=exports.PARAM_NAME=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_ui_component_highlighter_1=__webpack_require__(7238),query_string_1=__importDefault(__webpack_require__(42546)),highlighter_provider_module_scss_1=__importDefault(__webpack_require__(45394));exports.PARAM_NAME="highlighter";const classes={container:highlighter_provider_module_scss_1.default.label};function useHash(){const[hash,setHash]=(0,react_1.useState)(window?window.location.hash:"");return(0,react_1.useEffect)(()=>{const updateHash=()=>{setHash(window.location.hash)};return updateHash(),window.addEventListener("hashchange",updateHash),()=>{window.removeEventListener("hashchange",updateHash)}},[]),hash}const HighlighterProvider=({children})=>{const hash=useHash(),isActive=(0,react_1.useMemo)(()=>{const hashQuery=hash.split("?")[1];return query_string_1.default.parse(hashQuery)[exports.PARAM_NAME]==="true"},[hash]);return react_1.default.createElement(react_ui_component_highlighter_1.ComponentHighlighter,{disabled:!isActive,className:(0,classnames_1.default)(highlighter_provider_module_scss_1.default.highlighter,isActive&&highlighter_provider_module_scss_1.default.active),classes},children)};exports.HighlighterProvider=HighlighterProvider},87656:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HighlighterProvider=void 0;var highlighter_provider_1=__webpack_require__(28547);Object.defineProperty(exports,"HighlighterProvider",{enumerable:!0,get:function(){return highlighter_provider_1.HighlighterProvider}})},32750:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ReactAspect",{enumerable:!0,get:function(){return _react().ReactAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _react().ReactAspect}});function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}},72864:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.ReactAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const ReactAspect=exports.ReactAspect=_harmony().Aspect.create({id:"teambit.react/react"});var _default=exports.default=ReactAspect},28177:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=__webpack_unused_export__=void 0;function _lodash(){const data=_interopRequireDefault(__webpack_require__(11549));return _lodash=function(){return data},data}function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}function _preview(){const data=__webpack_require__(49471);return _preview=function(){return data},data}function _reactUi(){const data=__webpack_require__(87656);return _reactUi=function(){return data},data}function _react(){const data=__webpack_require__(72864);return _react=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ReactPreview{constructor(preview,providerSlot){this.preview=preview,this.providerSlot=providerSlot,_defineProperty(this,"getRenderingContext",({aspectsFilter})=>{let entries=this.providerSlot.toArray();if(aspectsFilter){const allowedAspects=new Set(aspectsFilter);allowedAspects.add(_react().ReactAspect.id),entries=entries.filter(([aspectId])=>allowedAspects.has(aspectId))}return{providers:(0,_lodash().default)(entries.map(([,provider])=>provider))}})}registerProvider(provider){this.providerSlot.register(provider)}static async provider([preview],config,[providerSlot]){const reactPreview=new ReactPreview(preview,providerSlot);return reactPreview.registerProvider([_reactUi().HighlighterProvider]),preview.registerRenderContext(reactPreview.getRenderingContext),reactPreview}}__webpack_unused_export__=ReactPreview,_defineProperty(ReactPreview,"runtime",_preview().PreviewRuntime),_defineProperty(ReactPreview,"slots",[_harmony().Slot.withType()]),_defineProperty(ReactPreview,"dependencies",[_preview().PreviewAspect]),_react().ReactAspect.addRuntime(ReactPreview);var _default=__webpack_unused_export__=ReactPreview},56583:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(55669),_teambit_harmony__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_teambit_harmony__WEBPACK_IMPORTED_MODULE_0__),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(22395),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12825),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(36717),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(56646),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(72864),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(38117),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(98695),_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_preview_runtime_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(74649),_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_preview_runtime_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(90428),_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_preview_runtime_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(61517),_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_preview_runtime_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(53707),_home_circleci_bit_bit_node_modules_teambit_react_dist_react_preview_runtime_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(28177),_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_preview_runtime_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(65883),_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_preview_runtime_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(97996);function generateSlot(length=5){return Array.from(Array(length)).map(()=>Slot.withType())}const isBrowser=typeof window<"u",windowConfig=isBrowser?window.harmonyAppConfig:void 0,mergedConfig={...JSON.parse('{"teambit.workspace/workspace":{"name":"bit","icon":"https://static.bit.dev/bit-logo.svg","defaultScope":"teambit.bit","defaultDirectory":"components","resolveEnvsFromRoots":false},"teambit.dependencies/dependency-resolver":{"packageManager":"teambit.dependencies/pnpm","policy":{"dependencies":{"@babel/core":"7.19.6","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","@babel/types":"7.22.3","@bitdev/node.generators.node-templates":"^2.0.7","@bitdev/react.generators.react-templates":"^2.1.2","@bitdev/symphony.generators.symphony-templates":"^1.0.2","@dagrejs/dagre":"^1.1.2","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"29.3.1","@mdx-js/mdx":"1.6.21","@mdx-js/react":"1.6.22","@monaco-editor/react":"4.4.6","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/client":"11.1.10","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config":"21.8.4","@pnpm/core":"15.3.5","@pnpm/default-reporter":"14.0.3","@pnpm/dependency-path":"5.1.6","@pnpm/error":"6.0.2","@pnpm/fetch":"8.0.7","@pnpm/list":"^10.2.1","@pnpm/lockfile-file":"9.1.3","@pnpm/logger":"5.2.0","@pnpm/modules-yaml":"13.1.7","@pnpm/network.ca-file":"3.0.0","@pnpm/package-store":"20.4.0","@pnpm/parse-overrides":"5.1.1","@pnpm/pick-registry-for-package":"6.0.7","@pnpm/plugin-commands-publishing":"10.0.9","@pnpm/plugin-commands-rebuild":"12.1.0","@pnpm/registry-mock":"3.4.0","@pnpm/reviewing.dependencies-hierarchy":"^3.2.1","@pnpm/semver-diff":"1.1.0","@pnpm/sort-packages":"6.0.8","@pnpm/store-connection-manager":"8.4.0","@pnpm/types":"12.2.0","@pnpm/worker":"1.0.11","@pnpm/workspace.pkgs-graph":"4.0.6","@prerenderer/prerenderer":"^1.2.0","@prerenderer/renderer-jsdom":"^1.1.2","@prerenderer/webpack-plugin":"^5.2.0","@react-hook/latest":"1.0.3","@svgr/webpack":"8.1.0","@teambit/any-fs":"0.0.5","@teambit/base-react.layout.row":"0.0.3","@teambit/base-react.navigation.link":"2.0.31","@teambit/base-react.themes.theme-switcher":"^1.0.2","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"0.0.4","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.0","@teambit/base-ui.graph.tree.recursive-tree":"1.0.0","@teambit/base-ui.graph.tree.root-node":"1.0.0","@teambit/base-ui.graph.tree.tree-context":"1.0.5","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.0","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.1","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.background":"1.0.1","@teambit/base-ui.surfaces.card":"1.0.1","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.0","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.1","@teambit/base-ui.text.paragraph":"1.0.1","@teambit/base-ui.text.text-sizes":"1.0.0","@teambit/base-ui.text.themed-text":"1.0.1","@teambit/base-ui.theme.accent-color":"1.1.0","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.1","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.0","@teambit/base-ui.utils.time-ago":"1.0.1","@teambit/bit.content.what-is-bit":"1.96.2","@teambit/bvm.config":"^0.2.3","@teambit/bvm.path":"^0.1.2","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.5","@teambit/code.ui.code-editor":"^0.0.8","@teambit/code.ui.code-tab-tree":"^0.0.614","@teambit/code.ui.dependency-tree":"0.0.546","@teambit/code.ui.hooks.use-code-params":"0.0.496","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"0.0.502","@teambit/code.ui.queries.get-file-content":"0.0.504","@teambit/code.ui.utils.get-file-icon":"0.0.496","@teambit/community.constants.links":"0.0.2","@teambit/community.starters.hello-world":"^0.0.16","@teambit/compilation.babel-compiler":"^1.1.8","@teambit/compilation.content.compiler-overview":"1.95.0","@teambit/component.content.component-overview":"1.95.0","@teambit/component.content.dev-files":"1.95.9","@teambit/component.instructions.exporting-components":"0.0.7","@teambit/component.ui.artifacts.artifacts-tree":"^0.0.26","@teambit/component.ui.artifacts.models.component-artifacts-model":"^0.0.12","@teambit/component.ui.artifacts.queries.use-component-artifacts":"^0.0.14","@teambit/component.ui.badges.component-count":"^0.0.15","@teambit/component.ui.component-compare.compare-aspects.compare-aspect-view":"^0.0.14","@teambit/component.ui.component-compare.compare-aspects.compare-aspects":"^0.0.147","@teambit/component.ui.component-compare.compare-aspects.context":"^0.0.12","@teambit/component.ui.component-compare.compare-aspects.hooks.use-compare-aspects":"^0.0.118","@teambit/component.ui.component-compare.compare-aspects.models.component-compare-aspects-model":"^0.0.11","@teambit/component.ui.component-compare.hooks.use-component-compare":"^0.0.113","@teambit/component.ui.component-compare.hooks.use-component-compare-url":"^0.0.9","@teambit/component.ui.component-compare.layouts.compare-split-layout-preset":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-change-type":"^0.0.7","@teambit/component.ui.component-compare.models.component-compare-hooks":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-model":"^0.0.111","@teambit/component.ui.component-compare.models.component-compare-state":"^0.0.7","@teambit/component.ui.component-compare.status-resolver":"^0.0.9","@teambit/component.ui.component-compare.utils.group-by-version":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-logs":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-tabs":"^0.0.102","@teambit/component.ui.component-deprecated":"^0.0.39","@teambit/component.ui.component-meta":"^0.0.359","@teambit/component.ui.component-size":"^0.0.77","@teambit/component.ui.component-status":"^0.0.504","@teambit/component.ui.component-status-resolver":"^0.0.510","@teambit/component.ui.component-tooltip":"^0.0.509","@teambit/component.ui.deprecation-icon":"^0.0.509","@teambit/component.ui.hooks.use-fetch-docs":"^0.0.21","@teambit/component.ui.version-label":"^0.0.509","@teambit/compositions.ui.composition-compare":"^0.0.255","@teambit/compositions.ui.composition-compare-section":"^0.0.100","@teambit/compositions.ui.compositions-menu-bar":"^0.0.177","@teambit/compositions.ui.compositions-overview":"^0.0.10","@teambit/compositions.ui.hooks.use-composition":"^0.0.177","@teambit/defender.content.formatter-overview":"1.96.1","@teambit/defender.content.linter-overview":"1.95.0","@teambit/defender.content.tester-overview":"1.95.0","@teambit/defender.eslint-linter":"^1.0.35","@teambit/defender.jest-tester":"^2.0.14","@teambit/defender.prettier-formatter":"1.0.12","@teambit/defender.tester-task":"^1.0.13","@teambit/defender.ui.test-compare-section":"^0.0.100","@teambit/defender.ui.test-loader":"^0.0.504","@teambit/defender.ui.test-row":"^0.0.503","@teambit/defender.ui.test-table":"^0.0.510","@teambit/dependencies.modules.packages-excluder":"^1.0.8","@teambit/dependencies.pnpm.dep-path":"^0.0.2","@teambit/design.buttons.action-button":"^0.0.2","@teambit/design.controls.menu":"^0.0.1","@teambit/design.elements.icon":"1.0.5","@teambit/design.inputs.dropdown":"1.2.16","@teambit/design.inputs.input-text":"1.0.21","@teambit/design.inputs.selectors.multi-select":"0.0.20","@teambit/design.inputs.toggle-button":"0.0.9","@teambit/design.navigation.content-tabs":"0.0.5","@teambit/design.navigation.responsive-navbar":"^0.0.8","@teambit/design.skeletons.base-skeleton":"^0.0.2","@teambit/design.theme.icons-font":"2.0.29","@teambit/design.themes.dark-theme":"1.91.4","@teambit/design.themes.theme-toggler":"0.1.3","@teambit/design.ui.alert-card":"0.0.26","@teambit/design.ui.brand.logo":"1.96.2","@teambit/design.ui.cli-snippet":"0.0.359","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.elements.level-icon":"0.0.20","@teambit/design.ui.empty-box":"0.0.363","@teambit/design.ui.error-page":"0.0.364","@teambit/design.ui.icon-button":"1.0.16","@teambit/design.ui.input.option-button":"1.0.0","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.12","@teambit/design.ui.navigation.link":"^1.96.11","@teambit/design.ui.pages.not-found":"0.0.371","@teambit/design.ui.pages.server-error":"0.0.368","@teambit/design.ui.pages.standalone-not-found-page":"0.0.369","@teambit/design.ui.pill-label":"0.0.356","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.354","@teambit/design.ui.skeletons.sidebar-loader":"0.0.4","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.surfaces.menu.link-item":"1.0.0","@teambit/design.ui.surfaces.menu.section":"^0.0.357","@teambit/design.ui.surfaces.message-card":"0.0.17","@teambit/design.ui.surfaces.status-message-card":"0.0.17","@teambit/design.ui.tree":"0.0.16","@teambit/docs.content.docs-overview":"1.95.9","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.overview-compare":"^1.0.10","@teambit/docs.ui.overview-compare-section":"^0.0.100","@teambit/documenter.code.react-playground":"4.1.9","@teambit/documenter.content.documentation-links":"4.1.3","@teambit/documenter.markdown.hybrid-live-code-snippet":"0.1.12","@teambit/documenter.markdown.mdx":"0.1.13","@teambit/documenter.theme.theme-compositions":"4.1.1","@teambit/documenter.theme.theme-context":"4.0.3","@teambit/documenter.ui.code-snippet":"^4.2.5","@teambit/documenter.ui.copy-box":"4.1.17","@teambit/documenter.ui.heading":"4.1.1","@teambit/documenter.ui.highlighted-text":"4.1.1","@teambit/documenter.ui.label":"4.0.3","@teambit/documenter.ui.label-list":"4.0.3","@teambit/documenter.ui.linked-heading":"4.1.6","@teambit/documenter.ui.paragraph":"4.1.1","@teambit/documenter.ui.property-table":"4.1.10","@teambit/documenter.ui.section":"4.1.1","@teambit/documenter.ui.separator":"4.1.1","@teambit/documenter.ui.sub-title":"4.1.1","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"4.1.13","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.2","@teambit/evangelist.elements.x-button":"1.0.7","@teambit/evangelist.input.checkbox.label":"^1.0.14","@teambit/evangelist.surfaces.dropdown":"1.0.2","@teambit/evangelist.surfaces.tooltip":"1.0.1","@teambit/explorer.plugins.preview-plugin":"^0.0.10","@teambit/explorer.ui.command-bar":"^2.0.15","@teambit/explorer.ui.component-card":"^0.0.30","@teambit/explorer.ui.gallery.base-component-card":"0.0.503","@teambit/explorer.ui.gallery.component-card":"^0.0.513","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/git.modules.git-ignore":"^1.0.2","@teambit/harmony":"0.4.6","@teambit/html.generator.html-templates":"^1.0.12","@teambit/html.modules.inject-html-element":"0.0.5","@teambit/html.modules.render-template":"0.0.104","@teambit/lanes.ui.compare.lane-compare":"^0.0.193","@teambit/lanes.ui.compare.lane-compare-drawer":"^0.0.158","@teambit/lanes.ui.compare.lane-compare-hooks.use-lane-diff-status":"^0.0.144","@teambit/lanes.ui.compare.lane-compare-loader":"^0.0.6","@teambit/lanes.ui.compare.lane-compare-page":"^0.0.162","@teambit/lanes.ui.compare.lane-compare-state":"^0.0.11","@teambit/lanes.ui.icons.lane-icon":"^0.0.9","@teambit/lanes.ui.lane-details":"^0.0.204","@teambit/lanes.ui.menus.lanes-overview-menu":"^0.0.10","@teambit/lanes.ui.models.lanes-model":"^0.0.221","@teambit/lanes.ui.navigation.lane-switcher":"^0.0.225","@teambit/mdx.compilers.mdx-transpiler":"^1.0.6","@teambit/mdx.generator.mdx-templates":"^1.0.11","@teambit/mdx.modules.mdx-loader":"^1.0.14","@teambit/mdx.ui.docs.link":"0.0.500","@teambit/mdx.ui.docs.snippet":"^0.0.509","@teambit/mdx.ui.mdx-layout":"^1.0.9","@teambit/mdx.ui.mdx-scope-context":"^1.0.5","@teambit/node.utils.esm-loader":"^0.0.6","@teambit/pkg.content.packages-overview":"1.95.9","@teambit/preview.modules.preview-modules":"^1.0.3","@teambit/react.content.react-overview":"1.95.0","@teambit/react.generator.react-native-templates":"^1.0.11","@teambit/react.instructions.react-native.adding-tests":"0.0.1","@teambit/react.instructions.react.adding-compositions":"0.0.6","@teambit/react.instructions.react.adding-tests":"0.0.6","@teambit/react.jest.react-jest":"^1.0.32","@teambit/react.rendering.ssr":"0.0.3","@teambit/react.ui.component-highlighter":"0.2.4","@teambit/react.webpack.react-webpack":"^1.0.25","@teambit/scope.content.scope-overview":"1.95.0","@teambit/scope.ui.empty-scope":"^0.0.509","@teambit/scope.ui.hooks.use-scope":"^0.0.453","@teambit/scope.ui.scope-details":"^0.0.526","@teambit/scope.ui.scope-icon":"0.0.91","@teambit/scope.ui.scope-labels":"^0.0.505","@teambit/scope.ui.scope-title":"^0.0.515","@teambit/scopes.scope-descriptor":"^0.0.24","@teambit/scopes.scope-id":"^0.0.7","@teambit/semantics.entities.semantic-schema":"0.0.71","@teambit/tests-results":"^1.0.5","@teambit/typescript.typescript-compiler":"^2.0.42","@teambit/ui-foundation.ui.constants.z-indexes":"^0.0.504","@teambit/ui-foundation.ui.corner":"^0.0.520","@teambit/ui-foundation.ui.empty-component-gallery":"^0.0.508","@teambit/ui-foundation.ui.full-loader":"^0.0.500","@teambit/ui-foundation.ui.get-icon-from-file-name":"^0.0.500","@teambit/ui-foundation.ui.global-loader":"^0.0.502","@teambit/ui-foundation.ui.hooks.use-bind-key":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-data-query":"^0.0.505","@teambit/ui-foundation.ui.hooks.use-in-out-transition":"^0.0.500","@teambit/ui-foundation.ui.hooks.use-is-mobile":"^0.0.198","@teambit/ui-foundation.ui.hooks.use-user-agent":"^0.0.197","@teambit/ui-foundation.ui.is-browser":"^0.0.500","@teambit/ui-foundation.ui.keycap":"^0.0.500","@teambit/ui-foundation.ui.main-dropdown":"^0.0.502","@teambit/ui-foundation.ui.menu":"^0.0.502","@teambit/ui-foundation.ui.menu-widget-icon":"^0.0.502","@teambit/ui-foundation.ui.navigation.react-router-adapter":"^6.1.1","@teambit/ui-foundation.ui.notifications.notification":"^0.0.515","@teambit/ui-foundation.ui.notifications.notification-center":"^0.0.523","@teambit/ui-foundation.ui.notifications.notification-context":"^0.0.501","@teambit/ui-foundation.ui.notifications.store":"^0.0.500","@teambit/ui-foundation.ui.react-router.extend-path":"^0.0.486","@teambit/ui-foundation.ui.react-router.use-query":"^0.0.501","@teambit/ui-foundation.ui.top-bar":"^0.0.514","@teambit/ui-foundation.ui.tree.drawer":"^0.0.518","@teambit/ui-foundation.ui.tree.file-tree":"0.0.524","@teambit/ui-foundation.ui.tree.folder-tree-node":"0.0.510","@teambit/ui-foundation.ui.tree.tree-node":"0.0.515","@teambit/ui-foundation.ui.use-box.back-button":"^0.0.119","@teambit/ui-foundation.ui.use-box.bit-info":"^0.0.128","@teambit/ui-foundation.ui.use-box.bottom-link":"^0.0.119","@teambit/ui-foundation.ui.use-box.dropdown":"^0.0.142","@teambit/ui-foundation.ui.use-box.menu":"^1.0.7","@teambit/ui-foundation.ui.use-box.scope-menu":"^0.0.146","@teambit/ui-foundation.ui.use-box.tab":"^0.0.122","@teambit/ui-foundation.ui.use-box.tab-content":"^0.0.122","@teambit/workspace.content.variants":"1.95.9","@teambit/workspace.content.workspace-overview":"1.95.0","@teambit/workspace.ui.empty-workspace":"^0.0.508","@teambit/workspace.ui.load-preview":"^0.0.504","@teambit/workspace.ui.status":"^0.0.504","@testing-library/jest-dom":"5.16.5","@testing-library/jest-native":"5.4.3","@testing-library/react":"12.1.5","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/classnames":"2.2.11","@types/cors":"2.8.10","@types/didyoumean":"1.2.0","@types/eslint":"8.56.6","@types/eventsource":"^1.1.15","@types/express":"4.17.13","@types/find-root":"1.1.2","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/lodash.orderby":"4.6.6","@types/mdx-js__react":"1.5.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/mousetrap":"1.6.5","@types/node":"14.14.31","@types/pluralize":"0.0.29","@types/react":"^17.0.67","@types/react-dev-utils":"9.0.10","@types/react-dom":"^17.0.21","@types/react-syntax-highlighter":"15.5.10","@types/react-tabs":"2.3.2","@types/socket.io-client":"1.4.35","@types/ssri":"^7.1.5","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/url-parse":"1.4.3","@types/webpack":"5.28.1","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0","ansi-to-html":"0.6.14","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.26.2","apollo-utilities":"1.3.4","archiver":"5.3.1","archy":"1.0.0","assert":"^2.1.0","body-parser":"1.20.2","buffer":"6.0.3","camelcase":"6.2.0","chai-subset":"^1.6.0","classnames":"2.2.6","cli-highlight":"2.1.9","comlink":"4.3.0","command-exists":"1.2.9","compression-webpack-plugin":"11.0.0","copy-to-clipboard":"3.3.1","cors":"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","cross-fetch":"3.1.5","css-minimizer-webpack-plugin":"^6.0.0","didyoumean":"1.2.1","dreidels":"0.6.1","enquirer":"2.3.6","eslint-config-airbnb-typescript":"17.1.0","eslint-import-resolver-node":"0.3.4","eventemitter2":"6.4.4","events":"^3.3.0","eventsource":"^2.0.2","expose-loader":"3.1.0","express":"4.19.2","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1","filenamify":"4.2.0","find-root":"1.1.0","flatted":"3.1.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0","graceful-fs":"4.2.10","graphql-disable-introspection":"^1.2.0","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","history":"5.3.0","html-escaper":"3.0.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","http-proxy-middleware":"^3.0.0","humanize-duration":"3.23.1","humanize-string":"2.1.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","jest":"29.3.1","jest-message-util":"29.3.1","jest-watcher":"29.7.0","json-formatter-js":"2.3.4","junit-report-builder":"3.0.1","less":"^4.1.1","loader-utils":"2.0.4","lodash":"4.17.21","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.orderby":"4.6.0","map-obj":"4.2.1","mime":"2.5.2","mini-css-extract-plugin":"2.2.2","minimatch":"3.0.5","mousetrap":"1.6.5","multimatch":"5.0.0","nerf-dart":"1.0.0","node-pty":"^1.0.0","npm":"6.14.17","p-limit":"3.1.0","p-locate":"5.0.0","parse-package-name":"0.1.0","path-to-regexp":"6.2.0","penpal":"6.2.2","pino-pretty":"9.1.1","pluralize":"8.0.0","postcss":"8.4.45","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2","pretty-bytes":"5.6.0","process":"0.11.10","punycode":"^2.3.1","puppeteer":"13.7.0","query-string":"7.0.0","react-animate-height":"2.0.23","react-dev-utils":"11.0.4","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-native":"^0.64.1","react-syntax-highlighter":"15.5.0","react-tabs":"3.2.0","react-test-renderer":"17.0.2","reactflow":"^11.11.3","remark-admonitions":"1.2.1","remark-frontmatter":"2.0.0","reset-css":"5.0.1","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0","semver":"7.5.4","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","socket.io-client":"2.4.0","ssri":"10.0.1","string_decoder":"^1.3.0","strip-ansi":"6.0.0","subscriptions-transport-ws":"0.9.18","symlink-dir":"^5.1.1","table":"6.7.3","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ua-parser-js":"0.7.24","unist-util-remove":"2.0.1","unist-util-visit":"2.0.3","url":"^0.11.3","url-join":"4.0.1","url-parse":"1.4.7","user-home":"^3.0.0","util":"^0.12.5","version-selector-type":"3.0.0","vfile":"4.2.0","vscode-icons-js":"11.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","webpack":"5.84.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.0","webpack-manifest-plugin":"5.0.0","webpack-merge":"5.8.0","workbox-webpack-plugin":"7.1.0","ws":"7.5.10","yesno":"0.4.0"},"peerDependencies":{"@apollo/client":"^3.6.0","@teambit/base-react.navigation.link":"2.0.31","@teambit/legacy":"1.0.754","@testing-library/react":"^12.1.5","core-js":"^3.10.0","graphql":"15.8.0","mz":"2.7.0","react":"17.0.2","react-dom":"17.0.2","react-router-dom":"^6.22.3"}},"linkCoreAspects":false,"overrides":{"@types/fs-capacitor":"2.0.0","signal-exit@4":"^4.0.2","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","minio@7.0":"7.1.3"},"rootComponents":true,"nodeVersion":"20.11.1","engineStrict":true,"packageImportMethod":"copy","packageManagerArgs":[],"devFilePatterns":["**/*.spec.ts"],"strictPeerDependencies":true,"autoInstallPeers":true,"savePrefix":"","extraArgs":[],"peerDependencyRules":{"allowAny":["react","react-dom","@testing-library/react","@teambit/legacy","typescript"],"ignoreMissing":[]},"capsuleSelfReference":true},"teambit.preview/preview":{"bundlingStrategy":"component","maxChunkSize":20},"teambit.generator/generator":{"aspects":["teambit.harmony/aspect"]},"teambit.component/issues":{"ignoreIssues":["CircularDependencies","DuplicateComponentAndPackage"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}"}}},"{*/**}":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{}}}},"scopes/harmony/bit":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}","bvm":{"node":"20.11.1"},"bin":{"bbit":"bin/bit"},"engines":{"node":">=18.12.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"}}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/base-react.navigation.link":"2.0.31","@teambit/harmony.content.cli-reference":"^2.0.279","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@apollo/client":"3.6.9","@teambit/legacy":"1.0.754","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","@types/react":"^17.0.67","@types/react-dom":"^17.0.21","graphql":"15.8.0","browserslist":"4.23.3","reflect-metadata":"0.1.13","monaco-editor":"0.33.0","mz":"2.7.0","react-native-web":"0.14.13","react":"17.0.2","react-dom":"17.0.2","core-js":"3.13.0","postcss":"8.4.18","buffer":"6.0.3","process":"0.11.10","react-router-dom":"6.3.0","typescript":"5.3.3","@parcel/css":"^1.8.3","lightningcss":"^1.20.0","@swc/css":"^0.0.20"},"devDependencies":{},"peerDependencies":{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-","browserslist":"-","graphql":"-","react":"-","react-dom":"-","react-native-web":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/harmony/node":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{"policy":{}}},"components/legacy":{"teambit.pkg/pkg":{}},"components/bit":{"teambit.pkg/pkg":{}},"components/typescript-compiler":{"teambit.pkg/pkg":{}},"scopes/component/sources":{"teambit.pkg/pkg":{}}},"teambit.harmony/bit":"teambit.workspace/workspace"}'),...windowConfig};_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default.id="teambit.preview/preview",_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default.id="teambit.docs/docs",_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default.id="teambit.compositions/compositions",_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default.id="teambit.harmony/pubsub",_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default.id="teambit.react/react",_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default.id="teambit.react/react-native",_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default.id="teambit.explorer/command-bar";function render(...props){return _teambit_harmony__WEBPACK_IMPORTED_MODULE_0__.Harmony.load([_home_circleci_bit_bit_node_modules_teambit_preview_dist_preview_aspect_js__WEBPACK_IMPORTED_MODULE_1__.default,_home_circleci_bit_bit_node_modules_teambit_docs_dist_docs_aspect_js__WEBPACK_IMPORTED_MODULE_2__.default,_home_circleci_bit_bit_node_modules_teambit_compositions_dist_compositions_aspect_js__WEBPACK_IMPORTED_MODULE_3__.default,_home_circleci_bit_bit_node_modules_teambit_pubsub_dist_pubsub_aspect_js__WEBPACK_IMPORTED_MODULE_4__.default,_home_circleci_bit_bit_node_modules_teambit_react_dist_react_aspect_js__WEBPACK_IMPORTED_MODULE_5__.default,_home_circleci_bit_bit_node_modules_teambit_react_native_dist_react_native_aspect_js__WEBPACK_IMPORTED_MODULE_6__.default,_home_circleci_bit_bit_node_modules_teambit_command_bar_dist_command_bar_aspect_js__WEBPACK_IMPORTED_MODULE_7__.default],"preview",mergedConfig).then(harmony=>harmony.run().then(()=>harmony.get("teambit.preview/preview")).then(rootExtension=>{const ssrSetup=!isBrowser&&rootExtension.setupSsr,setup=rootExtension.setup,setupFunc=(ssrSetup||setup||function(){}).bind(rootExtension);return Promise.resolve(setupFunc()).then(()=>rootExtension)}).then(rootExtension=>rootExtension.run?rootExtension.run():isBrowser?rootExtension.render("teambit.workspace/workspace",...props):rootExtension.renderSsr("teambit.workspace/workspace",...props)).catch(err=>{throw err}))}isBrowser&&render()},82187:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
94
94
|
Copyright (c) 2018 Jed Watson.
|
95
95
|
Licensed under the MIT License (MIT), see
|
96
96
|
http://jedwatson.github.io/classnames
|