;/*FB_PKG_DELIM*/

__d("BaseFlexibleGrid.react",["DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE","react","stylex","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useLayoutEffect,l=b.useRef,m=b.useState,n={grid:{alignContent:"x8gbvx8",display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",justifyContent:"x1nhvcw1",marginTop:"x1rdy4ex",marginEnd:"xcud41i",marginBottom:"x4vbgl9",marginStart:"x139jcc6",$$css:!0},gridJustifyCenter:{justifyContent:"xl56j7k",$$css:!0},item:{boxSizing:"x9f619",display:"x78zum5",flexBasis:"x1r8uery",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",paddingEnd:"x150jy0e",paddingStart:"x1e558r4",visibility:"xlshs6z",$$css:!0},itemVisible:{paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",visibility:"xnpuxes",$$css:!0}};function a(a){var b=a.columnMaxWidth,d=a.columnMinWidth,e=a.justify;e=e===void 0?"start":e;var f=a.maxItems;f=f===void 0?Infinity:f;var g=a.minItems,i=g===void 0?1:g,o=a.onTotalItemsChanged;g=a.xstyle;var p=j.Children.toArray(a.children);a=m(p.length);var q=a[0],r=a[1],s=l(null);k(function(){function a(a){a!==q&&(o&&o(a),r(a))}function b(){if(s.current!=null){var b=s.current.children;if(i<1||i>b.length){a(b.length);return}var c=b[i-1].offsetTop;for(var d=i;d<b.length;d++)if(b[d].offsetTop>c){a(d);return}a(b.length)}}b();window.addEventListener("resize",b);return function(){window.removeEventListener("resize",b)}},[b,d,i,f,q,o]);if(i>f)throw c("unrecoverableViolation")("minItems must be less than maxItems","comet_ui");a=Math.min(Math.max(i,p.length+(e!=="center"?10:0)),f);return j.jsx("div",{className:(h||(h=c("stylex")))(n.grid,e==="center"&&n.gridJustifyCenter,g),ref:s,role:"list",children:Array(a).fill().map(function(a,e){a=p[e];var f=e<q;return j.jsx("div",{className:(h||(h=c("stylex")))(n.item,f&&n.itemVisible),role:"listitem",style:{maxWidth:b,minWidth:d},children:f?a:null},(a=(f=c("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(a))==null?void 0:f.key)!=null?a:e)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("FriendingCometMainTabViewLeftRailSettingsMenuQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4450177725086416"}),null);