OwlCyberSecurity - MANAGER
Edit File: directions.js
// JavaScript Document /** * Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * * Author: Thor Mitchell * * Changed by Mike Reumer to integrate it in plugin Googlemaps * Made it possible to place multiple animations on one page. * seperate css and made id unique */ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('f l(I,1e,m,V,1p,o,1q,t,g){c.1e=1e;c.I=I;c.m=m;c.V=V;c.V.o=c;c.o=o;c.o.o=c;c.1p=1p;c.u=r;c.E=r;c.1r=r;c.W=r;c.1s=r;c.O=r;c.K=r;c.2f=C;c.F=r;c.1P=r;c.P=r;c.1f=r;c.1t=r;c.2g=r;c.Q=r;c.S=r;c.1g=C;c.Z=r;c.2h=R;c.2i=C;c.2j=R;c.1Q=R;c.t=t||{};c.t.1R=t.1R||0;c.t.2k=t.2k||1;c.t.2D=t.2D||C;c.t.2E=t.2E||\'1u\';c.t.1v=t.1v||3m;c.t.1w=t.1w||C;c.g={};c.g.3n=g[0]||"4x 4y 4z 4A 2F 4B 4C";c.g.3o=g[1]||"4D 2F 4E a u L 4F 4G 1q 4H 2l 4I";c.g.3p=g[2]||"4J 4K 4L 4M 2F 4N L c u";c.g.2G=g[3]||"3q 4O 4P 2H X";c.g.1u=g[4]||\'1u\';c.g.1S=g[5]||\'1u\';c.g.3r=g[6]||\'4Q\';c.g.2I=g[7]||\'2I\';c.g.1x=g[8]||\'1x\';c.g.1T=g[9]||\'1T\';c.g.2J=g[10]||\'4R\';c.g.3s=g[11]||"3q 4S 4T 2H X";c.g.3t=g[12]||"4U";c.g.3u=g[13]||"3v";c.g.1U=g[14]||\'4V <b>3v</b> 1V 4W 2H u\';c.1h=c.3w(1q);c.1e.4X(c.1h);c.1h.4Y();1W.1X(c.V,"4Z",f(1y){c.o.K=1y;c.o.2m()});1W.1X(c.V,"3x",f(50){c.o.2n(c.o.g.3n)});1W.1X(c.o,"3y",f(){c.o.3z()});1W.1X(c.o,"3x",f(){c.o.2n(c.o.g.3o)})}l.k.3w=f(1q){/*@2K@*//*@e(@2L<5.7)v M 3A(1q);/*@2l@*/v M 3A(1q,c.3B(0.0))};l.k.2M=f(F){/*@2K@*//*@e(@2L<5.7)v;/*@2l@*/c.1h.51(c.2N(F))};l.k.52=f(){j 2o=p.s("2o"+c.m).1Y;j 1V=p.s("1V"+c.m).1Y;j 16=p.53("1Z"+c.m);j 1Z=r;L(j i=0;i<16.1i;i++){e(16[i].54){1Z=16[i].1Y;55}}c.2h=R;c.2j=R;e(1Z==\'w\'){c.t.1v=56}q{c.t.1v=3m}e(1Z==\'h\'){c.t.1w=R}q{c.t.1w=C}c.o.3y("2o: "+2o+" 1V: "+1V,{57:C,58:R,1v:c.t.1v,1w:c.t.1w})};l.k.3z=f(){e(c.t.1R!=0)c.1e.59(c.t.1R);c.20=M 1z(c.o.T());L(j i=0;i<=c.o.T();i++){c.20[i]=c.o.5a(i);c.20[i].o=c;c.20[i].3C=i;1W.1X(c.20[i],"5b",f(){c.o.1A(c.3C)})}c.3D(c.o.5c());c.21(0)};l.k.21=f(x){c.u=c.o.2p(x);c.17=x;c.3E();c.3F();c.2q(0)};l.k.2q=f(z){e(z>c.u.22()){c.3G();c.2O();e(c.1Q)c.18(c.2P);q c.18(c.1B);c.1Q=R}q{e(z==c.u.22()){2Q=c.u.5d()}q{2Q=c.u.U(z).5e()}c.1p.2R(2Q,f(1j){e(1j.1C==2r){1k(c.I+".2q("+z+")",23)}q e(1j.1C==2S){c.2n(c.g.3p)}q{c.2q(z+1)}}.1D(c))}};l.k.18=f(N){c.O=c.E[N];c.1f=c.E[N+1];c.P=N+1;c.F=c.25(N);c.1P=c.25(N+1);c.2M(c.F);c.1h.3H(c.O);c.1h.5f();c.Q=c.1s[N];c.3I(N);c.2T();c.1E(0);c.1e.2U(c.O,c.t.1R);c.2V(c.Q);c.2s();c.V.5g(c.O,{D:c.F,3J:0});c.1p.2R(c.O,f(1y){e(1y.1C==2r){1k(c.I+".18("+N+")",23)}q e(1y.1C==2S){c.18(c.P)}q{c.K=1y.5h;c.K.3K.D=c.F;e(c.2h){c.2h=C;c.2m()}e(c.2i){c.2i=C;c.2t()}}}.1D(c))};l.k.2m=f(){c.O=c.K.3L;c.1h.3H(c.O);c.1e.2U(c.O);c.1p.2R(c.K.3L,f(1j){e(1j.1C==2r){1k(c.I+".2m()",23)}q e(1j.1C==2S){c.18(c.P)}q{c.K.1l=1j.1l;e(c.t.2D&&c.2j){c.2j=C;1k(c.I+".2t()",2r)}c.2s();e(c.1g){c.Z=1k(c.I+".2W()",c.t.2k*23)}}}.1D(c))};l.k.2s=f(){c.2f=C;j d=c.O.5i(c.1f);j b=c.2X(c.O,c.1f);e(c.2u(c.F,b)>5j){c.2Y();e(c.1g){c.2s()}}q{c.1E(c.2g-d);e(c.1g){c.3M(c.2g-d)}e(d<10){c.2f=R}}};l.k.2W=f(){j 1F=c.2Z(c.F);e(c.2f&&c.1P){j 30=c.2Z(c.1P);e(30.26<15){1F=30;c.2Y()}}e(1F.26>40){c.18(c.P)}q{j 3N=c.2u(c.K.3K.D,c.K.1l[1F.N].D);c.V.2U({D:c.K.1l[1F.N].D,3J:0});1k(f(){c.V.5k(c.K.1l[1F.N].D)}.1D(c),3N*10)}};l.k.2Z=f(D){j 1G=M 5l();L(j i=0;i<c.K.1l.1i;i++){j d=c.2u(D,c.K.1l[i].D);e(1G.26==r||d<1G.26){1G.N=i;1G.26=d}}v 1G};l.k.2Y=f(){e((c.P+1)>=c.1B){c.3O()}q{c.P++;c.1f=c.E[c.P];c.F=c.25(c.P-1);c.1P=c.25(c.P);c.2M(c.F);e(c.1s[c.P-1]==c.Q){c.1t.2v(c.1f)}q{c.Q=c.1s[c.P-1];c.2V(c.Q);c.1t=[c.O,c.1f];c.1E(0)}c.2T()}};l.k.3O=f(){c.2O();c.1E(0);c.1H(c.g.2G);p.s("z"+c.S+"19"+c.m).1a=p.s("z"+c.S+"19"+c.m).1a.31(" 2w","");c.S=r;e((c.17+1)<=c.o.T()){c.2i=R;1k(c.I+".21("+(c.17+1)+")",5m)}q c.3P()};l.k.3P=f(){c.27();c.1E(0);c.1H(c.g.2G);p.s("z"+c.S+"19"+c.m).1a=p.s("z"+c.S+"19"+c.m).1a.31(" 2w","");c.S=r};l.k.25=f(n){j 1I=c.E[n];j X=c.E[n+1];e(X!=3Q){v c.2X(1I,X)}q{v r}};l.k.3M=f(3R){j 3S=c.u.U(c.Q).3T().1T;j A=(3S-3R);j G,H;e(c.t.2E==\'1u\'){A*=3.5n;e(A>5o){A/=5p;G=A.3U(0);H=c.g.1u}q e(A>5q){G=\'1\';H=c.g.1S}q e(A>5r){G=\'&3V;\';H=c.g.1S}q e(A>5s){G=\'&3W;\';H=c.g.1S}q e(A>5t){G=\'&3X;\';H=c.g.1S}q{G=(J.32(A/10))*10;H=c.g.3r}}q{e(A>5u){A/=23;G=A.3U(0);H=c.g.2I}q e(A>5v){G=\'1\';H=c.g.1x}q e(A>5w){G=\'&3V;\';H=c.g.1x}q e(A>5x){G=\'&3W;\';H=c.g.1x}q e(A>5y){G=\'&3X;\';H=c.g.1x}q{G=(J.32(A/10))*10;H=c.g.1T}}e(c.u.U(c.Q+1)!=3Q){c.1H(c.g.2J+\' \'+G+\' \'+H+\': \'+c.u.U(c.Q+1).3Y())}q{c.1H(c.g.2J+\' \'+G+\' \'+H+\': \'+c.g.3s)}};l.k.3I=f(3Z){c.1t=M 1z();j 5z=c.W[c.Q];L(j i=c.W[c.Q];i<=3Z+1;i++){c.1t.2v(c.E[i])}};l.k.2T=f(){j 41=M 5A(c.1t);c.2g=41.5B()};l.k.1E=f(Y){e(Y){Y=(Y<0?0:Y);j 42=c.u.U(c.Q).3T().1T;c.43(1-(Y/42))}};l.k.43=f(Y){e(Y){j 28=(p.s("5C"+c.m).5D*Y);e(28<0){28=0}p.s("5E"+c.m).1b.28=28+"5F"}};l.k.2u=f(a,b){j d=J.5G(c.33(a)-c.33(b));e(d>34){d=1J-d}v d};l.k.33=f(D){e(D>1J||D<1J){D=D%1J}v D};l.k.3B=f(F){j 29=M 5H();29.5I=c.2N(F);29.5J=M 5K(24,24);29.5L=M 5M(12,12);v 29};l.k.2N=f(F){j 1K=(3*J.32(F/3))%5N;v"44://45.46.47/48/5O"+1K+".2x"};l.k.3D=f(1L){c.E=M 1z();c.1r=M 1z(1L.49());c.E.2v(1L.35(0));c.1r[0]=0;L(j i=1;i<1L.49();i++){e(!1L.35(i).4a(c.E[c.E.1i-1])){c.E.2v(1L.35(i))}c.1r[i]=c.E.1i-1}};l.k.3E=f(){c.W=M 1z(c.u.22());c.1s=M 1z(c.E.1i);L(j i=0;i<c.u.22();i++){c.W[i]=c.1r[c.u.U(i).4b()]}c.2P=c.W[0];c.1B=c.W[c.W.1i-1];e(c.u.2y()!=c.u.U(c.2P))c.1B++;e(c.u.4c()!=c.u.U(c.1B))c.1B++;j z=0;L(j i=0;i<c.E.1i;i++){e(c.W[z+1]==i){z++}c.1s[i]=z}};l.k.3F=f(){j B="";j 1m="";j 36="";L(j i=0;i<c.17;i++){1m=c.o.2p(i).2y().1M;B+=\'<a 1n="\'+c.I+\'.1A(\'+i+\')">\';B+=c.2a(1m,2b.2c(65+i));B+=\'</a>\'}1m=c.u.2y().1M;B+=\'<a 1n="\'+c.I+\'.1A(\'+c.17+\')">\';B+=c.2a(1m,2b.2c(65+c.17));B+=\'</a>\';B+=c.2d("4d"+c.m,"4d",c.u.5P());L(j n=0;n<c.u.22();n++){B+=\'<a 1n="\'+c.I+\'.4e(\'+n+\')">\';B+=c.2d("z"+n+"19"+c.m,"5Q",c.u.U(n).3Y());B+=\'</a>\'}L(j i=(c.17+1);i<c.o.T();i++){1m=c.o.2p(i).2y().1M;B+=\'<a 1n="\'+c.I+\'.1A(\'+i+\')">\';B+=c.2a(1m,2b.2c(65+i));B+=\'</a>\'}e(c.17<c.o.T()){36=c.o.2p(c.o.T()-1).4c().1M;B+=\'<a 1n="\'+c.I+\'.1A(\'+(c.o.T())+\')">\';B+=c.2a(36,2b.2c(65+c.o.T()));B+=\'</a>\'}p.s("4f"+c.m).37=B;L(j i=0;i<c.o.T()+1;i++){c.4g(2b.2c(65+i))}};l.k.2a=f(1M,1c){j 2e=c.2d(\'1c\'+1c,\'5R\',"");2e+=\'<4h 4i="5S">\'+1M+\'</4h>\';v c.2d("5T"+1c,"5U",2e)};l.k.4g=f(1c){j 2x=\'44://45.46.47/5V/5W/48/5X\'+1c+\'.2x\';/*@2K@*//*@e(@2L<5.7)/*@2l@*/p.s(\'1c\'+1c).1b.5Y=\'5Z(\'+2x+\')\'};l.k.2d=f(1K,38,2e){j 1o="<1o";e(1K!=""){1o+=\' 1K="\'+1K+\'"\'}e(38!=""){1o+=\' 4i="\'+38+\'"\'}1o+=\'>\'+2e+\'</1o>\';v 1o};l.k.4e=f(i){j 4j=c.1r[c.u.U(i).4b()];c.27();c.18(4j)};l.k.1A=f(i){c.27();e(i<c.o.T()){c.1Q=R;c.21(i)}q{c.1Q=C;c.21(i-1)}};l.k.2V=f(i){e(c.S!=r){p.s("z"+c.S+"19"+c.m).1a=p.s("z"+c.S+"19"+c.m).1a.31(" 2w","")}16=p.s("z"+i+"19"+c.m);16.1a=16.1a+" 2w";c.4k(p.s("4f"+c.m),16);c.S=i};l.k.4k=f(39,3a){j 1d=39.4l()[0];e(1d==r)v;j 3b=1d.4m;j 3c=1d.4n;1d=3a.4l()[0];e(1d==r)v;j 3d=1d.4m;j 4o=1d.4n;e((3d==0)||(3d>3b&&4o<3c))v;39.60=3a.61-((3c-3b)/2)};l.k.2t=f(){c.3e();p.s("1N"+c.m).4p=C;p.s("1N"+c.m).1Y=c.g.3t;p.s("1N"+c.m).1n=f(){c.27()}.1D(c);c.1g=R;c.2W()};l.k.2O=f(){c.1g=C;e(c.Z!=r){4q(c.Z);c.Z=r}};l.k.27=f(){c.1g=C;e(c.Z!=r){4q(c.Z);c.Z=r}p.s("1N"+c.m).4p=C;p.s("1N"+c.m).1Y=c.g.3u;p.s("1N"+c.m).1n=f(){c.2t()}.1D(c);c.1H(c.g.1U)};l.k.62=f(){c.t.2k=p.s(\'63\'+c.m).64};l.k.2n=f(2z){c.3e();p.s("3f"+c.m).37=2z;p.s("3f"+c.m).1b.1O="3g";p.s("4r"+c.m).1b.1O="3h"};l.k.3G=f(){p.s("3f"+c.m).1b.1O="3h";p.s("4r"+c.m).1b.1O="3g"};l.k.1H=f(2z){p.s("1U"+c.m).37=2z;p.s("1U"+c.m).1b.1O="3g"};l.k.3e=f(){p.s("1U"+c.m).1b.1O="3h"};l.k.2X=f(1I,X){e(1I.4a(X)){v r}j 3i=1I.4s().2A();j 2B=X.4s().2A();j 3j=(X.4t()-1I.4t()).2A();j y=J.3k(3j)*J.2C(2B);j x=J.2C(3i)*J.3k(2B)-J.3k(3i)*J.2C(2B)*J.2C(3j);v J.66(y,x).4u()};3l.k.2A=f(){v c*J.4v/34};3l.k.4w=f(){v c*34/J.4v};3l.k.4u=f(){v(c.4w()+1J)%1J};',62,379,'||||||||||||this||if|function|lang|||var|prototype|Directionsobj|name||directions|document|else|null|getElementById|opts|route|return||||step|distanceFromEndOfStep|html|false|yaw|vertices|bearing|uiDistance|unit|myvar|Math|panoMetaData|for|new|idx|currentLatLng|nextVertexId|currentStep|true|selectedStep|getNumRoutes|getStep|pano|stepToVertex|destination|progress|advanceTimer|||||||obj|routeNum|jumpToVertex|_|className|style|letter|rects|map|nextVertex|driving|carMarker|length|svData|setTimeout|links|startAddress|onclick|div|svClient|start|vertexMap|stepMap|progressArray|miles|travelMode|avoidHighways|kilometer|loc|Array|selectRoute|endVertex|code|bind|updateProgressBar|selected|Selected|showInstruction|origin|360|id|path|address|stopgo|display|nextBearing|typeStartVertex|zoomlevel|mile|meters|instruction|to|GEvent|addListener|value|dirflg|markers|startRoute|getNumSteps|1000||getBearingFromVertex|delta|stopDriving|width|icon|getDirectionsWaypointHtml|String|fromCharCode|getDivHtml|content|close|progressDistance|firstmovecar|startdrive|firstpano|Speed|end|moveCar|showStatus|from|getRoute|checkCoverage|500|checkDistanceFromNextVertex|startDriving|getYawDelta|push|stepselected|png|getStartGeocode|message|toRad|lat2|cos|AutoStart|Unit|not|reacheddestination|your|kilometers|inword|cc_on|_jscript_version|setCarMarkerImage|getArrowUrl|stopDrivingRoute|startVertex|ll|getNearestPanorama|600|setProgressDistance|panTo|highlightStep|advance|getBearing|incrementVertex|selectLink|selectedTurn|replace|round|sanitiseYaw|180|getVertex|endAddress|innerHTML|cssClass|container|element|topFinal|bottomFinal|topActual|hideInstruction|status|block|none|lat1|dLon|sin|Number|G_TRAVEL_MODE_DRIVING|errorpanorama|errornoroute|errornostreetview|You|feet|reachdestination|stopbutton|drivebutton|Drive|getCarMarker|error|load|jumpInMyCar|GMarker|getArrowIcon|routeid|collapseVerticesTotal|collapseVerticesRoute|renderTextDirections|hideStatus|setLatLng|constructProgressArray|pitch|pov|latlng|updateViewerDirections|panAngle|endReachedVertex|endReached|undefined|distanceFromStartOfStep|lengthOfStep|getDistance|toFixed|frac34|frac12|frac14|getDescriptionHtml|vertexId||polyline|stepLength|setProgressBarLength|http|maps|google|com|mapfiles|getVertexCount|equals|getPolylineIndex|getEndGeocode|summary|selectStep|dirsidebar|setWaypointIcon|span|class|vertex|scrollIntoView|getClientRects|top|bottom|bottomActual|disabled|clearTimeout|svpanorama|lat|lng|toBrng|PI|toDeg|The|requested|panorama|could|be|displayed|Could|generate|the|current|and|addresses|Street|View|coverage|is|available|have|reached|ft|In|will|reach|Stop|Press|follow|addOverlay|hide|initialized|errorCode|setImage|generateRoute|getElementsByName|checked|break|G_TRAVEL_MODE_WALKING|preserveViewport|getSteps|setZoom|getMarker|click|getPolyline|getEndLatLng|getLatLng|show|setLocationAndPOV|location|distanceFrom|90|followLink|Object|2000|2808399|7920|5280|4620|3300|1980|660|1500|900|700|450|200|stepStart|GPolyline|getLength|progressBorder|offsetWidth|progressBar|px|abs|GIcon|image|iconSize|GSize|iconAnchor|GPoint|120|dir_|getSummaryHtml|dstep|letterIcon|waypointAddress|wayPoint|waypoint|intl|en_us|icon_green|backgroundImage|url|scrollTop|offsetTop|setSpeed|speed|selectedIndex||atan2'.split('|'),0,{}))