1/*! For license information please see 7875.c87d2361c992a1fcdbd1.bundle.mjs.LICENSE.txt */ 2"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[7875],{7875:function(e,t,r){r.r(t),r.d(t,{EaselPlugin:function(){return F},default:function(){return F}});var i,l,n,o,s,u,a="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),f=function(){return"undefined"!=typeof window},c=function(){return i||f()&&(i=window.gsap)&&i.registerPlugin&&i},h=function(){return o||n&&n.createjs||n||{}},p=function(e){return console.warn(e)},d=function(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),p("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)},g=function(e,t,r){s||(s=h().ColorFilter)||p("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var l,n,o,u,f,c,g=e.filters||[],b=g.length;b--;)if(g[b]instanceof s){n=g[b];break}if(n||(n=new s,g.push(n),e.filters=g),o=n.clone(),null!=t.tint)l=i.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,o.redOffset=+l[0]*u,o.greenOffset=+l[1]*u,o.blueOffset=+l[2]*u,o.redMultiplier=o.greenMultiplier=o.blueMultiplier=1-u;else for(f in t)"exposure"!==f&&"brightness"!==f&&(o[f]=+t[f]);for(null!=t.exposure?(o.redOffset=o.greenOffset=o.blueOffset=255*(+t.exposure-1),o.redMultiplier=o.greenMultiplier=o.blueMultiplier=1):null!=t.brightness&&(u=+t.brightness-1,o.redOffset=o.greenOffset=o.blueOffset=u>0?255*u:0,o.redMultiplier=o.greenMultiplier=o.blueMultiplier=1-Math.abs(u)),b=8;
vendor: 2,710 bytes, lines 2-3
2b--;)n[f=a[b]]!==o[f]&&(c=r.add(n,f,n[f],o[f],0,0,0,0,0,1))&&(c.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||d(e)},b=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],M=.212671,m=.71516,w=.072169,x=function(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,l=[],n=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[n+4]:0,l[n+i]=e[n]*t[i]+e[n+1]*t[i+5]+e[n+2]*t[i+10]+e[n+3]*t[i+15]+o;n+=5}return l},v=function(e,t,r){u||(u=h().ColorMatrixFilter)||p("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var l,n,o,s,a,f,c=e.filters||[],g=c.length;--g>-1;)if(c[g]instanceof u){o=c[g];break}for(o||(o=new u(b.slice()),c.push(o),e.filters=c),n=o.matrix,l=b.slice(),null!=t.colorize&&(l=function(e,t,r){isNaN(r)&&(r=1);var l=i.utils.splitColor(t),n=l[0]/255,o=l[1]/255,s=l[2]/255,u=1-r;return x([u+r*n*M,r*n*m,r*n*w,0,0,r*o*M,u+r*o*m,r*o*w,0,0,r*s*M,r*s*m,u+r*s*w,0,0,0,0,0,1,0],e)}(l,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(a=l,f=Number(t.contrast),l=isNaN(f)?a:x([f+=.01,0,0,0,128*(1-f),0,f,0,0,128*(1-f),0,0,f,0,128*(1-f),0,0,0,1,0],a)),null!=t.hue&&(l=function(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return x([M+r*(1-M)+i*-M,m+r*-m+i*-m,w+r*-w+i*(1-w),0,0,M+r*-M+.143*i,m+.28484*r+.14*i,w+r*-w+-.283*i,0,0,M+r*-M+-.787329*i,m+r*-m+i*m,w+r*(1-w)+i*w,0,0,0,0,0,1,0,0,0,0,0,1],e)}(l,Number(t.hue))),null!=t.saturation&&(l=function(e,t){if(isNaN(t))return e;var r=1-t,i=r*M,l=r*m,n=r*w;return x([i+t,l,n,0,0,i,l+t,n,0,0,i,l,n+t,0,0,0,0,0,1,0],e)}(l,Number(t.saturation))),g=l.length;--g>-1;)l[g]!==n[g]&&(s=r.add(n,g,n[g],l[g],0,0,0,0,0,1))&&(s.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||d(),r._matrix=n},O=function(e){i=e||c(),f()&&(n=window),i&&(l=1)},F={version:"3.15.0",name:"easel",init:function(e,t,r,n,o){var s,u,a,f,c,h,d;for(s in l||(O(),i||p("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(c=t[s],"colorFilter"===s||"tint"===s||"tintAmount"===s||"exposure"===s||"brightness"===s)a||(g(e,t.colorFilter||t,this),a=!0);else if("saturation"===s||"contrast"===s||"hue"===s||"colorize"===s||"colorizeAmount"===s)f||(v(e,t.colorMatrixFilter||t,this),f=!0);else if("frame"===s){if("string"==typeof c&&"="!==c.charAt(1)&&(h=e.labels))for(d=0;d<h.length;d++)h[d].label===c&&(c=h[d].position);(u=this.add(e,"gotoAndStop",e.currentFrame,c,n,o,Math.round,0,0,1))&&(u.op=s)}else null!=e[s]&&this.add(e,s,"get",c)},render:function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:O,registerCreateJS:function(e){o=e}};c()&&i.registerPlugin(F)}}]); 3//# sourceMappingURL=7875.c87d2361c992a1fcdbd1.bundle.mjs.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.