PageSourceSearch

https://www.goafricaonline.com/build-manifest/6126.306ea5c0f053771646a1.js

js goafricaonline.com collected 2026-09-24 10:00:46 UTC 25,022 bytes, 2 lines download raw bytes

1/*! For license information please see 6126.306ea5c0f053771646a1.js.LICENSE.txt */
2"use strict";(self.webpackChunkgoafrica=self.webpackChunkgoafrica||[]).push([[6126],{26126:function(n,t,e){e.r(t),e.d(t,{TransformComponent:function(){return ln},TransformWrapper:function(){return rn},useTransformContext:function(){return cn}});var o=e(67294),i=function(n,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])},i(n,t)};var a=function(){return a=Object.assign||function(n){for(var t,e=1,o=arguments.length;e<o;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},a.apply(this,arguments)};function r(n,t,e){if(e||2===arguments.length)for(var o,i=0,a=t.length;i<a;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return n.concat(o||t)}var s=function(n,t){return Number(n.toFixed(t))},u=function(n,t,e){e&&"function"==typeof e&&e(n,t)},l={easeOut:function(n){return-Math.cos(n*Math.PI)/2+.5},linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:(4-2*n)*n-1},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}},c=function(n){"number"==typeof n&&cancelAnimationFrame(n)},p=function(n){n.mounted&&(c(n.animation),n.animate=!1,n.animation=null,n.velocity=null)};function f(n,t,e,o){if(n.mounted){var i=(new Date).getTime();p(n),n.animation=function(){if(!n.mounted)return c(n.animation);var a=(new Date).getTime()-i,r=a/e,s=(0,l[t])(r);a>=e?(o(1),n.animation=null):n.animation&&(o(s),requestAnimationFrame(n.animation))},requestAnimationFrame(n.animation)}}function m(n,t,e,o){var i=function(n){var t=n.scale,e=n.positionX,o=n.positionY;if(isNaN(t)||isNaN(e)||isNaN(o))return!1;return!0}(t);if(n.mounted&&i){var a=n.setTransformState,r=n.transformState,s=r.scale,u=r.positionX,l=r.positionY,c=t.scale-s,p=t.positionX-u,m=t.positionY-l;0===e?a(t.scale,t.positionX,t.positionY):f(n,o,e,(function(n){a(s+c*n,u+p*n,l+m*n)}))}}var d=function(n,t){var e=n.wrapperComponent,o=n.contentComponent,i=n.setup.centerZoomedOut;if(!e||!o)throw new Error("Components are not mounted");var a=function(n,t,e){var o=n.offsetWidth,i=n.offsetHeight,a=t.offsetWidth*e,r=t.offsetHeight*e;
2return{wrapperWidth:o,wrapperHeight:i,newContentWidth:a,newDiffWidth:o-a,newContentHeight:r,newDiffHeight:i-r}}(e,o,t),r=a.wrapperWidth,s=a.wrapperHeight,u=function(n,t,e,o,i,a,r){var s=n>t?e*(r?1:.5):0,u=o>i?a*(r?1:.5):0;return{minPositionX:n-t-s,maxPositionX:s,minPositionY:o-i-u,maxPositionY:u}}(r,a.newContentWidth,a.newDiffWidth,s,a.newContentHeight,a.newDiffHeight,Boolean(i));return u},v=function(n,t){var e=d(n,t);return n.bounds=e,e};function h(n,t,e,o,i,a,r){var s=e.minPositionX,u=e.minPositionY,l=e.maxPositionX,c=e.maxPositionY,p=0,f=0;return r&&(p=i,f=a),{x:g(n,s-p,l+p,o),y:g(t,u-f,c+f,o)}}var g=function(n,t,e,o){return s(o?n<t?t:n>e?e:n:n,2)};function y(n,t,e,o,i,a){var r=n.transformState,s=r.scale,u=r.positionX,l=r.positionY,c=o-s;return"number"!=typeof t||"number"!=typeof e?(console.error("Mouse X and Y position were not provided!"),{x:u,y:l}):h(u-t*c,l-e*c,i,a,0,0,null)}function w(n,t,e,o,i){var a=t-(i?o:0);return!isNaN(e)&&n>=e?e:!isNaN(t)&&n<=a?a:n}var S=function(n,t){var e=n.setup.panning.excluded,o=n.isInitialized,i=n.wrapperComponent,a=t.target,r=null==i?void 0:i.contains(a);return!!(o&&a&&r)&&!U(a,e)},P=function(n){var t=n.isInitialized,e=n.isPanning,o=n.setup.panning.disabled;return!(!t||!e||o)};var C=function(n,t){var e=n.setup,o=n.transformState.scale,i=e.minScale;return t>0&&o>=i?t:0},T=function(n){var t=n.mounted,e=n.setup,o=e.disabled,i=e.velocityAnimation,a=n.transformState.scale;return!(i.disabled&&!(a>1)&&o&&!t)},x=function(n){var t=n.mounted,e=n.velocity,o=n.bounds,i=n.setup,a=i.disabled,r=i.velocityAnimation,s=n.transformState.scale;return!(r.disabled&&!(s>1)&&a&&!t)&&!(!e||!o)};function b(n,t,e,o,i,a,r,s,u,l){if(i){var c;if(t>r&&e>r)return(c=r+(n-r)*l)>u?u:c<r?r:c;if(t<a&&e<a)return(c=a+(n-a)*l)<s?s:c>a?a:c}return o?t:g(n,a,r,i)}function Y(n,t){if(T(n)){var e=n.lastMousePosition,o=n.velocityTime,i=n.setup,a=n.wrapperComponent,r=i.velocityAnimation.equalToMove,s=Date.now();if(e&&o&&a){var u=function(n,t){return t?Math.min(1,n.offsetWidth/window.innerWidth):1}(a,r),l=t.x-e.x,c=t.y-e.y,p=l/u,f=c/u,m=s-o,d=l*l+c*c,v=Math.sqrt(d)/m;n.velocity={velocityX:p,velocityY:f,total:v}}n.lastMousePosition=t,n.velocityTime=s}}function X(n,t){var e=n.transformState.scale;p(n),v(n,e),t.touches?function(n,t){var e=t.touches,o=n.transformState,i=o.positionX,a=o.positionY;if(n.isPanning=!0,1===e.length){var r=e[0].clientX,s=e[0].clientY;n.startCoords={x:r-i,y:s-a}}}(n,t):function(n,t){var e=n.transformState,o=e.positionX,i=e.positionY;n.isPanning=!0;var a=t.clientX,r=t.clientY;n.startCoords={x:a-o,y:r-i}}(n,t)}function E(n,t,e){var o=n.startCoords,i=n.setup.alignmentAnimation,a=i.sizeX,r=i.sizeY;if(o){var s=function(n,t,e){var o=n.startCoords,i=n.transformState,a=n.setup.panning,r=a.lockAxisX,s=a.lockAxisY,u=i.positionX,l=i.positionY;if(!o)return{x:u,y:l};var c=t-o.x,p=e-o.y;return{x:r?u:c,y:s?l:p}}(n,t,e),u=s.x,l=s.y,c=C(n,a),p=C(n,r);Y(n,{x:u,y:l}),function(n,t,e,o,i){var a=n.setup.limitToBounds,r=n.wrapperComponent,s=n.bounds,u=n.transformState,l=u.scale,c=u.positionX,p=u.positionY;if(r&&t!==c&&e!==p&&s){var f=h(t,e,s,a,o,i,r),m=f.x,d=f.y;n.setTransformState(l,m,d)}}(n,u,l,c,p)}}function z(n){if(n.isPanning){var t=n.setup.panning.velocityDisabled,e=n.velocity,o=n.wrapperComponent,i=n.contentComponent;n.isPanning=!1,n.animate=!1,n.animation=null;var a=null==o?void 0:o.getBoundingClientRect(),r=null==i?void 0:i.getBoundingClientRect(),s=(null==a?void 0:a.width)||0,u=(null==a?void 0:a.height)||0,c=(null==r?void 0:r.width)||0,p=(null==r?void 0:r.height)||0,m=s<c||u<p;!t&&e&&(null==e?void 0:e.total)>.1&&m?function(n){var t=n.velocity,e=n.bounds,o=n.setup,i=n.wrapperComponent;if(x(n)&&t&&e&&i){var a=t.velocityX,r=t.velocityY,s=t.total,u=e.maxPositionX,c=e.minPositionX,p=e.maxPositionY,m=e.minPositionY,d=o.limitToBounds,v=o.alignmentAnimation,h=o.zoomAnimation,g=o.panning,y=g.lockAxisY,w=g.lockAxisX,S=h.animationType,P=v.sizeX,T=v.sizeY,Y=v.velocityAlignmentTime,X=function(n,t){var e=n.setup.velocityAnimation,o=e.equalToMove,i=e.animationTime,a=e.sensitivity;return o?i*t*a:i}(n,s),E=Math.max(X,Y),z=C(n,P),O=C(n,T),N=z*i.offsetWidth/100,D=O*i.offsetHeight/100,A=u+N,W=c-N,I=p+D,M=m-D,k=n.transformState,_=(new Date).getTime();f(n,S,E,(function(t){var e=n.transformState,o=e.scale,i=e.positionX,s=e.positionY,f=((new Date).getTime()-_)/Y,h=1-(0,l[v.animationType])(Math.min(1,f)),g=1-t,S=i+a*g,P=s+r*g,C=b(S,k.positionX,i,w,d,c,u,W,A,h),T=b(P,k.positionY,s,y,d,m,p,M,I,h);i===S&&s===P||n.setTransformState(o,C,T)}))}}(n):O(n)}}function O(n){var t=n.transformState.scale,e=n.setup,o=e.minScale,i=e.alignmentAnimation,a=i.disabled,r=i.sizeX,s=i.sizeY,u=i.animationTime,l=i.animationType;if(!(a||t<o||!r&&!s)){var c=function(n){var t=n.transformState,e=t.positionX,o=t.positionY,i=t.scale,a=n.setup,r=a.disabled,s=a.limitToBounds,u=a.centerZoomedOut,l=n.wrapperComponent;if(!r&&l&&n.bounds){var c=n.bounds,p=c.maxPositionX,f=c.minPositionX,m=c.maxPositionY,d=c.minPositionY,v=e>p||e<f,h=o>m||o<d,g=y(n,e>p?l.offsetWidth:n.setup.minPositionX||0,o>m?l.offsetHeight:n.setup.minPositionY||0,i,n.bounds,s||u),w=g.x,S=g.y;return{scale:i,positionX:v?w:e,positionY:h?S:o}}}(n);c&&m(n,c,u,l)}}function N(n,t,e){var o=n.transformState.scale,i=n.wrapperComponent,a=n.setup,r=a.minScale,s=a.limitToBounds,u=a.zoomAnimation,l=u.disabled,c=u.animationTime,p=u.animationType,f=l||o>=r;if((o>
2=1||s)&&O(n),!f&&i&&n.mounted){var d=D(n,r,t||i.offsetWidth/2,e||i.offsetHeight/2);d&&m(n,d,c,p)}}function D(n,t,e,o){var i=n.setup,a=i.minScale,r=i.maxScale,u=i.limitToBounds,l=w(s(t,2),a,r,0,!1),c=y(n,e,o,l,v(n,l),u);return{scale:l,positionX:c.x,positionY:c.y}}var A={previousScale:1,scale:1,positionX:0,positionY:0},W=a(a({},A),{setComponents:function(){},contextInstance:null}),I={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},M=function(n){var t,e,o,i;return{previousScale:null!==(t=n.initialScale)&&void 0!==t?t:A.scale,scale:null!==(e=n.initialScale)&&void 0!==e?e:A.scale,positionX:null!==(o=n.initialPositionX)&&void 0!==o?o:A.positionX,positionY:null!==(i=n.initialPositionY)&&void 0!==i?i:A.positionY}},k=function(n){var t=a({},I);return Object.keys(n).forEach((function(e){var o=void 0!==n[e];if(void 0!==I[e]&&o){var i=Object.prototype.toString.call(I[e]),s="[object Object]"===i,u="[object Array]"===i;t[e]=s?a(a({},I[e]),n[e]):u?r(r([],I[e]),n[e]):n[e]}})),t},_=function(n,t,e){var o=n.transformState.scale,i=n.wrapperComponent,a=n.setup,r=a.maxScale,u=a.minScale,l=a.zoomAnimation.size;if(!i)throw new Error("Wrapper is not mounted");var c=o*Math.exp(t*e);return w(s(c,3),u,r,l,!1)};function K(n,t,e,o,i){var a=n.wrapperComponent,r=n.transformState,s=r.scale,u=r.positionX,l=r.positionY;if(!a)return console.error("No WrapperComponent found");var c=(a.offsetWidth/2-u)/s,p=(a.offsetHeight/2-l)/s,f=D(n,_(n,t,e),c,p);if(!f)return console.error("Error during zoom event. New transformation state was not calculated.");m(n,f,o,i)}function B(n,t,e){var o=n.setup,i=n.wrapperComponent,a=o.limitToBounds,r=M(n.props),s=n.transformState,u=s.scale,l=s.positionX,c=s.positionY;if(i){var p=d(n,r.scale),f=h(r.positionX,r.positionY,p,a,0,0,i),v={scale:r.scale,positionX:f.x,positionY:f.y};u===r.scale&&l===r.positionX&&c===r.positionY||m(n,v,t,e)}}var H=function(n){return function(t,e,o){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===o&&(o="easeOut"),K(n,1,t,e,o)}},L=function(n){return function(t,e,o){void 0===t&&(t=.5),void 0===e&&(e=300),void 0===o&&(o="easeOut"),K(n,-1,t,e,o)}},j=function(n){return function(t,e,o,i,a){void 0===i&&(i=300),void 0===a&&(a="easeOut");var r=n.transformState,s=r.positionX,u=r.positionY,l=r.scale,c=n.wrapperComponent,p=n.contentComponent;if(!n.setup.disabled&&c&&p){var f={positionX:isNaN(t)?s:t,positionY:isNaN(e)?u:e,scale:isNaN(o)?l:o};m(n,f,i,a)}}},Z=function(n){return function(t,e){void 0===t&&(t=200),void 0===e&&(e="easeOut"),B(n,t,e)}},R=function(n){return function(t,e,o){void 0===e&&(e=200),void 0===o&&(o="easeOut");var i=n.transformState,a=n.wrapperComponent,r=n.contentComponent;if(a&&r){var s=G(t||i.scale,a,r);m(n,s,e,o)}}},F=function(n){return function(t,e,o,i){void 0===o&&(o=600),void 0===i&&(i="easeOut"),p(n);var a=n.wrapperComponent,r="string"==typeof t?document.getElementById(t):t;if(a&&function(n){return n?void 0!==(null==n?void 0:n.offsetWidth)&&void 0!==(null==n?void 0:n.offsetHeight)||(console.error("Zoom node is not valid - it must contain offsetWidth and offsetHeight"),!1):(console.error("Zoom node not found"),!1)}(r)&&r&&a.contains(r)){var s=function(n,t,e){var o=n.wrapperComponent,i=n.setup,a=i.limitToBounds,r=i.minScale,s=i.maxScale;if(!o)return A;var u=o.getBoundingClientRect(),l=function(n){for(var t=n,e=0,o=0;t;)e+=t.offsetLeft,o+=t.offsetTop,t=t.offsetParent;return{x:e,y:o}}(t),c=l.x,p=l.y,f=t.offsetWidth,m=t.offsetHeight,v=o.offsetWidth/f,g=o.offsetHeight/m,y=w(e||Math.min(v,g),r,s,0,!1),S=(u.width-f*y)/2,P=(u.height-m*y)/2,C=h((u.left-c)*y+S,(u.top-p)*y+P,d(n,y),a,0,0,o);return{positionX:C.x,positionY:C.y,scale:y}}(n,r,e);m(n,s,o,i)}}},Q=function(n){return{instance:n,state:n.transformState,zoomIn:H(n),zoomOut:L(n),setTransform:j(n),resetTransform:Z(n),centerView:R(n),zoomToElement:F(n)}};
2function q(){try{return{get passive(){return!0,!1}}}catch(n){return!1}}var U=function(n,t){var e=n.tagName.toUpperCase();return!!t.find((function(n){return n.toUpperCase()===e}))||!!t.find((function(t){return n.classList.contains(t)}))},V=function(n){n&&clearTimeout(n)},G=function(n,t,e){var o=e.offsetWidth*n,i=e.offsetHeight*n;return{scale:n,positionX:(t.offsetWidth-o)/2,positionY:(t.offsetHeight-i)/2}};function J(n,t,e){var o=t.getBoundingClientRect(),i=0,a=0;if("clientX"in n)i=(n.clientX-o.left)/e,a=(n.clientY-o.top)/e;else{var r=n.touches[0];i=(r.clientX-o.left)/e,a=(r.clientY-o.top)/e}return(isNaN(i)||isNaN(a))&&console.error("No mouse or touch offset found"),{x:i,y:a}}var $=function(n){return Math.sqrt(Math.pow(n.touches[0].pageX-n.touches[1].pageX,2)+Math.pow(n.touches[0].pageY-n.touches[1].pageY,2))},nn=function(n,t){var e=n.props,o=e.onWheel,i=e.onZoom,a=n.contentComponent,r=n.setup,l=n.transformState.scale,c=r.limitToBounds,p=r.centerZoomedOut,f=r.zoomAnimation,m=r.wheel,d=f.size,h=f.disabled,g=m.step;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var S=function(n,t){var e,o,i=n?n.deltaY<0?1:-1:0;return o=i,"number"==typeof(e=t)?e:o}
2(t,null),P=function(n,t,e,o,i){var a=n.transformState.scale,r=n.wrapperComponent,u=n.setup,l=u.maxScale,c=u.minScale,p=u.zoomAnimation,f=p.size,m=p.disabled;if(!r)throw new Error("Wrapper is not mounted");var d=a+t*(a-a*e)*e;if(i)return d;var v=!o&&!m;return w(s(d,3),c,l,f,v)}(n,S,g,!t.ctrlKey);if(l!==P){var C=v(n,P),T=J(t,a,l),x=c&&(h||0===d||p),b=y(n,T.x,T.y,P,C,x),Y=b.x,X=b.y;n.previousWheelEvent=t,n.setTransformState(P,Y,X),u(Q(n),t,o),u(Q(n),t,i)}},tn=function(n,t){var e=n.props,o=e.onWheelStop,i=e.onZoomStop;V(n.wheelAnimationTimer),n.wheelAnimationTimer=setTimeout((function(){n.mounted&&(N(n,t.x,t.y),n.wheelAnimationTimer=null)}),100);var a=function(n,t){var e=n.previousWheelEvent,o=n.transformState.scale,i=n.setup,a=i.maxScale,r=i.minScale;return!!e&&(o<a||o>r||Math.sign(e.deltaY)!==Math.sign(t.deltaY)||e.deltaY>0&&e.deltaY<t.deltaY||e.deltaY<0&&e.deltaY>t.deltaY||Math.sign(e.deltaY)!==Math.sign(t.deltaY))}(n,t);a&&(V(n.wheelStopEventTimer),n.wheelStopEventTimer=setTimeout((function(){n.mounted&&(n.wheelStopEventTimer=null,u(Q(n),t,o),u(Q(n),t,i))}),160))},en=function(n,t){var e=n.contentComponent,o=n.pinchStartDistance,i=n.transformState.scale,a=n.setup,r=a.limitToBounds,u=a.centerZoomedOut,l=a.zoomAnimation,c=l.disabled,p=l.size;if(null!==o&&e){var f=function(n,t,e){var o=e.getBoundingClientRect(),i=n.touches,a=s(i[0].clientX-o.left,5),r=s(i[0].clientY-o.top,5);return{x:(a+s(i[1].clientX-o.left,5))/2/t,y:(r+s(i[1].clientY-o.top,5))/2/t}}(t,i,e);if(isFinite(f.x)&&isFinite(f.y)){var m=$(t),d=function(n,t){var e=n.pinchStartScale,o=n.pinchStartDistance,i=n.setup,a=i.maxScale,r=i.minScale,u=i.zoomAnimation,l=u.size,c=u.disabled;if(!e||null===o||!t)throw new Error("Pinch touches distance was not provided");return t<0?n.transformState.scale:w(s(t/o*e,2),r,a,l,!c)}(n,m);if(d!==i){var h=v(n,d),g=r&&(c||0===p||u),S=y(n,f.x,f.y,d,h,g),P=S.x,C=S.y;n.pinchMidpoint=f,n.lastDistance=m,n.setTransformState(d,P,C)}}}};var on=o.createContext(W),an=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.mounted=!0,t.transformState=M(t.props),t.setup=k(t.props),t.wrapperComponent=null,t.contentComponent=null,t.isInitialized=!1,t.bounds=null,t.previousWheelEvent=null,t.wheelStopEventTimer=null,t.wheelAnimationTimer=null,t.isPanning=!1,t.startCoords=null,t.lastTouch=null,t.distance=null,t.lastDistance=null,t.pinchStartDistance=null,t.pinchStartScale=null,t.pinchMidpoint=null,t.velocity=null,t.velocityTime=null,t.lastMousePosition=null,t.animate=!1,t.animation=null,t.maxBounds=null,t.pressedKeys={},t.handleInitializeWrapperEvents=function(n){var e=q();n.addEventListener("wheel",t.onWheelZoom,e),n.addEventListener("dblclick",t.onDoubleClick,e),n.addEventListener("touchstart",t.onTouchPanningStart,e),n.addEventListener("touchmove",t.onTouchPanning,e),n.addEventListener("touchend",t.onTouchPanningStop,e)},t.handleInitialize=function(){var n=t.setup.centerOnInit;t.applyTransformation(),t.forceUpdate(),n&&(setTimeout((function(){t.mounted&&t.setCenter()}),50),setTimeout((function(){t.mounted&&t.setCenter()}),100),setTimeout((function(){t.mounted&&t.setCenter()}),200))},t.onWheelZoom=function(n){if(!t.setup.disabled){var e=function(n,t){var e=n.setup.wheel,o=e.disabled,i=e.wheelDisabled,a=e.touchPadDisabled,r=e.excluded,s=n.isInitialized,u=n.isPanning,l=t.target;return!(!s||u||o||!l||i&&!t.ctrlKey||a&&t.ctrlKey||U(l,r))}(t,n);if(e)t.isPressingKeys(t.setup.wheel.activationKeys)&&(!function(n,t){var e=n.props,o=e.onWheelStart,i=e.onZoomStart;n.wheelStopEventTimer||(p(n),u(Q(n),t,o),u(Q(n),t,i))}(t,n),nn(t,n),tn(t,n))}},t.onPanningStart=function(n){var e=t.setup.disabled,o=t.props.onPanningStart;e||S(t,n)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),p(t),X(t,n),u(Q(t),n,o))},t.onPanning=function(n){var e=t.setup.disabled,o=t.props.onPanning;e||P(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(n.preventDefault(),n.stopPropagation(),E(t,n.clientX,n.clientY),u(Q(t),n,o))},t.onPanningStop=function(n){var e=t.props.onPanningStop;t.isPanning&&(z(t),u(Q(t),n,e))},t.onPinchStart=function(n){var e=t.setup.disabled,o=t.props,i=o.onPinchingStart,a=o.onZoomStart;if(!e){var r=function(n,t){var e=n.setup.pinch,o=e.disabled,i=e.excluded,a=n.isInitialized,r=t.target;return!(!a||o||!r||U(r,i))}(t,n);
2r&&(!function(n,t){var e=$(t);n.pinchStartDistance=e,n.lastDistance=e,n.pinchStartScale=n.transformState.scale,n.isPanning=!1,p(n)}(t,n),p(t),u(Q(t),n,i),u(Q(t),n,a))}},t.onPinch=function(n){var e=t.setup.disabled,o=t.props,i=o.onPinching,a=o.onZoom;if(!e){var r=function(n){var t=n.setup.pinch.disabled,e=n.isInitialized,o=n.pinchStartDistance;return!(!e||t||!o)}(t);r&&(n.preventDefault(),n.stopPropagation(),en(t,n),u(Q(t),n,i),u(Q(t),n,a))}},t.onPinchStop=function(n){var e,o,i=t.props,a=i.onPinchingStop,r=i.onZoomStop;t.pinchStartScale&&(o=(e=t).pinchMidpoint,e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,N(e,null==o?void 0:o.x,null==o?void 0:o.y),u(Q(t),n,a),u(Q(t),n,r))},t.onTouchPanningStart=function(n){var e=t.setup.disabled,o=t.props.onPanningStart;if(!e&&S(t,n))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===n.touches.length)t.onDoubleClick(n);else{t.lastTouch=+new Date,p(t);var i=n.touches,a=1===i.length,r=2===i.length;a&&(p(t),X(t,n),u(Q(t),n,o)),r&&t.onPinchStart(n)}},t.onTouchPanning=function(n){var e=t.setup.disabled,o=t.props.onPanning;if(t.isPanning&&1===n.touches.length){if(e)return;if(!P(t))return;n.preventDefault(),n.stopPropagation();var i=n.touches[0];E(t,i.clientX,i.clientY),u(Q(t),n,o)}else n.touches.length>1&&t.onPinch(n)},t.onTouchPanningStop=function(n){t.onPanningStop(n),t.onPinchStop(n)},t.onDoubleClick=function(n){if(!t.setup.disabled){var e=function(n,t){var e=n.isInitialized,o=n.setup,i=n.wrapperComponent,a=o.doubleClick,r=a.disabled,s=a.excluded,u=t.target,l=null==i?void 0:i.contains(u),c=e&&u&&l&&!r;return!!c&&!U(u,s)&&!!c}(t,n);e&&function(n,t){var e=n.setup.doubleClick,o=e.disabled,i=e.mode,a=e.step,r=e.animationTime,s=e.animationType;if(!o){if("reset"===i)return B(n,r,s);var u=n.transformState.scale,l=n.contentComponent;if(!l)return console.error("No ContentComponent found");var c=_(n,"zoomOut"===i?-1:1,a),p=J(t,l,u),f=D(n,c,p.x,p.y);if(!f)return console.error("Error during zoom event. New transformation state was not calculated.");m(n,f,r,s)}}(t,n)}},t.clearPanning=function(n){t.isPanning&&t.onPanningStop(n)},t.setKeyPressed=function(n){t.pressedKeys[n.key]=!0},t.setKeyUnPressed=function(n){t.pressedKeys[n.key]=!1},t.isPressingKeys=function(n){return!n.length||Boolean(n.find((function(n){return t.pressedKeys[n]})))},t.setComponents=function(n,e){t.wrapperComponent=n,t.contentComponent=e,v(t,t.transformState.scale),t.handleInitializeWrapperEvents(n),t.handleInitialize(),t.handleRef(),t.isInitialized=!0,u(Q(t),void 0,t.props.onInit)},t.setTransformState=function(n,e,o){isNaN(n)||isNaN(e)||isNaN(o)?console.error("Detected NaN set state values"):(n!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=n),t.transformState.positionX=e,t.transformState.positionY=o,t.applyTransformation())},t.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var n=G(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(n.scale,n.positionX,n.positionY)}},t.applyTransformation=function(){if(t.mounted&&t.contentComponent){var n=t.transformState,e=n.scale,o=function(n,t,e){return"translate3d("+n+"px, "+t+"px, 0) scale("+e+")"}(n.positionX,n.positionY,e);t.contentComponent.style.transform=o,t.handleRef()}},t.handleRef=function(){t.props.setRef(Q(t))},t}return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}(t,n),t.prototype.componentDidMount=function(){var n=q();window.addEventListener("mousedown",this.onPanningStart,n),window.addEventListener("mousemove",this.onPanning,n),window.addEventListener("mouseup",this.onPanningStop,n),document.addEventListener("mouseleave",this.clearPanning,n),window.addEventListener("keyup",this.setKeyUnPressed,n),window.addEventListener("keydown",this.setKeyPressed,n),this.handleRef()},t.prototype.componentWillUnmount=function(){var n=q();window.removeEventListener("mousedown",this.onPanningStart,n),window.removeEventListener("mousemove",this.onPanning,n),window.removeEventListener("mouseup",this.onPanningStop,n),window.removeEventListener("keyup",this.setKeyUnPressed,n),window.removeEventListener("keydown",this.setKeyPressed,n),p(this)},t.prototype.componentDidUpdate=function(n){n!==this.props&&(v(this,this.transformState.scale),this.setup=k(this.props))},t.prototype.render=function(){var n=Q(this),t=this.props.children,e="function"==typeof t?t(n):t;return o.createElement(on.Provider,{value:a(a({},this.transformState),{setComponents:this.setComponents,contextInstance:this})},e)},t}(o.Component),rn=o.forwardRef((function(n,t){var e=(0,o.useState)(null),i=e[0],r=e[1];return(0,o.useImperativeHandle)(t,(function(){return i}),[i]),o.createElement(an,a({},n,{setRef:r}))}));var sn="transform-component-module_wrapper__1_Fgj",un="transform-component-module_content__2jYgh";!function(n,t){void 0===t&&(t={});var e=t.insertAt;if(n&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===e&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}(".transform-component-module_wrapper__1_Fgj {\n  position: relative;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  overflow: hidden;\n  -webkit-touch-callout: none; /* iOS Safari */\n  -webkit-user-select: none; /* Safari */\n  -khtml-user-select: none; /* Konqueror HTML */\n  -moz-user-select: none; /* Firefox */\n  -ms-user-select: none; /* Internet Explorer/Edge */\n  user-select: none;\n  margin: 0;\n  padding: 0;\n}\n.transform-component-module_content__2jYgh {\n  display: flex;\n  flex-wrap: wrap;\n  width: -moz-fit-content;\n  width: fit-content;\n  height: -moz-fit-content;\n  height: fit-content;\n  margin: 0;\n  padding: 0;\n  transform-origin: 0% 0%;\n}\n.transform-component-module_content__2jYgh img {\n  pointer-events: none;\n}\n");var ln=function(n){var t=n.children,e=n.wrapperClass,i=void 0===e?"":e,a=n.contentClass,r=void 0===a?"":a,s=n.wrapperStyle,u=n.contentStyle,l=(0,o.useContext)(on).setComponents,c=(0,o.useRef)(null),p=(0,o.useRef)(null);return(0,o.useEffect)((function(){var n=c.current,t=p.current;null!==n&&null!==t&&l&&l(n,t)}),[]),o.createElement("div",{ref:c,className:"react-transform-wrapper "+sn+" "+i,style:s},o.createElement("div",{ref:p,className:"react-transform-component "+un+" "+r,style:u},t))},cn=function(){var n=(0,o.useContext)(on);if(!n.contextInstance)throw new Error("Transform context mus be placed inside TransformWrapper");return Q(n.contextInstance)}}}]);

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.