1/*! For license information please see 791.a9bc04af13ae30f8f354.bundle.js.LICENSE.txt */ 2"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[791],{791:function(t,e,n){n.r(e),n.d(e,{MorphSVGPlugin:function(){return et},default:function(){return et}});var r=n(7776);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}var a,s,l,h,p,u,c=function(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a},f=function(t){return"function"==typeof t},g=Math.atan2,d=Math.cos,_=Math.sin,m=Math.sqrt,v=Math.PI,y=2*v,b=.3*v,M=.7*v,P=1e20,x=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,w=/(^[#.][a-z]|[a-y][a-z])/i,T=/[achlmqstvz]/i,O=function(t){return console&&console.warn(t)},S=function(t){return Math.round(1e5*t)/1e5||0},z=function(t){var e,n=t.length,r=0,o=0;for(e=0;e<n;e++)r+=t[e++],o+=t[e];return[r/(n/2),o/(n/2)]},A=function(t){var e,n,r,o=t.length,i=t[0],a=i,s=t[1],l=s;for(r=6;r<o;r+=6)(e=t[r])>i?i=e:e<a&&(a=e),(n=t[r+1])>s?s=n:n<l&&(l=n);return t.centerX=(i+a)/2,t.centerY=(s+l)/2,t.size=(i-a)*(s-l)},N=function(t,e){void 0===e&&(e=3);for(var n,r,o,i,a,s,l,h,p,u,c,f,g,d,_,m,v=t.length,y=t[0][0],b=y,M=t[0][1],P=M,x=1/e;--v>-1;)for(n=(a=t[v]).length,i=6;i<n;i+=6)for(p=a[i],u=a[i+1],c=a[i+2]-p,d=a[i+3]-u,f=a[i+4]-p,_=a[i+5]-u,g=a[i+6]-p,m=a[i+7]-u,s=e;--s>-1;)(r=((l=x*s)*l*g+3*(h=1-l)*(l*f+h*c))*l+p)>y?y=r:r<b&&(b=r),(o=(l*l*m+3*h*(l*_+h*d))*l+u)>M?M=o:o<P&&(P=o);return t.centerX=(y+b)/2,t.centerY=(M+P)/2,t.left=b,t.width=y-b,t.top=P,t.height=M-P,t.size=(y-b)*(M-P)},Y=function(t,e){return e.length-t.length},U=function(t,e){var n=t.size||A(t),r=e.size||A(e);return Math.abs(r-n)<(n+r)/20?e.centerX-t.centerX||e.centerY-t.centerY:r-n},F=function(t,e){var n,r,o=t.slice(0),i=t.length,a=i-2;for(e|=0,n=0;n<i;n++)r=(n+e)%a,t[n++]=o[r],t[n]=o[r+1]},I=function(t,e,n,r,o){var i,a,s,l,h=t.length,p=0,u=h-2;for(n*=6,a=0;a<h;a+=6)l=t[i=(a+n)%u]-(e[a]-r),s=t[i+1]-(e[a+1]-o),p+=m(s*s+l*l);return p},X=function(t,e,n){var o,i,a,s=t.length,l=z(t),h=z(e),p=h[0]-l[0],u=h[1]-l[1],c=I(t,e,0,p,u),f=0;for(a=6;a<s;a+=6)(i=I(t,e,a/6,p,u))<c&&(c=i,f=a);if(n)for(o=t.slice(0),(0,r.O3)(o),a=6;a<s;a+=6)(i=I(o,e,a/6,p,u))<c&&(c=i,f=-a);return f/6},R=function(t,e,n){for(var r,o,i,a,s,l,h=t.length,p=P,u=0,c=0;--h>-1;)for(l=(r=t[h]).length,s=0;s<l;s+=6)o=r[s]-e,i=r[s+1]-n,(a=m(o*o+i*i))<p&&(p=a,u=r[s],c=r[s+1]);return[u,c]},j=function(t,e,n,r,o,i){var a,s,l,h,p=e.length,u=0,c=Math.min(t.size||A(t),e[n].size||A(e[n]))*r,f=P,g=t.centerX+o,d=t.centerY+i;for(a=n;a<p&&!((e[a].size||A(e[a]))<c);a++)s=e[a].centerX-g,l=e[a].centerY-d,(h=m(s*s+l*l))<f&&(u=a,f=h);return h=e[u],e.splice(u,1),h},G=function(t,e,n){void 0===n&&(n=1);for(var r,o,i,a,s,l,h,p,u,c=t[e],f=t[e+1],g=t[e+2],d=t[e+3],_=t[e+4],m=t[e+5],v=t[e+6],y=t[e+7];n-- >0;)l=(o=c+(g-c)*(r=1-1/(n+2)))+((i=g+(_-g)*r)-o)*r,h=(a=f+(d-f)*r)+((s=d+(m-d)*r)-a)*r,i+=((p=_+(v-_)*r)-i)*r,s+=((u=m+(y-m)*r)-s)*r,t.splice(e+2,4,g=S(o),d=S(a),_=S(l),m=S(h),v=S(l+(i-l)*r),y=S(h+(s-h)*r),S(i),S(s),S(p),S(u))},L=function(t){for(var e,n=t.length,r=-P;n--;)t[n]>r&&(r=t[n],e=n);return e},C=function(t,e){for(var n=[],r=[],o=t.length-2,i=0;i<o;i+=6)n.push(Math.pow(t[i]-t[i+6],2)+Math.pow(t[i+1]-t[i+7],2));for(;e--;)r[i=L(n)]=o=(r[i]||0)+1,n[i]*=o/(o+1);for(i=n.length;i--;)r[i]&&G(t,6*i,r[i])},V=function(t,e){return e||(0,r.bc)(t),Math.max(4,Math.round(t.totalLength/4))},k=function(t){return t.slice(0).sort(Y)},D=function(t){for(var e=t[0],n=t[1],r=2;r<t.length;r+=2)if(Math.abs(t[r]-e)>.01||Math.abs(t[r+1]-n)>.01)return!1;return!0},H=function(t,e){var n,o,i,a,s,l=e=e||{},h=l.redraw,p=l.points,u=l.maxSegments,c=void 0===u?999:u,f=0,g=t,d=Array.isArray(p)?p:0;if(h=!1!==h)(0,r.bc)(t);else for(t.totalPoints=0,o=t.length;o--;)t.totalPoints+=t[o].length;for(d?(g=k(t),s=(d=k(d))[0].totalLength/Math.round(d[0].length/6)):(p&&"auto"!==p||(p=V(t,h),h||(p-=Math.round(t.totalPoints/6))),p=Math.max(h?10:4,Math.min(999,p))),o=0;o<g.length;o++){if(i=g[o],n=Math.max(h?10:4,d?Math.round(d[o]?d[o].length/6:g[o].totalLength/s||0):Math.round((f/p+(h?i.totalLength/t.totalLength:i.length/t.totalPoints))*p)-f),o>=c||d&&(!d[o]||D(d[o])));else if(h){var _;a=(0,r.WQ)((0,r.Dg)(i,n),e.curviness),i.length=0,(_=i).push.apply(_,a)}else C(i,n);f+=n}return t},q=function(t,e,n,i,a){var s,l,h,p,u,c,f,g=e.length-t.length,d=g>0?e:t,_=g>0?t:e,m=0,v="complexity"===i?Y:U,y="position"===i?0:"number"==typeof i?i:.8,b
vendor: 4,290 bytes, line 2
2=_.length,M="object"===o(n)&&n.push?n.slice(0):[n],P="reverse"===M[0]||M[0]<0,x="log"===n;if(_[0]){if(d.length>1&&(t.sort(v),e.sort(v),d.size||N(d),_.size||N(_),c=d.centerX-_.centerX,f=d.centerY-_.centerY,v===U))for(b=0;b<_.length;b++)d.splice(b,0,j(_[b],d,b,y,c,f));if(g)for(g<0&&(g=-g),d[0].length>_[0].length&&C(_[0],(d[0].length-_[0].length)/6|0),b=_.length;m<g;)d[b].size||A(d[b]),p=(h=R(_,d[b].centerX,d[b].centerY))[0],u=h[1],_[b++]=[p,u,p,u,p,u,p,u],_.totalPoints+=8,m++;for(b=0;b<t.length;b++)s=e[b],l=t[b],(g=s.length-l.length)<0?C(s,-g/6|0):g>0&&C(l,g/6|0),P&&!1!==a&&!l.reversed&&(0,r.O3)(l),(n=M[b]||0===M[b]?M[b]:"auto")&&(l.closed||Math.abs(l[0]-l[l.length-2])<.5&&Math.abs(l[1]-l[l.length-1])<.5?"auto"===n||"log"===n?(M[b]=n=X(l,s,!b||!1===a),n<0&&(P=!0,(0,r.O3)(l),n=-n),F(l,6*n)):"reverse"!==n&&(b&&n<0&&(0,r.O3)(l),F(l,6*(n<0?-n:n))):!P&&("auto"===n&&Math.abs(s[0]-l[0])+Math.abs(s[1]-l[1])+Math.abs(s[s.length-2]-l[l.length-2])+Math.abs(s[s.length-1]-l[l.length-1])>Math.abs(s[0]-l[l.length-2])+Math.abs(s[1]-l[l.length-1])+Math.abs(s[s.length-2]-l[0])+Math.abs(s[s.length-1]-l[1])||n%2)?((0,r.O3)(l),M[b]=-1,P=!0):"auto"===n?M[b]=0:"reverse"===n&&(M[b]=-1),l.closed!==s.closed&&(l.closed=s.closed=!1));return x&&O("shapeIndex:["+M.join(",")+"]"),t.shapeIndex=M,M}},B=function(t,e,n,o,i){var a=(0,r.UY)(t[0]),s=(0,r.UY)(t[1]);q(a,s,e||0===e?e:"auto",n,i)&&(t[0]=(0,r.a9)(a),t[1]=(0,r.a9)(s),("log"===o||!0===o)&&O('precompile:["'+t[0]+'","'+t[1]+'"]'))},Q=function(t,e){var n,r,o,i,a,s,l,h=0,p=parseFloat(t[0]),u=parseFloat(t[1]),c=p+","+u+" ",f=.999999;for(n=.5*e/(.5*(o=t.length)-1),r=0;r<o-2;r+=2){if(h+=n,s=parseFloat(t[r+2]),l=parseFloat(t[r+3]),h>f)for(a=1/(Math.floor(h)+1),i=1;h>f;)c+=(p+(s-p)*a*i).toFixed(2)+","+(u+(l-u)*a*i).toFixed(2)+" ",h--,i++;c+=s+","+l+" ",p=s,u=l}return c},W=function(t){var e=t[0].match(x)||[],n=t[1].match(x)||[],r=n.length-e.length;r>0?t[0]=Q(e,r):t[1]=Q(n,-r)},E=function(t){for(var e,n,r,o,i,a,s,l,h=t.length;--h>-1;)for((l=(e=t[h]).cpData=e.cpData||[]).length=0,s=e.length-2,a=0;a<s;a+=6)n=e[a]-e[a+2],r=e[a+1]-e[a+3],o=e[a+6]-e[a+4],i=e[a+7]-e[a+5],l[a+2]=g(r,n),l[a+3]=m(n*n+r*r),l[a+4]=g(i,o),l[a+5]=m(o*o+i*i);return t},J=function(t){var e=t.trim().split(" ");return{x:(~t.indexOf("left")?0:~t.indexOf("right")?100:isNaN(parseFloat(e[0]))?50:parseFloat(e[0]))/100,y:(~t.indexOf("top")?0:~t.indexOf("bottom")?100:isNaN(parseFloat(e[1]))?50:parseFloat(e[1]))/100}},K=function(t){return t!==t%v?t+(t<0?y:-y):t},Z="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",$=function(t,e,n,r){var o,i,a=this._origin,s=this._eOrigin,h=t[n]-a.x,p=t[n+1]-a.y,u=m(h*h+p*p),c=g(p,h);return h=e[n]-s.x,p=e[n+1]-s.y,o=g(p,h)-c,i=K(o),!r&&l&&Math.abs(i+l.ca)<b&&(r=l),this._anchorPT=l={_next:this._anchorPT,t:t,sa:c,ca:r&&i*r.ca<0&&Math.abs(i)>M?o:i,sl:u,cl:m(h*h+p*p)-u,i:n}},tt=function(t){a=c(),p=p||a&&a.plugins.morphSVG,a&&p?(s=a.utils.toArray,u=a.core.reverting||function(){},document,p.prototype._tweenRotation=$,h=1):t&&O("Please gsap.registerPlugin(MorphSVGPlugin)")},et={version:"3.15.0",name:"morphSVG",rawVars:1,register:function(t,e){a=t,p=e,tt()},init:function(t,e,n,a,p){if(h||tt(1),!e)return O("invalid shape"),!1;var u,c,g,d,_,m,v,y,b,M,P,S,z,A,Y,U,F,I,X,R;if(f(e)&&(e=e.call(n,a,t,p)),"string"==typeof e||e.getBBox||e[0])e={shape:e};else if("object"===o(e)){for(c in u={},e)u[c]=f(e[c])&&"render"!==c?e[c].call(n,a,t,p):e[c];e=u}var j=t.nodeType?window.getComputedStyle(t):{},G=j.fill+"",L=!("none"===G||"0"===(G.match(x)||[])[3]||"evenodd"===j.fillRule),C=e.smooth,k=(e.origin||"50 50").split(",");if(!0===C||"auto"===C?C={}:"number"==typeof C&&(C={points:C}),_="POLYLINE"===(u=(t.nodeName+"").toUpperCase())||"POLYGON"===u,"PATH"!==u&&!_&&!e.prop)return O("Cannot morph a <"+u+"> element. "+Z),!1;if(c="PATH"===u?"d":"points",!e.prop&&!f(t.setAttribute))return!1;if(d=function(t,e,n){var o,i;return(!("string"==typeof t)||w.test(t)||(t.match(x)||[]).length<3)&&((o=s(t)[0])?(i=(o.nodeName+"").toUpperCase(),e&&"PATH"!==i&&(o=(0,r.O5)(o,!1),i="PATH"),t=o.getAttribute("PATH"===i?"d":"points")||"",o===n&&(t=o.getAttributeNS(null,"data-original")||t)):(O("WARNING: invalid morph to: "+t),t=!1)),t}(e.shape||e.d||e.points||"","d"===c,t),_&&T.test(d))return O("A <"+u+"> cannot accept path data. "+Z),!1;
2if(m=e.shapeIndex||0===e.shapeIndex?e.shapeIndex:"auto",v=e.map||et.defaultMap,this._prop=e.prop,this._render=e.render||et.defaultRender,this._apply="updateTarget"in e?e.updateTarget:et.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(e.precision)?2:+e.precision),this._tween=n,d){if(this._target=t,F="object"===o(e.precompile),M=this._original=this._prop?t[this._prop]:t.getAttribute(c),this._prop||t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",M),"d"===c||this._prop){if(M=(0,r.UY)(F?e.precompile[0]:M),P=(0,r.UY)(F?e.precompile[1]:d),C){for(z=M.length;--z;)D(M[z])&&M.splice(z,1);H(M,i({},C,{points:+C.points||Math.max(V(M),V(P)),maxSegments:P.length})),H(P,!1===C.redraw?C:i({},C,{points:M}))}if(!F&&!q(M,P,m,v,L))return!1;for("log"!==e.precompile&&!0!==e.precompile||O('precompile:["'+(0,r.a9)(M)+'","'+(0,r.a9)(P)+'"]'),X="linear"!==(e.type||et.defaultType),R=e.curveMode||X,E(M),E(P),X&&(M.size||N(M),P.size||N(P),I=J(k[0]),this._origin=M.origin={x:M.left+I.x*M.width,y:M.top+I.y*M.height},k[1]&&(I=J(k[1])),this._eOrigin={x:P.left+I.x*P.width,y:P.top+I.y*P.height}),this._rawPath=t._gsRawPath=M,z=M.length;--z>-1;){for(Y=M[z],U=P[z],y=Y.cpData,b=U.cpData,A=Y.length,l=0,S=0;S<A;S+=6)U[S]===Y[S]&&U[S+1]===Y[S+1]||(X?g=this._tweenRotation(Y,U,S):(g=this.add(Y,S,Y[S],U[S],0,0,0,0,0,1),g=this.add(Y,S+1,Y[S+1],U[S+1],0,0,0,0,0,1)||g));for(S=0;S<A;S+=2)R&&(y[S]!==b[S]||y[S+1]!==b[S+1])&&y[S+1]&&b[S+1]?this._controlPT={_next:this._controlPT,i:S,j:z,ai:S%6>3?S+2:S-2,sa:y[S],ca:K(b[S]-y[S]),sl:y[S+1],cl:b[S+1]-y[S+1]}:(U[S]!==Y[S]&&(g=this.add(Y,S,Y[S],U[S],0,0,0,0,0,1)),U[S+1]!==Y[S+1]&&(g=this.add(Y,S+1,Y[S+1],U[S+1],0,0,0,0,0,1)||g))}}else g=this.add(t,"setAttribute",t.getAttribute(c)+"",d+"",a,p,0,function(t){return isNaN(t)?W:function(e){W(e),e[1]=function(t,e){if(!e)return t;var n,r,o,i=t.match(x)||[],a=i.length,s="";for("reverse"===e?(r=a-1,n=-2):(r=(2*(parseInt(e,10)||0)+1+100*a)%a,n=2),o=0;o<a;o+=2)s+=i[r-1]+","+i[r]+" ",r=(r+n)%a;return s}(e[1],parseInt(t,10))}}(m),c);X&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x,0,0,0,0,0,1),g=this.add(this._origin,"y",this._origin.y,this._eOrigin.y,0,0,0,0,0,1)),g&&(this._props.push("morphSVG"),g.end=C&&!1!==C.persist?(0,r.a9)(P):d,g.endProp=c)}return 1},render:function(t,e){for(var n,o,i,a,s,l,h,p,c=e._rawPath,f=e._controlPT,g=e._anchorPT,m=e._rnd,v=e._target,y=e._pt;y;)y.r(t,y.d),y=y._next;if(1===t&&e._apply)for(y=e._pt;y;)y.end&&(e._prop?v[e._prop]=y.end:v.setAttribute(y.endProp,y.end)),y=y._next;else if(c){for(;g;)a=g.sa+t*g.ca,i=g.sl+t*g.cl,g.t[g.i]=e._origin.x+d(a)*i,g.t[g.i+1]=e._origin.y+_(a)*i,g=g._next;for(;f;)o=c[f.j],s=f.i,a=f.sa+t*f.ca,h=_(a),p=d(a),i=f.sl+t*f.cl,o[s]=o[f.ai]-p*i,o[s+1]=o[f.ai+1]-h*i,f=f._next;if(!t&&u()&&(c=(0,r.UY)(e._original)),v._gsRawPath=c,e._apply){for(n="",l=0;l<c.length;l++){for(i=(o=c[l]).length,n+="M"+(o[0]*m|0)/m+" "+(o[1]*m|0)/m+" C",s=2;s<i;s++)n+=(o[s]*m|0)/m+" ";o.closed&&(n+="z")}e._prop?v[e._prop]=n:v.setAttribute("d",n)}}e._render&&c&&e._render.call(e._tween,c,v)},kill:function(t){this._pt=this._rawPath=0},getRawPath:r.mw,stringToRawPath:r.UY,rawPathToString:r.a9,smoothRawPath:H,normalizeStrings:function(t,e,n){var r=n.shapeIndex,o=n.map,i=[t,e];return B(i,r,o),i},pathFilter:B,pointsFilter:W,getTotalSize:N,equalizeSegmentQuantity:q,convertToPath:function(t,e){return s(t).map((function(t){return(0,r.O5)(t,!1!==e)}))},defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};c()&&a.registerPlugin(et)}}]); 3//# sourceMappingURL=791.a9bc04af13ae30f8f354.bundle.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.