@googlemaps/js-api-loader
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -125,2 +125,7 @@ /** | ||
region?: string; | ||
/** | ||
* (Beta) You can add multiple Map IDs to your map using the map_ids paramenter in | ||
* your bootstrap request. | ||
*/ | ||
mapIds?: string[]; | ||
} | ||
@@ -167,2 +172,6 @@ /** | ||
region: string; | ||
/** | ||
* See [[LoaderOptions.mapIds]] | ||
*/ | ||
mapIds: string[]; | ||
private CALLBACK; | ||
@@ -183,3 +192,3 @@ private URL; | ||
*/ | ||
constructor({ apiKey, libraries, language, region, version, }: LoaderOptions); | ||
constructor({ apiKey, libraries, language, region, version, mapIds, }: LoaderOptions); | ||
/** | ||
@@ -186,0 +195,0 @@ * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]]. |
@@ -1719,3 +1719,4 @@ this.google = this.google || {}; | ||
region = _a.region, | ||
version = _a.version; | ||
version = _a.version, | ||
mapIds = _a.mapIds; | ||
this.CALLBACK = "__googleMapsCallback"; | ||
@@ -1731,2 +1732,3 @@ this.URL = "https://maps.googleapis.com/maps/api/js"; | ||
this.region = region; | ||
this.mapIds = mapIds; | ||
} | ||
@@ -1764,2 +1766,6 @@ /** | ||
if (this.mapIds) { | ||
url += "&map_ids=" + this.mapIds.join(","); | ||
} | ||
return url; | ||
@@ -1766,0 +1772,0 @@ }; |
@@ -46,3 +46,3 @@ /** | ||
function Loader(_a) { | ||
var apiKey = _a.apiKey, _b = _a.libraries, libraries = _b === void 0 ? [] : _b, language = _a.language, region = _a.region, version = _a.version; | ||
var apiKey = _a.apiKey, _b = _a.libraries, libraries = _b === void 0 ? [] : _b, language = _a.language, region = _a.region, version = _a.version, mapIds = _a.mapIds; | ||
this.CALLBACK = "__googleMapsCallback"; | ||
@@ -58,2 +58,3 @@ this.URL = "https://maps.googleapis.com/maps/api/js"; | ||
this.region = region; | ||
this.mapIds = mapIds; | ||
} | ||
@@ -83,2 +84,5 @@ /** | ||
} | ||
if (this.mapIds) { | ||
url += "&map_ids=" + this.mapIds.join(","); | ||
} | ||
return url; | ||
@@ -85,0 +89,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
this.google=this.google||{},this.google.maps=this.google.maps||{},this.google.maps.plugins=this.google.maps.plugins||{},this.google.maps.plugins.loader=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,v=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(d(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,S=function(t,e){return b.call(t,e)},w=o.document,j=g(w)&&g(w.createElement),E=function(t){return j?w.createElement(t):{}},L=!c&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:c?O:function(t,e){if(t=y(t),e=m(e,!0),L)try{return O(t,e)}catch(t){}if(S(t,e))return s(!f.f.call(t,e),t[e])}},k=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,C={f:c?P:function(t,e,n){if(k(t),e=m(e,!0),k(n),L)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},M=c?function(t,e,n){return C.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},x=function(t,e){try{M(o,t,e)}catch(n){o[t]=e}return e},A=o["__core-js_shared__"]||x("__core-js_shared__",{}),_=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return _.call(t)});var I,N,R,D,F=A.inspectSource,G=o.WeakMap,K="function"==typeof G&&/native code/.test(F(G)),V=n((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,z=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+z).toString(36)},B=V("keys"),q={},W=o.WeakMap;if(K){var Y=new W,J=Y.get,Q=Y.has,X=Y.set;I=function(t,e){return X.call(Y,t,e),e},N=function(t){return J.call(Y,t)||{}},R=function(t){return Q.call(Y,t)}}else{var Z=B[D="state"]||(B[D]=H(D));q[Z]=!0,I=function(t,e){return M(t,Z,e),e},N=function(t){return S(t,Z)?t[Z]:{}},R=function(t){return S(t,Z)}}var $={set:I,get:N,has:R,enforce:function(t){return R(t)?N(t):I(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},tt=n((function(t){var e=$.get,n=$.enforce,r=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||M(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:M(t,e,i)):u?t[e]=i:x(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),et=o,nt=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?nt(et[t])||nt(o[t]):et[t]&&et[t][e]||o[t]&&o[t][e]},ot=Math.ceil,it=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?it:ot)(t)},at=Math.min,ut=function(t){return t>0?at(ct(t),9007199254740991):0},ft=Math.max,st=Math.min,lt=function(t){return function(e,n,r){var o,i=y(e),c=ut(i.length),a=function(t,e){var n=ct(t);return n<0?ft(n+e,0):st(n,e)}(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:lt(!0),indexOf:lt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!S(q,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},dt={f:Object.getOwnPropertySymbols},yt=rt("Reflect","ownKeys")||function(t){var e=vt.f(k(t)),n=dt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=yt(e),r=C.f,o=T.f,i=0;i<n.length;i++){var c=n[i];S(t,c)||r(t,c,o(e,c))}},mt=/#|\.prototype\./,bt=function(t,e){var n=wt[St(t)];return n==Et||n!=jt&&("function"==typeof e?i(e):!!e)},St=bt.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},wt=bt.data={},jt=bt.NATIVE="N",Et=bt.POLYFILL="P",Lt=bt,Ot=T.f,Tt=function(t,e){var n,r,i,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[u]||x(u,{}):(o[u]||{}).prototype)for(r in e){if(c=e[r],i=t.noTargetGet?(a=Ot(n,r))&&a.value:n[r],!Lt(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;gt(c,i)}(t.sham||i&&i.sham)&&M(c,"sham",!0),tt(n,r,c,t)}},kt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pt=function(t,e,n){if(kt(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ct=Array.isArray||function(t){return"Array"==p(t)},Mt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),xt=Mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,At=V("wks"),_t=o.Symbol,It=xt?_t:_t&&_t.withoutSetter||H,Nt=function(t){return S(At,t)||(Mt&&S(_t,t)?At[t]=_t[t]:At[t]=It("Symbol."+t)),At[t]},Rt=Nt("species"),Dt=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[Rt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ft=[].push,Gt=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,s){for(var l,p,h=Object(d(a)),y=v(h),g=Pt(u,f,3),m=ut(y.length),b=0,S=s||Dt,w=e?S(a,m):n?S(a,0):void 0;m>b;b++)if((c||b in y)&&(p=g(l=y[b],b,h),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:Ft.call(w,l)}else if(o)return!1;return i?-1:r||o?o:w}},Kt={forEach:Gt(0),map:Gt(1),filter:Gt(2),some:Gt(3),every:Gt(4),find:Gt(5),findIndex:Gt(6)},Vt=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))},Ut=Object.defineProperty,zt={},Ht=function(t){throw t},Bt=Kt.forEach,qt=Vt("forEach"),Wt=function(t,e){if(S(zt,t))return zt[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:Ht,a=S(e,1)?e[1]:void 0;return zt[t]=!!n&&!i((function(){if(r&&!c)return!0;var t={length:-1};r?Ut(t,1,{enumerable:!0,get:Ht}):t[1]=1,n.call(t,o,a)}))}("forEach"),Yt=qt&&Wt?[].forEach:function(t){return Bt(this,t,arguments.length>1?arguments[1]:void 0)};Tt({target:"Array",proto:!0,forced:[].forEach!=Yt},{forEach:Yt});var Jt=[].join,Qt=v!=Object,Xt=Vt("join",",");Tt({target:"Array",proto:!0,forced:Qt||!Xt},{join:function(t){return Jt.call(y(this),void 0===t?",":t)}});var Zt={};Zt[Nt("toStringTag")]="z";var $t="[object z]"===String(Zt),te=Nt("toStringTag"),ee="Arguments"==p(function(){return arguments}()),ne=$t?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),te))?n:ee?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},re=$t?{}.toString:function(){return"[object "+ne(this)+"]"};$t||tt(Object.prototype,"toString",re,{unsafe:!0});var oe=o.Promise,ie=C.f,ce=Nt("toStringTag"),ae=Nt("species"),ue={},fe=Nt("iterator"),se=Array.prototype,le=Nt("iterator"),pe=function(t,e,n,r){try{return r?e(k(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&k(o.call(t)),e}},he=n((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,a,u,f,s,l,p,h,v=Pt(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[le]||t["@@iterator"]||ue[ne(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=a)&&(ue.Array===h||se[fe]===h)){for(u=0,f=ut(t.length);f>u;u++)if((s=o?v(k(p=t[u])[0],p[1]):v(t[u]))&&s instanceof e)return s;return new e(!1)}c=a.call(t)}for(l=c.next;!(p=l.call(c)).done;)if("object"==typeof(s=pe(c,v,p.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}})),ve=Nt("iterator"),de=!1;try{var ye=0,ge={next:function(){return{done:!!ye++}},return:function(){de=!0}};ge[ve]=function(){return this},Array.from(ge,(function(){throw 2}))}catch(t){}var me,be,Se,we=Nt("species"),je=rt("document","documentElement"),Ee=rt("navigator","userAgent")||"",Le=/(iphone|ipod|ipad).*applewebkit/i.test(Ee),Oe=o.location,Te=o.setImmediate,ke=o.clearImmediate,Pe=o.process,Ce=o.MessageChannel,Me=o.Dispatch,xe=0,Ae={},_e=function(t){if(Ae.hasOwnProperty(t)){var e=Ae[t];delete Ae[t],e()}},Ie=function(t){return function(){_e(t)}},Ne=function(t){_e(t.data)},Re=function(t){o.postMessage(t+"",Oe.protocol+"//"+Oe.host)};Te&&ke||(Te=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Ae[++xe]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},me(xe),xe},ke=function(t){delete Ae[t]},"process"==p(Pe)?me=function(t){Pe.nextTick(Ie(t))}:Me&&Me.now?me=function(t){Me.now(Ie(t))}:Ce&&!Le?(Se=(be=new Ce).port2,be.port1.onmessage=Ne,me=Pt(Se.postMessage,Se,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(Re)?me="onreadystatechange"in E("script")?function(t){je.appendChild(E("script")).onreadystatechange=function(){je.removeChild(this),_e(t)}}:function(t){setTimeout(Ie(t),0)}:(me=Re,o.addEventListener("message",Ne,!1)));var De,Fe,Ge,Ke,Ve,Ue,ze,He,Be={set:Te,clear:ke},qe=T.f,We=Be.set,Ye=o.MutationObserver||o.WebKitMutationObserver,Je=o.process,Qe=o.Promise,Xe="process"==p(Je),Ze=qe(o,"queueMicrotask"),$e=Ze&&Ze.value;$e||(De=function(){var t,e;for(Xe&&(t=Je.domain)&&t.exit();Fe;){e=Fe.fn,Fe=Fe.next;try{e()}catch(t){throw Fe?Ke():Ge=void 0,t}}Ge=void 0,t&&t.enter()},Xe?Ke=function(){Je.nextTick(De)}:Ye&&!Le?(Ve=!0,Ue=document.createTextNode(""),new Ye(De).observe(Ue,{characterData:!0}),Ke=function(){Ue.data=Ve=!Ve}):Qe&&Qe.resolve?(ze=Qe.resolve(void 0),He=ze.then,Ke=function(){He.call(ze,De)}):Ke=function(){We.call(o,De)});var tn,en,nn=$e||function(t){var e={fn:t,next:void 0};Ge&&(Ge.next=e),Fe||(Fe=e,Ke()),Ge=e},rn=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=kt(e),this.reject=kt(n)},on={f:function(t){return new rn(t)}},cn=function(t,e){if(k(t),g(e)&&e.constructor===t)return e;var n=on.f(t);return(0,n.resolve)(e),n.promise},an=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},un=o.process,fn=un&&un.versions,sn=fn&&fn.v8;sn?en=(tn=sn.split("."))[0]+tn[1]:Ee&&(!(tn=Ee.match(/Edge\/(\d+)/))||tn[1]>=74)&&(tn=Ee.match(/Chrome\/(\d+)/))&&(en=tn[1]);var ln,pn,hn,vn,dn,yn,gn,mn=en&&+en,bn=Be.set,Sn=Nt("species"),wn="Promise",jn=$.get,En=$.set,Ln=$.getterFor(wn),On=oe,Tn=o.TypeError,kn=o.document,Pn=o.process,Cn=rt("fetch"),Mn=on.f,xn=Mn,An="process"==p(Pn),_n=!!(kn&&kn.createEvent&&o.dispatchEvent),In=Lt(wn,(function(){if(!(F(On)!==String(On))){if(66===mn)return!0;if(!An&&"function"!=typeof PromiseRejectionEvent)return!0}if(mn>=51&&/native code/.test(On))return!1;var t=On.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Sn]=e,!(t.then((function(){}))instanceof e)})),Nn=In||!function(t,e){if(!e&&!de)return!1;var n=!1;try{var r={};r[ve]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){On.all(t).catch((function(){}))})),Rn=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Dn=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;nn((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,v=s.domain;try{l?(i||(2===e.rejection&&Vn(t,e),e.rejection=1),!0===l?a=o:(v&&v.enter(),a=l(o),v&&(v.exit(),f=!0)),a===s.promise?h(Tn("Promise-chain cycle")):(u=Rn(a))?u.call(a,p,h):p(a)):h(o)}catch(t){v&&!f&&v.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Gn(t,e)}))}},Fn=function(t,e,n){var r,i;_n?((r=kn.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),o.dispatchEvent(r)):r={promise:e,reason:n},(i=o["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Gn=function(t,e){bn.call(o,(function(){var n,r=e.value;if(Kn(e)&&(n=an((function(){An?Pn.emit("unhandledRejection",r,t):Fn("unhandledrejection",t,r)})),e.rejection=An||Kn(e)?2:1,n.error))throw n.value}))},Kn=function(t){return 1!==t.rejection&&!t.parent},Vn=function(t,e){bn.call(o,(function(){An?Pn.emit("rejectionHandled",t):Fn("rejectionhandled",t,e.value)}))},Un=function(t,e,n,r){return function(o){t(e,n,o,r)}},zn=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Dn(t,e,!0))},Hn=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Tn("Promise can't be resolved itself");var o=Rn(n);o?nn((function(){var r={done:!1};try{o.call(n,Un(Hn,t,r,e),Un(zn,t,r,e))}catch(n){zn(t,r,n,e)}})):(e.value=n,e.state=1,Dn(t,e,!1))}catch(n){zn(t,{done:!1},n,e)}}};In&&(On=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,On,wn),kt(t),ln.call(this);var e=jn(this);try{t(Un(Hn,this,e),Un(zn,this,e))}catch(t){zn(this,e,t)}},(ln=function(t){En(this,{type:wn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)tt(t,r,e[r],n);return t}(On.prototype,{then:function(t,e){var n,r,o,i=Ln(this),c=Mn((n=On,void 0===(o=k(this).constructor)||null==(r=k(o)[we])?n:kt(r)));return c.ok="function"!=typeof t||t,c.fail="function"==typeof e&&e,c.domain=An?Pn.domain:void 0,i.parent=!0,i.reactions.push(c),0!=i.state&&Dn(this,i,!1),c.promise},catch:function(t){return this.then(void 0,t)}}),pn=function(){var t=new ln,e=jn(t);this.promise=t,this.resolve=Un(Hn,t,e),this.reject=Un(zn,t,e)},on.f=Mn=function(t){return t===On||t===hn?new pn(t):xn(t)},"function"==typeof oe&&(vn=oe.prototype.then,tt(oe.prototype,"then",(function(t,e){var n=this;return new On((function(t,e){vn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Cn&&Tt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return cn(On,Cn.apply(o,arguments))}}))),Tt({global:!0,wrap:!0,forced:In},{Promise:On}),yn=wn,gn=!1,(dn=On)&&!S(dn=gn?dn:dn.prototype,ce)&&ie(dn,ce,{configurable:!0,value:yn}),function(t){var e=rt(t),n=C.f;c&&e&&!e[ae]&&n(e,ae,{configurable:!0,get:function(){return this}})}(wn),hn=rt(wn),Tt({target:wn,stat:!0,forced:In},{reject:function(t){var e=Mn(this);return e.reject.call(void 0,t),e.promise}}),Tt({target:wn,stat:!0,forced:In},{resolve:function(t){return cn(this,t)}}),Tt({target:wn,stat:!0,forced:Nn},{all:function(t){var e=this,n=Mn(e),r=n.resolve,o=n.reject,i=an((function(){var n=kt(e.resolve),i=[],c=0,a=1;he(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Mn(e),r=n.reject,o=an((function(){var o=kt(e.resolve);he(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});for(var Bn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qn=o[Bn],Wn=qn&&qn.prototype;if(Wn&&Wn.forEach!==Yt)try{M(Wn,"forEach",Yt)}catch(t){Wn.forEach=Yt}}var Yn=function(){function t(t){var e=t.apiKey,n=t.libraries,r=void 0===n?[]:n,o=t.language,i=t.region,c=t.version;this.CALLBACK="__googleMapsCallback",this.URL="https://maps.googleapis.com/maps/api/js",this.callbacks=[],this.done=!1,this.loading=!1,this.version=c,this.apiKey=e,this.libraries=r,this.language=o,this.region=i}return t.prototype.createUrl=function(){var t=this.URL;return t+="?callback="+this.CALLBACK,this.apiKey&&(t+="&key="+this.apiKey),this.libraries.length>0&&(t+="&libraries="+this.libraries.join(",")),this.language&&(t+="&language="+this.language),this.region&&(t+="®ion="+this.region),this.version&&(t+="&v="+this.version),t},t.prototype.load=function(){return this.loadPromise()},t.prototype.loadPromise=function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t):e()}))}))},t.prototype.loadCallback=function(t){this.callbacks.push(t),this.execute()},t.prototype.setScript=function(){var t=this.createUrl(),e=document.createElement("script");e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,document.head.appendChild(e)},t.prototype.loadErrorCallback=function(t){this.onerrorEvent=t,this.callback()},t.prototype.setCallback=function(){window.__googleMapsCallback=this.callback.bind(this)},t.prototype.callback=function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]},t.prototype.execute=function(){this.done?this.callback():this.loading||(this.loading=!0,this.setCallback(),this.setScript())},t}();return t.Loader=Yn,t}({}); | ||
this.google=this.google||{},this.google.maps=this.google.maps||{},this.google.maps.plugins=this.google.maps.plugins||{},this.google.maps.plugins.loader=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,v=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(d(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,S=function(t,e){return b.call(t,e)},w=o.document,j=g(w)&&g(w.createElement),E=function(t){return j?w.createElement(t):{}},L=!c&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:c?O:function(t,e){if(t=y(t),e=m(e,!0),L)try{return O(t,e)}catch(t){}if(S(t,e))return s(!f.f.call(t,e),t[e])}},k=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,C={f:c?P:function(t,e,n){if(k(t),e=m(e,!0),k(n),L)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},M=c?function(t,e,n){return C.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},x=function(t,e){try{M(o,t,e)}catch(n){o[t]=e}return e},A=o["__core-js_shared__"]||x("__core-js_shared__",{}),_=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return _.call(t)});var I,N,R,D,F=A.inspectSource,G=o.WeakMap,K="function"==typeof G&&/native code/.test(F(G)),V=n((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,z=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+z).toString(36)},B=V("keys"),q={},W=o.WeakMap;if(K){var Y=new W,J=Y.get,Q=Y.has,X=Y.set;I=function(t,e){return X.call(Y,t,e),e},N=function(t){return J.call(Y,t)||{}},R=function(t){return Q.call(Y,t)}}else{var Z=B[D="state"]||(B[D]=H(D));q[Z]=!0,I=function(t,e){return M(t,Z,e),e},N=function(t){return S(t,Z)?t[Z]:{}},R=function(t){return S(t,Z)}}var $={set:I,get:N,has:R,enforce:function(t){return R(t)?N(t):I(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},tt=n((function(t){var e=$.get,n=$.enforce,r=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||M(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:M(t,e,i)):u?t[e]=i:x(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),et=o,nt=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?nt(et[t])||nt(o[t]):et[t]&&et[t][e]||o[t]&&o[t][e]},ot=Math.ceil,it=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?it:ot)(t)},at=Math.min,ut=function(t){return t>0?at(ct(t),9007199254740991):0},ft=Math.max,st=Math.min,lt=function(t){return function(e,n,r){var o,i=y(e),c=ut(i.length),a=function(t,e){var n=ct(t);return n<0?ft(n+e,0):st(n,e)}(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:lt(!0),indexOf:lt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!S(q,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},dt={f:Object.getOwnPropertySymbols},yt=rt("Reflect","ownKeys")||function(t){var e=vt.f(k(t)),n=dt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=yt(e),r=C.f,o=T.f,i=0;i<n.length;i++){var c=n[i];S(t,c)||r(t,c,o(e,c))}},mt=/#|\.prototype\./,bt=function(t,e){var n=wt[St(t)];return n==Et||n!=jt&&("function"==typeof e?i(e):!!e)},St=bt.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},wt=bt.data={},jt=bt.NATIVE="N",Et=bt.POLYFILL="P",Lt=bt,Ot=T.f,Tt=function(t,e){var n,r,i,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[u]||x(u,{}):(o[u]||{}).prototype)for(r in e){if(c=e[r],i=t.noTargetGet?(a=Ot(n,r))&&a.value:n[r],!Lt(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;gt(c,i)}(t.sham||i&&i.sham)&&M(c,"sham",!0),tt(n,r,c,t)}},kt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pt=function(t,e,n){if(kt(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ct=Array.isArray||function(t){return"Array"==p(t)},Mt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),xt=Mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,At=V("wks"),_t=o.Symbol,It=xt?_t:_t&&_t.withoutSetter||H,Nt=function(t){return S(At,t)||(Mt&&S(_t,t)?At[t]=_t[t]:At[t]=It("Symbol."+t)),At[t]},Rt=Nt("species"),Dt=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[Rt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ft=[].push,Gt=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,s){for(var l,p,h=Object(d(a)),y=v(h),g=Pt(u,f,3),m=ut(y.length),b=0,S=s||Dt,w=e?S(a,m):n?S(a,0):void 0;m>b;b++)if((c||b in y)&&(p=g(l=y[b],b,h),t))if(e)w[b]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:Ft.call(w,l)}else if(o)return!1;return i?-1:r||o?o:w}},Kt={forEach:Gt(0),map:Gt(1),filter:Gt(2),some:Gt(3),every:Gt(4),find:Gt(5),findIndex:Gt(6)},Vt=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))},Ut=Object.defineProperty,zt={},Ht=function(t){throw t},Bt=Kt.forEach,qt=Vt("forEach"),Wt=function(t,e){if(S(zt,t))return zt[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:Ht,a=S(e,1)?e[1]:void 0;return zt[t]=!!n&&!i((function(){if(r&&!c)return!0;var t={length:-1};r?Ut(t,1,{enumerable:!0,get:Ht}):t[1]=1,n.call(t,o,a)}))}("forEach"),Yt=qt&&Wt?[].forEach:function(t){return Bt(this,t,arguments.length>1?arguments[1]:void 0)};Tt({target:"Array",proto:!0,forced:[].forEach!=Yt},{forEach:Yt});var Jt=[].join,Qt=v!=Object,Xt=Vt("join",",");Tt({target:"Array",proto:!0,forced:Qt||!Xt},{join:function(t){return Jt.call(y(this),void 0===t?",":t)}});var Zt={};Zt[Nt("toStringTag")]="z";var $t="[object z]"===String(Zt),te=Nt("toStringTag"),ee="Arguments"==p(function(){return arguments}()),ne=$t?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),te))?n:ee?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},re=$t?{}.toString:function(){return"[object "+ne(this)+"]"};$t||tt(Object.prototype,"toString",re,{unsafe:!0});var oe=o.Promise,ie=C.f,ce=Nt("toStringTag"),ae=Nt("species"),ue={},fe=Nt("iterator"),se=Array.prototype,le=Nt("iterator"),pe=function(t,e,n,r){try{return r?e(k(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&k(o.call(t)),e}},he=n((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,a,u,f,s,l,p,h,v=Pt(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[le]||t["@@iterator"]||ue[ne(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=a)&&(ue.Array===h||se[fe]===h)){for(u=0,f=ut(t.length);f>u;u++)if((s=o?v(k(p=t[u])[0],p[1]):v(t[u]))&&s instanceof e)return s;return new e(!1)}c=a.call(t)}for(l=c.next;!(p=l.call(c)).done;)if("object"==typeof(s=pe(c,v,p.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}})),ve=Nt("iterator"),de=!1;try{var ye=0,ge={next:function(){return{done:!!ye++}},return:function(){de=!0}};ge[ve]=function(){return this},Array.from(ge,(function(){throw 2}))}catch(t){}var me,be,Se,we=Nt("species"),je=rt("document","documentElement"),Ee=rt("navigator","userAgent")||"",Le=/(iphone|ipod|ipad).*applewebkit/i.test(Ee),Oe=o.location,Te=o.setImmediate,ke=o.clearImmediate,Pe=o.process,Ce=o.MessageChannel,Me=o.Dispatch,xe=0,Ae={},_e=function(t){if(Ae.hasOwnProperty(t)){var e=Ae[t];delete Ae[t],e()}},Ie=function(t){return function(){_e(t)}},Ne=function(t){_e(t.data)},Re=function(t){o.postMessage(t+"",Oe.protocol+"//"+Oe.host)};Te&&ke||(Te=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Ae[++xe]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},me(xe),xe},ke=function(t){delete Ae[t]},"process"==p(Pe)?me=function(t){Pe.nextTick(Ie(t))}:Me&&Me.now?me=function(t){Me.now(Ie(t))}:Ce&&!Le?(Se=(be=new Ce).port2,be.port1.onmessage=Ne,me=Pt(Se.postMessage,Se,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(Re)?me="onreadystatechange"in E("script")?function(t){je.appendChild(E("script")).onreadystatechange=function(){je.removeChild(this),_e(t)}}:function(t){setTimeout(Ie(t),0)}:(me=Re,o.addEventListener("message",Ne,!1)));var De,Fe,Ge,Ke,Ve,Ue,ze,He,Be={set:Te,clear:ke},qe=T.f,We=Be.set,Ye=o.MutationObserver||o.WebKitMutationObserver,Je=o.process,Qe=o.Promise,Xe="process"==p(Je),Ze=qe(o,"queueMicrotask"),$e=Ze&&Ze.value;$e||(De=function(){var t,e;for(Xe&&(t=Je.domain)&&t.exit();Fe;){e=Fe.fn,Fe=Fe.next;try{e()}catch(t){throw Fe?Ke():Ge=void 0,t}}Ge=void 0,t&&t.enter()},Xe?Ke=function(){Je.nextTick(De)}:Ye&&!Le?(Ve=!0,Ue=document.createTextNode(""),new Ye(De).observe(Ue,{characterData:!0}),Ke=function(){Ue.data=Ve=!Ve}):Qe&&Qe.resolve?(ze=Qe.resolve(void 0),He=ze.then,Ke=function(){He.call(ze,De)}):Ke=function(){We.call(o,De)});var tn,en,nn=$e||function(t){var e={fn:t,next:void 0};Ge&&(Ge.next=e),Fe||(Fe=e,Ke()),Ge=e},rn=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=kt(e),this.reject=kt(n)},on={f:function(t){return new rn(t)}},cn=function(t,e){if(k(t),g(e)&&e.constructor===t)return e;var n=on.f(t);return(0,n.resolve)(e),n.promise},an=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},un=o.process,fn=un&&un.versions,sn=fn&&fn.v8;sn?en=(tn=sn.split("."))[0]+tn[1]:Ee&&(!(tn=Ee.match(/Edge\/(\d+)/))||tn[1]>=74)&&(tn=Ee.match(/Chrome\/(\d+)/))&&(en=tn[1]);var ln,pn,hn,vn,dn,yn,gn,mn=en&&+en,bn=Be.set,Sn=Nt("species"),wn="Promise",jn=$.get,En=$.set,Ln=$.getterFor(wn),On=oe,Tn=o.TypeError,kn=o.document,Pn=o.process,Cn=rt("fetch"),Mn=on.f,xn=Mn,An="process"==p(Pn),_n=!!(kn&&kn.createEvent&&o.dispatchEvent),In=Lt(wn,(function(){if(!(F(On)!==String(On))){if(66===mn)return!0;if(!An&&"function"!=typeof PromiseRejectionEvent)return!0}if(mn>=51&&/native code/.test(On))return!1;var t=On.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Sn]=e,!(t.then((function(){}))instanceof e)})),Nn=In||!function(t,e){if(!e&&!de)return!1;var n=!1;try{var r={};r[ve]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){On.all(t).catch((function(){}))})),Rn=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Dn=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;nn((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,v=s.domain;try{l?(i||(2===e.rejection&&Vn(t,e),e.rejection=1),!0===l?a=o:(v&&v.enter(),a=l(o),v&&(v.exit(),f=!0)),a===s.promise?h(Tn("Promise-chain cycle")):(u=Rn(a))?u.call(a,p,h):p(a)):h(o)}catch(t){v&&!f&&v.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Gn(t,e)}))}},Fn=function(t,e,n){var r,i;_n?((r=kn.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),o.dispatchEvent(r)):r={promise:e,reason:n},(i=o["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Gn=function(t,e){bn.call(o,(function(){var n,r=e.value;if(Kn(e)&&(n=an((function(){An?Pn.emit("unhandledRejection",r,t):Fn("unhandledrejection",t,r)})),e.rejection=An||Kn(e)?2:1,n.error))throw n.value}))},Kn=function(t){return 1!==t.rejection&&!t.parent},Vn=function(t,e){bn.call(o,(function(){An?Pn.emit("rejectionHandled",t):Fn("rejectionhandled",t,e.value)}))},Un=function(t,e,n,r){return function(o){t(e,n,o,r)}},zn=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Dn(t,e,!0))},Hn=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Tn("Promise can't be resolved itself");var o=Rn(n);o?nn((function(){var r={done:!1};try{o.call(n,Un(Hn,t,r,e),Un(zn,t,r,e))}catch(n){zn(t,r,n,e)}})):(e.value=n,e.state=1,Dn(t,e,!1))}catch(n){zn(t,{done:!1},n,e)}}};In&&(On=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,On,wn),kt(t),ln.call(this);var e=jn(this);try{t(Un(Hn,this,e),Un(zn,this,e))}catch(t){zn(this,e,t)}},(ln=function(t){En(this,{type:wn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)tt(t,r,e[r],n);return t}(On.prototype,{then:function(t,e){var n,r,o,i=Ln(this),c=Mn((n=On,void 0===(o=k(this).constructor)||null==(r=k(o)[we])?n:kt(r)));return c.ok="function"!=typeof t||t,c.fail="function"==typeof e&&e,c.domain=An?Pn.domain:void 0,i.parent=!0,i.reactions.push(c),0!=i.state&&Dn(this,i,!1),c.promise},catch:function(t){return this.then(void 0,t)}}),pn=function(){var t=new ln,e=jn(t);this.promise=t,this.resolve=Un(Hn,t,e),this.reject=Un(zn,t,e)},on.f=Mn=function(t){return t===On||t===hn?new pn(t):xn(t)},"function"==typeof oe&&(vn=oe.prototype.then,tt(oe.prototype,"then",(function(t,e){var n=this;return new On((function(t,e){vn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Cn&&Tt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return cn(On,Cn.apply(o,arguments))}}))),Tt({global:!0,wrap:!0,forced:In},{Promise:On}),yn=wn,gn=!1,(dn=On)&&!S(dn=gn?dn:dn.prototype,ce)&&ie(dn,ce,{configurable:!0,value:yn}),function(t){var e=rt(t),n=C.f;c&&e&&!e[ae]&&n(e,ae,{configurable:!0,get:function(){return this}})}(wn),hn=rt(wn),Tt({target:wn,stat:!0,forced:In},{reject:function(t){var e=Mn(this);return e.reject.call(void 0,t),e.promise}}),Tt({target:wn,stat:!0,forced:In},{resolve:function(t){return cn(this,t)}}),Tt({target:wn,stat:!0,forced:Nn},{all:function(t){var e=this,n=Mn(e),r=n.resolve,o=n.reject,i=an((function(){var n=kt(e.resolve),i=[],c=0,a=1;he(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Mn(e),r=n.reject,o=an((function(){var o=kt(e.resolve);he(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});for(var Bn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qn=o[Bn],Wn=qn&&qn.prototype;if(Wn&&Wn.forEach!==Yt)try{M(Wn,"forEach",Yt)}catch(t){Wn.forEach=Yt}}var Yn=function(){function t(t){var e=t.apiKey,n=t.libraries,r=void 0===n?[]:n,o=t.language,i=t.region,c=t.version,a=t.mapIds;this.CALLBACK="__googleMapsCallback",this.URL="https://maps.googleapis.com/maps/api/js",this.callbacks=[],this.done=!1,this.loading=!1,this.version=c,this.apiKey=e,this.libraries=r,this.language=o,this.region=i,this.mapIds=a}return t.prototype.createUrl=function(){var t=this.URL;return t+="?callback="+this.CALLBACK,this.apiKey&&(t+="&key="+this.apiKey),this.libraries.length>0&&(t+="&libraries="+this.libraries.join(",")),this.language&&(t+="&language="+this.language),this.region&&(t+="®ion="+this.region),this.version&&(t+="&v="+this.version),this.mapIds&&(t+="&map_ids="+this.mapIds.join(",")),t},t.prototype.load=function(){return this.loadPromise()},t.prototype.loadPromise=function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t):e()}))}))},t.prototype.loadCallback=function(t){this.callbacks.push(t),this.execute()},t.prototype.setScript=function(){var t=this.createUrl(),e=document.createElement("script");e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,document.head.appendChild(e)},t.prototype.loadErrorCallback=function(t){this.onerrorEvent=t,this.callback()},t.prototype.setCallback=function(){window.__googleMapsCallback=this.callback.bind(this)},t.prototype.callback=function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]},t.prototype.execute=function(){this.done?this.callback():this.loading||(this.loading=!0,this.setCallback(),this.setScript())},t}();return t.Loader=Yn,t}({}); |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).google=t.google||{},t.google.maps=t.google.maps||{},t.google.maps.plugins=t.google.maps.plugins||{},t.google.maps.plugins.loader={}))}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,v=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return v(d(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,S=function(t,e){return b.call(t,e)},j=o.document,w=g(j)&&g(j.createElement),E=function(t){return w?j.createElement(t):{}},L=!c&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:c?O:function(t,e){if(t=y(t),e=m(e,!0),L)try{return O(t,e)}catch(t){}if(S(t,e))return s(!f.f.call(t,e),t[e])}},k=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,C={f:c?P:function(t,e,n){if(k(t),e=m(e,!0),k(n),L)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},x=c?function(t,e,n){return C.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},M=function(t,e){try{x(o,t,e)}catch(n){o[t]=e}return e},A=o["__core-js_shared__"]||M("__core-js_shared__",{}),_=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return _.call(t)});var I,N,R,D,F=A.inspectSource,G=o.WeakMap,K="function"==typeof G&&/native code/.test(F(G)),V=n((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,z=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+z).toString(36)},B=V("keys"),q={},W=o.WeakMap;if(K){var Y=new W,J=Y.get,Q=Y.has,X=Y.set;I=function(t,e){return X.call(Y,t,e),e},N=function(t){return J.call(Y,t)||{}},R=function(t){return Q.call(Y,t)}}else{var Z=B[D="state"]||(B[D]=H(D));q[Z]=!0,I=function(t,e){return x(t,Z,e),e},N=function(t){return S(t,Z)?t[Z]:{}},R=function(t){return S(t,Z)}}var $={set:I,get:N,has:R,enforce:function(t){return R(t)?N(t):I(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},tt=n((function(t){var e=$.get,n=$.enforce,r=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||x(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:x(t,e,i)):u?t[e]=i:M(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),et=o,nt=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?nt(et[t])||nt(o[t]):et[t]&&et[t][e]||o[t]&&o[t][e]},ot=Math.ceil,it=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?it:ot)(t)},at=Math.min,ut=function(t){return t>0?at(ct(t),9007199254740991):0},ft=Math.max,st=Math.min,lt=function(t){return function(e,n,r){var o,i=y(e),c=ut(i.length),a=function(t,e){var n=ct(t);return n<0?ft(n+e,0):st(n,e)}(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:lt(!0),indexOf:lt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),vt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!S(q,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},dt={f:Object.getOwnPropertySymbols},yt=rt("Reflect","ownKeys")||function(t){var e=vt.f(k(t)),n=dt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=yt(e),r=C.f,o=T.f,i=0;i<n.length;i++){var c=n[i];S(t,c)||r(t,c,o(e,c))}},mt=/#|\.prototype\./,bt=function(t,e){var n=jt[St(t)];return n==Et||n!=wt&&("function"==typeof e?i(e):!!e)},St=bt.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},jt=bt.data={},wt=bt.NATIVE="N",Et=bt.POLYFILL="P",Lt=bt,Ot=T.f,Tt=function(t,e){var n,r,i,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[u]||M(u,{}):(o[u]||{}).prototype)for(r in e){if(c=e[r],i=t.noTargetGet?(a=Ot(n,r))&&a.value:n[r],!Lt(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;gt(c,i)}(t.sham||i&&i.sham)&&x(c,"sham",!0),tt(n,r,c,t)}},kt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pt=function(t,e,n){if(kt(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ct=Array.isArray||function(t){return"Array"==p(t)},xt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Mt=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,At=V("wks"),_t=o.Symbol,It=Mt?_t:_t&&_t.withoutSetter||H,Nt=function(t){return S(At,t)||(xt&&S(_t,t)?At[t]=_t[t]:At[t]=It("Symbol."+t)),At[t]},Rt=Nt("species"),Dt=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[Rt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ft=[].push,Gt=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,s){for(var l,p,h=Object(d(a)),y=v(h),g=Pt(u,f,3),m=ut(y.length),b=0,S=s||Dt,j=e?S(a,m):n?S(a,0):void 0;m>b;b++)if((c||b in y)&&(p=g(l=y[b],b,h),t))if(e)j[b]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:Ft.call(j,l)}else if(o)return!1;return i?-1:r||o?o:j}},Kt={forEach:Gt(0),map:Gt(1),filter:Gt(2),some:Gt(3),every:Gt(4),find:Gt(5),findIndex:Gt(6)},Vt=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))},Ut=Object.defineProperty,zt={},Ht=function(t){throw t},Bt=Kt.forEach,qt=Vt("forEach"),Wt=function(t,e){if(S(zt,t))return zt[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:Ht,a=S(e,1)?e[1]:void 0;return zt[t]=!!n&&!i((function(){if(r&&!c)return!0;var t={length:-1};r?Ut(t,1,{enumerable:!0,get:Ht}):t[1]=1,n.call(t,o,a)}))}("forEach"),Yt=qt&&Wt?[].forEach:function(t){return Bt(this,t,arguments.length>1?arguments[1]:void 0)};Tt({target:"Array",proto:!0,forced:[].forEach!=Yt},{forEach:Yt});var Jt=[].join,Qt=v!=Object,Xt=Vt("join",",");Tt({target:"Array",proto:!0,forced:Qt||!Xt},{join:function(t){return Jt.call(y(this),void 0===t?",":t)}});var Zt={};Zt[Nt("toStringTag")]="z";var $t="[object z]"===String(Zt),te=Nt("toStringTag"),ee="Arguments"==p(function(){return arguments}()),ne=$t?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),te))?n:ee?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},re=$t?{}.toString:function(){return"[object "+ne(this)+"]"};$t||tt(Object.prototype,"toString",re,{unsafe:!0});var oe=o.Promise,ie=C.f,ce=Nt("toStringTag"),ae=Nt("species"),ue={},fe=Nt("iterator"),se=Array.prototype,le=Nt("iterator"),pe=function(t,e,n,r){try{return r?e(k(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&k(o.call(t)),e}},he=n((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,a,u,f,s,l,p,h,v=Pt(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[le]||t["@@iterator"]||ue[ne(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=a)&&(ue.Array===h||se[fe]===h)){for(u=0,f=ut(t.length);f>u;u++)if((s=o?v(k(p=t[u])[0],p[1]):v(t[u]))&&s instanceof e)return s;return new e(!1)}c=a.call(t)}for(l=c.next;!(p=l.call(c)).done;)if("object"==typeof(s=pe(c,v,p.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}})),ve=Nt("iterator"),de=!1;try{var ye=0,ge={next:function(){return{done:!!ye++}},return:function(){de=!0}};ge[ve]=function(){return this},Array.from(ge,(function(){throw 2}))}catch(t){}var me,be,Se,je=Nt("species"),we=rt("document","documentElement"),Ee=rt("navigator","userAgent")||"",Le=/(iphone|ipod|ipad).*applewebkit/i.test(Ee),Oe=o.location,Te=o.setImmediate,ke=o.clearImmediate,Pe=o.process,Ce=o.MessageChannel,xe=o.Dispatch,Me=0,Ae={},_e=function(t){if(Ae.hasOwnProperty(t)){var e=Ae[t];delete Ae[t],e()}},Ie=function(t){return function(){_e(t)}},Ne=function(t){_e(t.data)},Re=function(t){o.postMessage(t+"",Oe.protocol+"//"+Oe.host)};Te&&ke||(Te=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Ae[++Me]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},me(Me),Me},ke=function(t){delete Ae[t]},"process"==p(Pe)?me=function(t){Pe.nextTick(Ie(t))}:xe&&xe.now?me=function(t){xe.now(Ie(t))}:Ce&&!Le?(Se=(be=new Ce).port2,be.port1.onmessage=Ne,me=Pt(Se.postMessage,Se,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(Re)?me="onreadystatechange"in E("script")?function(t){we.appendChild(E("script")).onreadystatechange=function(){we.removeChild(this),_e(t)}}:function(t){setTimeout(Ie(t),0)}:(me=Re,o.addEventListener("message",Ne,!1)));var De,Fe,Ge,Ke,Ve,Ue,ze,He,Be={set:Te,clear:ke},qe=T.f,We=Be.set,Ye=o.MutationObserver||o.WebKitMutationObserver,Je=o.process,Qe=o.Promise,Xe="process"==p(Je),Ze=qe(o,"queueMicrotask"),$e=Ze&&Ze.value;$e||(De=function(){var t,e;for(Xe&&(t=Je.domain)&&t.exit();Fe;){e=Fe.fn,Fe=Fe.next;try{e()}catch(t){throw Fe?Ke():Ge=void 0,t}}Ge=void 0,t&&t.enter()},Xe?Ke=function(){Je.nextTick(De)}:Ye&&!Le?(Ve=!0,Ue=document.createTextNode(""),new Ye(De).observe(Ue,{characterData:!0}),Ke=function(){Ue.data=Ve=!Ve}):Qe&&Qe.resolve?(ze=Qe.resolve(void 0),He=ze.then,Ke=function(){He.call(ze,De)}):Ke=function(){We.call(o,De)});var tn,en,nn=$e||function(t){var e={fn:t,next:void 0};Ge&&(Ge.next=e),Fe||(Fe=e,Ke()),Ge=e},rn=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=kt(e),this.reject=kt(n)},on={f:function(t){return new rn(t)}},cn=function(t,e){if(k(t),g(e)&&e.constructor===t)return e;var n=on.f(t);return(0,n.resolve)(e),n.promise},an=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},un=o.process,fn=un&&un.versions,sn=fn&&fn.v8;sn?en=(tn=sn.split("."))[0]+tn[1]:Ee&&(!(tn=Ee.match(/Edge\/(\d+)/))||tn[1]>=74)&&(tn=Ee.match(/Chrome\/(\d+)/))&&(en=tn[1]);var ln,pn,hn,vn,dn,yn,gn,mn=en&&+en,bn=Be.set,Sn=Nt("species"),jn="Promise",wn=$.get,En=$.set,Ln=$.getterFor(jn),On=oe,Tn=o.TypeError,kn=o.document,Pn=o.process,Cn=rt("fetch"),xn=on.f,Mn=xn,An="process"==p(Pn),_n=!!(kn&&kn.createEvent&&o.dispatchEvent),In=Lt(jn,(function(){if(!(F(On)!==String(On))){if(66===mn)return!0;if(!An&&"function"!=typeof PromiseRejectionEvent)return!0}if(mn>=51&&/native code/.test(On))return!1;var t=On.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Sn]=e,!(t.then((function(){}))instanceof e)})),Nn=In||!function(t,e){if(!e&&!de)return!1;var n=!1;try{var r={};r[ve]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){On.all(t).catch((function(){}))})),Rn=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Dn=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;nn((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,v=s.domain;try{l?(i||(2===e.rejection&&Vn(t,e),e.rejection=1),!0===l?a=o:(v&&v.enter(),a=l(o),v&&(v.exit(),f=!0)),a===s.promise?h(Tn("Promise-chain cycle")):(u=Rn(a))?u.call(a,p,h):p(a)):h(o)}catch(t){v&&!f&&v.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Gn(t,e)}))}},Fn=function(t,e,n){var r,i;_n?((r=kn.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),o.dispatchEvent(r)):r={promise:e,reason:n},(i=o["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Gn=function(t,e){bn.call(o,(function(){var n,r=e.value;if(Kn(e)&&(n=an((function(){An?Pn.emit("unhandledRejection",r,t):Fn("unhandledrejection",t,r)})),e.rejection=An||Kn(e)?2:1,n.error))throw n.value}))},Kn=function(t){return 1!==t.rejection&&!t.parent},Vn=function(t,e){bn.call(o,(function(){An?Pn.emit("rejectionHandled",t):Fn("rejectionhandled",t,e.value)}))},Un=function(t,e,n,r){return function(o){t(e,n,o,r)}},zn=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Dn(t,e,!0))},Hn=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Tn("Promise can't be resolved itself");var o=Rn(n);o?nn((function(){var r={done:!1};try{o.call(n,Un(Hn,t,r,e),Un(zn,t,r,e))}catch(n){zn(t,r,n,e)}})):(e.value=n,e.state=1,Dn(t,e,!1))}catch(n){zn(t,{done:!1},n,e)}}};In&&(On=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,On,jn),kt(t),ln.call(this);var e=wn(this);try{t(Un(Hn,this,e),Un(zn,this,e))}catch(t){zn(this,e,t)}},(ln=function(t){En(this,{type:jn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)tt(t,r,e[r],n);return t}(On.prototype,{then:function(t,e){var n,r,o,i=Ln(this),c=xn((n=On,void 0===(o=k(this).constructor)||null==(r=k(o)[je])?n:kt(r)));return c.ok="function"!=typeof t||t,c.fail="function"==typeof e&&e,c.domain=An?Pn.domain:void 0,i.parent=!0,i.reactions.push(c),0!=i.state&&Dn(this,i,!1),c.promise},catch:function(t){return this.then(void 0,t)}}),pn=function(){var t=new ln,e=wn(t);this.promise=t,this.resolve=Un(Hn,t,e),this.reject=Un(zn,t,e)},on.f=xn=function(t){return t===On||t===hn?new pn(t):Mn(t)},"function"==typeof oe&&(vn=oe.prototype.then,tt(oe.prototype,"then",(function(t,e){var n=this;return new On((function(t,e){vn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Cn&&Tt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return cn(On,Cn.apply(o,arguments))}}))),Tt({global:!0,wrap:!0,forced:In},{Promise:On}),yn=jn,gn=!1,(dn=On)&&!S(dn=gn?dn:dn.prototype,ce)&&ie(dn,ce,{configurable:!0,value:yn}),function(t){var e=rt(t),n=C.f;c&&e&&!e[ae]&&n(e,ae,{configurable:!0,get:function(){return this}})}(jn),hn=rt(jn),Tt({target:jn,stat:!0,forced:In},{reject:function(t){var e=xn(this);return e.reject.call(void 0,t),e.promise}}),Tt({target:jn,stat:!0,forced:In},{resolve:function(t){return cn(this,t)}}),Tt({target:jn,stat:!0,forced:Nn},{all:function(t){var e=this,n=xn(e),r=n.resolve,o=n.reject,i=an((function(){var n=kt(e.resolve),i=[],c=0,a=1;he(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=xn(e),r=n.reject,o=an((function(){var o=kt(e.resolve);he(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});for(var Bn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qn=o[Bn],Wn=qn&&qn.prototype;if(Wn&&Wn.forEach!==Yt)try{x(Wn,"forEach",Yt)}catch(t){Wn.forEach=Yt}}var Yn=function(){function t(t){var e=t.apiKey,n=t.libraries,r=void 0===n?[]:n,o=t.language,i=t.region,c=t.version;this.CALLBACK="__googleMapsCallback",this.URL="https://maps.googleapis.com/maps/api/js",this.callbacks=[],this.done=!1,this.loading=!1,this.version=c,this.apiKey=e,this.libraries=r,this.language=o,this.region=i}return t.prototype.createUrl=function(){var t=this.URL;return t+="?callback="+this.CALLBACK,this.apiKey&&(t+="&key="+this.apiKey),this.libraries.length>0&&(t+="&libraries="+this.libraries.join(",")),this.language&&(t+="&language="+this.language),this.region&&(t+="®ion="+this.region),this.version&&(t+="&v="+this.version),t},t.prototype.load=function(){return this.loadPromise()},t.prototype.loadPromise=function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t):e()}))}))},t.prototype.loadCallback=function(t){this.callbacks.push(t),this.execute()},t.prototype.setScript=function(){var t=this.createUrl(),e=document.createElement("script");e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,document.head.appendChild(e)},t.prototype.loadErrorCallback=function(t){this.onerrorEvent=t,this.callback()},t.prototype.setCallback=function(){window.__googleMapsCallback=this.callback.bind(this)},t.prototype.callback=function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]},t.prototype.execute=function(){this.done?this.callback():this.loading||(this.loading=!0,this.setCallback(),this.setScript())},t}();t.Loader=Yn,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).google=t.google||{},t.google.maps=t.google.maps||{},t.google.maps.plugins=t.google.maps.plugins||{},t.google.maps.plugins.loader={}))}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return d(v(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,S=function(t,e){return b.call(t,e)},j=o.document,w=g(j)&&g(j.createElement),E=function(t){return w?j.createElement(t):{}},L=!c&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:c?O:function(t,e){if(t=y(t),e=m(e,!0),L)try{return O(t,e)}catch(t){}if(S(t,e))return s(!f.f.call(t,e),t[e])}},k=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,C={f:c?P:function(t,e,n){if(k(t),e=m(e,!0),k(n),L)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},x=c?function(t,e,n){return C.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},M=function(t,e){try{x(o,t,e)}catch(n){o[t]=e}return e},A=o["__core-js_shared__"]||M("__core-js_shared__",{}),_=Function.toString;"function"!=typeof A.inspectSource&&(A.inspectSource=function(t){return _.call(t)});var I,N,R,D,F=A.inspectSource,G=o.WeakMap,K="function"==typeof G&&/native code/.test(F(G)),V=n((function(t){(t.exports=function(t,e){return A[t]||(A[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),U=0,z=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+z).toString(36)},B=V("keys"),q={},W=o.WeakMap;if(K){var Y=new W,J=Y.get,Q=Y.has,X=Y.set;I=function(t,e){return X.call(Y,t,e),e},N=function(t){return J.call(Y,t)||{}},R=function(t){return Q.call(Y,t)}}else{var Z=B[D="state"]||(B[D]=H(D));q[Z]=!0,I=function(t,e){return x(t,Z,e),e},N=function(t){return S(t,Z)?t[Z]:{}},R=function(t){return S(t,Z)}}var $={set:I,get:N,has:R,enforce:function(t){return R(t)?N(t):I(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},tt=n((function(t){var e=$.get,n=$.enforce,r=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||x(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:x(t,e,i)):u?t[e]=i:M(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),et=o,nt=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?nt(et[t])||nt(o[t]):et[t]&&et[t][e]||o[t]&&o[t][e]},ot=Math.ceil,it=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?it:ot)(t)},at=Math.min,ut=function(t){return t>0?at(ct(t),9007199254740991):0},ft=Math.max,st=Math.min,lt=function(t){return function(e,n,r){var o,i=y(e),c=ut(i.length),a=function(t,e){var n=ct(t);return n<0?ft(n+e,0):st(n,e)}(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},pt={includes:lt(!0),indexOf:lt(!1)}.indexOf,ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),dt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=y(t),o=0,i=[];for(n in r)!S(q,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~pt(i,n)||i.push(n));return i}(t,ht)}},vt={f:Object.getOwnPropertySymbols},yt=rt("Reflect","ownKeys")||function(t){var e=dt.f(k(t)),n=vt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=yt(e),r=C.f,o=T.f,i=0;i<n.length;i++){var c=n[i];S(t,c)||r(t,c,o(e,c))}},mt=/#|\.prototype\./,bt=function(t,e){var n=jt[St(t)];return n==Et||n!=wt&&("function"==typeof e?i(e):!!e)},St=bt.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},jt=bt.data={},wt=bt.NATIVE="N",Et=bt.POLYFILL="P",Lt=bt,Ot=T.f,Tt=function(t,e){var n,r,i,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?o:s?o[u]||M(u,{}):(o[u]||{}).prototype)for(r in e){if(c=e[r],i=t.noTargetGet?(a=Ot(n,r))&&a.value:n[r],!Lt(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;gt(c,i)}(t.sham||i&&i.sham)&&x(c,"sham",!0),tt(n,r,c,t)}},kt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Pt=function(t,e,n){if(kt(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ct=Array.isArray||function(t){return"Array"==p(t)},xt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Mt=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,At=V("wks"),_t=o.Symbol,It=Mt?_t:_t&&_t.withoutSetter||H,Nt=function(t){return S(At,t)||(xt&&S(_t,t)?At[t]=_t[t]:At[t]=It("Symbol."+t)),At[t]},Rt=Nt("species"),Dt=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[Rt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ft=[].push,Gt=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,s){for(var l,p,h=Object(v(a)),y=d(h),g=Pt(u,f,3),m=ut(y.length),b=0,S=s||Dt,j=e?S(a,m):n?S(a,0):void 0;m>b;b++)if((c||b in y)&&(p=g(l=y[b],b,h),t))if(e)j[b]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return b;case 2:Ft.call(j,l)}else if(o)return!1;return i?-1:r||o?o:j}},Kt={forEach:Gt(0),map:Gt(1),filter:Gt(2),some:Gt(3),every:Gt(4),find:Gt(5),findIndex:Gt(6)},Vt=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))},Ut=Object.defineProperty,zt={},Ht=function(t){throw t},Bt=Kt.forEach,qt=Vt("forEach"),Wt=function(t,e){if(S(zt,t))return zt[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:Ht,a=S(e,1)?e[1]:void 0;return zt[t]=!!n&&!i((function(){if(r&&!c)return!0;var t={length:-1};r?Ut(t,1,{enumerable:!0,get:Ht}):t[1]=1,n.call(t,o,a)}))}("forEach"),Yt=qt&&Wt?[].forEach:function(t){return Bt(this,t,arguments.length>1?arguments[1]:void 0)};Tt({target:"Array",proto:!0,forced:[].forEach!=Yt},{forEach:Yt});var Jt=[].join,Qt=d!=Object,Xt=Vt("join",",");Tt({target:"Array",proto:!0,forced:Qt||!Xt},{join:function(t){return Jt.call(y(this),void 0===t?",":t)}});var Zt={};Zt[Nt("toStringTag")]="z";var $t="[object z]"===String(Zt),te=Nt("toStringTag"),ee="Arguments"==p(function(){return arguments}()),ne=$t?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),te))?n:ee?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},re=$t?{}.toString:function(){return"[object "+ne(this)+"]"};$t||tt(Object.prototype,"toString",re,{unsafe:!0});var oe=o.Promise,ie=C.f,ce=Nt("toStringTag"),ae=Nt("species"),ue={},fe=Nt("iterator"),se=Array.prototype,le=Nt("iterator"),pe=function(t,e,n,r){try{return r?e(k(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&k(o.call(t)),e}},he=n((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,a,u,f,s,l,p,h,d=Pt(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(a=function(t){if(null!=t)return t[le]||t["@@iterator"]||ue[ne(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(h=a)&&(ue.Array===h||se[fe]===h)){for(u=0,f=ut(t.length);f>u;u++)if((s=o?d(k(p=t[u])[0],p[1]):d(t[u]))&&s instanceof e)return s;return new e(!1)}c=a.call(t)}for(l=c.next;!(p=l.call(c)).done;)if("object"==typeof(s=pe(c,d,p.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}})),de=Nt("iterator"),ve=!1;try{var ye=0,ge={next:function(){return{done:!!ye++}},return:function(){ve=!0}};ge[de]=function(){return this},Array.from(ge,(function(){throw 2}))}catch(t){}var me,be,Se,je=Nt("species"),we=rt("document","documentElement"),Ee=rt("navigator","userAgent")||"",Le=/(iphone|ipod|ipad).*applewebkit/i.test(Ee),Oe=o.location,Te=o.setImmediate,ke=o.clearImmediate,Pe=o.process,Ce=o.MessageChannel,xe=o.Dispatch,Me=0,Ae={},_e=function(t){if(Ae.hasOwnProperty(t)){var e=Ae[t];delete Ae[t],e()}},Ie=function(t){return function(){_e(t)}},Ne=function(t){_e(t.data)},Re=function(t){o.postMessage(t+"",Oe.protocol+"//"+Oe.host)};Te&&ke||(Te=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Ae[++Me]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},me(Me),Me},ke=function(t){delete Ae[t]},"process"==p(Pe)?me=function(t){Pe.nextTick(Ie(t))}:xe&&xe.now?me=function(t){xe.now(Ie(t))}:Ce&&!Le?(Se=(be=new Ce).port2,be.port1.onmessage=Ne,me=Pt(Se.postMessage,Se,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||i(Re)?me="onreadystatechange"in E("script")?function(t){we.appendChild(E("script")).onreadystatechange=function(){we.removeChild(this),_e(t)}}:function(t){setTimeout(Ie(t),0)}:(me=Re,o.addEventListener("message",Ne,!1)));var De,Fe,Ge,Ke,Ve,Ue,ze,He,Be={set:Te,clear:ke},qe=T.f,We=Be.set,Ye=o.MutationObserver||o.WebKitMutationObserver,Je=o.process,Qe=o.Promise,Xe="process"==p(Je),Ze=qe(o,"queueMicrotask"),$e=Ze&&Ze.value;$e||(De=function(){var t,e;for(Xe&&(t=Je.domain)&&t.exit();Fe;){e=Fe.fn,Fe=Fe.next;try{e()}catch(t){throw Fe?Ke():Ge=void 0,t}}Ge=void 0,t&&t.enter()},Xe?Ke=function(){Je.nextTick(De)}:Ye&&!Le?(Ve=!0,Ue=document.createTextNode(""),new Ye(De).observe(Ue,{characterData:!0}),Ke=function(){Ue.data=Ve=!Ve}):Qe&&Qe.resolve?(ze=Qe.resolve(void 0),He=ze.then,Ke=function(){He.call(ze,De)}):Ke=function(){We.call(o,De)});var tn,en,nn=$e||function(t){var e={fn:t,next:void 0};Ge&&(Ge.next=e),Fe||(Fe=e,Ke()),Ge=e},rn=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=kt(e),this.reject=kt(n)},on={f:function(t){return new rn(t)}},cn=function(t,e){if(k(t),g(e)&&e.constructor===t)return e;var n=on.f(t);return(0,n.resolve)(e),n.promise},an=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},un=o.process,fn=un&&un.versions,sn=fn&&fn.v8;sn?en=(tn=sn.split("."))[0]+tn[1]:Ee&&(!(tn=Ee.match(/Edge\/(\d+)/))||tn[1]>=74)&&(tn=Ee.match(/Chrome\/(\d+)/))&&(en=tn[1]);var ln,pn,hn,dn,vn,yn,gn,mn=en&&+en,bn=Be.set,Sn=Nt("species"),jn="Promise",wn=$.get,En=$.set,Ln=$.getterFor(jn),On=oe,Tn=o.TypeError,kn=o.document,Pn=o.process,Cn=rt("fetch"),xn=on.f,Mn=xn,An="process"==p(Pn),_n=!!(kn&&kn.createEvent&&o.dispatchEvent),In=Lt(jn,(function(){if(!(F(On)!==String(On))){if(66===mn)return!0;if(!An&&"function"!=typeof PromiseRejectionEvent)return!0}if(mn>=51&&/native code/.test(On))return!1;var t=On.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Sn]=e,!(t.then((function(){}))instanceof e)})),Nn=In||!function(t,e){if(!e&&!ve)return!1;var n=!1;try{var r={};r[de]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){On.all(t).catch((function(){}))})),Rn=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Dn=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;nn((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,p=s.resolve,h=s.reject,d=s.domain;try{l?(i||(2===e.rejection&&Vn(t,e),e.rejection=1),!0===l?a=o:(d&&d.enter(),a=l(o),d&&(d.exit(),f=!0)),a===s.promise?h(Tn("Promise-chain cycle")):(u=Rn(a))?u.call(a,p,h):p(a)):h(o)}catch(t){d&&!f&&d.exit(),h(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Gn(t,e)}))}},Fn=function(t,e,n){var r,i;_n?((r=kn.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),o.dispatchEvent(r)):r={promise:e,reason:n},(i=o["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=o.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Gn=function(t,e){bn.call(o,(function(){var n,r=e.value;if(Kn(e)&&(n=an((function(){An?Pn.emit("unhandledRejection",r,t):Fn("unhandledrejection",t,r)})),e.rejection=An||Kn(e)?2:1,n.error))throw n.value}))},Kn=function(t){return 1!==t.rejection&&!t.parent},Vn=function(t,e){bn.call(o,(function(){An?Pn.emit("rejectionHandled",t):Fn("rejectionhandled",t,e.value)}))},Un=function(t,e,n,r){return function(o){t(e,n,o,r)}},zn=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Dn(t,e,!0))},Hn=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Tn("Promise can't be resolved itself");var o=Rn(n);o?nn((function(){var r={done:!1};try{o.call(n,Un(Hn,t,r,e),Un(zn,t,r,e))}catch(n){zn(t,r,n,e)}})):(e.value=n,e.state=1,Dn(t,e,!1))}catch(n){zn(t,{done:!1},n,e)}}};In&&(On=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,On,jn),kt(t),ln.call(this);var e=wn(this);try{t(Un(Hn,this,e),Un(zn,this,e))}catch(t){zn(this,e,t)}},(ln=function(t){En(this,{type:jn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)tt(t,r,e[r],n);return t}(On.prototype,{then:function(t,e){var n,r,o,i=Ln(this),c=xn((n=On,void 0===(o=k(this).constructor)||null==(r=k(o)[je])?n:kt(r)));return c.ok="function"!=typeof t||t,c.fail="function"==typeof e&&e,c.domain=An?Pn.domain:void 0,i.parent=!0,i.reactions.push(c),0!=i.state&&Dn(this,i,!1),c.promise},catch:function(t){return this.then(void 0,t)}}),pn=function(){var t=new ln,e=wn(t);this.promise=t,this.resolve=Un(Hn,t,e),this.reject=Un(zn,t,e)},on.f=xn=function(t){return t===On||t===hn?new pn(t):Mn(t)},"function"==typeof oe&&(dn=oe.prototype.then,tt(oe.prototype,"then",(function(t,e){var n=this;return new On((function(t,e){dn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Cn&&Tt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return cn(On,Cn.apply(o,arguments))}}))),Tt({global:!0,wrap:!0,forced:In},{Promise:On}),yn=jn,gn=!1,(vn=On)&&!S(vn=gn?vn:vn.prototype,ce)&&ie(vn,ce,{configurable:!0,value:yn}),function(t){var e=rt(t),n=C.f;c&&e&&!e[ae]&&n(e,ae,{configurable:!0,get:function(){return this}})}(jn),hn=rt(jn),Tt({target:jn,stat:!0,forced:In},{reject:function(t){var e=xn(this);return e.reject.call(void 0,t),e.promise}}),Tt({target:jn,stat:!0,forced:In},{resolve:function(t){return cn(this,t)}}),Tt({target:jn,stat:!0,forced:Nn},{all:function(t){var e=this,n=xn(e),r=n.resolve,o=n.reject,i=an((function(){var n=kt(e.resolve),i=[],c=0,a=1;he(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=xn(e),r=n.reject,o=an((function(){var o=kt(e.resolve);he(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});for(var Bn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qn=o[Bn],Wn=qn&&qn.prototype;if(Wn&&Wn.forEach!==Yt)try{x(Wn,"forEach",Yt)}catch(t){Wn.forEach=Yt}}var Yn=function(){function t(t){var e=t.apiKey,n=t.libraries,r=void 0===n?[]:n,o=t.language,i=t.region,c=t.version,a=t.mapIds;this.CALLBACK="__googleMapsCallback",this.URL="https://maps.googleapis.com/maps/api/js",this.callbacks=[],this.done=!1,this.loading=!1,this.version=c,this.apiKey=e,this.libraries=r,this.language=o,this.region=i,this.mapIds=a}return t.prototype.createUrl=function(){var t=this.URL;return t+="?callback="+this.CALLBACK,this.apiKey&&(t+="&key="+this.apiKey),this.libraries.length>0&&(t+="&libraries="+this.libraries.join(",")),this.language&&(t+="&language="+this.language),this.region&&(t+="®ion="+this.region),this.version&&(t+="&v="+this.version),this.mapIds&&(t+="&map_ids="+this.mapIds.join(",")),t},t.prototype.load=function(){return this.loadPromise()},t.prototype.loadPromise=function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t):e()}))}))},t.prototype.loadCallback=function(t){this.callbacks.push(t),this.execute()},t.prototype.setScript=function(){var t=this.createUrl(),e=document.createElement("script");e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,document.head.appendChild(e)},t.prototype.loadErrorCallback=function(t){this.onerrorEvent=t,this.callback()},t.prototype.setCallback=function(){window.__googleMapsCallback=this.callback.bind(this)},t.prototype.callback=function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]},t.prototype.execute=function(){this.done?this.callback():this.loading||(this.loading=!0,this.setCallback(),this.setScript())},t}();t.Loader=Yn,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@googlemaps/js-api-loader", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Wrapper for the loading of Google Maps JavaScript API script in the browser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -35,2 +35,6 @@ /** | ||
], | ||
[ | ||
{ mapIds: ["foo", "bar"] }, | ||
"https://maps.googleapis.com/maps/api/js?callback=__googleMapsCallback&map_ids=foo,bar", | ||
], | ||
])("createUrl is correct", (options: LoaderOptions, expected: string) => { | ||
@@ -37,0 +41,0 @@ const loader = new Loader(options); |
@@ -128,2 +128,7 @@ /** | ||
region?: string; | ||
/** | ||
* (Beta) You can add multiple Map IDs to your map using the map_ids paramenter in | ||
* your bootstrap request. | ||
*/ | ||
mapIds?: string[]; | ||
} | ||
@@ -173,2 +178,7 @@ | ||
/** | ||
* See [[LoaderOptions.mapIds]] | ||
*/ | ||
mapIds: string[]; | ||
private CALLBACK = "__googleMapsCallback"; | ||
@@ -196,2 +206,3 @@ private URL = "https://maps.googleapis.com/maps/api/js"; | ||
version, | ||
mapIds, | ||
}: LoaderOptions) { | ||
@@ -203,2 +214,3 @@ this.version = version; | ||
this.region = region; | ||
this.mapIds = mapIds; | ||
} | ||
@@ -235,2 +247,6 @@ /** | ||
if (this.mapIds) { | ||
url += `&map_ids=${this.mapIds.join(",")}`; | ||
} | ||
return url; | ||
@@ -237,0 +253,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
269085
2765