PageSourceSearch

https://www.mcfit.com/_next/static/chunks/4517.0826f0ec45987c94.js

js mcfit.com collected 2026-09-24 09:52:22 UTC 10,425 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4517],{56882:function(e,t,r){var n;n=r(60004),e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,(function(t){return e[t]}).bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/react-webcam.tsx")}({
1"./src/react-webcam.tsx":function(e,t,r){"use strict";r.r(t);var n,i=r("react"),o=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function u(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}"undefined"!=typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise(function(r,n){t.call(navigator,e,r,n)}):Promise.reject(Error("getUserMedia is not implemented in this browser"))})),t.default=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=null,r.ctx=null,r.requestUserMediaId=0,r.unmounted=!1,r.state={hasUserMedia:!1},r}return o(t,e),t.prototype.componentDidMount=function(){var e=this.state,t=this.props;if(this.unmounted=!1,!u())return void t.onUserMediaError("getUserMedia not supported");e.hasUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(!u())return void t.onUserMediaError("getUserMedia not supported");var r=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),n=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),i=e.minScreenshotWidth!==t.minScreenshotWidth,o=e.minScreenshotHeight!==t.minScreenshotHeight;(n||i||o)&&(this.canvas=null,this.ctx=null),(r||n)&&(this.stopAndCleanup(),this.requestUserMedia())},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},t.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map(function(t){e.removeTrack(t),t.stop()}),e.getAudioTracks().map(function(t){e.removeTrack(t),t.stop()})):e.stop())},t.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(t.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},t.prototype.getScreenshot=function(e){var t=this.state,r=this.props;if(!t.hasUserMedia)return null;var n=this.getCanvas(e);return n&&n.toDataURL(r.screenshotFormat,r.screenshotQuality)},t.prototype.getCanvas=function(e){var t=this.state,r=this.props;if(!this.video||!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var n=this.video.videoWidth,i=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var o=n/i;i=(n=r.minScreenshotWidth||this.video.clientWidth)/o,r.minScreenshotHeight&&i<r.minScreenshotHeight&&(n=(i=r.minScreenshotHeight)*o)}this.canvas=document.createElement("canvas"),this.canvas.width=(null==e?void 0:e.width)||n,this.canvas.height=(null==e?void 0:e.height)||i,this.ctx=this.canvas.getContext("2d")}var s=this.ctx,a=this.canvas;return s&&a&&(a.width=(null==e?void 0:e.width)||a.width,a.height=(null==e?void 0:e.height)||a.height,r.mirrored&&(s.translate(a.width,0),s.scale(-1,1)),s.imageSmoothingEnabled=r.imageSmoothing,s.drawImage(this.video,0,0,(null==e?void 0:e.width)||a.width,(null==e?void 0:e.height)||a.height),r.mirrored&&(s.scale(-1,1),s.translate(-a.width,0))),a},t.prototype.requestUserMedia=function(){var e=this,r=this.props,n=function(n,i){var o={video:void 0===i||i};r.audio&&(o.audio=void 0===n||n),e.requestUserMediaId++;var s=e.requestUserMediaId;navigator.mediaDevices.getUserMedia(o).then(function(r){e.unmounted||s!==e.requestUserMediaId?t.stopMediaStream(r):e.handleUserMedia(null,r)}
1).catch(function(t){e.handleUserMedia(t)})};if("mediaDevices"in navigator)n(r.audioConstraints,r.videoConstraints);else{var i=function(e){return{optional:[{sourceId:e}]}},o=function(e){var t=e.deviceId;return"string"==typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"object"==typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources(function(e){var t=null,s=null;e.forEach(function(e){"audio"===e.kind?t=e.id:"video"===e.kind&&(s=e.id)});var a=o(r.audioConstraints);a&&(t=a);var u=o(r.videoConstraints);u&&(s=u),n(i(t),i(s))})}},t.prototype.handleUserMedia=function(e,t){var r=this.props;if(e||!t){this.setState({hasUserMedia:!1}),r.onUserMediaError(e);return}this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(e){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}r.onUserMedia(t)},t.prototype.render=function(){var e=this,t=this.state,r=this.props,n=r.audio,o=(r.forceScreenshotSourceSize,r.disablePictureInPicture),u=(r.onUserMedia,r.onUserMediaError,r.screenshotFormat,r.screenshotQuality,r.minScreenshotWidth,r.minScreenshotHeight,r.audioConstraints,r.videoConstraints,r.imageSmoothing,r.mirrored),c=r.style,d=void 0===c?{}:c,l=r.children,h=a(r,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),f=u?s(s({},d),{transform:(d.transform||"")+" scaleX(-1)"}):d,p={getScreenshot:this.getScreenshot.bind(this)};return i.createElement(i.Fragment,null,i.createElement("video",s({autoPlay:!0,disablePictureInPicture:o,src:t.src,muted:!n,playsInline:!0,ref:function(t){e.video=t},style:f},h)),l&&l(p))},t.defaultProps={audio:!1,disablePictureInPicture:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},t}(i.Component)}
1,react:function(e,t){e.exports=n}}).default},84477:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>p});var n,i,o=r(60004),s=Object.defineProperty,a=new Map,u=new WeakMap,c=0;o.Component;var d=Reflect.get(n||(n=r.t(o,2)),"useInsertionEffect"),l=null!=d?d:o.useEffect,h=function(e){return(null==e?void 0:e.startsWith("19."))||!1}(o.version),f="undefined"==typeof window?o.useEffect:o.useLayoutEffect;function p({threshold:e,delay:t,trackVisibility:r,rootMargin:n,scrollMargin:s,root:v,triggerOnce:g,skip:m,initialInView:y,fallbackInView:b,onChange:S}={}){let M=o.useRef(y),[w,U]=o.useState({inView:!!y,entry:void 0}),O=function(e,{threshold:t,root:r,rootMargin:n,scrollMargin:s,trackVisibility:f,delay:p,fallbackInView:v,skip:g,triggerOnce:m}){let y=o.useRef(e),b=o.useRef({node:null,stop:void 0,owner:null});return d||(y.current=e),l(()=>{y.current=e},[e]),o.useCallback(function e(o){let d,l,S=b.current;if(!o&&S.owner!==e)return;if(o===S.node)return S.owner=e,h?S.stop:void 0;let M=S.stop;if(S.stop=void 0,null==M||M(),!o||g){S.node=null,S.owner=o?e:null;return}function w(){null==d||d(),S.stop===w&&(S.node=null,S.stop=void 0)}return S.node=o,S.owner=e,S.stop=w,d=function(e,t,r={},n=i){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:o,observer:s,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(u.has(r)||(c+=1,u.set(r,c.toString())),u.get(r)):e[t]}`}).toString(),r=a.get(t);if(!r){let n,i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),[...null!=(r=i.get(t.target))?r:[]].forEach(e=>{e(o,t)})})},e);n=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:i},a.set(t,r)}return r}(r),l=d.get(e)||[];d.has(e)||d.set(e,l),l.push(t),s.observe(e);let h=!1;return function(){h||(h=!0,l.splice(l.indexOf(t),1),0===l.length&&(d.delete(e),s.unobserve(e)),0===d.size&&(s.disconnect(),a.delete(o)))}}(o,(e,t)=>{y.current(e,t,l),l=e,m&&e&&w()},{threshold:t,root:r,rootMargin:n,scrollMargin:s,trackVisibility:f,delay:p},v),S.stop!==w&&d(),h?S.stop:void 0},[Array.isArray(t)?t.toString():t,r,n,s,f,p,v,g,m])}((e,t)=>{let r=M.current;M.current=e,(void 0!==r||e)&&(U({inView:e,entry:t}),null==S||S(e,t))},{threshold:e,root:v,rootMargin:n,scrollMargin:s,trackVisibility:r,delay:t,fallbackInView:b,skip:m,triggerOnce:g}),C=o.useRef({node:null,reset:!1}),P=o.useCallback(function(e){e?(C.current.node=e,C.current.reset=!1):C.current.node&&(C.current.node=null,C.current.reset=!0);let t=O(e);if(t)return()=>{t(),C.current.node===e&&(C.current.node=null,C.current.reset=!0)}},[O]);f(()=>{C.current.reset&&(C.current.reset=!1,g||m||(U({inView:!!y,entry:void 0}),M.current=y))});let j=[P,w.inView,w.entry];return j.ref=j[0],j.inView=j[1],j.entry=j[2],j}}}]);

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.