PageSourceSearch

https://theorg.com/_next/static/chunks/7251-af49f9568f3831a8.js

js theorg.com collected 2026-10-01 08:23:35 UTC 15,320 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1827,4823,7251],{37880:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(){throw Error("Static Class")}return t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_CONNECTION_TERMINATE="connection_terminate",t.GQL_START="start",t.GQL_DATA="data",t.GQL_ERROR="error",t.GQL_COMPLETE="complete",t.GQL_STOP="stop",t.SUBSCRIPTION_START="subscription_start",t.SUBSCRIPTION_DATA="subscription_data",t.SUBSCRIPTION_SUCCESS="subscription_success",t.SUBSCRIPTION_FAIL="subscription_fail",t.SUBSCRIPTION_END="subscription_end",t.INIT="init",t.INIT_SUCCESS="init_success",t.INIT_FAIL="init_fail",t.KEEP_ALIVE="keepalive",t}()},50637:()=>{},58019:(t,e,o)=>{"use strict";o.d(e,{R:()=>c});var n=o(17318),r=o(60427),i=o(20996),l=o(37510),s=o(67994);function c(t,e){var o=r.useRef(!1),c=(0,s.m)(null==e?void 0:e.client);(0,l.D$)(t,l.KG.Subscription);var a=r.useState({loading:!(null==e?void 0:e.skip),error:void 0,data:void 0,variables:null==e?void 0:e.variables}),u=a[0],h=a[1];!o.current&&(o.current=!0,(null==e?void 0:e.onSubscriptionData)&&!1!==globalThis.__DEV__&&n.V1.warn(e.onData?52:53),(null==e?void 0:e.onSubscriptionComplete)&&!1!==globalThis.__DEV__&&n.V1.warn(e.onComplete?54:55));var p=r.useState(function(){return(null==e?void 0:e.skip)?null:c.subscribe({query:t,variables:null==e?void 0:e.variables,fetchPolicy:null==e?void 0:e.fetchPolicy,context:null==e?void 0:e.context})}),d=p[0],f=p[1],v=r.useRef(!1);r.useEffect(function(){return function(){v.current=!0}},[]);var m=r.useRef({client:c,subscription:t,options:e});return r.useEffect(function(){var o,n,r,l,s=null==e?void 0:e.shouldResubscribe;"function"==typeof s&&(s=!!s(e)),(null==e?void 0:e.skip)?(!(null==e?void 0:e.skip)!=!(null==(o=m.current.options)?void 0:o.skip)||v.current)&&(h({loading:!1,data:void 0,error:void 0,variables:null==e?void 0:e.variables}),f(null),v.current=!1):(!1!==s&&(c!==m.current.client||t!==m.current.subscription||(null==e?void 0:e.fetchPolicy)!==(null==(n=m.current.options)?void 0:n.fetchPolicy)||!(null==e?void 0:e.skip)!=!(null==(r=m.current.options)?void 0:r.skip)||!(0,i.L)(null==e?void 0:e.variables,null==(l=m.current.options)?void 0:l.variables))||v.current)&&(h({loading:!0,data:void 0,error:void 0,variables:null==e?void 0:e.variables}),f(c.subscribe({query:t,variables:null==e?void 0:e.variables,fetchPolicy:null==e?void 0:e.fetchPolicy,context:null==e?void 0:e.context})),v.current=!1),Object.assign(m.current,{client:c,subscription:t,options:e})},[c,t,e,v.current]),r.useEffect(function(){if(d){var t=!1,o=d.subscribe({next:function(o){if(!t){var n,r,i={loading:!1,data:o.data,error:void 0,variables:null==e?void 0:e.variables};h(i),(null==(n=m.current.options)?void 0:n.onData)?m.current.options.onData({client:c,data:i}):(null==(r=m.current.options)?void 0:r.onSubscriptionData)&&m.current.options.onSubscriptionData({client:c,subscriptionData:i})}},error:function(o){var n,r;t||(h({loading:!1,data:void 0,error:o,variables:null==e?void 0:e.variables}),null==(r=null==(n=m.current.options)?void 0:n.onError)||r.call(n,o))},complete:function(){var e,o;!t&&((null==(e=m.current.options)?void 0:e.onComplete)?m.current.options.onComplete():(null==(o=m.current.options)?void 0:o.onSubscriptionComplete)&&m.current.options.onSubscriptionComplete())}});return function(){t=!0,setTimeout(function(){o.unsubscribe()})}}},[d]),u}},65422:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(14232),r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},i=function(){return(i=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},l="Pixel",s="Percent",c={unit:s,value:.8};function a(t){return"number"==typeof t?{unit:s,value:100*t}:"string"==typeof t?t.match(/^(\d*(\.\d+)?)px$/)?{unit:l,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:s,value:parseFloat(t)}
1:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),c):(console.warn("scrollThreshold should be string or number"),c)}let u=function(t){function e(){this.constructor=o}function o(e){var o=t.call(this,e)||this;return o.lastScrollTop=0,o.actionTriggered=!1,o.startY=0,o.currentY=0,o.dragging=!1,o.maxPullDownDistance=0,o.getScrollableTarget=function(){return o.props.scrollableTarget instanceof HTMLElement?o.props.scrollableTarget:"string"==typeof o.props.scrollableTarget?document.getElementById(o.props.scrollableTarget):(null===o.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},o.onStart=function(t){!o.lastScrollTop&&(o.dragging=!0,t instanceof MouseEvent?o.startY=t.pageY:t instanceof TouchEvent&&(o.startY=t.touches[0].pageY),o.currentY=o.startY,o._infScroll&&(o._infScroll.style.willChange="transform",o._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},o.onMove=function(t){!o.dragging||(t instanceof MouseEvent?o.currentY=t.pageY:t instanceof TouchEvent&&(o.currentY=t.touches[0].pageY),o.currentY<o.startY||(o.currentY-o.startY>=Number(o.props.pullDownToRefreshThreshold)&&o.setState({pullToRefreshThresholdBreached:!0}),!(o.currentY-o.startY>1.5*o.maxPullDownDistance)&&o._infScroll&&(o._infScroll.style.overflow="visible",o._infScroll.style.transform="translate3d(0px, "+(o.currentY-o.startY)+"px, 0px)")))},o.onEnd=function(){o.startY=0,o.currentY=0,o.dragging=!1,o.state.pullToRefreshThresholdBreached&&(o.props.refreshFunction&&o.props.refreshFunction(),o.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){o._infScroll&&(o._infScroll.style.overflow="auto",o._infScroll.style.transform="none",o._infScroll.style.willChange="unset")})},o.onScrollListener=function(t){"function"==typeof o.props.onScroll&&setTimeout(function(){return o.props.onScroll&&o.props.onScroll(t)},0);var e=o.props.height||o._scrollableNode?t.target:document.documentElement.scrollTop?document.documentElement:document.body;o.actionTriggered||((o.props.inverse?o.isElementAtTop(e,o.props.scrollThreshold):o.isElementAtBottom(e,o.props.scrollThreshold))&&o.props.hasMore&&(o.actionTriggered=!0,o.setState({showLoader:!0}),o.props.next&&o.props.next()),o.lastScrollTop=e.scrollTop)},o.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:e.dataLength},o.throttledOnScrollListener=(function(t,e,o,n){var r,i=!1,l=0;function s(){r&&clearTimeout(r)}function c(){var c=this,a=Date.now()-l,u=arguments;function h(){l=Date.now(),o.apply(c,u)}i||(n&&!r&&h(),s(),void 0===n&&a>t?h():!0!==e&&(r=setTimeout(n?function(){r=void 0}:h,void 0===n?t-a:t)))}return"boolean"!=typeof e&&(n=o,o=e,e=void 0),c.cancel=function(){s(),i=!0},c})(150,o.onScrollListener).bind(o),o.onStart=o.onStart.bind(o),o.onMove=o.onMove.bind(o),o.onEnd=o.onEnd.bind(o),o}return r(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e),o.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},o.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)
1))},o.prototype.componentDidUpdate=function(t){this.props.dataLength!==t.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},o.getDerivedStateFromProps=function(t,e){return t.dataLength!==e.prevDataLength?i(i({},e),{prevDataLength:t.dataLength}):null},o.prototype.isElementAtTop=function(t,e){void 0===e&&(e=.8);var o=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,n=a(e);return n.unit===l?t.scrollTop<=n.value+o-t.scrollHeight+1:t.scrollTop<=n.value/100+o-t.scrollHeight+1},o.prototype.isElementAtBottom=function(t,e){void 0===e&&(e=.8);var o=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,n=a(e);return n.unit===l?t.scrollTop+o>=t.scrollHeight-n.value:t.scrollTop+o>=n.value/100*t.scrollHeight},o.prototype.render=function(){var t=this,e=i({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),o=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),r=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return n.createElement("div",{style:r,className:"infinite-scroll-component__outerdiv"},n.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(e){return t._infScroll=e},style:e},this.props.pullDownToRefresh&&n.createElement("div",{style:{position:"relative"},ref:function(e){return t._pullDown=e}},n.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!o&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},o}(n.Component)},78248:(t,e,o)=>{"use strict";o.d(e,{_:()=>a});var n=o(20095),r=o(60427),i=o(18877),l=o(670),s=o(67994),c=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function a(t,e){var o,a=r.useRef(),u=r.useRef(),h=r.useRef(),p=(0,i.l)(e,a.current||{}
1),d=null!=(o=null==p?void 0:p.query)?o:t;u.current=e,h.current=d;var f=(0,l.k)((0,s.m)(e&&e.client),d),v=f.useQuery((0,n.Cl)((0,n.Cl)({},p),{skip:!a.current})),m=v.observable.options.initialFetchPolicy||f.getDefaultFetchPolicy(),g=Object.assign(v,{called:!!a.current}),b=r.useMemo(function(){for(var t={},e=0;e<c.length;e++)!function(e){var o=g[e];t[e]=function(){return a.current||(a.current=Object.create(null),f.forceUpdateState()),o.apply(this,arguments)}}(c[e]);return t},[]);return Object.assign(g,b),[r.useCallback(function(t){a.current=t?(0,n.Cl)((0,n.Cl)({},t),{fetchPolicy:t.fetchPolicy||m}):{fetchPolicy:m};var e=(0,i.l)(u.current,(0,n.Cl)({query:h.current},a.current)),o=f.executeQuery((0,n.Cl)((0,n.Cl)({},e),{skip:!1})).then(function(t){return Object.assign(t,b)});return o.catch(function(){}),o},[]),g]}},98098:(t,e,o)=>{"use strict";function n(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function r(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function i(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var o,n=getComputedStyle(t,null);return r(n.overflowY,e)||r(n.overflowX,e)||!!(o=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t))&&(o.clientHeight<t.scrollHeight||o.clientWidth<t.scrollWidth)}return!1}function l(t,e,o,n,r,i,l,s){return i<t&&l>e||i>t&&l<e?0:i<=t&&s<=o||l>=e&&s>=o?i-t-n:l>e&&s<o||i<t&&s>o?l-e+r:0}o.d(e,{A:()=>a});var s=function(t,e){var o=window,r=e.scrollMode,s=e.block,c=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,h="function"==typeof a?a:function(t){return t!==a};if(!n(t))throw TypeError("Invalid target");for(var p,d,f=document.scrollingElement||document.documentElement,v=[],m=t;n(m)&&h(m);){if((m=null==(d=(p=m).parentElement)?p.getRootNode().host||null:d)===f){v.push(m);break}null!=m&&m===document.body&&i(m)&&!i(document.documentElement)||null!=m&&i(m,u)&&v.push(m)}for(var g=o.visualViewport?o.visualViewport.width:innerWidth,b=o.visualViewport?o.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,y=t.getBoundingClientRect(),_=y.height,w=y.width,S=y.top,L=y.right,C=y.bottom,D=y.left,O="start"===s||"nearest"===s?S:"end"===s?C:S+_/2,R="center"===c?D+w/2:"end"===c?L:D,N=[],I=0;I<v.length;I++){var M=v[I],P=M.getBoundingClientRect(),k=P.height,Y=P.width,H=P.top,x=P.right,A=P.bottom,B=P.left;if("if-needed"===r&&S>=0&&D>=0&&C<=b&&L<=g&&S>=H&&C<=A&&D>=B&&L<=x)break;var W=getComputedStyle(M),j=parseInt(W.borderLeftWidth,10),Q=parseInt(W.borderTopWidth,10),V=parseInt(W.borderRightWidth,10),F=parseInt(W.borderBottomWidth,10),G=0,U=0,q="offsetWidth"in M?M.offsetWidth-M.clientWidth-j-V:0,K="offsetHeight"in M?M.offsetHeight-M.clientHeight-Q-F:0,X="offsetWidth"in M?0===M.offsetWidth?0:Y/M.offsetWidth:0,$="offsetHeight"in M?0===M.offsetHeight?0:k/M.offsetHeight:0;if(f===M)G="start"===s?O:"end"===s?O-b:"nearest"===s?l(E,E+b,b,Q,F,E+O,E+O+_,_):O-b/2,U="start"===c?R:"center"===c?R-g/2:"end"===c?R-g:l(T,T+g,g,j,V,T+R,T+R+w,w),G=Math.max(0,G+E),U=Math.max(0,U+T);else{G="start"===s?O-H-Q:"end"===s?O-A+F+K:"nearest"===s?l(H,A,k,Q,F+K,O,O+_,_):O-(H+k/2)+K/2,U="start"===c?R-B-j:"center"===c?R-(B+Y/2)+q/2:"end"===c?R-x+V+q:l(B,x,Y,j,V+q,R,R+w,w);var z=M.scrollLeft,J=M.scrollTop;O+=J-(G=Math.max(0,Math.min(J+G/$,M.scrollHeight-k/$+K))),R+=z-(U=Math.max(0,Math.min(z+U/X,M.scrollWidth-Y/X+q)))}N.push({el:M,top:G,left:U})}return N};function c(t){return t===Object(t)&&0!==Object.keys(t).length}let a=function(t,e){var o=t.isConnected||t.ownerDocument.documentElement.contains(t);if(c(e)&&"function"==typeof e.behavior)return e.behavior(o?s(t,e):[]);if(o){var n,r,i,l=!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"};return n=s(t,l),void 0===(r=l.behavior)&&(r="auto"),i="scrollBehavior"in document.body.style,void n.forEach(function(t){var e=t.el,o=t.top,n=t.left;e.scroll&&i?e.scroll({top:o,left:n,behavior:r}):(e.scrollTop=o,e.scrollLeft=n)})}}}}]);

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.