PageSourceSearch

https://oilnow.gy/assets/Combination-M9phz6y5.js

js oilnow.gy collected 2026-09-24 21:08:27 UTC 16,595 bytes, 41 lines download raw bytes

1import{r as u,j as ge}from"./vendor-clerk-CW4_2MMl.js";import{aE as q,w as ye,P as be}from"./index-GNv_AxU3.js";var j=0;function pt(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Q()),document.body.insertAdjacentElement("beforeend",e[1]??Q()),j++,()=>{j===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),j--}},[])}function Q(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",$={bubbles:!1,cancelable:!0},Ee="FocusScope",Se=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,S]=u.useState(null),b=q(c),g=q(i),f=u.useRef(null),v=ye(t,o=>S(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:A(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||A(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&A(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){ee.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(_,$);a.addEventListener(_,b),a.dispatchEvent(d),d.defaultPrevented||(we(Te(ue(a)),{select:!0}),document.activeElement===o&&A(a))}return()=>{a.removeEventListener(_,b),setTimeout(()=>{const d=new CustomEvent(K,$);a.addEventListener(K,g),a.dispatchEvent(d),d.defaultPrevented||A(o??document.body,{select:!0}),a.removeEventListener(K,g),ee.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Ce(m);
1p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&A(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&A(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return ge.jsx(be.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});Se.displayName=Ee;function we(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(A(r,{select:t}),document.activeElement!==n)return}function Ce(e){const t=ue(e),n=J(t,e),r=J(t.reverse(),e);return[n,r]}function ue(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J(e,t){for(const n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ke(e){return e instanceof HTMLInputElement&&"select"in e}function A(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ke(e)&&t&&e.select()}}var ee=Ae();function Ae(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=te(e,t),e.unshift(t)},remove(t){e=te(e,t),e[0]?.resume()}}}function te(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Te(e){return e.filter(t=>t.tagName!=="A")}var Ne=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},T=new WeakMap,O=new WeakMap,L={},H=0,ie=function(e){return e&&(e.host||ie(e.parentNode))},Me=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ie(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Fe=function(e,t,n,r){var c=Me(t,Array.isArray(e)?e:[e]);L[n]||(L[n]=new WeakMap);var i=L[n],s=[],a=new Set,S=new Set(c),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))g(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(T.get(v)||0)+1,l=(i.get(v)||0)+1;T.set(v,o),i.set(v,l),s.push(v),o===1&&w&&O.set(v,!0),l===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return g(t),a.clear(),H++,function(){s.forEach(function(f){var v=T.get(f)-1,h=i.get(f)-1;T.set(f,v),i.set(f,h),v||(O.has(f)||f.removeAttribute(r),O.delete(f)),h||f.removeAttribute(n)}),H--,H||(T=new WeakMap,T=new WeakMap,O=new WeakMap,L={})}},gt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=Ne(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),Fe(r,c,n,"aria-hidden")):function(){return null}},C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function le(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Pe(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",B="width-before-scroll-bar",Oe="with-scroll-bars-hidden",Le="--removed-body-scroll-bar-size";function V(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xe(e,t){var n=u.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Ie=typeof window<"u"?u.useLayoutEffect:u.useEffect,ne=new WeakMap;function We(e,t){var n=xe(null,function(r){return e.forEach(function(c){return V(c,r)})});return Ie(function(){var r=ne.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;
vendor: 4,172 bytes, lines 1-16
1c.forEach(function(a){i.has(a)||V(a,null)}),i.forEach(function(a){c.has(a)||V(a,s)})}ne.set(n,e)},[e]),n}function Be(e){return e}function De(e,t){t===void 0&&(t=Be);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function Ue(e){e===void 0&&(e={});var t=De(null);return t.options=C({async:!0,ssr:!1},e),t}var se=function(e){var t=e.sideCar,n=le(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,C({},n))};se.isSideCarExport=!0;function je(e,t){return e.useMedium(t),se}var fe=Ue(),X=function(){},D=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:X,onWheelCapture:X,onTouchMoveCapture:X}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=le(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,R=We([n,t]),k=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(E,{sideCar:fe,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},k),{ref:R})):u.createElement(m,C({},k,{className:S,ref:R}),a))});D.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};D.classNames={fullWidth:B,zeroRight:W};var _e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ke(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_e();return t&&e.setAttribute("nonce",t),e}function He(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ve(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ke())&&(He(t,n),Ve(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ye=function(){var e=Xe();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},de=function(){var e=Ye(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Ge={left:0,top:0,right:0,gap:0},Y=function(e){return parseInt(e||"",10)||0},ze=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[Y(n),Y(r),Y(c)]},Ze=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ge;var t=ze(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qe=de(),F="data-scroll-locked",Qe=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Oe,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(a,"px ").concat(r,`;
5  }
6  body[`).concat(F,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(c,`px;
11    padding-top: `).concat(i,`px;
12    padding-right: `).concat(s,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(a,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(W,` {
20    right: `).concat(a,"px ").concat(r,`;
21  }
22  
23  .`).concat(B,` {
24    margin-right: `).concat(a,"px ").concat(r,`;
25  }
26  
27  .`).concat(W," .").concat(W,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(B," .").concat(B,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(F,`] {
36    `).concat(Le,": ").concat(a,`px;
37  }
38`)},re=function(){var e=parseInt(document.body.getAttribute(F)||"0",10);return isFinite(e)?e:0},$e=function(){u.useEffect(function(){return document.body.setAttribute(F,(re()+1).toString()),function(){var e=re()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},Je=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;$e();var i=u.useMemo(function(){return Ze(c)},[c]);return u.createElement(qe,{styles:Qe(i,!t,c,n?"":"!important")})},G=!1;if(typeof window<"u")try{var x=Object.defineProperty({},"passive",{get:function(){return G=!0,!0}});window.addEventListener("test",x,x),window.removeEventListener("test",x,x)}catch{G=!1}var N=G?{passive:!1}:!1,et=function(e){return e.tagName==="TEXTAREA"},ve=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!et(e)&&n[t]==="visible")},tt=function(e){return ve(e,"overflowY")},nt=function(e){return ve(e,"overflowX")},ae=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=he(e,r);if(c){var i=me(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},at=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},he=function(e,t){return e==="v"?tt(t):nt(t)},me=function(e,t){return e==="v"?rt(t):at(t)},ot=function(e,t){return e==="h"&&t==="rtl"?-1:1},ct=function(e,t,n,r,c){var i=ot(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,S=t.contains(a),b=!1,g=s>0,f=0,v=0;do{if(!a)break;var h=me(e,a),w=h[0],o=h[1],l=h[2],d=o-l-i*w;(w||d)&&he(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!S&&a!==document.body||S&&(t.contains(a)||t===a));return(g&&Math.abs(f)<1||!g&&Math.abs(v)<1)&&(b=!0),b},I=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oe=function(e){return[e.deltaX,e.deltaY]},ce=function(e){return e&&"current"in e?e.current:e},ut=function(e,t){return e[0]===t[0]&&e[1]===t[1]},it=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},lt=0,M=[];function st(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(lt++)[0],i=u.useState(de)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var o=Pe([e.lockRef.current],(e.shards||[]).map(ce),!0).filter(Boolean);return o.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),o.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(o,l){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!s.current.allowPinchZoom;var d=I(o),m=n.current,p="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],E,R=o.target,k=Math.abs(p)>Math.abs(y)?"h":"v";if("touches"in o&&k==="h"&&R.type==="range")return!1;var z=window.getSelection(),U=z&&z.anchorNode,pe=U?U===R||U.contains(R):!1;if(pe)return!1;var P=ae(k,R);if(!P)return!0;if(P?E=k:(E=k==="v"?"h":"v",P=ae(k,R)),!P)return!1;if(!r.current&&"changedTouches"in o&&(p||y)&&(r.current=E),!E)return!0;var Z=r.current||E;return ct(Z,l,o,Z==="h"?p:y)},[]),S=u.useCallback(function(o){var l=o;if(!(!M.length||M[M.length-1]!==i)){var d="deltaY"in l?oe(l):I(l),m=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&ut(E.delta,d)})[0];if(m&&m.should){l.cancelable&&l.preventDefault();return}
vendor: 1,522 bytes, line 41
41if(!m){var p=(s.current.shards||[]).map(ce).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=p.length>0?a(l,p[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(o,l,d,m){var p={name:o,delta:l,target:d,should:m,shadowParent:ft(d)};t.current.push(p),setTimeout(function(){t.current=t.current.filter(function(y){return y!==p})},1)},[]),g=u.useCallback(function(o){n.current=I(o),r.current=void 0},[]),f=u.useCallback(function(o){b(o.type,oe(o),o.target,a(o,e.lockRef.current))},[]),v=u.useCallback(function(o){b(o.type,I(o),o.target,a(o,e.lockRef.current))},[]);u.useEffect(function(){return M.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",S,N),document.addEventListener("touchmove",S,N),document.addEventListener("touchstart",g,N),function(){M=M.filter(function(o){return o!==i}),document.removeEventListener("wheel",S,N),document.removeEventListener("touchmove",S,N),document.removeEventListener("touchstart",g,N)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:it(c)}):null,h?u.createElement(Je,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ft(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dt=je(fe,st);var vt=u.forwardRef(function(e,t){return u.createElement(D,C({},e,{ref:t,sideCar:dt}))});vt.classNames=D.classNames;export{Se as F,vt as R,gt as h,pt as u};

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.