PageSourceSearch

https://aibr.org/build/assets/Combination-asPpbgkX.js

js aibr.org collected 2026-09-24 09:33:23 UTC 10,012 bytes, 41 lines download raw bytes

vendor: 4,786 bytes, lines 1-16
1import{a as b,_,b as K}from"./tslib.es6-gPgTONGq.js";import{r as c}from"./app-belrbPXN.js";var N="right-scroll-bar-position",x="width-before-scroll-bar",O="with-scroll-bars-hidden",U="--removed-body-scroll-bar-size";function I(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ee(e,t){var r=c.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var A=new WeakMap;function te(e,t){var r=ee(t||null,function(n){return e.forEach(function(i){return I(i,n)})});return c.useLayoutEffect(function(){var n=A.get(r);if(n){var i=new Set(n),u=new Set(e),l=r.current;i.forEach(function(a){u.has(a)||I(a,null)}),u.forEach(function(a){i.has(a)||I(a,l)})}A.set(r,e)},[e]),r}function re(e){return e}function ne(e,t){t===void 0&&(t=re);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(u){var l=t(u,n);return r.push(l),function(){r=r.filter(function(a){return a!==l})}},assignSyncMedium:function(u){for(n=!0;r.length;){var l=r;r=[],l.forEach(u)}r={push:function(a){return u(a)},filter:function(){return r}}},assignMedium:function(u){n=!0;var l=[];if(r.length){var a=r;r=[],a.forEach(u),l=r}var h=function(){var d=l;l=[],d.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),r={push:function(d){l.push(d),m()},filter:function(d){return l=l.filter(d),r}}}};return i}function ae(e){e===void 0&&(e={});var t=ne(null);return t.options=b({async:!0,ssr:!1},e),t}var F=function(e){var t=e.sideCar,r=_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return c.createElement(n,b({},r))};F.isSideCarExport=!0;function oe(e,t){return e.useMedium(t),F}var j=ae(),X=function(){},W=c.forwardRef(function(e,t){var r=c.useRef(null),n=c.useState({onScrollCapture:X,onWheelCapture:X,onTouchMoveCapture:X}),i=n[0],u=n[1],l=e.forwardProps,a=e.children,h=e.className,m=e.removeScrollBar,d=e.enabled,y=e.shards,C=e.sideCar,p=e.noIsolation,E=e.inert,o=e.allowPinchZoom,s=e.as,v=s===void 0?"div":s,S=e.gapMode,g=_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=C,f=te([r,t]),R=b(b({},g),i);return c.createElement(c.Fragment,null,d&&c.createElement(w,{sideCar:j,removeScrollBar:m,shards:y,noIsolation:p,inert:E,setCallbacks:u,allowPinchZoom:!!o,lockRef:r,gapMode:S}),l?c.cloneElement(c.Children.only(a),b(b({},R),{ref:f})):c.createElement(v,b({},R,{className:h,ref:f}),a))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};W.classNames={fullWidth:x,zeroRight:N};var ce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ce();return t&&e.setAttribute("nonce",t),e}function le(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ue(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var se=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ie())&&(le(t,r),ue(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fe=function(){var e=se();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Q=function(){var e=fe(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},de={left:0,top:0,right:0,gap:0},Y=function(e){return parseInt(e||"",10)||0},ve=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Y(r),Y(n),Y(i)]},he=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return de;var t=ve(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},me=Q(),ge=function(e,t,r,n){var i=e.left,u=e.top,l=e.right,a=e.gap;return r===void 0&&(r="margin"),`
2  .`.concat(O,` {
3   overflow: hidden `).concat(n,`;
4   padding-right: `).concat(a,"px ").concat(n,`;
5  }
6  body {
7    overflow: hidden `).concat(n,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
10    padding-left: `.concat(i,`px;
11    padding-top: `).concat(u,`px;
12    padding-right: `).concat(l,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(a,"px ").concat(n,`;
16    `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(N,` {
20    right: `).concat(a,"px ").concat(n,`;
21  }
22  
23  .`).concat(x,` {
24    margin-right: `).concat(a,"px ").concat(n,`;
25  }
26  
27  .`).concat(N," .").concat(N,` {
28    right: 0 `).concat(n,`;
29  }
30  
31  .`).concat(x," .").concat(x,` {
32    margin-right: 0 `).concat(n,`;
33  }
34  
35  body {
36    `).concat(U,": ").concat(a,`px;
37  }
38`)},Se=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,u=c.useMemo(function(){return he(i)},[i]);return c.createElement(me,{styles:ge(u,!t,i,r?"":"!important")})},D=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{D=!1}var k=D?{passive:!1}:!1,we=function(e){return e.tagName==="TEXTAREA"},G=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!we(e)&&r[t]==="visible")},ye=function(e){return G(e,"overflowY")},be=function(e){return G(e,"overflowX")},H=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=$(e,n);if(i){var u=q(e,n),l=u[1],a=u[2];if(l>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Ce=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},pe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$=function(e,t){return e==="v"?ye(t):be(t)},q=function(e,t){return e==="v"?Ce(t):pe(t)},Ee=function(e,t){return e==="h"&&t==="rtl"?-1:1},Re=function(e,t,r,n,i){var u=Ee(e,window.getComputedStyle(t).direction),l=u*n,a=r.target,h=t.contains(a),m=!1,d=l>0,y=0,C=0;do{var p=q(e,a),E=p[0],o=p[1],s=p[2],v=o-s-u*E;(E||v)&&$(e,a)&&(y+=v,C+=E),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!h&&a!==document.body||h&&(t.contains(a)||t===a));return(d&&(i&&Math.abs(y)<1||!i&&l>y)||!d&&(i&&Math.abs(C)<1||!i&&-l>C))&&(m=!0),m},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},Z=function(e){return e&&"current"in e?e.current:e},ke=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pe=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Me=0,P=[];function Te(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),i=c.useState(Me++)[0],u=c.useState(Q)[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var o=K([e.lockRef.current],(e.shards||[]).map(Z),!0).filter(Boolean);return o.forEach(function(s){return s.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),o.forEach(function(s){return s.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(o,s){if("touches"in o&&o.touches.length===2)return!l.current.allowPinchZoom;var v=L(o),S=r.current,g="deltaX"in o?o.deltaX:S[0]-v[0],w="deltaY"in o?o.deltaY:S[1]-v[1],f,R=o.target,M=Math.abs(g)>Math.abs(w)?"h":"v";if("touches"in o&&M==="h"&&R.type==="range")return!1;var T=H(M,R);if(!T)return!0;if(T?f=M:(f=M==="v"?"h":"v",T=H(M,R)),!T)return!1;if(!n.current&&"changedTouches"in o&&(g||w)&&(n.current=f),!f)return!0;var V=n.current||f;return Re(V,s,o,V==="h"?g:w,!0)},[]),h=c.useCallback(function(o){var s=o;if(!(!P.length||P[P.length-1]!==u)){var v="deltaY"in s?z(s):L(s),S=t.current.filter(function(f){return f.name===s.type&&(f.target===s.target||s.target===f.shadowParent)&&ke(f.delta,v)})[0];if(S&&S.should){s.cancelable&&s.preventDefault();return}if(!S){var g=(l.current.shards||[]).map(Z).filter(Boolean).filter(function(f){return f.contains(s.target)}),w=g.length>0?a(s,g[0]):!l.current.noIsolation;w&&s.cancelable&&s.preventDefault()}}},[]),m=c.useCallback(function(o,s,v,S){var g={name:o,delta:s,target:v,should:S,shadowParent:Be(v)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(w){return w!==g})},1)},[]),d=c.useCallback(function(o){r.current=L(o),n.current=void 0},[]),y=c.useCallback(function(o){m(o.type,z(o),o.target,a(o,e.lockRef.current))},[]),C=c.useCallback(function(o){m(o.type,L(o),o.target,a(o,e.lockRef.current))},[]);c.useEffect(function(){return P.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:C}),document.addEventListener("wheel",h,k),document.addEventListener("touchmove",h,k),document.addEventListener("touchstart",d,k
41),function(){P=P.filter(function(o){return o!==u}),document.removeEventListener("wheel",h,k),document.removeEventListener("touchmove",h,k),document.removeEventListener("touchstart",d,k)}},[]);var p=e.removeScrollBar,E=e.inert;return c.createElement(c.Fragment,null,E?c.createElement(u,{styles:Pe(i)}):null,p?c.createElement(Se,{gapMode:e.gapMode}):null)}function Be(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Le=oe(j,Te);var J=c.forwardRef(function(e,t){return c.createElement(W,b({},e,{ref:t,sideCar:Le}))});J.classNames=W.classNames;const We=J;export{We as R};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.