PageSourceSearch

https://thedataschool.co.uk/463c400049cbfdd14f898fba69d967c9e731d23c-a63cdca7003b719f0016.js

js thedataschool.co.uk collected 2026-10-02 03:39:18 UTC 8,797 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkthe_data_school_v2=self.webpackChunkthe_data_school_v2||[]).push([[327],{24158:function(e,t,n){n.d(t,{I:function(){return o}});var r=n(26026);function o(e,t,n){var o;if("string"==typeof e){var i=document;t&&((0,r.k)(Boolean(t.current),"Scope provided, but no element detected."),i=t.current),n?(null!==(o=n[e])&&void 0!==o||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}},17946:function(e,t,n){n.d(t,{v:function(){return K}});var r,o=n(4942),i=n(45987),a=n(64001),c=n(7374),f=n(67294),l=n(26026),s=n(24158),u=new WeakMap;function d(e){var t,n=e.target,r=e.contentRect,o=e.borderBoxSize;null===(t=u.get(n))||void 0===t||t.forEach((function(e){e({target:n,contentSize:r,get size(){return function(e,t){if(t){var n=t[0];return{width:n.inlineSize,height:n.blockSize}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(n,o)}})}))}function g(e){e.forEach(d)}function v(e,t){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(g));var n=(0,s.I)(e);return n.forEach((function(e){var n=u.get(e);n||(n=new Set,u.set(e,n)),n.add(t),null==r||r.observe(e)})),function(){n.forEach((function(e){var n=u.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==r||r.unobserve(e)}))}}var h,p=new Set;function y(e){return p.add(e),h||(h=function(){var e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};p.forEach((function(e){return e(t)}))},window.addEventListener("resize",h)),function(){p.delete(e),!p.size&&h&&(h=void 0)}}var m=n(39e3),w=n(85967),b=50,O=function(){return{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}},E={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function x(e,t,n,r){var o=n[t],i=E[t],a=i.length,c=i.position,f=o.current,l=n.time;o.current=e["scroll".concat(c)],o.scrollLength=e["scroll".concat(a)]-e["client".concat(a)],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,m.Y)(0,o.scrollLength,o.current);var s=r-l;o.velocity=s>b?0:(0,w.R)(o.current-f,s)}var L=n(93433);var S={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},W={start:0,center:.5,end:1};function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(e in W&&(e=W[e]),"string"==typeof e){var o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return"number"==typeof e&&(r=t*e),n+r}var z=[0,0];function P(e,t,n,r){var o=Array.isArray(e)?e:z;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,W[e]?e:"0"]),B(o[0],n,r)-B(o[1],t)}var j=n(27183),A=n(81954),k={x:0,y:0};function H(e,t,n){var r=n.offset,o=void 0===r?S.All:r,i=n.target,a=void 0===i?e:i,c=n.axis,f=void 0===c?"y":c,l="y"===f?"height":"width",s=a!==e?function(e,t){for(var n={x:0,y:0},r=e;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){var o=r.getBoundingClientRect(),i=(r=r.parentElement).getBoundingClientRect();n.x+=o.left-i.left,n.y+=o.top-i.top}else{if(!(r instanceof SVGGraphicsElement))break;var a=r.getBBox(),c=a.x,f=a.y;n.x+=c,n.y+=f;for(var l=null,s=r.parentNode;!l;)"svg"===s.tagName&&(l=s),s=r.parentNode;r=l}return n}(a,e):k,u=a===e?{width:e.scrollWidth,height:e.scrollHeight}:function(e){return"getBBox"in e&&"svg"!==e.tagName?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}(a),d={width:e.clientWidth,height:e.clientHeight};t[f].offset.length=0;for(var g=!t[f].interpolate,v=o.length,h=0;h<v;h++){var p=P(o[h],d[l],u[l],s[f]);g||p===t[f].interpolatorOffsets[h]||(g=!0),t[f].offset[h]=p}g&&(t[f].interpolate=(0,j.s)(t[f].offset,(0,A.Y)(o)),t[f].interpolatorOffsets=(0,L.Z)(t[f].offset)),t[f].progress=t[f].interpolate(t[f].current)}
1function X(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{measure:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e)for(var r=t;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent;n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}(e,r.target,n)},update:function(t){!function(e,t,n){x(e,"x",t,n),x(e,"y",t,n),t.time=n}(e,n,t),(r.offset||r.target)&&H(e,n,r)},notify:function(){return t(n)}}}var Y=n(10851),M=["container"];function N(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T=new WeakMap,_=new WeakMap,C=new WeakMap,I=function(e){return e===document.documentElement?window:e};function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.container,r=void 0===n?document.documentElement:n,o=(0,i.Z)(t,M),a=C.get(r);a||(a=new Set,C.set(r,a));var c,f,l=O(),s=X(r,e,l,o);if(a.add(s),!T.has(r)){var u=function(){var e,t=N(a);try{for(t.s();!(e=t.n()).done;){e.value.measure()}}catch(n){t.e(n)}finally{t.f()}},d=function(){var e,t=N(a);try{for(t.s();!(e=t.n()).done;){e.value.update(Y.w0.timestamp)}}catch(n){t.e(n)}finally{t.f()}},g=function(){var e,t=N(a);try{for(t.s();!(e=t.n()).done;){e.value.notify()}}catch(n){t.e(n)}finally{t.f()}},h=function(){Y.Wi.read(u,!1,!0),Y.Wi.read(d,!1,!0),Y.Wi.update(g,!1,!0)};T.set(r,h);var p=I(r);window.addEventListener("resize",h,{passive:!0}),r!==document.documentElement&&_.set(r,(f=h,"function"==typeof(c=r)?y(c):v(c,f))),p.addEventListener("scroll",h,{passive:!0})}var m=T.get(r);return Y.Wi.read(m,!1,!0),function(){var e;(0,Y.Pn)(m);var t=C.get(r);if(t&&(t.delete(s),!t.size)){var n=T.get(r);T.delete(r),n&&(I(r).removeEventListener("scroll",n),null===(e=_.get(r))||void 0===e||e(),window.removeEventListener("resize",n))}}}var Z=n(26162),G=["container","target","layoutEffect"];function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t){(0,l.K)(Boolean(!t||t.current),"You have defined a ".concat(e," options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its `layoutEffect: false` option."))}var J=function(){return{scrollX:(0,a.BX)(0),scrollY:(0,a.BX)(0),scrollXProgress:(0,a.BX)(0),scrollYProgress:(0,a.BX)(0)}};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.target,r=e.layoutEffect,o=void 0===r||r,a=(0,i.Z)(e,G),l=(0,c.h)(J);return(o?Z.L:f.useEffect)((function(){return F("target",n),F("container",t),D((function(e){var t=e.x,n=e.y;l.scrollX.set(t.current),l.scrollXProgress.set(t.progress),l.scrollY.set(n.current),l.scrollYProgress.set(n.progress)}),V(V({},a),{},{container:(null==t?void 0:t.current)||void 0,target:(null==n?void 0:n.current)||void 0}))}),[t,n,JSON.stringify(a.offset)]),l}}}]);
2//# sourceMappingURL=463c400049cbfdd14f898fba69d967c9e731d23c-a63cdca7003b719f0016.js.map

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.