HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprm/wp-content/themes/ronneby/assets/js/gmap3.min.js
/*!
 *  GMAP3 Plugin for jQuery
 *  Version   : 6.0.0
 *  Date      : 2014-04-25
 *  Author    : DEMONTE Jean-Baptiste
 *  Contact   : jbdemonte@gmail.com
 *  Web site  : http://gmap3.net
 *  Licence   : GPL v3 : http://www.gnu.org/licenses/gpl.html
 *  
 *  Copyright (c) 2010-2014 Jean-Baptiste DEMONTE
 *  All rights reserved.
 */
!function(U,m){function l(t){return"object"==typeof t}function d(t){return"string"==typeof t}function o(t){return"number"==typeof t}function y(t){return t===m}function w(t,n){return y(t)?"gmap3_"+(n?e+1:++e):t}function L(a,t,s,n,r){function e(t,i){t&&U.each(t,function(t,n){var e=a,o=n;E(n)&&(e=n[0],o=n[1]),i(s,t,function(t){o.apply(e,[r||s,t,u])})})}var o=t.td||{},u={id:n,data:o.data,tag:o.tag};e(o.events,q.event.addListener),e(o.onces,q.event.addListenerOnce)}function u(t){var n,e=[];for(n in t)t.hasOwnProperty(n)&&e.push(n);return e}function s(t,n){var e,o=arguments;for(e=2;e<o.length;e++)if(n in o[e]&&o[e].hasOwnProperty(n))return void(t[n]=o[e][n])}function b(t,n){var e,o,i=["data","tag","id","events","onces"],a={};if(t.td)for(e in t.td)t.td.hasOwnProperty(e)&&"options"!==e&&"values"!==e&&(a[e]=t.td[e]);for(o=0;o<i.length;o++)s(a,i[o],n,t.td);return a.options=U.extend({},t.opts||{},n.options||{}),a}function x(){if(A.verbose){var t,n=[];if(window.console&&Z(console.error)){for(t=0;t<arguments.length;t++)n.push(arguments[t]);console.error.apply(console,n)}else{for(n="",t=0;t<arguments.length;t++)n+=arguments[t].toString()+" ";alert(n)}}}function i(t){return(o(t)||d(t))&&""!==t&&!isNaN(t)}function M(t){var n,e=[];if(!y(t))if(l(t))if(o(t.length))e=t;else for(n in t)e.push(t[n]);else e.push(t);return e}function p(e){return e?Z(e)?e:(e=M(e),function(t){var n;if(y(t))return!1;if(l(t)){for(n=0;n<t.length;n++)if(0<=U.inArray(t[n],e))return!0;return!1}return 0<=U.inArray(t,e)}):void 0}function I(t,n,e){var o=n?t:null;return!t||d(t)?o:t.latLng?I(t.latLng):t instanceof q.LatLng?t:i(t.lat)?new q.LatLng(t.lat,t.lng):!e&&E(t)&&i(t[0])&&i(t[1])?new q.LatLng(t[0],t[1]):o}function P(t){var n,e;return!t||t instanceof q.LatLngBounds?t||null:(E(t)?2===t.length?(n=I(t[0]),e=I(t[1])):4===t.length&&(n=I([t[0],t[1]]),e=I([t[2],t[3]])):"ne"in t&&"sw"in t?(n=I(t.ne),e=I(t.sw)):"n"in t&&"e"in t&&"s"in t&&"w"in t&&(n=I([t.n,t.e]),e=I([t.s,t.w])),n&&e?new q.LatLngBounds(e,n):null)}function c(e,o,i,a,s){var t=!!i&&I(a.td,!1,!0),r=t?{latLng:t}:!!a.td.address&&(d(a.td.address)?{address:a.td.address}:a.td.address),n=!!r&&h.get(r),u=this;r?(s=s||0,n?(a.latLng=n.results[0].geometry.location,a.results=n.results,a.status=n.status,o.apply(e,[a])):(r.location&&(r.location=I(r.location)),r.bounds&&(r.bounds=P(r.bounds)),(S.geocoder||(S.geocoder=new q.Geocoder),S.geocoder).geocode(r,function(t,n){n===q.GeocoderStatus.OK?(h.store(r,{results:t,status:n}),a.latLng=t[0].geometry.location,a.results=t,a.status=n,o.apply(e,[a])):n===q.GeocoderStatus.OVER_QUERY_LIMIT&&s<A.queryLimit.attempt?setTimeout(function(){c.apply(u,[e,o,i,a,s+1])},A.queryLimit.delay+Math.floor(Math.random()*A.queryLimit.random)):(x("geocode failed",n,r),a.latLng=a.results=!1,a.status=n,o.apply(e,[a]))}))):(a.latLng=I(a.td,!1,!0),o.apply(e,[a]))}function f(e,t,o,i){var a=this,s=-1;!function n(){for(;++s<e.length&&!("address"in e[s]););return s>=e.length?void o.apply(t,[i]):void c(a,function(t){delete t.td,U.extend(e[s],t),n.apply(a,[])},!0,{td:e[s]})}()}function g(n,e,o){var i=!1;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){i||(i=!0,o.latLng=new q.LatLng(t.coords.latitude,t.coords.longitude),e.apply(n,[o]))},function(){i||(i=!0,o.latLng=!1,e.apply(n,[o]))},o.opts.getCurrentPosition):(o.latLng=!1,e.apply(n,[o]))}function t(){var n=[];this.empty=function(){return!n.length},this.add=function(t){n.push(t)},this.get=function(){return!!n.length&&n[0]},this.ack=function(){n.shift()}}function r(){function r(t){return{id:t.id,name:t.name,object:t.obj,tag:t.tag,data:t.data}}function i(t){Z(t.setMap)&&t.setMap(null),Z(t.remove)&&t.remove(),Z(t.free)&&t.free(),t=null}var u={},l={},d=this;d.add=function(t,n,e,o){var i=t.td||{},a=w(i.id);return u[n]||(u[n]=[]),a in l&&d.clearById(a),l[a]={obj:e,sub:o,name:n,id:a,tag:i.tag,data:i.data},u[n].push(a),a},d.getById=function(t,n,e){var o=!1;return t in l&&(o=n?l[t].sub:e?r(l[t]):l[t].obj),o},d.get=function(t,n,e,o){var i,a,s=p(e);if(!u[t]||!u[t].length)return null;for(i=u[t].length;i;)if(i--,(a=u[t][n?i:u[t].length-i-1])&&l[a]){if(s&&!s(l[a].tag))continue;return o?r(l[a]):l[a].obj}return null},d.all=function(t,n,o){var i=[],a=p(n),e=function(t){var n,e;for(n=0;n<u[t].length;n++)if((e=u[t][n])&&l[e]){if(a&&!a(l[e].tag))continue;i.push(o?r(l[e]):l[e].obj)}};if(t in u)e(t);else if(y(t))for(t in u)e(t);return i},d.rm=function(t,n,e){var o,i;if(!u[t])return!1;if(n)if(e)for(o=u[t].length-1;0<=o&&(i=u[t][o],!n(l[i].tag));o--);else for(o=0;o<u[t].length&&(i=u[t][o],!n(l[i].tag));o++);else o=e?u[t].length-1:0;return o in u[t]&&d.clearById(u[t][o],o)},d.clearById=function(t,n){if(t in l){var e,o=l[t].name;for(e=0;y(n)&&e<u[o].length;e++)t===u[o][e]&&(n=e);return i(l[t].obj),l[t].sub&&i(l[t].sub),delete l[t],u[o].splice(n,1),!0}return!1},d.objGetById=function(t){var n,e;if(u.clusterer)for(e in u.clusterer)if(!1!==(n=l[u.clusterer[e]].obj.getById(t)))return n;return!1},d.objClearById=function(t){var n;if(u.clusterer)for(n in u.clusterer)if(l[u.clusterer[n]].obj.clearById(t))return!0;return null},d.clear=function(t,n,e,o){var i,a,s,r=p(o);if(t&&t.length)t=M(t);else for(i in t=[],u)t.push(i);for(a=0;a<t.length;a++)if(s=t[a],n)d.rm(s,r,!0);else if(e)d.rm(s,r,!1);else for(;d.rm(s,r,!1););},d.objClear=function(t,n,e,o){var i;if(u.clusterer&&(0<=U.inArray("marker",t)||!t.length))for(i in u.clusterer)l[u.clusterer[i]].obj.clear(n,e,o)}}function k(e,o,i){function a(){var t;for(t in i)if(i.hasOwnProperty(t)&&!r.hasOwnProperty(t))return t}var s,t,r={},n=this,u={latLng:{map:!1,marker:!1,infowindow:!1,circle:!1,overlay:!1,getlatlng:!1,getmaxzoom:!1,getelevation:!1,streetviewpanorama:!1,getaddress:!0},geoloc:{getgeoloc:!0}};d(i)&&((t={})[i]={},i=t),n.run=function(){for(var t,n;t=a();){if(Z(e[t]))return s=t,n=U.extend(!0,{},A[t]||{},i[t].options||{}),void(t in u.latLng?i[t].values?f(i[t].values,e,e[t],{td:i[t],opts:n,session:r}):c(e,e[t],u.latLng[t],{td:i[t],opts:n,session:r}):t in u.geoloc?g(e,e[t],{td:i[t],opts:n,session:r}):e[t].apply(e,[{td:i[t],opts:n,session:r}]));r[t]=null}o.apply(e,[i,r])},n.ack=function(t){r[s]=t,n.run.apply(n,[])}}function B(){return S.es||(S.es=new q.ElevationService),S.es}function j(e,b,x){function n(t){r[t]||(delete _[t].options.map,r[t]=new A.classes.Marker(_[t].options),L(e,{td:_[t]},r[t],_[t].id))}function M(t){l(T[t])?(Z(T[t].obj.setMap)&&T[t].obj.setMap(null),Z(T[t].obj.remove)&&T[t].obj.remove(),Z(T[t].shadow.remove)&&T[t].obj.remove(),Z(T[t].shadow.setMap)&&T[t].shadow.setMap(null),delete T[t].obj,delete T[t].shadow):r[t]&&r[t].setMap(null),delete T[t]}function I(){var t=function(){var t,n,e,o,i,a,s,r,u=Math.cos,l=Math.sin,d=arguments;return d[0]instanceof q.LatLng?(t=d[0].lat(),e=d[0].lng(),d[1]instanceof q.LatLng?(n=d[1].lat(),o=d[1].lng()):(n=d[1],o=d[2])):(t=d[0],e=d[1],d[2]instanceof q.LatLng?(n=d[2].lat(),o=d[2].lng()):(n=d[2],o=d[3])),i=Math.PI*t/180,a=Math.PI*e/180,s=Math.PI*n/180,r=Math.PI*o/180,6371e3*Math.acos(Math.min(u(i)*u(s)*u(a)*u(r)+u(i)*l(a)*u(s)*l(r)+l(i)*l(s),1))}(b.getCenter(),b.getBounds().getNorthEast());return new q.Circle({center:b.getCenter(),radius:1.25*t}).getBounds()}function o(){clearTimeout(t),t=setTimeout(i,25)}function i(){if(!j&&!C&&E){var t,n,e,o,i,a,s,r,u,l,d,c=!1,p=[],f={},g=b.getZoom(),h="maxZoom"in x&&g>x.maxZoom,v=function(){var t,n={};for(t in T)n[t]=!0;return n}();for(O=!1,3<g&&(c=(i=I()).getSouthWest().lng()<i.getNorthEast().lng()),t=0;t<_.length;t++)!_[t]||c&&!i.contains(_[t].options.position)||k&&!k(D[t])||p.push(t);for(;;){for(t=0;f[t]&&t<p.length;)t++;if(t===p.length)break;if(o=[],S&&!h){d=10;do{for(r=o,o=[],d--,s=r.length?i.getCenter():_[p[t]].options.position,m=s,void 0,y=P.fromLatLngToDivPixel(m),w=P.fromDivPixelToLatLng(new q.Point(y.x+x.radius,y.y-x.radius)),L=P.fromDivPixelToLatLng(new q.Point(y.x-x.radius,y.y+x.radius)),i=new q.LatLngBounds(L,w),n=t;n<p.length;n++)f[n]||i.contains(_[p[n]].options.position)&&o.push(n)}while(r.length<o.length&&1<o.length&&d)}else for(n=t;n<p.length;n++)if(!f[n]){o.push(n);break}for(a={indexes:[],ref:[]},u=l=0,e=0;e<o.length;e++)f[o[e]]=!0,a.indexes.push(p[o[e]]),a.ref.push(p[o[e]]),u+=_[p[o[e]]].options.position.lat(),l+=_[p[o[e]]].options.position.lng();u/=o.length,l/=o.length,a.latLng=new q.LatLng(u,l),a.ref=a.ref.join("-"),a.ref in v?delete v[a.ref]:(1===o.length&&(T[a.ref]=!0),B(a))}U.each(v,function(t){M(t)}),C=!1}var m,y,w,L}var t,P,k,B,j=!1,O=!1,C=!1,E=!1,S=!0,d=this,a=[],T={},s={},c={},r=[],_=[],D=[],u=function(t){function n(){return this.onAdd=function(){},this.onRemove=function(){},this.draw=function(){},A.classes.OverlayView.apply(this,[])}n.prototype=A.classes.OverlayView.prototype;var e=new n;return e.setMap(t),e}(b,x.radius);(function t(){return(P=u.getProjection())?(E=!0,a.push(q.event.addListener(b,"zoom_changed",o)),a.push(q.event.addListener(b,"bounds_changed",o)),void i()):void setTimeout(function(){t.apply(d,[])},25)})(),d.getById=function(t){return t in s&&(n(s[t]),r[s[t]])},d.rm=function(t){var n=s[t];r[n]&&r[n].setMap(null),delete r[n],r[n]=!1,delete _[n],_[n]=!1,delete D[n],D[n]=!1,delete s[t],delete c[n],O=!0},d.clearById=function(t){return t in s?(d.rm(t),!0):void 0},d.clear=function(t,n,e){var o,i,a,s,r,u=[],l=p(e);for(t?(o=_.length-1,a=i=-1):(o=0,i=_.length,a=1),s=o;s!==i&&(!_[s]||l&&!l(_[s].tag)||(u.push(c[s]),!n&&!t));s+=a);for(r=0;r<u.length;r++)d.rm(u[r])},d.add=function(t,n){t.id=w(t.id),d.clearById(t.id),s[t.id]=r.length,c[r.length]=t.id,r.push(null),_.push(t),D.push(n),O=!0},d.addMarker=function(t,n){(n=n||{}).id=w(n.id),d.clearById(n.id),n.options||(n.options={}),n.options.position=t.getPosition(),L(e,{td:n},t,n.id),s[n.id]=r.length,c[r.length]=n.id,r.push(t),_.push(n),D.push(n.data||{}),O=!0},d.td=function(t){return _[t]},d.value=function(t){return D[t]},d.marker=function(t){return t in r&&(n(t),r[t])},d.markerIsSet=function(t){return Boolean(r[t])},d.setMarker=function(t,n){r[t]=n},d.store=function(t,n,e){T[t.ref]={obj:n,shadow:e}},d.free=function(){var t;for(t=0;t<a.length;t++)q.event.removeListener(a[t]);a=[],U.each(T,function(t){M(t)}),T={},U.each(_,function(t){_[t]=null}),_=[],U.each(r,function(t){r[t]&&(r[t].setMap(null),delete r[t])}),r=[],U.each(D,function(t){delete D[t]}),D=[],s={},c={}},d.filter=function(t){k=t,i()},d.enable=function(t){S!==t&&(S=t,i())},d.display=function(t){B=t},d.error=function(t){t},d.beginUpdate=function(){j=!0},d.endUpdate=function(){j=!1,O&&i()},d.autofit=function(t){var n;for(n=0;n<_.length;n++)_[n]&&t.extend(_[n].options.position)}}function O(t,i){var n=this;n.id=function(){return t},n.filter=function(t){i.filter(t)},n.enable=function(){i.enable(!0)},n.disable=function(){i.enable(!1)},n.add=function(t,n,e){e||i.beginUpdate(),i.addMarker(t,n),e||i.endUpdate()},n.getById=function(t){return i.getById(t)},n.clearById=function(t,n){var e;return n||i.beginUpdate(),e=i.clearById(t),n||i.endUpdate(),e},n.clear=function(t,n,e,o){o||i.beginUpdate(),i.clear(t,n,e),o||i.endUpdate()}}function C(t,n,e,o){var i=this,a=[];A.classes.OverlayView.call(i),i.setMap(t),i.onAdd=function(){var t=i.getPanes();n.pane in t&&U(t[n.pane]).append(o),U.each("dblclick click mouseover mousemove mouseout mouseup mousedown".split(" "),function(t,n){a.push(q.event.addDomListener(o[0],n,function(t){U.Event(t).stopPropagation(),q.event.trigger(i,n,[t]),i.draw()}))}),a.push(q.event.addDomListener(o[0],"contextmenu",function(t){U.Event(t).stopPropagation(),q.event.trigger(i,"rightclick",[t]),i.draw()}))},i.getPosition=function(){return e},i.setPosition=function(t){e=t,i.draw()},i.draw=function(){var t=i.getProjection().fromLatLngToDivPixel(e);o.css("left",t.x+n.offset.x+"px").css("top",t.y+n.offset.y+"px")},i.onRemove=function(){var t;for(t=0;t<a.length;t++)q.event.removeListener(a[t]);o.remove()},i.hide=function(){o.hide()},i.show=function(){o.show()},i.toggle=function(){o&&(o.is(":visible")?i.show():i.hide())},i.toggleDOM=function(){i.setMap(i.getMap()?null:t)},i.getDOMElement=function(){return o[0]}}function a(g){function e(){!a&&(a=s.get())&&a.run()}function o(){a=null,s.ack(),e.call(h)}function i(t){var n,e=t.td.callback;e&&(n=Array.prototype.slice.call(arguments,1),Z(e)?e.apply(g,n):E(e)&&Z(e[1])&&e[1].apply(e[0],n))}function c(t,n,e){e&&L(g,t,n,e),i(t,n),a.ack(n)}function p(t,n){var e=(n=n||{}).td&&n.td.options?n.td.options:0;v?e&&(e.center&&(e.center=I(e.center)),v.setOptions(e)):((e=n.opts||U.extend(!0,{},A.map,e||{})).center=t||I(e.center),v=new A.classes.Map(g.get(0),e))}function n(r,u,l){var d=[],t="values"in r.td;return t||(r.td.values=[{options:r.opts}]),r.td.values.length?(p(),U.each(r.td.values,function(t,n){var e,o,i,a,s=b(r,n);if(s.options[l])if(s.options[l][0][0]&&E(s.options[l][0][0]))for(o=0;o<s.options[l].length;o++)for(i=0;i<s.options[l][o].length;i++)s.options[l][o][i]=I(s.options[l][o][i]);else for(o=0;o<s.options[l].length;o++)s.options[l][o]=I(s.options[l][o]);s.options.map=v,a=new q[u](s.options),d.push(a),e=f.add({td:s},u.toLowerCase(),a),L(g,{td:s},a,e)}),void c(r,t?d:d[0])):void c(r,!1)}var a,h=this,s=new t,f=new r,v=null;h._plan=function(t){var n;for(n=0;n<t.length;n++)s.add(new k(h,o,t[n]));e()},h.map=function(t){p(t.latLng,t),L(g,t,v),c(t,v)},h.destroy=function(t){f.clear(),g.empty(),v&&(v=null),c(t,!0)},h.overlay=function(s,r){var u=[],t="values"in s.td;return t||(s.td.values=[{latLng:s.latLng,options:s.opts}]),s.td.values.length?(C.__initialised||(C.prototype=new A.classes.OverlayView,C.__initialised=!0),U.each(s.td.values,function(t,n){var e,o,i=b(s,n),a=U(document.createElement("div")).css({border:"none",borderWidth:0,position:"absolute"});a.append(i.options.content),o=new C(v,i.options,I(i)||I(n),a),u.push(o),a=null,r||(e=f.add(s,"overlay",o),L(g,{td:i},o,e))}),r?u[0]:void c(s,t?u:u[0])):void c(s,!1)},h.marker=function(a){var s,t,o,n="values"in a.td,r=!v;return n||(a.opts.position=a.latLng||I(a.opts.position),a.td.values=[{options:a.opts}]),a.td.values.length?(r&&p(),a.td.cluster&&!v.getBounds()?void q.event.addListenerOnce(v,"bounds_changed",function(){h.marker.apply(h,[a])}):void(a.td.cluster?(a.td.cluster instanceof O?(t=a.td.cluster,o=f.getById(t.id(),!0)):(o=function(u){var l,t,d=new j(g,v,u),c={},p={},f=[],n=/^[0-9]+$/;for(t in u)n.test(t)?(f.push(1*t),p[t]=u[t],p[t].width=p[t].width||0,p[t].height=p[t].height||0):c[t]=u[t];return f.sort(function(t,n){return n<t}),l=c.calculator?function(t){var e=[];return U.each(t,function(t,n){e.push(d.value(n))}),c.calculator.apply(g,[e])}:function(t){return t.length},d.error(function(){x.apply(h,arguments)}),d.display(function(t){var n,e,o,i,a,s,r=l(t.indexes);if(u.force||1<r)for(n=0;n<f.length;n++)f[n]<=r&&(e=p[f[n]]);e?(a=e.offset||[-e.width/2,-e.height/2],(o=U.extend({},c)).options=U.extend({pane:"overlayLayer",content:e.content?e.content.replace("CLUSTER_COUNT",r):"",offset:{x:("x"in a?a.x:a[0])||0,y:("y"in a?a.y:a[1])||0}},c.options||{}),i=h.overlay({td:o,opts:o.options,latLng:I(t)},!0),o.options.pane="floatShadow",o.options.content=U(document.createElement("div")).width(e.width+"px").height(e.height+"px").css({cursor:"pointer"}),s=h.overlay({td:o,opts:o.options,latLng:I(t)},!0),c.data={latLng:I(t),markers:[]},U.each(t.indexes,function(t,n){c.data.markers.push(d.value(n)),d.markerIsSet(n)&&d.marker(n).setMap(null)}),L(g,{td:c},s,m,{main:i,shadow:s}),d.store(t,i,s)):U.each(t.indexes,function(t,n){d.marker(n).setMap(v)})}),d}(a.td.cluster),t=new O(w(a.td.id,!0),o),f.add(a,"clusterer",t,o)),o.beginUpdate(),U.each(a.td.values,function(t,n){var e=b(a,n);e.options.position=I(e.options.position?e.options.position:n),e.options.position&&(e.options.map=v,r&&(v.setCenter(e.options.position),r=!1),o.add(e,n))}),o.endUpdate(),c(a,t)):(s=[],U.each(a.td.values,function(t,n){var e,o,i=b(a,n);i.options.position=I(i.options.position?i.options.position:n),i.options.position&&(i.options.map=v,r&&(v.setCenter(i.options.position),r=!1),o=new A.classes.Marker(i.options),s.push(o),e=f.add({td:i},"marker",o),L(g,{td:i},o,e))}),c(a,n?s:s[0])))):void c(a,!1)},h.getroute=function(e){e.opts.origin=I(e.opts.origin,!0),e.opts.destination=I(e.opts.destination,!0),(S.ds||(S.ds=new q.DirectionsService),S.ds).route(e.opts,function(t,n){i(e,n===q.DirectionsStatus.OK&&t,n),a.ack()})},h.getdistance=function(e){var t;for(e.opts.origins=M(e.opts.origins),t=0;t<e.opts.origins.length;t++)e.opts.origins[t]=I(e.opts.origins[t],!0);for(e.opts.destinations=M(e.opts.destinations),t=0;t<e.opts.destinations.length;t++)e.opts.destinations[t]=I(e.opts.destinations[t],!0);(S.dms||(S.dms=new q.DistanceMatrixService),S.dms).getDistanceMatrix(e.opts,function(t,n){i(e,n===q.DistanceMatrixStatus.OK&&t,n),a.ack()})},h.infowindow=function(a){var s=[],r="values"in a.td;r||(a.latLng&&(a.opts.position=a.latLng),a.td.values=[{options:a.opts}]),U.each(a.td.values,function(t,n){var e,o,i=b(a,n);i.options.position=I(i.options.position?i.options.position:n.latLng),v||p(i.options.position),(o=new A.classes.InfoWindow(i.options))&&(y(i.open)||i.open)&&(r?o.open(v,i.anchor||m):o.open(v,i.anchor||(a.latLng?m:a.session.marker?a.session.marker:m))),s.push(o),e=f.add({td:i},"infowindow",o),L(g,{td:i},o,e)}),c(a,r?s:s[0])},h.circle=function(a){var s=[],t="values"in a.td;return t||(a.opts.center=a.latLng||I(a.opts.center),a.td.values=[{options:a.opts}]),a.td.values.length?(U.each(a.td.values,function(t,n){var e,o,i=b(a,n);i.options.center=I(i.options.center?i.options.center:n),v||p(i.options.center),i.options.map=v,o=new A.classes.Circle(i.options),s.push(o),e=f.add({td:i},"circle",o),L(g,{td:i},o,e)}),void c(a,t?s:s[0])):void c(a,!1)},h.getaddress=function(t){i(t,t.results,t.status),a.ack()},h.getlatlng=function(t){i(t,t.results,t.status),a.ack()},h.getmaxzoom=function(n){(S.mzs||(S.mzs=new q.MaxZoomService),S.mzs).getMaxZoomAtLatLng(n.latLng,function(t){i(n,t.status===q.MaxZoomStatus.OK&&t.zoom,status),a.ack()})},h.getelevation=function(e){var t,n=[],o=function(t,n){i(e,n===q.ElevationStatus.OK&&t,n),a.ack()};if(e.latLng)n.push(e.latLng);else for(n=M(e.td.locations||[]),t=0;t<n.length;t++)n[t]=I(n[t]);if(n.length)B().getElevationForLocations({locations:n},o);else{if(e.td.path&&e.td.path.length)for(t=0;t<e.td.path.length;t++)n.push(I(e.td.path[t]));n.length?B().getElevationAlongPath({path:n,samples:e.td.samples},o):a.ack()}},h.defaults=function(t){U.each(t.td,function(t,n){A[t]=l(A[t])?U.extend({},A[t],n):n}),a.ack(!0)},h.rectangle=function(a){var s=[],t="values"in a.td;return t||(a.td.values=[{options:a.opts}]),a.td.values.length?(U.each(a.td.values,function(t,n){var e,o,i=b(a,n);i.options.bounds=P(i.options.bounds?i.options.bounds:n),v||p(i.options.bounds.getCenter()),i.options.map=v,o=new A.classes.Rectangle(i.options),s.push(o),e=f.add({td:i},"rectangle",o),L(g,{td:i},o,e)}),void c(a,t?s:s[0])):void c(a,!1)},h.polyline=function(t){n(t,"Polyline","path")},h.polygon=function(t){n(t,"Polygon","paths")},h.trafficlayer=function(t){p();var n=f.get("trafficlayer");n||((n=new A.classes.TrafficLayer).setMap(v),f.add(t,"trafficlayer",n)),c(t,n)},h.bicyclinglayer=function(t){p();var n=f.get("bicyclinglayer");n||((n=new A.classes.BicyclingLayer).setMap(v),f.add(t,"bicyclinglayer",n)),c(t,n)},h.groundoverlay=function(t){t.opts.bounds=P(t.opts.bounds),t.opts.bounds&&p(t.opts.bounds.getCenter());var n=new A.classes.GroundOverlay(t.opts.url,t.opts.bounds,t.opts.opts);n.setMap(v),c(t,n,f.add(t,"groundoverlay",n))},h.streetviewpanorama=function(t){t.opts.opts||(t.opts.opts={}),t.latLng?t.opts.opts.position=t.latLng:t.opts.opts.position&&(t.opts.opts.position=I(t.opts.opts.position)),t.td.divId?t.opts.container=document.getElementById(t.td.divId):t.opts.container&&(t.opts.container=U(t.opts.container).get(0));var n=new A.classes.StreetViewPanorama(t.opts.container,t.opts.opts);n&&v.setStreetView(n),c(t,n,f.add(t,"streetviewpanorama",n))},h.kmllayer=function(s){var r=[],t="values"in s.td;return t||(s.td.values=[{options:s.opts}]),s.td.values.length?(U.each(s.td.values,function(t,n){var e,o,i,a=b(s,n);v||p(),i=a.options,a.options.opts&&(i=a.options.opts,a.options.url&&(i.url=a.options.url)),i.map=v,o=function(t){var n,e=q.version.split(".");for(t=t.split("."),n=0;n<e.length;n++)e[n]=parseInt(e[n],10);for(n=0;n<t.length;n++){if(t[n]=parseInt(t[n],10),!e.hasOwnProperty(n))return!1;if(e[n]<t[n])return!1}return!0}("3.10")?new A.classes.KmlLayer(i):new A.classes.KmlLayer(i.url,i),r.push(o),e=f.add({td:a},"kmllayer",o),L(g,{td:a},o,e)}),void c(s,t?r:r[0])):void c(s,!1)},h.panel=function(t){p();var n,e=0,o=0,i=U(document.createElement("div"));i.css({position:"absolute",zIndex:1e3,visibility:"hidden"}),t.opts.content&&(n=U(t.opts.content),i.append(n),g.first().prepend(i),y(t.opts.left)?y(t.opts.right)?t.opts.center&&(e=(g.width()-n.width())/2):e=g.width()-n.width()-t.opts.right:e=t.opts.left,y(t.opts.top)?y(t.opts.bottom)?t.opts.middle&&(o=(g.height()-n.height())/2):o=g.height()-n.height()-t.opts.bottom:o=t.opts.top,i.css({top:o,left:e,visibility:"visible"})),c(t,i,f.add(t,"panel",i)),i=null},h.directionsrenderer=function(t){t.opts.map=v;var n=new q.DirectionsRenderer(t.opts);t.td.divId?n.setPanel(document.getElementById(t.td.divId)):t.td.container&&n.setPanel(U(t.td.container).get(0)),c(t,n,f.add(t,"directionsrenderer",n))},h.getgeoloc=function(t){c(t,t.latLng)},h.styledmaptype=function(t){p();var n=new A.classes.StyledMapType(t.td.styles,t.opts);v.mapTypes.set(t.td.id,n),c(t,n)},h.imagemaptype=function(t){p();var n=new A.classes.ImageMapType(t.opts);v.mapTypes.set(t.td.id,n),c(t,n)},h.autofit=function(t){var e=new q.LatLngBounds;U.each(f.all(),function(t,n){n.getPosition?e.extend(n.getPosition()):n.getBounds?(e.extend(n.getBounds().getNorthEast()),e.extend(n.getBounds().getSouthWest())):n.getPaths?n.getPaths().forEach(function(t){t.forEach(function(t){e.extend(t)})}):n.getPath?n.getPath().forEach(function(t){e.extend(t)}):n.getCenter?e.extend(n.getCenter()):n instanceof O&&((n=f.getById(n.id(),!0))&&n.autofit(e))}),e.isEmpty()||v.getBounds()&&v.getBounds().equals(e)||("maxZoom"in t.td&&q.event.addListenerOnce(v,"bounds_changed",function(){this.getZoom()>t.td.maxZoom&&this.setZoom(t.td.maxZoom)}),v.fitBounds(e)),c(t,!0)},h.clear=function(t){if(d(t.td)){if(f.clearById(t.td)||f.objClearById(t.td))return void c(t,!0);t.td={name:t.td}}t.td.id?U.each(M(t.td.id),function(t,n){f.clearById(n)||f.objClearById(n)}):(f.clear(M(t.td.name),t.td.last,t.td.first,t.td.tag),f.objClear(M(t.td.name),t.td.last,t.td.first,t.td.tag)),c(t,!0)},h.get=function(t,n,o){var e,i,a=n?t:t.td;return n||(o=a.full),d(a)?!1===(i=f.getById(a,!1,o)||f.objGetById(a))&&(e=a,a={}):e=a.name,"map"===e&&(i=v),i||(i=[],a.id?(U.each(M(a.id),function(t,n){i.push(f.getById(n,!1,o)||f.objGetById(n))}),E(a.id)||(i=i[0])):(U.each(e?M(e):[m],function(t,n){var e;a.first?(e=f.get(n,!1,a.tag,o))&&i.push(e):a.all?U.each(f.all(n,a.tag,o),function(t,n){i.push(n)}):(e=f.get(n,!0,a.tag,o))&&i.push(e)}),a.all||E(e)||(i=i[0]))),i=E(i)||!a.all?i:[i],n?i:void c(t,i)},h.exec=function(n){U.each(M(n.td.func),function(t,e){U.each(h.get(n.td,!0,!n.td.hasOwnProperty("full")||n.td.full),function(t,n){e.call(g,n)})}),c(n,!0)},h.trigger=function(t){if(d(t.td))q.event.trigger(v,t.td);else{var e=[v,t.td.eventName];t.td.var_args&&U.each(t.td.var_args,function(t,n){e.push(n)}),q.event.trigger.apply(q.event,e)}i(t),a.ack()}}var A,q,e=0,Z=U.isFunction,E=U.isArray,S={},h=new function(){var r=[];this.get=function(t){if(r.length){var n,e,o,i,a,s=u(t);for(n=0;n<r.length;n++){for(i=r[n],a=s.length===i.keys.length,e=0;e<s.length&&a;e++)(a=(o=s[e])in i.request)&&(a=l(t[o])&&"equals"in t[o]&&Z(t[o])?t[o].equals(i.request[o]):t[o]===i.request[o]);if(a)return i.results}}},this.store=function(t,n){r.push({request:t,keys:u(t),results:n})}};U.fn.gmap3=function(){var t,e=[],o=[];for(function(){var e;q=google.maps,A||(A={verbose:!1,queryLimit:{attempt:5,delay:250,random:250},classes:(e={},U.each("Map Marker InfoWindow Circle Rectangle OverlayView StreetViewPanorama KmlLayer TrafficLayer BicyclingLayer GroundOverlay StyledMapType ImageMapType".split(" "),function(t,n){e[n]=q[n]}),e),map:{mapTypeId:q.MapTypeId.ROADMAP,center:[46.578498,2.457275],zoom:2},overlay:{pane:"floatPane",content:"",offset:{x:0,y:0}},geoloc:{getCurrentPosition:{maximumAge:6e4,timeout:5e3}}})}(),t=0;t<arguments.length;t++)arguments[t]&&e.push(arguments[t]);return e.length||e.push("map"),U.each(this,function(){var t=U(this),n=t.data("gmap3");!1,n||(n=new a(t),t.data("gmap3",n)),1!==e.length||"get"!==e[0]&&!function(t){var n,e=!1;if(l(t)&&t.hasOwnProperty("get")){for(n in t)if("get"!==n)return!1;e=!t.get.hasOwnProperty("callback")}return e}(e[0])?n._plan(e):o.push("get"===e[0]?n.get("map",!0):n.get(e[0].get,!0,e[0].get.full))}),o.length?1===o.length?o[0]:o:this}}(jQuery);