PageSourceSearch

https://era.designworkout.ru/rmcdn_st/c099b495/dist/c/c-Q7ARKYTU.js

js designworkout.ru collected 2026-09-30 10:55:36 UTC 6,496 bytes, 10 lines download raw bytes

1import{a as J}from"https://st-p.rmcdn1.net/c099b495/dist/c/c-B6YV2G7M.js";import{a as H,d as z}from"https://st-p.rmcdn1.net/c099b495/dist/c/c-VIR7PMAX.js";var V,D,Q,K=H(()=>{"use strict";V=z(J());typeof window<"u"&&(window.iconSVGCache=[]);D=function(){};D.prototype={MAX_ICON_CACHE_SIZE:30,generateShapeSVG:function(b,l,w,q,k,x={}){let $=1e5,G=x?.bg_color||l.get("bg_color")||l.viewport_default&&l.viewport_default.bg_color||"ffffff",B=x?.bg_opacity||l.get("bg_opacity"),X=x?.color||l.get("color")||"ffffff",v=x?.opacity||l.get("opacity"),R=x?.borders||l.get("borders"),j=x?.radius||l.get("radius")||0,_=x.w||w,I=x.h||q,d=this.getRGBA(G,B),L=this.getRGBA(X,v),M;if(l.get("type")==="hotspot"?k=k||x?.pin_type||l.get("pin_type"):k=k||l.get("tp"),k=="ellipse"){var S=_/2,p=I/2,C=R,C=Math.min(C,S,p);let t=x.addToCaller?l.id+"_"+b+"_"+x.addToCaller:l.id+"_"+b;M=T("ellipse",{cx:S,cy:p,rx:S,ry:p},d,L,C,t,v)}if(k=="rectangle"||k=="polygon"){l.get("type")==="hotspot"&&(d="rgba(0, 0, 0, 0)",L=d);let t=k=="rectangle"?4:l.get("sides"),e=R,h=l.get("radius_rect_independent"),f={tlRadius:l.get("radius_rect_tl")||0,trRadius:l.get("radius_rect_tr")||0,blRadius:l.get("radius_rect_bl")||0,brRadius:l.get("radius_rect_br")||0},n=E(t,_,I,e),i=O(n),r,o;k==="rectangle"&&h?(r=Z(n,f,i),o=Y(f,r)):(r=N(n,j,i),o=F(n,r.points,r.radius));let s=x.addToCaller?l.id+"_"+b+"_"+x.addToCaller:l.id+"_"+b;M=T("path",{path:o},d,L,e,s,v)}if(k=="line"){let t=x?.weight||l.get("weight"),e=Math.round(I/2)+(t%2==1?.5:0),h="",f=[t*13/3,t*2/3].join(" "),n=t>1?[.001,t*5/3].join(" "):[1,2].join(" "),i="auto",r=l.get("stroke")=="dotted"?t/2:0;if(h="M"+r+" "+e+" L"+_+" "+e,l.get("stroke")=="solid"&&(M=`<path d="${h}" style="fill: none; stroke: ${d}; stroke-width: ${t}" shape-rendering="${i}" />`),l.get("stroke")=="double"){let o="M"+r+" "+(e-t)+" L"+_+" "+(e-t),s="M"+r+" "+(e+t)+" L"+_+" "+(e+t);M=`<path d="${o}" style="fill: none; stroke: ${d}; stroke-width: ${t};" shape-rendering="${i}"/>`,M+=`<path d="${s}" style="fill: none; stroke: ${d}; stroke-width: ${t}" shape-rendering="${i}"/>`}l.get("stroke")=="dotted"&&(M=`<path d="${h}" stroke-linecap="round" stroke-dasharray="${n}" style="fill: none; stroke: ${d}; stroke-width: ${t}"  shape-rendering="${i}"/>`),l.get("stroke")=="dashed"&&(M=`<path d="${h}" stroke-dasharray="${f}" style="fill: none; stroke: ${d}; stroke-width: ${t}" shape-rendering="${i}"/>`)}if(k=="icon"){let t=this.iconData||this.current_icon_data;if(!t)return null;let e=t.$svg.clone();return e.css({width:"100%",height:"100%"}),d=this.getRGBA(G,1),e.find("*:not(.fixed-color)").each(function(){let h=(0,V.default)(this);h.css({fill:"","fill-opacity":""}),h.get(0).removeAttribute("fill"),h.get(0).removeAttribute("fill-opacity")}),e.get(0).setAttribute("fill",d),e.get(0).setAttribute("fill-opacity",B),e}return'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+_+'px" height="'+I+'px">'+M+"</svg>";function T(t,e,h,f,n,i,r){let o="mask_"+i,s="clip_"+i,c="",y=2;return n>0&&r>.99&&(y=1),c="<defs>",n>0&&(c+='<mask id="'+o+'">',t=="path"&&(c+='<path d="'+e.path+'" style="fill:white; stroke:black; stroke-width:'+n*y+'"/>'),t=="ellipse"&&(c+='<ellipse cx="'+e.cx+'" cy="'+e.cy+'" rx="'+e.rx+'" ry="'+e.ry+'" style="fill:white; stroke:black; stroke-width:'+n*y+'"/>'),c+="</mask>"),c+='<clippath id="'+s+'">',t=="path"&&(c+='<path d="'+e.path+'"/>'),t=="ellipse"&&(c+='<ellipse cx="'+e.cx+'" cy="'+e.cy+'" rx="'+e.rx+'" ry="'+e.ry+'"/>'),c+="</clippath>",c+="</defs>",t=="path"&&(c+='<path mask="url(#'+o+')" d="'+e.path+'" style="fill:'+h+'; stroke:none; stroke-width:0; pointer-events: visiblePainted;"/>'),t=="ellipse"&&(c+='<ellipse mask="url(#'+o+')" cx="'+e.cx+'" cy="'+e.cy+'" rx="'+e.rx+'" ry="'+e.ry+'" style="fill:'+h+'; stroke:none; stroke-width:0; pointer-events: visiblePainted;"/>'),n==0||(t=="path"&&(c+='<path clip-path="url(#'+s+')" d="'+e.path+'" style="fill:none; stroke:'+f+"; stroke-width:"+n*2+'; pointer-events: visiblePainted;"/>'),t=="ellipse"&&(c+='<ellipse clip-path="url(#'+s+')" cx="'+e.cx+'" cy="'+e.cy+'" rx="'+e.rx+'" ry="'+e.ry+'" style="fill:none; stroke:'+f+"; stroke-width:"+n*2+'; pointer-events: visiblePainted;"/>')),c}function E(t,e,h){let f=2*Math.PI/t,n=Math.PI/2-(t%2==1?0:f/2),i=[],r,o,s,c=999999,y=-999999,u=999999,a=-999999;for(var g=0;g<t;g++)r=n+g*f,o=.5+.5*Math.cos(r),s=.5-.5*Math.sin(r),i.push({x:o,y:s}
1),o<c&&(c=o),o>y&&(y=o),s<u&&(u=s),s>a&&(a=s);for(var g=0;g<t;g++)i[g].x=(i[g].x-c)*(e/(y-c)),i[g].y=(i[g].y-u)*(h/(a-u)),i[g].x=Math.round(i[g].x*$)/$,i[g].y=Math.round(i[g].y*$)/$;return i}function O(t){if(!t)return 99999;let e=99999,h=t.length,f;for(let n=0;n<h;n++){let i=t[n].x-t[(n+1)%h].x,r=t[n].y-t[(n+1)%h].y;f=Math.sqrt(i*i+r*r),f<e&&(e=f),t[n].side=f}return e}function Z(t,{trRadius:e,tlRadius:h,blRadius:f,brRadius:n},i){return e=Math.min(e,i/2),h=Math.min(h,i/2),f=Math.min(f,i/2),n=Math.min(n,i/2),{trTop:{x:t[0].x-e,y:t[0].y},tlTop:{x:t[1].x+h,y:t[1].y},tlLeft:{x:t[1].x,y:t[1].y+h},blLeft:{x:t[2].x,y:t[2].y-f},blBottom:{x:t[2].x+f,y:t[2].y},brBottom:{x:t[3].x-n,y:t[3].y},brRight:{x:t[3].x,y:t[3].y-n},trRight:{x:t[0].x,y:t[0].y+e}}}function N(t,e,h){if(!t)return{};if(e<=1e-4)return{};let f=[],n=t.length;e=Math.min(e,h/2);for(let A=0;A<n;A++){var i=t[A],r=t[(A+1)%n],o=t[A].side,s=(r.x-i.x)/o,c=(r.y-i.y)/o,y,u,a,g;y=i.x+s*e,u=i.y+c*e,a=r.x-s*e,g=r.y-c*e,y=Math.round(y*$)/$,u=Math.round(u*$)/$,a=Math.round(a*$)/$,g=Math.round(g*$)/$,f.push({x:y,y:u}),f.push({x:a,y:g})}return{points:f,radius:e}}function Y(t,e){let{tlRadius:h,trRadius:f,brRadius:n,blRadius:i}=t,{trTop:r,tlTop:o,tlLeft:s,blLeft:c,blBottom:y,brBottom:u,brRight:a,trRight:g}=e;return`M ${r.x} 0
2        L ${o.x} ${o.y}
3        A ${h} ${h} 0 0 0 ${s.x} ${s.y}
4        L ${c.x} ${c.y}
5        A ${i} ${i} 0 0 0 ${y.x} ${y.y}
6        L ${u.x} ${u.y}
7        A ${n} ${n} 0 0 0 ${a.x} ${a.y}
8        L ${g.x} ${g.y}
9        A ${f} ${f} 0 0 0 ${r.x} ${r.y}
10        Z`}function F(t,e,h){if(!t)return"";let f=t.length,n="";for(let i=0;i<f;i++){let r=i*2+1,o=(i*2+2)%(f*2);if(n+=i==0?"M":"L",e){n+=e[r].x+" "+e[r].y+" ";let s=e[r].x-e[o].x,c=e[r].y-e[o].y,y=(s*s+c*c)/4,u=1/y-1/(h*h),a=Math.sqrt(1/u);n+="A"+a+" "+a+" 0 0 0 "+e[o].x+" "+e[o].y+" "}else n+=t[i].x+" "+t[i].y+" "}return n+" Z "}},getRGBA:function(b,l){if(l==0)return"none";let w=[parseInt(b.substring(0,2),16),parseInt(b.substring(2,4),16),parseInt(b.substring(4,6),16)];return l>.99?"rgb("+w[0]+","+w[1]+","+w[2]+")":"rgba("+w[0]+","+w[1]+","+w[2]+", "+l+")"}};Q=D});export{Q as a,K as b};

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.