1const p=Math.PI*2,A=Math.PI/180;function w(e){return e*A}function M(e,t,o,i,s){const r=t-i,d=o-i,l=t+i,a=o+i;e.beginPath(),e.moveTo(r+s,d),e.arcTo(l,d,l,a,s),e.arcTo(l,a,r,a,s),e.arcTo(r,a,r,d,s),e.arcTo(r,d,l,d,s),e.closePath()}function P(e,t,o,i){const s=e.createLinearGradient(t-i,o-i,t+i,o+i);return s.addColorStop(0,"#f6f8fb"),s.addColorStop(.34,"#c2c9d6"),s.addColorStop(.58,"#767d8c"),s.addColorStop(.82,"#c2c9d6"),s.addColorStop(1,"#4d5157"),s}function I(e,t,o,i){const s=e.createLinearGradient(t-i,o-i,t+i,o+i);return s.addColorStop(0,"#f0d488"),s.addColorStop(.4,"#d9b45a"),s.addColorStop(.7,"#b8923f"),s.addColorStop(1,"#7a5e28"),s}function O(e,t,o,i){const s=e.createLinearGradient(t-i,o-i,t+i,o+i);return s.addColorStop(0,"#dde6f5"),s.addColorStop(.4,"#9fb2d4"),s.addColorStop(.7,"#56699a"),s.addColorStop(1,"#25314f"),s}const F=[P,I,O];function T(e,t,o,i,s){e.save(),e.translate(t,o),e.fillStyle="#c9a24b",e.beginPath(),e.arc(0,0,i*1.5,0,p),e.fill();const r=e.createRadialGradient(-i*.35,-i*.35,i*.1,0,0,i);r.addColorStop(0,"#fff"),r.addColorStop(.3,s),r.addColorStop(1,"rgba(0,0,0,0.5)"),e.fillStyle=r,e.beginPath(),e.arc(0,0,i,0,p),e.fill(),e.fillStyle="rgba(255,255,255,0.7)",e.beginPath(),e.arc(-i*.3,-i*.32,i*.28,0,p),e.fill(),e.restore()}function u(e,t,o,i,s){e.save(),e.translate(t,o),e.fillStyle=P(e,0,0,i),e.beginPath();for(let r=0;r<6;r++){const d=w(30+60*r);r?e.lineTo(Math.cos(d)*i,Math.sin(d)*i):e.moveTo(Math.cos(d)*i,Math.sin(d)*i)}e.closePath(),e.fill(),e.strokeStyle="rgba(8,10,16,0.55)",e.lineWidth=.7,e.stroke(),e.strokeStyle="rgba(10,12,20,0.8)",e.lineWidth=i*.24,e.beginPath(),e.moveTo(Math.cos(s)*i*.7,Math.sin(s)*i*.7),e.lineTo(Math.cos(s+Math.PI)*i*.7,Math.sin(s+Math.PI)*i*.7),e.stroke(),e.fillStyle="rgba(246,248,251,0.65)",e.beginPath(),e.arc(-i*.3,-i*.3,i*.14,0,p),e.fill(),e.restore()}function v(e){const t=document.createElement("canvas");return t.width=t.height=Math.max(2,Math.ceil(e)),t}function H(e,t,o,i,s,r){const d=e*.16,l=v((e+d)*2),a=l.getContext("2d"),S=l.width/2;a.translate(S,S);const n=e*.9,f=e*1.06,g=p/t;a.beginPath();for(let y=0;y<t;y++){const b=y*g;if(r){const h=b-g*.18,c=b+g*.22,C=b+g*.34;a.lineTo(Math.cos(h)*n,Math.sin(h)*n),a.lineTo(Math.cos(c)*f,Math.sin(c)*f),a.lineTo(Math.cos(C)*n,Math.sin(C)*n)}else{const h=b-g*.28,c=b-g*.14,C=b+g*.14,m=b+g*.28;a.lineTo(Math.cos(h)*n,Math.sin(h)*n),a.lineTo(Math.cos(c)*f,Math.sin(c)*f),a.lineTo(Math.cos(C)*f,Math.sin(C)*f),a.lineTo(Math.cos(m)*n,Math.sin(m)*n)}}if(a.closePath(),a.fillStyle=o(a,0,0,e),a.fill(),a.strokeStyle="rgba(255,255,255,0.22)",a.lineWidth=Math.max(.5,e*.012),a.stroke(),i){a.globalCompositeOperation="destination-out";const y=e*.3,b=e*.74,h=.22;for(let c=0;c<i;c++){const C=c/i*p+h,m=(c+1)/i*p-h;a.beginPath(),a.arc(0,0,b,C,m),a.arc(0,0,y,m,C,!0),a.closePath(),a.fill()}a.globalCompositeOperation="source-over",a.strokeStyle="rgba(255,255,255,0.28)",a.lineWidth=Math.max(.5,e*.02);for(let c=0;c<i;c++){const C=c/i*p+h,m=(c+1)/i*p-h;a.beginPath(),a.arc(0,0,b,C,m),a.stroke()}}return a.strokeStyle="rgba(10,10,20,0.45)",a.lineWidth=Math.max(.6,e*.025),a.beginPath(),a.arc(0,0,e*.8,0,p),a.stroke(),a.fillStyle=o(a,0,0,e*.3),a.beginPath(),a.arc(0,0,e*.3,0,p),a.fill(),a.strokeStyle="rgba(8,10,16,0.5)",a.lineWidth=.8,a.stroke(),s&&T(a,0,0,Math.max(1.6,e*.09),s),l}function j(e,t){const o=H(e,t,P,0,null,!1),i=o.getContext("2d"),s=o.width/2;i.translate(s,s),i.fillStyle="rgba(6,7,11,0.78)",i.beginPath(),i.arc(0,0,e*.78,0,p),i.fill(),i.strokeStyle="rgba(178,196,232,0.85)",i.lineWidth=Math.max(.8,e*.028),i.beginPath();const r=7,d=e*.16,l=e*.72,a=(l-d)/(r*p);for(let S=0;S<r*p;S+=.1){const n=d+a*S,f=Math.cos(S)*n,g=Math.sin(S)*n;S===0?i.moveTo(f,g):i.lineTo(f,g)}return i.stroke(),i.strokeStyle="rgba(255,255,255,0.35)",i.lineWidth=Math.max(.5,e*.012),i.beginPath(),i.arc(0,0,e*.78,0,p),i.stroke(),i.fillStyle=I(i,0,0,e*.22),i.beginPath(),i.arc(0,0,e*.2,0,p),i.fill(),u(i,0,0,Math.max(1.5,e*.11),.6),o}function E(e){const t=v(e*2.5),o=t.getContext("2d"),i=t.width/2;o.translate(i,i),o.strokeStyle=I(o,0,0,e),o.lineWidth=e*.13,o.beginPath(),o.arc(0,0,e,0,p),o.stroke(),o.strokeStyle="rgba(246,248,251,0.6)",o.lineWidth=.8,o.beginPath(),o.arc(0,0,e*1.06,0,p),o.stroke();for(let s=0;s<6;s++){const r=s/6*p;o.fillStyle=s%2===0?"#d9b45a":"#f6f8fb",o.beginPath(),o.arc(Math.cos(r)*e,Math.sin(r)*e,e*.09,0,p),o.fill()}o.strokeStyle="rgba(220,225,232,0.75)",o.lineWidth=e*.07,o.lineCap="round";for(let s=0;s<2;s++){const r=s/2*Math.PI;o.beginPath(),o.moveTo(-Math.cos(r)*e,-Math.sin(r)*e),o.lineTo(Math.cos(r)*e,Math.sin(r)*e),o.stroke()}return T(o,0,0,Math.max(1.6,e*.11),"#f43f5e"),t}function D(e){const t=v(e*2.4),o=t.getContext("2d"),i=t.width/2;return o.translate(i,i),o.strokeStyle=P(o,0,0,e),o.lineWidth=Math.max(1,e*.11),o.lineCap="round",o.beginPath(),o.moveTo(0,e*.9),o.lineTo(0,-e*.6),o.stroke(),o.beginPath(),o.moveTo(-e*.42,-e*.95),o.lineTo(0,-e*.6),o.lineTo(e*.42,-e*.95),o.stroke(),T(o,-e*.42,-e*.95,Math.max(1.2,e*.09),"#f43f5e"),T(o,e*.42,-e*.95,Math.max(1.2,e*.09),"#f43f5e"),o.fillStyle=I(o,0,0,e*.16),o.beginPath(),o.arc(0,0,e*.14,0,p),o.fill(),t}function x(e,t){this.canvas=e,this.size=t||512,this.ctx=e.getContext("2d"),this.logo=new Image,this.logo.src="/static/assets/images/timesentry_silver_r.svg",this.topHasLogo=!1,this.resize()}const N=[{x:-.4,y:-.36,r:.5,teeth:56,w:.12,kind:"barrel"},{x:.42,y:-.62,r:.36,teeth:40,w:-.168,metal:1,spokes:5,jewel:"#f43f5e"},{x:.66,y:-.02,r:.28,teeth:30,w:.224,metal:2,spokes:4,jewel:"#f43f5e"},{x:.4,y:.4,r:.21,teeth:22,w:-.305,metal:0,spokes:4,jewel:"#f43f5e"},{x:.18,y:.68,r:.145,teeth:15,w:.448,metal:1,spokes:0,jewel:"#f43f5e",escape:!0},{x:-.76,y:.16,r:.12,teeth:12,w:-.56,metal:2,spokes:0,jewel:"#f43f5e"}],k={x:-.48,y:.5,r:.3},R={x:-.14,y:.63,len:.16};x.prototype.resize=function(){const e=this.size;this.canvas.width=e,this.canvas.height=e,this.ctx.setTransform(1,0,0,1,0,0),this.C=e/2,this.H=e*.4,this.R=this.H*.44,this.FW=this.H*.105,this.IH=this.H-this.FW,this.IR=Math.max(2,this.R-this.FW*.72);const t=this.IH;this.gears=N.map(o=>({x:this.C+o.x*t,y:this.C+o.y*t,w:o.w,px:o.r*t,cv:o.kind==="barrel"?j(o.r*t,o.teeth):H(o.r*t,o.teeth,F[o.metal],o.spokes,o.jewel,!!o.escape)})),this.balanceCv=E(k.r*t),this.forkCv=D(R.len*t),this.base=this.renderBase(),this.glass=this.renderGlass(),this.top=this.renderTop()};x.prototype.renderBase=function(){const e=this.size,t=this.C,o=this.H,i=this.R,s=this.FW,r=this.IH,d=this.IR,l=v(e),a=l.getContext("2d");a.save(),a.shadowColor="rgba(124,58,237,0.32)",a.shadowBlur=s*2.2,a.fillStyle="#7c3aed",M(a,t,t,o+s*.05,i),a.fill(),a.shadowColor="rgba(167,139,250,0.85)",a.shadowBlur=s*.7,M(a,t,t,o+s*.05,i),a.fill(),a.restore(
1),a.strokeStyle="rgba(201,182,245,0.6)",a.lineWidth=Math.max(1,e*.002),M(a,t,t,o+s*.12,i+s*.06),a.stroke();const S=a.createLinearGradient(t-o,t-o,t+o,t+o);S.addColorStop(0,"#ffffff"),S.addColorStop(.16,"#e2e7ee"),S.addColorStop(.36,"#8e96a5"),S.addColorStop(.5,"#454a53"),S.addColorStop(.6,"#b3bac6"),S.addColorStop(.78,"#eef1f5"),S.addColorStop(1,"#33373e"),M(a,t,t,o,i),a.fillStyle=S,a.fill(),a.save(),M(a,t,t,o,i),M(a,t,t,r,d),a.clip("evenodd");const n=a.createLinearGradient(0,t-o,0,t+o);n.addColorStop(0,"rgba(255,255,255,0.28)"),n.addColorStop(.42,"rgba(255,255,255,0.05)"),n.addColorStop(.5,"rgba(20,22,28,0.42)"),n.addColorStop(.56,"rgba(255,255,255,0.10)"),n.addColorStop(.8,"rgba(255,255,255,0)"),n.addColorStop(1,"rgba(20,22,28,0.35)"),a.fillStyle=n,a.fillRect(t-o,t-o,o*2,o*2);const f=a.createLinearGradient(t-o,t-o,t+o,t+o);f.addColorStop(0,"rgba(255,255,255,0.98)"),f.addColorStop(.45,"rgba(255,255,255,0.75)"),f.addColorStop(.7,"rgba(255,255,255,0.18)"),f.addColorStop(1,"rgba(255,255,255,0.35)"),a.strokeStyle=f,a.lineWidth=Math.max(1.5,e*.0042),M(a,t,t,o-e*.0022,i-e*.001),a.stroke(),a.strokeStyle="rgba(255,255,255,0.55)",a.lineWidth=Math.max(1,e*.0018),M(a,t,t,r+s*.2,d+s*.12),a.stroke(),a.strokeStyle="rgba(3,4,7,0.9)",a.lineWidth=Math.max(1.2,e*.0032),M(a,t,t,r+e*.0012,d),a.stroke(),a.restore(),a.strokeStyle="rgba(0,0,0,0.55)",a.lineWidth=1,M(a,t,t,o,i),a.stroke(),a.save(),M(a,t,t,r,d),a.clip();const g=a.createRadialGradient(t-r*.35,t-r*.35,r*.05,t,t,r*1.5);g.addColorStop(0,"#15181e"),g.addColorStop(.6,"#08090d"),g.addColorStop(1,"#030304"),a.fillStyle=g,a.fillRect(t-r,t-r,r*2,r*2),a.strokeStyle="rgba(190,198,212,0.055)",a.lineWidth=1;const y=r*.11;for(let h=-r;h<=r;h+=y*.9)for(let c=-r;c<=r;c+=y*.9)a.beginPath(),a.arc(t+c,t+h,y,0,p),a.stroke();const b=[[[-.95,-.95],[-.05,-.95],[.1,-.55],[-.62,-.02],[-.95,-.02]],[[.3,.15],[.95,-.35],[.95,.95],[.45,.95]]];for(const h of b){a.beginPath(),h.forEach((C,m)=>m?a.lineTo(t+C[0]*r,t+C[1]*r):a.moveTo(t+C[0]*r,t+C[1]*r)),a.closePath();const c=a.createLinearGradient(t-r,t-r,t+r,t+r);c.addColorStop(0,"rgba(70,76,88,0.72)"),c.addColorStop(1,"rgba(34,38,46,0.78)"),a.fillStyle=c,a.fill(),a.strokeStyle="rgba(200,207,220,0.32)",a.lineWidth=Math.max(1,e*.004),a.stroke()}return u(a,t-.82*r,t-.82*r,e*.016,.4),u(a,t-.2*r,t-.8*r,e*.016,1.3),u(a,t+.82*r,t+.8*r,e*.016,.9),u(a,t+.8*r,t-.1*r,e*.016,2.2),T(a,t+k.x*r,t+k.y*r,Math.max(2,r*.05),"#f43f5e"),a.restore(),l};x.prototype.renderGlass=function(){const e=this.size,t=this.C,o=this.IH,i=this.IR,s=v(e),r=s.getContext("2d");r.save(),M(r,t,t,o,i),r.clip(),r.fillStyle="rgba(2,3,6,0.40)",r.fillRect(t-o,t-o,o*2,o*2);const d=r.createRadialGradient(t,t,o*.5,t,t,o*1.42);d.addColorStop(0,"rgba(0,0,0,0)"),d.addColorStop(1,"rgba(0,0,0,0.42)"),r.fillStyle=d,r.fillRect(t-o,t-o,o*2,o*2),r.beginPath(),r.moveTo(t-o,t-o),r.lineTo(t+o,t-o),r.lineTo(t+o,t-o*.55),r.bezierCurveTo(t+o*.3,t-o*.15,t-o*.35,t+o*.1,t-o,t+o*.42),r.closePath();const l=r.createLinearGradient(t-o,t-o,t+o*.4,t+o*.3);l.addColorStop(0,"rgba(255,255,255,0.13)"),l.addColorStop(.55,"rgba(255,255,255,0.06)"),l.addColorStop(1,"rgba(255,255,255,0.02)"),r.fillStyle=l,r.fill(),r.strokeStyle="rgba(255,255,255,0.10)",r.lineWidth=1,r.stroke();const a=r.createLinearGradient(0,t-o,0,t-o*.5);return a.addColorStop(0,"rgba(255,255,255,0.14)"),a.addColorStop(1,"rgba(255,255,255,0)"),r.fillStyle=a,r.fillRect(t-o,t-o,o*2,o*.5),r.restore(),s};x.prototype.renderTop=function(){const e=this.size,t=this.C,o=this.H,i=this.FW,s=this.IH,r=this.IR,d=v(e),l=d.getContext("2d");l.save(),M(l,t,t,s,r),l.clip();for(let n=0;n<12;n++){const f=w(n*30-90),g=Math.cos(f),y=Math.sin(f),b=s/Math.max(Math.abs(g),Math.abs(y)),h=Math.min(b,s*1.36)-s*.04,c=n%3===0,C=s*(c?.16:.1),m=s*(c?.026:.016),G=t+g*h,L=t+y*h,z=t+g*(h-C),B=t+y*(h-C),W=l.createLinearGradient(z,B,G,L);W.addColorStop(0,"rgba(232,236,242,0.30)"),W.addColorStop(1,"rgba(246,248,251,0.95)"),l.strokeStyle=W,l.lineWidth=m,l.lineCap="round",l.beginPath(),l.moveTo(z,B),l.lineTo(G,L),l.stroke()}l.restore();const a=o-i*.5,S=e*.018;for(const n of[[0,-1,.5],[1,0,-.3],[0,1,1],[-1,0,.2]])u(l,t+n[0]*a,t+n[1]*a,S,n[2]);
1if(this.topHasLogo=!!(this.logo.complete&&this.logo.naturalWidth),this.topHasLogo){const n=o*1,f=l.createRadialGradient(t,t,n*.1,t,t,n*.62);f.addColorStop(0,"rgba(0,0,0,0.45)"),f.addColorStop(.7,"rgba(0,0,0,0.22)"),f.addColorStop(1,"rgba(0,0,0,0)"),l.fillStyle=f,l.beginPath(),l.arc(t,t,n*.62,0,p),l.fill(),l.save(),l.shadowColor="rgba(0,0,0,0.85)",l.shadowBlur=e*.016,l.shadowOffsetY=e*.006,l.globalAlpha=1,l.drawImage(this.logo,t-n*.5,t-n*.52,n,n),l.restore()}return d};x.prototype.render=function(e){const t=this.ctx,o=this.size,i=this.C,s=this.IH,r=this.IR;!this.topHasLogo&&this.logo.complete&&this.logo.naturalWidth&&(this.top=this.renderTop()),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,o,o),t.drawImage(this.base,0,0),t.save(),M(t,i,i,s,r),t.clip();for(let b=0;b<this.gears.length;b++){const h=this.gears[b];t.save(),t.translate(h.x,h.y),t.rotate(e*h.w),t.drawImage(h.cv,-h.cv.width/2,-h.cv.height/2),t.restore()}t.save(),t.translate(i+R.x*s,i+R.y*s),t.rotate(w(-28)+w(9)*Math.sin(e*6)),t.drawImage(this.forkCv,-this.forkCv.width/2,-this.forkCv.height/2),t.restore();const d=i+k.x*s,l=i+k.y*s,a=k.r*s;t.save(),t.translate(d,l);const S=1+.06*Math.cos(e*6);t.strokeStyle="rgba(150,185,242,0.9)",t.lineWidth=Math.max(.8,o*.0022),t.beginPath();const n=8,f=a*.08,g=a*.55,y=(g-f)/(n*p);for(let b=0;b<n*p;b+=.14){const h=(f+y*b)*S,c=Math.cos(b)*h,C=Math.sin(b)*h;b===0?t.moveTo(c,C):t.lineTo(c,C)}t.stroke(),t.rotate(w(150)*Math.sin(e*6)),t.drawImage(this.balanceCv,-this.balanceCv.width/2,-this.balanceCv.height/2),t.restore(),t.restore(),t.drawImage(this.glass,0,0),t.drawImage(this.top,0,0)};function _(e,t){const o=new x(e,t);return{render:function(i){o.render(i)},setSize:function(i){o.size=i,o.resize()},tileFraction:.4}}function K(e,t,o,i){return H(e,t,F[i||0],o,null,!1)}export{_ as createAppIconWatch,K as skeletonGear};
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.