@googlemaps/js-api-loader
Advanced tools
Comparing version 1.12.7 to 1.12.8
@@ -176,2 +176,3 @@ /** | ||
export declare class Loader { | ||
private static instance; | ||
/** | ||
@@ -230,3 +231,2 @@ * See [[LoaderOptions.version]] | ||
private onerrorEvent; | ||
private static instance; | ||
private errors; | ||
@@ -251,2 +251,3 @@ /** | ||
createUrl(): string; | ||
deleteScript(): void; | ||
/** | ||
@@ -270,3 +271,2 @@ * Load the Google Maps JavaScript API script and return a Promise. | ||
private setScript; | ||
deleteScript(): void; | ||
/** | ||
@@ -273,0 +273,0 @@ * Reset the loader state. |
@@ -169,2 +169,8 @@ // do not edit .js files directly - edit src/index.jst | ||
} | ||
deleteScript() { | ||
const script = document.getElementById(this.id); | ||
if (script) { | ||
script.remove(); | ||
} | ||
} | ||
/** | ||
@@ -222,8 +228,2 @@ * Load the Google Maps JavaScript API script and return a Promise. | ||
} | ||
deleteScript() { | ||
const script = document.getElementById(this.id); | ||
if (script) { | ||
script.remove(); | ||
} | ||
} | ||
/** | ||
@@ -230,0 +230,0 @@ * Reset the loader state. |
@@ -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";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o,i,c=function(t){return t&&t.Math==Math&&t},a=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},s=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!l.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:l},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,d=function(t){return v.call(t).slice(8,-1)},g="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?g.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(m(t))},w=function(t){return"function"==typeof t},S=function(t){return"object"==typeof t?null!==t:w(t)},j=function(t){return w(t)?t:void 0},O=function(t,e){return arguments.length<2?j(a[t]):a[t]&&a[t][e]},E=O("navigator","userAgent")||"",T=a.process,k=a.Deno,L=T&&T.versions||k&&k.version,P=L&&L.v8;P?i=(o=P.split("."))[0]<4?1:o[0]+o[1]:E&&(!(o=E.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=E.match(/Chrome\/(\d+)/))&&(i=o[1]);var M=i&&+i,C=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M&&M<41})),x=C&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,A=x?function(t){return"symbol"==typeof t}:function(t){var e=O("Symbol");return w(e)&&Object(t)instanceof e},I=function(t){try{return String(t)}catch(t){return"Object"}},_=function(t){if(w(t))return t;throw TypeError(I(t)+" is not a function")},R=function(t,e){var n=t[e];return null==n?void 0:_(n)},F=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},D="__core-js_shared__",N=a[D]||F(D,{}),G=r((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),K=function(t){return Object(m(t))},B={}.hasOwnProperty,U=Object.hasOwn||function(t,e){return B.call(K(t),e)},V=0,z=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+z).toString(36)},q=G("wks"),W=a.Symbol,J=x?W:W&&W.withoutSetter||H,X=function(t){return U(q,t)&&(C||"string"==typeof q[t])||(C&&U(W,t)?q[t]=W[t]:q[t]=J("Symbol."+t)),q[t]},Y=X("toPrimitive"),$=function(t,e){if(!S(t)||A(t))return t;var n,r=R(t,Y);if(r){if(void 0===e&&(e="default"),n=r.call(t,e),!S(n)||A(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&w(n=t.toString)&&!S(r=n.call(t)))return r;if(w(n=t.valueOf)&&!S(r=n.call(t)))return r;if("string"!==e&&w(n=t.toString)&&!S(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=$(t,"string");return A(e)?e:String(e)},Z=a.document,tt=S(Z)&&S(Z.createElement),et=function(t){return tt?Z.createElement(t):{}},nt=!s&&!u((function(){return 7!=Object.defineProperty(et("div"),"a",{get:function(){return 7}}).a})),rt=Object.getOwnPropertyDescriptor,ot={f:s?rt:function(t,e){if(t=b(t),e=Q(e),nt)try{return rt(t,e)}catch(t){}if(U(t,e))return p(!h.f.call(t,e),t[e])}},it=function(t){if(S(t))return t;throw TypeError(String(t)+" is not an object")},ct=Object.defineProperty,at={f:s?ct:function(t,e,n){if(it(t),e=Q(e),it(n),nt)try{return ct(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}},ut=s?function(t,e,n){return at.f(t,e,p(1,n))}:function(t,e,n){return t[e]=n,t},st=Function.toString;w(N.inspectSource)||(N.inspectSource=function(t){return st.call(t)});var lt,ft,ht,pt,vt=N.inspectSource,dt=a.WeakMap,gt=w(dt)&&/native code/.test(vt(dt)),yt=G("keys"),mt={},bt="Object already initialized",wt=a.WeakMap;if(gt||N.state){var St=N.state||(N.state=new wt),jt=St.get,Ot=St.has,Et=St.set;lt=function(t,e){if(Ot.call(St,t))throw new TypeError(bt);return e.facade=t,Et.call(St,t,e),e},ft=function(t){return jt.call(St,t)||{}},ht=function(t){return Ot.call(St,t)}}else{var Tt=yt[pt="state"]||(yt[pt]=H(pt));mt[Tt]=!0,lt=function(t,e){if(U(t,Tt))throw new TypeError(bt);return e.facade=t,ut(t,Tt,e),e},ft=function(t){return U(t,Tt)?t[Tt]:{}},ht=function(t){return U(t,Tt)}}var kt={set:lt,get:ft,has:ht,enforce:function(t){return ht(t)?ft(t):lt(t,{})},getterFor:function(t){return function(e){var n;if(!S(e)||(n=ft(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Lt=Function.prototype,Pt=s&&Object.getOwnPropertyDescriptor,Mt=U(Lt,"name"),Ct={EXISTS:Mt,PROPER:Mt&&"something"===function(){}.name,CONFIGURABLE:Mt&&(!s||s&&Pt(Lt,"name").configurable)},xt=r((function(t){var e=Ct.CONFIGURABLE,n=kt.get,r=kt.enforce,o=String(String).split("String");(t.exports=function(t,n,i,c){var u,s=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:n;w(i)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!U(i,"name")||e&&i.name!==h)&&ut(i,"name",h),(u=r(i)).source||(u.source=o.join("string"==typeof h?h:""))),t!==a?(s?!f&&t[n]&&(l=!0):delete t[n],l?t[n]=i:ut(t,n,i)):l?t[n]=i:F(n,i)})(Function.prototype,"toString",(function(){return w(this)&&n(this).source||vt(this)}))})),At=Math.ceil,It=Math.floor,_t=function(t){var e=+t;return e!=e||0===e?0:(e>0?It:At)(e)},Rt=Math.max,Ft=Math.min,Dt=Math.min,Nt=function(t){return(e=t.length)>0?Dt(_t(e),9007199254740991):0;var e},Gt=function(t){return function(e,n,r){var o,i=b(e),c=Nt(i),a=function(t,e){var n=_t(t);return n<0?Rt(n+e,0):Ft(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}},Kt={includes:Gt(!0),indexOf:Gt(!1)}.indexOf,Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!U(mt,n)&&U(r,n)&&i.push(n);for(;e.length>o;)U(r,n=e[o++])&&(~Kt(i,n)||i.push(n));return i}(t,Bt)}},Vt={f:Object.getOwnPropertySymbols},zt=O("Reflect","ownKeys")||function(t){var e=Ut.f(it(t)),n=Vt.f;return n?e.concat(n(t)):e},Ht=function(t,e){for(var n=zt(e),r=at.f,o=ot.f,i=0;i<n.length;i++){var c=n[i];U(t,c)||r(t,c,o(e,c))}},qt=/#|\.prototype\./,Wt=function(t,e){var n=Xt[Jt(t)];return n==$t||n!=Yt&&(w(e)?u(e):!!e)},Jt=Wt.normalize=function(t){return String(t).replace(qt,".").toLowerCase()},Xt=Wt.data={},Yt=Wt.NATIVE="N",$t=Wt.POLYFILL="P",Qt=Wt,Zt=ot.f,te=function(t,e){var n,r,o,i,c,u=t.target,s=t.global,l=t.stat;if(n=s?a:l?a[u]||F(u,{}):(a[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Zt(n,r))&&c.value:n[r],!Qt(s?r:u+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ht(i,o)}(t.sham||o&&o.sham)&&ut(i,"sham",!0),xt(n,r,i,t)}},ee=Array.isArray||function(t){return"Array"==d(t)},ne=function(t,e,n){var r=Q(e);r in t?at.f(t,r,p(0,n)):t[r]=n},re={};re[X("toStringTag")]="z";var oe,ie="[object z]"===String(re),ce=X("toStringTag"),ae="Arguments"==d(function(){return arguments}()),ue=ie?d: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),ce))?n:ae?d(e):"Object"==(r=d(e))&&w(e.callee)?"Arguments":r},se=[],le=O("Reflect","construct"),fe=/^\s*(?:class|function)\b/,he=fe.exec,pe=!fe.exec((function(){})),ve=function(t){if(!w(t))return!1;try{return le(Object,se,t),!0}catch(t){return!1}},de=!le||u((function(){var t;return ve(ve.call)||!ve(Object)||!ve((function(){t=!0}))||t}))?function(t){if(!w(t))return!1;switch(ue(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pe||!!he.call(fe,vt(t))}:ve,ge=X("species"),ye=function(t,e){return new(function(t){var e;return ee(t)&&(e=t.constructor,(de(e)&&(e===Array||ee(e.prototype))||S(e)&&null===(e=e[ge]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},me=X("species"),be=X("isConcatSpreadable"),we=9007199254740991,Se="Maximum allowed index exceeded",je=M>=51||!u((function(){var t=[];return t[be]=!1,t.concat()[0]!==t})),Oe=(oe="concat",M>=51||!u((function(){var t=[];return(t.constructor={})[me]=function(){return{foo:1}},1!==t[oe](Boolean).foo}))),Ee=function(t){if(!S(t))return!1;var e=t[be];return void 0!==e?!!e:ee(t)};te({target:"Array",proto:!0,forced:!je||!Oe},{concat:function(t){var e,n,r,o,i,c=K(this),a=ye(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Ee(i=-1===e?c:arguments[e])){if(u+(o=Nt(i))>we)throw TypeError(Se);for(n=0;n<o;n++,u++)n in i&&ne(a,u,i[n])}else{if(u>=we)throw TypeError(Se);ne(a,u++,i)}return a.length=u,a}});var Te=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){throw 1},1)}))},ke=[].join,Le=y!=Object,Pe=Te("join",",");te({target:"Array",proto:!0,forced:Le||!Pe},{join:function(t){return ke.call(b(this),void 0===t?",":t)}});var Me=ie?{}.toString:function(){return"[object "+ue(this)+"]"};ie||xt(Object.prototype,"toString",Me,{unsafe:!0});var Ce=a.Promise,xe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return it(n),function(t){if("object"==typeof t||w(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Ae=at.f,Ie=X("toStringTag"),_e=X("species"),Re={},Fe=X("iterator"),De=Array.prototype,Ne=function(t,e,n){if(_(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)}},Ge=X("iterator"),Ke=function(t){if(null!=t)return R(t,Ge)||R(t,"@@iterator")||Re[ue(t)]},Be=function(t,e,n){var r,o;it(t);try{if(!(r=R(t,"return"))){if("throw"===e)throw n;return n}r=r.call(t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return it(r),n},Ue=function(t,e){this.stopped=t,this.result=e},Ve=function(t,e,n){var r,o,i,c,a,u,s,l,f=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),d=Ne(e,f,1+h+v),g=function(t){return r&&Be(r,"normal",t),new Ue(!0,t)},y=function(t){return h?(it(t),v?d(t[0],t[1],g):d(t[0],t[1])):v?d(t,g):d(t)};if(p)r=t;else{if(!(o=Ke(t)))throw TypeError(String(t)+" is not iterable");if(void 0!==(l=o)&&(Re.Array===l||De[Fe]===l)){for(i=0,c=Nt(t);c>i;i++)if((a=y(t[i]))&&a instanceof Ue)return a;return new Ue(!1)}r=function(t,e){var n=arguments.length<2?Ke(t):e;if(_(n))return it(n.call(t));throw TypeError(String(t)+" is not iterable")}(t,o)}for(u=r.next;!(s=u.call(r)).done;){try{a=y(s.value)}catch(t){Be(r,"throw",t)}if("object"==typeof a&&a&&a instanceof Ue)return a}return new Ue(!1)},ze=X("iterator"),He=!1;try{var qe=0,We={next:function(){return{done:!!qe++}},return:function(){He=!0}};We[ze]=function(){return this},Array.from(We,(function(){throw 2}))}catch(t){}var Je,Xe,Ye,$e,Qe=X("species"),Ze=function(t,e){var n,r=it(t).constructor;return void 0===r||null==(n=it(r)[Qe])?e:function(t){if(de(t))return t;throw TypeError(I(t)+" is not a constructor")}(n)},tn=O("document","documentElement"),en=/(?:ipad|iphone|ipod).*applewebkit/i.test(E),nn="process"==d(a.process),rn=a.setImmediate,on=a.clearImmediate,cn=a.process,an=a.MessageChannel,un=a.Dispatch,sn=0,ln={},fn="onreadystatechange";try{Je=a.location}catch(t){}var hn=function(t){if(ln.hasOwnProperty(t)){var e=ln[t];delete ln[t],e()}},pn=function(t){return function(){hn(t)}},vn=function(t){hn(t.data)},dn=function(t){a.postMessage(String(t),Je.protocol+"//"+Je.host)};rn&&on||(rn=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return ln[++sn]=function(){(w(t)?t:Function(t)).apply(void 0,e)},Xe(sn),sn},on=function(t){delete ln[t]},nn?Xe=function(t){cn.nextTick(pn(t))}:un&&un.now?Xe=function(t){un.now(pn(t))}:an&&!en?($e=(Ye=new an).port2,Ye.port1.onmessage=vn,Xe=Ne($e.postMessage,$e,1)):a.addEventListener&&w(a.postMessage)&&!a.importScripts&&Je&&"file:"!==Je.protocol&&!u(dn)?(Xe=dn,a.addEventListener("message",vn,!1)):Xe=fn in et("script")?function(t){tn.appendChild(et("script")).onreadystatechange=function(){tn.removeChild(this),hn(t)}}:function(t){setTimeout(pn(t),0)});var gn,yn,mn,bn,wn,Sn,jn,On,En={set:rn,clear:on},Tn=/ipad|iphone|ipod/i.test(E)&&void 0!==a.Pebble,kn=/web0s(?!.*chrome)/i.test(E),Ln=ot.f,Pn=En.set,Mn=a.MutationObserver||a.WebKitMutationObserver,Cn=a.document,xn=a.process,An=a.Promise,In=Ln(a,"queueMicrotask"),_n=In&&In.value;_n||(gn=function(){var t,e;for(nn&&(t=xn.domain)&&t.exit();yn;){e=yn.fn,yn=yn.next;try{e()}catch(t){throw yn?bn():mn=void 0,t}}mn=void 0,t&&t.enter()},en||nn||kn||!Mn||!Cn?!Tn&&An&&An.resolve?((jn=An.resolve(void 0)).constructor=An,On=jn.then,bn=function(){On.call(jn,gn)}):bn=nn?function(){xn.nextTick(gn)}:function(){Pn.call(a,gn)}:(wn=!0,Sn=Cn.createTextNode(""),new Mn(gn).observe(Sn,{characterData:!0}),bn=function(){Sn.data=wn=!wn}));var Rn,Fn,Dn,Nn,Gn,Kn,Bn,Un=_n||function(t){var e={fn:t,next:void 0};mn&&(mn.next=e),yn||(yn=e,bn()),mn=e},Vn=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=_(e),this.reject=_(n)},zn={f:function(t){return new Vn(t)}},Hn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},qn="object"==typeof window,Wn=En.set,Jn=X("species"),Xn="Promise",Yn=kt.get,$n=kt.set,Qn=kt.getterFor(Xn),Zn=Ce&&Ce.prototype,tr=Ce,er=Zn,nr=a.TypeError,rr=a.document,or=a.process,ir=zn.f,cr=ir,ar=!!(rr&&rr.createEvent&&a.dispatchEvent),ur=w(a.PromiseRejectionEvent),sr="unhandledrejection",lr=!1,fr=Qt(Xn,(function(){var t=vt(tr),e=t!==String(tr);if(!e&&66===M)return!0;if(M>=51&&/native code/.test(t))return!1;var n=new tr((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Jn]=r,!(lr=n.then((function(){}))instanceof r)||!e&&qn&&!ur})),hr=fr||!function(t,e){if(!e&&!He)return!1;var n=!1;try{var r={};r[ze]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){tr.all(t).catch((function(){}))})),pr=function(t){var e;return!(!S(t)||!w(e=t.then))&&e},vr=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Un((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,s=n[i++],l=o?s.ok:s.fail,f=s.resolve,h=s.reject,p=s.domain;try{l?(o||(2===t.rejection&&mr(t),t.rejection=1),!0===l?c=r:(p&&p.enter(),c=l(r),p&&(p.exit(),u=!0)),c===s.promise?h(nr("Promise-chain cycle")):(a=pr(c))?a.call(c,f,h):f(c)):h(r)}catch(t){p&&!u&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&gr(t)}))}},dr=function(t,e,n){var r,o;ar?((r=rr.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!ur&&(o=a["on"+t])?o(r):t===sr&&function(t,e){var n=a.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},gr=function(t){Wn.call(a,(function(){var e,n=t.facade,r=t.value;if(yr(t)&&(e=Hn((function(){nn?or.emit("unhandledRejection",r,n):dr(sr,n,r)})),t.rejection=nn||yr(t)?2:1,e.error))throw e.value}))},yr=function(t){return 1!==t.rejection&&!t.parent},mr=function(t){Wn.call(a,(function(){var e=t.facade;nn?or.emit("rejectionHandled",e):dr("rejectionhandled",e,t.value)}))},br=function(t,e,n){return function(r){t(e,r,n)}},wr=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vr(t,!0))},Sr=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw nr("Promise can't be resolved itself");var r=pr(e);r?Un((function(){var n={done:!1};try{r.call(e,br(Sr,n,t),br(wr,n,t))}catch(e){wr(n,e,t)}})):(t.value=e,t.state=1,vr(t,!1))}catch(e){wr({done:!1},e,t)}}};if(fr&&(er=(tr=function(t){!function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,tr,Xn),_(t),Rn.call(this);var e=Yn(this);try{t(br(Sr,e),br(wr,e))}catch(t){wr(e,t)}}).prototype,(Rn=function(t){$n(this,{type:Xn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)xt(t,r,e[r],n);return t}(er,{then:function(t,e){var n=Qn(this),r=ir(Ze(this,tr));return r.ok=!w(t)||t,r.fail=w(e)&&e,r.domain=nn?or.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&vr(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Fn=function(){var t=new Rn,e=Yn(t);this.promise=t,this.resolve=br(Sr,e),this.reject=br(wr,e)},zn.f=ir=function(t){return t===tr||t===Dn?new Fn(t):cr(t)},w(Ce)&&Zn!==Object.prototype)){Nn=Zn.then,lr||(xt(Zn,"then",(function(t,e){var n=this;return new tr((function(t,e){Nn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),xt(Zn,"catch",er.catch,{unsafe:!0}));try{delete Zn.constructor}catch(t){}xe&&xe(Zn,er)}te({global:!0,wrap:!0,forced:fr},{Promise:tr}),Kn=Xn,Bn=!1,(Gn=tr)&&!U(Gn=Bn?Gn:Gn.prototype,Ie)&&Ae(Gn,Ie,{configurable:!0,value:Kn}),function(t){var e=O(t),n=at.f;s&&e&&!e[_e]&&n(e,_e,{configurable:!0,get:function(){return this}})}(Xn),Dn=O(Xn),te({target:Xn,stat:!0,forced:fr},{reject:function(t){var e=ir(this);return e.reject.call(void 0,t),e.promise}}),te({target:Xn,stat:!0,forced:fr},{resolve:function(t){return function(t,e){if(it(t),S(e)&&e.constructor===t)return e;var n=zn.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),te({target:Xn,stat:!0,forced:hr},{all:function(t){var e=this,n=ir(e),r=n.resolve,o=n.reject,i=Hn((function(){var n=_(e.resolve),i=[],c=0,a=1;Ve(t,(function(t){var u=c++,s=!1;i.push(void 0),a++,n.call(e,t).then((function(t){s||(s=!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=ir(e),r=n.reject,o=Hn((function(){var o=_(e.resolve);Ve(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jr={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},Or=et("span").classList,Er=Or&&Or.constructor&&Or.constructor.prototype,Tr=Er===Object.prototype?void 0:Er,kr=[].push,Lr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,l,f){for(var h,p,v=K(u),d=y(v),g=Ne(s,l,3),m=Nt(d),b=0,w=f||ye,S=e?w(u,m):n||c?w(u,0):void 0;m>b;b++)if((a||b in d)&&(p=g(h=d[b],b,v),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:kr.call(S,h)}else switch(t){case 4:return!1;case 7:kr.call(S,h)}return i?-1:r||o?o:S}},Pr={forEach:Lr(0),map:Lr(1),filter:Lr(2),some:Lr(3),every:Lr(4),find:Lr(5),findIndex:Lr(6),filterReject:Lr(7)}.forEach,Mr=Te("forEach")?[].forEach:function(t){return Pr(this,t,arguments.length>1?arguments[1]:void 0)},Cr=function(t){if(t&&t.forEach!==Mr)try{ut(t,"forEach",Mr)}catch(e){t.forEach=Mr}};for(var xr in jr)jr[xr]&&Cr(a[xr]&&a[xr].prototype);Cr(Tr);var Ar="__googleMapsScriptId",Ir=function(){function t(e){var n=e.apiKey,r=e.channel,o=e.client,i=e.id,c=void 0===i?Ar:i,a=e.libraries,u=void 0===a?[]:a,s=e.language,l=e.region,f=e.version,h=e.mapIds,p=e.nonce,v=e.retries,d=void 0===v?3:v,g=e.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=f,this.apiKey=n,this.channel=r,this.client=o,this.id=c||Ar,this.libraries=u,this.language=s,this.region=l,this.mapIds=h,this.nonce=p,this.retries=d,this.url=y,t.instance){if(!function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var c=i[o];if(!t(e[c],n[c]))return!1}return!0}return e!=e&&n!=n}(this.options,t.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(t.instance.options)));return t.instance}t.instance=this}var n,r,o;return n=t,(r=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),t}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var n=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(n," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),n)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(n.prototype,r),o&&e(n,o),t}();return t.DEFAULT_ID=Ar,t.Loader=Ir,Object.defineProperty(t,"__esModule",{value:!0}),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";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o,i,c=function(t){return t&&t.Math==Math&&t},a=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},s=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=Function.prototype.call,l=f.bind?f.bind(f):function(){return f.apply(f,arguments)},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!h.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.bind,m=g.call,b=y&&y.bind(m),w=y?function(t){return t&&b(m,t)}:function(t){return t&&function(){return m.apply(t,arguments)}},S=w({}.toString),j=w("".slice),O=function(t){return j(S(t),8,-1)},E=a.Object,k=w("".split),T=u((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?k(t,""):E(t)}:E,L=a.TypeError,P=function(t){if(null==t)throw L("Can't call method on "+t);return t},C=function(t){return T(P(t))},M=function(t){return"function"==typeof t},A=function(t){return"object"==typeof t?null!==t:M(t)},x=function(t){return M(t)?t:void 0},F=function(t,e){return arguments.length<2?x(a[t]):a[t]&&a[t][e]},I=w({}.isPrototypeOf),_=F("navigator","userAgent")||"",R=a.process,D=a.Deno,N=R&&R.versions||D&&D.version,G=N&&N.v8;G&&(i=(o=G.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&_&&(!(o=_.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=_.match(/Chrome\/(\d+)/))&&(i=+o[1]);var B=i,K=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41})),U=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=a.Object,z=U?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return M(e)&&I(e.prototype,V(t))},H=a.String,J=function(t){try{return H(t)}catch(t){return"Object"}},q=a.TypeError,W=function(t){if(M(t))return t;throw q(J(t)+" is not a function")},$=function(t,e){var n=t[e];return null==n?void 0:W(n)},X=a.TypeError,Y=Object.defineProperty,Q=function(t,e){try{Y(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},Z="__core-js_shared__",tt=a[Z]||Q(Z,{}),et=r((function(t){(t.exports=function(t,e){return tt[t]||(tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nt=a.Object,rt=function(t){return nt(P(t))},ot=w({}.hasOwnProperty),it=Object.hasOwn||function(t,e){return ot(rt(t),e)},ct=0,at=Math.random(),ut=w(1..toString),st=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ut(++ct+at,36)},ft=et("wks"),lt=a.Symbol,ht=lt&<.for,pt=U?lt:lt&<.withoutSetter||st,dt=function(t){if(!it(ft,t)||!K&&"string"!=typeof ft[t]){var e="Symbol."+t;K&&it(lt,t)?ft[t]=lt[t]:ft[t]=U&&ht?ht(e):pt(e)}return ft[t]},vt=a.TypeError,gt=dt("toPrimitive"),yt=function(t,e){if(!A(t)||z(t))return t;var n,r=$(t,gt);if(r){if(void 0===e&&(e="default"),n=l(r,t,e),!A(n)||z(n))return n;throw vt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&M(n=t.toString)&&!A(r=l(n,t)))return r;if(M(n=t.valueOf)&&!A(r=l(n,t)))return r;if("string"!==e&&M(n=t.toString)&&!A(r=l(n,t)))return r;throw X("Can't convert object to primitive value")}(t,e)},mt=function(t){var e=yt(t,"string");return z(e)?e:e+""},bt=a.document,wt=A(bt)&&A(bt.createElement),St=function(t){return wt?bt.createElement(t):{}},jt=!s&&!u((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),Ot=Object.getOwnPropertyDescriptor,Et={f:s?Ot:function(t,e){if(t=C(t),e=mt(e),jt)try{return Ot(t,e)}catch(t){}if(it(t,e))return v(!l(d.f,t,e),t[e])}},kt=a.String,Tt=a.TypeError,Lt=function(t){if(A(t))return t;throw Tt(kt(t)+" is not an object")},Pt=a.TypeError,Ct=Object.defineProperty,Mt={f:s?Ct:function(t,e,n){if(Lt(t),e=mt(e),Lt(n),jt)try{return Ct(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Pt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},At=s?function(t,e,n){return Mt.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},xt=w(Function.toString);M(tt.inspectSource)||(tt.inspectSource=function(t){return xt(t)});var Ft,It,_t,Rt,Dt=tt.inspectSource,Nt=a.WeakMap,Gt=M(Nt)&&/native code/.test(Dt(Nt)),Bt=et("keys"),Kt={},Ut="Object already initialized",Vt=a.TypeError,zt=a.WeakMap;if(Gt||tt.state){var Ht=tt.state||(tt.state=new zt),Jt=w(Ht.get),qt=w(Ht.has),Wt=w(Ht.set);Ft=function(t,e){if(qt(Ht,t))throw new Vt(Ut);return e.facade=t,Wt(Ht,t,e),e},It=function(t){return Jt(Ht,t)||{}},_t=function(t){return qt(Ht,t)}}else{var $t=Bt[Rt="state"]||(Bt[Rt]=st(Rt));Kt[$t]=!0,Ft=function(t,e){if(it(t,$t))throw new Vt(Ut);return e.facade=t,At(t,$t,e),e},It=function(t){return it(t,$t)?t[$t]:{}},_t=function(t){return it(t,$t)}}var Xt={set:Ft,get:It,has:_t,enforce:function(t){return _t(t)?It(t):Ft(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=It(e)).type!==t)throw Vt("Incompatible receiver, "+t+" required");return n}}},Yt=Function.prototype,Qt=s&&Object.getOwnPropertyDescriptor,Zt=it(Yt,"name"),te={EXISTS:Zt,PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!s||s&&Qt(Yt,"name").configurable)},ee=r((function(t){var e=te.CONFIGURABLE,n=Xt.get,r=Xt.enforce,o=String(String).split("String");(t.exports=function(t,n,i,c){var u,s=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:n;M(i)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!it(i,"name")||e&&i.name!==h)&&At(i,"name",h),(u=r(i)).source||(u.source=o.join("string"==typeof h?h:""))),t!==a?(s?!l&&t[n]&&(f=!0):delete t[n],f?t[n]=i:At(t,n,i)):f?t[n]=i:Q(n,i)})(Function.prototype,"toString",(function(){return M(this)&&n(this).source||Dt(this)}))})),ne=Math.ceil,re=Math.floor,oe=function(t){var e=+t;return e!=e||0===e?0:(e>0?re:ne)(e)},ie=Math.max,ce=Math.min,ae=Math.min,ue=function(t){return(e=t.length)>0?ae(oe(e),9007199254740991):0;var e},se=function(t){return function(e,n,r){var o,i=C(e),c=ue(i),a=function(t,e){var n=oe(t);return n<0?ie(n+e,0):ce(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}},fe={includes:se(!0),indexOf:se(!1)}.indexOf,le=w([].push),he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),pe={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=C(t),o=0,i=[];for(n in r)!it(Kt,n)&&it(r,n)&&le(i,n);for(;e.length>o;)it(r,n=e[o++])&&(~fe(i,n)||le(i,n));return i}(t,he)}},de={f:Object.getOwnPropertySymbols},ve=w([].concat),ge=F("Reflect","ownKeys")||function(t){var e=pe.f(Lt(t)),n=de.f;return n?ve(e,n(t)):e},ye=function(t,e){for(var n=ge(e),r=Mt.f,o=Et.f,i=0;i<n.length;i++){var c=n[i];it(t,c)||r(t,c,o(e,c))}},me=/#|\.prototype\./,be=function(t,e){var n=Se[we(t)];return n==Oe||n!=je&&(M(e)?u(e):!!e)},we=be.normalize=function(t){return String(t).replace(me,".").toLowerCase()},Se=be.data={},je=be.NATIVE="N",Oe=be.POLYFILL="P",Ee=be,ke=Et.f,Te=function(t,e){var n,r,o,i,c,u=t.target,s=t.global,f=t.stat;if(n=s?a:f?a[u]||Q(u,{}):(a[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=ke(n,r))&&c.value:n[r],!Ee(s?r:u+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ye(i,o)}(t.sham||o&&o.sham)&&At(i,"sham",!0),ee(n,r,i,t)}},Le=Array.isArray||function(t){return"Array"==O(t)},Pe=function(t,e,n){var r=mt(e);r in t?Mt.f(t,r,v(0,n)):t[r]=n},Ce={};Ce[dt("toStringTag")]="z";var Me,Ae="[object z]"===String(Ce),xe=dt("toStringTag"),Fe=a.Object,Ie="Arguments"==O(function(){return arguments}()),_e=Ae?O: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=Fe(t),xe))?n:Ie?O(e):"Object"==(r=O(e))&&M(e.callee)?"Arguments":r},Re=function(){},De=[],Ne=F("Reflect","construct"),Ge=/^\s*(?:class|function)\b/,Be=w(Ge.exec),Ke=!Ge.exec(Re),Ue=function(t){if(!M(t))return!1;try{return Ne(Re,De,t),!0}catch(t){return!1}},Ve=!Ne||u((function(){var t;return Ue(Ue.call)||!Ue(Object)||!Ue((function(){t=!0}))||t}))?function(t){if(!M(t))return!1;switch(_e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ke||!!Be(Ge,Dt(t))}:Ue,ze=dt("species"),He=a.Array,Je=function(t,e){return new(function(t){var e;return Le(t)&&(e=t.constructor,(Ve(e)&&(e===He||Le(e.prototype))||A(e)&&null===(e=e[ze]))&&(e=void 0)),void 0===e?He:e}(t))(0===e?0:e)},qe=dt("species"),We=dt("isConcatSpreadable"),$e=9007199254740991,Xe="Maximum allowed index exceeded",Ye=a.TypeError,Qe=B>=51||!u((function(){var t=[];return t[We]=!1,t.concat()[0]!==t})),Ze=(Me="concat",B>=51||!u((function(){var t=[];return(t.constructor={})[qe]=function(){return{foo:1}},1!==t[Me](Boolean).foo}))),tn=function(t){if(!A(t))return!1;var e=t[We];return void 0!==e?!!e:Le(t)};Te({target:"Array",proto:!0,forced:!Qe||!Ze},{concat:function(t){var e,n,r,o,i,c=rt(this),a=Je(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(tn(i=-1===e?c:arguments[e])){if(u+(o=ue(i))>$e)throw Ye(Xe);for(n=0;n<o;n++,u++)n in i&&Pe(a,u,i[n])}else{if(u>=$e)throw Ye(Xe);Pe(a,u++,i)}return a.length=u,a}});var en=Function.prototype,nn=en.apply,rn=en.bind,on=en.call,cn="object"==typeof Reflect&&Reflect.apply||(rn?on.bind(nn):function(){return on.apply(nn,arguments)}),an=a.Array,un=F("JSON","stringify"),sn=w(/./.exec),fn=w("".charAt),ln=w("".charCodeAt),hn=w("".replace),pn=w(1..toString),dn=/[\uD800-\uDFFF]/g,vn=/^[\uD800-\uDBFF]$/,gn=/^[\uDC00-\uDFFF]$/,yn=function(t,e,n){var r=fn(n,e-1),o=fn(n,e+1);return sn(vn,t)&&!sn(gn,o)||sn(gn,t)&&!sn(vn,r)?"\\u"+pn(ln(t,0),16):t},mn=u((function(){return'"\\udf06\\ud834"'!==un("\udf06\ud834")||'"\\udead"'!==un("\udead")}));un&&Te({target:"JSON",stat:!0,forced:mn},{stringify:function(t,e,n){for(var r=0,o=arguments.length,i=an(o);r<o;r++)i[r]=arguments[r];var c=cn(un,null,i);return"string"==typeof c?hn(c,dn,yn):c}});var bn=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){throw 1},1)}))},wn=w([].join),Sn=T!=Object,jn=bn("join",",");Te({target:"Array",proto:!0,forced:Sn||!jn},{join:function(t){return wn(C(this),void 0===t?",":t)}});var On=Ae?{}.toString:function(){return"[object "+_e(this)+"]"};Ae||ee(Object.prototype,"toString",On,{unsafe:!0});var En=a.Promise,kn=a.String,Tn=a.TypeError,Ln=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Lt(n),function(t){if("object"==typeof t||M(t))return t;throw Tn("Can't set "+kn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Pn=Mt.f,Cn=dt("toStringTag"),Mn=dt("species"),An=a.TypeError,xn=w(w.bind),Fn=function(t,e){return W(t),void 0===e?t:xn?xn(t,e):function(){return t.apply(e,arguments)}},In={},_n=dt("iterator"),Rn=Array.prototype,Dn=dt("iterator"),Nn=function(t){if(null!=t)return $(t,Dn)||$(t,"@@iterator")||In[_e(t)]},Gn=a.TypeError,Bn=function(t,e,n){var r,o;Lt(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=l(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Lt(r),n},Kn=a.TypeError,Un=function(t,e){this.stopped=t,this.result=e},Vn=Un.prototype,zn=function(t,e,n){var r,o,i,c,a,u,s,f,h=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Fn(e,h),y=function(t){return r&&Bn(r,"normal",t),new Un(!0,t)},m=function(t){return p?(Lt(t),v?g(t[0],t[1],y):g(t[0],t[1])):v?g(t,y):g(t)};if(d)r=t;else{if(!(o=Nn(t)))throw Kn(J(t)+" is not iterable");if(void 0!==(f=o)&&(In.Array===f||Rn[_n]===f)){for(i=0,c=ue(t);c>i;i++)if((a=m(t[i]))&&I(Vn,a))return a;return new Un(!1)}r=function(t,e){var n=arguments.length<2?Nn(t):e;if(W(n))return Lt(l(n,t));throw Gn(J(t)+" is not iterable")}(t,o)}for(u=r.next;!(s=l(u,r)).done;){try{a=m(s.value)}catch(t){Bn(r,"throw",t)}if("object"==typeof a&&a&&I(Vn,a))return a}return new Un(!1)},Hn=dt("iterator"),Jn=!1;try{var qn=0,Wn={next:function(){return{done:!!qn++}},return:function(){Jn=!0}};Wn[Hn]=function(){return this},Array.from(Wn,(function(){throw 2}))}catch(t){}var $n,Xn,Yn,Qn,Zn=a.TypeError,tr=dt("species"),er=function(t,e){var n,r=Lt(t).constructor;return void 0===r||null==(n=Lt(r)[tr])?e:function(t){if(Ve(t))return t;throw Zn(J(t)+" is not a constructor")}(n)},nr=F("document","documentElement"),rr=w([].slice),or=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),ir="process"==O(a.process),cr=a.setImmediate,ar=a.clearImmediate,ur=a.process,sr=a.Dispatch,fr=a.Function,lr=a.MessageChannel,hr=a.String,pr=0,dr={},vr="onreadystatechange";try{$n=a.location}catch(t){}var gr=function(t){if(it(dr,t)){var e=dr[t];delete dr[t],e()}},yr=function(t){return function(){gr(t)}},mr=function(t){gr(t.data)},br=function(t){a.postMessage(hr(t),$n.protocol+"//"+$n.host)};cr&&ar||(cr=function(t){var e=rr(arguments,1);return dr[++pr]=function(){cn(M(t)?t:fr(t),void 0,e)},Xn(pr),pr},ar=function(t){delete dr[t]},ir?Xn=function(t){ur.nextTick(yr(t))}:sr&&sr.now?Xn=function(t){sr.now(yr(t))}:lr&&!or?(Qn=(Yn=new lr).port2,Yn.port1.onmessage=mr,Xn=Fn(Qn.postMessage,Qn)):a.addEventListener&&M(a.postMessage)&&!a.importScripts&&$n&&"file:"!==$n.protocol&&!u(br)?(Xn=br,a.addEventListener("message",mr,!1)):Xn=vr in St("script")?function(t){nr.appendChild(St("script")).onreadystatechange=function(){nr.removeChild(this),gr(t)}}:function(t){setTimeout(yr(t),0)});var wr,Sr,jr,Or,Er,kr,Tr,Lr,Pr={set:cr,clear:ar},Cr=/ipad|iphone|ipod/i.test(_)&&void 0!==a.Pebble,Mr=/web0s(?!.*chrome)/i.test(_),Ar=Et.f,xr=Pr.set,Fr=a.MutationObserver||a.WebKitMutationObserver,Ir=a.document,_r=a.process,Rr=a.Promise,Dr=Ar(a,"queueMicrotask"),Nr=Dr&&Dr.value;Nr||(wr=function(){var t,e;for(ir&&(t=_r.domain)&&t.exit();Sr;){e=Sr.fn,Sr=Sr.next;try{e()}catch(t){throw Sr?Or():jr=void 0,t}}jr=void 0,t&&t.enter()},or||ir||Mr||!Fr||!Ir?!Cr&&Rr&&Rr.resolve?((Tr=Rr.resolve(void 0)).constructor=Rr,Lr=Fn(Tr.then,Tr),Or=function(){Lr(wr)}):ir?Or=function(){_r.nextTick(wr)}:(xr=Fn(xr,a),Or=function(){xr(wr)}):(Er=!0,kr=Ir.createTextNode(""),new Fr(wr).observe(kr,{characterData:!0}),Or=function(){kr.data=Er=!Er}));var Gr,Br,Kr,Ur,Vr,zr,Hr,Jr=Nr||function(t){var e={fn:t,next:void 0};jr&&(jr.next=e),Sr||(Sr=e,Or()),jr=e},qr=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=W(e),this.reject=W(n)},Wr={f:function(t){return new qr(t)}},$r=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Xr="object"==typeof window,Yr=Pr.set,Qr=dt("species"),Zr="Promise",to=Xt.get,eo=Xt.set,no=Xt.getterFor(Zr),ro=En&&En.prototype,oo=En,io=ro,co=a.TypeError,ao=a.document,uo=a.process,so=Wr.f,fo=so,lo=!!(ao&&ao.createEvent&&a.dispatchEvent),ho=M(a.PromiseRejectionEvent),po="unhandledrejection",vo=!1,go=Ee(Zr,(function(){var t=Dt(oo),e=t!==String(oo);if(!e&&66===B)return!0;if(B>=51&&/native code/.test(t))return!1;var n=new oo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Qr]=r,!(vo=n.then((function(){}))instanceof r)||!e&&Xr&&!ho})),yo=go||!function(t,e){if(!e&&!Jn)return!1;var n=!1;try{var r={};r[Hn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){oo.all(t).catch((function(){}))})),mo=function(t){var e;return!(!A(t)||!M(e=t.then))&&e},bo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Jr((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,s=n[i++],f=o?s.ok:s.fail,h=s.resolve,p=s.reject,d=s.domain;try{f?(o||(2===t.rejection&&Oo(t),t.rejection=1),!0===f?c=r:(d&&d.enter(),c=f(r),d&&(d.exit(),u=!0)),c===s.promise?p(co("Promise-chain cycle")):(a=mo(c))?l(a,c,h,p):h(c)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&So(t)}))}},wo=function(t,e,n){var r,o;lo?((r=ao.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!ho&&(o=a["on"+t])?o(r):t===po&&function(t,e){var n=a.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},So=function(t){l(Yr,a,(function(){var e,n=t.facade,r=t.value;if(jo(t)&&(e=$r((function(){ir?uo.emit("unhandledRejection",r,n):wo(po,n,r)})),t.rejection=ir||jo(t)?2:1,e.error))throw e.value}))},jo=function(t){return 1!==t.rejection&&!t.parent},Oo=function(t){l(Yr,a,(function(){var e=t.facade;ir?uo.emit("rejectionHandled",e):wo("rejectionhandled",e,t.value)}))},Eo=function(t,e,n){return function(r){t(e,r,n)}},ko=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,bo(t,!0))},To=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw co("Promise can't be resolved itself");var r=mo(e);r?Jr((function(){var n={done:!1};try{l(r,e,Eo(To,n,t),Eo(ko,n,t))}catch(e){ko(n,e,t)}})):(t.value=e,t.state=1,bo(t,!1))}catch(e){ko({done:!1},e,t)}}};if(go&&(io=(oo=function(t){!function(t,e){if(I(e,t))return t;throw An("Incorrect invocation")}(this,io),W(t),l(Gr,this);var e=to(this);try{t(Eo(To,e),Eo(ko,e))}catch(t){ko(e,t)}}).prototype,(Gr=function(t){eo(this,{type:Zr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)ee(t,r,e[r],n);return t}(io,{then:function(t,e){var n=no(this),r=n.reactions,o=so(er(this,oo));return o.ok=!M(t)||t,o.fail=M(e)&&e,o.domain=ir?uo.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bo(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Br=function(){var t=new Gr,e=to(t);this.promise=t,this.resolve=Eo(To,e),this.reject=Eo(ko,e)},Wr.f=so=function(t){return t===oo||t===Kr?new Br(t):fo(t)},M(En)&&ro!==Object.prototype)){Ur=ro.then,vo||(ee(ro,"then",(function(t,e){var n=this;return new oo((function(t,e){l(Ur,n,t,e)})).then(t,e)}),{unsafe:!0}),ee(ro,"catch",io.catch,{unsafe:!0}));try{delete ro.constructor}catch(t){}Ln&&Ln(ro,io)}Te({global:!0,wrap:!0,forced:go},{Promise:oo}),zr=Zr,Hr=!1,(Vr=oo)&&!it(Vr=Hr?Vr:Vr.prototype,Cn)&&Pn(Vr,Cn,{configurable:!0,value:zr}),function(t){var e=F(t),n=Mt.f;s&&e&&!e[Mn]&&n(e,Mn,{configurable:!0,get:function(){return this}})}(Zr),Kr=F(Zr),Te({target:Zr,stat:!0,forced:go},{reject:function(t){var e=so(this);return l(e.reject,void 0,t),e.promise}}),Te({target:Zr,stat:!0,forced:go},{resolve:function(t){return function(t,e){if(Lt(t),A(e)&&e.constructor===t)return e;var n=Wr.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Te({target:Zr,stat:!0,forced:yo},{all:function(t){var e=this,n=so(e),r=n.resolve,o=n.reject,i=$r((function(){var n=W(e.resolve),i=[],c=0,a=1;zn(t,(function(t){var u=c++,s=!1;a++,l(n,e,t).then((function(t){s||(s=!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=so(e),r=n.reject,o=$r((function(){var o=W(e.resolve);zn(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Lo={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},Po=St("span").classList,Co=Po&&Po.constructor&&Po.constructor.prototype,Mo=Co===Object.prototype?void 0:Co,Ao=w([].push),xo=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,f,l){for(var h,p,d=rt(u),v=T(d),g=Fn(s,f),y=ue(v),m=0,b=l||Je,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in v)&&(p=g(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Ao(w,h)}else switch(t){case 4:return!1;case 7:Ao(w,h)}return i?-1:r||o?o:w}},Fo={forEach:xo(0),map:xo(1),filter:xo(2),some:xo(3),every:xo(4),find:xo(5),findIndex:xo(6),filterReject:xo(7)}.forEach,Io=bn("forEach")?[].forEach:function(t){return Fo(this,t,arguments.length>1?arguments[1]:void 0)},_o=function(t){if(t&&t.forEach!==Io)try{At(t,"forEach",Io)}catch(e){t.forEach=Io}};for(var Ro in Lo)Lo[Ro]&&_o(a[Ro]&&a[Ro].prototype);_o(Mo);var Do="__googleMapsScriptId",No=function(){function t(e){var n=e.apiKey,r=e.channel,o=e.client,i=e.id,c=void 0===i?Do:i,a=e.libraries,u=void 0===a?[]:a,s=e.language,f=e.region,l=e.version,h=e.mapIds,p=e.nonce,d=e.retries,v=void 0===d?3:d,g=e.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=l,this.apiKey=n,this.channel=r,this.client=o,this.id=c||Do,this.libraries=u,this.language=s,this.region=f,this.mapIds=h,this.nonce=p,this.retries=v,this.url=y,t.instance){if(!function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var c=i[o];if(!t(e[c],n[c]))return!1}return!0}return e!=e&&n!=n}(this.options,t.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(t.instance.options)));return t.instance}t.instance=this}var n,r,o;return n=t,(r=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),t}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var n=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(n," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),n)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(n.prototype,r),o&&e(n,o),t}();return t.DEFAULT_ID=Do,t.Loader=No,Object.defineProperty(t,"__esModule",{value:!0}),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="undefined"!=typeof globalThis?globalThis: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";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o,i,c=function(t){return t&&t.Math==Math&&t},a=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},s=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!l.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:l},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,v=function(t){return d.call(t).slice(8,-1)},g="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?g.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(m(t))},w=function(t){return"function"==typeof t},S=function(t){return"object"==typeof t?null!==t:w(t)},j=function(t){return w(t)?t:void 0},O=function(t,e){return arguments.length<2?j(a[t]):a[t]&&a[t][e]},E=O("navigator","userAgent")||"",T=a.process,k=a.Deno,L=T&&T.versions||k&&k.version,P=L&&L.v8;P?i=(o=P.split("."))[0]<4?1:o[0]+o[1]:E&&(!(o=E.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=E.match(/Chrome\/(\d+)/))&&(i=o[1]);var x=i&&+i,M=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&x&&x<41})),C=M&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,A=C?function(t){return"symbol"==typeof t}:function(t){var e=O("Symbol");return w(e)&&Object(t)instanceof e},I=function(t){try{return String(t)}catch(t){return"Object"}},_=function(t){if(w(t))return t;throw TypeError(I(t)+" is not a function")},R=function(t,e){var n=t[e];return null==n?void 0:_(n)},F=function(t,e){try{Object.defineProperty(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},D="__core-js_shared__",N=a[D]||F(D,{}),G=r((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),K=function(t){return Object(m(t))},B={}.hasOwnProperty,U=Object.hasOwn||function(t,e){return B.call(K(t),e)},V=0,z=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+z).toString(36)},q=G("wks"),W=a.Symbol,J=C?W:W&&W.withoutSetter||H,X=function(t){return U(q,t)&&(M||"string"==typeof q[t])||(M&&U(W,t)?q[t]=W[t]:q[t]=J("Symbol."+t)),q[t]},Y=X("toPrimitive"),$=function(t,e){if(!S(t)||A(t))return t;var n,r=R(t,Y);if(r){if(void 0===e&&(e="default"),n=r.call(t,e),!S(n)||A(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&w(n=t.toString)&&!S(r=n.call(t)))return r;if(w(n=t.valueOf)&&!S(r=n.call(t)))return r;if("string"!==e&&w(n=t.toString)&&!S(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(t,e)},Q=function(t){var e=$(t,"string");return A(e)?e:String(e)},Z=a.document,tt=S(Z)&&S(Z.createElement),et=function(t){return tt?Z.createElement(t):{}},nt=!s&&!u((function(){return 7!=Object.defineProperty(et("div"),"a",{get:function(){return 7}}).a})),rt=Object.getOwnPropertyDescriptor,ot={f:s?rt:function(t,e){if(t=b(t),e=Q(e),nt)try{return rt(t,e)}catch(t){}if(U(t,e))return p(!h.f.call(t,e),t[e])}},it=function(t){if(S(t))return t;throw TypeError(String(t)+" is not an object")},ct=Object.defineProperty,at={f:s?ct:function(t,e,n){if(it(t),e=Q(e),it(n),nt)try{return ct(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}},ut=s?function(t,e,n){return at.f(t,e,p(1,n))}:function(t,e,n){return t[e]=n,t},st=Function.toString;w(N.inspectSource)||(N.inspectSource=function(t){return st.call(t)});var lt,ft,ht,pt,dt=N.inspectSource,vt=a.WeakMap,gt=w(vt)&&/native code/.test(dt(vt)),yt=G("keys"),mt={},bt="Object already initialized",wt=a.WeakMap;if(gt||N.state){var St=N.state||(N.state=new wt),jt=St.get,Ot=St.has,Et=St.set;lt=function(t,e){if(Ot.call(St,t))throw new TypeError(bt);return e.facade=t,Et.call(St,t,e),e},ft=function(t){return jt.call(St,t)||{}},ht=function(t){return Ot.call(St,t)}}else{var Tt=yt[pt="state"]||(yt[pt]=H(pt));mt[Tt]=!0,lt=function(t,e){if(U(t,Tt))throw new TypeError(bt);return e.facade=t,ut(t,Tt,e),e},ft=function(t){return U(t,Tt)?t[Tt]:{}},ht=function(t){return U(t,Tt)}}var kt={set:lt,get:ft,has:ht,enforce:function(t){return ht(t)?ft(t):lt(t,{})},getterFor:function(t){return function(e){var n;if(!S(e)||(n=ft(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Lt=Function.prototype,Pt=s&&Object.getOwnPropertyDescriptor,xt=U(Lt,"name"),Mt={EXISTS:xt,PROPER:xt&&"something"===function(){}.name,CONFIGURABLE:xt&&(!s||s&&Pt(Lt,"name").configurable)},Ct=r((function(t){var e=Mt.CONFIGURABLE,n=kt.get,r=kt.enforce,o=String(String).split("String");(t.exports=function(t,n,i,c){var u,s=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:n;w(i)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!U(i,"name")||e&&i.name!==h)&&ut(i,"name",h),(u=r(i)).source||(u.source=o.join("string"==typeof h?h:""))),t!==a?(s?!f&&t[n]&&(l=!0):delete t[n],l?t[n]=i:ut(t,n,i)):l?t[n]=i:F(n,i)})(Function.prototype,"toString",(function(){return w(this)&&n(this).source||dt(this)}))})),At=Math.ceil,It=Math.floor,_t=function(t){var e=+t;return e!=e||0===e?0:(e>0?It:At)(e)},Rt=Math.max,Ft=Math.min,Dt=Math.min,Nt=function(t){return(e=t.length)>0?Dt(_t(e),9007199254740991):0;var e},Gt=function(t){return function(e,n,r){var o,i=b(e),c=Nt(i),a=function(t,e){var n=_t(t);return n<0?Rt(n+e,0):Ft(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}},Kt={includes:Gt(!0),indexOf:Gt(!1)}.indexOf,Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!U(mt,n)&&U(r,n)&&i.push(n);for(;e.length>o;)U(r,n=e[o++])&&(~Kt(i,n)||i.push(n));return i}(t,Bt)}},Vt={f:Object.getOwnPropertySymbols},zt=O("Reflect","ownKeys")||function(t){var e=Ut.f(it(t)),n=Vt.f;return n?e.concat(n(t)):e},Ht=function(t,e){for(var n=zt(e),r=at.f,o=ot.f,i=0;i<n.length;i++){var c=n[i];U(t,c)||r(t,c,o(e,c))}},qt=/#|\.prototype\./,Wt=function(t,e){var n=Xt[Jt(t)];return n==$t||n!=Yt&&(w(e)?u(e):!!e)},Jt=Wt.normalize=function(t){return String(t).replace(qt,".").toLowerCase()},Xt=Wt.data={},Yt=Wt.NATIVE="N",$t=Wt.POLYFILL="P",Qt=Wt,Zt=ot.f,te=function(t,e){var n,r,o,i,c,u=t.target,s=t.global,l=t.stat;if(n=s?a:l?a[u]||F(u,{}):(a[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Zt(n,r))&&c.value:n[r],!Qt(s?r:u+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ht(i,o)}(t.sham||o&&o.sham)&&ut(i,"sham",!0),Ct(n,r,i,t)}},ee=Array.isArray||function(t){return"Array"==v(t)},ne=function(t,e,n){var r=Q(e);r in t?at.f(t,r,p(0,n)):t[r]=n},re={};re[X("toStringTag")]="z";var oe,ie="[object z]"===String(re),ce=X("toStringTag"),ae="Arguments"==v(function(){return arguments}()),ue=ie?v: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),ce))?n:ae?v(e):"Object"==(r=v(e))&&w(e.callee)?"Arguments":r},se=[],le=O("Reflect","construct"),fe=/^\s*(?:class|function)\b/,he=fe.exec,pe=!fe.exec((function(){})),de=function(t){if(!w(t))return!1;try{return le(Object,se,t),!0}catch(t){return!1}},ve=!le||u((function(){var t;return de(de.call)||!de(Object)||!de((function(){t=!0}))||t}))?function(t){if(!w(t))return!1;switch(ue(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pe||!!he.call(fe,dt(t))}:de,ge=X("species"),ye=function(t,e){return new(function(t){var e;return ee(t)&&(e=t.constructor,(ve(e)&&(e===Array||ee(e.prototype))||S(e)&&null===(e=e[ge]))&&(e=void 0)),void 0===e?Array:e}(t))(0===e?0:e)},me=X("species"),be=X("isConcatSpreadable"),we=9007199254740991,Se="Maximum allowed index exceeded",je=x>=51||!u((function(){var t=[];return t[be]=!1,t.concat()[0]!==t})),Oe=(oe="concat",x>=51||!u((function(){var t=[];return(t.constructor={})[me]=function(){return{foo:1}},1!==t[oe](Boolean).foo}))),Ee=function(t){if(!S(t))return!1;var e=t[be];return void 0!==e?!!e:ee(t)};te({target:"Array",proto:!0,forced:!je||!Oe},{concat:function(t){var e,n,r,o,i,c=K(this),a=ye(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Ee(i=-1===e?c:arguments[e])){if(u+(o=Nt(i))>we)throw TypeError(Se);for(n=0;n<o;n++,u++)n in i&&ne(a,u,i[n])}else{if(u>=we)throw TypeError(Se);ne(a,u++,i)}return a.length=u,a}});var Te=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){throw 1},1)}))},ke=[].join,Le=y!=Object,Pe=Te("join",",");te({target:"Array",proto:!0,forced:Le||!Pe},{join:function(t){return ke.call(b(this),void 0===t?",":t)}});var xe=ie?{}.toString:function(){return"[object "+ue(this)+"]"};ie||Ct(Object.prototype,"toString",xe,{unsafe:!0});var Me=a.Promise,Ce=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return it(n),function(t){if("object"==typeof t||w(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Ae=at.f,Ie=X("toStringTag"),_e=X("species"),Re={},Fe=X("iterator"),De=Array.prototype,Ne=function(t,e,n){if(_(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)}},Ge=X("iterator"),Ke=function(t){if(null!=t)return R(t,Ge)||R(t,"@@iterator")||Re[ue(t)]},Be=function(t,e,n){var r,o;it(t);try{if(!(r=R(t,"return"))){if("throw"===e)throw n;return n}r=r.call(t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return it(r),n},Ue=function(t,e){this.stopped=t,this.result=e},Ve=function(t,e,n){var r,o,i,c,a,u,s,l,f=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=Ne(e,f,1+h+d),g=function(t){return r&&Be(r,"normal",t),new Ue(!0,t)},y=function(t){return h?(it(t),d?v(t[0],t[1],g):v(t[0],t[1])):d?v(t,g):v(t)};if(p)r=t;else{if(!(o=Ke(t)))throw TypeError(String(t)+" is not iterable");if(void 0!==(l=o)&&(Re.Array===l||De[Fe]===l)){for(i=0,c=Nt(t);c>i;i++)if((a=y(t[i]))&&a instanceof Ue)return a;return new Ue(!1)}r=function(t,e){var n=arguments.length<2?Ke(t):e;if(_(n))return it(n.call(t));throw TypeError(String(t)+" is not iterable")}(t,o)}for(u=r.next;!(s=u.call(r)).done;){try{a=y(s.value)}catch(t){Be(r,"throw",t)}if("object"==typeof a&&a&&a instanceof Ue)return a}return new Ue(!1)},ze=X("iterator"),He=!1;try{var qe=0,We={next:function(){return{done:!!qe++}},return:function(){He=!0}};We[ze]=function(){return this},Array.from(We,(function(){throw 2}))}catch(t){}var Je,Xe,Ye,$e,Qe=X("species"),Ze=function(t,e){var n,r=it(t).constructor;return void 0===r||null==(n=it(r)[Qe])?e:function(t){if(ve(t))return t;throw TypeError(I(t)+" is not a constructor")}(n)},tn=O("document","documentElement"),en=/(?:ipad|iphone|ipod).*applewebkit/i.test(E),nn="process"==v(a.process),rn=a.setImmediate,on=a.clearImmediate,cn=a.process,an=a.MessageChannel,un=a.Dispatch,sn=0,ln={},fn="onreadystatechange";try{Je=a.location}catch(t){}var hn=function(t){if(ln.hasOwnProperty(t)){var e=ln[t];delete ln[t],e()}},pn=function(t){return function(){hn(t)}},dn=function(t){hn(t.data)},vn=function(t){a.postMessage(String(t),Je.protocol+"//"+Je.host)};rn&&on||(rn=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return ln[++sn]=function(){(w(t)?t:Function(t)).apply(void 0,e)},Xe(sn),sn},on=function(t){delete ln[t]},nn?Xe=function(t){cn.nextTick(pn(t))}:un&&un.now?Xe=function(t){un.now(pn(t))}:an&&!en?($e=(Ye=new an).port2,Ye.port1.onmessage=dn,Xe=Ne($e.postMessage,$e,1)):a.addEventListener&&w(a.postMessage)&&!a.importScripts&&Je&&"file:"!==Je.protocol&&!u(vn)?(Xe=vn,a.addEventListener("message",dn,!1)):Xe=fn in et("script")?function(t){tn.appendChild(et("script")).onreadystatechange=function(){tn.removeChild(this),hn(t)}}:function(t){setTimeout(pn(t),0)});var gn,yn,mn,bn,wn,Sn,jn,On,En={set:rn,clear:on},Tn=/ipad|iphone|ipod/i.test(E)&&void 0!==a.Pebble,kn=/web0s(?!.*chrome)/i.test(E),Ln=ot.f,Pn=En.set,xn=a.MutationObserver||a.WebKitMutationObserver,Mn=a.document,Cn=a.process,An=a.Promise,In=Ln(a,"queueMicrotask"),_n=In&&In.value;_n||(gn=function(){var t,e;for(nn&&(t=Cn.domain)&&t.exit();yn;){e=yn.fn,yn=yn.next;try{e()}catch(t){throw yn?bn():mn=void 0,t}}mn=void 0,t&&t.enter()},en||nn||kn||!xn||!Mn?!Tn&&An&&An.resolve?((jn=An.resolve(void 0)).constructor=An,On=jn.then,bn=function(){On.call(jn,gn)}):bn=nn?function(){Cn.nextTick(gn)}:function(){Pn.call(a,gn)}:(wn=!0,Sn=Mn.createTextNode(""),new xn(gn).observe(Sn,{characterData:!0}),bn=function(){Sn.data=wn=!wn}));var Rn,Fn,Dn,Nn,Gn,Kn,Bn,Un=_n||function(t){var e={fn:t,next:void 0};mn&&(mn.next=e),yn||(yn=e,bn()),mn=e},Vn=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=_(e),this.reject=_(n)},zn={f:function(t){return new Vn(t)}},Hn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},qn="object"==typeof window,Wn=En.set,Jn=X("species"),Xn="Promise",Yn=kt.get,$n=kt.set,Qn=kt.getterFor(Xn),Zn=Me&&Me.prototype,tr=Me,er=Zn,nr=a.TypeError,rr=a.document,or=a.process,ir=zn.f,cr=ir,ar=!!(rr&&rr.createEvent&&a.dispatchEvent),ur=w(a.PromiseRejectionEvent),sr="unhandledrejection",lr=!1,fr=Qt(Xn,(function(){var t=dt(tr),e=t!==String(tr);if(!e&&66===x)return!0;if(x>=51&&/native code/.test(t))return!1;var n=new tr((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Jn]=r,!(lr=n.then((function(){}))instanceof r)||!e&&qn&&!ur})),hr=fr||!function(t,e){if(!e&&!He)return!1;var n=!1;try{var r={};r[ze]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){tr.all(t).catch((function(){}))})),pr=function(t){var e;return!(!S(t)||!w(e=t.then))&&e},dr=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Un((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,s=n[i++],l=o?s.ok:s.fail,f=s.resolve,h=s.reject,p=s.domain;try{l?(o||(2===t.rejection&&mr(t),t.rejection=1),!0===l?c=r:(p&&p.enter(),c=l(r),p&&(p.exit(),u=!0)),c===s.promise?h(nr("Promise-chain cycle")):(a=pr(c))?a.call(c,f,h):f(c)):h(r)}catch(t){p&&!u&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&gr(t)}))}},vr=function(t,e,n){var r,o;ar?((r=rr.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!ur&&(o=a["on"+t])?o(r):t===sr&&function(t,e){var n=a.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},gr=function(t){Wn.call(a,(function(){var e,n=t.facade,r=t.value;if(yr(t)&&(e=Hn((function(){nn?or.emit("unhandledRejection",r,n):vr(sr,n,r)})),t.rejection=nn||yr(t)?2:1,e.error))throw e.value}))},yr=function(t){return 1!==t.rejection&&!t.parent},mr=function(t){Wn.call(a,(function(){var e=t.facade;nn?or.emit("rejectionHandled",e):vr("rejectionhandled",e,t.value)}))},br=function(t,e,n){return function(r){t(e,r,n)}},wr=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,dr(t,!0))},Sr=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw nr("Promise can't be resolved itself");var r=pr(e);r?Un((function(){var n={done:!1};try{r.call(e,br(Sr,n,t),br(wr,n,t))}catch(e){wr(n,e,t)}})):(t.value=e,t.state=1,dr(t,!1))}catch(e){wr({done:!1},e,t)}}};if(fr&&(er=(tr=function(t){!function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,tr,Xn),_(t),Rn.call(this);var e=Yn(this);try{t(br(Sr,e),br(wr,e))}catch(t){wr(e,t)}}).prototype,(Rn=function(t){$n(this,{type:Xn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)Ct(t,r,e[r],n);return t}(er,{then:function(t,e){var n=Qn(this),r=ir(Ze(this,tr));return r.ok=!w(t)||t,r.fail=w(e)&&e,r.domain=nn?or.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&dr(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Fn=function(){var t=new Rn,e=Yn(t);this.promise=t,this.resolve=br(Sr,e),this.reject=br(wr,e)},zn.f=ir=function(t){return t===tr||t===Dn?new Fn(t):cr(t)},w(Me)&&Zn!==Object.prototype)){Nn=Zn.then,lr||(Ct(Zn,"then",(function(t,e){var n=this;return new tr((function(t,e){Nn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),Ct(Zn,"catch",er.catch,{unsafe:!0}));try{delete Zn.constructor}catch(t){}Ce&&Ce(Zn,er)}te({global:!0,wrap:!0,forced:fr},{Promise:tr}),Kn=Xn,Bn=!1,(Gn=tr)&&!U(Gn=Bn?Gn:Gn.prototype,Ie)&&Ae(Gn,Ie,{configurable:!0,value:Kn}),function(t){var e=O(t),n=at.f;s&&e&&!e[_e]&&n(e,_e,{configurable:!0,get:function(){return this}})}(Xn),Dn=O(Xn),te({target:Xn,stat:!0,forced:fr},{reject:function(t){var e=ir(this);return e.reject.call(void 0,t),e.promise}}),te({target:Xn,stat:!0,forced:fr},{resolve:function(t){return function(t,e){if(it(t),S(e)&&e.constructor===t)return e;var n=zn.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),te({target:Xn,stat:!0,forced:hr},{all:function(t){var e=this,n=ir(e),r=n.resolve,o=n.reject,i=Hn((function(){var n=_(e.resolve),i=[],c=0,a=1;Ve(t,(function(t){var u=c++,s=!1;i.push(void 0),a++,n.call(e,t).then((function(t){s||(s=!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=ir(e),r=n.reject,o=Hn((function(){var o=_(e.resolve);Ve(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jr={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},Or=et("span").classList,Er=Or&&Or.constructor&&Or.constructor.prototype,Tr=Er===Object.prototype?void 0:Er,kr=[].push,Lr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,l,f){for(var h,p,d=K(u),v=y(d),g=Ne(s,l,3),m=Nt(v),b=0,w=f||ye,S=e?w(u,m):n||c?w(u,0):void 0;m>b;b++)if((a||b in v)&&(p=g(h=v[b],b,d),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:kr.call(S,h)}else switch(t){case 4:return!1;case 7:kr.call(S,h)}return i?-1:r||o?o:S}},Pr={forEach:Lr(0),map:Lr(1),filter:Lr(2),some:Lr(3),every:Lr(4),find:Lr(5),findIndex:Lr(6),filterReject:Lr(7)}.forEach,xr=Te("forEach")?[].forEach:function(t){return Pr(this,t,arguments.length>1?arguments[1]:void 0)},Mr=function(t){if(t&&t.forEach!==xr)try{ut(t,"forEach",xr)}catch(e){t.forEach=xr}};for(var Cr in jr)jr[Cr]&&Mr(a[Cr]&&a[Cr].prototype);Mr(Tr);var Ar="__googleMapsScriptId",Ir=function(){function t(e){var n=e.apiKey,r=e.channel,o=e.client,i=e.id,c=void 0===i?Ar:i,a=e.libraries,u=void 0===a?[]:a,s=e.language,l=e.region,f=e.version,h=e.mapIds,p=e.nonce,d=e.retries,v=void 0===d?3:d,g=e.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=f,this.apiKey=n,this.channel=r,this.client=o,this.id=c||Ar,this.libraries=u,this.language=s,this.region=l,this.mapIds=h,this.nonce=p,this.retries=v,this.url=y,t.instance){if(!function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var c=i[o];if(!t(e[c],n[c]))return!1}return!0}return e!=e&&n!=n}(this.options,t.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(t.instance.options)));return t.instance}t.instance=this}var n,r,o;return n=t,(r=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),t}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var n=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(n," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),n)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(n.prototype,r),o&&e(n,o),t}();t.DEFAULT_ID=Ar,t.Loader=Ir,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="undefined"!=typeof globalThis?globalThis: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";function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o,i,c=function(t){return t&&t.Math==Math&&t},a=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},s=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=Function.prototype.call,l=f.bind?f.bind(f):function(){return f.apply(f,arguments)},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!h.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:h},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.bind,m=g.call,b=y&&y.bind(m),w=y?function(t){return t&&b(m,t)}:function(t){return t&&function(){return m.apply(t,arguments)}},S=w({}.toString),j=w("".slice),O=function(t){return j(S(t),8,-1)},E=a.Object,T=w("".split),k=u((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?T(t,""):E(t)}:E,L=a.TypeError,P=function(t){if(null==t)throw L("Can't call method on "+t);return t},x=function(t){return k(P(t))},C=function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:C(t)},A=function(t){return C(t)?t:void 0},F=function(t,e){return arguments.length<2?A(a[t]):a[t]&&a[t][e]},I=w({}.isPrototypeOf),_=F("navigator","userAgent")||"",R=a.process,D=a.Deno,N=R&&R.versions||D&&D.version,G=N&&N.v8;G&&(i=(o=G.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&_&&(!(o=_.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=_.match(/Chrome\/(\d+)/))&&(i=+o[1]);var B=i,K=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41})),U=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=a.Object,z=U?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return C(e)&&I(e.prototype,V(t))},H=a.String,J=function(t){try{return H(t)}catch(t){return"Object"}},q=a.TypeError,W=function(t){if(C(t))return t;throw q(J(t)+" is not a function")},$=function(t,e){var n=t[e];return null==n?void 0:W(n)},X=a.TypeError,Y=Object.defineProperty,Q=function(t,e){try{Y(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},Z="__core-js_shared__",tt=a[Z]||Q(Z,{}),et=r((function(t){(t.exports=function(t,e){return tt[t]||(tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nt=a.Object,rt=function(t){return nt(P(t))},ot=w({}.hasOwnProperty),it=Object.hasOwn||function(t,e){return ot(rt(t),e)},ct=0,at=Math.random(),ut=w(1..toString),st=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ut(++ct+at,36)},ft=et("wks"),lt=a.Symbol,ht=lt&<.for,pt=U?lt:lt&<.withoutSetter||st,dt=function(t){if(!it(ft,t)||!K&&"string"!=typeof ft[t]){var e="Symbol."+t;K&&it(lt,t)?ft[t]=lt[t]:ft[t]=U&&ht?ht(e):pt(e)}return ft[t]},vt=a.TypeError,gt=dt("toPrimitive"),yt=function(t,e){if(!M(t)||z(t))return t;var n,r=$(t,gt);if(r){if(void 0===e&&(e="default"),n=l(r,t,e),!M(n)||z(n))return n;throw vt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&C(n=t.toString)&&!M(r=l(n,t)))return r;if(C(n=t.valueOf)&&!M(r=l(n,t)))return r;if("string"!==e&&C(n=t.toString)&&!M(r=l(n,t)))return r;throw X("Can't convert object to primitive value")}(t,e)},mt=function(t){var e=yt(t,"string");return z(e)?e:e+""},bt=a.document,wt=M(bt)&&M(bt.createElement),St=function(t){return wt?bt.createElement(t):{}},jt=!s&&!u((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),Ot=Object.getOwnPropertyDescriptor,Et={f:s?Ot:function(t,e){if(t=x(t),e=mt(e),jt)try{return Ot(t,e)}catch(t){}if(it(t,e))return v(!l(d.f,t,e),t[e])}},Tt=a.String,kt=a.TypeError,Lt=function(t){if(M(t))return t;throw kt(Tt(t)+" is not an object")},Pt=a.TypeError,xt=Object.defineProperty,Ct={f:s?xt:function(t,e,n){if(Lt(t),e=mt(e),Lt(n),jt)try{return xt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Pt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Mt=s?function(t,e,n){return Ct.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},At=w(Function.toString);C(tt.inspectSource)||(tt.inspectSource=function(t){return At(t)});var Ft,It,_t,Rt,Dt=tt.inspectSource,Nt=a.WeakMap,Gt=C(Nt)&&/native code/.test(Dt(Nt)),Bt=et("keys"),Kt={},Ut="Object already initialized",Vt=a.TypeError,zt=a.WeakMap;if(Gt||tt.state){var Ht=tt.state||(tt.state=new zt),Jt=w(Ht.get),qt=w(Ht.has),Wt=w(Ht.set);Ft=function(t,e){if(qt(Ht,t))throw new Vt(Ut);return e.facade=t,Wt(Ht,t,e),e},It=function(t){return Jt(Ht,t)||{}},_t=function(t){return qt(Ht,t)}}else{var $t=Bt[Rt="state"]||(Bt[Rt]=st(Rt));Kt[$t]=!0,Ft=function(t,e){if(it(t,$t))throw new Vt(Ut);return e.facade=t,Mt(t,$t,e),e},It=function(t){return it(t,$t)?t[$t]:{}},_t=function(t){return it(t,$t)}}var Xt={set:Ft,get:It,has:_t,enforce:function(t){return _t(t)?It(t):Ft(t,{})},getterFor:function(t){return function(e){var n;if(!M(e)||(n=It(e)).type!==t)throw Vt("Incompatible receiver, "+t+" required");return n}}},Yt=Function.prototype,Qt=s&&Object.getOwnPropertyDescriptor,Zt=it(Yt,"name"),te={EXISTS:Zt,PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!s||s&&Qt(Yt,"name").configurable)},ee=r((function(t){var e=te.CONFIGURABLE,n=Xt.get,r=Xt.enforce,o=String(String).split("String");(t.exports=function(t,n,i,c){var u,s=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:n;C(i)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!it(i,"name")||e&&i.name!==h)&&Mt(i,"name",h),(u=r(i)).source||(u.source=o.join("string"==typeof h?h:""))),t!==a?(s?!l&&t[n]&&(f=!0):delete t[n],f?t[n]=i:Mt(t,n,i)):f?t[n]=i:Q(n,i)})(Function.prototype,"toString",(function(){return C(this)&&n(this).source||Dt(this)}))})),ne=Math.ceil,re=Math.floor,oe=function(t){var e=+t;return e!=e||0===e?0:(e>0?re:ne)(e)},ie=Math.max,ce=Math.min,ae=Math.min,ue=function(t){return(e=t.length)>0?ae(oe(e),9007199254740991):0;var e},se=function(t){return function(e,n,r){var o,i=x(e),c=ue(i),a=function(t,e){var n=oe(t);return n<0?ie(n+e,0):ce(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}},fe={includes:se(!0),indexOf:se(!1)}.indexOf,le=w([].push),he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),pe={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=x(t),o=0,i=[];for(n in r)!it(Kt,n)&&it(r,n)&&le(i,n);for(;e.length>o;)it(r,n=e[o++])&&(~fe(i,n)||le(i,n));return i}(t,he)}},de={f:Object.getOwnPropertySymbols},ve=w([].concat),ge=F("Reflect","ownKeys")||function(t){var e=pe.f(Lt(t)),n=de.f;return n?ve(e,n(t)):e},ye=function(t,e){for(var n=ge(e),r=Ct.f,o=Et.f,i=0;i<n.length;i++){var c=n[i];it(t,c)||r(t,c,o(e,c))}},me=/#|\.prototype\./,be=function(t,e){var n=Se[we(t)];return n==Oe||n!=je&&(C(e)?u(e):!!e)},we=be.normalize=function(t){return String(t).replace(me,".").toLowerCase()},Se=be.data={},je=be.NATIVE="N",Oe=be.POLYFILL="P",Ee=be,Te=Et.f,ke=function(t,e){var n,r,o,i,c,u=t.target,s=t.global,f=t.stat;if(n=s?a:f?a[u]||Q(u,{}):(a[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Te(n,r))&&c.value:n[r],!Ee(s?r:u+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ye(i,o)}(t.sham||o&&o.sham)&&Mt(i,"sham",!0),ee(n,r,i,t)}},Le=Array.isArray||function(t){return"Array"==O(t)},Pe=function(t,e,n){var r=mt(e);r in t?Ct.f(t,r,v(0,n)):t[r]=n},xe={};xe[dt("toStringTag")]="z";var Ce,Me="[object z]"===String(xe),Ae=dt("toStringTag"),Fe=a.Object,Ie="Arguments"==O(function(){return arguments}()),_e=Me?O: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=Fe(t),Ae))?n:Ie?O(e):"Object"==(r=O(e))&&C(e.callee)?"Arguments":r},Re=function(){},De=[],Ne=F("Reflect","construct"),Ge=/^\s*(?:class|function)\b/,Be=w(Ge.exec),Ke=!Ge.exec(Re),Ue=function(t){if(!C(t))return!1;try{return Ne(Re,De,t),!0}catch(t){return!1}},Ve=!Ne||u((function(){var t;return Ue(Ue.call)||!Ue(Object)||!Ue((function(){t=!0}))||t}))?function(t){if(!C(t))return!1;switch(_e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ke||!!Be(Ge,Dt(t))}:Ue,ze=dt("species"),He=a.Array,Je=function(t,e){return new(function(t){var e;return Le(t)&&(e=t.constructor,(Ve(e)&&(e===He||Le(e.prototype))||M(e)&&null===(e=e[ze]))&&(e=void 0)),void 0===e?He:e}(t))(0===e?0:e)},qe=dt("species"),We=dt("isConcatSpreadable"),$e=9007199254740991,Xe="Maximum allowed index exceeded",Ye=a.TypeError,Qe=B>=51||!u((function(){var t=[];return t[We]=!1,t.concat()[0]!==t})),Ze=(Ce="concat",B>=51||!u((function(){var t=[];return(t.constructor={})[qe]=function(){return{foo:1}},1!==t[Ce](Boolean).foo}))),tn=function(t){if(!M(t))return!1;var e=t[We];return void 0!==e?!!e:Le(t)};ke({target:"Array",proto:!0,forced:!Qe||!Ze},{concat:function(t){var e,n,r,o,i,c=rt(this),a=Je(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(tn(i=-1===e?c:arguments[e])){if(u+(o=ue(i))>$e)throw Ye(Xe);for(n=0;n<o;n++,u++)n in i&&Pe(a,u,i[n])}else{if(u>=$e)throw Ye(Xe);Pe(a,u++,i)}return a.length=u,a}});var en=Function.prototype,nn=en.apply,rn=en.bind,on=en.call,cn="object"==typeof Reflect&&Reflect.apply||(rn?on.bind(nn):function(){return on.apply(nn,arguments)}),an=a.Array,un=F("JSON","stringify"),sn=w(/./.exec),fn=w("".charAt),ln=w("".charCodeAt),hn=w("".replace),pn=w(1..toString),dn=/[\uD800-\uDFFF]/g,vn=/^[\uD800-\uDBFF]$/,gn=/^[\uDC00-\uDFFF]$/,yn=function(t,e,n){var r=fn(n,e-1),o=fn(n,e+1);return sn(vn,t)&&!sn(gn,o)||sn(gn,t)&&!sn(vn,r)?"\\u"+pn(ln(t,0),16):t},mn=u((function(){return'"\\udf06\\ud834"'!==un("\udf06\ud834")||'"\\udead"'!==un("\udead")}));un&&ke({target:"JSON",stat:!0,forced:mn},{stringify:function(t,e,n){for(var r=0,o=arguments.length,i=an(o);r<o;r++)i[r]=arguments[r];var c=cn(un,null,i);return"string"==typeof c?hn(c,dn,yn):c}});var bn=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){throw 1},1)}))},wn=w([].join),Sn=k!=Object,jn=bn("join",",");ke({target:"Array",proto:!0,forced:Sn||!jn},{join:function(t){return wn(x(this),void 0===t?",":t)}});var On=Me?{}.toString:function(){return"[object "+_e(this)+"]"};Me||ee(Object.prototype,"toString",On,{unsafe:!0});var En=a.Promise,Tn=a.String,kn=a.TypeError,Ln=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Lt(n),function(t){if("object"==typeof t||C(t))return t;throw kn("Can't set "+Tn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Pn=Ct.f,xn=dt("toStringTag"),Cn=dt("species"),Mn=a.TypeError,An=w(w.bind),Fn=function(t,e){return W(t),void 0===e?t:An?An(t,e):function(){return t.apply(e,arguments)}},In={},_n=dt("iterator"),Rn=Array.prototype,Dn=dt("iterator"),Nn=function(t){if(null!=t)return $(t,Dn)||$(t,"@@iterator")||In[_e(t)]},Gn=a.TypeError,Bn=function(t,e,n){var r,o;Lt(t);try{if(!(r=$(t,"return"))){if("throw"===e)throw n;return n}r=l(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Lt(r),n},Kn=a.TypeError,Un=function(t,e){this.stopped=t,this.result=e},Vn=Un.prototype,zn=function(t,e,n){var r,o,i,c,a,u,s,f,h=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Fn(e,h),y=function(t){return r&&Bn(r,"normal",t),new Un(!0,t)},m=function(t){return p?(Lt(t),v?g(t[0],t[1],y):g(t[0],t[1])):v?g(t,y):g(t)};if(d)r=t;else{if(!(o=Nn(t)))throw Kn(J(t)+" is not iterable");if(void 0!==(f=o)&&(In.Array===f||Rn[_n]===f)){for(i=0,c=ue(t);c>i;i++)if((a=m(t[i]))&&I(Vn,a))return a;return new Un(!1)}r=function(t,e){var n=arguments.length<2?Nn(t):e;if(W(n))return Lt(l(n,t));throw Gn(J(t)+" is not iterable")}(t,o)}for(u=r.next;!(s=l(u,r)).done;){try{a=m(s.value)}catch(t){Bn(r,"throw",t)}if("object"==typeof a&&a&&I(Vn,a))return a}return new Un(!1)},Hn=dt("iterator"),Jn=!1;try{var qn=0,Wn={next:function(){return{done:!!qn++}},return:function(){Jn=!0}};Wn[Hn]=function(){return this},Array.from(Wn,(function(){throw 2}))}catch(t){}var $n,Xn,Yn,Qn,Zn=a.TypeError,tr=dt("species"),er=function(t,e){var n,r=Lt(t).constructor;return void 0===r||null==(n=Lt(r)[tr])?e:function(t){if(Ve(t))return t;throw Zn(J(t)+" is not a constructor")}(n)},nr=F("document","documentElement"),rr=w([].slice),or=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),ir="process"==O(a.process),cr=a.setImmediate,ar=a.clearImmediate,ur=a.process,sr=a.Dispatch,fr=a.Function,lr=a.MessageChannel,hr=a.String,pr=0,dr={},vr="onreadystatechange";try{$n=a.location}catch(t){}var gr=function(t){if(it(dr,t)){var e=dr[t];delete dr[t],e()}},yr=function(t){return function(){gr(t)}},mr=function(t){gr(t.data)},br=function(t){a.postMessage(hr(t),$n.protocol+"//"+$n.host)};cr&&ar||(cr=function(t){var e=rr(arguments,1);return dr[++pr]=function(){cn(C(t)?t:fr(t),void 0,e)},Xn(pr),pr},ar=function(t){delete dr[t]},ir?Xn=function(t){ur.nextTick(yr(t))}:sr&&sr.now?Xn=function(t){sr.now(yr(t))}:lr&&!or?(Qn=(Yn=new lr).port2,Yn.port1.onmessage=mr,Xn=Fn(Qn.postMessage,Qn)):a.addEventListener&&C(a.postMessage)&&!a.importScripts&&$n&&"file:"!==$n.protocol&&!u(br)?(Xn=br,a.addEventListener("message",mr,!1)):Xn=vr in St("script")?function(t){nr.appendChild(St("script")).onreadystatechange=function(){nr.removeChild(this),gr(t)}}:function(t){setTimeout(yr(t),0)});var wr,Sr,jr,Or,Er,Tr,kr,Lr,Pr={set:cr,clear:ar},xr=/ipad|iphone|ipod/i.test(_)&&void 0!==a.Pebble,Cr=/web0s(?!.*chrome)/i.test(_),Mr=Et.f,Ar=Pr.set,Fr=a.MutationObserver||a.WebKitMutationObserver,Ir=a.document,_r=a.process,Rr=a.Promise,Dr=Mr(a,"queueMicrotask"),Nr=Dr&&Dr.value;Nr||(wr=function(){var t,e;for(ir&&(t=_r.domain)&&t.exit();Sr;){e=Sr.fn,Sr=Sr.next;try{e()}catch(t){throw Sr?Or():jr=void 0,t}}jr=void 0,t&&t.enter()},or||ir||Cr||!Fr||!Ir?!xr&&Rr&&Rr.resolve?((kr=Rr.resolve(void 0)).constructor=Rr,Lr=Fn(kr.then,kr),Or=function(){Lr(wr)}):ir?Or=function(){_r.nextTick(wr)}:(Ar=Fn(Ar,a),Or=function(){Ar(wr)}):(Er=!0,Tr=Ir.createTextNode(""),new Fr(wr).observe(Tr,{characterData:!0}),Or=function(){Tr.data=Er=!Er}));var Gr,Br,Kr,Ur,Vr,zr,Hr,Jr=Nr||function(t){var e={fn:t,next:void 0};jr&&(jr.next=e),Sr||(Sr=e,Or()),jr=e},qr=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=W(e),this.reject=W(n)},Wr={f:function(t){return new qr(t)}},$r=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Xr="object"==typeof window,Yr=Pr.set,Qr=dt("species"),Zr="Promise",to=Xt.get,eo=Xt.set,no=Xt.getterFor(Zr),ro=En&&En.prototype,oo=En,io=ro,co=a.TypeError,ao=a.document,uo=a.process,so=Wr.f,fo=so,lo=!!(ao&&ao.createEvent&&a.dispatchEvent),ho=C(a.PromiseRejectionEvent),po="unhandledrejection",vo=!1,go=Ee(Zr,(function(){var t=Dt(oo),e=t!==String(oo);if(!e&&66===B)return!0;if(B>=51&&/native code/.test(t))return!1;var n=new oo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[Qr]=r,!(vo=n.then((function(){}))instanceof r)||!e&&Xr&&!ho})),yo=go||!function(t,e){if(!e&&!Jn)return!1;var n=!1;try{var r={};r[Hn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){oo.all(t).catch((function(){}))})),mo=function(t){var e;return!(!M(t)||!C(e=t.then))&&e},bo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Jr((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,s=n[i++],f=o?s.ok:s.fail,h=s.resolve,p=s.reject,d=s.domain;try{f?(o||(2===t.rejection&&Oo(t),t.rejection=1),!0===f?c=r:(d&&d.enter(),c=f(r),d&&(d.exit(),u=!0)),c===s.promise?p(co("Promise-chain cycle")):(a=mo(c))?l(a,c,h,p):h(c)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&So(t)}))}},wo=function(t,e,n){var r,o;lo?((r=ao.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!ho&&(o=a["on"+t])?o(r):t===po&&function(t,e){var n=a.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},So=function(t){l(Yr,a,(function(){var e,n=t.facade,r=t.value;if(jo(t)&&(e=$r((function(){ir?uo.emit("unhandledRejection",r,n):wo(po,n,r)})),t.rejection=ir||jo(t)?2:1,e.error))throw e.value}))},jo=function(t){return 1!==t.rejection&&!t.parent},Oo=function(t){l(Yr,a,(function(){var e=t.facade;ir?uo.emit("rejectionHandled",e):wo("rejectionhandled",e,t.value)}))},Eo=function(t,e,n){return function(r){t(e,r,n)}},To=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,bo(t,!0))},ko=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw co("Promise can't be resolved itself");var r=mo(e);r?Jr((function(){var n={done:!1};try{l(r,e,Eo(ko,n,t),Eo(To,n,t))}catch(e){To(n,e,t)}})):(t.value=e,t.state=1,bo(t,!1))}catch(e){To({done:!1},e,t)}}};if(go&&(io=(oo=function(t){!function(t,e){if(I(e,t))return t;throw Mn("Incorrect invocation")}(this,io),W(t),l(Gr,this);var e=to(this);try{t(Eo(ko,e),Eo(To,e))}catch(t){To(e,t)}}).prototype,(Gr=function(t){eo(this,{type:Zr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)ee(t,r,e[r],n);return t}(io,{then:function(t,e){var n=no(this),r=n.reactions,o=so(er(this,oo));return o.ok=!C(t)||t,o.fail=C(e)&&e,o.domain=ir?uo.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bo(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Br=function(){var t=new Gr,e=to(t);this.promise=t,this.resolve=Eo(ko,e),this.reject=Eo(To,e)},Wr.f=so=function(t){return t===oo||t===Kr?new Br(t):fo(t)},C(En)&&ro!==Object.prototype)){Ur=ro.then,vo||(ee(ro,"then",(function(t,e){var n=this;return new oo((function(t,e){l(Ur,n,t,e)})).then(t,e)}),{unsafe:!0}),ee(ro,"catch",io.catch,{unsafe:!0}));try{delete ro.constructor}catch(t){}Ln&&Ln(ro,io)}ke({global:!0,wrap:!0,forced:go},{Promise:oo}),zr=Zr,Hr=!1,(Vr=oo)&&!it(Vr=Hr?Vr:Vr.prototype,xn)&&Pn(Vr,xn,{configurable:!0,value:zr}),function(t){var e=F(t),n=Ct.f;s&&e&&!e[Cn]&&n(e,Cn,{configurable:!0,get:function(){return this}})}(Zr),Kr=F(Zr),ke({target:Zr,stat:!0,forced:go},{reject:function(t){var e=so(this);return l(e.reject,void 0,t),e.promise}}),ke({target:Zr,stat:!0,forced:go},{resolve:function(t){return function(t,e){if(Lt(t),M(e)&&e.constructor===t)return e;var n=Wr.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),ke({target:Zr,stat:!0,forced:yo},{all:function(t){var e=this,n=so(e),r=n.resolve,o=n.reject,i=$r((function(){var n=W(e.resolve),i=[],c=0,a=1;zn(t,(function(t){var u=c++,s=!1;a++,l(n,e,t).then((function(t){s||(s=!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=so(e),r=n.reject,o=$r((function(){var o=W(e.resolve);zn(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Lo={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},Po=St("span").classList,xo=Po&&Po.constructor&&Po.constructor.prototype,Co=xo===Object.prototype?void 0:xo,Mo=w([].push),Ao=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,s,f,l){for(var h,p,d=rt(u),v=k(d),g=Fn(s,f),y=ue(v),m=0,b=l||Je,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in v)&&(p=g(h=v[m],m,d),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Mo(w,h)}else switch(t){case 4:return!1;case 7:Mo(w,h)}return i?-1:r||o?o:w}},Fo={forEach:Ao(0),map:Ao(1),filter:Ao(2),some:Ao(3),every:Ao(4),find:Ao(5),findIndex:Ao(6),filterReject:Ao(7)}.forEach,Io=bn("forEach")?[].forEach:function(t){return Fo(this,t,arguments.length>1?arguments[1]:void 0)},_o=function(t){if(t&&t.forEach!==Io)try{Mt(t,"forEach",Io)}catch(e){t.forEach=Io}};for(var Ro in Lo)Lo[Ro]&&_o(a[Ro]&&a[Ro].prototype);_o(Co);var Do="__googleMapsScriptId",No=function(){function t(e){var n=e.apiKey,r=e.channel,o=e.client,i=e.id,c=void 0===i?Do:i,a=e.libraries,u=void 0===a?[]:a,s=e.language,f=e.region,l=e.version,h=e.mapIds,p=e.nonce,d=e.retries,v=void 0===d?3:d,g=e.url,y=void 0===g?"https://maps.googleapis.com/maps/api/js":g;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=l,this.apiKey=n,this.channel=r,this.client=o,this.id=c||Do,this.libraries=u,this.language=s,this.region=f,this.mapIds=h,this.nonce=p,this.retries=v,this.url=y,t.instance){if(!function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var c=i[o];if(!t(e[c],n[c]))return!1}return!0}return e!=e&&n!=n}(this.options,t.instance.options))throw new Error("Loader must not be called again with different options. ".concat(JSON.stringify(this.options)," !== ").concat(JSON.stringify(t.instance.options)));return t.instance}t.instance=this}var n,r,o;return n=t,(r=[{key:"options",get:function(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}},{key:"failed",get:function(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}},{key:"createUrl",value:function(){var t=this.url;return t+="?callback=".concat(this.CALLBACK),this.apiKey&&(t+="&key=".concat(this.apiKey)),this.channel&&(t+="&channel=".concat(this.channel)),this.client&&(t+="&client=".concat(this.client)),this.libraries.length>0&&(t+="&libraries=".concat(this.libraries.join(","))),this.language&&(t+="&language=".concat(this.language)),this.region&&(t+="®ion=".concat(this.region)),this.version&&(t+="&v=".concat(this.version)),this.mapIds&&(t+="&map_ids=".concat(this.mapIds.join(","))),t}},{key:"deleteScript",value:function(){var t=document.getElementById(this.id);t&&t.remove()}},{key:"load",value:function(){return this.loadPromise()}},{key:"loadPromise",value:function(){var t=this;return new Promise((function(e,n){t.loadCallback((function(t){t?n(t.error):e(window.google)}))}))}},{key:"loadCallback",value:function(t){this.callbacks.push(t),this.execute()}},{key:"setScript",value:function(){if(document.getElementById(this.id))this.callback();else{var t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}}},{key:"reset",value:function(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}},{key:"resetIfRetryingFailed",value:function(){this.failed&&this.reset()}},{key:"loadErrorCallback",value:function(t){var e=this;if(this.errors.push(t),this.errors.length<=this.retries){var n=this.errors.length*Math.pow(2,this.errors.length);console.log("Failed to load Google Maps script, retrying in ".concat(n," ms.")),setTimeout((function(){e.deleteScript(),e.setScript()}),n)}else this.onerrorEvent=t,this.callback()}},{key:"setCallback",value:function(){window.__googleMapsCallback=this.callback.bind(this)}},{key:"callback",value:function(){var t=this;this.done=!0,this.loading=!1,this.callbacks.forEach((function(e){e(t.onerrorEvent)})),this.callbacks=[]}},{key:"execute",value:function(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}])&&e(n.prototype,r),o&&e(n,o),t}();t.DEFAULT_ID=Do,t.Loader=No,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@googlemaps/js-api-loader", | ||
"version": "1.12.7", | ||
"version": "1.12.8", | ||
"description": "Wrapper for the loading of Google Maps JavaScript API script in the browser", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"@typescript-eslint/parser": ">=2.25.0", | ||
"chromedriver": "^94.0.0", | ||
"chromedriver": "^95.0.0", | ||
"core-js": "^3.6.4", | ||
@@ -46,0 +46,0 @@ "eslint": "^7.21.0", |
Sorry, the diff of this file is too big to display
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
328682
2786