PageSourceSearch

https://knowzy.ai/assets/vendor-path-data-parser-D8fsq32w.js

js knowzy.ai collected 2026-10-05 15:16:04 UTC 5,487 bytes, 2 lines download raw bytes

1(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"[email protected]+914"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="6541dc57-2b53-4aab-9ced-2f6fd715bd4d",o._sentryDebugIdIdentifier="sentry-dbid-6541dc57-2b53-4aab-9ced-2f6fd715bd4d")})()}catch{}const O=0,S=1,Z=2,P={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function F(o){const t=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:O,text:RegExp.$1},o=o.substr(RegExp.$1.length);else if(o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))t[t.length]={type:S,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length);else return[];return t[t.length]={type:Z,text:""},t}function L(o,t){return o.type===t}function N(o){const t=[],s=F(o);let e="BOD",n=0,c=s[n];for(;!L(c,Z);){let b=0;const a=[];if(e==="BOD")if(c.text==="M"||c.text==="m")n++,b=P[c.text],e=c.text;else return N("M0,0"+o);else L(c,S)?b=P[e]:(n++,b=P[c.text],e=c.text);if(n+b<s.length){for(let i=n;i<n+b;i++){const f=s[i];if(L(f,S))a[a.length]=+f.text;else throw new Error("Param not a number: "+e+","+f.text)}if(typeof P[e]=="number"){const i={key:e,data:a};t.push(i),n+=b,c=s[n],e==="M"&&(e="L"),e==="m"&&(e="l")}else throw new Error("Bad segment: "+e)}else throw new Error("Path data ended short")}return t}function U(o){let t=0,s=0,e=0,n=0;const c=[];for(const{key:b,data:a}of o)switch(b){case"M":c.push({key:"M",data:[...a]}),[t,s]=a,[e,n]=a;break;case"m":t+=a[0],s+=a[1],c.push({key:"M",data:[t,s]}),e=t,n=s;break;case"L":c.push({key:"L",data:[...a]}),[t,s]=a;break;case"l":t+=a[0],s+=a[1],c.push({key:"L",data:[t,s]});break;case"C":c.push({key:"C",data:[...a]}),t=a[4],s=a[5];break;case"c":{const i=a.map((f,h)=>h%2?f+s:f+t);c.push({key:"C",data:i}),t=i[4],s=i[5];break}case"Q":c.push({key:"Q",data:[...a]}),t=a[2],s=a[3];break;case"q":{const i=a.map((f,h)=>h%2?f+s:f+t);c.push({key:"Q",data:i}),t=i[2],s=i[3];break}case"A":c.push({key:"A",data:[...a]}),t=a[5],s=a[6];break;case"a":t+=a[5],s+=a[6],c.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],t,s]});break;case"H":c.push({key:"H",data:[...a]}),t=a[0];break;case"h":t+=a[0],c.push({key:"H",data:[t]});break;case"V":c.push({key:"V",data:[...a]}),s=a[0];break;case"v":s+=a[0],c.push({key:"V",data:[s]});break;case"S":c.push({key:"S",data:[...a]}),t=a[2],s=a[3];break;case"s":{const i=a.map((f,h)=>h%2?f+s:f+t);c.push({key:"S",data:i}),t=i[2],s=i[3];break}case"T":c.push({key:"T",data:[...a]}),t=a[0],s=a[1];break;case"t":t+=a[0],s+=a[1],c.push({key:"T",data:[t,s]});break;case"Z":case"z":c.push({key:"Z",data:[]}),t=e,s=n;break}return c}function X(o){const t=[];let s="",e=0,n=0,c=0,b=0,a=0,i=0;for(const{key:f,data:h}of o){switch(f){case"M":t.push({key:"M",data:[...h]}),[e,n]=h,[c,b]=h;break;case"C":t.push({key:"C",data:[...h]}),e=h[4],n=h[5],a=h[2],i=h[3];break;case"L":t.push({key:"L",data:[...h]}),[e,n]=h;break;case"H":e=h[0],t.push({key:"L",data:[e,n]});break;case"V":n=h[0],t.push({key:"L",data:[e,n]});break;case"S":{let l=0,u=0;s==="C"||s==="S"?(l=e+(e-a),u=n+(n-i)):(l=e,u=n),t.push({key:"C",data:[l,u,...h]}),a=h[0],i=h[1],e=h[2],n=h[3];break}case"T":{const[l,u]=h;let r=0,d=0;s==="Q"||s==="T"?(r=e+(e-a),d=n+(n-i)):(r=e,d=n);const y=e+2*(r-e)/3,p=n+2*(d-n)/3,M=l+2*(r-l)/3,w=u+2*(d-u)/3;t.push({key:"C",data:[y,p,M,w,l,u]}),a=r,i=d,e=l,n=u;break}case"Q":{const[l,u,r,d]=h,y=e+2*(l-e)/3,p=n+2*(u-n)/3,M=r+2*(l-r)/3,w=d+2*(u-d)/3;t.push({key:"C",data:[y,p,M,w,r,d]}),a=l,i=u,e=r,n=d;break}case"A":{const l=Math.abs(h[0]),u=Math.abs(h[1]),r=h[2],d=h[3],y=h[4],p=h[5],M=h[6];l===0||u===0?(t.push({key:"C",data:[e,n,p,M,p,M]}),e=p,n=M):(e!==p||n!==M)&&($(e,n,p,M,l,u,r,d,y).forEach(function(I){t.push({key:"C",data:I})}),e=p,n=M);break}case"Z":t.push({key:"Z",data:[]}),e=c,n=b;break}s=f}return t}function Y(o){return Math.PI*o/180}function E(o,t,s){const e=o*Math.cos(s)-t*Math.sin(s),n=o*Math.sin(s)+t*Math.cos(s);return[e,n]}function $(o,t,s,e,n,c,b,a,i,f){const h=Y(b);let l=[],u=0,r=0,d=0,y=0;if(f)[u,r,d,y]=f;else{[o,t]=E(o,t,-h),[s,e]=E(s,e,-h);const g=(o-s)/2,k=(t-e)/2;let m=g*g/(n*n)+k*k/(c*c);m>1&&(m=Math.sqrt(m),n=m*n,c=m*c);const T=a===i?-1:1,C=n*n,A=c*c,_=C*A-C*k*k-A*g*g,B=C*k*k+A*g*g,V=T*Math.sqrt(Math.abs(_/B));d=V*n*k/c+(o+s)/2,y=V*-c*g/n+(t+e)/2,u=Math.asin(parseFloat(((t-y)/c).toFixed(9))),r=Math.asin(parseFloat(((e-y)/c).toFixed(9))),o<d&&(u=Math.PI-u),s<d&&(r=Math.PI-r),u<0&&(u=Math.PI*2+u),r<0&&(r=Math.PI*2+r),i&&u>r&&(u=u-Math.PI*2),!i&&r>u&&(r=r-Math.PI*2)}let p=r-u;if(Math.abs(p)>Math.PI*120/180){const g=r,k=s,m=e;i&&r>u?r=u+Math.PI*120/180*1:r=u+Math.PI*120/180*-1,s=d+n*Math.cos(r),e=y+c*Math.sin(r),l=$(s,e,k,m,n,c,b,0,i,[r,g,d,y])}p=r-u;const M=Math.cos(u),w=Math.sin(u),I=Math.cos(r),q=Math.sin(r),D=Math.tan(p/4),R=4/3*n*D,v=4/3*c*D,Q=[o,t],x=[o+R*w,t-v*M],z=[s+R*q,e-v*I],H=[s,e];if(x[0]=2*Q[0]-x[0],x[1]=2*Q[1]-x[1],f)return[x,z,H].concat(l);{l=[x,z,H].concat(l);const g=[];for(let k=0;k<l.length;
1k+=3){const m=E(l[k][0],l[k][1],h),T=E(l[k+1][0],l[k+1][1],h),C=E(l[k+2][0],l[k+2][1],h);g.push([m[0],m[1],T[0],T[1],C[0],C[1]])}return g}}export{U as a,X as n,N as p};
2//# sourceMappingURL=vendor-path-data-parser-D8fsq32w.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.