vendor: 9,592 bytes, lines 1-4
1import{l as q}from"./vendor-lottie-web-BvNdAMLc.js";import{r as O,R as z}from"./vendor-react-BxcIUS9o.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"[email protected]+914"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7fa3bbe1-69c9-4b40-9138-3b54b2c1c554",t._sentryDebugIdIdentifier="sentry-dbid-7fa3bbe1-69c9-4b40-9138-3b54b2c1c554")})()}catch{}function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,i,S=[],f=!0,w=!1;try{if(c=(r=r.call(t)).next,e!==0)for(;!(f=(n=c.call(r)).done)&&(S.push(n.value),S.length!==e);f=!0);}catch(g){w=!0,u=g}finally{try{if(!f&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(w)throw u}}return S}}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?C(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var oe=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],ie=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,i=e.initialSegment,S=e.onComplete,f=e.onLoopComplete,w=e.onEnterFrame,g=e.onSegmentStart,A=e.onConfigReady,D=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,b=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,oe),P=O.useState(!1),s=Z(P,2),_=s[0],I=s[1],o=O.useRef(),v=O.useRef(null),H=function(){var a;(a=o.current)===null||a===void 0||a.play()},M=function(){var a;(a=o.current)===null||a===void 0||a.stop()},F=function(){var a;(a=o.current)===null||a===void 0||a.pause()},N=function(a){var d;(d=o.current)===null||d===void 0||d.setSpeed(a)},V=function(a,d){var m;(m=o.current)===null||m===void 0||m.goToAndPlay(a,d)},k=function(a,d){var m;(m=o.current)===null||m===void 0||m.goToAndStop(a,d)},B=function(a){var d;(d=o.current)===null||d===void 0||d.setDirection(a)},$=function(a,d){var m;(m=o.current)===null||m===void 0||m.playSegments(a,d)},W=function(a){var d;(d=o.current)===null||d===void 0||d.setSubframe(a)},K=function(a){var d;return(d=o.current)===null||d===void 0?void 0:d.getDuration(a)},U=function(){var a;(a=o.current)===null||a===void 0||a.destroy(),o.current=void 0},Y=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d;if(v.current){(d=o.current)===null||d===void 0||d.destroy();var m=T(T(T({},e),a),{},{container:v.current});return o.current=q.loadAnimation(m),I(!!o.current),function(){var R;(R=o.current)===null||R===void 0||R.destroy(),o.current=void 0}}};O.useEffect(function(){var y=Y();return function(){return y==null?void 0:y()}},[n,u]),O.useEffect(function(){o.current&&(o.current.autoplay=!!c)},[c]),O.useEffect(function(){if(o.current){if(!i){o.current.resetSegments(!0);return}!Array.isArray(i)||!i.length||((o.current.currentRawFrame<i[0]||o.current.currentRawFrame>i[1])&&(o.current.currentRawFrame=i[0]),o.current.setSegment(i[0],i[1]))}},[i]),O.useEffect(function(){var y=[{name:"complete",handler:S},{name:"loopComplete",handler:f},{name:"enterFrame",handler:w},{name:"segmentStart",handler:g},{name:"config_ready",handler:A},{name:"data_ready",handler:D},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:b}],a=y.filter(function(m){return m.handler!=null});if(a.length){var d=a.map(function(m){var R;return(R=o.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var E;(E=o.current)===null||E===void 0||E.removeEventListener(m.name,m.handler)}});return function(){d.forEach(function(m){return m()})}}},[S,f,w,g,A,D,h,l,L,b]);var X=z.createElement("div",T({style:r,ref:v},p));return{View:X,play:H,stop:M,pause:F,setSpeed:N,goToAndStop:k,goToAndPlay:V,setDirection:B,playSegments:$,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:_,animationItem:o.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,i=n.width,S=n.height,f=(e-c)/i,w=(r-u)/S;return{x:f,y:w}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;O.useEffect(function(){var i=r.current;if(!(!i||!n||!c.length)){n.stop();var S=function(){var g=null,A=function(){var h=ue(i),l=c.find(function(b){var p=b.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment 3n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",A),function(){document.removeEventListener("scroll",A)}},f=function(){var g=function(l,L){var b=l,p=L;if(b!==-1&&p!==-1){var P=le(i,b,p);b=P.x,p=P.y}var s=c.find(function(o){var v=o.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?b>=v.x[0]&&b<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?b===v.x&&p===v.y:!1});if(s){if(s.type==="seek"&&s.position&&Array.isArray(s.position.x)&&Array.isArray(s.position.y)&&s.frames.length===2){var _=(b-s.position.x[0])/(s.position.x[1]-s.position.x[0]),I=(p-s.position.y[0])/(s.position.y[1]-s.position.y[0]);n.playSegments(s.frames,!0),n.goToAndStop(Math.ceil((_+I)/2*(s.frames[1]-s.frames[0])),!0)}s.type==="loop"&&n.playSegments(s.frames,!0),s.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(s.frames)),s.type==="stop"&&n.goToAndStop(s.frames[0],!0)}},A=function(l){g(l.clientX,l.clientY)},D=function(){g(-1,-1)};return i.addEventListener("mousemove",A),i.addEventListener("mouseout",D),function(){i.removeEventListener("mousemove",A),i.removeEventListener("mouseout",D)}};switch(u){case"scroll":return S();case"cursor":return f()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,i=u.View,S=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:S}),i},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,i=e.interactivity,S=x(e,fe),f=ie(S,c),w=f.View,g=f.play,A=f.stop,D=f.pause,h=f.setSpeed,l=f.goToAndStop,L=f.goToAndPlay,b=f.setDirection,p=f.playSegments,P=f.setSubframe,s=f.getDuration,_=f.destroy,I=f.animationContainerRef,o=f.animationLoaded,v=f.animationItem;return O.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:A,pause:D,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:b,playSegments:p,setSubframe:P,getDuration:s,destroy:_,animationContainerRef:I,animationLoaded:o,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:w,play:g,stop:A,pause:D,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:b,playSegments:p,setSubframe:P,getDuration:s,destroy:_,animationContainerRef:I,animationLoaded:o,animationItem:v},actions:(n=i==null?void 0:i.actions)!==null&&n!==void 0?n:[],mode:(u=i==null?void 0:i.mode)!==null&&u!==void 0?u:"scroll"})};export{ve as L}; 4//# sourceMappingURL=vendor-lottie-react-DRYEZL98.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.