PageSourceSearch

https://cdn.bulbapp.io/apps/frontend/_next/static/chunks/9155-bdfa03ff636da7e6.js

js bulbapp.io collected 2026-10-02 06:43:46 UTC 10,314 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9155],{22439:function(t,e,n){n.r(e),n.d(e,{create:function(){return o}});var r={};!function t(e,n,r,o){var i=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL);function a(){}function s(t){var r=n.exports.Promise,o=void 0!==r?r:e.Promise;return"function"===typeof o?new o(t):(t(a,a),null)}var c,l=function(){var t,e,n=Math.floor(1e3/60),r={},o=0;return"function"===typeof requestAnimationFrame&&"function"===typeof cancelAnimationFrame?(t=function(t){var e=Math.random();return r[e]=requestAnimationFrame((function i(a){o===a||o+n-1<a?(o=a,delete r[e],t()):r[e]=requestAnimationFrame(i)})),e},e=function(t){r[t]&&cancelAnimationFrame(r[t])}):(t=function(t){return setTimeout(t,n)},e=function(t){return clearTimeout(t)}),{frame:t,cancel:e}}(),f=function(){var e,n,o={};return function(){if(e)return e;if(!r&&i){var a=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join("\n");try{e=new Worker(URL.createObjectURL(new Blob([a])))}catch(c){return void 0!==typeof console&&"function"===typeof console.warn&&console.warn("\ud83c\udf8a Could not load worker",c),null}!function(t){function e(e,n){t.postMessage({options:e||{},callback:n})}t.init=function(e){var n=e.transferControlToOffscreen();t.postMessage({canvas:n},[n])},t.fire=function(r,i,a){if(n)return e(r,null),n;var c=Math.random().toString(36).slice(2);return n=s((function(i){function s(e){e.data.callback===c&&(delete o[c],t.removeEventListener("message",s),n=null,a(),i())}t.addEventListener("message",s),e(r,c),o[c]=s.bind(null,{data:{callback:c}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),o)o[e](),delete o[e]}}(e)}return e}}(),u={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function h(t,e,n){return function(t,e){return e?e(t):t}(t&&(null!==(r=t[e])&&void 0!==r)?t[e]:u[e],n);var r}function d(t){return t<0?0:Math.floor(t)}function p(t){return parseInt(t,16)}function m(t){return t.map(g)}function g(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:p(e.substring(0,2)),g:p(e.substring(2,4)),b:p(e.substring(4,6))}}function v(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function y(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function b(t){var e=t.angle*(Math.PI/180),n=t.spread*(Math.PI/180);return{x:t.x,y:t.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*t.startVelocity+Math.random()*t.startVelocity,angle2D:-e+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)
1*Math.PI,color:t.color,shape:t.shape,tick:0,totalTicks:t.ticks,decay:t.decay,drift:t.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*t.gravity,ovalScalar:.6,scalar:t.scalar}}function w(t,e,n,i,a){var c,f,u=e.slice(),h=t.getContext("2d"),d=s((function(e){function s(){c=f=null,h.clearRect(0,0,i.width,i.height),a(),e()}c=l.frame((function e(){!r||i.width===o.width&&i.height===o.height||(i.width=t.width=o.width,i.height=t.height=o.height),i.width||i.height||(n(t),i.width=t.width,i.height=t.height),h.clearRect(0,0,i.width,i.height),u=u.filter((function(t){return function(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.wobble+=e.wobbleSpeed,e.velocity*=e.decay,e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble);var n=e.tick++/e.totalTicks,r=e.x+e.random*e.tiltCos,o=e.y+e.random*e.tiltSin,i=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-n)+")",t.beginPath(),"circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(i-r)*e.ovalScalar,Math.abs(a-o)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,n,r,o,i,a,s,c){t.save(),t.translate(e,n),t.rotate(i),t.scale(r,o),t.arc(0,0,1,a,s,c),t.restore()}(t,e.x,e.y,Math.abs(i-r)*e.ovalScalar,Math.abs(a-o)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var s=Math.PI/2*3,c=4*e.scalar,l=8*e.scalar,f=e.x,u=e.y,h=5,d=Math.PI/h;h--;)f=e.x+Math.cos(s)*l,u=e.y+Math.sin(s)*l,t.lineTo(f,u),s+=d,f=e.x+Math.cos(s)*c,u=e.y+Math.sin(s)*c,t.lineTo(f,u),s+=d;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(o)),t.lineTo(Math.floor(i),Math.floor(a)),t.lineTo(Math.floor(r),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}(h,t)})),u.length?c=l.frame(e):s()})),f=s}));return{addFettis:function(t){return u=u.concat(t),d},canvas:t,promise:d,reset:function(){c&&l.cancel(c),f&&f()}}}function M(t,n){var r,o=!t,a=!!h(n||{},"resize"),c=h(n,"disableForReducedMotion",Boolean),l=i&&!!h(n||{},"useWorker")?f():null,u=o?v:y,p=!(!t||!l)&&!!t.__confetti_initialized,g="function"===typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function M(e,n,o){for(var i,a,s=h(e,"particleCount",d),c=h(e,"angle",Number),l=h(e,"spread",Number),f=h(e,"startVelocity",Number),p=h(e,"decay",Number),g=h(e,"gravity",Number),v=h(e,"drift",Number),y=h(e,"colors",m),M=h(e,"ticks",Number),C=h(e,"shapes"),x=h(e,"scalar"),_=function(t){var e=h(t,"origin",Object);return e.x=h(e,"x",Number),e.y=h(e,"y",Number),e}(e),k=s,O=[],E=t.width*_.x,T=t.height*_.y;k--;)O.push(b({x:E,y:T,angle:c,spread:l,startVelocity:f,color:y[k%y.length],shape:C[(i=0,a=C.length,Math.floor(Math.random()*(a-i))+i)],ticks:M,decay:p,gravity:g,drift:v,scalar:x}));return r?r.addFettis(O):(r=w(t,O,u,n,o)).promise}function C(n){var i=c||h(n,"disableForReducedMotion",Boolean),f=h(n,"zIndex",Number);if(i&&g)return s((function(t){t()}));o&&r?t=r.canvas:o&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(f),document.body.appendChild(t)),a&&!p&&u(t);var d={width:t.width,height:t.height};function m(){if(l){var e={getBoundingClientRect:function(){if(!o)return t.getBoundingClientRect()}};return u(e),void l.postMessage({resize:{width:e.width,height:e.height}})}d.width=d.height=null}function v(){r=null,a&&e.removeEventListener("resize",m),o&&t&&(document.body.removeChild(t),t=null,p=!1)}return l&&!p&&l.init(t),p=!0,l&&(t.__confetti_initialized=!0),a&&e.addEventListener("resize",m,!1),l?l.fire(n,d,v):M(n,d,v)}return C.reset=function(){l&&l.reset(),r&&r.reset()},C}function C(){return c||(c=M(null,{useWorker:!0,resize:!0})),c}n.exports=function(){return C().apply(this,arguments)},n.exports.reset=function(){C().reset()},n.exports.create=M}(function(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:this||{}}(),r,!1),e.default=r.exports;var o=r.exports.create},49155:function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0});var a=i(n(22439)),s=i(n(67294)),c=function(t){function e(e){var n=t.call(this,e)||this;return n.refCanvas=s.default.createRef(),n.confetti=null,n}return r(e,t),e.prototype.componentDidMount=function(){if(this.refCanvas.current){var t=this.props,e=t.resize,n=t.useWorker,r={resize:"undefined"===typeof e||e,useWorker:"undefined"===typeof n||n};this.confetti=a.default.create(this.refCanvas.current,r),this.setRefConfetti()}},e.prototype.componentDidUpdate=function(t){var e=this.props,n=e.fire,r=e.reset,o=!!n,i=n!==t.fire;o&&i&&this.fireConfetti();var a=!!r,s=r!==t.reset;a&&s&&this.resetConfetti()},e.prototype.componentWillUnmount=function(){this.unsetRefConfetti()},e.prototype.setRefConfetti=function(){var t=this.props.refConfetti;t&&t(this.confetti)},e.prototype.unsetRefConfetti=function(){var t=this.props.refConfetti;t&&t(null)},e.prototype.fireConfetti=function(){if(this.confetti){var t=this.props,e=t.onFire,n=t.onDecay,r=(t.onReset,t.className,t.style,t.width,t.height,t.refConfetti,t.fire,t.reset,o(t,["onFire","onDecay","onReset","className","style","width","height","refConfetti","fire","reset"]));e&&e();var i=this.confetti(r);i&&i.then((function(){n&&n()}))}},e.prototype.resetConfetti=function(){if(this.confetti){this.confetti.reset();var t=this.props.onReset;t&&t()}},e.prototype.render=function(){var t=this.props,e=t.style,n=t.className,r=t.width,o=t.height;return s.default.createElement("canvas",{ref:this.refCanvas,style:e,className:n,width:r,height:o})},e}(s.default.Component);e.default=c}}]);

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.