vendor: 4,417 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[213],{6470:function(e,t,n){"use strict";var r=n(4155);function a(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function i(e,t){for(var n,r="",a=0,i=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===o);else if(i!==s-1&&2===o){if(r.length<2||2!==a||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var f=r.lastIndexOf("/");if(f!==r.length-1){-1===f?(r="",a=0):a=(r=r.slice(0,f)).length-1-r.lastIndexOf("/"),i=s,o=0;continue}}else if(2===r.length||1===r.length){r="",a=0,i=s,o=0;continue}t&&(r.length>0?r+="/..":r="..",a=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),a=s-i-1;i=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var o={resolve:function(){for(var e,t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=r.cwd()),s=e),a(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=i(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(a(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return a(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];a(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":o.normalize(e)},relative:function(e,t){if(a(e),a(t),e===t)return"";if((e=o.resolve(e))===(t=o.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,i=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var f=t.length-s,c=i<f?i:f,h=-1,l=0;l<=c;++l){if(l===c){if(f>c){if(47===t.charCodeAt(s+l))return t.slice(s+l+1);if(0===l)return t.slice(s+l)}else i>c&&(47===e.charCodeAt(n+l)?h=l:0===l&&(h=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(s+l))break;47===u&&(h=l)}var d="";for(l=n+h+1;l<=r;++l)l!==r&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(s+h):(s+=h,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(a(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');a(e);var n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,f=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!o){r=n+1;break}}else-1===f&&(o=!1,f=n+1),s>=0&&(c===t.charCodeAt(s)?-1===--s&&(i=n):(s=-1,i=f))}return r===i?i=f:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){a(e);for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var f=e.charCodeAt(s);if(47!==f)-1===r&&(i=!1,r=s+1),46===f?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){a(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),i=47===r;i?(t.root="/",n=1):n=0;for(var o=-1,s=0,f=-1,c=!0,h=e.length-1,l=0;h>=n;--h)if(47!==(r=e.charCodeAt(h)))-1===f&&(c=!1,f=h+1),46===r?-1===o?o=h:1!==l&&(l=1):-1!==o&&(l=-1);else if(!c){s=h+1;break}return-1===o||-1===f||0===l||1===l&&o===f-1&&o===s+1?-1!==f&&(t.base=t.name=0===s&&i?e.slice(1,f):e.slice(s,f)):(0===s&&i?(t.name=e.slice(1,o),t.base=e.slice(1,f)):(t.name=e.slice(s,o),t.base=e.slice(s,f)),t.ext=e.slice(o,f)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o},9590:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,a="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;
1if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,f,c,h;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(f=s;0!==f--;)if(!i(e[f],o[f]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(h=e.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;for(h=e.entries();!(f=h.next()).done;)if(!i(f.value[1],o.get(f.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(h=e.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(f=s;0!==f--;)if(e[f]!==o[f])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof o.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(f=s;0!==f--;)if(!Object.prototype.hasOwnProperty.call(o,c[f]))return!1;if(t&&e instanceof Element)return!1;for(f=s;0!==f--;)if(("_owner"!==c[f]&&"__v"!==c[f]&&"__o"!==c[f]||!e.$$typeof)&&!i(e[c[f]],o[c[f]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},3638:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(7294),a=n(9590);function i(e,t){return Number.isInteger(e)&&Number.isInteger(t)?Math.floor(Math.random()*(t-e+1)+e):Math.random()*(t-e)+e}function o(e,t,n){return(1-n)*e+n*t}function s(e){return e?{height:e.offsetHeight,width:e.offsetWidth}:{height:0,width:0}}const f=2*Math.PI,c={color:"#dee4fd",radius:[.5,3],speed:[1,3],wind:[-.5,2],changeFrequency:200,rotationSpeed:[-1,1],opacity:[1,1],enable3DRotation:!1};class h{static createSnowflakes(e,t,n){if(!e)return[];const r=[];for(let a=0;a<t;a++)r.push(new h(e,n));return r}constructor(e,t={}){this.updateConfig(t);const{radius:n,wind:r,speed:a,rotationSpeed:o,opacity:s,enable3DRotation:f}=this.config;this.params={x:i(0,e.offsetWidth),y:i(-e.offsetHeight,0),rotation:i(0,360),radius:i(...n),speed:i(...a),wind:i(...r),rotationSpeed:i(...o),nextSpeed:i(...a),nextWind:i(...r),nextRotationSpeed:i(...o),opacity:i(...s),hasNextOpacity:!1,rotationX:f?i(0,360):0,rotationY:f?i(0,360):0,rotationSpeedX:f?i(-2,2):0,rotationSpeedY:f?i(-2,2):0,nextRotationSpeedX:f?i(-2,2):0,nextRotationSpeedY:f?i(-2,2):0},this.framesSinceLastUpdate=0}selectImage(){var e;this.config.images&&this.config.images.length>0?this.image=(e=this.config.images)[Math.floor(Math.random()*e.length)]:this.image=void 0}updateConfig(e){const t=this.config;this.config={...c,...e},this.config.changeFrequency=i(this.config.changeFrequency,1.5*this.config.changeFrequency),this.params&&!a(this.config.radius,null===t||void 0===t?void 0:t.radius)&&(this.params.radius=i(...this.config.radius)),a(this.config.images,null===t||void 0===t?void 0:t.images)||this.selectImage(),(null===t||void 0===t?void 0:t.opacity)&&!a(this.config.opacity,null===t||void 0===t?void 0:t.opacity)&&(this.params.hasNextOpacity=!0)}updateTargetParams(){this.params.nextSpeed=i(...this.config.speed),this.params.nextWind=i(...this.config.wind),this.image&&(this.params.nextRotationSpeed=i(...this.config.rotationSpeed)),this.config.enable3DRotation&&(this.params.nextRotationSpeedX=i(-2,2),this.params.nextRotationSpeedY=i(-2,2))}update(e,t,n=1){const{x:r,y:a,rotation:s,rotationSpeed:f,nextRotationSpeed:c,wind:h,speed:l,nextWind:u,nextSpeed:d,radius:p}=this.params;this.params.x=(r+h*n)%(e+2*p),this.params.x>e+p&&(this.params.x=-p),this.params.y=(a+l*n)%(t+2*p),this.params.y>t+p&&(this.params.hasNextOpacity&&(this.params.opacity=i(...this.config.opacity),this.params.hasNextOpacity=!1),this.params.y=-p),(this.image||this.config.enable3DRotation)&&(this.params.rotation=(s+f)%360),this.config.enable3DRotation&&(this.params.rotationX=(this.params.rotationX+this.params.rotationSpeedX*n)%360,this.params.rotationY=(this.params.rotationY+this.params.rotationSpeedY*n)%360),this.params.speed=o(l,d,.01),this.params.wind=o(h,u,.01),this.params.rotationSpeed=o(f,c,.01),this.config.enable3DRotation&&(this.params.rotationSpeedX=o(this.params.rotationSpeedX,this.params.nextRotationSpeedX,.01),this.params.rotationSpeedY=
1o(this.params.rotationSpeedY,this.params.nextRotationSpeedY,.01)),this.framesSinceLastUpdate++>this.config.changeFrequency&&(this.updateTargetParams(),this.framesSinceLastUpdate=0)}getImageOffscreenCanvas(e,t){var n,r;if(e instanceof HTMLImageElement&&e.loading)return e;let a=h.offscreenCanvases.get(e);if(a||(a={},h.offscreenCanvases.set(e,a)),!(t in a)){const r=document.createElement("canvas");r.width=t,r.height=t,null===(n=r.getContext("2d"))||void 0===n||n.drawImage(e,0,0,t,t),a[t]=r}return null!==(r=a[t])&&void 0!==r?r:e}apply3DTransform(e,t,n){if(this.config.enable3DRotation){const{rotationX:r,rotationY:a}=this.params,i=this.params.rotation||0,o=r*Math.PI/180,s=a*Math.PI/180,f=i*Math.PI/180,c=Math.cos(o),h=Math.sin(o),l=Math.cos(s),u=Math.sin(s),d=Math.cos(f),p=Math.sin(f),g=d*l,m=d*u*h-p*c,v=d*u*c+p*h,w=p*l;e.setTransform(g,m,v,w,t,n)}else{const r=(this.params.rotation||0)*Math.PI/180,a=Math.cos(r),i=Math.sin(r);e.setTransform(a,i,-i,a,t,n)}}drawCircle(e){e.moveTo(this.params.x,this.params.y),e.arc(this.params.x,this.params.y,this.params.radius,0,f)}drawCircle3D(e,t){const{x:n,y:r,radius:a}=this.params;e.save(),this.config.enable3DRotation?this.apply3DTransform(e,n,r):e.translate(n,r),e.beginPath(),e.arc(0,0,a,0,f),e.fillStyle=t,e.fill(),e.restore()}drawImage(e){const{x:t,y:n,radius:r}=this.params;e.save(),1!==this.params.opacity&&(e.globalAlpha=this.params.opacity),this.apply3DTransform(e,t,n);const a=this.getImageOffscreenCanvas(this.image,r);e.drawImage(a,-r/2,-r/2,r,r),e.restore()}}h.offscreenCanvases=new WeakMap;var l=h;const u={pointerEvents:"none",backgroundColor:"transparent",position:"absolute",top:0,left:0,width:"100%",height:"100%"};var d,p,g=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},m=function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n};class v{get ctx(){return g(this,d,"f")}get canvas(){return g(this,p,"f")}set canvas(e){m(this,p,e,"f"),m(this,d,e.getContext("2d"),"f")}constructor(e,t){this.lastUpdate=Date.now(),this.snowflakes=[],d.set(this,void 0),p.set(this,void 0),m(this,p,e,"f"),m(this,d,e.getContext("2d"),"f"),this.config={snowflakeCount:150,...c,...t},this.snowflakes=[],this.snowflakes=l.createSnowflakes(e,t.snowflakeCount||150,t),this.play()}updateConfig(e){this.config={...this.config,...e};const t=this.config.snowflakeCount-this.snowflakes.length;t>0&&(this.snowflakes=[...this.snowflakes,...l.createSnowflakes(this.canvas,t,e)]),t<0&&(this.snowflakes=this.snowflakes.slice(0,this.config.snowflakeCount));for(const n of this.snowflakes)n.updateConfig(this.config)}render(e=1){const{ctx:t,canvas:n,snowflakes:r}=this;if(!t||!n)return;const{offsetWidth:a,offsetHeight:i}=n;for(const o of r)o.update(a,i,e);if(t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,a,i),this.config.images&&this.config.images.length>0)for(const o of r)o.drawImage(t);else if(this.config.enable3DRotation)for(const o of r)o.drawCircle3D(t,this.config.color);else{t.beginPath();for(const e of r)e.drawCircle(t);t.fillStyle=this.config.color,t.fill()}}loop(){const e=Date.now(),t=Date.now()-this.lastUpdate;this.lastUpdate=e;const n=t/16.666666666666668;this.render(n),this.animationFrame=requestAnimationFrame((()=>this.loop()))}play(){this.loop()}pause(){this.animationFrame&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=void 0)}}d=new WeakMap,p=new WeakMap;function w(e){const[t,n]=(0,r.useState)(e);return function(e,t){const n=(0,r.useRef)(t);a(t,n.current)||(n.current=t),(0,r.useEffect)(e,n.current)}((()=>n(e)),[e]),t}var y=({color:e=c.color,changeFrequency:t=c.changeFrequency,radius:n=c.radius,speed:a=c.speed,wind:i=c.wind,rotationSpeed:o=c.rotationSpeed,opacity:f=c.opacity,snowflakeCount:h=150,images:l,enable3DRotation:d=c.enable3DRotation,style:p}={})=>{const g=(m=p,(0,r.useMemo)((()=>({...u,...m||{}})),[m]));var m;const y=(0,r.useRef)(null),b=(e=>{const[t,n]=(0,r.useState)(s(e.current)),a=(0,r.useCallback)((()=>{e.current&&n(s(e.current))}),[e]);return(0,r.useEffect)((()=>{const{ResizeObserver:t}=window;if(e.current){if(a(),"function"===typeof t){const n=new t(a);return n.observe(e.current),()=>n.disconnect()}return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)}}),[e,a]),t})(y),C=w({color:e,changeFrequency:t,radius:n,speed:a,wind:i,rotationSpeed:o,images:l,snowflakeCount:h,opacity:f,enable3DRotation:d}),S=(0,r.useRef)(C),x=(0,r.useRef)();return(0,r.useEffect)((()=>
vendor: 316 bytes, line 1
1(!x.current&&y.current&&(x.current=new v(y.current,S.current)),()=>{var e;null===(e=x.current)||void 0===e||e.pause(),x.current=void 0})),[]),(0,r.useEffect)((()=>{x.current&&x.current.updateConfig(C)}),[C]),r.createElement("canvas",{ref:y,height:b.height,width:b.width,style:g,"data-testid":"SnowfallCanvas"})}}}]);
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.