PageSourceSearch

https://caminosalvaje.org/wp-content/cache/min/1/wp-content/plugin…/includes/shortcode.js?ver=1789425670

js caminosalvaje.org collected 2026-10-04 13:29:29 UTC 24,201 bytes, 81 lines download raw bytes

1var iwmMapObj=[];var iwmgeocharts=[];var apiversion=iwmparam[0].apiversion;var iwmdata=[];var iwmoptions=[];var iwmApiKey=iwmparam[0].apikey;google.charts.load('42',{packages:['geochart'],mapsApiKey:iwmApiKey});google.charts.setOnLoadCallback(iwm_init);function iwm_init(){for(var key in iwmparam){var controls=iwmparam[key].controls;if(controls){iwm_zoom(iwmparam[key].id,iwmparam[key].controls_position,iwmparam[key].overlay)}}
2iwmDrawVisualization()}
3function iwmDrawVisualization(skipNotVisible){if(typeof google.visualization!="undefined"){var data={};var values={};var listener_actions={};var listener_custom={};var identifier={};for(var key in iwmparam){var mapid=iwmparam[key].id;if(skipNotVisible&&iwmMapObj[mapid]&&!iwmMapObj[mapid].div.is(':visible')){continue}
4var keydiv=document.getElementById("map_canvas_"+mapid);if(iwmparam[key].region&&keydiv){var usehtml=parseInt(iwmparam[key].usehtml);var iwmid=parseInt(iwmparam[key].id);var bgcolor=iwmparam[key].bgcolor;var stroke=parseInt(iwmparam[key].stroke);var bordercolor=iwmparam[key].bordercolor;var incolor=iwmparam[key].incolor;var actcolor=iwmparam[key].actcolor;var width=parseInt(iwmparam[key].width);var height=parseInt(iwmparam[key].height);var ratio=(iwmparam[key].aspratio==='1');var interactive=(iwmparam[key].interactive==='true');var toolt=iwmparam[key].tooltip;var region=iwmparam[key].region;var resolution=iwmparam[key].resolution;var markersize=parseInt(iwmparam[key].markersize);var displaymode=iwmparam[key].displaymode;var placestxt=iwmparam[key].placestxt;var projection=iwmparam[key].projection;var magglass=iwmparam[key].magglass;var magglasszfactor=parseInt(iwmparam[key].magglasszfactor);var widthselector=iwmparam[key].widthselector;placestxt=placestxt.replace(/^\s+|\s+$/g,'');var action=iwmparam[key].action;var customaction=iwmparam[key].custom_action;identifier[mapid]=iwmid;listener_actions[mapid]=action;listener_custom[mapid]=customaction;var places=placestxt.split(";");data[mapid]=new google.visualization.DataTable();if(displaymode=="markers02"||displaymode=="text02"){data[mapid].addColumn('number','Lat');data[mapid].addColumn('number','Long')}
5data[mapid].addColumn('string','Country');data[mapid].addColumn('number','Value');data[mapid].addColumn({type:'string',role:'tooltip',p:{html:!0}});var colorsmap=[];var colorsmapecho="";values[mapid]={};dataindex={};for(var i=0;i<places.length-1;i++){var entry=places[i].split(",");var ttitle=entry[1].replace(/&#59/g,";");ttitle=ttitle.replace(/&#44/g,",");var ttooltip=entry[2].replace(/&#59/g,";");ttooltip=ttooltip.replace(/&#44/g,",");var iwmcode=entry[0];iwmcode=iwmcode.replace(/^\s+|\s+$/g,'');dataindex[iwmcode]=i;if(displaymode!="markers02"&&displaymode!="text02"){data[mapid].addRows([[{v:iwmcode,f:ttitle},i,ttooltip]]);var index=iwmcode}else{var trim=entry[0].replace(/^\s+|\s+$/g,"");var latlon=trim.split(" ");var lat=parseFloat(latlon[0]);var lon=parseFloat(latlon[1]);data[mapid].addRows([[lat,lon,ttitle,i,ttooltip]]);var index=lat}
6var colori=entry[4];values[mapid][index]=entry[3].replace(/&#59/g,";");values[mapid][index]=values[mapid][index].replace(/&#44/g,",");colorsmapecho=colorsmapecho+"'"+colori+"',";colorsmap.push(colori)}
7defmaxvalue=0;if((places.length-2)>0){defmaxvalue=places.length-2}
8if(displaymode=="markers02"){displaymode="markers"}
9if(displaymode=="text02"){displaymode="text"}
10var htmltooltip=!1;if(usehtml==1){htmltooltip=!0}
11if(widthselector){var wselector=jQuery(widthselector);if(wselector){if(wselector.width()>0){width=wselector.width();height=''}}}
12if(jQuery("#map_canvas_"+iwmid).attr('data-iwm-zwidth')){width=jQuery("#map_canvas_"+iwmid).attr('data-iwm-zwidth');height=jQuery("#map_canvas_"+iwmid).attr('data-iwm-zheight')}
13var options={projection:projection,backgroundColor:{fill:bgcolor,stroke:bordercolor,strokeWidth:stroke},colorAxis:{minValue:0,maxValue:defmaxvalue,colors:colorsmap},legend:'none',backgroundColor:{fill:bgcolor,stroke:bordercolor,strokeWidth:stroke},datalessRegionColor:incolor,displayMode:displaymode,enableRegionInteractivity:interactive,resolution:resolution,sizeAxis:{minValue:1,maxValue:1,minSize:markersize,maxSize:markersize},region:region,keepAspectRatio:ratio,width:width,height:height,magnifyingGlass:{enable:magglass,zoomFactor:magglasszfactor},tooltip:{trigger:toolt,isHtml:htmltooltip},domain:'IN'};var divid="map_canvas_"+iwmid;iwmgeocharts[mapid]=new google.visualization.GeoChart(document.getElementById(div
13id));if(action!="none"){google.visualization.events.addListener(iwmgeocharts[mapid],'select',(function(x){return function(){var selection=iwmgeocharts[x].getSelection();if(selection.length==1){var selectedRow=selection[0].row;var selectedRegion=data[x].getValue(selectedRow,0);if(values[x][selectedRegion]!=""){iwm_run_action(selectedRegion,values[x][selectedRegion],identifier[x],listener_actions[x],listener_custom[x])}}}})(mapid))}
14iwmdata[mapid]=data[mapid];iwmoptions[mapid]=options;iwmgeocharts[mapid].draw(iwmdata[mapid],iwmoptions[mapid]);if(!iwmMapObj[mapid]){iwmMapObj[mapid]={div:jQuery('#'+divid),data:dataindex}}
15iwmMapObj[mapid].lastWidth=iwmMapObj[mapid].div.parent().width();google.visualization.events.addListener(iwmgeocharts[mapid],'ready',function(){jQuery('.iwm_map_canvas svg').fadeIn(300);if(typeof iwm_callback=='function'){iwm_callback()}})}}}else{console.log('API file not loaded yet')}}
16function iwm_run_action(selected,value,id,action,customaction){if(action=='i_map_action_open_url'){document.location=value}
17if(action=='i_map_action_alert'){alert(value)}
18if(action=='i_map_action_open_url_new'){window.open(value)}
19if(action=='i_map_action_content_below'||action=='i_map_action_content_above'){document.getElementById('imap'+id+'message').innerHTML=value;var dropdown=document.getElementById('imap-dropdown-'+id);if(dropdown){document.getElementById('imap'+id+'-'+selected).selected=!0}}
20if(action=='i_map_action_content_below_scroll'||action=='i_map_action_content_above_scroll'){document.getElementById('imap'+id+'message').innerHTML=value;jQuery("html, body").animate({scrollTop:jQuery("#imap"+id+"message").position().top},"slow");var dropdown=document.getElementById('imap-dropdown-'+id);if(dropdown){document.getElementById('imap'+id+'-'+selected).selected=!0}}
21if(action=='i_map_action_colorbox_content'){jQuery.colorbox({html:value,maxWidth:'90%',})}
22if(action=='i_map_action_colorbox_iframe'){jQuery.colorbox({open:!0,href:value,iframe:!0,width:"80%",height:"80%"})}
23if(action=='i_map_action_colorbox_image'){jQuery.colorbox({open:!0,href:value,photo:!0})}
24if(action=='i_map_action_colorbox_inline'){var inline=jQuery(value);jQuery.colorbox({inline:!0,href:inline})}
25if(action=='i_map_action_custom'){var name="iwm_custom_action_"+id;window[name](value)}}
26function iwm_setSelection(code,map){map=map||!1;if(map){var index=iwmMapObj[map].data[code];iwmgeocharts[map].setSelection([{row:index,column:null}])}}
27function iwm_clearSelection(map){map=map||!1;if(map){iwmgeocharts[map].setSelection(null)}}
28function iwm_select(code,map){map=map||'0';var index=iwmMapObj[map].data[code];iwmgeocharts[map].setSelection([{row:index,column:null}]);google.visualization.events.trigger(iwmgeocharts[map],'select',{})}
29function iwm_connect_marker(mapid,marker01,marker02,color,strokew,type){mapid=mapid||!1;marker01=marker01||!1;marker02=marker02||!1;color=color||'#FFFFFF';strokew=strokew||'1';type=type||'normal';if(mapid&&marker01&&marker02&&iwmMapObj[mapid]){var mi01=iwmMapObj[mapid].data[marker01];var mi02=iwmMapObj[mapid].data[marker02];var map=document.getElementById('map_canvas_'+mapid);if(map){var mode=null;var markers=jQuery('#map_canvas_'+mapid+' circle').length;var textlabels=jQuery('#map_canvas_'+mapid+' text').length;if(textlabels>0){mode='text'}
30if(markers>0){mode='circle'}
31var isOpera=(!!window.opr&&!!opr.addons)||!!window.opera||navigator.userAgent.indexOf(' OPR/')>=0;var isFirefox=typeof InstallTrigger!=='undefined';var isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor')>0;var isIE=!1||!!document.documentMode;var isEdge=!isIE&&!!window.StyleMedia;var isChrome=!!window.chrome&&!!window.chrome.webstore;var isBlink=(isChrome||isOpera)&&!!window.CSS;if((textlabels>10||markers>10)&&(isOpera||isChrome)){return}
32var marker01ck=map.getElementsByTagName(mode)[mi01];var marker02ck=map.getElementsByTagName(mode)[mi02];if(marker01ck&&marker02ck){if(mode=='circle'){var m01x=parseInt(marker01ck.getAttribute("cx"),10);var m01y=parseInt(marker01ck.getAttribute("cy"),10);var m02x=parseInt(marker02ck.getAttribute("cx"),10);var m02y=parseInt(marker02ck.getAttribute("cy"),10);var mr=parseInt(marker02ck.getAttribute("r"),10)}
33if(mode=='text'){var m01x=parseInt(marker01ck.getAttribute("x"),10);var m01y=parseInt(marker01ck.getAttribute("y"),10);var m02x=parseInt(marker02ck.getAttribute("x"),10);var m02y=parseInt(marker02ck.getAttribute("y"),10);var mr2=parseInt(marker02ck.getAttribute("font-size"),10);var bbox1=marker01ck.getBBox();var width1=bbox1.width;var height1=bbox1.height;var bbox2=marker02ck.getBBox();var width2=bbox2.width;var height2=bbox2.height;mr1=parseInt(height1)/2;mr2=parseInt(height2)/2;var m02y=parseInt(m02y,10)-mr2;var m01y=parseInt(m01y,10)-mr1}
34var lineid=new String(marker01+marker02);lineid=lineid.replace(/[^a-zA-Z0-9|-]/g,"");if(type=='arrow'||type=='dashed-arrow'||type=='curved-arrow'||type=='dashed-curved-arrow'){if(mode=='circle'){mr=parseInt(mr,10)+parseInt(strokew,10)*4;var dx=parseInt(m01x,10)-parseInt(m02x,10),dy=parseInt(m01y,10)-parseInt(m02y,10),dist=Math.sqrt(dx*dx+dy*dy),m02x=parseInt(m02x,10)+parseInt(dx,10)*parseInt(mr,10)/dist,m
3402y=parseInt(m02y,10)+dy*parseInt(mr,10)/dist}
35if(mode=='text'){mr2=parseInt(mr2,10)+parseInt(strokew,10)*4;var dx2=parseInt(m01x,10)-parseInt(m02x,10),dy2=parseInt(m01y,10)-parseInt(m02y,10),dist2=Math.sqrt(dx2*dx2+dy2*dy2),m02x=parseInt(m02x,10)+parseInt(dx2,10)*parseInt(mr2,10)/dist2,m02y=parseInt(m02y,10)+dy2*parseInt(mr2,10)/dist2;mr1=parseInt(mr1,10)-5;var dx1=parseInt(m02x,10)-parseInt(m01x,10),dy1=parseInt(m02y,10)-parseInt(m01y,10),dist1=Math.sqrt(dx1*dx1+dy1*dy1),m01x=parseInt(m01x,10)+parseInt(dx1,10)*parseInt(mr1,10)/dist1,m01y=parseInt(m01y,10)+dy1*parseInt(mr1,10)/dist1}
36var larrow=document.createElementNS('http://www.w3.org/2000/svg','marker');larrow.setAttribute('id','arrow'+lineid);larrow.setAttribute('markerWidth','5');larrow.setAttribute('markerHeight','5');larrow.setAttribute('refX','-2');larrow.setAttribute('refY','0');larrow.setAttribute('orient','auto');larrow.setAttribute('markerUnits','strokeWidth');larrow.setAttribute('Box','0 0 10 10');larrow.setAttribute('viewBox','-5 -5 10 10');var currarrow=jQuery('#map_canvas_'+mapid+' svg #defs #arrow'+lineid);if(currarrow.length==0){jQuery('#map_canvas_'+mapid+' svg #defs').append(larrow)}
37var arrowpath=document.createElementNS('http://www.w3.org/2000/svg','polygon');arrowpath.setAttribute('points','-2,0 -5,5 5,0 -5,-5');arrowpath.setAttribute('fill',color);arrowpath.setAttribute('stroke',color);arrowpath.setAttribute('stroke-width','0px');arrowpath.setAttribute('id','poly'+lineid);var currarrowpath=jQuery('#map_canvas_'+mapid+' svg #poly'+lineid);if(currarrowpath.length==0){jQuery('#map_canvas_'+mapid+' svg #arrow'+lineid).append(arrowpath)}}
38if(type=='curved'||type=='curved-arrow'||type=='dashed-curved'||type=='dashed-curved-arrow'){var cx=(m01x+m02x)/2;var cy=(m01y+m02y)/2;var dx=(m02x-m01x)/2;var dy=(m02y-m01y)/2;var dd=Math.sqrt(dx*dx+dy*dy);var ex=cx+dy/dd*20;var ey=cy-dx/dd*20;if(!ex){ex=0}
39if(!ey){ey=0}
40var path=document.createElementNS('http://www.w3.org/2000/svg','path');path.setAttribute('id',lineid);path.setAttribute('d','M'+m01x+','+m01y+' Q'+ex+','+ey+' '+m02x+','+m02y);path.setAttribute('stroke',color);path.setAttribute('stroke-width',strokew);path.setAttribute('fill','transparent');if(type=='dashed-curved-arrow'||type=='dashed-curved'){path.setAttribute('stroke-dasharray','5,5')}
41if(type=='curved-arrow'||'dashed-curved-arrow'){path.setAttribute('marker-end','url(#arrow'+lineid+')')}}
42if(type=='dashed'||type=='dashed-arrow'||type=='arrow'||type=='normal'){var path=document.createElementNS('http://www.w3.org/2000/svg','line');path.setAttribute('id',lineid);path.setAttribute('x1',m01x);path.setAttribute('y1',m01y);path.setAttribute('x2',m02x);path.setAttribute('y2',m02y);path.setAttribute('stroke',color);path.setAttribute('stroke-width',strokew);if(type=='dashed'||type=='dashed-arrow'){path.setAttribute('stroke-dasharray','5,5')}
43if(type=='arrow'||type=='dashed-arrow'){path.setAttribute('marker-end','url(#arrow'+lineid+')')}}
44var currpath=jQuery('#map_canvas_'+mapid+' line#'+lineid);if(currpath.length==0){if(mode=='circle'){jQuery('#map_canvas_'+mapid+' svg circle').first().parent().before(path)}
45if(mode='text'){jQuery('#map_canvas_'+mapid+' svg text').first().parent().before(path)}}}}}}
46var iwm_processed_connections=[];function iwm_connect_marker_adv(mapid,marker01,marker02,color,strokew,type){mapid=mapid||!1;marker01=marker01||!1;marker02=marker02||!1;color=color||'#FFFFFF';strokew=strokew||'1';type=type||'normal';if(mapid&&marker01&&marker02&&iwmMapObj[mapid]){var map=document.getElementById('map_canvas_'+mapid);if(map){var mode=null;var markers=jQuery('#map_canvas_'+mapid+' circle');var textlabels=jQuery('#map_canvas_'+mapid+' text');var sortedmarkers;var markersindex=[];if(textlabels.length>0){sortedmarkers=jQuery('#map_canvas_'+mapid+' g text').sort(function(a,b){return Number(jQuery(a).attr('y'))-Number(jQuery(b).attr('y'))});sortedmarkers.each(function(index){markersindex[index]=jQuery(this).attr('y')})}
47if(markers.length>0){sortedmarkers=jQuery('#map_canvas_'+mapid+' g circle').sort(function(a,b){return parseInt(jQuery(a).attr('cy'))-parseInt(j
47Query(b).attr('cy'))});sortedmarkers.each(function(index){markersindex[index]=jQuery(this).attr('cy')})}
48var datacyindex=[];var tempcounter=0;jQuery.each(iwmMapObj[mapid].data,function(key,value){cyindex=key.split(' ');datacyindex[tempcounter]=cyindex[0];tempcounter++});datacyindex.sort(iwm_sortNumber).reverse();relationobj={};for(var i=0;i<datacyindex.length;i++){relationobj[datacyindex[i]]=markersindex[i]};mi01i=marker01.split(' ')[0];mi01cy=relationobj[mi01i];mi02i=marker02.split(' ')[0];mi02cy=relationobj[mi02i];var marker01ck=!1;var marker02ck=!1;if(textlabels.length>0){mode='text';textlabels.each(function(index){if(jQuery(this).attr('y')==mi01cy){marker01ck=map.getElementsByTagName(mode)[index]}
49if(jQuery(this).attr('y')==mi02cy){marker02ck=map.getElementsByTagName(mode)[index]}})}
50if(markers.length>0){mode='circle';markers.each(function(index){if(jQuery(this).attr('cy')==mi01cy){marker01ck=map.getElementsByTagName(mode)[index]}
51if(jQuery(this).attr('cy')==mi02cy){marker02ck=map.getElementsByTagName(mode)[index]}})}
52if(marker01ck&&marker02ck){if(mode=='circle'){var m01x=parseInt(marker01ck.getAttribute("cx"),10);var m01y=parseInt(marker01ck.getAttribute("cy"),10);var m02x=parseInt(marker02ck.getAttribute("cx"),10);var m02y=parseInt(marker02ck.getAttribute("cy"),10);var mr=parseInt(marker02ck.getAttribute("r"),10)}
53if(mode=='text'){var m01x=parseInt(marker01ck.getAttribute("x"),10);var m01y=parseInt(marker01ck.getAttribute("y"),10);var m02x=parseInt(marker02ck.getAttribute("x"),10);var m02y=parseInt(marker02ck.getAttribute("y"),10);var mr2=parseInt(marker02ck.getAttribute("font-size"),10);var bbox1=marker01ck.getBBox();var width1=bbox1.width;var height1=bbox1.height;var bbox2=marker02ck.getBBox();var width2=bbox2.width;var height2=bbox2.height;mr1=parseInt(height1)/2;mr2=parseInt(height2)/2;var m02y=parseInt(m02y,10)-mr2;var m01y=parseInt(m01y,10)-mr1}
54var lineid=new String(marker01+marker02);lineid=lineid.replace(/[^a-zA-Z0-9|-]/g,"");if(type=='arrow'||type=='dashed-arrow'||type=='curved-arrow'||type=='dashed-curved-arrow'){if(mode=='circle'){mr=parseInt(mr,10)+parseInt(strokew,10)*4;var dx=parseInt(m01x,10)-parseInt(m02x,10),dy=parseInt(m01y,10)-parseInt(m02y,10),dist=Math.sqrt(dx*dx+dy*dy),m02x=parseInt(m02x,10)+parseInt(dx,10)*parseInt(mr,10)/dist,m02y=parseInt(m02y,10)+dy*parseInt(mr,10)/dist}
55if(mode=='text'){mr2=parseInt(mr2,10)+parseInt(strokew,10)*4;var dx2=parseInt(m01x,10)-parseInt(m02x,10),dy2=parseInt(m01y,10)-parseInt(m02y,10),dist2=Math.sqrt(dx2*dx2+dy2*dy2),m02x=parseInt(m02x,10)+parseInt(dx2,10)*parseInt(mr2,10)/dist2,m02y=parseInt(m02y,10)+dy2*parseInt(mr2,10)/dist2;mr1=parseInt(mr1,10)-5;var dx1=parseInt(m02x,10)-parseInt(m01x,10),dy1=parseInt(m02y,10)-parseInt(m01y,10),dist1=Math.sqrt(dx1*dx1+dy1*dy1),m01x=parseInt(m01x,10)+parseInt(dx1,10)*parseInt(mr1,10)/dist1,m01y=parseInt(m01y,10)+dy1*parseInt(mr1,10)/dist1}
56var larrow=document.createElementNS('http://www.w3.org/2000/svg','marker');larrow.setAttribute('id','arrow'+lineid);larrow.setAttribute('markerWidth','5');larrow.setAttribute('markerHeight','5');larrow.setAttribute('refX','-2');larrow.setAttribute('refY','0');larrow.setAttribute('orient','auto');larrow.setAttribute('markerUnits','strokeWidth');larrow.setAttribute('Box','0 0 10 10');larrow.setAttribute('viewBox','-5 -5 10 10');var currarrow=jQuery('#map_canvas_'+mapid+' svg #defs #arrow'+lineid);if(currarrow.length==0){jQuery('#map_canvas_'+mapid+' svg #defs').append(larrow)}
57var arrowpath=document.createElementNS('http://www.w3.org/2000/svg','polygon');arrowpath.setAttribute('points','-2,0 -5,5 5,0 -5,-5');arrowpath.setAttribute('fill',color);arrowpath.setAttribute('stroke',color);arrowpath.setAttribute('stroke-width','0px');arrowpath.setAttribute('id','poly'+lineid);var currarrowpath=jQuery('#map_canvas_'+mapid+' svg #poly'+lineid);if(currarrowpath.length==0){jQuery('#map_canvas_'+mapid+' svg #arrow'+lineid).append(arrowpath)}}
58if(type=='curved'||type=='curved-arrow'||type=='dashed-curved'||type=='dashed-curved-arrow'){var cx=(m01x+m02x)/2;var cy=(m01y+m02y)/2;var dx=(m02x-m01x)/2;var dy=(m02y-m01y)/2;var dd=Math.sqrt(dx*dx+dy*dy);var ex=cx+dy/dd*20;var ey=cy-dx/dd*20;if(!ex){ex=0}
59if(!ey){ey=0}
60var path=document.createElementNS('http://www.w3.org/2000/svg','path');path.setAttribute('id',lineid);path.setAttribute('d','M'+m01x+','+m01y+' Q'+ex+','+ey+' '+m02x+','+m02y);path.setAttribute('stroke',color);path.setAttribute('stroke-width',strokew);path.setAttribute('fill','transparent');if(type=='dashed-curved-arrow'||type=='dashed-curved'){path.setAttribute('stroke-dasharray','5,5')}
61if(type=='curved-arrow'||'dashed-curved-arrow'){path.setAttribute('marker-end','url(#arrow'+lineid+')')}}
62if(type=='dashed'||type=='dashed-arrow'||type=='arrow'||type=='normal'){var path=document.createElementNS('http://www.w3.org/2000/svg','line');path.setAttribute('id',lineid);path.setAttribute('x1',m01x);path.setAttribute('y1',m01y);path.setAttribute('x2',m02x);path.setAttribute('y2',m02y);path.setAttribute('stroke',color);path.setAttribute('stroke-width',strokew);if(type=='dashed'||type=='dashed-arrow'){path.setAttribute('stroke-dasharray','5,5')}
63if(type=='arrow'||type=='dashed-arrow'){path.setAttribute('marker-end','url(#arrow'+lineid+')')}}
64var currpath=jQuery('#map_canvas_'+mapid+' line#'+lineid);if(currpath.length==0){if(mode=='circle'){jQuery('#map_canvas_'+mapid+' svg circle').first().parent().before(path)}
65if(mode='text'){jQuery('#map_canvas_'+mapid+' svg text').first().parent().before(path)}}}}}}
66function iwm_zoom(id,position,overlay){var overlay=overlay||!1;var thisMap=jQuery('#map_canvas_'+id);var container;if(overlay&&overlay!=id){jQuery('#iwm_map_overlay .iwm_map_canvas').wrapAll('<div style="overflow:hidden;" id="iwm_pan_wrapper_'+id+'" />').wrapAll('<div id="iwm_pan_container_'+id+'" />');container=jQuery('#iwm_pan_container_'+id);container.wrap('<div id="iwm_control_'+id+'" />');jQuery('#iwm_control_'+id).prepend('<div data-step="0" id="iwm-control
66s-'+id+'" class="iwm-controls iwm-controls-'+position+'"></div>');container.panzoom({disableZoom:!1,contain:'invert',cursor:"default",});container.mousedown(function(){jQuery(this).css('cursor','move')});container.mouseup(function(){jQuery(this).css('cursor','pointer')})}
67if(!overlay){thisMap.parent().prepend('<div data-step="0" id="iwm-controls-'+id+'" class="iwm-controls iwm-controls-'+position+'"></div>');thisMap.panzoom({disableZoom:!0,contain:'invert',cursor:"default",});thisMap.mousedown(function(){jQuery(this).css('cursor','move')});thisMap.mouseup(function(){jQuery(this).css('cursor','pointer')})}
68if(id!=overlay){jQuery('#iwm-controls-'+id).append(function(){return jQuery('<div class="iwm-controls-zoom-in">+</div>').click(function(){controlparent=jQuery(this).parent();cur_click=parseInt(controlparent.attr('data-step'));map=thisMap;if(parseInt(map.width())<=6000){controlparent.attr('data-step',cur_click+1);var step=(parseInt(map.width())*0.3);var newh=(parseInt(map.height())/parseInt(map.width()))*(parseInt(map.width())+step);var neww=parseInt(map.width())+step;var extrah=parseInt(newh)-parseInt(map.height());var extraw=parseInt(neww)-parseInt(map.width());if(!overlay){var transform=map.css('transform');var matrix=transform.replace(/[^0-9\-.,]/g,'').split(',');if(matrix[5]==null){matrix[5]=0;matrix[4]=0}
69var ctop=parseInt(matrix[5]);var cleft=parseInt(matrix[4]);var newtop=ctop-(extrah/2);var newleft=cleft-(extraw/2);map.height(newh).width(neww);map.attr('data-iwm-zwidth',neww).attr('data-iwm-zheight',newh);map.css('transform','matrix(1, 0, 0, 1,'+newleft+','+newtop+')');iwmoptions[id].width=neww;iwmoptions[id].height=newh;iwmgeocharts[id].draw(iwmdata[id],iwmoptions[id]);thisMap.panzoom('resetDimensions')}
70if(overlay){var transform=container.css('transform');var matrix=transform.replace(/[^0-9\-.,]/g,'').split(',');if(matrix[5]==null){matrix[5]=0;matrix[4]=0}
71var ctop=parseInt(matrix[5]);var cleft=parseInt(matrix[4]);var newtop=ctop-(extrah/2);var newleft=cleft-(extraw/2);container.height(newh).width(neww);container.css('transform','matrix(1, 0, 0, 1,'+newleft+','+newtop+')');iwmoptions[id].width=neww;iwmoptions[id].height=newh;iwmgeocharts[id].draw(iwmdata[id],iwmoptions[id]);iwmoptions[overlay].width=neww;iwmoptions[overlay].height=newh;iwmgeocharts[overlay].draw(iwmdata[overlay],iwmoptions[overlay]);container.panzoom('resetDimensions')}}else{}})}
71).append(function(){return jQuery('<div class="iwm-controls-zoom-out">-</div>').click(function(){controlparent=jQuery(this).parent();cur_click=parseInt(controlparent.attr('data-step'));if(cur_click>0){map=thisMap;var prevw=(10*parseInt(map.width()))/13;var step=parseInt(map.width())-prevw;var neww=prevw;if(!overlay){var parentw=parseInt(map.parent().width());var parenth=parseInt(map.parent().height())}
72if(overlay){var parentw=parseInt(container.parent().width());var parenth=parseInt(container.parent().height())}
73if(parentw<=neww){newh=(parseInt(map.height())/parseInt(map.width()))*(parseInt(map.width())-step);var extrah=parseInt(map.height())-parseInt(newh);var extraw=parseInt(map.width())-parseInt(neww);if(overlay){var transform=container.css('transform')}
74if(!overlay){var transform=map.css('transform')}
75var matrix=transform.replace(/[^0-9\-.,]/g,'').split(',');var ctop=parseInt(matrix[5]);var cleft=parseInt(matrix[4]);var newtop=ctop+(extrah/2);var newleft=cleft+(extraw/2);if(newleft>0){newleft=0}
76if(newtop>0){newtop=0}
77var maxh=newh-parenth;var maxh=maxh-(maxh)*2;if(newtop<maxh){newtop=maxh}
78var maxw=neww-parentw;var maxw=maxw-(maxw)*2;if(newleft<maxw){newleft=maxw}
79if(!overlay){map.height(newh);map.width(neww);map.attr('data-iwm-zwidth',neww).attr('data-iwm-zheight',newh);map.css('transform','matrix(1, 0, 0, 1,'+newleft+','+newtop+')');iwmoptions[id].width=neww;iwmoptions[id].height=newh;iwmgeocharts[id].draw(iwmdata[id],iwmoptions[id]);thisMap.panzoom('resetDimensions');controlparent.attr('data-step',cur_click-1)}
80if(overlay){container.height(newh);container.width(neww);container.attr('data-iwm-zwidth',neww).attr('data-iwm-zheight',newh);container.css('transform','matrix(1, 0, 0, 1,'+newleft+','+newtop+')');iwmoptions[id].width=neww;iwmoptions[id].height=newh;iwmgeocharts[id].draw(iwmdata[id],iwmoptions[id]);iwmoptions[overlay].width=neww;iwmoptions[overlay].height=newh;iwmgeocharts[overlay].draw(iwmdata[overlay],iwmoptions[overlay]);container.panzoom('resetDimensions');controlparent.attr('data-step',cur_click-1)}}}})})}}
81function iwm_sortNumber(a,b){return a-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.