reacthub-pixitweenjs 0.2.74 → 0.2.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -19070,17 +19070,19 @@ const Y4 = {
19070
19070
  }, [_, w]);
19071
19071
  const G = Xv.debounce((nt) => {
19072
19072
  if (p.current) {
19073
+ console.log("requested to start playing gif");
19073
19074
  let ot = nt === 0 ? 0 : nt / j;
19074
19075
  const dt = v.current.totalFrames;
19075
- ot = ot >= dt ? dt : ot, p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
19076
+ ot = ot >= dt ? dt : ot, console.log("requested to start playing gif frameNumber", ot), p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
19076
19077
  }
19077
- }, 50), K = Xv.debounce(() => {
19078
- p.current && (p.current.stop(), v.current.isPlaying = !1);
19079
- }, 150), X = (nt) => {
19078
+ }, 10), K = Xv.debounce(() => {
19079
+ p.current && (console.log("requested to stop playing gif"), p.current.stop(), v.current.isPlaying = !1);
19080
+ }, 20), X = (nt) => {
19080
19081
  if (p.current) {
19082
+ console.log("gif startAt", nt);
19081
19083
  let ot = nt === 0 ? 0 : nt / j;
19082
19084
  const dt = v.current.totalFrames;
19083
- ot = ot >= dt ? dt : ot, p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
19085
+ ot = ot >= dt ? dt : ot, console.log("gif startAt frameNumber", ot), p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
19084
19086
  }
19085
19087
  }, $ = () => {
19086
19088
  console.log("local gif time complete"), p.current && (p.current.stop(), v.current.isPlaying = !1);
@@ -19089,7 +19091,7 @@ const Y4 = {
19089
19091
  }, Q = (nt) => {
19090
19092
  var dt;
19091
19093
  const ot = nt + ((dt = m.current) == null ? void 0 : dt.time());
19092
- p.current && v.current.isDragging ? (G(ot), K(), v.current.isPlaying = !1) : p.current && !v.current.isPlaying && (G(ot), v.current.isPlaying = !0);
19094
+ p.current && v.current.isDragging ? (console.log("onUpdate to start playing gif"), G(ot), K(), v.current.isPlaying = !1) : p.current && !v.current.isPlaying && (G(ot), v.current.isPlaying = !0);
19093
19095
  }, J = () => {
19094
19096
  f(!0);
19095
19097
  };
@@ -19117,7 +19119,7 @@ const Y4 = {
19117
19119
  });
19118
19120
  }
19119
19121
  return () => {
19120
- m.current && (m.current.kill(), Ee.killTweensOf(m.current)), nt.revert(), c.current && c.current.destroy();
19122
+ m.current && (m.current.kill(), Ee.killTweensOf(m.current)), nt.revert();
19121
19123
  };
19122
19124
  }, [M, x, A, I, S]), /* @__PURE__ */ ee.jsx(
19123
19125
  Gi,
package/dist/index.umd.js CHANGED
@@ -1946,7 +1946,7 @@ __p += '`),qt&&(ht+=`' +
1946
1946
  function print() { __p += __j.call(arguments, '') }
1947
1947
  `:`;
1948
1948
  `)+ht+`return __p
1949
- }`;var Ft=Km(function(){return Kt(U,wt+"return "+ht).apply(r,H)});if(Ft.source=ht,Yf(Ft))throw Ft;return Ft}function i4(s){return Qt(s).toLowerCase()}function s4(s){return Qt(s).toUpperCase()}function o4(s,a,g){if(s=Qt(s),s&&(g||a===r))return ig(s);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=Rr(a),U=sg(E,N),H=og(E,N)+1;return wn(E,U,H).join("")}function a4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.slice(0,lg(s)+1);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=og(E,Rr(a))+1;return wn(E,0,N).join("")}function l4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.replace(Ku,"");if(!s||!(a=rr(a)))return s;var E=Rr(s),N=sg(E,Rr(a));return wn(E,N).join("")}function u4(s,a){var g=R,E=C;if(ge(a)){var N="separator"in a?a.separator:N;g="length"in a?kt(a.length):g,E="omission"in a?rr(a.omission):E}s=Qt(s);var U=s.length;if(Fi(s)){var H=Rr(s);U=H.length}if(g>=U)return s;var Y=g-Bi(E);if(Y<1)return E;var et=H?wn(H,0,Y).join(""):s.slice(0,Y);if(N===r)return et+E;if(H&&(Y+=et.length-Y),Zf(N)){if(s.slice(Y).search(N)){var ut,ft=et;for(N.global||(N=df(N.source,Qt(Sv.exec(N))+"g")),N.lastIndex=0;ut=N.exec(ft);)var ht=ut.index;et=et.slice(0,ht===r?Y:ht)}}else if(s.indexOf(rr(N),Y)!=Y){var mt=et.lastIndexOf(N);mt>-1&&(et=et.slice(0,mt))}return et+E}function f4(s){return s=Qt(s),s&&xN.test(s)?s.replace(Tv,UM):s}var c4=zi(function(s,a,g){return s+(g?" ":"")+a.toUpperCase()}),tc=Yg("toUpperCase");function Xm(s,a,g){return s=Qt(s),a=g?r:a,a===r?kM(s)?jM(s):AM(s):s.match(a)||[]}var Km=Bt(function(s,a){try{return tr(s,r,a)}catch(g){return Yf(g)?g:new It(g)}}),h4=tn(function(s,a){return fr(a,function(g){g=qr(g),Qr(s,g,Xf(s[g],s))}),s});function d4(s){var a=s==null?0:s.length,g=St();return s=a?he(s,function(E){if(typeof E[1]!="function")throw new cr(l);return[g(E[0]),E[1]]}):[],Bt(function(E){for(var N=-1;++N<a;){var U=s[N];if(tr(U[0],this,E))return tr(U[1],this,E)}})}function p4(s){return U3(dr(s,p))}function ec(s){return function(){return s}}function v4(s,a){return s==null||s!==s?a:s}var g4=Qg(),m4=Qg(!0);function Ke(s){return s}function rc(s){return Cg(typeof s=="function"?s:dr(s,p))}function y4(s){return Ig(dr(s,p))}function _4(s,a){return Pg(s,dr(a,p))}var b4=Bt(function(s,a){return function(g){return ks(g,s,a)}}),x4=Bt(function(s,a){return function(g){return ks(s,g,a)}});function nc(s,a,g){var E=Ie(a),N=Ea(a,E);g==null&&!(ge(a)&&(N.length||!E.length))&&(g=a,a=s,s=this,N=Ea(a,Ie(a)));var U=!(ge(g)&&"chain"in g)||!!g.chain,H=rn(s);return fr(N,function(Y){var et=a[Y];s[Y]=et,H&&(s.prototype[Y]=function(){var ut=this.__chain__;if(U||ut){var ft=s(this.__wrapped__),ht=ft.__actions__=Ve(this.__actions__);return ht.push({func:et,args:arguments,thisArg:s}),ft.__chain__=ut,ft}return et.apply(s,gn([this.value()],arguments))})}),s}function w4(){return Ne._===this&&(Ne._=XM),this}function ic(){}function T4(s){return s=kt(s),Bt(function(a){return Ng(a,s)})}var E4=Lf(he),A4=Lf(Jv),S4=Lf(of);function Ym(s){return jf(s)?af(qr(s)):rk(s)}function O4(s){return function(a){return s==null?r:Xn(s,a)}}var C4=tm(),R4=tm(!0);function sc(){return[]}function oc(){return!1}function I4(){return{}}function P4(){return""}function N4(){return!0}function M4(s,a){if(s=kt(s),s<1||s>rt)return[];var g=k,E=De(s,k);a=St(a),s-=k;for(var N=ff(E,a);++g<s;)a(g);return N}function k4(s){return Mt(s)?he(s,qr):nr(s)?[s]:Ve(gm(Qt(s)))}function L4(s){var a=++VM;return Qt(s)+a}var F4=Ia(function(s,a){return s+a},0),B4=Ff("ceil"),D4=Ia(function(s,a){return s/a},1),U4=Ff("floor");function $4(s){return s&&s.length?Ta(s,Ke,xf):r}function G4(s,a){return s&&s.length?Ta(s,St(a,2),xf):r}function j4(s){return rg(s,Ke)}function q4(s,a){return rg(s,St(a,2))}function z4(s){return s&&s.length?Ta(s,Ke,Af):r}function H4(s,a){return s&&s.length?Ta(s,St(a,2),Af):r}var V4=Ia(function(s,a){return s*a},1),W4=Ff("round"),X4=Ia(function(s,a){return s-a},0);function K4(s){return s&&s.length?uf(s,Ke):0}function Y4(s,a){return s&&s.length?uf(s,St(a,2)):0}return B.after=yL,B.ary=Om,B.assign=sF,B.assignIn=Gm,B.assignInWith=qa,B.assignWith=oF,B.at=aF,B.before=Cm,B.bind=Xf,B.bindAll=h4,B.bindKey=Rm,B.castArray=IL,B.chain=Em,B.chunk=Uk,B.compact=$k,B.concat=Gk,B.cond=d4,B.conforms=p4,B.constant=ec,B.countBy=K5,B.create=lF,B.curry=Im,B.curryRight=Pm,B.debounce=Nm,B.defaults=uF,B.defaultsDeep=fF,B.defer=_L,B.delay=bL,B.difference=jk,B.differenceBy=qk,B.differenceWith=zk,B.drop=Hk,B.dropRight=Vk,B.dropRightWhile=Wk,B.dropWhile=Xk,B.fill=Kk,B.filter=Z5,B.flatMap=tL,B.flatMapDeep=eL,B.flatMapDepth=rL,B.flatten=bm,B.flattenDeep=Yk,B.flattenDepth=Zk,B.flip=xL,B.flow=g4,B.flowRight=m4,B.fromPairs=Qk,B.functions=mF,B.functionsIn=yF,B.groupBy=nL,B.initial=t5,B.intersection=e5,B.intersectionBy=r5,B.intersectionWith=n5,B.invert=bF,B.invertBy=xF,B.invokeMap=sL,B.iteratee=rc,B.keyBy=oL,B.keys=Ie,B.keysIn=Xe,B.map=Ba,B.mapKeys=TF,B.mapValues=EF,B.matches=y4,B.matchesProperty=_4,B.memoize=Ua,B.merge=AF,B.mergeWith=jm,B.method=b4,B.methodOf=x4,B.mixin=nc,B.negate=$a,B.nthArg=T4,B.omit=SF,B.omitBy=OF,B.once=wL,B.orderBy=aL,B.over=E4,B.overArgs=TL,B.overEvery=A4,B.overSome=S4,B.partial=Kf,B.partialRight=Mm,B.partition=lL,B.pick=CF,B.pickBy=qm,B.property=Ym,B.propertyOf=O4,B.pull=a5,B.pullAll=wm,B.pullAllBy=l5,B.pullAllWith=u5,B.pullAt=f5,B.range=C4,B.rangeRight=R4,B.rearg=EL,B.reject=cL,B.remove=c5,B.rest=AL,B.reverse=Vf,B.sampleSize=dL,B.set=IF,B.setWith=PF,B.shuffle=pL,B.slice=h5,B.sortBy=mL,B.sortedUniq=_5,B.sortedUniqBy=b5,B.split=t4,B.spread=SL,B.tail=x5,B.take=w5,B.takeRight=T5,B.takeRightWhile=E5,B.takeWhile=A5,B.tap=$5,B.throttle=OL,B.thru=Fa,B.toArray=Dm,B.toPairs=zm,B.toPairsIn=Hm,B.toPath=k4,B.toPlainObject=$m,B.transform=NF,B.unary=CL,B.union=S5,B.unionBy=O5,B.unionWith=C5,B.uniq=R5,B.uniqBy=I5,B.uniqWith=P5,B.unset=MF,B.unzip=Wf,B.unzipWith=Tm,B.update=kF,B.updateWith=LF,B.values=Wi,B.valuesIn=FF,B.without=N5,B.words=Xm,B.wrap=RL,B.xor=M5,B.xorBy=k5,B.xorWith=L5,B.zip=F5,B.zipObject=B5,B.zipObjectDeep=D5,B.zipWith=U5,B.entries=zm,B.entriesIn=Hm,B.extend=Gm,B.extendWith=qa,nc(B,B),B.add=F4,B.attempt=Km,B.camelCase=$F,B.capitalize=Vm,B.ceil=B4,B.clamp=BF,B.clone=PL,B.cloneDeep=ML,B.cloneDeepWith=kL,B.cloneWith=NL,B.conformsTo=LL,B.deburr=Wm,B.defaultTo=v4,B.divide=D4,B.endsWith=GF,B.eq=Pr,B.escape=jF,B.escapeRegExp=qF,B.every=Y5,B.find=Q5,B.findIndex=ym,B.findKey=cF,B.findLast=J5,B.findLastIndex=_m,B.findLastKey=hF,B.floor=U4,B.forEach=Am,B.forEachRight=Sm,B.forIn=dF,B.forInRight=pF,B.forOwn=vF,B.forOwnRight=gF,B.get=Qf,B.gt=FL,B.gte=BL,B.has=_F,B.hasIn=Jf,B.head=xm,B.identity=Ke,B.includes=iL,B.indexOf=Jk,B.inRange=DF,B.invoke=wF,B.isArguments=Zn,B.isArray=Mt,B.isArrayBuffer=DL,B.isArrayLike=We,B.isArrayLikeObject=be,B.isBoolean=UL,B.isBuffer=Tn,B.isDate=$L,B.isElement=GL,B.isEmpty=jL,B.isEqual=qL,B.isEqualWith=zL,B.isError=Yf,B.isFinite=HL,B.isFunction=rn,B.isInteger=km,B.isLength=Ga,B.isMap=Lm,B.isMatch=VL,B.isMatchWith=WL,B.isNaN=XL,B.isNative=KL,B.isNil=ZL,B.isNull=YL,B.isNumber=Fm,B.isObject=ge,B.isObjectLike=me,B.isPlainObject=$s,B.isRegExp=Zf,B.isSafeInteger=QL,B.isSet=Bm,B.isString=ja,B.isSymbol=nr,B.isTypedArray=Vi,B.isUndefined=JL,B.isWeakMap=tF,B.isWeakSet=eF,B.join=i5,B.kebabCase=zF,B.last=vr,B.lastIndexOf=s5,B.lowerCase=HF,B.lowerFirst=VF,B.lt=rF,B.lte=nF,B.max=$4,B.maxBy=G4,B.mean=j4,B.meanBy=q4,B.min=z4,B.minBy=H4,B.stubArray=sc,B.stubFalse=oc,B.stubObject=I4,B.stubString=P4,B.stubTrue=N4,B.multiply=V4,B.nth=o5,B.noConflict=w4,B.noop=ic,B.now=Da,B.pad=WF,B.padEnd=XF,B.padStart=KF,B.parseInt=YF,B.random=UF,B.reduce=uL,B.reduceRight=fL,B.repeat=ZF,B.replace=QF,B.result=RF,B.round=W4,B.runInContext=tt,B.sample=hL,B.size=vL,B.snakeCase=JF,B.some=gL,B.sortedIndex=d5,B.sortedIndexBy=p5,B.sortedIndexOf=v5,B.sortedLastIndex=g5,B.sortedLastIndexBy=m5,B.sortedLastIndexOf=y5,B.startCase=e4,B.startsWith=r4,B.subtract=X4,B.sum=K4,B.sumBy=Y4,B.template=n4,B.times=M4,B.toFinite=nn,B.toInteger=kt,B.toLength=Um,B.toLower=i4,B.toNumber=gr,B.toSafeInteger=iF,B.toString=Qt,B.toUpper=s4,B.trim=o4,B.trimEnd=a4,B.trimStart=l4,B.truncate=u4,B.unescape=f4,B.uniqueId=L4,B.upperCase=c4,B.upperFirst=tc,B.each=Am,B.eachRight=Sm,B.first=xm,nc(B,function(){var s={};return Gr(B,function(a,g){te.call(B.prototype,g)||(s[g]=a)}),s}(),{chain:!1}),B.VERSION=n,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),fr(["drop","take"],function(s,a){Gt.prototype[s]=function(g){g=g===r?1:Se(kt(g),0);var E=this.__filtered__&&!a?new Gt(this):this.clone();return E.__filtered__?E.__takeCount__=De(g,E.__takeCount__):E.__views__.push({size:De(g,k),type:s+(E.__dir__<0?"Right":"")}),E},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),fr(["filter","map","takeWhile"],function(s,a){var g=a+1,E=g==F||g==Z;Gt.prototype[s]=function(N){var U=this.clone();return U.__iteratees__.push({iteratee:St(N,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),fr(["head","last"],function(s,a){var g="take"+(a?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),fr(["initial","tail"],function(s,a){var g="drop"+(a?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Ke)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,a){return typeof s=="function"?new Gt(this):this.map(function(g){return ks(g,s,a)})}),Gt.prototype.reject=function(s){return this.filter($a(St(s)))},Gt.prototype.slice=function(s,a){s=kt(s);var g=this;return g.__filtered__&&(s>0||a<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),a!==r&&(a=kt(a),g=a<0?g.dropRight(-a):g.take(a-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(k)},Gr(Gt.prototype,function(s,a){var g=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),N=B[E?"take"+(a=="last"?"Right":""):a],U=E||/^find/.test(a);N&&(B.prototype[a]=function(){var H=this.__wrapped__,Y=E?[1]:arguments,et=H instanceof Gt,ut=Y[0],ft=et||Mt(H),ht=function(Ut){var qt=N.apply(B,gn([Ut],Y));return E&&mt?qt[0]:qt};ft&&g&&typeof ut=="function"&&ut.length!=1&&(et=ft=!1);var mt=this.__chain__,wt=!!this.__actions__.length,Ot=U&&!mt,Ft=et&&!wt;if(!U&&ft){H=Ft?H:new Gt(this);var Ct=s.apply(H,Y);return Ct.__actions__.push({func:Fa,args:[ht],thisArg:r}),new hr(Ct,mt)}return Ot&&Ft?s.apply(this,Y):(Ct=this.thru(ht),Ot?E?Ct.value()[0]:Ct.value():Ct)})}),fr(["pop","push","shift","sort","splice","unshift"],function(s){var a=la[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var N=arguments;if(E&&!this.__chain__){var U=this.value();return a.apply(Mt(U)?U:[],N)}return this[g](function(H){return a.apply(Mt(H)?H:[],N)})}}),Gr(Gt.prototype,function(s,a){var g=B[a];if(g){var E=g.name+"";te.call(Gi,E)||(Gi[E]=[]),Gi[E].push({name:a,func:g})}}),Gi[Ra(r,_).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=f3,Gt.prototype.reverse=c3,Gt.prototype.value=h3,B.prototype.at=G5,B.prototype.chain=j5,B.prototype.commit=q5,B.prototype.next=z5,B.prototype.plant=V5,B.prototype.reverse=W5,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=X5,B.prototype.first=B.prototype.head,Os&&(B.prototype[Os]=H5),B},Di=qM();qn?((qn.exports=Di)._=Di,ef._=Di):Ne._=Di}).call(Ye)}(ea,ea.exports);var _v=ea.exports;const cN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},hN=Et.forwardRef((e,t)=>{const[r,n]=Et.useState([]),[,i]=Et.useState(0),[o,l]=Et.useState([]),[,u]=_t.useState(0),[,f]=_t.useState(!1),[h,d]=eN({autoPlay:!1}),p=_t.useRef(null),c=_t.useRef(null),v=_t.useRef(cN),m=_t.useRef(),{tl:y,isDragging:b}=_t.useContext(ti),{frames:_,delays:w}=h,{src:T,startAt:x,endAt:A,frameStartAt:I,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:C,y:P,animation:M,colorCorrection:F={}},pointerdown:q}=e,{temperatureFilter:Z,sharpnessFilter:z,hueFilter:rt,blurFilter:W,adjustmentFilter:D}=_s(F),{blurRadius:k=0}=F,j=.1;uN(T,d),mr(ke.PAUSE,nt=>{console.log("pause event",nt),p.current&&(p.current.stop(),v.current.isPlaying=!1)}),Et.useEffect(()=>{v.current&&p.current&&(b?(p.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Et.useEffect(()=>{if(!Qi(_)){const nt=PP(_,pt=>{const{data:xt,width:At,height:fe}=pt,Vt=new Uint8Array(xt);return on.Texture.fromBuffer(Vt,At,fe)}),at=nt.map((pt,xt)=>({texture:pt,time:w[xt]}));n(nt),l(at);let dt=0;w.forEach(pt=>{dt+=pt*10}),i(dt),v.current.totalDuration=dt,v.current.totalFrames=_.length}},[_,w]);const G=_v.debounce(nt=>{if(p.current){let at=nt===0?0:nt/j;const dt=v.current.totalFrames;at=at>=dt?dt:at,p.current.gotoAndPlay(at||0),v.current.isPlaying=!0}},50),K=_v.debounce(()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},150),X=nt=>{if(p.current){let at=nt===0?0:nt/j;const dt=v.current.totalFrames;at=at>=dt?dt:at,p.current.gotoAndPlay(at||0),v.current.isPlaying=!0}},$=()=>{console.log("local gif time complete"),p.current&&(p.current.stop(),v.current.isPlaying=!1)},V=()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},Q=nt=>{var dt;const at=nt+((dt=m.current)==null?void 0:dt.time());p.current&&v.current.isDragging?(G(at),K(),v.current.isPlaying=!1):p.current&&!v.current.isPlaying&&(G(at),v.current.isPlaying=!0)},J=()=>{f(!0)};return _t.useEffect(()=>{let nt=Te.context(()=>{});if(c.current&&y.current){const at={duration:Number(S)-Number(I),onStart:X,onComplete:$,onStartParams:[I,S],onCompleteParams:[],onInterrupt:V,onUpdate:Q,onUpdateParams:[I,S]};m.current&&m.current.kill(),nt=Te.context(()=>{m.current=Te.from(c.current,at,I),y.current.add(m.current,x)})}return()=>{m.current&&(m.current.kill(),Te.killTweensOf(m.current)),nt.revert(),c.current&&c.current.destroy()}},[M,x,A,I,S]),ee.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,isGif:!0,children:ee.jsx(ye.Container,{ref:c,children:r&&r.length>0&&ee.jsx(yv,{x:C,y:P,width:L,height:R,animationSpeed:1,loop:O,textures:o,onComplete:J,onFrameChange:nt=>u(nt),anchor:.5,forwardRef:p,interactive:!0,pointerdown:q,filters:[Z,z,rt,D,...k>0?[W]:[]]})})})});var bv={exports:{}};/*!
1949
+ }`;var Ft=Km(function(){return Kt(U,wt+"return "+ht).apply(r,H)});if(Ft.source=ht,Yf(Ft))throw Ft;return Ft}function i4(s){return Qt(s).toLowerCase()}function s4(s){return Qt(s).toUpperCase()}function o4(s,a,g){if(s=Qt(s),s&&(g||a===r))return ig(s);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=Rr(a),U=sg(E,N),H=og(E,N)+1;return wn(E,U,H).join("")}function a4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.slice(0,lg(s)+1);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=og(E,Rr(a))+1;return wn(E,0,N).join("")}function l4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.replace(Ku,"");if(!s||!(a=rr(a)))return s;var E=Rr(s),N=sg(E,Rr(a));return wn(E,N).join("")}function u4(s,a){var g=R,E=C;if(ge(a)){var N="separator"in a?a.separator:N;g="length"in a?kt(a.length):g,E="omission"in a?rr(a.omission):E}s=Qt(s);var U=s.length;if(Fi(s)){var H=Rr(s);U=H.length}if(g>=U)return s;var Y=g-Bi(E);if(Y<1)return E;var et=H?wn(H,0,Y).join(""):s.slice(0,Y);if(N===r)return et+E;if(H&&(Y+=et.length-Y),Zf(N)){if(s.slice(Y).search(N)){var ut,ft=et;for(N.global||(N=df(N.source,Qt(Sv.exec(N))+"g")),N.lastIndex=0;ut=N.exec(ft);)var ht=ut.index;et=et.slice(0,ht===r?Y:ht)}}else if(s.indexOf(rr(N),Y)!=Y){var mt=et.lastIndexOf(N);mt>-1&&(et=et.slice(0,mt))}return et+E}function f4(s){return s=Qt(s),s&&xN.test(s)?s.replace(Tv,UM):s}var c4=zi(function(s,a,g){return s+(g?" ":"")+a.toUpperCase()}),tc=Yg("toUpperCase");function Xm(s,a,g){return s=Qt(s),a=g?r:a,a===r?kM(s)?jM(s):AM(s):s.match(a)||[]}var Km=Bt(function(s,a){try{return tr(s,r,a)}catch(g){return Yf(g)?g:new It(g)}}),h4=tn(function(s,a){return fr(a,function(g){g=qr(g),Qr(s,g,Xf(s[g],s))}),s});function d4(s){var a=s==null?0:s.length,g=St();return s=a?he(s,function(E){if(typeof E[1]!="function")throw new cr(l);return[g(E[0]),E[1]]}):[],Bt(function(E){for(var N=-1;++N<a;){var U=s[N];if(tr(U[0],this,E))return tr(U[1],this,E)}})}function p4(s){return U3(dr(s,p))}function ec(s){return function(){return s}}function v4(s,a){return s==null||s!==s?a:s}var g4=Qg(),m4=Qg(!0);function Ke(s){return s}function rc(s){return Cg(typeof s=="function"?s:dr(s,p))}function y4(s){return Ig(dr(s,p))}function _4(s,a){return Pg(s,dr(a,p))}var b4=Bt(function(s,a){return function(g){return ks(g,s,a)}}),x4=Bt(function(s,a){return function(g){return ks(s,g,a)}});function nc(s,a,g){var E=Ie(a),N=Ea(a,E);g==null&&!(ge(a)&&(N.length||!E.length))&&(g=a,a=s,s=this,N=Ea(a,Ie(a)));var U=!(ge(g)&&"chain"in g)||!!g.chain,H=rn(s);return fr(N,function(Y){var et=a[Y];s[Y]=et,H&&(s.prototype[Y]=function(){var ut=this.__chain__;if(U||ut){var ft=s(this.__wrapped__),ht=ft.__actions__=Ve(this.__actions__);return ht.push({func:et,args:arguments,thisArg:s}),ft.__chain__=ut,ft}return et.apply(s,gn([this.value()],arguments))})}),s}function w4(){return Ne._===this&&(Ne._=XM),this}function ic(){}function T4(s){return s=kt(s),Bt(function(a){return Ng(a,s)})}var E4=Lf(he),A4=Lf(Jv),S4=Lf(of);function Ym(s){return jf(s)?af(qr(s)):rk(s)}function O4(s){return function(a){return s==null?r:Xn(s,a)}}var C4=tm(),R4=tm(!0);function sc(){return[]}function oc(){return!1}function I4(){return{}}function P4(){return""}function N4(){return!0}function M4(s,a){if(s=kt(s),s<1||s>rt)return[];var g=k,E=De(s,k);a=St(a),s-=k;for(var N=ff(E,a);++g<s;)a(g);return N}function k4(s){return Mt(s)?he(s,qr):nr(s)?[s]:Ve(gm(Qt(s)))}function L4(s){var a=++VM;return Qt(s)+a}var F4=Ia(function(s,a){return s+a},0),B4=Ff("ceil"),D4=Ia(function(s,a){return s/a},1),U4=Ff("floor");function $4(s){return s&&s.length?Ta(s,Ke,xf):r}function G4(s,a){return s&&s.length?Ta(s,St(a,2),xf):r}function j4(s){return rg(s,Ke)}function q4(s,a){return rg(s,St(a,2))}function z4(s){return s&&s.length?Ta(s,Ke,Af):r}function H4(s,a){return s&&s.length?Ta(s,St(a,2),Af):r}var V4=Ia(function(s,a){return s*a},1),W4=Ff("round"),X4=Ia(function(s,a){return s-a},0);function K4(s){return s&&s.length?uf(s,Ke):0}function Y4(s,a){return s&&s.length?uf(s,St(a,2)):0}return B.after=yL,B.ary=Om,B.assign=sF,B.assignIn=Gm,B.assignInWith=qa,B.assignWith=oF,B.at=aF,B.before=Cm,B.bind=Xf,B.bindAll=h4,B.bindKey=Rm,B.castArray=IL,B.chain=Em,B.chunk=Uk,B.compact=$k,B.concat=Gk,B.cond=d4,B.conforms=p4,B.constant=ec,B.countBy=K5,B.create=lF,B.curry=Im,B.curryRight=Pm,B.debounce=Nm,B.defaults=uF,B.defaultsDeep=fF,B.defer=_L,B.delay=bL,B.difference=jk,B.differenceBy=qk,B.differenceWith=zk,B.drop=Hk,B.dropRight=Vk,B.dropRightWhile=Wk,B.dropWhile=Xk,B.fill=Kk,B.filter=Z5,B.flatMap=tL,B.flatMapDeep=eL,B.flatMapDepth=rL,B.flatten=bm,B.flattenDeep=Yk,B.flattenDepth=Zk,B.flip=xL,B.flow=g4,B.flowRight=m4,B.fromPairs=Qk,B.functions=mF,B.functionsIn=yF,B.groupBy=nL,B.initial=t5,B.intersection=e5,B.intersectionBy=r5,B.intersectionWith=n5,B.invert=bF,B.invertBy=xF,B.invokeMap=sL,B.iteratee=rc,B.keyBy=oL,B.keys=Ie,B.keysIn=Xe,B.map=Ba,B.mapKeys=TF,B.mapValues=EF,B.matches=y4,B.matchesProperty=_4,B.memoize=Ua,B.merge=AF,B.mergeWith=jm,B.method=b4,B.methodOf=x4,B.mixin=nc,B.negate=$a,B.nthArg=T4,B.omit=SF,B.omitBy=OF,B.once=wL,B.orderBy=aL,B.over=E4,B.overArgs=TL,B.overEvery=A4,B.overSome=S4,B.partial=Kf,B.partialRight=Mm,B.partition=lL,B.pick=CF,B.pickBy=qm,B.property=Ym,B.propertyOf=O4,B.pull=a5,B.pullAll=wm,B.pullAllBy=l5,B.pullAllWith=u5,B.pullAt=f5,B.range=C4,B.rangeRight=R4,B.rearg=EL,B.reject=cL,B.remove=c5,B.rest=AL,B.reverse=Vf,B.sampleSize=dL,B.set=IF,B.setWith=PF,B.shuffle=pL,B.slice=h5,B.sortBy=mL,B.sortedUniq=_5,B.sortedUniqBy=b5,B.split=t4,B.spread=SL,B.tail=x5,B.take=w5,B.takeRight=T5,B.takeRightWhile=E5,B.takeWhile=A5,B.tap=$5,B.throttle=OL,B.thru=Fa,B.toArray=Dm,B.toPairs=zm,B.toPairsIn=Hm,B.toPath=k4,B.toPlainObject=$m,B.transform=NF,B.unary=CL,B.union=S5,B.unionBy=O5,B.unionWith=C5,B.uniq=R5,B.uniqBy=I5,B.uniqWith=P5,B.unset=MF,B.unzip=Wf,B.unzipWith=Tm,B.update=kF,B.updateWith=LF,B.values=Wi,B.valuesIn=FF,B.without=N5,B.words=Xm,B.wrap=RL,B.xor=M5,B.xorBy=k5,B.xorWith=L5,B.zip=F5,B.zipObject=B5,B.zipObjectDeep=D5,B.zipWith=U5,B.entries=zm,B.entriesIn=Hm,B.extend=Gm,B.extendWith=qa,nc(B,B),B.add=F4,B.attempt=Km,B.camelCase=$F,B.capitalize=Vm,B.ceil=B4,B.clamp=BF,B.clone=PL,B.cloneDeep=ML,B.cloneDeepWith=kL,B.cloneWith=NL,B.conformsTo=LL,B.deburr=Wm,B.defaultTo=v4,B.divide=D4,B.endsWith=GF,B.eq=Pr,B.escape=jF,B.escapeRegExp=qF,B.every=Y5,B.find=Q5,B.findIndex=ym,B.findKey=cF,B.findLast=J5,B.findLastIndex=_m,B.findLastKey=hF,B.floor=U4,B.forEach=Am,B.forEachRight=Sm,B.forIn=dF,B.forInRight=pF,B.forOwn=vF,B.forOwnRight=gF,B.get=Qf,B.gt=FL,B.gte=BL,B.has=_F,B.hasIn=Jf,B.head=xm,B.identity=Ke,B.includes=iL,B.indexOf=Jk,B.inRange=DF,B.invoke=wF,B.isArguments=Zn,B.isArray=Mt,B.isArrayBuffer=DL,B.isArrayLike=We,B.isArrayLikeObject=be,B.isBoolean=UL,B.isBuffer=Tn,B.isDate=$L,B.isElement=GL,B.isEmpty=jL,B.isEqual=qL,B.isEqualWith=zL,B.isError=Yf,B.isFinite=HL,B.isFunction=rn,B.isInteger=km,B.isLength=Ga,B.isMap=Lm,B.isMatch=VL,B.isMatchWith=WL,B.isNaN=XL,B.isNative=KL,B.isNil=ZL,B.isNull=YL,B.isNumber=Fm,B.isObject=ge,B.isObjectLike=me,B.isPlainObject=$s,B.isRegExp=Zf,B.isSafeInteger=QL,B.isSet=Bm,B.isString=ja,B.isSymbol=nr,B.isTypedArray=Vi,B.isUndefined=JL,B.isWeakMap=tF,B.isWeakSet=eF,B.join=i5,B.kebabCase=zF,B.last=vr,B.lastIndexOf=s5,B.lowerCase=HF,B.lowerFirst=VF,B.lt=rF,B.lte=nF,B.max=$4,B.maxBy=G4,B.mean=j4,B.meanBy=q4,B.min=z4,B.minBy=H4,B.stubArray=sc,B.stubFalse=oc,B.stubObject=I4,B.stubString=P4,B.stubTrue=N4,B.multiply=V4,B.nth=o5,B.noConflict=w4,B.noop=ic,B.now=Da,B.pad=WF,B.padEnd=XF,B.padStart=KF,B.parseInt=YF,B.random=UF,B.reduce=uL,B.reduceRight=fL,B.repeat=ZF,B.replace=QF,B.result=RF,B.round=W4,B.runInContext=tt,B.sample=hL,B.size=vL,B.snakeCase=JF,B.some=gL,B.sortedIndex=d5,B.sortedIndexBy=p5,B.sortedIndexOf=v5,B.sortedLastIndex=g5,B.sortedLastIndexBy=m5,B.sortedLastIndexOf=y5,B.startCase=e4,B.startsWith=r4,B.subtract=X4,B.sum=K4,B.sumBy=Y4,B.template=n4,B.times=M4,B.toFinite=nn,B.toInteger=kt,B.toLength=Um,B.toLower=i4,B.toNumber=gr,B.toSafeInteger=iF,B.toString=Qt,B.toUpper=s4,B.trim=o4,B.trimEnd=a4,B.trimStart=l4,B.truncate=u4,B.unescape=f4,B.uniqueId=L4,B.upperCase=c4,B.upperFirst=tc,B.each=Am,B.eachRight=Sm,B.first=xm,nc(B,function(){var s={};return Gr(B,function(a,g){te.call(B.prototype,g)||(s[g]=a)}),s}(),{chain:!1}),B.VERSION=n,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),fr(["drop","take"],function(s,a){Gt.prototype[s]=function(g){g=g===r?1:Se(kt(g),0);var E=this.__filtered__&&!a?new Gt(this):this.clone();return E.__filtered__?E.__takeCount__=De(g,E.__takeCount__):E.__views__.push({size:De(g,k),type:s+(E.__dir__<0?"Right":"")}),E},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),fr(["filter","map","takeWhile"],function(s,a){var g=a+1,E=g==F||g==Z;Gt.prototype[s]=function(N){var U=this.clone();return U.__iteratees__.push({iteratee:St(N,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),fr(["head","last"],function(s,a){var g="take"+(a?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),fr(["initial","tail"],function(s,a){var g="drop"+(a?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Ke)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,a){return typeof s=="function"?new Gt(this):this.map(function(g){return ks(g,s,a)})}),Gt.prototype.reject=function(s){return this.filter($a(St(s)))},Gt.prototype.slice=function(s,a){s=kt(s);var g=this;return g.__filtered__&&(s>0||a<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),a!==r&&(a=kt(a),g=a<0?g.dropRight(-a):g.take(a-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(k)},Gr(Gt.prototype,function(s,a){var g=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),N=B[E?"take"+(a=="last"?"Right":""):a],U=E||/^find/.test(a);N&&(B.prototype[a]=function(){var H=this.__wrapped__,Y=E?[1]:arguments,et=H instanceof Gt,ut=Y[0],ft=et||Mt(H),ht=function(Ut){var qt=N.apply(B,gn([Ut],Y));return E&&mt?qt[0]:qt};ft&&g&&typeof ut=="function"&&ut.length!=1&&(et=ft=!1);var mt=this.__chain__,wt=!!this.__actions__.length,Ot=U&&!mt,Ft=et&&!wt;if(!U&&ft){H=Ft?H:new Gt(this);var Ct=s.apply(H,Y);return Ct.__actions__.push({func:Fa,args:[ht],thisArg:r}),new hr(Ct,mt)}return Ot&&Ft?s.apply(this,Y):(Ct=this.thru(ht),Ot?E?Ct.value()[0]:Ct.value():Ct)})}),fr(["pop","push","shift","sort","splice","unshift"],function(s){var a=la[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var N=arguments;if(E&&!this.__chain__){var U=this.value();return a.apply(Mt(U)?U:[],N)}return this[g](function(H){return a.apply(Mt(H)?H:[],N)})}}),Gr(Gt.prototype,function(s,a){var g=B[a];if(g){var E=g.name+"";te.call(Gi,E)||(Gi[E]=[]),Gi[E].push({name:a,func:g})}}),Gi[Ra(r,_).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=f3,Gt.prototype.reverse=c3,Gt.prototype.value=h3,B.prototype.at=G5,B.prototype.chain=j5,B.prototype.commit=q5,B.prototype.next=z5,B.prototype.plant=V5,B.prototype.reverse=W5,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=X5,B.prototype.first=B.prototype.head,Os&&(B.prototype[Os]=H5),B},Di=qM();qn?((qn.exports=Di)._=Di,ef._=Di):Ne._=Di}).call(Ye)}(ea,ea.exports);var _v=ea.exports;const cN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},hN=Et.forwardRef((e,t)=>{const[r,n]=Et.useState([]),[,i]=Et.useState(0),[o,l]=Et.useState([]),[,u]=_t.useState(0),[,f]=_t.useState(!1),[h,d]=eN({autoPlay:!1}),p=_t.useRef(null),c=_t.useRef(null),v=_t.useRef(cN),m=_t.useRef(),{tl:y,isDragging:b}=_t.useContext(ti),{frames:_,delays:w}=h,{src:T,startAt:x,endAt:A,frameStartAt:I,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:C,y:P,animation:M,colorCorrection:F={}},pointerdown:q}=e,{temperatureFilter:Z,sharpnessFilter:z,hueFilter:rt,blurFilter:W,adjustmentFilter:D}=_s(F),{blurRadius:k=0}=F,j=.1;uN(T,d),mr(ke.PAUSE,nt=>{console.log("pause event",nt),p.current&&(p.current.stop(),v.current.isPlaying=!1)}),Et.useEffect(()=>{v.current&&p.current&&(b?(p.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Et.useEffect(()=>{if(!Qi(_)){const nt=PP(_,pt=>{const{data:xt,width:At,height:fe}=pt,Vt=new Uint8Array(xt);return on.Texture.fromBuffer(Vt,At,fe)}),at=nt.map((pt,xt)=>({texture:pt,time:w[xt]}));n(nt),l(at);let dt=0;w.forEach(pt=>{dt+=pt*10}),i(dt),v.current.totalDuration=dt,v.current.totalFrames=_.length}},[_,w]);const G=_v.debounce(nt=>{if(p.current){console.log("requested to start playing gif");let at=nt===0?0:nt/j;const dt=v.current.totalFrames;at=at>=dt?dt:at,console.log("requested to start playing gif frameNumber",at),p.current.gotoAndPlay(at||0),v.current.isPlaying=!0}},10),K=_v.debounce(()=>{p.current&&(console.log("requested to stop playing gif"),p.current.stop(),v.current.isPlaying=!1)},20),X=nt=>{if(p.current){console.log("gif startAt",nt);let at=nt===0?0:nt/j;const dt=v.current.totalFrames;at=at>=dt?dt:at,console.log("gif startAt frameNumber",at),p.current.gotoAndPlay(at||0),v.current.isPlaying=!0}},$=()=>{console.log("local gif time complete"),p.current&&(p.current.stop(),v.current.isPlaying=!1)},V=()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},Q=nt=>{var dt;const at=nt+((dt=m.current)==null?void 0:dt.time());p.current&&v.current.isDragging?(console.log("onUpdate to start playing gif"),G(at),K(),v.current.isPlaying=!1):p.current&&!v.current.isPlaying&&(G(at),v.current.isPlaying=!0)},J=()=>{f(!0)};return _t.useEffect(()=>{let nt=Te.context(()=>{});if(c.current&&y.current){const at={duration:Number(S)-Number(I),onStart:X,onComplete:$,onStartParams:[I,S],onCompleteParams:[],onInterrupt:V,onUpdate:Q,onUpdateParams:[I,S]};m.current&&m.current.kill(),nt=Te.context(()=>{m.current=Te.from(c.current,at,I),y.current.add(m.current,x)})}return()=>{m.current&&(m.current.kill(),Te.killTweensOf(m.current)),nt.revert()}},[M,x,A,I,S]),ee.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,isGif:!0,children:ee.jsx(ye.Container,{ref:c,children:r&&r.length>0&&ee.jsx(yv,{x:C,y:P,width:L,height:R,animationSpeed:1,loop:O,textures:o,onComplete:J,onFrameChange:nt=>u(nt),anchor:.5,forwardRef:p,interactive:!0,pointerdown:q,filters:[Z,z,rt,D,...k>0?[W]:[]]})})})});var bv={exports:{}};/*!
1950
1950
  * Quill Editor v1.3.7
1951
1951
  * https://quilljs.com/
1952
1952
  * Copyright (c) 2014, Jason Chen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reacthub-pixitweenjs",
3
- "version": "0.2.74",
3
+ "version": "0.2.76",
4
4
  "description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
5
5
  "author": "khanzzirfan <reacthub.ai@gmail.com>",
6
6
  "main": "dist/index.es.js",