@omnic/widget-locations 1.0.57 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/widget.es.js +632 -621
- package/dist/lib/widget.umd.js +18 -18
- package/package.json +1 -1
package/dist/lib/widget.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(Tt,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-dom/server")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-dom/server"],L):(Tt=typeof globalThis<"u"?globalThis:Tt||self,L(Tt["@omnic/widget-locations"]={},Tt["react/jsx-runtime"],Tt.React,Tt.ReactDOM,Tt["react-dom/server"]))})(this,function(Tt,L,c,Un,ao){"use strict";function Ia(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ce=Ia(c),Da=Ia(Un),tC="",nC="";function Fi(t){return!!(t&&typeof t.then=="function")}function lo(t,e){return Fi(t)?Promise.resolve(t).then(e):e(t)}function Ta(t){const e=(Array.isArray(t)?t:[t]).map(i=>`'${i}'`),n=e.slice(-2).join(" or ");return`Tolgee: You need to specify ${[...e.slice(0,-2),n].join(", ")} option`}function Fd(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function Ba(t){if(typeof t=="string")return[t];if(Array.isArray(t))return t}function Et(t){return Ba(t)||[]}function Vd(t,e){return Fd(e)?Et(e==null?void 0:e[t]):Et(e)}function Vi(t){return Array.from(new Set(t))}function Na(t){return t&&t.replace(/\/+$/,"")}function Gd(t){if(typeof t=="string")return t;if(typeof(t==null?void 0:t.message)=="string")return t.message}const Qd=(t,e)=>fetch(t,e),ja=(t=Qd)=>(e,n)=>t(e,Object.assign(Object.assign({},n),{headers:Object.assign({"X-Tolgee-SDK-Type":"JS","X-Tolgee-SDK-Version":"5.12.0"},n==null?void 0:n.headers)}));function Jt(t){let e=[];return Object.freeze({listen(n){const r=o=>{n(o)};return e.push(r),{unsubscribe(){e=e.filter(o=>r!==o)}}},emit(n){t()&&e.forEach(r=>r({value:n}))}})}function Yd(t,e,n){const r=new Set,o=new Set;function i(u){const l=new Set(e());o.forEach(f=>{(u===void 0||(u==null?void 0:u.findIndex(h=>l.has(h)||f.namespaces.has(h)))!==-1)&&f.fn({value:void 0})})}let s=[];function a(){if(s.length===0)return;const u=s;s=[],r.forEach(d=>{d({value:void 0})});let l=new Set;u.forEach(d=>{d===void 0?l=void 0:l!==void 0&&d.forEach(h=>l.add(h))});const f=l?Array.from(l.keys()):void 0;i(f)}return Object.freeze({emit(u,l){t()&&(s.push(u),l?setTimeout(a,0):a())},listen(u){return r.add(u),{unsubscribe:()=>{r.delete(u)}}},listenSome(u){const l={fn:d=>{u(d)},namespaces:new Set};o.add(l);const f={unsubscribe:()=>{o.delete(l)},subscribeNs:d=>(Et(d).forEach(h=>l.namespaces.add(h)),d===void 0&&l.namespaces.add(n()),f)};return f}})}function Wd(t,e){let n=!0;function r(){return n}const o=Object.freeze({onPendingLanguageChange:Jt(r),onLanguageChange:Jt(r),onLoadingChange:Jt(r),onFetchingChange:Jt(r),onInitialLoaded:Jt(r),onRunningChange:Jt(r),onCacheChange:Jt(r),onUpdate:Yd(r,t,e),onPermanentChange:Jt(r),setEmitterActive(i){n=i},on:(i,s)=>{switch(i){case"pendingLanguage":return o.onPendingLanguageChange.listen(s);case"language":return o.onLanguageChange.listen(s);case"loading":return o.onLoadingChange.listen(s);case"fetching":return o.onFetchingChange.listen(s);case"initialLoad":return o.onInitialLoaded.listen(s);case"running":return o.onRunningChange.listen(s);case"cache":return o.onCacheChange.listen(s);case"update":return o.onUpdate.listen(s);case"permanentChange":return o.onPermanentChange.listen(s)}}});return o.onInitialLoaded.listen(()=>o.onUpdate.emit()),o.onLanguageChange.listen(()=>o.onUpdate.emit()),o.onCacheChange.listen(({value:i})=>o.onUpdate.emit([i.namespace],!0)),o}const Ua=t=>{const e=new Map;return Object.entries(t).forEach(([n,r])=>{if(r!=null){if(typeof r=="object"){Ua(r).forEach((o,i)=>{e.set(n+"."+i,o)});return}e.set(n,r)}}),e},dr=t=>{const[e,...n]=t.split(":"),r=n.join(":");return{language:e,namespace:r||""}},Qt=({language:t,namespace:e})=>e?`${t}:${e}`:t;function Rd(t,e,n,r,o,i,s){const a=new Map,u=new Map;let l={},f=0;function d(p,C,w){const m=Qt(p);u.set(m,{data:Ua(C),version:w}),t.emit(p)}function h(p){let C;if(!C){const w=l[Qt(p)];typeof w=="function"&&(C=w())}return C||(C=e(p)),C}function g(p,C){var w;let m;return C&&(m=(w=n(p))===null||w===void 0?void 0:w.catch(()=>(console.warn("Tolgee: Failed to fetch data from dev backend"),h(p)))),m||(m=h(p)),m}const v=Object.freeze({addStaticData(p){p&&(l=Object.assign(Object.assign({},l),p),Object.entries(p).forEach(([C,w])=>{if(typeof w!="function"){const m=dr(C),b=u.get(C);(!b||b.version===0)&&d(m,w,0)}}))},invalidate(){a.clear(),f+=1},addRecord(p,C){d(p,C,f)},exists(p,C=!1){const w=u.get(Qt(p));return w&&C?w.version===f:!!w},getRecord(p){var C;return(C=u.get(Qt(r(p))))===null||C===void 0?void 0:C.data},getTranslation(p,C){var w;return(w=u.get(Qt(p)))===null||w===void 0?void 0:w.data.get(C)},getTranslationNs(p,C,w){var m;for(const b of p)for(const O of C){const S=(m=u.get(Qt({language:O,namespace:b})))===null||m===void 0?void 0:m.data.get(w);if(S!=null)return[b]}return Vi(p)},getTranslationFallback(p,C,w){var m;for(const b of p)for(const O of C){const S=(m=u.get(Qt({language:O,namespace:b})))===null||m===void 0?void 0:m.data.get(w);if(S!=null)return S}},changeTranslation(p,C,w){var m;const b=(m=u.get(Qt(p)))===null||m===void 0?void 0:m.data;b==null||b.set(C,w),t.emit(Object.assign(Object.assign({},p),{key:C}))},isFetching(p){if(o())return!0;if(p===void 0)return a.size>0;const C=Et(p);return!!Array.from(a.keys()).find(w=>C.includes(dr(w).namespace))},isLoading(p,C){const w=Et(C);return!!(o()||Array.from(a.keys()).find(m=>{const b=dr(m);return(!w.length||w.includes(b.namespace))&&!v.exists({namespace:b.namespace,language:p})}))},async loadRecords(p,C){const w=p.map(b=>{const O=r(b),S=Qt(O),y=a.get(S);if(y)return{new:!1,promise:y,keyObject:O,cacheKey:S};const E=g(O,C)||Promise.resolve(void 0);return a.set(S,E),{new:!0,promise:E,keyObject:O,cacheKey:S}});i.notify(),s.notify();const m=await Promise.all(w.map(b=>b.promise));return w.forEach((b,O)=>{const S=a.get(b.cacheKey)!==b.promise;if(b.new&&!S){a.delete(b.cacheKey);const y=m[O];y?v.addRecord(b.keyObject,y):v.getRecord(b.keyObject)||v.addRecord(b.keyObject,{})}}),i.notify(),s.notify(),w.map(b=>v.getRecord(b.keyObject))},getAllRecords(){return Array.from(u.entries()).map(([C,w])=>Object.assign(Object.assign({},dr(C)),{data:w.data}))}});return v}function Ha(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}const Kd={tagAttributes:{textarea:["placeholder"],input:["value","placeholder"],img:["alt"],"*":["aria-label","title"]},restrictedElements:["script","style"],highlightKeys:["Alt"],highlightColor:"rgb(255, 0, 0)",highlightWidth:5,inputPrefix:"%-%tolgee:",inputSuffix:"%-%",passToParent:["option","optgroup"],fullKeyEncode:!1},Gi="invalid",qd={defaultNs:"",observerOptions:Kd,observerType:"invisible",onFormatError:Gi,apiUrl:"https://app.tolgee.io",fetch:ja()},Qi=(...t)=>{let e={};return t.forEach(n=>{e=Object.assign(Object.assign(Object.assign({},e),n),{observerOptions:Object.assign(Object.assign({},e.observerOptions),n==null?void 0:n.observerOptions)})}),e};function za(t,e){const n=Qi(qd,e==null?void 0:e.initialOptions,t);return n.apiUrl=Na(n.apiUrl),t!=null&&t.fetch&&(n.fetch=ja(t.fetch)),{initialOptions:n,activeNamespaces:(e==null?void 0:e.activeNamespaces)||new Map,language:e==null?void 0:e.language,pendingLanguage:e==null?void 0:e.language,isInitialLoading:!1,isRunning:!1}}function Zd(t,e,n,r,o,i,s,a){const u={ui:void 0},l={formatters:[],finalFormatter:void 0,observer:void 0,devBackend:void 0,backends:[],ui:void 0,languageDetector:void 0,languageStorage:void 0},f=async({keysAndDefaults:x,event:k})=>{var N;const z=x.map(({key:Q,ns:K,defaultValue:G})=>({key:Q,defaultValue:G,fallbackNamespaces:r(K),namespace:o({key:Q,ns:K})[0],translation:i({key:Q,ns:K})}));(N=l.ui)===null||N===void 0||N.handleElementClick(z,k)},d=(x,k)=>{var N;return((N=l.observer)===null||N===void 0?void 0:N.findPositions(x,k))||[]};function h(x){const k=i({key:x.key,ns:x.ns});return P.formatTranslation(Object.assign(Object.assign({},x),{translation:k,formatEnabled:!0}))}function g(){return{fetch:e().fetch}}function v(x){l.observer=x==null?void 0:x()}function p(){return!!l.observer}function C(x){x&&l.formatters.push(x)}function w(x){l.finalFormatter=x}function m(x){u.ui=x}function b(){return!!u.ui}function O(x){l.languageStorage=x}function S(x){l.languageDetector=x}function y(){if(!l.languageDetector)return;const x=n();return l.languageDetector.getLanguage(Object.assign({availableLanguages:x},g()))}function E(x){x&&l.backends.push(x)}function A(x){l.devBackend=x}function M(x,k){const N=Object.freeze({setFinalFormatter:w,addFormatter:C,setObserver:v,hasObserver:p,setUi:m,hasUi:b,setDevBackend:A,addBackend:E,setLanguageDetector:S,setLanguageStorage:O});k(x,N)}const P=Object.freeze({addPlugin:M,run(){var x,k;const{apiKey:N,apiUrl:z,projectId:Q,observerOptions:K}=e();l.ui=(x=u.ui)===null||x===void 0?void 0:x.call(u,{apiKey:N,apiUrl:z,projectId:Q,highlight:P.highlight,changeTranslation:s,findPositions:d,onPermanentChange:a}),(k=l.observer)===null||k===void 0||k.run({mouseHighlight:!0,options:K,translate:h,onClick:f})},stop(){var x;l.ui=void 0,(x=l.observer)===null||x===void 0||x.stop()},getLanguageStorage(){return l.languageStorage},getInitialLanguage(){var x;const k=n(),N=(x=l.languageStorage)===null||x===void 0?void 0:x.getLanguage(g());return lo(N,z=>(!k||k.includes(z))&&z?z:y())},setStoredLanguage(x){var k;(k=l.languageStorage)===null||k===void 0||k.setLanguage(x,g())},getDevBackend(){return l.devBackend},getBackendRecord:({language:x,namespace:k})=>{for(const N of l.backends){const z=N.getRecord(Object.assign({language:x,namespace:k},g()));if(Fi(z))return z==null?void 0:z.catch(Q=>(console.error(Q),{}));if(z!==void 0)return z}},getBackendDevRecord:({language:x,namespace:k})=>{var N;const{apiKey:z,apiUrl:Q,projectId:K}=e();return(N=l.devBackend)===null||N===void 0?void 0:N.getRecord(Object.assign({apiKey:z,apiUrl:Q,projectId:K,language:x,namespace:k},g()))},getLanguageDetector(){return l.languageDetector},retranslate(){var x;(x=l.observer)===null||x===void 0||x.retranslate()},highlight:(x,k)=>{var N,z;return((z=(N=l.observer)===null||N===void 0?void 0:N.highlight)===null||z===void 0?void 0:z.call(N,x,k))||{unhighlight(){}}},unwrap(x){var k;return l.observer?(k=l.observer)===null||k===void 0?void 0:k.unwrap(x):{text:x,keys:[]}},wrap(x){var k;return l.observer?(k=l.observer)===null||k===void 0?void 0:k.wrap(x):x.translation},hasDevBackend(){return!!P.getDevBackend()},formatTranslation(x){var k,{formatEnabled:N}=x,z=Ha(x,["formatEnabled"]);const{key:Q,translation:K,defaultValue:G,noWrap:R,params:T,orEmpty:I,ns:D}=z,V=K||G;let H=V||(I?"":Q);const Y=t(),ne=N||!(!((k=l.observer)===null||k===void 0)&&k.outputNotFormattable),U=ee=>l.observer&&!R?l.observer.wrap({key:Q,translation:ee,defaultValue:G,params:T,ns:D}):ee;H=U(H);try{if(V&&Y&&ne)for(const ee of l.formatters)H=ee.format({translation:H,language:Y,params:T});l.finalFormatter&&V&&Y&&ne&&(H=l.finalFormatter.format({translation:H,language:Y,params:T}))}catch(ee){console.error(ee);const le=Gd(ee)||Gi,Z=e().onFormatError,B=typeof Z;B==="string"?H=Z:B==="function"?H=Z(le,z):H=Gi,H=U(H)}return H}});return P}const Fa=(t,e,n)=>{let r=t;return Object.freeze({init(o){r=o},notify(){const o=e();r!==o&&n(o),r=o}})};function Jd(t,e,n){let r=za(),o;const i=Object.freeze({init(s){r=za(s,r)},isRunning(){return r.isRunning},setRunning(s){r.isRunning!==s&&(r.isRunning=s,n.emit(s))},isInitialLoading(){return r.isInitialLoading},setInitialLoading(s){r.isInitialLoading=s},getLanguage(){return r.language||r.initialOptions.language},setLanguage(s){r.language!==s&&(r.language=s,t.emit(s))},getPendingLanguage(){return r.pendingLanguage||i.getLanguage()},setPendingLanguage(s){r.pendingLanguage!==s&&(r.pendingLanguage=s,e.emit(s))},getInitialOptions(){return Object.assign(Object.assign({},r.initialOptions),o)},addActiveNs(s){Et(s).forEach(u=>{const l=r.activeNamespaces.get(u);l!==void 0?r.activeNamespaces.set(u,l+1):r.activeNamespaces.set(u,1)})},removeActiveNs(s){Et(s).forEach(u=>{const l=r.activeNamespaces.get(u);l!==void 0&&l>1?r.activeNamespaces.set(u,l-1):r.activeNamespaces.delete(u)})},getRequiredNamespaces(){return Vi([...r.initialOptions.ns||[r.initialOptions.defaultNs],...Et(r.initialOptions.fallbackNs),...r.activeNamespaces.keys()])},getFallbackLangs(s){const a=s||i.getLanguage();return a?Vi([a,...Vd(a,r.initialOptions.fallbackLanguage)]):[]},getFallbackNs(){return Et(r.initialOptions.fallbackNs)},getDefaultNs(s){return s===void 0?r.initialOptions.defaultNs:s},getAvailableLanguages(){if(r.initialOptions.availableLanguages)return r.initialOptions.availableLanguages;if(r.initialOptions.staticData){const s=Object.keys(r.initialOptions.staticData).map(a=>dr(a).language);return Array.from(new Set(s))}},withDefaultNs(s){return{namespace:s.namespace===void 0?i.getInitialOptions().defaultNs:s.namespace,language:s.language}},overrideCredentials(s){s?o=Object.assign(Object.assign({},s),{apiUrl:Na(s.apiUrl)}):o=void 0}});return i}function _d(t){var{ns:e,noWrap:n,orEmpty:r,params:o,language:i}=t,s=Ha(t,["ns","noWrap","orEmpty","params","language"]);return Object.assign(Object.assign({},{ns:e,noWrap:n,orEmpty:r,language:i}),{params:Object.assign({},s)})}const Va=(t,...e)=>{let n={},r;return typeof t=="object"?n=t:(n.key=t,typeof e[0]=="string"?(n.defaultValue=e[0],r=e[1]):typeof e[0]=="object"&&(r=e[0])),r&&(n=Object.assign(Object.assign({},_d(r)),n)),n};function Xd({options:t}){const e=Wd(u,l),n=Fa(!1,()=>s.isFetching(),e.onFetchingChange.emit),r=Fa(!1,()=>y.isLoading(),e.onLoadingChange.emit),o=Jd(e.onLanguageChange,e.onPendingLanguageChange,e.onRunningChange),i=Zd(o.getLanguage,o.getInitialOptions,o.getAvailableLanguages,f,w,m,h,g),s=Rd(e.onCacheChange,i.getBackendRecord,i.getBackendDevRecord,o.withDefaultNs,o.isInitialLoading,n,r);t&&v(t);let a;e.onUpdate.listen(()=>{o.isRunning()&&i.retranslate()});function u(){return o.getFallbackNs()}function l(E){return o.getDefaultNs(E)}function f(E){return[...Et(l(E)),...u()]}function d(E){return[...Et(E??l()),...o.getRequiredNamespaces()]}function h(E,A,M){const P=o.withDefaultNs(E),x=s.getTranslation(P,A);return s.changeTranslation(P,A,M),{revert(){s.changeTranslation(P,A,x)}}}function g(E){e.onPermanentChange.emit({key:E.key,namespace:E.namespace})}function v(E){o.init(E),s.addStaticData(o.getInitialOptions().staticData)}function p(E,A){const M=o.getFallbackLangs(E),P=d(A),x=[];return M.forEach(k=>{P.forEach(N=>{s.exists({language:k,namespace:N},!0)||x.push({language:k,namespace:N})})}),x}function C(E,A){const M=p(E,A);if(M.length)return lo(y.loadRecords(M),()=>{})}function w({key:E,ns:A}){const M=o.getFallbackLangs(),P=f(A??void 0);return s.getTranslationNs(P,M,E)}function m({key:E,ns:A,language:M}){const P=f(A??void 0),x=o.getFallbackLangs(M);return s.getTranslationFallback(P,x,E)}function b(){const E=lo(O(),()=>C());if(Fi(E))return o.setInitialLoading(!0),n.notify(),r.notify(),Promise.resolve(E).then(()=>{o.setInitialLoading(!1),n.notify(),r.notify(),e.onInitialLoaded.emit()});e.onInitialLoaded.emit()}function O(){if(o.getLanguage())return;const A=i.getInitialLanguage();return lo(A,M=>{const P=M||o.getInitialOptions().defaultLanguage;P&&o.setLanguage(P)})}function S(){if((i.getLanguageDetector()||i.getLanguageStorage())&&!o.getAvailableLanguages())throw new Error(Ta("availableLanguages"));if(!o.getLanguage()&&!o.getInitialOptions().defaultLanguage)throw new Error(Ta(["defaultLanguage","language"]))}const y=Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),o),i),s),{init:v,getTranslation:m,changeTranslation:h,getTranslationNs:w,getDefaultAndFallbackNs:f,async changeLanguage(E){o.getPendingLanguage()===E&&o.getLanguage()===E||(o.setPendingLanguage(E),o.isRunning()&&await C(E),E===o.getPendingLanguage()&&(o.setLanguage(E),i.setStoredLanguage(E)))},async addActiveNs(E,A){A||o.addActiveNs(E),o.isRunning()&&await C(void 0,E)},loadRecords(E){return s.loadRecords(E,y.isDev())},async loadRecord(E){return(await y.loadRecords([E]))[0]},isLoading(E){return s.isLoading(o.getLanguage(),E)},isLoaded(E){const A=o.getLanguage();if(!A)return!1;const M=o.getFallbackLangs(A),P=d(E),x=[];return M.forEach(k=>{P.forEach(N=>{s.exists({language:k,namespace:N})||x.push({language:k,namespace:N})})}),x.length===0},t:(...E)=>{const A=Va(...E),M=m(A);return i.formatTranslation(Object.assign(Object.assign({},A),{translation:M}))},isDev(){return!!(o.getInitialOptions().apiKey&&o.getInitialOptions().apiUrl)},run(){return S(),o.isRunning()||(o.setRunning(!0),i.run(),a=b()),Promise.resolve(a)},stop(){o.isRunning()&&(i.stop(),o.setRunning(!1))}}));return y}function $d(t){const e=Xd({options:t});e.isDev()&&e.invalidate();function n(o){const i=e.isRunning();i&&e.stop(),o(),e.isDev()&&e.invalidate(),i&&e.run()}const r=Object.freeze({on:e.on,onNsUpdate:e.onUpdate.listenSome,setEmitterActive:e.setEmitterActive,getLanguage:e.getLanguage,getPendingLanguage:e.getPendingLanguage,changeLanguage:e.changeLanguage,changeTranslation:e.changeTranslation,addActiveNs:e.addActiveNs,removeActiveNs:e.removeActiveNs,loadRecords:e.loadRecords,loadRecord:e.loadRecord,addStaticData:e.addStaticData,getRecord:e.getRecord,getAllRecords:e.getAllRecords,isLoaded:e.isLoaded,isInitialLoading:e.isInitialLoading,isLoading:e.isLoading,isFetching:e.isFetching,isRunning:e.isRunning,run:e.run,stop:e.stop,t:e.t,highlight:e.highlight,getInitialOptions:e.getInitialOptions,isDev:e.isDev,wrap:e.wrap,unwrap:e.unwrap,overrideCredentials(o){n(()=>e.overrideCredentials(o))},addPlugin(o){o&&n(()=>e.addPlugin(r,o))},updateOptions(o){o&&n(()=>e.init(o))}});return r}const eh=()=>{const t={plugins:[],options:{}},e=Object.freeze({use(n){return t.plugins.push(n),e},updateDefaults(n){return t.options=Qi(t.options,n),e},init(n){const r=$d(Qi(t.options,n));return t.plugins.forEach(r.addPlugin),r}});return e},Ga=0,Yi=1,th=2;class nh extends Error{constructor(e,n,r){let o;e===Ga?o="Empty parameter":e===Yi?o="Unexpected character":o="Unexpected end",super(`Tolgee parser: ${o} at ${n} in "${r}"`),this.code=e,this.index=n}}function Qa(t){return/\s/.test(t)}const _t=0,Wi=1,uo=2,Ri=3,Ki=4,rh=new Set([uo,Wi,_t]),qi="'",oh=new Set(["{","}",qi]),ih=t=>/[0-9a-zA-Z_]/.test(t);function sh(t){let e=_t,n="",r="",o="";const i=[],s=[];let a=0;function u(h){throw new nh(h,a,t)}const l=()=>{i.push(n),n=""},f=()=>{ih(o)||u(Yi),r+=o},d=()=>{r===""&&u(Ga),s.push(r),r=""};for(a=0;a<t.length;a++)switch(o=t[a],e){case _t:o===qi?(n+=o,e=Wi):o==="{"?(l(),e=Ri):(n+=o,e=_t);break;case Wi:oh.has(o)?(n=n.slice(0,-1)+o,e=uo):(n+=o,e=_t);break;case uo:o===qi?e=_t:(n+=o,e=uo);break;case Ri:o==="}"?(d(),e=_t):Qa(o)?r!==""&&(d(),e=Ki):(f(),e=Ri);break;case Ki:o=="}"?e=_t:Qa(o)?e=Ki:u(Yi)}return rh.has(e)||u(th),l(),[i,s]}function ah(t,e){const[n,r]=sh(t),o=[n[0]];for(let i=1;i<n.length;i++){const s=e==null?void 0:e[r[i-1]];if(s===void 0)throw new Error(`Missing parameter "${r[i-1]}" in "${t}"`);o.push(String(s)),o.push(n[i])}return o.join("")}function lh(){return{format:({translation:t,params:e})=>ah(t,e)}}const uh=()=>(t,e)=>(e.setFinalFormatter(lh()),t),ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function fh(t){const e=ch.indexOf(t);if(e===-1)throw new Error("Invalid character found: "+t);return e}function dh(t){const e=new Uint8Array(t),n=e.length;let r="",o=Math.pow(2,16)-1;for(let i=0;i<n;i+=o)i+o>n&&(o=n-i),r+=String.fromCharCode.apply(null,e.subarray(i,i+o));return r}function hh(t){t=t.toUpperCase();const e=t.length;let n=0,r=0,o=0;const i=new Uint8Array(e*5/8|0);for(let s=0;s<e;s++)r=r<<5|fh(t[s]),n+=5,n>=8&&(i[o++]=r>>>n-8&255,n-=8);return dh(i.buffer)}function ph(t){if(t)try{const[e,n]=t.split("_");if(e==="tgpak"){const[r]=hh(n).split("_");return Number(r)}}catch{console.warn("Tolgee: Api key can't be parsed")}}function gh(t){if(!t)return;const[e]=t.split("_");return e==="tgpak"?"tgpak":e==="tgpat"?"tgpat":"legacy"}function vh(){return{getRecord({apiUrl:t,apiKey:e,language:n,namespace:r,projectId:o,fetch:i}){var s;const a=(s=ph(e))!==null&&s!==void 0?s:o;let u=a!==void 0?`${t}/v2/projects/${a}/translations/${n}`:`${t}/v2/projects/translations/${n}`;if(r&&(u+=`?ns=${r}`),gh(e)==="tgpat"&&o===void 0)throw new Error("You need to specify 'projectId' when using PAT key");return i(u,{headers:{"X-API-Key":e||"","Content-Type":"application/json"}}).then(l=>{if(l.ok)return l.json().then(f=>f[n]);throw new Error(l.statusText)})}}}const mh=()=>(t,e)=>(e.setDevBackend(vh()),t);function yh(t,e){const n=r=>{var o,i;t.includes((o=r.data)===null||o===void 0?void 0:o.type)&&e((i=r.data)===null||i===void 0?void 0:i.data)};return window.addEventListener("message",n,!1),{unsubscribe(){window.removeEventListener("message",n)}}}function bh({message:t,recievingMessage:e,data:n,attempts:r=1}){let o=!1;const i=()=>new Promise((a,u)=>{const l=yh(e,d);window.postMessage({type:t,data:n},window.origin);const f=setTimeout(g,300);function d(v){clearTimeout(f),h(),a(v)}function h(){l.unsubscribe()}function g(){h(),u()}});return{cancel(){o=!0},promise:(async()=>{for(let a=0;a<r;a++){if(o)return new Promise(()=>{});try{return await i()}catch{continue}}if(!o)throw`Didn't recieve ${e.join(" or ")} in time.`;return new Promise(()=>{})})()}}function Eh(){let t;async function e(n){t==null||t();const{cancel:r,promise:o}=bh({message:"TOLGEE_READY",recievingMessage:["TOLGEE_PLUGIN_READY","TOLGEE_PLUGIN_UPDATED"],data:n,attempts:4});return t=r,o}return{update:e}}const wh="tolgee-in-context-tools.umd.min.js",Ch="@tolgee/in-context-tools",Sh="InContextTools",Lh="https://cdn.jsdelivr.net/npm";function Ah(t){return new Promise((e,n)=>{const r=document.createElement("script");r.src=t,r.addEventListener("load",()=>e()),r.addEventListener("error",o=>n(o.error)),document.body.appendChild(r)})}let Zi=null;function xh(t){return Zi||(Zi=Ah(`${Lh}/@tolgee/web@${t}/dist/${wh}`).then(()=>window[Ch][Sh])),Zi}const Ya="__tolgee_apiKey",Wa="__tolgee_apiUrl";function Ra(){const t=sessionStorage.getItem(Ya)||void 0,e=sessionStorage.getItem(Wa)||void 0;if(!(!t||!e))return{apiKey:t,apiUrl:e}}function Oh(){sessionStorage.removeItem(Ya),sessionStorage.removeItem(Wa)}function Ph(t){document.readyState!=="loading"?Promise.resolve().then(()=>{t()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}let Ka=()=>t=>t;(()=>{if(typeof window>"u")return!1;try{return typeof sessionStorage<"u"&&sessionStorage}catch(t){return console.error("sessionStorage not available",t),!1}})()&&(Ka=()=>t=>{const e=Eh(),n=()=>({uiPresent:!0,uiVersion:void 0,mode:t.isDev()?"development":"production",config:{apiUrl:t.getInitialOptions().apiUrl||"",apiKey:t.getInitialOptions().apiKey||""}}),r=async()=>{const i=await xh("5.12.0");return s=>{const a=Ra();return s.addPlugin(i({credentials:a})),s}};return t.on("running",({value:i})=>{i&&Ph(()=>{e.update(n()).catch(Oh)})}),Ra()&&r().then(i=>{t.addPlugin(i)}).catch(i=>{console.error("Tolgee: Failed to load in-context tools"),console.error(i)}),t});function Mh(){return eh().use(Ka())}const kh={useSuspense:!0};let Ji;const qa=()=>(Ji||(Ji=c.createContext(void 0)),Ji),Ih=({tolgee:t,options:e,children:n,fallback:r})=>{const[o,i]=c.useState(!t.isLoaded());c.useEffect(()=>{t.run().catch(u=>{console.error(u)}).finally(()=>{i(!1)})},[t]);const s=Object.assign(Object.assign({},kh),e),a=qa();return s.useSuspense?c.createElement(a.Provider,{value:{tolgee:t,options:s}},o?r:c.createElement(c.Suspense,{fallback:r||null},n)):c.createElement(a.Provider,{value:{tolgee:t,options:s}},o?r:n)};let Dh;function Th(){return Dh}const Za=()=>{const t=qa(),e=c.useContext(t)||Th();if(!e)throw new Error("Couldn't find tolgee instance, did you forgot to use `TolgeeProvider`?");return e},Ja=()=>{const[t,e]=c.useState(0),n=c.useCallback(()=>{e(r=>r+1)},[e]);return{instance:t,rerender:n}},_a=(t,e)=>{const{tolgee:n,options:r}=Za(),o=Ba(t),i=Et(o).join(":"),s=Object.assign(Object.assign({},r),e),{rerender:a,instance:u}=Ja(),l=c.useRef(),f=c.useRef([]);f.current=[];const d=v=>{var p;f.current.push(v),(p=l.current)===null||p===void 0||p.subscribeNs(v)},h=n.isLoaded(o);c.useEffect(()=>{const v=n.onNsUpdate(a);return l.current=v,v.subscribeNs(o),f.current.forEach(p=>{v.subscribeNs(p)}),()=>{v.unsubscribe()}},[i,n]),c.useEffect(()=>(n.addActiveNs(o),()=>n.removeActiveNs(o)),[i,n]);const g=c.useCallback(v=>{var p;const C=(p=v.ns)!==null&&p!==void 0?p:o==null?void 0:o[0];return d(C),n.t(Object.assign(Object.assign({},v),{ns:C}))},[n,u]);if(s.useSuspense&&!h)throw n.addActiveNs(o,!0);return{t:g,isLoading:!h}},xt=(t,e)=>{const{t:n,isLoading:r}=_a(t,e);return{t:c.useCallback((...i)=>{const s=Va(...i);return n(s)},[n]),isLoading:r}},Bh=t=>{if(!t)return;const e={};return Object.entries(t||{}).forEach(([n,r])=>{if(typeof r=="function")e[n]=o=>r(_i(o));else if(c.isValidElement(r)){const o=r;e[n]=i=>o.props.children===void 0&&(i!=null&&i.length)?c.cloneElement(o,{},_i(i)):c.cloneElement(o)}else e[n]=r}),e},_i=t=>Array.isArray(t)?c.Children.toArray(t):t,Nh=t=>{const e=t.keyName||t.children;e===void 0&&console.error("T component: keyName not defined");const n=t.defaultValue||(t.keyName?t.children:void 0),r=_i(t.t({key:e,params:Bh(t.params),defaultValue:n,noWrap:t.noWrap,ns:t.ns,language:t.language}));return c.createElement(c.Fragment,null,r)},gn=t=>{const{t:e}=_a();return c.createElement(Nh,Object.assign({t:e},t))},jh=t=>{const{tolgee:e}=Za(),{rerender:n}=Ja();return c.useEffect(()=>{const r=t==null?void 0:t.map(o=>e.on(o,n));return()=>{r==null||r.forEach(o=>o.unsubscribe())}},[t==null?void 0:t.join(":")]),e};function co(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Uh=function(t,e,n,r,o,i,s,a){if(!t){var u;if(e===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,s,a],f=0;u=new Error(e.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},Hh=Uh;const hr=co(Hh);var Xa={},$a={exports:{}};(function(t){var e=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(T,I,D){T[I]=D.value},s,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(T,I,D){return Object.defineProperty(T,I,{value:D,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{d({},"")}catch{d=function(I,D,V){return I[D]=V}}function h(T,I,D,V){var H=I&&I.prototype instanceof b?I:b,Y=Object.create(H.prototype),ne=new K(V||[]);return i(Y,"_invoke",{value:k(T,D,ne)}),Y}n.wrap=h;function g(T,I,D){try{return{type:"normal",arg:T.call(I,D)}}catch(V){return{type:"throw",arg:V}}}var v="suspendedStart",p="suspendedYield",C="executing",w="completed",m={};function b(){}function O(){}function S(){}var y={};d(y,u,function(){return this});var E=Object.getPrototypeOf,A=E&&E(E(G([])));A&&A!==r&&o.call(A,u)&&(y=A);var M=S.prototype=b.prototype=Object.create(y);O.prototype=S,i(M,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:O,configurable:!0}),O.displayName=d(S,f,"GeneratorFunction");function P(T){["next","throw","return"].forEach(function(I){d(T,I,function(D){return this._invoke(I,D)})})}n.isGeneratorFunction=function(T){var I=typeof T=="function"&&T.constructor;return I?I===O||(I.displayName||I.name)==="GeneratorFunction":!1},n.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,S):(T.__proto__=S,d(T,f,"GeneratorFunction")),T.prototype=Object.create(M),T},n.awrap=function(T){return{__await:T}};function x(T,I){function D(Y,ne,U,ee){var le=g(T[Y],T,ne);if(le.type==="throw")ee(le.arg);else{var Z=le.arg,B=Z.value;return B&&typeof B=="object"&&o.call(B,"__await")?I.resolve(B.__await).then(function(q){D("next",q,U,ee)},function(q){D("throw",q,U,ee)}):I.resolve(B).then(function(q){Z.value=q,U(Z)},function(q){return D("throw",q,U,ee)})}}var V;function H(Y,ne){function U(){return new I(function(ee,le){D(Y,ne,ee,le)})}return V=V?V.then(U,U):U()}i(this,"_invoke",{value:H})}P(x.prototype),d(x.prototype,l,function(){return this}),n.AsyncIterator=x,n.async=function(T,I,D,V,H){H===void 0&&(H=Promise);var Y=new x(h(T,I,D,V),H);return n.isGeneratorFunction(I)?Y:Y.next().then(function(ne){return ne.done?ne.value:Y.next()})};function k(T,I,D){var V=v;return function(Y,ne){if(V===C)throw new Error("Generator is already running");if(V===w){if(Y==="throw")throw ne;return R()}for(D.method=Y,D.arg=ne;;){var U=D.delegate;if(U){var ee=N(U,D);if(ee){if(ee===m)continue;return ee}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(V===v)throw V=w,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);V=C;var le=g(T,I,D);if(le.type==="normal"){if(V=D.done?w:p,le.arg===m)continue;return{value:le.arg,done:D.done}}else le.type==="throw"&&(V=w,D.method="throw",D.arg=le.arg)}}}function N(T,I){var D=I.method,V=T.iterator[D];if(V===s)return I.delegate=null,D==="throw"&&T.iterator.return&&(I.method="return",I.arg=s,N(T,I),I.method==="throw")||D!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+D+"' method")),m;var H=g(V,T.iterator,I.arg);if(H.type==="throw")return I.method="throw",I.arg=H.arg,I.delegate=null,m;var Y=H.arg;if(!Y)return I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,m;if(Y.done)I[T.resultName]=Y.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=s);else return Y;return I.delegate=null,m}P(M),d(M,f,"Generator"),d(M,u,function(){return this}),d(M,"toString",function(){return"[object Generator]"});function z(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function Q(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function K(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(z,this),this.reset(!0)}n.keys=function(T){var I=Object(T),D=[];for(var V in I)D.push(V);return D.reverse(),function H(){for(;D.length;){var Y=D.pop();if(Y in I)return H.value=Y,H.done=!1,H}return H.done=!0,H}};function G(T){if(T){var I=T[u];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var D=-1,V=function H(){for(;++D<T.length;)if(o.call(T,D))return H.value=T[D],H.done=!1,H;return H.value=s,H.done=!0,H};return V.next=V}}return{next:R}}n.values=G;function R(){return{value:s,done:!0}}return K.prototype={constructor:K,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(Q),!T)for(var I in this)I.charAt(0)==="t"&&o.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=s)},stop:function(){this.done=!0;var T=this.tryEntries[0],I=T.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var I=this;function D(ee,le){return Y.type="throw",Y.arg=T,I.next=ee,le&&(I.method="next",I.arg=s),!!le}for(var V=this.tryEntries.length-1;V>=0;--V){var H=this.tryEntries[V],Y=H.completion;if(H.tryLoc==="root")return D("end");if(H.tryLoc<=this.prev){var ne=o.call(H,"catchLoc"),U=o.call(H,"finallyLoc");if(ne&&U){if(this.prev<H.catchLoc)return D(H.catchLoc,!0);if(this.prev<H.finallyLoc)return D(H.finallyLoc)}else if(ne){if(this.prev<H.catchLoc)return D(H.catchLoc,!0)}else if(U){if(this.prev<H.finallyLoc)return D(H.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(T,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&o.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var H=V;break}}H&&(T==="break"||T==="continue")&&H.tryLoc<=I&&I<=H.finallyLoc&&(H=null);var Y=H?H.completion:{};return Y.type=T,Y.arg=I,H?(this.method="next",this.next=H.finallyLoc,m):this.complete(Y)},complete:function(T,I){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&I&&(this.next=I),m},finish:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===T)return this.complete(D.completion,D.afterLoc),Q(D),m}},catch:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===T){var V=D.completion;if(V.type==="throw"){var H=V.arg;Q(D)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(T,I,D){return this.delegate={iterator:G(T),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=s),m}},n}(t.exports);try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})($a);var zh=$a.exports;(function(t){var e=zh;function n(v,p,C,w,m,b,O){try{var S=v[b](O),y=S.value}catch(E){return void C(E)}S.done?p(y):Promise.resolve(y).then(w,m)}function r(v){return function(){var p=this,C=arguments;return new Promise(function(w,m){var b=v.apply(p,C);function O(y){n(b,w,m,O,S,"next",y)}function S(y){n(b,w,m,O,S,"throw",y)}O(void 0)})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=!1,i=null,s="en",a=null,u=null,l="https://maps.googleapis.com/maps/api/geocode/json";function f(v){var p=arguments.length>1&&arguments[1]!==void 0&&arguments[1];o&&(p?console.warn(v):console.log(v))}function d(v){return h.apply(this,arguments)}function h(){return(h=r(e.mark(function v(p){var C,w;return e.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,fetch(p).catch(function(){return Promise.reject(new Error("Error fetching data"))});case 2:return C=m.sent,m.next=5,C.json().catch(function(){return f("Error parsing server response"),Promise.reject(new Error("Error parsing server response"))});case 5:if((w=m.sent).status!=="OK"){m.next=9;break}return f(w),m.abrupt("return",w);case 9:return f("".concat(w.error_message,`.
|
|
1
|
+
(function(Tt,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-dom/server")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-dom/server"],L):(Tt=typeof globalThis<"u"?globalThis:Tt||self,L(Tt["@omnic/widget-locations"]={},Tt["react/jsx-runtime"],Tt.React,Tt.ReactDOM,Tt["react-dom/server"]))})(this,function(Tt,L,c,Hn,lo){"use strict";function Ia(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ce=Ia(c),Da=Ia(Hn),tC="",nC="";function Fi(t){return!!(t&&typeof t.then=="function")}function uo(t,e){return Fi(t)?Promise.resolve(t).then(e):e(t)}function Ta(t){const e=(Array.isArray(t)?t:[t]).map(i=>`'${i}'`),n=e.slice(-2).join(" or ");return`Tolgee: You need to specify ${[...e.slice(0,-2),n].join(", ")} option`}function Fd(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function Ba(t){if(typeof t=="string")return[t];if(Array.isArray(t))return t}function Et(t){return Ba(t)||[]}function Vd(t,e){return Fd(e)?Et(e==null?void 0:e[t]):Et(e)}function Vi(t){return Array.from(new Set(t))}function Na(t){return t&&t.replace(/\/+$/,"")}function Gd(t){if(typeof t=="string")return t;if(typeof(t==null?void 0:t.message)=="string")return t.message}const Qd=(t,e)=>fetch(t,e),ja=(t=Qd)=>(e,n)=>t(e,Object.assign(Object.assign({},n),{headers:Object.assign({"X-Tolgee-SDK-Type":"JS","X-Tolgee-SDK-Version":"5.12.0"},n==null?void 0:n.headers)}));function Jt(t){let e=[];return Object.freeze({listen(n){const r=o=>{n(o)};return e.push(r),{unsubscribe(){e=e.filter(o=>r!==o)}}},emit(n){t()&&e.forEach(r=>r({value:n}))}})}function Yd(t,e,n){const r=new Set,o=new Set;function i(u){const l=new Set(e());o.forEach(f=>{(u===void 0||(u==null?void 0:u.findIndex(h=>l.has(h)||f.namespaces.has(h)))!==-1)&&f.fn({value:void 0})})}let s=[];function a(){if(s.length===0)return;const u=s;s=[],r.forEach(d=>{d({value:void 0})});let l=new Set;u.forEach(d=>{d===void 0?l=void 0:l!==void 0&&d.forEach(h=>l.add(h))});const f=l?Array.from(l.keys()):void 0;i(f)}return Object.freeze({emit(u,l){t()&&(s.push(u),l?setTimeout(a,0):a())},listen(u){return r.add(u),{unsubscribe:()=>{r.delete(u)}}},listenSome(u){const l={fn:d=>{u(d)},namespaces:new Set};o.add(l);const f={unsubscribe:()=>{o.delete(l)},subscribeNs:d=>(Et(d).forEach(h=>l.namespaces.add(h)),d===void 0&&l.namespaces.add(n()),f)};return f}})}function Wd(t,e){let n=!0;function r(){return n}const o=Object.freeze({onPendingLanguageChange:Jt(r),onLanguageChange:Jt(r),onLoadingChange:Jt(r),onFetchingChange:Jt(r),onInitialLoaded:Jt(r),onRunningChange:Jt(r),onCacheChange:Jt(r),onUpdate:Yd(r,t,e),onPermanentChange:Jt(r),setEmitterActive(i){n=i},on:(i,s)=>{switch(i){case"pendingLanguage":return o.onPendingLanguageChange.listen(s);case"language":return o.onLanguageChange.listen(s);case"loading":return o.onLoadingChange.listen(s);case"fetching":return o.onFetchingChange.listen(s);case"initialLoad":return o.onInitialLoaded.listen(s);case"running":return o.onRunningChange.listen(s);case"cache":return o.onCacheChange.listen(s);case"update":return o.onUpdate.listen(s);case"permanentChange":return o.onPermanentChange.listen(s)}}});return o.onInitialLoaded.listen(()=>o.onUpdate.emit()),o.onLanguageChange.listen(()=>o.onUpdate.emit()),o.onCacheChange.listen(({value:i})=>o.onUpdate.emit([i.namespace],!0)),o}const Ua=t=>{const e=new Map;return Object.entries(t).forEach(([n,r])=>{if(r!=null){if(typeof r=="object"){Ua(r).forEach((o,i)=>{e.set(n+"."+i,o)});return}e.set(n,r)}}),e},hr=t=>{const[e,...n]=t.split(":"),r=n.join(":");return{language:e,namespace:r||""}},Qt=({language:t,namespace:e})=>e?`${t}:${e}`:t;function Rd(t,e,n,r,o,i,s){const a=new Map,u=new Map;let l={},f=0;function d(p,C,w){const m=Qt(p);u.set(m,{data:Ua(C),version:w}),t.emit(p)}function h(p){let C;if(!C){const w=l[Qt(p)];typeof w=="function"&&(C=w())}return C||(C=e(p)),C}function g(p,C){var w;let m;return C&&(m=(w=n(p))===null||w===void 0?void 0:w.catch(()=>(console.warn("Tolgee: Failed to fetch data from dev backend"),h(p)))),m||(m=h(p)),m}const v=Object.freeze({addStaticData(p){p&&(l=Object.assign(Object.assign({},l),p),Object.entries(p).forEach(([C,w])=>{if(typeof w!="function"){const m=hr(C),b=u.get(C);(!b||b.version===0)&&d(m,w,0)}}))},invalidate(){a.clear(),f+=1},addRecord(p,C){d(p,C,f)},exists(p,C=!1){const w=u.get(Qt(p));return w&&C?w.version===f:!!w},getRecord(p){var C;return(C=u.get(Qt(r(p))))===null||C===void 0?void 0:C.data},getTranslation(p,C){var w;return(w=u.get(Qt(p)))===null||w===void 0?void 0:w.data.get(C)},getTranslationNs(p,C,w){var m;for(const b of p)for(const O of C){const S=(m=u.get(Qt({language:O,namespace:b})))===null||m===void 0?void 0:m.data.get(w);if(S!=null)return[b]}return Vi(p)},getTranslationFallback(p,C,w){var m;for(const b of p)for(const O of C){const S=(m=u.get(Qt({language:O,namespace:b})))===null||m===void 0?void 0:m.data.get(w);if(S!=null)return S}},changeTranslation(p,C,w){var m;const b=(m=u.get(Qt(p)))===null||m===void 0?void 0:m.data;b==null||b.set(C,w),t.emit(Object.assign(Object.assign({},p),{key:C}))},isFetching(p){if(o())return!0;if(p===void 0)return a.size>0;const C=Et(p);return!!Array.from(a.keys()).find(w=>C.includes(hr(w).namespace))},isLoading(p,C){const w=Et(C);return!!(o()||Array.from(a.keys()).find(m=>{const b=hr(m);return(!w.length||w.includes(b.namespace))&&!v.exists({namespace:b.namespace,language:p})}))},async loadRecords(p,C){const w=p.map(b=>{const O=r(b),S=Qt(O),y=a.get(S);if(y)return{new:!1,promise:y,keyObject:O,cacheKey:S};const E=g(O,C)||Promise.resolve(void 0);return a.set(S,E),{new:!0,promise:E,keyObject:O,cacheKey:S}});i.notify(),s.notify();const m=await Promise.all(w.map(b=>b.promise));return w.forEach((b,O)=>{const S=a.get(b.cacheKey)!==b.promise;if(b.new&&!S){a.delete(b.cacheKey);const y=m[O];y?v.addRecord(b.keyObject,y):v.getRecord(b.keyObject)||v.addRecord(b.keyObject,{})}}),i.notify(),s.notify(),w.map(b=>v.getRecord(b.keyObject))},getAllRecords(){return Array.from(u.entries()).map(([C,w])=>Object.assign(Object.assign({},hr(C)),{data:w.data}))}});return v}function Ha(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}const Kd={tagAttributes:{textarea:["placeholder"],input:["value","placeholder"],img:["alt"],"*":["aria-label","title"]},restrictedElements:["script","style"],highlightKeys:["Alt"],highlightColor:"rgb(255, 0, 0)",highlightWidth:5,inputPrefix:"%-%tolgee:",inputSuffix:"%-%",passToParent:["option","optgroup"],fullKeyEncode:!1},Gi="invalid",qd={defaultNs:"",observerOptions:Kd,observerType:"invisible",onFormatError:Gi,apiUrl:"https://app.tolgee.io",fetch:ja()},Qi=(...t)=>{let e={};return t.forEach(n=>{e=Object.assign(Object.assign(Object.assign({},e),n),{observerOptions:Object.assign(Object.assign({},e.observerOptions),n==null?void 0:n.observerOptions)})}),e};function za(t,e){const n=Qi(qd,e==null?void 0:e.initialOptions,t);return n.apiUrl=Na(n.apiUrl),t!=null&&t.fetch&&(n.fetch=ja(t.fetch)),{initialOptions:n,activeNamespaces:(e==null?void 0:e.activeNamespaces)||new Map,language:e==null?void 0:e.language,pendingLanguage:e==null?void 0:e.language,isInitialLoading:!1,isRunning:!1}}function Zd(t,e,n,r,o,i,s,a){const u={ui:void 0},l={formatters:[],finalFormatter:void 0,observer:void 0,devBackend:void 0,backends:[],ui:void 0,languageDetector:void 0,languageStorage:void 0},f=async({keysAndDefaults:x,event:k})=>{var N;const z=x.map(({key:Q,ns:K,defaultValue:G})=>({key:Q,defaultValue:G,fallbackNamespaces:r(K),namespace:o({key:Q,ns:K})[0],translation:i({key:Q,ns:K})}));(N=l.ui)===null||N===void 0||N.handleElementClick(z,k)},d=(x,k)=>{var N;return((N=l.observer)===null||N===void 0?void 0:N.findPositions(x,k))||[]};function h(x){const k=i({key:x.key,ns:x.ns});return P.formatTranslation(Object.assign(Object.assign({},x),{translation:k,formatEnabled:!0}))}function g(){return{fetch:e().fetch}}function v(x){l.observer=x==null?void 0:x()}function p(){return!!l.observer}function C(x){x&&l.formatters.push(x)}function w(x){l.finalFormatter=x}function m(x){u.ui=x}function b(){return!!u.ui}function O(x){l.languageStorage=x}function S(x){l.languageDetector=x}function y(){if(!l.languageDetector)return;const x=n();return l.languageDetector.getLanguage(Object.assign({availableLanguages:x},g()))}function E(x){x&&l.backends.push(x)}function A(x){l.devBackend=x}function M(x,k){const N=Object.freeze({setFinalFormatter:w,addFormatter:C,setObserver:v,hasObserver:p,setUi:m,hasUi:b,setDevBackend:A,addBackend:E,setLanguageDetector:S,setLanguageStorage:O});k(x,N)}const P=Object.freeze({addPlugin:M,run(){var x,k;const{apiKey:N,apiUrl:z,projectId:Q,observerOptions:K}=e();l.ui=(x=u.ui)===null||x===void 0?void 0:x.call(u,{apiKey:N,apiUrl:z,projectId:Q,highlight:P.highlight,changeTranslation:s,findPositions:d,onPermanentChange:a}),(k=l.observer)===null||k===void 0||k.run({mouseHighlight:!0,options:K,translate:h,onClick:f})},stop(){var x;l.ui=void 0,(x=l.observer)===null||x===void 0||x.stop()},getLanguageStorage(){return l.languageStorage},getInitialLanguage(){var x;const k=n(),N=(x=l.languageStorage)===null||x===void 0?void 0:x.getLanguage(g());return uo(N,z=>(!k||k.includes(z))&&z?z:y())},setStoredLanguage(x){var k;(k=l.languageStorage)===null||k===void 0||k.setLanguage(x,g())},getDevBackend(){return l.devBackend},getBackendRecord:({language:x,namespace:k})=>{for(const N of l.backends){const z=N.getRecord(Object.assign({language:x,namespace:k},g()));if(Fi(z))return z==null?void 0:z.catch(Q=>(console.error(Q),{}));if(z!==void 0)return z}},getBackendDevRecord:({language:x,namespace:k})=>{var N;const{apiKey:z,apiUrl:Q,projectId:K}=e();return(N=l.devBackend)===null||N===void 0?void 0:N.getRecord(Object.assign({apiKey:z,apiUrl:Q,projectId:K,language:x,namespace:k},g()))},getLanguageDetector(){return l.languageDetector},retranslate(){var x;(x=l.observer)===null||x===void 0||x.retranslate()},highlight:(x,k)=>{var N,z;return((z=(N=l.observer)===null||N===void 0?void 0:N.highlight)===null||z===void 0?void 0:z.call(N,x,k))||{unhighlight(){}}},unwrap(x){var k;return l.observer?(k=l.observer)===null||k===void 0?void 0:k.unwrap(x):{text:x,keys:[]}},wrap(x){var k;return l.observer?(k=l.observer)===null||k===void 0?void 0:k.wrap(x):x.translation},hasDevBackend(){return!!P.getDevBackend()},formatTranslation(x){var k,{formatEnabled:N}=x,z=Ha(x,["formatEnabled"]);const{key:Q,translation:K,defaultValue:G,noWrap:R,params:T,orEmpty:I,ns:D}=z,V=K||G;let H=V||(I?"":Q);const Y=t(),ne=N||!(!((k=l.observer)===null||k===void 0)&&k.outputNotFormattable),U=ee=>l.observer&&!R?l.observer.wrap({key:Q,translation:ee,defaultValue:G,params:T,ns:D}):ee;H=U(H);try{if(V&&Y&&ne)for(const ee of l.formatters)H=ee.format({translation:H,language:Y,params:T});l.finalFormatter&&V&&Y&&ne&&(H=l.finalFormatter.format({translation:H,language:Y,params:T}))}catch(ee){console.error(ee);const le=Gd(ee)||Gi,Z=e().onFormatError,B=typeof Z;B==="string"?H=Z:B==="function"?H=Z(le,z):H=Gi,H=U(H)}return H}});return P}const Fa=(t,e,n)=>{let r=t;return Object.freeze({init(o){r=o},notify(){const o=e();r!==o&&n(o),r=o}})};function Jd(t,e,n){let r=za(),o;const i=Object.freeze({init(s){r=za(s,r)},isRunning(){return r.isRunning},setRunning(s){r.isRunning!==s&&(r.isRunning=s,n.emit(s))},isInitialLoading(){return r.isInitialLoading},setInitialLoading(s){r.isInitialLoading=s},getLanguage(){return r.language||r.initialOptions.language},setLanguage(s){r.language!==s&&(r.language=s,t.emit(s))},getPendingLanguage(){return r.pendingLanguage||i.getLanguage()},setPendingLanguage(s){r.pendingLanguage!==s&&(r.pendingLanguage=s,e.emit(s))},getInitialOptions(){return Object.assign(Object.assign({},r.initialOptions),o)},addActiveNs(s){Et(s).forEach(u=>{const l=r.activeNamespaces.get(u);l!==void 0?r.activeNamespaces.set(u,l+1):r.activeNamespaces.set(u,1)})},removeActiveNs(s){Et(s).forEach(u=>{const l=r.activeNamespaces.get(u);l!==void 0&&l>1?r.activeNamespaces.set(u,l-1):r.activeNamespaces.delete(u)})},getRequiredNamespaces(){return Vi([...r.initialOptions.ns||[r.initialOptions.defaultNs],...Et(r.initialOptions.fallbackNs),...r.activeNamespaces.keys()])},getFallbackLangs(s){const a=s||i.getLanguage();return a?Vi([a,...Vd(a,r.initialOptions.fallbackLanguage)]):[]},getFallbackNs(){return Et(r.initialOptions.fallbackNs)},getDefaultNs(s){return s===void 0?r.initialOptions.defaultNs:s},getAvailableLanguages(){if(r.initialOptions.availableLanguages)return r.initialOptions.availableLanguages;if(r.initialOptions.staticData){const s=Object.keys(r.initialOptions.staticData).map(a=>hr(a).language);return Array.from(new Set(s))}},withDefaultNs(s){return{namespace:s.namespace===void 0?i.getInitialOptions().defaultNs:s.namespace,language:s.language}},overrideCredentials(s){s?o=Object.assign(Object.assign({},s),{apiUrl:Na(s.apiUrl)}):o=void 0}});return i}function _d(t){var{ns:e,noWrap:n,orEmpty:r,params:o,language:i}=t,s=Ha(t,["ns","noWrap","orEmpty","params","language"]);return Object.assign(Object.assign({},{ns:e,noWrap:n,orEmpty:r,language:i}),{params:Object.assign({},s)})}const Va=(t,...e)=>{let n={},r;return typeof t=="object"?n=t:(n.key=t,typeof e[0]=="string"?(n.defaultValue=e[0],r=e[1]):typeof e[0]=="object"&&(r=e[0])),r&&(n=Object.assign(Object.assign({},_d(r)),n)),n};function Xd({options:t}){const e=Wd(u,l),n=Fa(!1,()=>s.isFetching(),e.onFetchingChange.emit),r=Fa(!1,()=>y.isLoading(),e.onLoadingChange.emit),o=Jd(e.onLanguageChange,e.onPendingLanguageChange,e.onRunningChange),i=Zd(o.getLanguage,o.getInitialOptions,o.getAvailableLanguages,f,w,m,h,g),s=Rd(e.onCacheChange,i.getBackendRecord,i.getBackendDevRecord,o.withDefaultNs,o.isInitialLoading,n,r);t&&v(t);let a;e.onUpdate.listen(()=>{o.isRunning()&&i.retranslate()});function u(){return o.getFallbackNs()}function l(E){return o.getDefaultNs(E)}function f(E){return[...Et(l(E)),...u()]}function d(E){return[...Et(E??l()),...o.getRequiredNamespaces()]}function h(E,A,M){const P=o.withDefaultNs(E),x=s.getTranslation(P,A);return s.changeTranslation(P,A,M),{revert(){s.changeTranslation(P,A,x)}}}function g(E){e.onPermanentChange.emit({key:E.key,namespace:E.namespace})}function v(E){o.init(E),s.addStaticData(o.getInitialOptions().staticData)}function p(E,A){const M=o.getFallbackLangs(E),P=d(A),x=[];return M.forEach(k=>{P.forEach(N=>{s.exists({language:k,namespace:N},!0)||x.push({language:k,namespace:N})})}),x}function C(E,A){const M=p(E,A);if(M.length)return uo(y.loadRecords(M),()=>{})}function w({key:E,ns:A}){const M=o.getFallbackLangs(),P=f(A??void 0);return s.getTranslationNs(P,M,E)}function m({key:E,ns:A,language:M}){const P=f(A??void 0),x=o.getFallbackLangs(M);return s.getTranslationFallback(P,x,E)}function b(){const E=uo(O(),()=>C());if(Fi(E))return o.setInitialLoading(!0),n.notify(),r.notify(),Promise.resolve(E).then(()=>{o.setInitialLoading(!1),n.notify(),r.notify(),e.onInitialLoaded.emit()});e.onInitialLoaded.emit()}function O(){if(o.getLanguage())return;const A=i.getInitialLanguage();return uo(A,M=>{const P=M||o.getInitialOptions().defaultLanguage;P&&o.setLanguage(P)})}function S(){if((i.getLanguageDetector()||i.getLanguageStorage())&&!o.getAvailableLanguages())throw new Error(Ta("availableLanguages"));if(!o.getLanguage()&&!o.getInitialOptions().defaultLanguage)throw new Error(Ta(["defaultLanguage","language"]))}const y=Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),o),i),s),{init:v,getTranslation:m,changeTranslation:h,getTranslationNs:w,getDefaultAndFallbackNs:f,async changeLanguage(E){o.getPendingLanguage()===E&&o.getLanguage()===E||(o.setPendingLanguage(E),o.isRunning()&&await C(E),E===o.getPendingLanguage()&&(o.setLanguage(E),i.setStoredLanguage(E)))},async addActiveNs(E,A){A||o.addActiveNs(E),o.isRunning()&&await C(void 0,E)},loadRecords(E){return s.loadRecords(E,y.isDev())},async loadRecord(E){return(await y.loadRecords([E]))[0]},isLoading(E){return s.isLoading(o.getLanguage(),E)},isLoaded(E){const A=o.getLanguage();if(!A)return!1;const M=o.getFallbackLangs(A),P=d(E),x=[];return M.forEach(k=>{P.forEach(N=>{s.exists({language:k,namespace:N})||x.push({language:k,namespace:N})})}),x.length===0},t:(...E)=>{const A=Va(...E),M=m(A);return i.formatTranslation(Object.assign(Object.assign({},A),{translation:M}))},isDev(){return!!(o.getInitialOptions().apiKey&&o.getInitialOptions().apiUrl)},run(){return S(),o.isRunning()||(o.setRunning(!0),i.run(),a=b()),Promise.resolve(a)},stop(){o.isRunning()&&(i.stop(),o.setRunning(!1))}}));return y}function $d(t){const e=Xd({options:t});e.isDev()&&e.invalidate();function n(o){const i=e.isRunning();i&&e.stop(),o(),e.isDev()&&e.invalidate(),i&&e.run()}const r=Object.freeze({on:e.on,onNsUpdate:e.onUpdate.listenSome,setEmitterActive:e.setEmitterActive,getLanguage:e.getLanguage,getPendingLanguage:e.getPendingLanguage,changeLanguage:e.changeLanguage,changeTranslation:e.changeTranslation,addActiveNs:e.addActiveNs,removeActiveNs:e.removeActiveNs,loadRecords:e.loadRecords,loadRecord:e.loadRecord,addStaticData:e.addStaticData,getRecord:e.getRecord,getAllRecords:e.getAllRecords,isLoaded:e.isLoaded,isInitialLoading:e.isInitialLoading,isLoading:e.isLoading,isFetching:e.isFetching,isRunning:e.isRunning,run:e.run,stop:e.stop,t:e.t,highlight:e.highlight,getInitialOptions:e.getInitialOptions,isDev:e.isDev,wrap:e.wrap,unwrap:e.unwrap,overrideCredentials(o){n(()=>e.overrideCredentials(o))},addPlugin(o){o&&n(()=>e.addPlugin(r,o))},updateOptions(o){o&&n(()=>e.init(o))}});return r}const eh=()=>{const t={plugins:[],options:{}},e=Object.freeze({use(n){return t.plugins.push(n),e},updateDefaults(n){return t.options=Qi(t.options,n),e},init(n){const r=$d(Qi(t.options,n));return t.plugins.forEach(r.addPlugin),r}});return e},Ga=0,Yi=1,th=2;class nh extends Error{constructor(e,n,r){let o;e===Ga?o="Empty parameter":e===Yi?o="Unexpected character":o="Unexpected end",super(`Tolgee parser: ${o} at ${n} in "${r}"`),this.code=e,this.index=n}}function Qa(t){return/\s/.test(t)}const _t=0,Wi=1,co=2,Ri=3,Ki=4,rh=new Set([co,Wi,_t]),qi="'",oh=new Set(["{","}",qi]),ih=t=>/[0-9a-zA-Z_]/.test(t);function sh(t){let e=_t,n="",r="",o="";const i=[],s=[];let a=0;function u(h){throw new nh(h,a,t)}const l=()=>{i.push(n),n=""},f=()=>{ih(o)||u(Yi),r+=o},d=()=>{r===""&&u(Ga),s.push(r),r=""};for(a=0;a<t.length;a++)switch(o=t[a],e){case _t:o===qi?(n+=o,e=Wi):o==="{"?(l(),e=Ri):(n+=o,e=_t);break;case Wi:oh.has(o)?(n=n.slice(0,-1)+o,e=co):(n+=o,e=_t);break;case co:o===qi?e=_t:(n+=o,e=co);break;case Ri:o==="}"?(d(),e=_t):Qa(o)?r!==""&&(d(),e=Ki):(f(),e=Ri);break;case Ki:o=="}"?e=_t:Qa(o)?e=Ki:u(Yi)}return rh.has(e)||u(th),l(),[i,s]}function ah(t,e){const[n,r]=sh(t),o=[n[0]];for(let i=1;i<n.length;i++){const s=e==null?void 0:e[r[i-1]];if(s===void 0)throw new Error(`Missing parameter "${r[i-1]}" in "${t}"`);o.push(String(s)),o.push(n[i])}return o.join("")}function lh(){return{format:({translation:t,params:e})=>ah(t,e)}}const uh=()=>(t,e)=>(e.setFinalFormatter(lh()),t),ch="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function fh(t){const e=ch.indexOf(t);if(e===-1)throw new Error("Invalid character found: "+t);return e}function dh(t){const e=new Uint8Array(t),n=e.length;let r="",o=Math.pow(2,16)-1;for(let i=0;i<n;i+=o)i+o>n&&(o=n-i),r+=String.fromCharCode.apply(null,e.subarray(i,i+o));return r}function hh(t){t=t.toUpperCase();const e=t.length;let n=0,r=0,o=0;const i=new Uint8Array(e*5/8|0);for(let s=0;s<e;s++)r=r<<5|fh(t[s]),n+=5,n>=8&&(i[o++]=r>>>n-8&255,n-=8);return dh(i.buffer)}function ph(t){if(t)try{const[e,n]=t.split("_");if(e==="tgpak"){const[r]=hh(n).split("_");return Number(r)}}catch{console.warn("Tolgee: Api key can't be parsed")}}function gh(t){if(!t)return;const[e]=t.split("_");return e==="tgpak"?"tgpak":e==="tgpat"?"tgpat":"legacy"}function vh(){return{getRecord({apiUrl:t,apiKey:e,language:n,namespace:r,projectId:o,fetch:i}){var s;const a=(s=ph(e))!==null&&s!==void 0?s:o;let u=a!==void 0?`${t}/v2/projects/${a}/translations/${n}`:`${t}/v2/projects/translations/${n}`;if(r&&(u+=`?ns=${r}`),gh(e)==="tgpat"&&o===void 0)throw new Error("You need to specify 'projectId' when using PAT key");return i(u,{headers:{"X-API-Key":e||"","Content-Type":"application/json"}}).then(l=>{if(l.ok)return l.json().then(f=>f[n]);throw new Error(l.statusText)})}}}const mh=()=>(t,e)=>(e.setDevBackend(vh()),t);function yh(t,e){const n=r=>{var o,i;t.includes((o=r.data)===null||o===void 0?void 0:o.type)&&e((i=r.data)===null||i===void 0?void 0:i.data)};return window.addEventListener("message",n,!1),{unsubscribe(){window.removeEventListener("message",n)}}}function bh({message:t,recievingMessage:e,data:n,attempts:r=1}){let o=!1;const i=()=>new Promise((a,u)=>{const l=yh(e,d);window.postMessage({type:t,data:n},window.origin);const f=setTimeout(g,300);function d(v){clearTimeout(f),h(),a(v)}function h(){l.unsubscribe()}function g(){h(),u()}});return{cancel(){o=!0},promise:(async()=>{for(let a=0;a<r;a++){if(o)return new Promise(()=>{});try{return await i()}catch{continue}}if(!o)throw`Didn't recieve ${e.join(" or ")} in time.`;return new Promise(()=>{})})()}}function Eh(){let t;async function e(n){t==null||t();const{cancel:r,promise:o}=bh({message:"TOLGEE_READY",recievingMessage:["TOLGEE_PLUGIN_READY","TOLGEE_PLUGIN_UPDATED"],data:n,attempts:4});return t=r,o}return{update:e}}const wh="tolgee-in-context-tools.umd.min.js",Ch="@tolgee/in-context-tools",Sh="InContextTools",Lh="https://cdn.jsdelivr.net/npm";function Ah(t){return new Promise((e,n)=>{const r=document.createElement("script");r.src=t,r.addEventListener("load",()=>e()),r.addEventListener("error",o=>n(o.error)),document.body.appendChild(r)})}let Zi=null;function xh(t){return Zi||(Zi=Ah(`${Lh}/@tolgee/web@${t}/dist/${wh}`).then(()=>window[Ch][Sh])),Zi}const Ya="__tolgee_apiKey",Wa="__tolgee_apiUrl";function Ra(){const t=sessionStorage.getItem(Ya)||void 0,e=sessionStorage.getItem(Wa)||void 0;if(!(!t||!e))return{apiKey:t,apiUrl:e}}function Oh(){sessionStorage.removeItem(Ya),sessionStorage.removeItem(Wa)}function Ph(t){document.readyState!=="loading"?Promise.resolve().then(()=>{t()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",t)}let Ka=()=>t=>t;(()=>{if(typeof window>"u")return!1;try{return typeof sessionStorage<"u"&&sessionStorage}catch(t){return console.error("sessionStorage not available",t),!1}})()&&(Ka=()=>t=>{const e=Eh(),n=()=>({uiPresent:!0,uiVersion:void 0,mode:t.isDev()?"development":"production",config:{apiUrl:t.getInitialOptions().apiUrl||"",apiKey:t.getInitialOptions().apiKey||""}}),r=async()=>{const i=await xh("5.12.0");return s=>{const a=Ra();return s.addPlugin(i({credentials:a})),s}};return t.on("running",({value:i})=>{i&&Ph(()=>{e.update(n()).catch(Oh)})}),Ra()&&r().then(i=>{t.addPlugin(i)}).catch(i=>{console.error("Tolgee: Failed to load in-context tools"),console.error(i)}),t});function Mh(){return eh().use(Ka())}const kh={useSuspense:!0};let Ji;const qa=()=>(Ji||(Ji=c.createContext(void 0)),Ji),Ih=({tolgee:t,options:e,children:n,fallback:r})=>{const[o,i]=c.useState(!t.isLoaded());c.useEffect(()=>{t.run().catch(u=>{console.error(u)}).finally(()=>{i(!1)})},[t]);const s=Object.assign(Object.assign({},kh),e),a=qa();return s.useSuspense?c.createElement(a.Provider,{value:{tolgee:t,options:s}},o?r:c.createElement(c.Suspense,{fallback:r||null},n)):c.createElement(a.Provider,{value:{tolgee:t,options:s}},o?r:n)};let Dh;function Th(){return Dh}const Za=()=>{const t=qa(),e=c.useContext(t)||Th();if(!e)throw new Error("Couldn't find tolgee instance, did you forgot to use `TolgeeProvider`?");return e},Ja=()=>{const[t,e]=c.useState(0),n=c.useCallback(()=>{e(r=>r+1)},[e]);return{instance:t,rerender:n}},_a=(t,e)=>{const{tolgee:n,options:r}=Za(),o=Ba(t),i=Et(o).join(":"),s=Object.assign(Object.assign({},r),e),{rerender:a,instance:u}=Ja(),l=c.useRef(),f=c.useRef([]);f.current=[];const d=v=>{var p;f.current.push(v),(p=l.current)===null||p===void 0||p.subscribeNs(v)},h=n.isLoaded(o);c.useEffect(()=>{const v=n.onNsUpdate(a);return l.current=v,v.subscribeNs(o),f.current.forEach(p=>{v.subscribeNs(p)}),()=>{v.unsubscribe()}},[i,n]),c.useEffect(()=>(n.addActiveNs(o),()=>n.removeActiveNs(o)),[i,n]);const g=c.useCallback(v=>{var p;const C=(p=v.ns)!==null&&p!==void 0?p:o==null?void 0:o[0];return d(C),n.t(Object.assign(Object.assign({},v),{ns:C}))},[n,u]);if(s.useSuspense&&!h)throw n.addActiveNs(o,!0);return{t:g,isLoading:!h}},xt=(t,e)=>{const{t:n,isLoading:r}=_a(t,e);return{t:c.useCallback((...i)=>{const s=Va(...i);return n(s)},[n]),isLoading:r}},Bh=t=>{if(!t)return;const e={};return Object.entries(t||{}).forEach(([n,r])=>{if(typeof r=="function")e[n]=o=>r(_i(o));else if(c.isValidElement(r)){const o=r;e[n]=i=>o.props.children===void 0&&(i!=null&&i.length)?c.cloneElement(o,{},_i(i)):c.cloneElement(o)}else e[n]=r}),e},_i=t=>Array.isArray(t)?c.Children.toArray(t):t,Nh=t=>{const e=t.keyName||t.children;e===void 0&&console.error("T component: keyName not defined");const n=t.defaultValue||(t.keyName?t.children:void 0),r=_i(t.t({key:e,params:Bh(t.params),defaultValue:n,noWrap:t.noWrap,ns:t.ns,language:t.language}));return c.createElement(c.Fragment,null,r)},gn=t=>{const{t:e}=_a();return c.createElement(Nh,Object.assign({t:e},t))},jh=t=>{const{tolgee:e}=Za(),{rerender:n}=Ja();return c.useEffect(()=>{const r=t==null?void 0:t.map(o=>e.on(o,n));return()=>{r==null||r.forEach(o=>o.unsubscribe())}},[t==null?void 0:t.join(":")]),e};function fo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Uh=function(t,e,n,r,o,i,s,a){if(!t){var u;if(e===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,s,a],f=0;u=new Error(e.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},Hh=Uh;const pr=fo(Hh);var Xa={},$a={exports:{}};(function(t){var e=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(T,I,D){T[I]=D.value},s,a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(T,I,D){return Object.defineProperty(T,I,{value:D,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{d({},"")}catch{d=function(I,D,V){return I[D]=V}}function h(T,I,D,V){var H=I&&I.prototype instanceof b?I:b,Y=Object.create(H.prototype),ne=new K(V||[]);return i(Y,"_invoke",{value:k(T,D,ne)}),Y}n.wrap=h;function g(T,I,D){try{return{type:"normal",arg:T.call(I,D)}}catch(V){return{type:"throw",arg:V}}}var v="suspendedStart",p="suspendedYield",C="executing",w="completed",m={};function b(){}function O(){}function S(){}var y={};d(y,u,function(){return this});var E=Object.getPrototypeOf,A=E&&E(E(G([])));A&&A!==r&&o.call(A,u)&&(y=A);var M=S.prototype=b.prototype=Object.create(y);O.prototype=S,i(M,"constructor",{value:S,configurable:!0}),i(S,"constructor",{value:O,configurable:!0}),O.displayName=d(S,f,"GeneratorFunction");function P(T){["next","throw","return"].forEach(function(I){d(T,I,function(D){return this._invoke(I,D)})})}n.isGeneratorFunction=function(T){var I=typeof T=="function"&&T.constructor;return I?I===O||(I.displayName||I.name)==="GeneratorFunction":!1},n.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,S):(T.__proto__=S,d(T,f,"GeneratorFunction")),T.prototype=Object.create(M),T},n.awrap=function(T){return{__await:T}};function x(T,I){function D(Y,ne,U,ee){var le=g(T[Y],T,ne);if(le.type==="throw")ee(le.arg);else{var Z=le.arg,B=Z.value;return B&&typeof B=="object"&&o.call(B,"__await")?I.resolve(B.__await).then(function(q){D("next",q,U,ee)},function(q){D("throw",q,U,ee)}):I.resolve(B).then(function(q){Z.value=q,U(Z)},function(q){return D("throw",q,U,ee)})}}var V;function H(Y,ne){function U(){return new I(function(ee,le){D(Y,ne,ee,le)})}return V=V?V.then(U,U):U()}i(this,"_invoke",{value:H})}P(x.prototype),d(x.prototype,l,function(){return this}),n.AsyncIterator=x,n.async=function(T,I,D,V,H){H===void 0&&(H=Promise);var Y=new x(h(T,I,D,V),H);return n.isGeneratorFunction(I)?Y:Y.next().then(function(ne){return ne.done?ne.value:Y.next()})};function k(T,I,D){var V=v;return function(Y,ne){if(V===C)throw new Error("Generator is already running");if(V===w){if(Y==="throw")throw ne;return R()}for(D.method=Y,D.arg=ne;;){var U=D.delegate;if(U){var ee=N(U,D);if(ee){if(ee===m)continue;return ee}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(V===v)throw V=w,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);V=C;var le=g(T,I,D);if(le.type==="normal"){if(V=D.done?w:p,le.arg===m)continue;return{value:le.arg,done:D.done}}else le.type==="throw"&&(V=w,D.method="throw",D.arg=le.arg)}}}function N(T,I){var D=I.method,V=T.iterator[D];if(V===s)return I.delegate=null,D==="throw"&&T.iterator.return&&(I.method="return",I.arg=s,N(T,I),I.method==="throw")||D!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+D+"' method")),m;var H=g(V,T.iterator,I.arg);if(H.type==="throw")return I.method="throw",I.arg=H.arg,I.delegate=null,m;var Y=H.arg;if(!Y)return I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,m;if(Y.done)I[T.resultName]=Y.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=s);else return Y;return I.delegate=null,m}P(M),d(M,f,"Generator"),d(M,u,function(){return this}),d(M,"toString",function(){return"[object Generator]"});function z(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function Q(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function K(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(z,this),this.reset(!0)}n.keys=function(T){var I=Object(T),D=[];for(var V in I)D.push(V);return D.reverse(),function H(){for(;D.length;){var Y=D.pop();if(Y in I)return H.value=Y,H.done=!1,H}return H.done=!0,H}};function G(T){if(T){var I=T[u];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var D=-1,V=function H(){for(;++D<T.length;)if(o.call(T,D))return H.value=T[D],H.done=!1,H;return H.value=s,H.done=!0,H};return V.next=V}}return{next:R}}n.values=G;function R(){return{value:s,done:!0}}return K.prototype={constructor:K,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(Q),!T)for(var I in this)I.charAt(0)==="t"&&o.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=s)},stop:function(){this.done=!0;var T=this.tryEntries[0],I=T.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var I=this;function D(ee,le){return Y.type="throw",Y.arg=T,I.next=ee,le&&(I.method="next",I.arg=s),!!le}for(var V=this.tryEntries.length-1;V>=0;--V){var H=this.tryEntries[V],Y=H.completion;if(H.tryLoc==="root")return D("end");if(H.tryLoc<=this.prev){var ne=o.call(H,"catchLoc"),U=o.call(H,"finallyLoc");if(ne&&U){if(this.prev<H.catchLoc)return D(H.catchLoc,!0);if(this.prev<H.finallyLoc)return D(H.finallyLoc)}else if(ne){if(this.prev<H.catchLoc)return D(H.catchLoc,!0)}else if(U){if(this.prev<H.finallyLoc)return D(H.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(T,I){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc<=this.prev&&o.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var H=V;break}}H&&(T==="break"||T==="continue")&&H.tryLoc<=I&&I<=H.finallyLoc&&(H=null);var Y=H?H.completion:{};return Y.type=T,Y.arg=I,H?(this.method="next",this.next=H.finallyLoc,m):this.complete(Y)},complete:function(T,I){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&I&&(this.next=I),m},finish:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.finallyLoc===T)return this.complete(D.completion,D.afterLoc),Q(D),m}},catch:function(T){for(var I=this.tryEntries.length-1;I>=0;--I){var D=this.tryEntries[I];if(D.tryLoc===T){var V=D.completion;if(V.type==="throw"){var H=V.arg;Q(D)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(T,I,D){return this.delegate={iterator:G(T),resultName:I,nextLoc:D},this.method==="next"&&(this.arg=s),m}},n}(t.exports);try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})($a);var zh=$a.exports;(function(t){var e=zh;function n(v,p,C,w,m,b,O){try{var S=v[b](O),y=S.value}catch(E){return void C(E)}S.done?p(y):Promise.resolve(y).then(w,m)}function r(v){return function(){var p=this,C=arguments;return new Promise(function(w,m){var b=v.apply(p,C);function O(y){n(b,w,m,O,S,"next",y)}function S(y){n(b,w,m,O,S,"throw",y)}O(void 0)})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=!1,i=null,s="en",a=null,u=null,l="https://maps.googleapis.com/maps/api/geocode/json";function f(v){var p=arguments.length>1&&arguments[1]!==void 0&&arguments[1];o&&(p?console.warn(v):console.log(v))}function d(v){return h.apply(this,arguments)}function h(){return(h=r(e.mark(function v(p){var C,w;return e.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,fetch(p).catch(function(){return Promise.reject(new Error("Error fetching data"))});case 2:return C=m.sent,m.next=5,C.json().catch(function(){return f("Error parsing server response"),Promise.reject(new Error("Error parsing server response"))});case 5:if((w=m.sent).status!=="OK"){m.next=9;break}return f(w),m.abrupt("return",w);case 9:return f("".concat(w.error_message,`.
|
|
2
2
|
Server returned status code `).concat(w.status),!0),m.abrupt("return",Promise.reject(new Error("".concat(w.error_message,`.
|
|
3
|
-
Server returned status code `).concat(w.status))));case 11:case"end":return m.stop()}},v)}))).apply(this,arguments)}var g={setApiKey:function(v){i=v},setLanguage:function(v){s=v},setRegion:function(v){a=v},setLocationType:function(v){u=v},enableDebug:function(){var v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];o=v},fromLatLng:function(v,p,C,w,m,b){return r(e.mark(function O(){var S,y;return e.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(v&&p){E.next=3;break}return f("Provided coordinates are invalid",!0),E.abrupt("return",Promise.reject(new Error("Provided coordinates are invalid")));case 3:return S="".concat(v,",").concat(p),y="".concat(l,"?latlng=").concat(encodeURIComponent(S)),(C||i)&&(y+="&key=".concat(i=C||i)),(w||s)&&(y+="&language=".concat(s=w||s)),(m||a)&&(a=m||a,y+="®ion=".concat(encodeURIComponent(a))),(b||u)&&(u=b||u,y+="&location_type=".concat(encodeURIComponent(u))),E.abrupt("return",d(y));case 9:case"end":return E.stop()}},O)}))()},fromAddress:function(v,p,C,w){return r(e.mark(function m(){var b;return e.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(v){O.next=3;break}return f("Provided address is invalid",!0),O.abrupt("return",Promise.reject(new Error("Provided address is invalid")));case 3:return b="".concat(l,"?address=").concat(encodeURIComponent(v)),(p||i)&&(b+="&key=".concat(i=p||i)),(C||s)&&(b+="&language=".concat(s=C||s)),(w||a)&&(a=w||a,b+="®ion=".concat(encodeURIComponent(a))),O.abrupt("return",d(b));case 8:case"end":return O.stop()}},m)}))()}};t.default=g})(Xa);const fo
|
|
3
|
+
Server returned status code `).concat(w.status))));case 11:case"end":return m.stop()}},v)}))).apply(this,arguments)}var g={setApiKey:function(v){i=v},setLanguage:function(v){s=v},setRegion:function(v){a=v},setLocationType:function(v){u=v},enableDebug:function(){var v=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];o=v},fromLatLng:function(v,p,C,w,m,b){return r(e.mark(function O(){var S,y;return e.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(v&&p){E.next=3;break}return f("Provided coordinates are invalid",!0),E.abrupt("return",Promise.reject(new Error("Provided coordinates are invalid")));case 3:return S="".concat(v,",").concat(p),y="".concat(l,"?latlng=").concat(encodeURIComponent(S)),(C||i)&&(y+="&key=".concat(i=C||i)),(w||s)&&(y+="&language=".concat(s=w||s)),(m||a)&&(a=m||a,y+="®ion=".concat(encodeURIComponent(a))),(b||u)&&(u=b||u,y+="&location_type=".concat(encodeURIComponent(u))),E.abrupt("return",d(y));case 9:case"end":return E.stop()}},O)}))()},fromAddress:function(v,p,C,w){return r(e.mark(function m(){var b;return e.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(v){O.next=3;break}return f("Provided address is invalid",!0),O.abrupt("return",Promise.reject(new Error("Provided address is invalid")));case 3:return b="".concat(l,"?address=").concat(encodeURIComponent(v)),(p||i)&&(b+="&key=".concat(i=p||i)),(C||s)&&(b+="&language=".concat(s=C||s)),(w||a)&&(a=w||a,b+="®ion=".concat(encodeURIComponent(a))),O.abrupt("return",d(b));case 8:case"end":return O.stop()}},m)}))()}};t.default=g})(Xa);const ho=fo(Xa);ho.setApiKey("AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA");const Fh=Mh().use(mh()).use(uh()).init({language:"en",defaultNs:"common",ns:["common","courier_balloon","current_location","details_modal","header","location_aside","location_selector","receive_filter","send_filter","type_filter"],apiUrl:"https://tms.omnic.solutions",apiKey:"tgpak_gfpwi2dimy3domrsnezham3ugbvw24tfm5vwk3bqgntxa"});var el={exports:{}};/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|
|
6
6
|
http://jedwatson.github.io/classnames
|
|
7
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)e.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(el);var Vh=el.exports;const Ce=
|
|
7
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)e.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(el);var Vh=el.exports;const Ce=fo(Vh),tl=t=>{let e;const n=new Set,r=(u,l)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const d=e;e=l??typeof f!="object"?f:Object.assign({},e,f),n.forEach(h=>h(e,d))}},o=()=>e,a={setState:r,getState:o,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{n.clear()}};return e=t(r,o,a),a},Gh=t=>t?tl(t):tl;var nl={exports:{}},rl={},ol={exports:{}},il={};/**
|
|
8
8
|
* @license React
|
|
9
9
|
* use-sync-external-store-shim.production.min.js
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ Server returned status code `).concat(w.status))));case 11:case"end":return m.st
|
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
15
|
+
*/var zn=c;function Qh(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Yh=typeof Object.is=="function"?Object.is:Qh,Wh=zn.useState,Rh=zn.useEffect,Kh=zn.useLayoutEffect,qh=zn.useDebugValue;function Zh(t,e){var n=e(),r=Wh({inst:{value:n,getSnapshot:e}}),o=r[0].inst,i=r[1];return Kh(function(){o.value=n,o.getSnapshot=e,Xi(o)&&i({inst:o})},[t,n,e]),Rh(function(){return Xi(o)&&i({inst:o}),t(function(){Xi(o)&&i({inst:o})})},[t]),qh(n),n}function Xi(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Yh(t,n)}catch{return!0}}function Jh(t,e){return e()}var _h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jh:Zh;il.useSyncExternalStore=zn.useSyncExternalStore!==void 0?zn.useSyncExternalStore:_h,ol.exports=il;var Xh=ol.exports;/**
|
|
16
16
|
* @license React
|
|
17
17
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
18
18
|
*
|
|
@@ -20,7 +20,7 @@ Server returned status code `).concat(w.status))));case 11:case"end":return m.st
|
|
|
20
20
|
*
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var
|
|
23
|
+
*/var po=c,$h=Xh;function ep(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var tp=typeof Object.is=="function"?Object.is:ep,np=$h.useSyncExternalStore,rp=po.useRef,op=po.useEffect,ip=po.useMemo,sp=po.useDebugValue;rl.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var i=rp(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=ip(function(){function u(g){if(!l){if(l=!0,f=g,g=r(g),o!==void 0&&s.hasValue){var v=s.value;if(o(v,g))return d=v}return d=g}if(v=d,tp(f,g))return v;var p=r(g);return o!==void 0&&o(v,p)?v:(f=g,d=p)}var l=!1,f,d,h=n===void 0?null:n;return[function(){return u(e())},h===null?void 0:function(){return u(h())}]},[e,n,r,o]);var a=np(t,i[0],i[1]);return op(function(){s.hasValue=!0,s.value=a},[a]),sp(a),a},nl.exports=rl;var ap=nl.exports;const lp=fo(ap),{useSyncExternalStoreWithSelector:up}=lp;let iC=!1;function cp(t,e=t.getState,n){const r=up(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return c.useDebugValue(r),r}const sl=t=>{const e=typeof t=="function"?Gh(t):t,n=(r,o)=>cp(e,r,o);return Object.assign(n,e),n},Xt=t=>t?sl(t):sl;let go;const fp=new Uint8Array(16);function dp(){if(!go&&(go=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!go))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return go(fp)}const nt=[];for(let t=0;t<256;++t)nt.push((t+256).toString(16).slice(1));function hp(t,e=0){return nt[t[e+0]]+nt[t[e+1]]+nt[t[e+2]]+nt[t[e+3]]+"-"+nt[t[e+4]]+nt[t[e+5]]+"-"+nt[t[e+6]]+nt[t[e+7]]+"-"+nt[t[e+8]]+nt[t[e+9]]+"-"+nt[t[e+10]]+nt[t[e+11]]+nt[t[e+12]]+nt[t[e+13]]+nt[t[e+14]]+nt[t[e+15]]}const al={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ll(t,e,n){if(al.randomUUID&&!e&&!t)return al.randomUUID();t=t||{};const r=t.random||(t.rng||dp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let o=0;o<16;++o)e[n+o]=r[o];return e}return hp(r)}const $i=ll(),vo=ll(),Yt=[48,66],Fn=[58,80],es=10,ul=6,mo=20,ts=10,$t=[49.3478969,14.0983344],pp="en",gp=["places","geocoding"],vp={mode:"self_pickup",bounds:null,blurred:!1,loaded:!1,loading:!0,zoom:mo,detailsOpen:!1},ze=Xt()(t=>({...vp,setLoaded(){t({loaded:!0,loading:!1})},setMode(e){t({mode:e})},setBounds(e){t({bounds:e})},setZoom(e){t({zoom:e})},setDetailsOpen(e){t({detailsOpen:e})},setBlurred(e){t({blurred:e})}})),vn={locale:pp,map:{provider:"google",center:$t,initialZoom:ul}},cl=c.createContext(vn),Bt=()=>c.useContext(cl),mp={courierPoint:null},mt=Xt()(t=>({...mp,setCourierPoint(e){t({courierPoint:e})}})),yo={root:"Button-module__root__8NAnx6",primary:"Button-module__primary__UsjvpK",secondary:"Button-module__secondary__VtNj8s"},wt=({className:t,variant:e="primary",...n})=>{if(n.as==="link"){const{as:i,...s}=n;return L.jsx("a",{className:Ce(yo.root,t,yo[e]),...s})}const{as:r,...o}=n;return L.jsx("button",{className:Ce(yo.root,t,yo[e]),...o})};wt.defaultProps={as:"button"};const yp=t=>ce.createElement("svg",{width:123,height:32,viewBox:"0 0 123 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{d:"M6.69783 32C5.49102 32 4.3747 31.7038 3.34892 31.1112C2.32312 30.5186 1.50852 29.7186 0.905114 28.7112C0.301705 27.7038 0 26.6074 0 25.4222V6.57778C0 5.36296 0.301705 4.26666 0.905114 3.28888C1.50852 2.28148 2.32312 1.48148 3.34892 0.888888C4.3747 0.296296 5.49102 0 6.69783 0H25.8862C27.093 0 28.1942 0.296296 29.1899 0.888888C30.2156 1.48148 31.0302 2.28148 31.6338 3.28888C32.2673 4.26666 32.5841 5.36296 32.5841 6.57778V25.4222C32.5841 26.6074 32.2673 27.7038 31.6338 28.7112C31.0302 29.7186 30.2156 30.5186 29.1899 31.1112C28.1942 31.7038 27.093 32 25.8862 32H6.69783ZM7.01462 25.0666H25.4789V6.93334H7.01462V25.0666Z",fill:"currentcolor"}),ce.createElement("path",{d:"M37.5678 32V0H44.8087L55.851 12.9333L66.8482 0H74.1345V32H67.0745V10.5333L55.851 23.6888L44.5824 10.5778V32H37.5678Z",fill:"currentcolor"}),ce.createElement("path",{d:"M79.5533 32V0H86.7941L105.032 21.3334V0H112.137V32H104.896L86.5679 10.5778V32H79.5533Z",fill:"currentcolor"}),ce.createElement("path",{d:"M116.076 32V0H123V32H116.076Z",fill:"currentcolor"})),gr={root:"Header-module__root__HQYeJV",nav:"Header-module__nav__E5j1Pg",navItem:"Header-module__navItem__9yWrFL",logo:"Header-module__logo__RE3idO"},bp=()=>{const{hideLogo:t}=Bt();return t?null:L.jsx("div",{className:gr.logo,children:L.jsx(yp,{})})},Ep=t=>ce.createElement("svg",{width:24,height:28,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11.7765C24 4.05176 17.6057 0 12 0C6.39429 0 0 4.05176 0 11.7765C0 16.9153 3.99429 22.3341 12 28C20.0057 22.3341 24 16.9153 24 11.7765ZM12.0001 16C14.2093 16 16.0001 14.2091 16.0001 12C16.0001 9.79086 14.2093 8 12.0001 8C9.79098 8 8.00012 9.79086 8.00012 12C8.00012 14.2091 9.79098 16 12.0001 16Z",fill:"#1760EE"})),wp={open:!1},bo=Xt(t=>({...wp,toggle(e){t(n=>({open:e??!n.open}))}})),Cp={place:null},mn=Xt(t=>({...Cp,setPlace(e){t({place:e})}})),Sp={location:null,hook:null},yt=Xt()(t=>({...Sp,setSelectedPoint(e){t({location:e})},setSelectPointHook(e){t({hook:e})}})),ns={root:"CurrentLocation-module__root__OP569R",text:"CurrentLocation-module__text__r-F6NH",icon:"CurrentLocation-module__icon__tNWTkm"},fl=({className:t})=>{var l;const{t:e}=xt("current_location"),n=bo(f=>f.toggle),r=mn(f=>f.place),o=ze(f=>f.setDetailsOpen),i=mt(f=>f.setCourierPoint),s=yt(f=>f.setSelectedPoint),a=()=>{n(!0),o(!1),i(null),s(null)},u=(l=r==null?void 0:r.address_components)==null?void 0:l.find(f=>f.types.includes("locality"));return L.jsxs("div",{className:Ce(ns.root,t),onClick:a,children:[L.jsx(Ep,{className:ns.icon}),L.jsxs("span",{className:ns.text,children:[!r&&e("choose_from_map"),r&&`${(u==null?void 0:u.long_name)??r.formatted_address}`]})]})},Lp=({className:t})=>{const{t:e}=xt("header"),{disableCourierDelivery:n}=Bt(),r=mt(d=>d.courierPoint),o=mt(d=>d.setCourierPoint),i=ze(d=>d.mode),s=ze(d=>d.setMode);c.useEffect(()=>{s(r?"courier_delivery":"self_pickup")},[r,s]);const a=()=>{o(null),s("self_pickup")},u=()=>{o(null),s("courier_delivery")},l=i==="self_pickup",f=i==="courier_delivery";return L.jsxs("div",{className:Ce(gr.root,t),children:[L.jsx(bp,{}),L.jsxs("nav",{className:gr.nav,children:[!n&&L.jsx(wt,{as:"link",className:gr.navItem,variant:l?"primary":"secondary",onClick:a,children:e("self_pickup")}),!n&&L.jsx(wt,{as:"link",className:gr.navItem,variant:f?"primary":"secondary",onClick:u,children:e("courier_delivery")}),L.jsx(fl,{})]})]})},Ap=c.memo(Lp),xp={open:!1},Vn=Xt(t=>({...xp,toggle(e){ze.getState().setDetailsOpen(!1),mt.getState().setCourierPoint(null),yt.getState().setSelectedPoint(null),t(n=>({open:e??!n.open}))}})),dl={root:"Layout-module__root__ahSFBs",sidebarOpen:"Layout-module__sidebarOpen__vFWl9b"},Op=({children:t})=>{const e=Vn(n=>n.open);return L.jsx("div",{className:Ce(dl.root,{[dl.sidebarOpen]:e}),children:t})};var Pp=Mp()?c.useLayoutEffect:c.useEffect;function Mp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function kp(){var t=c.useState(Object.create(null)),e=t[1];return c.useCallback(function(){e(Object.create(null))},[])}var Ip=function(e){var n=e.children,r=e.type,o=r===void 0?"reach-portal":r,i=c.useRef(null),s=c.useRef(null),a=kp();return Pp(function(){if(i.current){var u=i.current.ownerDocument;return s.current=u==null?void 0:u.createElement(o),u.body.appendChild(s.current),a(),function(){s.current&&s.current.ownerDocument&&s.current.ownerDocument.body.removeChild(s.current)}}},[o,a]),s.current?Hn.createPortal(n,s.current):c.createElement("span",{ref:i})};/*! *****************************************************************************
|
|
24
24
|
Copyright (c) Microsoft Corporation.
|
|
25
25
|
|
|
26
26
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -33,19 +33,19 @@ Server returned status code `).concat(w.status))));case 11:case"end":return m.st
|
|
|
33
33
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
34
34
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
35
35
|
PERFORMANCE OF THIS SOFTWARE.
|
|
36
|
-
***************************************************************************** */var W=function(){return W=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},W.apply(this,arguments)};function rs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Ee(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xe(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Fe(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Ne;(function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"})(Ne||(Ne={}));var Vn;(function(t){t.Parent="#_parent",t.Internal="#_internal"})(Vn||(Vn={}));var os=Ne.Start,is=Ne.Stop,gr=Ne.Raise,Eo=Ne.Send,hl=Ne.Cancel,Dp=Ne.NullEvent,ss=Ne.Assign;Ne.After,Ne.DoneState;var pl=Ne.Log,Tp=Ne.Init,as=Ne.Invoke;Ne.ErrorExecution;var gl=Ne.ErrorPlatform,Bp=Ne.ErrorCustom,vl=Ne.Update,Np=Ne.Choose,jp=Ne.Pure,ml=".",yl={},ls="xstate.guard",Up="",wo;function us(t,e,n){n===void 0&&(n=ml);var r=vr(t,n),o=vr(e,n);return Ie(o)?Ie(r)?o===r:!1:Ie(r)?r in o:Object.keys(r).every(function(i){return i in o?us(r[i],o[i]):!1})}function bl(t){try{return Ie(t)||typeof t=="number"?"".concat(t):t.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function cs(t,e){try{return Gn(t)?t:t.toString().split(e)}catch{throw new Error("'".concat(t,"' is not a valid state path."))}}function Hp(t){return typeof t=="object"&&"value"in t&&"context"in t&&"event"in t&&"_event"in t}function vr(t,e){if(Hp(t))return t.value;if(Gn(t))return Co(t);if(typeof t!="string")return t;var n=cs(t,e);return Co(n)}function Co(t){if(t.length===1)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function mr(t,e){for(var n={},r=Object.keys(t),o=0;o<r.length;o++){var i=r[o];n[i]=e(t[i],i,t,o)}return n}function El(t,e,n){var r,o,i={};try{for(var s=Ee(Object.keys(t)),a=s.next();!a.done;a=s.next()){var u=a.value,l=t[u];n(l)&&(i[u]=e(l,u,t))}}catch(f){r={error:f}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var zp=function(t){return function(e){var n,r,o=e;try{for(var i=Ee(t),s=i.next();!s.done;s=i.next()){var a=s.value;o=o[a]}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function Fp(t,e){return function(n){var r,o,i=n;try{for(var s=Ee(t),a=s.next();!a.done;a=s.next()){var u=a.value;i=i[e][u]}}catch(l){r={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}}function So(t){if(!t)return[[]];if(Ie(t))return[[t]];var e=Ye(Object.keys(t).map(function(n){var r=t[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:So(t[n]).map(function(o){return[n].concat(o)})}));return e}function Ye(t){var e;return(e=[]).concat.apply(e,Fe([],xe(t),!1))}function wl(t){return Gn(t)?t:[t]}function Ot(t){return t===void 0?[]:wl(t)}function Lo(t,e,n){var r,o;if(ke(t))return t(e,n.data);var i={};try{for(var s=Ee(Object.keys(t)),a=s.next();!a.done;a=s.next()){var u=a.value,l=t[u];ke(l)?i[u]=l(e,n.data):i[u]=l}}catch(f){r={error:f}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function Vp(t){return/^(done|error)\./.test(t)}function Cl(t){return!!(t instanceof Promise||t!==null&&(ke(t)||typeof t=="object")&&ke(t.then))}function Gp(t){return t!==null&&typeof t=="object"&&"transition"in t&&typeof t.transition=="function"}function Qp(t,e){var n,r,o=xe([[],[]],2),i=o[0],s=o[1];try{for(var a=Ee(t),u=a.next();!u.done;u=a.next()){var l=u.value;e(l)?i.push(l):s.push(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}function Sl(t,e){return mr(t.states,function(n,r){if(n){var o=(Ie(e)?void 0:e[r])||(n?n.current:void 0);if(o)return{current:o,states:Sl(n,o)}}})}function Yp(t,e){return{current:e,states:Sl(t,e)}}function Ll(t,e,n,r){var o=t&&n.reduce(function(i,s){var a,u,l=s.assignment,f={state:r,action:s,_event:e},d={};if(ke(l))d=l(i,e.data,f);else try{for(var h=Ee(Object.keys(l)),g=h.next();!g.done;g=h.next()){var v=g.value,p=l[v];d[v]=ke(p)?p(i,e.data,f):p}}catch(C){a={error:C}}finally{try{g&&!g.done&&(u=h.return)&&u.call(h)}finally{if(a)throw a.error}}return Object.assign({},i,d)},t);return o}var Wp=function(){};function Gn(t){return Array.isArray(t)}function ke(t){return typeof t=="function"}function Ie(t){return typeof t=="string"}function Al(t,e){if(t)return Ie(t)?{type:ls,name:t,predicate:e?e[t]:void 0}:ke(t)?{type:ls,name:t.name,predicate:t}:t}function Rp(t){try{return"subscribe"in t&&ke(t.subscribe)}catch{return!1}}var en=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();wo={},wo[en]=function(){return this},wo[Symbol.observable]=function(){return this};function Qn(t){return!!t&&"__xstatenode"in t}function Kp(t){return!!t&&typeof t.send=="function"}function Ao(t,e){return Ie(t)||typeof t=="number"?W({type:t},e):t}function rt(t,e){if(!Ie(t)&&"$$type"in t&&t.$$type==="scxml")return t;var n=Ao(t);return W({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function Yn(t,e){var n=wl(e).map(function(r){return typeof r>"u"||typeof r=="string"||Qn(r)?{target:r,event:t}:W(W({},r),{event:t})});return n}function qp(t){if(!(t===void 0||t===Up))return Ot(t)}function xl(t,e,n,r,o){var i=t.options.guards,s={state:o,cond:e,_event:r};if(e.type===ls)return((i==null?void 0:i[e.name])||e.predicate)(n,r.data,s);var a=i==null?void 0:i[e.type];if(!a)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return a(n,r.data,s)}function Ol(t){return typeof t=="string"?{type:t}:t}function xo(t,e,n){var r=function(){},o=typeof t=="object",i=o?t:null;return{next:((o?t.next:t)||r).bind(i),error:((o?t.error:e)||r).bind(i),complete:((o?t.complete:n)||r).bind(i)}}function Oo(t,e){return"".concat(t,":invocation[").concat(e,"]")}function fs(t){return(t.type===gr||t.type===Eo&&t.to===Vn.Internal)&&typeof t.delay!="number"}var Wn=rt({type:Tp});function ds(t,e){return e&&e[t]||void 0}function yr(t,e){var n;if(Ie(t)||typeof t=="number"){var r=ds(t,e);ke(r)?n={type:t,exec:r}:r?n=r:n={type:t,exec:void 0}}else if(ke(t))n={type:t.name||t.toString(),exec:t};else{var r=ds(t.type,e);if(ke(r))n=W(W({},t),{exec:r});else if(r){var o=r.type||t.type;n=W(W(W({},r),t),{type:o})}else n=t}return n}var tn=function(t,e){if(!t)return[];var n=Gn(t)?t:[t];return n.map(function(r){return yr(r,e)})};function hs(t){var e=yr(t);return W(W({id:Ie(t)?t:e.id},e),{type:e.type})}function Zp(t,e){return{type:gr,event:typeof t=="function"?t:Ao(t),delay:e?e.delay:void 0,id:e==null?void 0:e.id}}function Jp(t,e,n,r){var o={_event:n},i=rt(ke(t.event)?t.event(e,n.data,o):t.event),s;if(Ie(t.delay)){var a=r&&r[t.delay];s=ke(a)?a(e,n.data,o):a}else s=ke(t.delay)?t.delay(e,n.data,o):t.delay;return W(W({},t),{type:gr,_event:i,delay:s})}function _p(t,e){return{to:e?e.to:void 0,type:Eo,event:ke(t)?t:Ao(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:ke(t)?t.name:bl(t)}}function Xp(t,e,n,r){var o={_event:n},i=rt(ke(t.event)?t.event(e,n.data,o):t.event),s;if(Ie(t.delay)){var a=r&&r[t.delay];s=ke(a)?a(e,n.data,o):a}else s=ke(t.delay)?t.delay(e,n.data,o):t.delay;var u=ke(t.to)?t.to(e,n.data,o):t.to;return W(W({},t),{to:u,_event:i,event:i.data,delay:s})}var $p=function(t,e,n){return W(W({},t),{value:Ie(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})},eg=function(t){return{type:hl,sendId:t}};function tg(t){var e=hs(t);return{type:Ne.Start,activity:e,exec:void 0}}function ng(t){var e=ke(t)?t:hs(t);return{type:Ne.Stop,activity:e,exec:void 0}}function rg(t,e,n){var r=ke(t.activity)?t.activity(e,n.data):t.activity,o=typeof r=="string"?{id:r}:r,i={type:Ne.Stop,activity:o};return i}var og=function(t){return{type:ss,assignment:t}};function ig(t,e){var n=e?"#".concat(e):"";return"".concat(Ne.After,"(").concat(t,")").concat(n)}function Po(t,e){var n="".concat(Ne.DoneState,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function Mo(t,e){var n="".concat(Ne.DoneInvoke,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function br(t,e){var n="".concat(Ne.ErrorPlatform,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}var sg=function(t){var e,n,r=[];try{for(var o=Ee(t),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;){if(s.actions[a].type===ss){r.push(s.actions[a]),s.actions.splice(a,1);continue}a++}}catch(u){e={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r};function ko(t,e,n,r,o,i,s){s===void 0&&(s=!1);var a=s?[]:sg(o),u=a.length?Ll(n,r,a,e):n,l=s?[n]:void 0,f=[];function d(v,p){var C;switch(p.type){case gr:{var w=Jp(p,u,r,t.options.delays);return i&&typeof w.delay=="number"&&i(w,u,r),w}case Eo:var m=Xp(p,u,r,t.options.delays);return i&&m.to!==Vn.Internal&&(v==="entry"?f.push(m):i(m,u,r)),m;case pl:{var b=$p(p,u,r);return i==null||i(b,u,r),b}case Np:{var O=p,S=(C=O.conds.find(function(K){var G=Al(K.cond,t.options.guards);return!G||xl(t,G,u,r,i?void 0:e)}))===null||C===void 0?void 0:C.actions;if(!S)return[];var y=xe(ko(t,e,u,r,[{type:v,actions:tn(Ot(S),t.options.actions)}],i,s),2),E=y[0],A=y[1];return u=A,l==null||l.push(u),E}case jp:{var S=p.get(u,r.data);if(!S)return[];var M=xe(ko(t,e,u,r,[{type:v,actions:tn(Ot(S),t.options.actions)}],i,s),2),P=M[0],x=M[1];return u=x,l==null||l.push(u),P}case is:{var b=rg(p,u,r);return i==null||i(b,n,r),b}case ss:{u=Ll(u,r,[p],i?void 0:e),l==null||l.push(u);break}default:var k=yr(p,t.options.actions),N=k.exec;if(i)i(k,u,r);else if(N&&l){var z=l.length-1,Q=W(W({},k),{exec:function(K){for(var G=[],R=1;R<arguments.length;R++)G[R-1]=arguments[R];N.apply(void 0,Fe([l[z]],xe(G),!1))}});k=Q}return k}}function h(v){var p,C,w=[];try{for(var m=Ee(v.actions),b=m.next();!b.done;b=m.next()){var O=b.value,S=d(v.type,O);S&&(w=w.concat(S))}}catch(y){p={error:y}}finally{try{b&&!b.done&&(C=m.return)&&C.call(m)}finally{if(p)throw p.error}}return f.forEach(function(y){i(y,u,r)}),f.length=0,w}var g=Ye(o.map(h));return[g,u]}var Pl=[],Rn=function(t,e){Pl.push(t);var n=e(t);return Pl.pop(),n};function Ml(t){var e;return e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}},e[en]=function(){return this},e}function ag(t,e,n,r){var o,i=Ol(t.src),s=(o=e==null?void 0:e.options.services)===null||o===void 0?void 0:o[i.type],a=t.data?Lo(t.data,n,r):void 0,u=s?kl(s,t.id,a):Ml(t.id);return u.meta=t,u}function kl(t,e,n){var r=Ml(e);if(r.deferred=!0,Qn(t)){var o=r.state=Rn(void 0,function(){return(n?t.withContext(n):t).initialState});r.getSnapshot=function(){return o}}return r}function lg(t){try{return typeof t.send=="function"}catch{return!1}}function ug(t){return lg(t)&&"id"in t}function cg(t){var e;return W((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},e[en]=function(){return this},e),t)}var Io=function(t){return t.type==="atomic"||t.type==="final"};function Il(t){return Object.keys(t.states).map(function(e){return t.states[e]})}function Er(t){return Il(t).filter(function(e){return e.type!=="history"})}function Dl(t){var e=[t];return Io(t)?e:e.concat(Ye(Er(t).map(Dl)))}function wr(t,e){var n,r,o,i,s,a,u,l,f=new Set(t),d=ps(f),h=new Set(e);try{for(var g=Ee(h),v=g.next();!v.done;v=g.next())for(var p=v.value,C=p.parent;C&&!h.has(C);)h.add(C),C=C.parent}catch(M){n={error:M}}finally{try{v&&!v.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}var w=ps(h);try{for(var m=Ee(h),b=m.next();!b.done;b=m.next()){var p=b.value;if(p.type==="compound"&&(!w.get(p)||!w.get(p).length))d.get(p)?d.get(p).forEach(function(P){return h.add(P)}):p.initialStateNodes.forEach(function(P){return h.add(P)});else if(p.type==="parallel")try{for(var O=(s=void 0,Ee(Er(p))),S=O.next();!S.done;S=O.next()){var y=S.value;h.has(y)||(h.add(y),d.get(y)?d.get(y).forEach(function(P){return h.add(P)}):y.initialStateNodes.forEach(function(P){return h.add(P)}))}}catch(P){s={error:P}}finally{try{S&&!S.done&&(a=O.return)&&a.call(O)}finally{if(s)throw s.error}}}}catch(M){o={error:M}}finally{try{b&&!b.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var E=Ee(h),A=E.next();!A.done;A=E.next())for(var p=A.value,C=p.parent;C&&!h.has(C);)h.add(C),C=C.parent}catch(M){u={error:M}}finally{try{A&&!A.done&&(l=E.return)&&l.call(E)}finally{if(u)throw u.error}}return h}function Tl(t,e){var n=e.get(t);if(!n)return{};if(t.type==="compound"){var r=n[0];if(r){if(Io(r))return r.key}else return{}}var o={};return n.forEach(function(i){o[i.key]=Tl(i,e)}),o}function ps(t){var e,n,r=new Map;try{for(var o=Ee(t),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function fg(t,e){var n=wr([t],e);return Tl(t,ps(n))}function Cr(t,e){return Array.isArray(t)?t.some(function(n){return n===e}):t instanceof Set?t.has(e):!1}function dg(t){return Fe([],xe(new Set(Ye(Fe([],xe(t.map(function(e){return e.ownEvents})),!1)))),!1)}function Do(t,e){return e.type==="compound"?Er(e).some(function(n){return n.type==="final"&&Cr(t,n)}):e.type==="parallel"?Er(e).every(function(n){return Do(t,n)}):!1}function hg(t){return t===void 0&&(t=[]),t.reduce(function(e,n){return n.meta!==void 0&&(e[n.id]=n.meta),e},{})}function Bl(t){return new Set(Ye(t.map(function(e){return e.tags})))}function Nl(t,e){if(t===e)return!0;if(t===void 0||e===void 0)return!1;if(Ie(t)||Ie(e))return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(o){return Nl(t[o],e[o])})}function pg(t){return typeof t!="object"||t===null?!1:"value"in t&&"_event"in t}function gg(t,e){var n=t.exec,r=W(W({},t),{exec:n!==void 0?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0});return r}var Ct=function(){function t(e){var n=this,r;this.actions=[],this.activities=yl,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||yl,this.meta=hg(e.configuration),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=(r=Array.isArray(e.tags)?new Set(e.tags):e.tags)!==null&&r!==void 0?r:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return dg(n.configuration)}})}return t.from=function(e,n){if(e instanceof t)return e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e;var r=Wn;return new t({value:e,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=Wn;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(e,n){var r=this;if(e===void 0&&(e=this.value),n===void 0&&(n="."),Ie(e))return[e];var o=Object.keys(e);return o.concat.apply(o,Fe([],xe(o.map(function(i){return r.toStrings(e[i],n).map(function(s){return i+n+s})})),!1))},t.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var n=e.tags;e.machine;var r=rs(e,["configuration","transitions","tags","machine"]);return W(W({},r),{tags:Array.from(n)})},t.prototype.matches=function(e){return us(e,this.value)},t.prototype.hasTag=function(e){return this.tags.has(e)},t.prototype.can=function(e){var n;Wp(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,e);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(o){return o.target!==void 0||o.actions.length})},t}(),vg={deferEvents:!1},jl=function(){function t(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=W(W({},vg),e)}return t.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},t.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},t.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},t}(),gs=new Map,mg=0,Sr={bookId:function(){return"x:".concat(mg++)},register:function(t,e){return gs.set(t,e),t},get:function(t){return gs.get(t)},free:function(t){gs.delete(t)}};function vs(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function yg(){var t=vs();if(t&&"__xstate__"in t)return t.__xstate__}function bg(t){if(vs()){var e=yg();e&&e.register(t)}}function Eg(t,e){e===void 0&&(e={});var n=t.initialState,r=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var l=o.shift();n=t.transition(n,l,u),r.forEach(function(f){return f.next(n)})}i=!1}},a=cg({id:e.id,send:function(l){o.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,f,d){var h=xo(l,f,d);return r.add(h),h.next(n),{unsubscribe:function(){r.delete(h)}}}}),u={parent:e.parent,self:a,id:e.id||"anonymous",observers:r};return n=t.start?t.start(u):n,a}var wg={sync:!1,autoForward:!1},Xe;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Xe||(Xe={}));var Cg=function(){function t(e,n){n===void 0&&(n=t.defaultOptions);var r=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Xe.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(f,d){if(Gn(f))return r.batch(f),r.state;var h=rt(Ao(f,d));if(r.status===Xe.Stopped)return r.state;if(r.status!==Xe.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(h.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
37
|
-
Event: `).concat(JSON.stringify(h.data)));return r.scheduler.schedule(function(){r.forward(h);var g=r._nextState(h);r.update(g,h)}),r._state},this.sendTo=function(f,d,h){var g=r.parent&&(d===Vn.Parent||r.parent.id===d),v=g?r.parent:Ie(d)?d===Vn.Internal?r:r.children.get(d)||Sr.get(d):Kp(d)?d:void 0;if(!v){if(!g)throw new Error("Unable to send event to child '".concat(d,"' from service '").concat(r.id,"'."));return}if("machine"in v){if(r.status!==Xe.Stopped||r.parent!==v||r.state.done){var p=W(W({},f),{name:f.name===Bp?"".concat(br(r.id)):f.name,origin:r.sessionId});!h&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([v,p]):v.send(p)}}else!h&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([v,f.data]):v.send(f.data)},this._exec=function(f,d,h,g){g===void 0&&(g=r.machine.options.actions);var v=f.exec||ds(f.type,g),p=ke(v)?v:v?v.exec:f.exec;if(p)try{return p(d,h.data,r.machine.config.predictableActionArguments?{action:f,_event:h}:{action:f,state:r.state,_event:h})}catch(z){throw r.parent&&r.parent.send({type:"xstate.error",data:z}),z}switch(f.type){case gr:{var C=f;r.defer(C);break}case Eo:var w=f;if(typeof w.delay=="number"){r.defer(w);return}else w.to?r.sendTo(w._event,w.to,h===Wn):r.send(w._event);break;case hl:r.cancel(f.sendId);break;case os:{if(r.status!==Xe.Running)return;var m=f.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[m.id||m.type])break;if(m.type===Ne.Invoke){var b=Ol(m.src),O=r.machine.options.services?r.machine.options.services[b.type]:void 0,S=m.id,y=m.data,E="autoForward"in m?m.autoForward:!!m.forward;if(!O)return;var A=y?Lo(y,d,h):void 0;if(typeof O=="string")return;var M=ke(O)?O(d,h.data,{data:A,src:b,meta:m.meta}):O;if(!M)return;var P=void 0;Qn(M)&&(M=A?M.withContext(A):M,P={autoForward:E}),r.spawn(M,S,P)}else r.spawnActivity(m);break}case is:{r.stopChild(f.activity.id);break}case pl:var x=f,k=x.label,N=x.value;k?r.logger(k,N):r.logger(N);break}};var o=W(W({},t.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,u=o.id,l=u!==void 0?u:e.id;this.id=l,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new jl({deferEvents:this.options.deferEvents}),this.sessionId=Sr.bookId()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Rn(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(e,n){var r,o;try{for(var i=Ee(e.actions),s=i.next();!s.done;s=i.next()){var a=s.value;this.exec(a,e,n)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t.prototype.update=function(e,n){var r,o,i,s,a,u,l,f,d=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||n===Wn)&&this.options.execute)this.execute(this.state);else for(var h=void 0;h=this._outgoingQueue.shift();)h[0].send(h[1]);if(this.children.forEach(function(M){d.state.children[M.id]=M}),this.devTools&&this.devTools.send(n.data,e),e.event)try{for(var g=Ee(this.eventListeners),v=g.next();!v.done;v=g.next()){var p=v.value;p(e.event)}}catch(M){r={error:M}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}try{for(var C=Ee(this.listeners),w=C.next();!w.done;w=C.next()){var p=w.value;p(e,e.event)}}catch(M){i={error:M}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}try{for(var m=Ee(this.contextListeners),b=m.next();!b.done;b=m.next()){var O=b.value;O(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(M){a={error:M}}finally{try{b&&!b.done&&(u=m.return)&&u.call(m)}finally{if(a)throw a.error}}if(this.state.done){var S=e.configuration.find(function(M){return M.type==="final"&&M.parent===d.machine}),y=S&&S.doneData?Lo(S.doneData,e.context,n):void 0;this._doneEvent=Mo(this.id,y);try{for(var E=Ee(this.doneListeners),A=E.next();!A.done;A=E.next()){var p=A.value;p(this._doneEvent)}}catch(M){l={error:M}}finally{try{A&&!A.done&&(f=E.return)&&f.call(E)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),Sr.free(this.sessionId)}},t.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Xe.Running&&e(this.state,this.state.event),this},t.prototype.subscribe=function(e,n,r){var o=this,i=xo(e,n,r);this.listeners.add(i.next),this.status!==Xe.NotStarted&&i.next(this.state);var s=function(){o.doneListeners.delete(s),o.stopListeners.delete(s),i.complete()};return this.status===Xe.Stopped?i.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){o.listeners.delete(i.next),o.doneListeners.delete(s),o.stopListeners.delete(s)}}},t.prototype.onEvent=function(e){return this.eventListeners.add(e),this},t.prototype.onSend=function(e){return this.sendListeners.add(e),this},t.prototype.onChange=function(e){return this.contextListeners.add(e),this},t.prototype.onStop=function(e){return this.stopListeners.add(e),this},t.prototype.onDone=function(e){return this.status===Xe.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},t.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},t.prototype.start=function(e){var n=this;if(this.status===Xe.Running)return this;this.machine._init(),Sr.register(this.sessionId,this),this.initialized=!0,this.status=Xe.Running;var r=e===void 0?this.initialState:Rn(this,function(){return pg(e)?n.machine.resolveState(e):n.machine.resolveState(Ct.from(e,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Wn)}),this},t.prototype._stopChildren=function(){this.children.forEach(function(e){ke(e.stop)&&e.stop()}),this.children.clear()},t.prototype._stop=function(){var e,n,r,o,i,s,a,u,l,f;try{for(var d=Ee(this.listeners),h=d.next();!h.done;h=d.next()){var g=h.value;this.listeners.delete(g)}}catch(E){e={error:E}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}try{for(var v=Ee(this.stopListeners),p=v.next();!p.done;p=v.next()){var g=p.value;g(),this.stopListeners.delete(g)}}catch(E){r={error:E}}finally{try{p&&!p.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}try{for(var C=Ee(this.contextListeners),w=C.next();!w.done;w=C.next()){var g=w.value;this.contextListeners.delete(g)}}catch(E){i={error:E}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}try{for(var m=Ee(this.doneListeners),b=m.next();!b.done;b=m.next()){var g=b.value;this.doneListeners.delete(g)}}catch(E){a={error:E}}finally{try{b&&!b.done&&(u=m.return)&&u.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Xe.Stopped,this._initialState=void 0;try{for(var O=Ee(Object.keys(this.delayedEventsMap)),S=O.next();!S.done;S=O.next()){var y=S.value;this.clock.clearTimeout(this.delayedEventsMap[y])}}catch(E){l={error:E}}finally{try{S&&!S.done&&(f=O.return)&&f.call(O)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new jl({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var e=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=rt({type:"xstate.stop"}),o=Rn(e,function(){var i=Ye(Fe([],xe(e.state.configuration),!1).sort(function(f,d){return d.order-f.order}).map(function(f){return tn(f.onExit,e.machine.options.actions)})),s=xe(ko(e.machine,e.state,e.state.context,r,[{type:"exit",actions:i}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),a=s[0],u=s[1],l=new Ct({value:e.state.value,context:u,_event:r,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:a.filter(function(f){return!fs(f)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return l.changed=!0,l});e.update(o,r),e._stopChildren(),Sr.free(e.sessionId)}),this},t.prototype.batch=function(e){var n=this;if(!(this.status===Xe.NotStarted&&this.options.deferEvents)){if(this.status!==Xe.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(e.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var o,i,s=n.state,a=!1,u=[],l=function(g){var v=rt(g);n.forward(v),s=Rn(n,function(){return n.machine.transition(s,v,void 0,r||void 0)}),u.push.apply(u,Fe([],xe(n.machine.config.predictableActionArguments?s.actions:s.actions.map(function(p){return gg(p,s)})),!1)),a=a||!!s.changed};try{for(var f=Ee(e),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)}}catch(g){o={error:g}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}s.changed=a,s.actions=u,n.update(s,rt(e[e.length-1]))})}},t.prototype.sender=function(e){return this.send.bind(this,e)},t.prototype._nextState=function(e,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var o=rt(e);if(o.name.indexOf(gl)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(gl)===0}))throw o.data.data;var i=Rn(this,function(){return r.machine.transition(r.state,o,void 0,n||void 0)});return i},t.prototype.nextState=function(e){return this._nextState(e,!1)},t.prototype.forward=function(e){var n,r;try{for(var o=Ee(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,a=this.children.get(s);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));a.send(e)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.defer=function(e){var n=this,r=this.clock.setTimeout(function(){"to"in e&&e.to?n.sendTo(e._event,e.to,!0):n.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=r)},t.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},t.prototype.exec=function(e,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(e,n.context,n._event,r)},t.prototype.removeChild=function(e){var n;this.children.delete(e),this.forwardTo.delete(e),(n=this.state)===null||n===void 0||delete n.children[e]},t.prototype.stopChild=function(e){var n=this.children.get(e);n&&(this.removeChild(e),ke(n.stop)&&n.stop())},t.prototype.spawn=function(e,n,r){if(this.status!==Xe.Running)return kl(e,n);if(Cl(e))return this.spawnPromise(Promise.resolve(e),n);if(ke(e))return this.spawnCallback(e,n);if(ug(e))return this.spawnActor(e,n);if(Rp(e))return this.spawnObservable(e,n);if(Qn(e))return this.spawnMachine(e,W(W({},r),{id:n}));if(Gp(e))return this.spawnBehavior(e,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof e,'".'))},t.prototype.spawnMachine=function(e,n){var r=this;n===void 0&&(n={});var o=new t(e,W(W({},this.options),{parent:this,id:n.id||e.id})),i=W(W({},wg),n);i.sync&&o.onTransition(function(a){r.send(vl,{state:a,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(a){r.removeChild(o.id),r.send(rt(a,{origin:o.id}))}).start(),s},t.prototype.spawnBehavior=function(e,n){var r=Eg(e,{id:n,parent:this});return this.children.set(n,r),r},t.prototype.spawnPromise=function(e,n){var r,o=this,i=!1,s;e.then(function(u){i||(s=u,o.removeChild(n),o.send(rt(Mo(n,u),{origin:n})))},function(u){if(!i){o.removeChild(n);var l=br(n,u);try{o.send(rt(l,{origin:n}))}catch{o.devTools&&o.devTools.send(l,o.state),o.machine.strict&&o.stop()}}});var a=(r={id:n,send:function(){},subscribe:function(u,l,f){var d=xo(u,l,f),h=!1;return e.then(function(g){h||(d.next(g),!h&&d.complete())},function(g){h||d.error(g)}),{unsubscribe:function(){return h=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[en]=function(){return this},r);return this.children.set(n,a),a},t.prototype.spawnCallback=function(e,n){var r,o=this,i=!1,s=new Set,a=new Set,u,l=function(h){u=h,a.forEach(function(g){return g(h)}),!i&&o.send(rt(h,{origin:n}))},f;try{f=e(l,function(h){s.add(h)})}catch(h){this.send(br(n,h))}if(Cl(f))return this.spawnPromise(f,n);var d=(r={id:n,send:function(h){return s.forEach(function(g){return g(h)})},subscribe:function(h){var g=xo(h);return a.add(g.next),{unsubscribe:function(){a.delete(g.next)}}},stop:function(){i=!0,ke(f)&&f()},toJSON:function(){return{id:n}},getSnapshot:function(){return u}},r[en]=function(){return this},r);return this.children.set(n,d),d},t.prototype.spawnObservable=function(e,n){var r,o=this,i,s=e.subscribe(function(u){i=u,o.send(rt(u,{origin:n}))},function(u){o.removeChild(n),o.send(rt(br(n,u),{origin:n}))},function(){o.removeChild(n),o.send(rt(Mo(n),{origin:n}))}),a=(r={id:n,send:function(){},subscribe:function(u,l,f){return e.subscribe(u,l,f)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[en]=function(){return this},r);return this.children.set(n,a),a},t.prototype.spawnActor=function(e,n){return this.children.set(n,e),e},t.prototype.spawnActivity=function(e){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(n){var r=n(this.state.context,e);this.spawnEffect(e.id,r)}},t.prototype.spawnEffect=function(e,n){var r;this.children.set(e,(r={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}},r[en]=function(){return this},r))},t.prototype.attachDev=function(){var e=vs();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(W(W({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:W({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}bg(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[en]=function(){return this},t.prototype.getSnapshot=function(){return this.status===Xe.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,n){return setTimeout(e,n)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},t.interpret=Ul,t}();function Ul(t,e){var n=new Cg(t,e);return n}function Sg(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function To(t){return W(W({type:as},t),{toJSON:function(){t.onDone,t.onError;var e=rs(t,["onDone","onError"]);return W(W({},e),{type:as,src:Sg(t.src)})}})}var Bo="",ms="#",ys="*",Kn={},qn=function(t){return t[0]===ms},Lg=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Ag=function(){function t(e,n,r,o){r===void 0&&(r="context"in e?e.context:void 0);var i=this,s;this.config=e,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(Lg(),n),this.parent=o==null?void 0:o.parent,this.key=this.config.key||(o==null?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:ml),this.id=this.config.id||Fe([this.machine.key],xe(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?mr(this.config.states,function(l,f){var d,h=new t(l,{},void 0,{parent:i,key:f});return Object.assign(i.idMap,W((d={},d[h.id]=h,d),h.idMap)),h}):Kn;var a=0;function u(l){var f,d;l.order=a++;try{for(var h=Ee(Il(l)),g=h.next();!g.done;g=h.next()){var v=g.value;u(v)}}catch(p){f={error:p}}finally{try{g&&!g.done&&(d=h.return)&&d.call(h)}finally{if(f)throw f.error}}}u(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(l){var f=l.event;return f===Bo}):Bo in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ot(this.config.entry||this.config.onEntry).map(function(l){return yr(l)}),this.onExit=Ot(this.config.exit||this.config.onExit).map(function(l){return yr(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ot(this.config.invoke).map(function(l,f){var d,h;if(Qn(l)){var g=Oo(i.id,f);return i.machine.options.services=W((d={},d[g]=l,d),i.machine.options.services),To({src:g,id:g})}else if(Ie(l.src)){var g=l.id||Oo(i.id,f);return To(W(W({},l),{id:g,src:l.src}))}else if(Qn(l.src)||ke(l.src)){var g=l.id||Oo(i.id,f);return i.machine.options.services=W((h={},h[g]=l.src,h),i.machine.options.services),To(W(W({id:g},l),{src:g}))}else{var v=l.src;return To(W(W({id:Oo(i.id,f)},l),{src:v}))}}),this.activities=Ot(this.config.activities).concat(this.invoke).map(function(l){return hs(l)}),this.transition=this.transition.bind(this),this.tags=Ot(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||Dl(this).forEach(function(e){return e.on})},t.prototype.withConfig=function(e,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,u=r.delays;return new t(this.config,{actions:W(W({},o),e.actions),activities:W(W({},i),e.activities),guards:W(W({},s),e.guards),services:W(W({},a),e.services),delays:W(W({},u),e.delays)},n??this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return ke(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:mr(this.states,function(e){return e.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var n=e===Bo,r=this.transitions.filter(function(o){var i=o.eventType===e;return n?i:i||o.eventType===ys});return this.__cache.candidates[e]=r,r},t.prototype.getDelayedTransitions=function(){var e=this,n=this.config.after;if(!n)return[];var r=function(i,s){var a=ke(i)?"".concat(e.id,":delay[").concat(s,"]"):i,u=ig(a,e.id);return e.onEntry.push(_p(u,{delay:i})),e.onExit.push(eg(u)),u},o=Gn(n)?n.map(function(i,s){var a=r(i.delay,s);return W(W({},i),{event:a})}):Ye(Object.keys(n).map(function(i,s){var a=n[i],u=Ie(a)?{target:a}:a,l=isNaN(+i)?i:+i,f=r(l,s);return Ot(u).map(function(d){return W(W({},d),{event:f,delay:l})})}));return o.map(function(i){var s=i.delay;return W(W({},e.formatTransition(i)),{delay:s})})},t.prototype.getStateNodes=function(e){var n,r=this;if(!e)return[];var o=e instanceof Ct?e.value:vr(e,this.delimiter);if(Ie(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((n={},n[o]=i,n)):[this,this.states[o]]}var s=Object.keys(o),a=[this];return a.push.apply(a,Fe([],xe(Ye(s.map(function(u){return r.getStateNode(u).getStateNodes(o[u])}))),!1)),a},t.prototype.handles=function(e){var n=bl(e);return this.events.includes(n)},t.prototype.resolveState=function(e){var n=e instanceof Ct?e:Ct.create(e),r=Array.from(wr([],this.getStateNodes(n.value)));return new Ct(W(W({},n),{value:this.resolve(n.value),configuration:r,done:Do(r,this),tags:Bl(r),machine:this.machine}))},t.prototype.transitionLeafNode=function(e,n,r){var o=this.getStateNode(e),i=o.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},t.prototype.transitionCompoundNode=function(e,n,r){var o=Object.keys(e),i=this.getStateNode(o[0]),s=i._transition(e[o[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},t.prototype.transitionParallelNode=function(e,n,r){var o,i,s={};try{for(var a=Ee(Object.keys(e)),u=a.next();!u.done;u=a.next()){var l=u.value,f=e[l];if(f){var d=this.getStateNode(l),h=d._transition(f,n,r);h&&(s[l]=h)}}}catch(w){o={error:w}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}var g=Object.keys(s).map(function(w){return s[w]}),v=Ye(g.map(function(w){return w.transitions})),p=g.some(function(w){return w.transitions.length>0});if(!p)return this.next(n,r);var C=Ye(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,exitSet:Ye(g.map(function(w){return w.exitSet})),configuration:C,source:n,actions:Ye(Object.keys(s).map(function(w){return s[w].actions}))}},t.prototype._transition=function(e,n,r){return Ie(e)?this.transitionLeafNode(e,n,r):Object.keys(e).length===1?this.transitionCompoundNode(e,n,r):this.transitionParallelNode(e,n,r)},t.prototype.getTransitionData=function(e,n){return this._transition(e.value,e,rt(n))},t.prototype.next=function(e,n){var r,o,i=this,s=n.name,a=[],u=[],l;try{for(var f=Ee(this.getCandidates(s)),d=f.next();!d.done;d=f.next()){var h=d.value,g=h.cond,v=h.in,p=e.context,C=v?Ie(v)&&qn(v)?e.matches(vr(this.getStateNodeById(v).path,this.delimiter)):us(vr(v,this.delimiter),zp(this.path.slice(0,-2))(e.value)):!0,w=!1;try{w=!g||xl(this.machine,g,p,n,e)}catch(O){throw new Error("Unable to evaluate guard '".concat(g.name||g.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
|
|
38
|
-
`).concat(O.message))}if(w&&C){h.target!==void 0&&(u=h.target),a.push.apply(a,Fe([],xe(h.actions),!1)),l=h;break}}}catch(O){r={error:O}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}if(l){if(!u.length)return{transitions:[l],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var m=Ye(u.map(function(O){return i.getRelativeStateNodes(O,e.historyValue)})),b=!!l.internal;return{transitions:[l],exitSet:b?[]:Ye(u.map(function(O){return i.getPotentiallyReenteringNodes(O)})),configuration:m,source:e,actions:a}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var n=[],r=this,o=e;r&&r!==o;)n.push(r),r=r.parent;return r!==o?[]:(n.push(o),n)},t.prototype.getActions=function(e,n,r,o,i,s,a){var u,l,f,d,h=this,g=s?wr([],this.getStateNodes(s.value)):[],v=new Set;try{for(var p=Ee(Array.from(e).sort(function(x,k){return x.order-k.order})),C=p.next();!C.done;C=p.next()){var w=C.value;(!Cr(g,w)||Cr(r.exitSet,w)||w.parent&&v.has(w.parent))&&v.add(w)}}catch(x){u={error:x}}finally{try{C&&!C.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}try{for(var m=Ee(g),b=m.next();!b.done;b=m.next()){var w=b.value;(!Cr(e,w)||Cr(r.exitSet,w.parent))&&r.exitSet.push(w)}}catch(x){f={error:x}}finally{try{b&&!b.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}r.exitSet.sort(function(x,k){return k.order-x.order});var O=Array.from(v).sort(function(x,k){return x.order-k.order}),S=new Set(r.exitSet),y=Ye(O.map(function(x){var k=[];if(x.type!=="final")return k;var N=x.parent;if(!N.parent)return k;k.push(Po(x.id,x.doneData),Po(N.id,x.doneData?Lo(x.doneData,o,i):void 0));var z=N.parent;return z.type==="parallel"&&Er(z).every(function(Q){return Do(r.configuration,Q)})&&k.push(Po(z.id)),k})),E=O.map(function(x){var k=x.onEntry,N=x.activities.map(function(z){return tg(z)});return{type:"entry",actions:tn(a?Fe(Fe([],xe(k),!1),xe(N),!1):Fe(Fe([],xe(N),!1),xe(k),!1),h.machine.options.actions)}}).concat({type:"state_done",actions:y.map(function(x){return Zp(x)})}),A=Array.from(S).map(function(x){return{type:"exit",actions:tn(Fe(Fe([],xe(x.onExit),!1),xe(x.activities.map(function(k){return ng(k)})),!1),h.machine.options.actions)}}),M=A.concat({type:"transition",actions:tn(r.actions,this.machine.options.actions)}).concat(E);if(n){var P=tn(Ye(Fe([],xe(e),!1).sort(function(x,k){return k.order-x.order}).map(function(x){return x.onExit})),this.machine.options.actions).filter(function(x){return!fs(x)});return M.concat({type:"stop",actions:P})}return M},t.prototype.transition=function(e,n,r,o){e===void 0&&(e=this.initialState);var i=rt(n),s;if(e instanceof Ct)s=r===void 0?e:this.resolveState(Ct.from(e,r));else{var a=Ie(e)?this.resolve(Co(this.getResolvedPath(e))):this.resolve(e),u=r??this.machine.context;s=this.resolveState(Ct.from(a,u))}if(this.strict&&!this.events.includes(i.name)&&!Vp(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var l=this._transition(s.value,s,i)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]},f=wr([],this.getStateNodes(s.value)),d=l.configuration.length?wr(f,l.configuration):f;return l.configuration=Fe([],xe(d),!1),this.resolveTransition(l,s,s.context,o,i)},t.prototype.resolveRaisedTransition=function(e,n,r,o){var i,s=e.actions;return e=this.transition(e,n,void 0,o),e._event=r,e.event=r.data,(i=e.actions).unshift.apply(i,Fe([],xe(s),!1)),e},t.prototype.resolveTransition=function(e,n,r,o,i){var s,a,u,l,f=this;i===void 0&&(i=Wn);var d=e.configuration,h=!n||e.transitions.length>0,g=h?e.configuration:n?n.configuration:[],v=Do(g,this),p=h?fg(this.machine,d):void 0,C=n?n.historyValue?n.historyValue:e.source?this.machine.historyValue(n.value):void 0:void 0,w=this.getActions(new Set(g),v,e,r,i,n,o),m=n?W({},n.activities):{};try{for(var b=Ee(w),O=b.next();!O.done;O=b.next()){var S=O.value;try{for(var y=(u=void 0,Ee(S.actions)),E=y.next();!E.done;E=y.next()){var A=E.value;A.type===os?m[A.activity.id||A.activity.type]=A:A.type===is&&(m[A.activity.id||A.activity.type]=!1)}}catch(Y){u={error:Y}}finally{try{E&&!E.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}}}catch(Y){s={error:Y}}finally{try{O&&!O.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}var M=xe(ko(this,n,r,i,w,o,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),P=M[0],x=M[1],k=xe(Qp(P,fs),2),N=k[0],z=k[1],Q=P.filter(function(Y){var ne;return Y.type===os&&((ne=Y.activity)===null||ne===void 0?void 0:ne.type)===as}),K=Q.reduce(function(Y,ne){return Y[ne.activity.id]=ag(ne.activity,f.machine,x,i),Y},n?W({},n.children):{}),G=new Ct({value:p||n.value,context:x,_event:i,_sessionid:n?n._sessionid:null,historyValue:p?C?Yp(C,p):void 0:n?n.historyValue:void 0,history:!p||e.source?n:void 0,actions:p?z:[],activities:p?m:n?n.activities:{},events:[],configuration:g,transitions:e.transitions,children:K,done:v,tags:Bl(g),machine:this}),R=r!==x;G.changed=i.name===vl||R;var T=G.history;T&&delete T.history;var I=!v&&(this._transient||d.some(function(Y){return Y._transient}));if(!h&&(!I||i.name===Bo))return G;var D=G;if(!v)for(I&&(D=this.resolveRaisedTransition(D,{type:Dp},i,o));N.length;){var V=N.shift();D=this.resolveRaisedTransition(D,V._event,i,o)}var H=D.changed||(T?!!D.actions.length||R||typeof T.value!=typeof D.value||!Nl(D.value,T.value):void 0);return D.changed=H,D.history=T,D},t.prototype.getStateNode=function(e){if(qn(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[e];if(!n)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return n},t.prototype.getStateNodeById=function(e){var n=qn(e)?e.slice(ms.length):e;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},t.prototype.getStateNodeByPath=function(e){if(typeof e=="string"&&qn(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var n=cs(e,this.delimiter).slice(),r=this;n.length;){var o=n.shift();if(!o.length)break;r=r.getStateNode(o)}return r},t.prototype.resolve=function(e){var n,r=this;if(!e)return this.initialStateValue||Kn;switch(this.type){case"parallel":return mr(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(e[s]||i):Kn});case"compound":if(Ie(e)){var o=this.getStateNode(e);return o.type==="parallel"||o.type==="compound"?(n={},n[e]=o.initialStateValue,n):e}return Object.keys(e).length?mr(e,function(i,s){return i?r.getStateNode(s).resolve(i):Kn}):this.initialStateValue||{};default:return e||Kn}},t.prototype.getResolvedPath=function(e){if(qn(e)){var n=this.machine.idMap[e.slice(ms.length)];if(!n)throw new Error("Unable to find state node '".concat(e,"'"));return n.path}return cs(e,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=El(this.states,function(r){return r.initialStateValue||Kn},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=Io(this.states[this.initial])?this.initial:(e={},e[this.initial]=this.states[this.initial].initialStateValue,e)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(e,n){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var e;if(this.type==="history"){var n=this.config;Ie(n.target)?e=qn(n.target)?Co(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:e=n.target}return e},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(e,n,r){return r===void 0&&(r=!0),r?e.type==="history"?e.resolveHistory(n):e.initialStateNodes:[e]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var e=this;if(Io(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=So(this.initialStateValue);return Ye(n.map(function(r){return e.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var n=xe(e),r=n[0],o=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(o)},t.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:El(this.states,function(n,r){if(!e)return n.historyValue();var o=Ie(e)?void 0:e[r];return n.historyValue(o||n.initialStateValue)},function(n){return!n.history})}},t.prototype.resolveHistory=function(e){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!e){var o=this.target;return o?Ye(So(o).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=Fp(r.path,"states")(e).current;return Ie(i)?[r.getStateNode(i)]:Ye(So(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var e=this,n=Ye(Object.keys(this.states).map(function(r){return e.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var e,n,r,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var a=Ee(Object.keys(i)),u=a.next();!u.done;u=a.next()){var l=u.value,f=i[l];if(f.states)try{for(var d=(r=void 0,Ee(f.events)),h=d.next();!h.done;h=d.next()){var g=h.value;s.add("".concat(g))}}catch(v){r={error:v}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}catch(v){e={error:v}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(e){var n=this;if(e!==void 0)return e.map(function(r){if(!Ie(r))return r;var o=r[0]===n.delimiter;if(o&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=o?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(a){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
39
|
-
`).concat(a.message))}else return n.getStateNodeByPath(i)})},t.prototype.formatTransition=function(e){var n=this,r=qp(e.target),o="internal"in e?e.internal:r?r.some(function(u){return Ie(u)&&u[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),a=W(W({},e),{actions:tn(Ot(e.actions)),cond:Al(e.cond,i),target:s,source:this,internal:o,eventType:e.event,toJSON:function(){return W(W({},a),{target:a.target?a.target.map(function(u){return"#".concat(u.id)}):void 0,source:"#".concat(n.id)})}});return a},t.prototype.formatTransitions=function(){var e,n,r=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=ys,a=i[s],u=a===void 0?[]:a,l=rs(i,[typeof s=="symbol"?s:s+""]);o=Ye(Object.keys(l).map(function(m){var b=Yn(m,l[m]);return b}).concat(Yn(ys,u)))}var f=this.config.always?Yn("",this.config.always):[],d=this.config.onDone?Yn(String(Po(this.id)),this.config.onDone):[],h=Ye(this.invoke.map(function(m){var b=[];return m.onDone&&b.push.apply(b,Fe([],xe(Yn(String(Mo(m.id)),m.onDone)),!1)),m.onError&&b.push.apply(b,Fe([],xe(Yn(String(br(m.id)),m.onError)),!1)),b})),g=this.after,v=Ye(Fe(Fe(Fe(Fe([],xe(d),!1),xe(h),!1),xe(o),!1),xe(f),!1).map(function(m){return Ot(m).map(function(b){return r.formatTransition(b)})}));try{for(var p=Ee(g),C=p.next();!C.done;C=p.next()){var w=C.value;v.push(w)}}catch(m){e={error:m}}finally{try{C&&!C.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return v},t}();function xg(t,e,n){return n===void 0&&(n=t.context),new Ag(t,e,n)}var Og=og,bs;(function(t){t[t.Effect=1]="Effect",t[t.LayoutEffect=2]="LayoutEffect"})(bs||(bs={}));var Lr=c.useLayoutEffect;function Hl(t){var e=ce.useRef();return e.current||(e.current={v:t()}),e.current.v}var Pg=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},Mg=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function kg(t,e){var n,r,o=Pg([[],[]],2),i=o[0],s=o[1];try{for(var a=Mg(t),u=a.next();!u.done;u=a.next()){var l=u.value;e(l)?i.push(l):s.push(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}var Ar=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},zl=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function Fl(t,e){var n=t.exec,r=n(e.context,e._event.data,{action:t,state:e,_event:e._event});r()}function Ig(t){var e=c.useRef([]),n=c.useRef([]);Lr(function(){var r=t.subscribe(function(o){var i,s;if(o.actions.length){var a=o.actions.filter(function(d){return typeof d.exec=="function"&&"__effect"in d.exec}),u=Ar(kg(a,function(d){return d.exec.__effect===bs.Effect}),2),l=u[0],f=u[1];(i=e.current).push.apply(i,zl([],Ar(l.map(function(d){return[d,o]})),!1)),(s=n.current).push.apply(s,zl([],Ar(f.map(function(d){return[d,o]})),!1))}});return function(){r.unsubscribe()}},[]),Lr(function(){for(;n.current.length;){var r=Ar(n.current.shift(),2),o=r[0],i=r[1];Fl(o,i)}}),c.useEffect(function(){for(;e.current.length;){var r=Ar(e.current.shift(),2),o=r[0],i=r[1];Fl(o,i)}})}var xr=globalThis&&globalThis.__assign||function(){return xr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},xr.apply(this,arguments)},Dg=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};globalThis&&globalThis.__read;function Tg(t,e,n){if(typeof t=="object")return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}function Bg(t,e,n){e===void 0&&(e={});var r=Hl(function(){return typeof t=="function"?t():t}),o=e.context,i=e.guards,s=e.actions,a=e.activities,u=e.services,l=e.delays,f=e.state,d=Dg(e,["context","guards","actions","activities","services","delays","state"]),h=Hl(function(){var g={context:o,guards:i,actions:s,activities:a,services:u,delays:l},v=r.withConfig(g,function(){return xr(xr({},r.context),o)});return Ul(v,xr({deferEvents:!0},d))});return Lr(function(){var g;return n&&(g=h.subscribe(Tg(n))),function(){g==null||g.unsubscribe()}},[n]),Lr(function(){return h.start(f?Ct.create(f):void 0),function(){h.stop()}},[]),Lr(function(){Object.assign(h.machine.options.actions,s),Object.assign(h.machine.options.guards,i),Object.assign(h.machine.options.activities,a),Object.assign(h.machine.options.services,u),Object.assign(h.machine.options.delays,l)},[s,i,a,u,l]),Ig(h),h}var Ng=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i};globalThis&&globalThis.__spreadArray;function jg(t,e){e===void 0&&(e={});var n=c.useCallback(function(a){var u=a.changed===void 0&&Object.keys(a.children).length;(a.changed||u)&&s(a)},[]),r=Bg(t,e,n),o=Ng(c.useState(function(){var a=r.machine.initialState;return e.state?Ct.create(e.state):a}),2),i=o[0],s=o[1];return[i,r.send,r]}function We(){return We=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},We.apply(this,arguments)}function Zn(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const me={arr:Array.isArray,obj:t=>Object.prototype.toString.call(t)==="[object Object]",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0,nul:t=>t===null,set:t=>t instanceof Set,map:t=>t instanceof Map,equ(t,e){if(typeof t!=typeof e)return!1;if(me.str(t)||me.num(t))return t===e;if(me.obj(t)&&me.obj(e)&&Object.keys(t).length+Object.keys(e).length===0)return!0;let n;for(n in t)if(!(n in e))return!1;for(n in e)if(t[n]!==e[n])return!1;return me.und(n)?t===e:!0}};function Ug(t,e){return e===void 0&&(e=!0),n=>(me.arr(n)?n:Object.keys(n)).reduce((r,o)=>{const i=e?o[0].toLowerCase()+o.substring(1):o;return r[i]=t(i),r},t)}function Hg(){const t=c.useState(!1),e=t[1];return c.useCallback(()=>e(r=>!r),[])}function mn(t,e){return me.und(t)||me.nul(t)?e:t}function No(t){return me.und(t)?[]:me.arr(t)?t:[t]}function Jn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return me.fun(t)?t(...n):t}function zg(t){return t.to,t.from,t.config,t.onStart,t.onRest,t.onFrame,t.children,t.reset,t.reverse,t.force,t.immediate,t.delay,t.attach,t.destroyed,t.interpolateTo,t.ref,t.lazy,Zn(t,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}function Es(t){const e=zg(t);if(me.und(e))return We({to:e},t);const n=Object.keys(t).reduce((r,o)=>me.und(e[o])?We({},r,{[o]:t[o]}):r,{});return We({to:e},n)}function Fg(t,e){return e&&(me.fun(e)?e(t):me.obj(e)&&(e.current=t)),t}class Pt{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){this.children.length===0&&this.attach(),this.children.push(e)}removeChild(e){const n=this.children.indexOf(e);this.children.splice(n,1),this.children.length===0&&this.detach()}}class ws extends Pt{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(e=>e instanceof Pt&&e.addChild(this)),this.detach=()=>this.payload.forEach(e=>e instanceof Pt&&e.removeChild(this))}}class Vl extends Pt{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(e=>e instanceof Pt&&e.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(e=>e instanceof Pt&&e.removeChild(this))}getValue(e){e===void 0&&(e=!1);const n={};for(const r in this.payload){const o=this.payload[r];e&&!(o instanceof Pt)||(n[r]=o instanceof Pt?o[e?"getAnimatedValue":"getValue"]():o)}return n}getAnimatedValue(){return this.getValue(!0)}}let Cs;function Vg(t,e){Cs={fn:t,transform:e}}let Gl;function Gg(t){Gl=t}let Ql=t=>typeof window<"u"?window.requestAnimationFrame(t):-1,jo;function Qg(t){jo=t}let Yl=()=>Date.now(),Yg=t=>t.current,Wl;function Wg(t){Wl=t}class Rg extends Vl{constructor(e,n){super(),this.update=void 0,this.payload=e.style?We({},e,{style:Wl(e.style)}):e,this.update=n,this.attach()}}const Kg=t=>me.fun(t)&&!(t.prototype instanceof c.Component),qg=t=>c.forwardRef((n,r)=>{const o=Hg(),i=c.useRef(!0),s=c.useRef(null),a=c.useRef(null),u=c.useCallback(h=>{const g=s.current,v=()=>{let p=!1;a.current&&(p=Cs.fn(a.current,s.current.getAnimatedValue())),(!a.current||p===!1)&&o()};s.current=new Rg(h,v),g&&g.detach()},[]);c.useEffect(()=>()=>{i.current=!1,s.current&&s.current.detach()},[]),c.useImperativeHandle(r,()=>Yg(a)),u(n);const l=s.current.getValue();l.scrollTop,l.scrollLeft;const f=Zn(l,["scrollTop","scrollLeft"]),d=Kg(t)?void 0:h=>a.current=Fg(h,r);return c.createElement(t,We({},f,{ref:d}))});let Or=!1;const yn=new Set,Rl=()=>{if(!Or)return!1;let t=Yl();for(let e of yn){let n=!1;for(let r=0;r<e.configs.length;r++){let o=e.configs[r],i,s;for(let a=0;a<o.animatedValues.length;a++){let u=o.animatedValues[a];if(u.done)continue;let l=o.fromValues[a],f=o.toValues[a],d=u.lastPosition,h=f instanceof Pt,g=Array.isArray(o.initialVelocity)?o.initialVelocity[a]:o.initialVelocity;if(h&&(f=f.getValue()),o.immediate){u.setValue(f),u.done=!0;continue}if(typeof l=="string"||typeof f=="string"){u.setValue(f),u.done=!0;continue}if(o.duration!==void 0)d=l+o.easing((t-u.startTime)/o.duration)*(f-l),i=t>=u.startTime+o.duration;else if(o.decay)d=l+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-u.startTime))),i=Math.abs(u.lastPosition-d)<.1,i&&(f=d);else{s=u.lastTime!==void 0?u.lastTime:t,g=u.lastVelocity!==void 0?u.lastVelocity:o.initialVelocity,t>s+64&&(s=t);let v=Math.floor(t-s);for(let m=0;m<v;++m){let b=-o.tension*(d-f),O=-o.friction*g,S=(b+O)/o.mass;g=g+S*1/1e3,d=d+g*1/1e3}let p=o.clamp&&o.tension!==0?l<f?d>f:d<f:!1,C=Math.abs(g)<=o.precision,w=o.tension!==0?Math.abs(f-d)<=o.precision:!0;i=p||C&&w,u.lastVelocity=g,u.lastTime=t}h&&!o.toValues[a].done&&(i=!1),i?(u.value!==f&&(d=f),u.done=!0):n=!0,u.setValue(d),u.lastPosition=d}e.props.onFrame&&(e.values[o.name]=o.interpolation.getValue())}e.props.onFrame&&e.props.onFrame(e.values),n||(yn.delete(e),e.stop(!0))}return yn.size?Ql(Rl):Or=!1,Or},Zg=t=>{yn.has(t)||yn.add(t),Or||(Or=!0,Ql(Rl))},Jg=t=>{yn.has(t)&&yn.delete(t)};function Uo(t,e,n){if(typeof t=="function")return t;if(Array.isArray(t))return Uo({range:t,output:e,extrapolate:n});if(jo&&typeof t.output[0]=="string")return jo(t);const r=t,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(l=>l);return l=>{const f=Xg(l,i);return _g(l,i[f],i[f+1],o[f],o[f+1],u,s,a,r.map)}}function _g(t,e,n,r,o,i,s,a,u){let l=u?u(t):t;if(l<e){if(s==="identity")return l;s==="clamp"&&(l=e)}if(l>n){if(a==="identity")return l;a==="clamp"&&(l=n)}return r===o?r:e===n?t<=e?r:o:(e===-1/0?l=-l:n===1/0?l=l-e:l=(l-e)/(n-e),l=i(l),r===-1/0?l=-l:o===1/0?l=l+r:l=l*(o-r)+r,l)}function Xg(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}class _n extends ws{constructor(e,n,r,o){super(),this.calc=void 0,this.payload=e instanceof ws&&!(e instanceof _n)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Uo(n,r,o)}getValue(){return this.calc(...this.payload.map(e=>e.getValue()))}updateConfig(e,n,r){this.calc=Uo(e,n,r)}interpolate(e,n,r){return new _n(this,e,n,r)}}const Xn=(t,e,n)=>t&&new _n(t,e,n),$g={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};function Kl(t,e){"update"in t?e.add(t):t.getChildren().forEach(n=>Kl(n,e))}class Ss extends Pt{constructor(e){var n;super(),n=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(r,o){o===void 0&&(o=!0),n.value=r,o&&n.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){this.animatedStyles.size===0&&Kl(this,this.animatedStyles),this.animatedStyles.forEach(e=>e.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,n,r){return new _n(this,e,n,r)}}class ev extends ws{constructor(e){super(),this.payload=e.map(n=>new Ss(n))}setValue(e,n){n===void 0&&(n=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((r,o)=>this.payload[o].setValue(r,n)):this.payload.forEach(r=>r.setValue(e,n))}getValue(){return this.payload.map(e=>e.getValue())}interpolate(e,n){return new _n(this,e,n)}}let tv=0,nv=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=tv++}update(e){if(!e)return this;const n=Es(e),r=n.delay,o=r===void 0?0:r,i=n.to,s=Zn(n,["delay","to"]);if(me.arr(i)||me.fun(i))this.queue.push(We({},s,{delay:o,to:i}));else if(i){let a={};Object.entries(i).forEach(u=>{let l=u[0],f=u[1];const d=We({to:{[l]:f},delay:Jn(o,l)},s),h=a[d.delay]&&a[d.delay].to;a[d.delay]=We({},a[d.delay],d,{to:We({},h,d.to)})}),this.queue=Object.values(a)}return this.queue=this.queue.sort((a,u)=>a.delay-u.delay),this.diff(s),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(o=>{let i=o.from,s=i===void 0?{}:i,a=o.to,u=a===void 0?{}:a;me.obj(s)&&(this.merged=We({},s,this.merged)),me.obj(u)&&(this.merged=We({},this.merged,u))});const n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((o,i)=>{let s=o.delay,a=Zn(o,["delay"]);const u=f=>{i===r.length-1&&n===this.guid&&f&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=me.arr(a.to)||me.fun(a.to);s?setTimeout(()=>{n===this.guid&&(l?this.runAsync(a,u):this.diff(a).start(u))},s):l?this.runAsync(a,u):this.diff(a).start(u)})}else me.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),Zg(this);return this}stop(e){return this.listeners.forEach(n=>n(e)),this.listeners=[],this}pause(e){return this.stop(!0),e&&Jg(this),this}runAsync(e,n){var r=this;e.delay;let o=Zn(e,["delay"]);const i=this.local;let s=Promise.resolve(void 0);if(me.arr(o.to))for(let a=0;a<o.to.length;a++){const u=a,l=We({},o,Es(o.to[u]));me.arr(l.config)&&(l.config=l.config[u]),s=s.then(()=>{if(i===this.guid)return new Promise(f=>this.diff(l).start(f))})}else if(me.fun(o.to)){let a=0,u;s=s.then(()=>o.to(l=>{const f=We({},o,Es(l));if(me.arr(f.config)&&(f.config=f.config[a]),a++,i===this.guid)return u=new Promise(d=>this.diff(f).start(d))},function(l){return l===void 0&&(l=!0),r.stop(l)}).then(()=>u))}s.then(n)}diff(e){this.props=We({},this.props,e);let n=this.props,r=n.from,o=r===void 0?{}:r,i=n.to,s=i===void 0?{}:i,a=n.config,u=a===void 0?{}:a,l=n.reverse,f=n.attach,d=n.reset,h=n.immediate;if(l){var g=[s,o];o=g[0],s=g[1]}this.merged=We({},o,this.merged,s),this.hasChanged=!1;let v=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((p,C)=>{let w=C[0],m=C[1],b=p[w]||{};const O=me.num(m),S=me.str(m)&&!m.startsWith("#")&&!/\d/.test(m)&&!Gl[m],y=me.arr(m),E=!O&&!y&&!S;let A=me.und(o[w])?m:o[w],M=O||y||S?m:1,P=Jn(u,w);v&&(M=v.animations[w].parent);let x=b.parent,k=b.interpolation,N=No(v?M.getPayload():M),z,Q=m;E&&(Q=jo({range:[0,1],output:[m,m]})(1));let K=k&&k.getValue();const R=!me.und(x)&&b.animatedValues.some(V=>!V.done),T=!me.equ(Q,K),I=!me.equ(Q,b.previous),D=!me.equ(P,b.config);if(d||I&&T||D){if(O||S)x=k=b.parent||new Ss(A);else if(y)x=k=b.parent||new ev(A);else if(E){let V=b.interpolation&&b.interpolation.calc(b.parent.value);V=V!==void 0&&!d?V:A,b.parent?(x=b.parent,x.setValue(0,!1)):x=new Ss(0);const H={output:[V,m]};b.interpolation?(k=b.interpolation,b.interpolation.updateConfig(H)):k=x.interpolate(H)}return N=No(v?M.getPayload():M),z=No(x.getPayload()),d&&!E&&x.setValue(A,!1),this.hasChanged=!0,z.forEach(V=>{V.startPosition=V.value,V.lastPosition=V.value,V.lastVelocity=R?V.lastVelocity:void 0,V.lastTime=R?V.lastTime:void 0,V.startTime=Yl(),V.done=!1,V.animatedStyles.clear()}),Jn(h,w)&&x.setValue(E?M:m,!1),We({},p,{[w]:We({},b,{name:w,parent:x,interpolation:k,animatedValues:z,toValues:N,previous:Q,config:P,fromValues:No(x.getValue()),immediate:Jn(h,w),initialVelocity:mn(P.velocity,0),clamp:mn(P.clamp,!1),precision:mn(P.precision,.01),tension:mn(P.tension,170),friction:mn(P.friction,26),mass:mn(P.mass,1),duration:P.duration,easing:mn(P.easing,V=>V),decay:P.decay})})}else return T?p:(E&&(x.setValue(1,!1),k.updateConfig({output:[Q,Q]})),x.done=!0,this.hasChanged=!0,We({},p,{[w]:We({},p[w],{previous:Q})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let p in this.animations)this.interpolations[p]=this.animations[p].interpolation,this.values[p]=this.animations[p].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const rv=(t,e)=>{const n=c.useRef(!1),r=c.useRef(),o=me.fun(e),i=c.useMemo(()=>{r.current&&(r.current.map(d=>d.destroy()),r.current=void 0);let f;return[new Array(t).fill().map((d,h)=>{const g=new nv,v=o?Jn(e,h,g):e[h];return h===0&&(f=v.ref),g.update(v),f||g.start(),g}),f]},[t]),s=i[0],a=i[1];r.current=s,c.useImperativeHandle(a,()=>({start:()=>Promise.all(r.current.map(f=>new Promise(d=>f.start(d)))),stop:f=>r.current.forEach(d=>d.stop(f)),get controllers(){return r.current}}));const u=c.useMemo(()=>f=>r.current.map((d,h)=>{d.update(o?Jn(f,h,d):f[h]),a||d.start()}),[t]);c.useEffect(()=>{n.current?o||u(e):a||r.current.forEach(f=>f.start())}),c.useEffect(()=>(n.current=!0,()=>r.current.forEach(f=>f.destroy())),[]);const l=r.current.map(f=>f.getValues());return o?[l,u,f=>r.current.forEach(d=>d.pause(f))]:l},ov=t=>{const e=me.fun(t),n=rv(1,e?t:[t]),r=n[0],o=n[1],i=n[2];return e?[r[0],o,i]:r};class iv extends Vl{constructor(e){e===void 0&&(e={}),super(),e.transform&&!(e.transform instanceof Pt)&&(e=Cs.transform(e)),this.payload=e}}const Ho={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Mt="[-+]?\\d*\\.?\\d+",zo=Mt+"%";function Fo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const sv=new RegExp("rgb"+Fo(Mt,Mt,Mt)),av=new RegExp("rgba"+Fo(Mt,Mt,Mt,Mt)),lv=new RegExp("hsl"+Fo(Mt,zo,zo)),uv=new RegExp("hsla"+Fo(Mt,zo,zo,Mt)),cv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dv=/^#([0-9a-fA-F]{6})$/,hv=/^#([0-9a-fA-F]{8})$/;function pv(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=dv.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ho.hasOwnProperty(t)?Ho[t]:(e=sv.exec(t))?($n(e[1])<<24|$n(e[2])<<16|$n(e[3])<<8|255)>>>0:(e=av.exec(t))?($n(e[1])<<24|$n(e[2])<<16|$n(e[3])<<8|Jl(e[4]))>>>0:(e=cv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=hv.exec(t))?parseInt(e[1],16)>>>0:(e=fv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=lv.exec(t))?(ql(Zl(e[1]),Vo(e[2]),Vo(e[3]))|255)>>>0:(e=uv.exec(t))?(ql(Zl(e[1]),Vo(e[2]),Vo(e[3]))|Jl(e[4]))>>>0:null}function Ls(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ql(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,o=2*n-r,i=Ls(o,r,t+1/3),s=Ls(o,r,t),a=Ls(o,r,t-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function $n(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Zl(t){return(parseFloat(t)%360+360)%360/360}function Jl(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Vo(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function _l(t){let e=pv(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,o=(e&65280)>>>8,i=(e&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}const Go=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,vv=new RegExp(`(${Object.keys(Ho).join("|")})`,"g"),mv=t=>{const e=t.output.map(o=>o.replace(gv,_l)).map(o=>o.replace(vv,_l)),n=e[0].match(Go).map(()=>[]);e.forEach(o=>{o.match(Go).forEach((i,s)=>n[s].push(+i))});const r=e[0].match(Go).map((o,i)=>Uo(We({},t,{output:n[i]})));return o=>{let i=0;return e[0].replace(Go,()=>r[i++](o)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(s,a,u,l,f)=>`rgba(${Math.round(a)}, ${Math.round(u)}, ${Math.round(l)}, ${f})`)}};let Pr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const yv=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),bv=["Webkit","Ms","Moz","O"];Pr=Object.keys(Pr).reduce((t,e)=>(bv.forEach(n=>t[yv(n,e)]=t[e]),t),Pr);function Ev(t,e,n){return e==null||typeof e=="boolean"||e===""?"":!n&&typeof e=="number"&&e!==0&&!(Pr.hasOwnProperty(t)&&Pr[t])?e+"px":(""+e).trim()}const Xl={};Wg(t=>new iv(t)),Qg(mv),Gg(Ho),Vg((t,e)=>{if(t.nodeType&&t.setAttribute!==void 0){const o=e.style,i=e.children,s=e.scrollTop,a=e.scrollLeft,u=Zn(e,["style","children","scrollTop","scrollLeft"]),l=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter";s!==void 0&&(t.scrollTop=s),a!==void 0&&(t.scrollLeft=a),i!==void 0&&(t.textContent=i);for(let f in o)if(o.hasOwnProperty(f)){var n=f.indexOf("--")===0,r=Ev(f,o[f],n);f==="float"&&(f="cssFloat"),n?t.style.setProperty(f,r):t.style[f]=r}for(let f in u){const d=l?f:Xl[f]||(Xl[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase()));typeof t.getAttribute(d)<"u"&&t.setAttribute(d,u[f])}return}else return!1},t=>t);const wv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Cv=Ug(qg,!1)(wv);function $l(t,e){return t.map(function(n,r){return n+e[r]})}function eu(t,e){return t.map(function(n,r){return n-e[r]})}function As(t){return Math.hypot.apply(Math,t)}function Sv(t,e,n){var r=As(e),o=r===0?0:1/r,i=n===0?0:1/n,s=i*r,a=e.map(function(f){return i*f}),u=e.map(function(f){return o*f}),l=As(t);return{velocities:a,velocity:s,distance:l,direction:u}}function xs(t){return Math.sign?Math.sign(t):+(t>0)-+(t<0)||+t}function Lv(t,e,n){return Math.max(e,Math.min(t,n))}function Av(t,e){return Math.pow(t,e*5)}function tu(t,e,n){return e===0||Math.abs(e)===1/0?Av(t,n):t*e*n/(e+n*t)}function Mr(t,e,n,r){return r===void 0&&(r=.15),r===0?Lv(t,e,n):t<e?-tu(e-t,n-e,r)+e:t>n?+tu(t-n,n-e,r)+n:t}function nu(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)}}function xv(t,e,n){return e&&nu(t.prototype,e),n&&nu(t,n),t}function ut(){return ut=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ut.apply(this,arguments)}function ru(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Ov(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Qo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pv(t,e){if(t){if(typeof t=="string")return ou(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ou(t,e)}}function ou(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yo(t,e){var n;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=Pv(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
40
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=t[Symbol.iterator](),n.next.bind(n)}function iu(){}function su(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.length===0?iu:e.length===1?e[0]:function(){for(var r,o=Yo(e),i;!(i=o()).done;){var s=i.value;r=s.apply(this,arguments)||r}return r}}function nn(t,e){if(t===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");t=e}return Array.isArray(t)?t:[t,t]}function Wo(t){if(typeof t=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.apply(void 0,n)}else return t}function Os(t,e){t===void 0&&(t={});for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,t[s],s,t);break;case"object":n[s]=Os(t[s],a);break;case"boolean":a&&(n[s]=t[s]);break}}return n}var Mv=180,kv=.15,Iv=.5,Dv=60,Tv={threshold:function(e){return e===void 0&&(e=0),nn(e)},rubberband:function(e){switch(e===void 0&&(e=0),e){case!0:return nn(kv);case!1:return nn(0);default:return nn(e)}},enabled:function(e){return e===void 0&&(e=!0),e},triggerAllEvents:function(e){return e===void 0&&(e=!1),e},initial:function(e){return e===void 0&&(e=0),typeof e=="function"?e:nn(e)}},au=ut({},Tv,{axis:!0,lockDirection:function(e){return e===void 0&&(e=!1),e},bounds:function(e){if(e===void 0&&(e={}),typeof e=="function")return function(d){return au.bounds(e(d))};var n=e,r=n.left,o=r===void 0?-1/0:r,i=n.right,s=i===void 0?1/0:i,a=n.top,u=a===void 0?-1/0:a,l=n.bottom,f=l===void 0?1/0:l;return[[o,s],[u,f]]}}),Bv=typeof window<"u"&&window.document&&window.document.createElement,Nv={enabled:function(e){return e===void 0&&(e=!0),e},domTarget:!0,window:function(t){function e(n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return t===void 0&&(t=Bv?window:void 0),t}),eventOptions:function(e){var n=e===void 0?{}:e,r=n.passive,o=r===void 0?!0:r,i=n.capture,s=i===void 0?!1:i;return{passive:o,capture:s}}},jv=ut({},au,{threshold:function(e,n,r){var o=r.filterTaps,i=o===void 0?!1:o,s=r.lockDirection,a=s===void 0?!1:s,u=r.axis,l=u===void 0?void 0:u,f=nn(e,i?3:a||l?1:0);return this.filterTaps=i||f[0]+f[1]>0,f},swipeVelocity:function(e){return e===void 0&&(e=Iv),nn(e)},swipeDistance:function(e){return e===void 0&&(e=Dv),nn(e)},delay:function(e){switch(e===void 0&&(e=0),e){case!0:return Mv;case!1:return 0;default:return e}}});function Uv(t){return t===void 0&&(t={}),Os(t,Nv)}function Hv(t){return t===void 0&&(t={}),Os(t,jv)}function zv(t){var e=t.domTarget,n=t.eventOptions,r=t.window,o=t.enabled,i=Ov(t,["domTarget","eventOptions","window","enabled"]),s=Uv({domTarget:e,eventOptions:n,window:r,enabled:o});return s.drag=Hv(i),s}function kr(t){return ut({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:iu,canceled:!1,memo:void 0,args:void 0},t)}function lu(){var t={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},e=kr({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),n=kr({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=kr({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=kr({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=kr({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:t,drag:e,pinch:n,wheel:r,move:o,scroll:i}}var bn=new Map,Fv=function(){function t(n,r){var o=this;r===void 0&&(r=[]),this.controller=n,this.args=r,this.debounced=!0,this.setTimeout=function(i,s){var a;s===void 0&&(s=140),clearTimeout(o.controller.timeouts[o.stateKey]);for(var u=arguments.length,l=new Array(u>2?u-2:0),f=2;f<u;f++)l[f-2]=arguments[f];o.controller.timeouts[o.stateKey]=(a=window).setTimeout.apply(a,[i,s].concat(l))},this.clearTimeout=function(){clearTimeout(o.controller.timeouts[o.stateKey])},this.fireGestureHandler=function(i){if(i===void 0&&(i=!1),o.state._blocked)return o.debounced||(o.state._active=!1,o.clean()),null;if(!i&&!o.state.intentional&&!o.config.triggerAllEvents)return null;if(o.state.intentional){var s=o.state.active,a=o.state._active;o.state.active=a,o.state.first=a&&!s,o.state.last=s&&!a,o.controller.state.shared[o.ingKey]=a}var u=ut({},o.controller.state.shared,o.state,o.mapStateValues(o.state)),l=o.handler(u);return o.state.memo=l!==void 0?l:o.state.memo,o.state._active||o.clean(),u}}var e=t.prototype;return e.updateSharedState=function(r){Object.assign(this.controller.state.shared,r)},e.updateGestureState=function(r){Object.assign(this.state,r)},e.checkIntentionality=function(r,o){return{_intentional:r,_blocked:!1}},e.getMovement=function(r){var o=this.config,i=o.initial,s=o.bounds,a=o.rubberband,u=o.threshold,l=this.state,f=l._bounds,d=l._initial,h=l._active,g=l._intentional,v=l.lastOffset,p=l.movement,C=this.getInternalMovement(r,this.state),w=g[0]===!1?uu(C[0],u[0]):g[0],m=g[1]===!1?uu(C[1],u[1]):g[1],b=this.checkIntentionality([w,m],C);if(b._blocked)return ut({},b,{_movement:C,delta:[0,0]});var O=b._intentional,S=C,y,E;if(O[0]!==!1&&g[0]===!1&&(E=Wo(i,this.state),y=Wo(s,this.state),d[0]=E[0],f[0]=y[0]),O[1]!==!1&&g[1]===!1){var A,M;E=(A=E)!=null?A:Wo(i,this.state),y=(M=y)!=null?M:Wo(s,this.state),d[1]=E[1],f[1]=y[1]}var P=[O[0]!==!1?C[0]-O[0]:d[0],O[1]!==!1?C[1]-O[1]:d[1]],x=$l(P,v),k=h?a:[0,0];return P=cu(f,$l(P,d),k),ut({},b,{intentional:O[0]!==!1||O[1]!==!1,_initial:d,_movement:S,movement:P,values:r,offset:cu(f,x,k),delta:eu(P,p)})},e.clean=function(){this.clearTimeout()},xv(t,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),t}();function uu(t,e){return Math.abs(t)>=e?xs(t)*e:!1}function cu(t,e,n){var r=e[0],o=e[1],i=n[0],s=n[1],a=t[0],u=a[0],l=a[1],f=t[1],d=f[0],h=f[1];return[Mr(r,u,l,i),Mr(o,d,h,s)]}function Ps(t,e,n){var r=t.state,o=t.args,i=e.timeStamp,s=e.type,a=r.values,u=n?0:i-r.startTime;return{_lastEventType:s,event:e,timeStamp:i,elapsedTime:u,args:o,previous:a}}function Vv(t,e,n){var r=t.state.offset,o=n.timeStamp;return ut({},lu()[t.stateKey],{_active:!0,values:e,initial:e,offset:r,lastOffset:r,startTime:o})}function Gv(t,e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.call.apply(t,[this,ut({},e,{event:n})].concat(o))}}var Qv=function(e){var n=this;this.classes=e,this.bind=function(){for(var r={},o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];for(var a=Yo(n.classes),u;!(u=a()).done;){var l=u.value;new l(n,i).addBindings(r)}for(var f=0,d=Object.entries(n.nativeRefs);f<d.length;f++){var h=d[f],g=h[0],v=h[1];Ms(r,g,Gv(v,ut({},n.state.shared,{args:i})))}return n.config.domTarget?Kv(n,r):qv(n,r)},this.effect=function(){return n.config.domTarget&&n.bind(),n.clean},this.clean=function(){var r=du(n.config),o=n.config.eventOptions;r&&Ir(r,fu(n.domListeners),o),Object.values(n.timeouts).forEach(clearTimeout),Yv(n)},this.state=lu(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Yv(t){var e=t.config,n=e.window,r=e.eventOptions,o=t.windowListeners;if(n){for(var i in o){var s=o[i];Ir(n,s,r)}t.windowListeners={}}}function Wv(t,e){var n=t.config,r=t.windowListeners;n.window&&(Ir(n.window,r[e],n.eventOptions),delete r[e])}function Rv(t,e,n){var r=t.config,o=t.windowListeners;n===void 0&&(n=[]),r.window&&(Ir(r.window,o[e],r.eventOptions),hu(r.window,o[e]=n,r.eventOptions))}function Kv(t,e){var n=t.config,r=t.domListeners,o=du(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;Ir(o,fu(r),i);for(var s=0,a=Object.entries(e);s<a.length;s++){var u=a[s],l=u[0],f=u[1],d=l.slice(2).toLowerCase();r.push([d,su.apply(void 0,f)])}hu(o,r,i)}function qv(t,e){for(var n=t.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(e);i<s.length;i++){var a=s[i],u=a[0],l=a[1],f=Array.isArray(l)?l:[l],d=u+o;r[d]=su.apply(void 0,f)}return r}function fu(t){return t===void 0&&(t=[]),t.splice(0,t.length)}function du(t){var e=t.domTarget;return e&&"current"in e?e.current:e}function Ms(t,e,n){t[e]||(t[e]=[]),t[e].push(n)}function hu(t,e,n){e===void 0&&(e=[]),n===void 0&&(n={});for(var r=Yo(e),o;!(o=r()).done;){var i=o.value,s=i[0],a=i[1];t.addEventListener(s,a,n)}}function Ir(t,e,n){e===void 0&&(e=[]),n===void 0&&(n={});for(var r=Yo(e),o;!(o=r()).done;){var i=o.value,s=i[0],a=i[1];t.removeEventListener(s,a,n)}}function Zv(t,e,n){n===void 0&&(n={});var r=_v(t),o=c.useMemo(function(){return new Qv(r)},[]);return o.config=e,o.handlers=t,o.nativeRefs=n,c.useEffect(o.effect,[]),o.config.domTarget?Jv:o.bind}function Jv(){}function _v(t){var e=new Set;return t.drag&&e.add(bn.get("drag")),t.wheel&&e.add(bn.get("wheel")),t.scroll&&e.add(bn.get("scroll")),t.move&&e.add(bn.get("move")),t.pinch&&e.add(bn.get("pinch")),t.hover&&e.add(bn.get("hover")),e}var Xv=function(t){ru(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getInternalMovement=function(o,i){return eu(o,i.initial)},n.checkIntentionality=function(o,i){if(o[0]===!1&&o[1]===!1)return{_intentional:o,axis:this.state.axis};var s=i.map(Math.abs),a=s[0],u=s[1],l=this.state.axis||(a>u?"x":a<u?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:o,_blocked:!1,axis:l}:l?this.config.axis&&l!==this.config.axis?{_intentional:o,_blocked:!0,axis:l}:(o[l==="x"?1:0]=!1,{_intentional:o,_blocked:!1,axis:l}):{_intentional:[!1,!1],_blocked:!1,axis:l}},n.getKinematics=function(o,i){var s=this.getMovement(o);if(!s._blocked){var a=i.timeStamp-this.state.timeStamp;Object.assign(s,Sv(s.movement,s.delta,a))}return s},n.mapStateValues=function(o){return{xy:o.values,vxvy:o.velocities}},e}(Fv);function pu(t){if("touches"in t){var e=t.targetTouches,n=t.changedTouches;return e.length>0?e:n}return null}function gu(t){var e="buttons"in t?t.buttons:0,n=pu(t),r=n&&n.length||0,o=r>0||e>0,i=t.shiftKey,s=t.altKey,a=t.metaKey,u=t.ctrlKey;return{touches:r,down:o,buttons:e,shiftKey:i,altKey:s,metaKey:a,ctrlKey:u}}function vu(t){var e=pu(t),n=e?e[0]:t,r=n.clientX,o=n.clientY;return[r,o]}var $v=3,em=220,tm=function(t){ru(e,t);function e(){var r;return r=t.apply(this,arguments)||this,r.ingKey="dragging",r.stateKey="drag",r.onDragStart=function(o){!r.enabled||r.state._active||(Rv(r.controller,r.stateKey,[["pointermove",r.onDragChange],["pointerup",r.onDragEnd],["pointercancel",r.onDragEnd]]),r.updateGestureState({_pointerId:o.pointerId}),r.config.delay>0?(r.state._delayedEvent=!0,"persist"in o&&typeof o.persist=="function"&&o.persist(),r.setTimeout(r.startDrag.bind(Qo(r)),r.config.delay,o)):r.startDrag(o))},r.onDragChange=function(o){if(!r.state.canceled&&o.pointerId===r.state._pointerId){if(!r.state._active){r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(o));return}var i=gu(o);if(!i.down){r.onDragEnd(o);return}r.updateSharedState(i);var s=vu(o),a=r.getKinematics(s,o),u=Ps(Qo(r),o),l=r.state._isTap,f=As(a._movement);l&&f>=$v&&(l=!1),r.updateGestureState(ut({},u,a,{_isTap:l})),r.fireGestureHandler()}},r.onDragEnd=function(o){if(o.pointerId===r.state._pointerId){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var i=r.state._isTap,s=r.state.velocities,a=s[0],u=s[1],l=r.state.movement,f=l[0],d=l[1],h=r.state._intentional,g=h[0],v=h[1],p=r.config.swipeVelocity,C=p[0],w=p[1],m=r.config.swipeDistance,b=m[0],O=m[1],S=ut({},Ps(Qo(r),o),r.getMovement(r.state.values)),y=[0,0];S.elapsedTime<em&&(g!==!1&&Math.abs(a)>C&&Math.abs(f)>b&&(y[0]=xs(a)),v!==!1&&Math.abs(u)>w&&Math.abs(d)>O&&(y[1]=xs(u))),r.updateGestureState(ut({},S,{tap:i,swipe:y})),r.fireGestureHandler(i===!0)}},r.clean=function(){t.prototype.clean.call(Qo(r)),r.state._delayedEvent=!1,Wv(r.controller,r.stateKey)},r.onCancel=function(){r.state.canceled||(r.updateGestureState({canceled:!0}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return r.fireGestureHandler()}))},r.onClick=function(o){r.state._isTap||o.stopPropagation()},r}var n=e.prototype;return n.startDrag=function(o){var i=vu(o);this.updateSharedState(gu(o)),this.updateGestureState(ut({},Vv(this,i,o),Ps(this,o,!0),{_pointerId:o.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(i)),this.fireGestureHandler()},n.addBindings=function(o){if(Ms(o,"onPointerDown",this.onDragStart),this.config.filterTaps){var i=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";Ms(o,i,this.onClick)}},e}(Xv);function nm(t,e){var n,r=[],o,i=!1;function s(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return i&&n===this&&e(u,r)||(o=t.apply(this,u),i=!0,n=this,r=u),o}return s}function Ro(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ro(t[r],e[r]))return!1;return!0}var i;if(typeof Map=="function"&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!Ro(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(typeof Element<"u"&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!(o[r]==="_owner"&&t.$$typeof)&&!Ro(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}function rm(t,e){try{return Ro(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}function om(t,e){e===void 0&&(e={}),bn.set("drag",tm);var n=c.useRef();return n.current||(n.current=nm(zv,rm)),Zv({drag:t},n.current(e))}/*!
|
|
36
|
+
***************************************************************************** */var W=function(){return W=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},W.apply(this,arguments)};function rs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Ee(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xe(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Fe(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Ne;(function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"})(Ne||(Ne={}));var Gn;(function(t){t.Parent="#_parent",t.Internal="#_internal"})(Gn||(Gn={}));var os=Ne.Start,is=Ne.Stop,vr=Ne.Raise,Eo=Ne.Send,hl=Ne.Cancel,Dp=Ne.NullEvent,ss=Ne.Assign;Ne.After,Ne.DoneState;var pl=Ne.Log,Tp=Ne.Init,as=Ne.Invoke;Ne.ErrorExecution;var gl=Ne.ErrorPlatform,Bp=Ne.ErrorCustom,vl=Ne.Update,Np=Ne.Choose,jp=Ne.Pure,ml=".",yl={},ls="xstate.guard",Up="",wo;function us(t,e,n){n===void 0&&(n=ml);var r=mr(t,n),o=mr(e,n);return Ie(o)?Ie(r)?o===r:!1:Ie(r)?r in o:Object.keys(r).every(function(i){return i in o?us(r[i],o[i]):!1})}function bl(t){try{return Ie(t)||typeof t=="number"?"".concat(t):t.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function cs(t,e){try{return Qn(t)?t:t.toString().split(e)}catch{throw new Error("'".concat(t,"' is not a valid state path."))}}function Hp(t){return typeof t=="object"&&"value"in t&&"context"in t&&"event"in t&&"_event"in t}function mr(t,e){if(Hp(t))return t.value;if(Qn(t))return Co(t);if(typeof t!="string")return t;var n=cs(t,e);return Co(n)}function Co(t){if(t.length===1)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function yr(t,e){for(var n={},r=Object.keys(t),o=0;o<r.length;o++){var i=r[o];n[i]=e(t[i],i,t,o)}return n}function El(t,e,n){var r,o,i={};try{for(var s=Ee(Object.keys(t)),a=s.next();!a.done;a=s.next()){var u=a.value,l=t[u];n(l)&&(i[u]=e(l,u,t))}}catch(f){r={error:f}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var zp=function(t){return function(e){var n,r,o=e;try{for(var i=Ee(t),s=i.next();!s.done;s=i.next()){var a=s.value;o=o[a]}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function Fp(t,e){return function(n){var r,o,i=n;try{for(var s=Ee(t),a=s.next();!a.done;a=s.next()){var u=a.value;i=i[e][u]}}catch(l){r={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}}function So(t){if(!t)return[[]];if(Ie(t))return[[t]];var e=Ye(Object.keys(t).map(function(n){var r=t[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:So(t[n]).map(function(o){return[n].concat(o)})}));return e}function Ye(t){var e;return(e=[]).concat.apply(e,Fe([],xe(t),!1))}function wl(t){return Qn(t)?t:[t]}function Ot(t){return t===void 0?[]:wl(t)}function Lo(t,e,n){var r,o;if(ke(t))return t(e,n.data);var i={};try{for(var s=Ee(Object.keys(t)),a=s.next();!a.done;a=s.next()){var u=a.value,l=t[u];ke(l)?i[u]=l(e,n.data):i[u]=l}}catch(f){r={error:f}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function Vp(t){return/^(done|error)\./.test(t)}function Cl(t){return!!(t instanceof Promise||t!==null&&(ke(t)||typeof t=="object")&&ke(t.then))}function Gp(t){return t!==null&&typeof t=="object"&&"transition"in t&&typeof t.transition=="function"}function Qp(t,e){var n,r,o=xe([[],[]],2),i=o[0],s=o[1];try{for(var a=Ee(t),u=a.next();!u.done;u=a.next()){var l=u.value;e(l)?i.push(l):s.push(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}function Sl(t,e){return yr(t.states,function(n,r){if(n){var o=(Ie(e)?void 0:e[r])||(n?n.current:void 0);if(o)return{current:o,states:Sl(n,o)}}})}function Yp(t,e){return{current:e,states:Sl(t,e)}}function Ll(t,e,n,r){var o=t&&n.reduce(function(i,s){var a,u,l=s.assignment,f={state:r,action:s,_event:e},d={};if(ke(l))d=l(i,e.data,f);else try{for(var h=Ee(Object.keys(l)),g=h.next();!g.done;g=h.next()){var v=g.value,p=l[v];d[v]=ke(p)?p(i,e.data,f):p}}catch(C){a={error:C}}finally{try{g&&!g.done&&(u=h.return)&&u.call(h)}finally{if(a)throw a.error}}return Object.assign({},i,d)},t);return o}var Wp=function(){};function Qn(t){return Array.isArray(t)}function ke(t){return typeof t=="function"}function Ie(t){return typeof t=="string"}function Al(t,e){if(t)return Ie(t)?{type:ls,name:t,predicate:e?e[t]:void 0}:ke(t)?{type:ls,name:t.name,predicate:t}:t}function Rp(t){try{return"subscribe"in t&&ke(t.subscribe)}catch{return!1}}var en=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();wo={},wo[en]=function(){return this},wo[Symbol.observable]=function(){return this};function Yn(t){return!!t&&"__xstatenode"in t}function Kp(t){return!!t&&typeof t.send=="function"}function Ao(t,e){return Ie(t)||typeof t=="number"?W({type:t},e):t}function rt(t,e){if(!Ie(t)&&"$$type"in t&&t.$$type==="scxml")return t;var n=Ao(t);return W({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function Wn(t,e){var n=wl(e).map(function(r){return typeof r>"u"||typeof r=="string"||Yn(r)?{target:r,event:t}:W(W({},r),{event:t})});return n}function qp(t){if(!(t===void 0||t===Up))return Ot(t)}function xl(t,e,n,r,o){var i=t.options.guards,s={state:o,cond:e,_event:r};if(e.type===ls)return((i==null?void 0:i[e.name])||e.predicate)(n,r.data,s);var a=i==null?void 0:i[e.type];if(!a)throw new Error("Guard '".concat(e.type,"' is not implemented on machine '").concat(t.id,"'."));return a(n,r.data,s)}function Ol(t){return typeof t=="string"?{type:t}:t}function xo(t,e,n){var r=function(){},o=typeof t=="object",i=o?t:null;return{next:((o?t.next:t)||r).bind(i),error:((o?t.error:e)||r).bind(i),complete:((o?t.complete:n)||r).bind(i)}}function Oo(t,e){return"".concat(t,":invocation[").concat(e,"]")}function fs(t){return(t.type===vr||t.type===Eo&&t.to===Gn.Internal)&&typeof t.delay!="number"}var Rn=rt({type:Tp});function ds(t,e){return e&&e[t]||void 0}function br(t,e){var n;if(Ie(t)||typeof t=="number"){var r=ds(t,e);ke(r)?n={type:t,exec:r}:r?n=r:n={type:t,exec:void 0}}else if(ke(t))n={type:t.name||t.toString(),exec:t};else{var r=ds(t.type,e);if(ke(r))n=W(W({},t),{exec:r});else if(r){var o=r.type||t.type;n=W(W(W({},r),t),{type:o})}else n=t}return n}var tn=function(t,e){if(!t)return[];var n=Qn(t)?t:[t];return n.map(function(r){return br(r,e)})};function hs(t){var e=br(t);return W(W({id:Ie(t)?t:e.id},e),{type:e.type})}function Zp(t,e){return{type:vr,event:typeof t=="function"?t:Ao(t),delay:e?e.delay:void 0,id:e==null?void 0:e.id}}function Jp(t,e,n,r){var o={_event:n},i=rt(ke(t.event)?t.event(e,n.data,o):t.event),s;if(Ie(t.delay)){var a=r&&r[t.delay];s=ke(a)?a(e,n.data,o):a}else s=ke(t.delay)?t.delay(e,n.data,o):t.delay;return W(W({},t),{type:vr,_event:i,delay:s})}function _p(t,e){return{to:e?e.to:void 0,type:Eo,event:ke(t)?t:Ao(t),delay:e?e.delay:void 0,id:e&&e.id!==void 0?e.id:ke(t)?t.name:bl(t)}}function Xp(t,e,n,r){var o={_event:n},i=rt(ke(t.event)?t.event(e,n.data,o):t.event),s;if(Ie(t.delay)){var a=r&&r[t.delay];s=ke(a)?a(e,n.data,o):a}else s=ke(t.delay)?t.delay(e,n.data,o):t.delay;var u=ke(t.to)?t.to(e,n.data,o):t.to;return W(W({},t),{to:u,_event:i,event:i.data,delay:s})}var $p=function(t,e,n){return W(W({},t),{value:Ie(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})},eg=function(t){return{type:hl,sendId:t}};function tg(t){var e=hs(t);return{type:Ne.Start,activity:e,exec:void 0}}function ng(t){var e=ke(t)?t:hs(t);return{type:Ne.Stop,activity:e,exec:void 0}}function rg(t,e,n){var r=ke(t.activity)?t.activity(e,n.data):t.activity,o=typeof r=="string"?{id:r}:r,i={type:Ne.Stop,activity:o};return i}var og=function(t){return{type:ss,assignment:t}};function ig(t,e){var n=e?"#".concat(e):"";return"".concat(Ne.After,"(").concat(t,")").concat(n)}function Po(t,e){var n="".concat(Ne.DoneState,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function Mo(t,e){var n="".concat(Ne.DoneInvoke,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}function Er(t,e){var n="".concat(Ne.ErrorPlatform,".").concat(t),r={type:n,data:e};return r.toString=function(){return n},r}var sg=function(t){var e,n,r=[];try{for(var o=Ee(t),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;){if(s.actions[a].type===ss){r.push(s.actions[a]),s.actions.splice(a,1);continue}a++}}catch(u){e={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r};function ko(t,e,n,r,o,i,s){s===void 0&&(s=!1);var a=s?[]:sg(o),u=a.length?Ll(n,r,a,e):n,l=s?[n]:void 0,f=[];function d(v,p){var C;switch(p.type){case vr:{var w=Jp(p,u,r,t.options.delays);return i&&typeof w.delay=="number"&&i(w,u,r),w}case Eo:var m=Xp(p,u,r,t.options.delays);return i&&m.to!==Gn.Internal&&(v==="entry"?f.push(m):i(m,u,r)),m;case pl:{var b=$p(p,u,r);return i==null||i(b,u,r),b}case Np:{var O=p,S=(C=O.conds.find(function(K){var G=Al(K.cond,t.options.guards);return!G||xl(t,G,u,r,i?void 0:e)}))===null||C===void 0?void 0:C.actions;if(!S)return[];var y=xe(ko(t,e,u,r,[{type:v,actions:tn(Ot(S),t.options.actions)}],i,s),2),E=y[0],A=y[1];return u=A,l==null||l.push(u),E}case jp:{var S=p.get(u,r.data);if(!S)return[];var M=xe(ko(t,e,u,r,[{type:v,actions:tn(Ot(S),t.options.actions)}],i,s),2),P=M[0],x=M[1];return u=x,l==null||l.push(u),P}case is:{var b=rg(p,u,r);return i==null||i(b,n,r),b}case ss:{u=Ll(u,r,[p],i?void 0:e),l==null||l.push(u);break}default:var k=br(p,t.options.actions),N=k.exec;if(i)i(k,u,r);else if(N&&l){var z=l.length-1,Q=W(W({},k),{exec:function(K){for(var G=[],R=1;R<arguments.length;R++)G[R-1]=arguments[R];N.apply(void 0,Fe([l[z]],xe(G),!1))}});k=Q}return k}}function h(v){var p,C,w=[];try{for(var m=Ee(v.actions),b=m.next();!b.done;b=m.next()){var O=b.value,S=d(v.type,O);S&&(w=w.concat(S))}}catch(y){p={error:y}}finally{try{b&&!b.done&&(C=m.return)&&C.call(m)}finally{if(p)throw p.error}}return f.forEach(function(y){i(y,u,r)}),f.length=0,w}var g=Ye(o.map(h));return[g,u]}var Pl=[],Kn=function(t,e){Pl.push(t);var n=e(t);return Pl.pop(),n};function Ml(t){var e;return e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}},e[en]=function(){return this},e}function ag(t,e,n,r){var o,i=Ol(t.src),s=(o=e==null?void 0:e.options.services)===null||o===void 0?void 0:o[i.type],a=t.data?Lo(t.data,n,r):void 0,u=s?kl(s,t.id,a):Ml(t.id);return u.meta=t,u}function kl(t,e,n){var r=Ml(e);if(r.deferred=!0,Yn(t)){var o=r.state=Kn(void 0,function(){return(n?t.withContext(n):t).initialState});r.getSnapshot=function(){return o}}return r}function lg(t){try{return typeof t.send=="function"}catch{return!1}}function ug(t){return lg(t)&&"id"in t}function cg(t){var e;return W((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},e[en]=function(){return this},e),t)}var Io=function(t){return t.type==="atomic"||t.type==="final"};function Il(t){return Object.keys(t.states).map(function(e){return t.states[e]})}function wr(t){return Il(t).filter(function(e){return e.type!=="history"})}function Dl(t){var e=[t];return Io(t)?e:e.concat(Ye(wr(t).map(Dl)))}function Cr(t,e){var n,r,o,i,s,a,u,l,f=new Set(t),d=ps(f),h=new Set(e);try{for(var g=Ee(h),v=g.next();!v.done;v=g.next())for(var p=v.value,C=p.parent;C&&!h.has(C);)h.add(C),C=C.parent}catch(M){n={error:M}}finally{try{v&&!v.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}var w=ps(h);try{for(var m=Ee(h),b=m.next();!b.done;b=m.next()){var p=b.value;if(p.type==="compound"&&(!w.get(p)||!w.get(p).length))d.get(p)?d.get(p).forEach(function(P){return h.add(P)}):p.initialStateNodes.forEach(function(P){return h.add(P)});else if(p.type==="parallel")try{for(var O=(s=void 0,Ee(wr(p))),S=O.next();!S.done;S=O.next()){var y=S.value;h.has(y)||(h.add(y),d.get(y)?d.get(y).forEach(function(P){return h.add(P)}):y.initialStateNodes.forEach(function(P){return h.add(P)}))}}catch(P){s={error:P}}finally{try{S&&!S.done&&(a=O.return)&&a.call(O)}finally{if(s)throw s.error}}}}catch(M){o={error:M}}finally{try{b&&!b.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var E=Ee(h),A=E.next();!A.done;A=E.next())for(var p=A.value,C=p.parent;C&&!h.has(C);)h.add(C),C=C.parent}catch(M){u={error:M}}finally{try{A&&!A.done&&(l=E.return)&&l.call(E)}finally{if(u)throw u.error}}return h}function Tl(t,e){var n=e.get(t);if(!n)return{};if(t.type==="compound"){var r=n[0];if(r){if(Io(r))return r.key}else return{}}var o={};return n.forEach(function(i){o[i.key]=Tl(i,e)}),o}function ps(t){var e,n,r=new Map;try{for(var o=Ee(t),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function fg(t,e){var n=Cr([t],e);return Tl(t,ps(n))}function Sr(t,e){return Array.isArray(t)?t.some(function(n){return n===e}):t instanceof Set?t.has(e):!1}function dg(t){return Fe([],xe(new Set(Ye(Fe([],xe(t.map(function(e){return e.ownEvents})),!1)))),!1)}function Do(t,e){return e.type==="compound"?wr(e).some(function(n){return n.type==="final"&&Sr(t,n)}):e.type==="parallel"?wr(e).every(function(n){return Do(t,n)}):!1}function hg(t){return t===void 0&&(t=[]),t.reduce(function(e,n){return n.meta!==void 0&&(e[n.id]=n.meta),e},{})}function Bl(t){return new Set(Ye(t.map(function(e){return e.tags})))}function Nl(t,e){if(t===e)return!0;if(t===void 0||e===void 0)return!1;if(Ie(t)||Ie(e))return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(o){return Nl(t[o],e[o])})}function pg(t){return typeof t!="object"||t===null?!1:"value"in t&&"_event"in t}function gg(t,e){var n=t.exec,r=W(W({},t),{exec:n!==void 0?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0});return r}var Ct=function(){function t(e){var n=this,r;this.actions=[],this.activities=yl,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||yl,this.meta=hg(e.configuration),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=(r=Array.isArray(e.tags)?new Set(e.tags):e.tags)!==null&&r!==void 0?r:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return dg(n.configuration)}})}return t.from=function(e,n){if(e instanceof t)return e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e;var r=Rn;return new t({value:e,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=Rn;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(e,n){var r=this;if(e===void 0&&(e=this.value),n===void 0&&(n="."),Ie(e))return[e];var o=Object.keys(e);return o.concat.apply(o,Fe([],xe(o.map(function(i){return r.toStrings(e[i],n).map(function(s){return i+n+s})})),!1))},t.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var n=e.tags;e.machine;var r=rs(e,["configuration","transitions","tags","machine"]);return W(W({},r),{tags:Array.from(n)})},t.prototype.matches=function(e){return us(e,this.value)},t.prototype.hasTag=function(e){return this.tags.has(e)},t.prototype.can=function(e){var n;Wp(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,e);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(o){return o.target!==void 0||o.actions.length})},t}(),vg={deferEvents:!1},jl=function(){function t(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=W(W({},vg),e)}return t.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},t.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},t.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},t}(),gs=new Map,mg=0,Lr={bookId:function(){return"x:".concat(mg++)},register:function(t,e){return gs.set(t,e),t},get:function(t){return gs.get(t)},free:function(t){gs.delete(t)}};function vs(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function yg(){var t=vs();if(t&&"__xstate__"in t)return t.__xstate__}function bg(t){if(vs()){var e=yg();e&&e.register(t)}}function Eg(t,e){e===void 0&&(e={});var n=t.initialState,r=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var l=o.shift();n=t.transition(n,l,u),r.forEach(function(f){return f.next(n)})}i=!1}},a=cg({id:e.id,send:function(l){o.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,f,d){var h=xo(l,f,d);return r.add(h),h.next(n),{unsubscribe:function(){r.delete(h)}}}}),u={parent:e.parent,self:a,id:e.id||"anonymous",observers:r};return n=t.start?t.start(u):n,a}var wg={sync:!1,autoForward:!1},Xe;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Xe||(Xe={}));var Cg=function(){function t(e,n){n===void 0&&(n=t.defaultOptions);var r=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Xe.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(f,d){if(Qn(f))return r.batch(f),r.state;var h=rt(Ao(f,d));if(r.status===Xe.Stopped)return r.state;if(r.status!==Xe.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(h.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
|
|
37
|
+
Event: `).concat(JSON.stringify(h.data)));return r.scheduler.schedule(function(){r.forward(h);var g=r._nextState(h);r.update(g,h)}),r._state},this.sendTo=function(f,d,h){var g=r.parent&&(d===Gn.Parent||r.parent.id===d),v=g?r.parent:Ie(d)?d===Gn.Internal?r:r.children.get(d)||Lr.get(d):Kp(d)?d:void 0;if(!v){if(!g)throw new Error("Unable to send event to child '".concat(d,"' from service '").concat(r.id,"'."));return}if("machine"in v){if(r.status!==Xe.Stopped||r.parent!==v||r.state.done){var p=W(W({},f),{name:f.name===Bp?"".concat(Er(r.id)):f.name,origin:r.sessionId});!h&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([v,p]):v.send(p)}}else!h&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([v,f.data]):v.send(f.data)},this._exec=function(f,d,h,g){g===void 0&&(g=r.machine.options.actions);var v=f.exec||ds(f.type,g),p=ke(v)?v:v?v.exec:f.exec;if(p)try{return p(d,h.data,r.machine.config.predictableActionArguments?{action:f,_event:h}:{action:f,state:r.state,_event:h})}catch(z){throw r.parent&&r.parent.send({type:"xstate.error",data:z}),z}switch(f.type){case vr:{var C=f;r.defer(C);break}case Eo:var w=f;if(typeof w.delay=="number"){r.defer(w);return}else w.to?r.sendTo(w._event,w.to,h===Rn):r.send(w._event);break;case hl:r.cancel(f.sendId);break;case os:{if(r.status!==Xe.Running)return;var m=f.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[m.id||m.type])break;if(m.type===Ne.Invoke){var b=Ol(m.src),O=r.machine.options.services?r.machine.options.services[b.type]:void 0,S=m.id,y=m.data,E="autoForward"in m?m.autoForward:!!m.forward;if(!O)return;var A=y?Lo(y,d,h):void 0;if(typeof O=="string")return;var M=ke(O)?O(d,h.data,{data:A,src:b,meta:m.meta}):O;if(!M)return;var P=void 0;Yn(M)&&(M=A?M.withContext(A):M,P={autoForward:E}),r.spawn(M,S,P)}else r.spawnActivity(m);break}case is:{r.stopChild(f.activity.id);break}case pl:var x=f,k=x.label,N=x.value;k?r.logger(k,N):r.logger(N);break}};var o=W(W({},t.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,u=o.id,l=u!==void 0?u:e.id;this.id=l,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new jl({deferEvents:this.options.deferEvents}),this.sessionId=Lr.bookId()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Kn(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(e,n){var r,o;try{for(var i=Ee(e.actions),s=i.next();!s.done;s=i.next()){var a=s.value;this.exec(a,e,n)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t.prototype.update=function(e,n){var r,o,i,s,a,u,l,f,d=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||n===Rn)&&this.options.execute)this.execute(this.state);else for(var h=void 0;h=this._outgoingQueue.shift();)h[0].send(h[1]);if(this.children.forEach(function(M){d.state.children[M.id]=M}),this.devTools&&this.devTools.send(n.data,e),e.event)try{for(var g=Ee(this.eventListeners),v=g.next();!v.done;v=g.next()){var p=v.value;p(e.event)}}catch(M){r={error:M}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}try{for(var C=Ee(this.listeners),w=C.next();!w.done;w=C.next()){var p=w.value;p(e,e.event)}}catch(M){i={error:M}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}try{for(var m=Ee(this.contextListeners),b=m.next();!b.done;b=m.next()){var O=b.value;O(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(M){a={error:M}}finally{try{b&&!b.done&&(u=m.return)&&u.call(m)}finally{if(a)throw a.error}}if(this.state.done){var S=e.configuration.find(function(M){return M.type==="final"&&M.parent===d.machine}),y=S&&S.doneData?Lo(S.doneData,e.context,n):void 0;this._doneEvent=Mo(this.id,y);try{for(var E=Ee(this.doneListeners),A=E.next();!A.done;A=E.next()){var p=A.value;p(this._doneEvent)}}catch(M){l={error:M}}finally{try{A&&!A.done&&(f=E.return)&&f.call(E)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),Lr.free(this.sessionId)}},t.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Xe.Running&&e(this.state,this.state.event),this},t.prototype.subscribe=function(e,n,r){var o=this,i=xo(e,n,r);this.listeners.add(i.next),this.status!==Xe.NotStarted&&i.next(this.state);var s=function(){o.doneListeners.delete(s),o.stopListeners.delete(s),i.complete()};return this.status===Xe.Stopped?i.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){o.listeners.delete(i.next),o.doneListeners.delete(s),o.stopListeners.delete(s)}}},t.prototype.onEvent=function(e){return this.eventListeners.add(e),this},t.prototype.onSend=function(e){return this.sendListeners.add(e),this},t.prototype.onChange=function(e){return this.contextListeners.add(e),this},t.prototype.onStop=function(e){return this.stopListeners.add(e),this},t.prototype.onDone=function(e){return this.status===Xe.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},t.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},t.prototype.start=function(e){var n=this;if(this.status===Xe.Running)return this;this.machine._init(),Lr.register(this.sessionId,this),this.initialized=!0,this.status=Xe.Running;var r=e===void 0?this.initialState:Kn(this,function(){return pg(e)?n.machine.resolveState(e):n.machine.resolveState(Ct.from(e,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Rn)}),this},t.prototype._stopChildren=function(){this.children.forEach(function(e){ke(e.stop)&&e.stop()}),this.children.clear()},t.prototype._stop=function(){var e,n,r,o,i,s,a,u,l,f;try{for(var d=Ee(this.listeners),h=d.next();!h.done;h=d.next()){var g=h.value;this.listeners.delete(g)}}catch(E){e={error:E}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}try{for(var v=Ee(this.stopListeners),p=v.next();!p.done;p=v.next()){var g=p.value;g(),this.stopListeners.delete(g)}}catch(E){r={error:E}}finally{try{p&&!p.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}try{for(var C=Ee(this.contextListeners),w=C.next();!w.done;w=C.next()){var g=w.value;this.contextListeners.delete(g)}}catch(E){i={error:E}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}try{for(var m=Ee(this.doneListeners),b=m.next();!b.done;b=m.next()){var g=b.value;this.doneListeners.delete(g)}}catch(E){a={error:E}}finally{try{b&&!b.done&&(u=m.return)&&u.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Xe.Stopped,this._initialState=void 0;try{for(var O=Ee(Object.keys(this.delayedEventsMap)),S=O.next();!S.done;S=O.next()){var y=S.value;this.clock.clearTimeout(this.delayedEventsMap[y])}}catch(E){l={error:E}}finally{try{S&&!S.done&&(f=O.return)&&f.call(O)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new jl({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var e=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=rt({type:"xstate.stop"}),o=Kn(e,function(){var i=Ye(Fe([],xe(e.state.configuration),!1).sort(function(f,d){return d.order-f.order}).map(function(f){return tn(f.onExit,e.machine.options.actions)})),s=xe(ko(e.machine,e.state,e.state.context,r,[{type:"exit",actions:i}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),a=s[0],u=s[1],l=new Ct({value:e.state.value,context:u,_event:r,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:a.filter(function(f){return!fs(f)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return l.changed=!0,l});e.update(o,r),e._stopChildren(),Lr.free(e.sessionId)}),this},t.prototype.batch=function(e){var n=this;if(!(this.status===Xe.NotStarted&&this.options.deferEvents)){if(this.status!==Xe.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(e.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var o,i,s=n.state,a=!1,u=[],l=function(g){var v=rt(g);n.forward(v),s=Kn(n,function(){return n.machine.transition(s,v,void 0,r||void 0)}),u.push.apply(u,Fe([],xe(n.machine.config.predictableActionArguments?s.actions:s.actions.map(function(p){return gg(p,s)})),!1)),a=a||!!s.changed};try{for(var f=Ee(e),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)}}catch(g){o={error:g}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}s.changed=a,s.actions=u,n.update(s,rt(e[e.length-1]))})}},t.prototype.sender=function(e){return this.send.bind(this,e)},t.prototype._nextState=function(e,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var o=rt(e);if(o.name.indexOf(gl)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(gl)===0}))throw o.data.data;var i=Kn(this,function(){return r.machine.transition(r.state,o,void 0,n||void 0)});return i},t.prototype.nextState=function(e){return this._nextState(e,!1)},t.prototype.forward=function(e){var n,r;try{for(var o=Ee(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,a=this.children.get(s);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));a.send(e)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.defer=function(e){var n=this,r=this.clock.setTimeout(function(){"to"in e&&e.to?n.sendTo(e._event,e.to,!0):n.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=r)},t.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},t.prototype.exec=function(e,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(e,n.context,n._event,r)},t.prototype.removeChild=function(e){var n;this.children.delete(e),this.forwardTo.delete(e),(n=this.state)===null||n===void 0||delete n.children[e]},t.prototype.stopChild=function(e){var n=this.children.get(e);n&&(this.removeChild(e),ke(n.stop)&&n.stop())},t.prototype.spawn=function(e,n,r){if(this.status!==Xe.Running)return kl(e,n);if(Cl(e))return this.spawnPromise(Promise.resolve(e),n);if(ke(e))return this.spawnCallback(e,n);if(ug(e))return this.spawnActor(e,n);if(Rp(e))return this.spawnObservable(e,n);if(Yn(e))return this.spawnMachine(e,W(W({},r),{id:n}));if(Gp(e))return this.spawnBehavior(e,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof e,'".'))},t.prototype.spawnMachine=function(e,n){var r=this;n===void 0&&(n={});var o=new t(e,W(W({},this.options),{parent:this,id:n.id||e.id})),i=W(W({},wg),n);i.sync&&o.onTransition(function(a){r.send(vl,{state:a,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(a){r.removeChild(o.id),r.send(rt(a,{origin:o.id}))}).start(),s},t.prototype.spawnBehavior=function(e,n){var r=Eg(e,{id:n,parent:this});return this.children.set(n,r),r},t.prototype.spawnPromise=function(e,n){var r,o=this,i=!1,s;e.then(function(u){i||(s=u,o.removeChild(n),o.send(rt(Mo(n,u),{origin:n})))},function(u){if(!i){o.removeChild(n);var l=Er(n,u);try{o.send(rt(l,{origin:n}))}catch{o.devTools&&o.devTools.send(l,o.state),o.machine.strict&&o.stop()}}});var a=(r={id:n,send:function(){},subscribe:function(u,l,f){var d=xo(u,l,f),h=!1;return e.then(function(g){h||(d.next(g),!h&&d.complete())},function(g){h||d.error(g)}),{unsubscribe:function(){return h=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[en]=function(){return this},r);return this.children.set(n,a),a},t.prototype.spawnCallback=function(e,n){var r,o=this,i=!1,s=new Set,a=new Set,u,l=function(h){u=h,a.forEach(function(g){return g(h)}),!i&&o.send(rt(h,{origin:n}))},f;try{f=e(l,function(h){s.add(h)})}catch(h){this.send(Er(n,h))}if(Cl(f))return this.spawnPromise(f,n);var d=(r={id:n,send:function(h){return s.forEach(function(g){return g(h)})},subscribe:function(h){var g=xo(h);return a.add(g.next),{unsubscribe:function(){a.delete(g.next)}}},stop:function(){i=!0,ke(f)&&f()},toJSON:function(){return{id:n}},getSnapshot:function(){return u}},r[en]=function(){return this},r);return this.children.set(n,d),d},t.prototype.spawnObservable=function(e,n){var r,o=this,i,s=e.subscribe(function(u){i=u,o.send(rt(u,{origin:n}))},function(u){o.removeChild(n),o.send(rt(Er(n,u),{origin:n}))},function(){o.removeChild(n),o.send(rt(Mo(n),{origin:n}))}),a=(r={id:n,send:function(){},subscribe:function(u,l,f){return e.subscribe(u,l,f)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[en]=function(){return this},r);return this.children.set(n,a),a},t.prototype.spawnActor=function(e,n){return this.children.set(n,e),e},t.prototype.spawnActivity=function(e){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(n){var r=n(this.state.context,e);this.spawnEffect(e.id,r)}},t.prototype.spawnEffect=function(e,n){var r;this.children.set(e,(r={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}},r[en]=function(){return this},r))},t.prototype.attachDev=function(){var e=vs();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(W(W({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:W({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}bg(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[en]=function(){return this},t.prototype.getSnapshot=function(){return this.status===Xe.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,n){return setTimeout(e,n)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},t.interpret=Ul,t}();function Ul(t,e){var n=new Cg(t,e);return n}function Sg(t){if(typeof t=="string"){var e={type:t};return e.toString=function(){return t},e}return t}function To(t){return W(W({type:as},t),{toJSON:function(){t.onDone,t.onError;var e=rs(t,["onDone","onError"]);return W(W({},e),{type:as,src:Sg(t.src)})}})}var Bo="",ms="#",ys="*",qn={},Zn=function(t){return t[0]===ms},Lg=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Ag=function(){function t(e,n,r,o){r===void 0&&(r="context"in e?e.context:void 0);var i=this,s;this.config=e,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(Lg(),n),this.parent=o==null?void 0:o.parent,this.key=this.config.key||(o==null?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:ml),this.id=this.config.id||Fe([this.machine.key],xe(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?yr(this.config.states,function(l,f){var d,h=new t(l,{},void 0,{parent:i,key:f});return Object.assign(i.idMap,W((d={},d[h.id]=h,d),h.idMap)),h}):qn;var a=0;function u(l){var f,d;l.order=a++;try{for(var h=Ee(Il(l)),g=h.next();!g.done;g=h.next()){var v=g.value;u(v)}}catch(p){f={error:p}}finally{try{g&&!g.done&&(d=h.return)&&d.call(h)}finally{if(f)throw f.error}}}u(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(l){var f=l.event;return f===Bo}):Bo in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ot(this.config.entry||this.config.onEntry).map(function(l){return br(l)}),this.onExit=Ot(this.config.exit||this.config.onExit).map(function(l){return br(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ot(this.config.invoke).map(function(l,f){var d,h;if(Yn(l)){var g=Oo(i.id,f);return i.machine.options.services=W((d={},d[g]=l,d),i.machine.options.services),To({src:g,id:g})}else if(Ie(l.src)){var g=l.id||Oo(i.id,f);return To(W(W({},l),{id:g,src:l.src}))}else if(Yn(l.src)||ke(l.src)){var g=l.id||Oo(i.id,f);return i.machine.options.services=W((h={},h[g]=l.src,h),i.machine.options.services),To(W(W({id:g},l),{src:g}))}else{var v=l.src;return To(W(W({id:Oo(i.id,f)},l),{src:v}))}}),this.activities=Ot(this.config.activities).concat(this.invoke).map(function(l){return hs(l)}),this.transition=this.transition.bind(this),this.tags=Ot(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||Dl(this).forEach(function(e){return e.on})},t.prototype.withConfig=function(e,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,u=r.delays;return new t(this.config,{actions:W(W({},o),e.actions),activities:W(W({},i),e.activities),guards:W(W({},s),e.guards),services:W(W({},a),e.services),delays:W(W({},u),e.delays)},n??this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return ke(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:yr(this.states,function(e){return e.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var n=e===Bo,r=this.transitions.filter(function(o){var i=o.eventType===e;return n?i:i||o.eventType===ys});return this.__cache.candidates[e]=r,r},t.prototype.getDelayedTransitions=function(){var e=this,n=this.config.after;if(!n)return[];var r=function(i,s){var a=ke(i)?"".concat(e.id,":delay[").concat(s,"]"):i,u=ig(a,e.id);return e.onEntry.push(_p(u,{delay:i})),e.onExit.push(eg(u)),u},o=Qn(n)?n.map(function(i,s){var a=r(i.delay,s);return W(W({},i),{event:a})}):Ye(Object.keys(n).map(function(i,s){var a=n[i],u=Ie(a)?{target:a}:a,l=isNaN(+i)?i:+i,f=r(l,s);return Ot(u).map(function(d){return W(W({},d),{event:f,delay:l})})}));return o.map(function(i){var s=i.delay;return W(W({},e.formatTransition(i)),{delay:s})})},t.prototype.getStateNodes=function(e){var n,r=this;if(!e)return[];var o=e instanceof Ct?e.value:mr(e,this.delimiter);if(Ie(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((n={},n[o]=i,n)):[this,this.states[o]]}var s=Object.keys(o),a=[this];return a.push.apply(a,Fe([],xe(Ye(s.map(function(u){return r.getStateNode(u).getStateNodes(o[u])}))),!1)),a},t.prototype.handles=function(e){var n=bl(e);return this.events.includes(n)},t.prototype.resolveState=function(e){var n=e instanceof Ct?e:Ct.create(e),r=Array.from(Cr([],this.getStateNodes(n.value)));return new Ct(W(W({},n),{value:this.resolve(n.value),configuration:r,done:Do(r,this),tags:Bl(r),machine:this.machine}))},t.prototype.transitionLeafNode=function(e,n,r){var o=this.getStateNode(e),i=o.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},t.prototype.transitionCompoundNode=function(e,n,r){var o=Object.keys(e),i=this.getStateNode(o[0]),s=i._transition(e[o[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},t.prototype.transitionParallelNode=function(e,n,r){var o,i,s={};try{for(var a=Ee(Object.keys(e)),u=a.next();!u.done;u=a.next()){var l=u.value,f=e[l];if(f){var d=this.getStateNode(l),h=d._transition(f,n,r);h&&(s[l]=h)}}}catch(w){o={error:w}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}var g=Object.keys(s).map(function(w){return s[w]}),v=Ye(g.map(function(w){return w.transitions})),p=g.some(function(w){return w.transitions.length>0});if(!p)return this.next(n,r);var C=Ye(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,exitSet:Ye(g.map(function(w){return w.exitSet})),configuration:C,source:n,actions:Ye(Object.keys(s).map(function(w){return s[w].actions}))}},t.prototype._transition=function(e,n,r){return Ie(e)?this.transitionLeafNode(e,n,r):Object.keys(e).length===1?this.transitionCompoundNode(e,n,r):this.transitionParallelNode(e,n,r)},t.prototype.getTransitionData=function(e,n){return this._transition(e.value,e,rt(n))},t.prototype.next=function(e,n){var r,o,i=this,s=n.name,a=[],u=[],l;try{for(var f=Ee(this.getCandidates(s)),d=f.next();!d.done;d=f.next()){var h=d.value,g=h.cond,v=h.in,p=e.context,C=v?Ie(v)&&Zn(v)?e.matches(mr(this.getStateNodeById(v).path,this.delimiter)):us(mr(v,this.delimiter),zp(this.path.slice(0,-2))(e.value)):!0,w=!1;try{w=!g||xl(this.machine,g,p,n,e)}catch(O){throw new Error("Unable to evaluate guard '".concat(g.name||g.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
|
|
38
|
+
`).concat(O.message))}if(w&&C){h.target!==void 0&&(u=h.target),a.push.apply(a,Fe([],xe(h.actions),!1)),l=h;break}}}catch(O){r={error:O}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}if(l){if(!u.length)return{transitions:[l],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var m=Ye(u.map(function(O){return i.getRelativeStateNodes(O,e.historyValue)})),b=!!l.internal;return{transitions:[l],exitSet:b?[]:Ye(u.map(function(O){return i.getPotentiallyReenteringNodes(O)})),configuration:m,source:e,actions:a}}},t.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var n=[],r=this,o=e;r&&r!==o;)n.push(r),r=r.parent;return r!==o?[]:(n.push(o),n)},t.prototype.getActions=function(e,n,r,o,i,s,a){var u,l,f,d,h=this,g=s?Cr([],this.getStateNodes(s.value)):[],v=new Set;try{for(var p=Ee(Array.from(e).sort(function(x,k){return x.order-k.order})),C=p.next();!C.done;C=p.next()){var w=C.value;(!Sr(g,w)||Sr(r.exitSet,w)||w.parent&&v.has(w.parent))&&v.add(w)}}catch(x){u={error:x}}finally{try{C&&!C.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}try{for(var m=Ee(g),b=m.next();!b.done;b=m.next()){var w=b.value;(!Sr(e,w)||Sr(r.exitSet,w.parent))&&r.exitSet.push(w)}}catch(x){f={error:x}}finally{try{b&&!b.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}r.exitSet.sort(function(x,k){return k.order-x.order});var O=Array.from(v).sort(function(x,k){return x.order-k.order}),S=new Set(r.exitSet),y=Ye(O.map(function(x){var k=[];if(x.type!=="final")return k;var N=x.parent;if(!N.parent)return k;k.push(Po(x.id,x.doneData),Po(N.id,x.doneData?Lo(x.doneData,o,i):void 0));var z=N.parent;return z.type==="parallel"&&wr(z).every(function(Q){return Do(r.configuration,Q)})&&k.push(Po(z.id)),k})),E=O.map(function(x){var k=x.onEntry,N=x.activities.map(function(z){return tg(z)});return{type:"entry",actions:tn(a?Fe(Fe([],xe(k),!1),xe(N),!1):Fe(Fe([],xe(N),!1),xe(k),!1),h.machine.options.actions)}}).concat({type:"state_done",actions:y.map(function(x){return Zp(x)})}),A=Array.from(S).map(function(x){return{type:"exit",actions:tn(Fe(Fe([],xe(x.onExit),!1),xe(x.activities.map(function(k){return ng(k)})),!1),h.machine.options.actions)}}),M=A.concat({type:"transition",actions:tn(r.actions,this.machine.options.actions)}).concat(E);if(n){var P=tn(Ye(Fe([],xe(e),!1).sort(function(x,k){return k.order-x.order}).map(function(x){return x.onExit})),this.machine.options.actions).filter(function(x){return!fs(x)});return M.concat({type:"stop",actions:P})}return M},t.prototype.transition=function(e,n,r,o){e===void 0&&(e=this.initialState);var i=rt(n),s;if(e instanceof Ct)s=r===void 0?e:this.resolveState(Ct.from(e,r));else{var a=Ie(e)?this.resolve(Co(this.getResolvedPath(e))):this.resolve(e),u=r??this.machine.context;s=this.resolveState(Ct.from(a,u))}if(this.strict&&!this.events.includes(i.name)&&!Vp(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var l=this._transition(s.value,s,i)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]},f=Cr([],this.getStateNodes(s.value)),d=l.configuration.length?Cr(f,l.configuration):f;return l.configuration=Fe([],xe(d),!1),this.resolveTransition(l,s,s.context,o,i)},t.prototype.resolveRaisedTransition=function(e,n,r,o){var i,s=e.actions;return e=this.transition(e,n,void 0,o),e._event=r,e.event=r.data,(i=e.actions).unshift.apply(i,Fe([],xe(s),!1)),e},t.prototype.resolveTransition=function(e,n,r,o,i){var s,a,u,l,f=this;i===void 0&&(i=Rn);var d=e.configuration,h=!n||e.transitions.length>0,g=h?e.configuration:n?n.configuration:[],v=Do(g,this),p=h?fg(this.machine,d):void 0,C=n?n.historyValue?n.historyValue:e.source?this.machine.historyValue(n.value):void 0:void 0,w=this.getActions(new Set(g),v,e,r,i,n,o),m=n?W({},n.activities):{};try{for(var b=Ee(w),O=b.next();!O.done;O=b.next()){var S=O.value;try{for(var y=(u=void 0,Ee(S.actions)),E=y.next();!E.done;E=y.next()){var A=E.value;A.type===os?m[A.activity.id||A.activity.type]=A:A.type===is&&(m[A.activity.id||A.activity.type]=!1)}}catch(Y){u={error:Y}}finally{try{E&&!E.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}}}catch(Y){s={error:Y}}finally{try{O&&!O.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}var M=xe(ko(this,n,r,i,w,o,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),P=M[0],x=M[1],k=xe(Qp(P,fs),2),N=k[0],z=k[1],Q=P.filter(function(Y){var ne;return Y.type===os&&((ne=Y.activity)===null||ne===void 0?void 0:ne.type)===as}),K=Q.reduce(function(Y,ne){return Y[ne.activity.id]=ag(ne.activity,f.machine,x,i),Y},n?W({},n.children):{}),G=new Ct({value:p||n.value,context:x,_event:i,_sessionid:n?n._sessionid:null,historyValue:p?C?Yp(C,p):void 0:n?n.historyValue:void 0,history:!p||e.source?n:void 0,actions:p?z:[],activities:p?m:n?n.activities:{},events:[],configuration:g,transitions:e.transitions,children:K,done:v,tags:Bl(g),machine:this}),R=r!==x;G.changed=i.name===vl||R;var T=G.history;T&&delete T.history;var I=!v&&(this._transient||d.some(function(Y){return Y._transient}));if(!h&&(!I||i.name===Bo))return G;var D=G;if(!v)for(I&&(D=this.resolveRaisedTransition(D,{type:Dp},i,o));N.length;){var V=N.shift();D=this.resolveRaisedTransition(D,V._event,i,o)}var H=D.changed||(T?!!D.actions.length||R||typeof T.value!=typeof D.value||!Nl(D.value,T.value):void 0);return D.changed=H,D.history=T,D},t.prototype.getStateNode=function(e){if(Zn(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[e];if(!n)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return n},t.prototype.getStateNodeById=function(e){var n=Zn(e)?e.slice(ms.length):e;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},t.prototype.getStateNodeByPath=function(e){if(typeof e=="string"&&Zn(e))try{return this.getStateNodeById(e.slice(1))}catch{}for(var n=cs(e,this.delimiter).slice(),r=this;n.length;){var o=n.shift();if(!o.length)break;r=r.getStateNode(o)}return r},t.prototype.resolve=function(e){var n,r=this;if(!e)return this.initialStateValue||qn;switch(this.type){case"parallel":return yr(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(e[s]||i):qn});case"compound":if(Ie(e)){var o=this.getStateNode(e);return o.type==="parallel"||o.type==="compound"?(n={},n[e]=o.initialStateValue,n):e}return Object.keys(e).length?yr(e,function(i,s){return i?r.getStateNode(s).resolve(i):qn}):this.initialStateValue||{};default:return e||qn}},t.prototype.getResolvedPath=function(e){if(Zn(e)){var n=this.machine.idMap[e.slice(ms.length)];if(!n)throw new Error("Unable to find state node '".concat(e,"'"));return n.path}return cs(e,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=El(this.states,function(r){return r.initialStateValue||qn},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=Io(this.states[this.initial])?this.initial:(e={},e[this.initial]=this.states[this.initial].initialStateValue,e)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(e,n){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var e;if(this.type==="history"){var n=this.config;Ie(n.target)?e=Zn(n.target)?Co(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:e=n.target}return e},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(e,n,r){return r===void 0&&(r=!0),r?e.type==="history"?e.resolveHistory(n):e.initialStateNodes:[e]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var e=this;if(Io(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=So(this.initialStateValue);return Ye(n.map(function(r){return e.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var n=xe(e),r=n[0],o=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(o)},t.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:El(this.states,function(n,r){if(!e)return n.historyValue();var o=Ie(e)?void 0:e[r];return n.historyValue(o||n.initialStateValue)},function(n){return!n.history})}},t.prototype.resolveHistory=function(e){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!e){var o=this.target;return o?Ye(So(o).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=Fp(r.path,"states")(e).current;return Ie(i)?[r.getStateNode(i)]:Ye(So(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var e=this,n=Ye(Object.keys(this.states).map(function(r){return e.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var e,n,r,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var a=Ee(Object.keys(i)),u=a.next();!u.done;u=a.next()){var l=u.value,f=i[l];if(f.states)try{for(var d=(r=void 0,Ee(f.events)),h=d.next();!h.done;h=d.next()){var g=h.value;s.add("".concat(g))}}catch(v){r={error:v}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}catch(v){e={error:v}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(e)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(e){var n=this;if(e!==void 0)return e.map(function(r){if(!Ie(r))return r;var o=r[0]===n.delimiter;if(o&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=o?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(a){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
|
|
39
|
+
`).concat(a.message))}else return n.getStateNodeByPath(i)})},t.prototype.formatTransition=function(e){var n=this,r=qp(e.target),o="internal"in e?e.internal:r?r.some(function(u){return Ie(u)&&u[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),a=W(W({},e),{actions:tn(Ot(e.actions)),cond:Al(e.cond,i),target:s,source:this,internal:o,eventType:e.event,toJSON:function(){return W(W({},a),{target:a.target?a.target.map(function(u){return"#".concat(u.id)}):void 0,source:"#".concat(n.id)})}});return a},t.prototype.formatTransitions=function(){var e,n,r=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=ys,a=i[s],u=a===void 0?[]:a,l=rs(i,[typeof s=="symbol"?s:s+""]);o=Ye(Object.keys(l).map(function(m){var b=Wn(m,l[m]);return b}).concat(Wn(ys,u)))}var f=this.config.always?Wn("",this.config.always):[],d=this.config.onDone?Wn(String(Po(this.id)),this.config.onDone):[],h=Ye(this.invoke.map(function(m){var b=[];return m.onDone&&b.push.apply(b,Fe([],xe(Wn(String(Mo(m.id)),m.onDone)),!1)),m.onError&&b.push.apply(b,Fe([],xe(Wn(String(Er(m.id)),m.onError)),!1)),b})),g=this.after,v=Ye(Fe(Fe(Fe(Fe([],xe(d),!1),xe(h),!1),xe(o),!1),xe(f),!1).map(function(m){return Ot(m).map(function(b){return r.formatTransition(b)})}));try{for(var p=Ee(g),C=p.next();!C.done;C=p.next()){var w=C.value;v.push(w)}}catch(m){e={error:m}}finally{try{C&&!C.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return v},t}();function xg(t,e,n){return n===void 0&&(n=t.context),new Ag(t,e,n)}var Og=og,bs;(function(t){t[t.Effect=1]="Effect",t[t.LayoutEffect=2]="LayoutEffect"})(bs||(bs={}));var Ar=c.useLayoutEffect;function Hl(t){var e=ce.useRef();return e.current||(e.current={v:t()}),e.current.v}var Pg=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},Mg=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function kg(t,e){var n,r,o=Pg([[],[]],2),i=o[0],s=o[1];try{for(var a=Mg(t),u=a.next();!u.done;u=a.next()){var l=u.value;e(l)?i.push(l):s.push(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}var xr=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},zl=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function Fl(t,e){var n=t.exec,r=n(e.context,e._event.data,{action:t,state:e,_event:e._event});r()}function Ig(t){var e=c.useRef([]),n=c.useRef([]);Ar(function(){var r=t.subscribe(function(o){var i,s;if(o.actions.length){var a=o.actions.filter(function(d){return typeof d.exec=="function"&&"__effect"in d.exec}),u=xr(kg(a,function(d){return d.exec.__effect===bs.Effect}),2),l=u[0],f=u[1];(i=e.current).push.apply(i,zl([],xr(l.map(function(d){return[d,o]})),!1)),(s=n.current).push.apply(s,zl([],xr(f.map(function(d){return[d,o]})),!1))}});return function(){r.unsubscribe()}},[]),Ar(function(){for(;n.current.length;){var r=xr(n.current.shift(),2),o=r[0],i=r[1];Fl(o,i)}}),c.useEffect(function(){for(;e.current.length;){var r=xr(e.current.shift(),2),o=r[0],i=r[1];Fl(o,i)}})}var Or=globalThis&&globalThis.__assign||function(){return Or=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Or.apply(this,arguments)},Dg=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};globalThis&&globalThis.__read;function Tg(t,e,n){if(typeof t=="object")return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}function Bg(t,e,n){e===void 0&&(e={});var r=Hl(function(){return typeof t=="function"?t():t}),o=e.context,i=e.guards,s=e.actions,a=e.activities,u=e.services,l=e.delays,f=e.state,d=Dg(e,["context","guards","actions","activities","services","delays","state"]),h=Hl(function(){var g={context:o,guards:i,actions:s,activities:a,services:u,delays:l},v=r.withConfig(g,function(){return Or(Or({},r.context),o)});return Ul(v,Or({deferEvents:!0},d))});return Ar(function(){var g;return n&&(g=h.subscribe(Tg(n))),function(){g==null||g.unsubscribe()}},[n]),Ar(function(){return h.start(f?Ct.create(f):void 0),function(){h.stop()}},[]),Ar(function(){Object.assign(h.machine.options.actions,s),Object.assign(h.machine.options.guards,i),Object.assign(h.machine.options.activities,a),Object.assign(h.machine.options.services,u),Object.assign(h.machine.options.delays,l)},[s,i,a,u,l]),Ig(h),h}var Ng=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i};globalThis&&globalThis.__spreadArray;function jg(t,e){e===void 0&&(e={});var n=c.useCallback(function(a){var u=a.changed===void 0&&Object.keys(a.children).length;(a.changed||u)&&s(a)},[]),r=Bg(t,e,n),o=Ng(c.useState(function(){var a=r.machine.initialState;return e.state?Ct.create(e.state):a}),2),i=o[0],s=o[1];return[i,r.send,r]}function We(){return We=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},We.apply(this,arguments)}function Jn(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const me={arr:Array.isArray,obj:t=>Object.prototype.toString.call(t)==="[object Object]",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0,nul:t=>t===null,set:t=>t instanceof Set,map:t=>t instanceof Map,equ(t,e){if(typeof t!=typeof e)return!1;if(me.str(t)||me.num(t))return t===e;if(me.obj(t)&&me.obj(e)&&Object.keys(t).length+Object.keys(e).length===0)return!0;let n;for(n in t)if(!(n in e))return!1;for(n in e)if(t[n]!==e[n])return!1;return me.und(n)?t===e:!0}};function Ug(t,e){return e===void 0&&(e=!0),n=>(me.arr(n)?n:Object.keys(n)).reduce((r,o)=>{const i=e?o[0].toLowerCase()+o.substring(1):o;return r[i]=t(i),r},t)}function Hg(){const t=c.useState(!1),e=t[1];return c.useCallback(()=>e(r=>!r),[])}function yn(t,e){return me.und(t)||me.nul(t)?e:t}function No(t){return me.und(t)?[]:me.arr(t)?t:[t]}function _n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return me.fun(t)?t(...n):t}function zg(t){return t.to,t.from,t.config,t.onStart,t.onRest,t.onFrame,t.children,t.reset,t.reverse,t.force,t.immediate,t.delay,t.attach,t.destroyed,t.interpolateTo,t.ref,t.lazy,Jn(t,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}function Es(t){const e=zg(t);if(me.und(e))return We({to:e},t);const n=Object.keys(t).reduce((r,o)=>me.und(e[o])?We({},r,{[o]:t[o]}):r,{});return We({to:e},n)}function Fg(t,e){return e&&(me.fun(e)?e(t):me.obj(e)&&(e.current=t)),t}class Pt{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){this.children.length===0&&this.attach(),this.children.push(e)}removeChild(e){const n=this.children.indexOf(e);this.children.splice(n,1),this.children.length===0&&this.detach()}}class ws extends Pt{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(e=>e instanceof Pt&&e.addChild(this)),this.detach=()=>this.payload.forEach(e=>e instanceof Pt&&e.removeChild(this))}}class Vl extends Pt{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(e=>e instanceof Pt&&e.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(e=>e instanceof Pt&&e.removeChild(this))}getValue(e){e===void 0&&(e=!1);const n={};for(const r in this.payload){const o=this.payload[r];e&&!(o instanceof Pt)||(n[r]=o instanceof Pt?o[e?"getAnimatedValue":"getValue"]():o)}return n}getAnimatedValue(){return this.getValue(!0)}}let Cs;function Vg(t,e){Cs={fn:t,transform:e}}let Gl;function Gg(t){Gl=t}let Ql=t=>typeof window<"u"?window.requestAnimationFrame(t):-1,jo;function Qg(t){jo=t}let Yl=()=>Date.now(),Yg=t=>t.current,Wl;function Wg(t){Wl=t}class Rg extends Vl{constructor(e,n){super(),this.update=void 0,this.payload=e.style?We({},e,{style:Wl(e.style)}):e,this.update=n,this.attach()}}const Kg=t=>me.fun(t)&&!(t.prototype instanceof c.Component),qg=t=>c.forwardRef((n,r)=>{const o=Hg(),i=c.useRef(!0),s=c.useRef(null),a=c.useRef(null),u=c.useCallback(h=>{const g=s.current,v=()=>{let p=!1;a.current&&(p=Cs.fn(a.current,s.current.getAnimatedValue())),(!a.current||p===!1)&&o()};s.current=new Rg(h,v),g&&g.detach()},[]);c.useEffect(()=>()=>{i.current=!1,s.current&&s.current.detach()},[]),c.useImperativeHandle(r,()=>Yg(a)),u(n);const l=s.current.getValue();l.scrollTop,l.scrollLeft;const f=Jn(l,["scrollTop","scrollLeft"]),d=Kg(t)?void 0:h=>a.current=Fg(h,r);return c.createElement(t,We({},f,{ref:d}))});let Pr=!1;const bn=new Set,Rl=()=>{if(!Pr)return!1;let t=Yl();for(let e of bn){let n=!1;for(let r=0;r<e.configs.length;r++){let o=e.configs[r],i,s;for(let a=0;a<o.animatedValues.length;a++){let u=o.animatedValues[a];if(u.done)continue;let l=o.fromValues[a],f=o.toValues[a],d=u.lastPosition,h=f instanceof Pt,g=Array.isArray(o.initialVelocity)?o.initialVelocity[a]:o.initialVelocity;if(h&&(f=f.getValue()),o.immediate){u.setValue(f),u.done=!0;continue}if(typeof l=="string"||typeof f=="string"){u.setValue(f),u.done=!0;continue}if(o.duration!==void 0)d=l+o.easing((t-u.startTime)/o.duration)*(f-l),i=t>=u.startTime+o.duration;else if(o.decay)d=l+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-u.startTime))),i=Math.abs(u.lastPosition-d)<.1,i&&(f=d);else{s=u.lastTime!==void 0?u.lastTime:t,g=u.lastVelocity!==void 0?u.lastVelocity:o.initialVelocity,t>s+64&&(s=t);let v=Math.floor(t-s);for(let m=0;m<v;++m){let b=-o.tension*(d-f),O=-o.friction*g,S=(b+O)/o.mass;g=g+S*1/1e3,d=d+g*1/1e3}let p=o.clamp&&o.tension!==0?l<f?d>f:d<f:!1,C=Math.abs(g)<=o.precision,w=o.tension!==0?Math.abs(f-d)<=o.precision:!0;i=p||C&&w,u.lastVelocity=g,u.lastTime=t}h&&!o.toValues[a].done&&(i=!1),i?(u.value!==f&&(d=f),u.done=!0):n=!0,u.setValue(d),u.lastPosition=d}e.props.onFrame&&(e.values[o.name]=o.interpolation.getValue())}e.props.onFrame&&e.props.onFrame(e.values),n||(bn.delete(e),e.stop(!0))}return bn.size?Ql(Rl):Pr=!1,Pr},Zg=t=>{bn.has(t)||bn.add(t),Pr||(Pr=!0,Ql(Rl))},Jg=t=>{bn.has(t)&&bn.delete(t)};function Uo(t,e,n){if(typeof t=="function")return t;if(Array.isArray(t))return Uo({range:t,output:e,extrapolate:n});if(jo&&typeof t.output[0]=="string")return jo(t);const r=t,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(l=>l);return l=>{const f=Xg(l,i);return _g(l,i[f],i[f+1],o[f],o[f+1],u,s,a,r.map)}}function _g(t,e,n,r,o,i,s,a,u){let l=u?u(t):t;if(l<e){if(s==="identity")return l;s==="clamp"&&(l=e)}if(l>n){if(a==="identity")return l;a==="clamp"&&(l=n)}return r===o?r:e===n?t<=e?r:o:(e===-1/0?l=-l:n===1/0?l=l-e:l=(l-e)/(n-e),l=i(l),r===-1/0?l=-l:o===1/0?l=l+r:l=l*(o-r)+r,l)}function Xg(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}class Xn extends ws{constructor(e,n,r,o){super(),this.calc=void 0,this.payload=e instanceof ws&&!(e instanceof Xn)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Uo(n,r,o)}getValue(){return this.calc(...this.payload.map(e=>e.getValue()))}updateConfig(e,n,r){this.calc=Uo(e,n,r)}interpolate(e,n,r){return new Xn(this,e,n,r)}}const $n=(t,e,n)=>t&&new Xn(t,e,n),$g={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};function Kl(t,e){"update"in t?e.add(t):t.getChildren().forEach(n=>Kl(n,e))}class Ss extends Pt{constructor(e){var n;super(),n=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(r,o){o===void 0&&(o=!0),n.value=r,o&&n.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){this.animatedStyles.size===0&&Kl(this,this.animatedStyles),this.animatedStyles.forEach(e=>e.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,n,r){return new Xn(this,e,n,r)}}class ev extends ws{constructor(e){super(),this.payload=e.map(n=>new Ss(n))}setValue(e,n){n===void 0&&(n=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((r,o)=>this.payload[o].setValue(r,n)):this.payload.forEach(r=>r.setValue(e,n))}getValue(){return this.payload.map(e=>e.getValue())}interpolate(e,n){return new Xn(this,e,n)}}let tv=0,nv=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=tv++}update(e){if(!e)return this;const n=Es(e),r=n.delay,o=r===void 0?0:r,i=n.to,s=Jn(n,["delay","to"]);if(me.arr(i)||me.fun(i))this.queue.push(We({},s,{delay:o,to:i}));else if(i){let a={};Object.entries(i).forEach(u=>{let l=u[0],f=u[1];const d=We({to:{[l]:f},delay:_n(o,l)},s),h=a[d.delay]&&a[d.delay].to;a[d.delay]=We({},a[d.delay],d,{to:We({},h,d.to)})}),this.queue=Object.values(a)}return this.queue=this.queue.sort((a,u)=>a.delay-u.delay),this.diff(s),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(o=>{let i=o.from,s=i===void 0?{}:i,a=o.to,u=a===void 0?{}:a;me.obj(s)&&(this.merged=We({},s,this.merged)),me.obj(u)&&(this.merged=We({},this.merged,u))});const n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((o,i)=>{let s=o.delay,a=Jn(o,["delay"]);const u=f=>{i===r.length-1&&n===this.guid&&f&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=me.arr(a.to)||me.fun(a.to);s?setTimeout(()=>{n===this.guid&&(l?this.runAsync(a,u):this.diff(a).start(u))},s):l?this.runAsync(a,u):this.diff(a).start(u)})}else me.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),Zg(this);return this}stop(e){return this.listeners.forEach(n=>n(e)),this.listeners=[],this}pause(e){return this.stop(!0),e&&Jg(this),this}runAsync(e,n){var r=this;e.delay;let o=Jn(e,["delay"]);const i=this.local;let s=Promise.resolve(void 0);if(me.arr(o.to))for(let a=0;a<o.to.length;a++){const u=a,l=We({},o,Es(o.to[u]));me.arr(l.config)&&(l.config=l.config[u]),s=s.then(()=>{if(i===this.guid)return new Promise(f=>this.diff(l).start(f))})}else if(me.fun(o.to)){let a=0,u;s=s.then(()=>o.to(l=>{const f=We({},o,Es(l));if(me.arr(f.config)&&(f.config=f.config[a]),a++,i===this.guid)return u=new Promise(d=>this.diff(f).start(d))},function(l){return l===void 0&&(l=!0),r.stop(l)}).then(()=>u))}s.then(n)}diff(e){this.props=We({},this.props,e);let n=this.props,r=n.from,o=r===void 0?{}:r,i=n.to,s=i===void 0?{}:i,a=n.config,u=a===void 0?{}:a,l=n.reverse,f=n.attach,d=n.reset,h=n.immediate;if(l){var g=[s,o];o=g[0],s=g[1]}this.merged=We({},o,this.merged,s),this.hasChanged=!1;let v=f&&f(this);if(this.animations=Object.entries(this.merged).reduce((p,C)=>{let w=C[0],m=C[1],b=p[w]||{};const O=me.num(m),S=me.str(m)&&!m.startsWith("#")&&!/\d/.test(m)&&!Gl[m],y=me.arr(m),E=!O&&!y&&!S;let A=me.und(o[w])?m:o[w],M=O||y||S?m:1,P=_n(u,w);v&&(M=v.animations[w].parent);let x=b.parent,k=b.interpolation,N=No(v?M.getPayload():M),z,Q=m;E&&(Q=jo({range:[0,1],output:[m,m]})(1));let K=k&&k.getValue();const R=!me.und(x)&&b.animatedValues.some(V=>!V.done),T=!me.equ(Q,K),I=!me.equ(Q,b.previous),D=!me.equ(P,b.config);if(d||I&&T||D){if(O||S)x=k=b.parent||new Ss(A);else if(y)x=k=b.parent||new ev(A);else if(E){let V=b.interpolation&&b.interpolation.calc(b.parent.value);V=V!==void 0&&!d?V:A,b.parent?(x=b.parent,x.setValue(0,!1)):x=new Ss(0);const H={output:[V,m]};b.interpolation?(k=b.interpolation,b.interpolation.updateConfig(H)):k=x.interpolate(H)}return N=No(v?M.getPayload():M),z=No(x.getPayload()),d&&!E&&x.setValue(A,!1),this.hasChanged=!0,z.forEach(V=>{V.startPosition=V.value,V.lastPosition=V.value,V.lastVelocity=R?V.lastVelocity:void 0,V.lastTime=R?V.lastTime:void 0,V.startTime=Yl(),V.done=!1,V.animatedStyles.clear()}),_n(h,w)&&x.setValue(E?M:m,!1),We({},p,{[w]:We({},b,{name:w,parent:x,interpolation:k,animatedValues:z,toValues:N,previous:Q,config:P,fromValues:No(x.getValue()),immediate:_n(h,w),initialVelocity:yn(P.velocity,0),clamp:yn(P.clamp,!1),precision:yn(P.precision,.01),tension:yn(P.tension,170),friction:yn(P.friction,26),mass:yn(P.mass,1),duration:P.duration,easing:yn(P.easing,V=>V),decay:P.decay})})}else return T?p:(E&&(x.setValue(1,!1),k.updateConfig({output:[Q,Q]})),x.done=!0,this.hasChanged=!0,We({},p,{[w]:We({},p[w],{previous:Q})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let p in this.animations)this.interpolations[p]=this.animations[p].interpolation,this.values[p]=this.animations[p].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const rv=(t,e)=>{const n=c.useRef(!1),r=c.useRef(),o=me.fun(e),i=c.useMemo(()=>{r.current&&(r.current.map(d=>d.destroy()),r.current=void 0);let f;return[new Array(t).fill().map((d,h)=>{const g=new nv,v=o?_n(e,h,g):e[h];return h===0&&(f=v.ref),g.update(v),f||g.start(),g}),f]},[t]),s=i[0],a=i[1];r.current=s,c.useImperativeHandle(a,()=>({start:()=>Promise.all(r.current.map(f=>new Promise(d=>f.start(d)))),stop:f=>r.current.forEach(d=>d.stop(f)),get controllers(){return r.current}}));const u=c.useMemo(()=>f=>r.current.map((d,h)=>{d.update(o?_n(f,h,d):f[h]),a||d.start()}),[t]);c.useEffect(()=>{n.current?o||u(e):a||r.current.forEach(f=>f.start())}),c.useEffect(()=>(n.current=!0,()=>r.current.forEach(f=>f.destroy())),[]);const l=r.current.map(f=>f.getValues());return o?[l,u,f=>r.current.forEach(d=>d.pause(f))]:l},ov=t=>{const e=me.fun(t),n=rv(1,e?t:[t]),r=n[0],o=n[1],i=n[2];return e?[r[0],o,i]:r};class iv extends Vl{constructor(e){e===void 0&&(e={}),super(),e.transform&&!(e.transform instanceof Pt)&&(e=Cs.transform(e)),this.payload=e}}const Ho={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Mt="[-+]?\\d*\\.?\\d+",zo=Mt+"%";function Fo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const sv=new RegExp("rgb"+Fo(Mt,Mt,Mt)),av=new RegExp("rgba"+Fo(Mt,Mt,Mt,Mt)),lv=new RegExp("hsl"+Fo(Mt,zo,zo)),uv=new RegExp("hsla"+Fo(Mt,zo,zo,Mt)),cv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dv=/^#([0-9a-fA-F]{6})$/,hv=/^#([0-9a-fA-F]{8})$/;function pv(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=dv.exec(t))?parseInt(e[1]+"ff",16)>>>0:Ho.hasOwnProperty(t)?Ho[t]:(e=sv.exec(t))?(er(e[1])<<24|er(e[2])<<16|er(e[3])<<8|255)>>>0:(e=av.exec(t))?(er(e[1])<<24|er(e[2])<<16|er(e[3])<<8|Jl(e[4]))>>>0:(e=cv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=hv.exec(t))?parseInt(e[1],16)>>>0:(e=fv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=lv.exec(t))?(ql(Zl(e[1]),Vo(e[2]),Vo(e[3]))|255)>>>0:(e=uv.exec(t))?(ql(Zl(e[1]),Vo(e[2]),Vo(e[3]))|Jl(e[4]))>>>0:null}function Ls(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ql(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,o=2*n-r,i=Ls(o,r,t+1/3),s=Ls(o,r,t),a=Ls(o,r,t-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function er(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Zl(t){return(parseFloat(t)%360+360)%360/360}function Jl(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Vo(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function _l(t){let e=pv(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,o=(e&65280)>>>8,i=(e&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}const Go=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,vv=new RegExp(`(${Object.keys(Ho).join("|")})`,"g"),mv=t=>{const e=t.output.map(o=>o.replace(gv,_l)).map(o=>o.replace(vv,_l)),n=e[0].match(Go).map(()=>[]);e.forEach(o=>{o.match(Go).forEach((i,s)=>n[s].push(+i))});const r=e[0].match(Go).map((o,i)=>Uo(We({},t,{output:n[i]})));return o=>{let i=0;return e[0].replace(Go,()=>r[i++](o)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(s,a,u,l,f)=>`rgba(${Math.round(a)}, ${Math.round(u)}, ${Math.round(l)}, ${f})`)}};let Mr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const yv=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),bv=["Webkit","Ms","Moz","O"];Mr=Object.keys(Mr).reduce((t,e)=>(bv.forEach(n=>t[yv(n,e)]=t[e]),t),Mr);function Ev(t,e,n){return e==null||typeof e=="boolean"||e===""?"":!n&&typeof e=="number"&&e!==0&&!(Mr.hasOwnProperty(t)&&Mr[t])?e+"px":(""+e).trim()}const Xl={};Wg(t=>new iv(t)),Qg(mv),Gg(Ho),Vg((t,e)=>{if(t.nodeType&&t.setAttribute!==void 0){const o=e.style,i=e.children,s=e.scrollTop,a=e.scrollLeft,u=Jn(e,["style","children","scrollTop","scrollLeft"]),l=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter";s!==void 0&&(t.scrollTop=s),a!==void 0&&(t.scrollLeft=a),i!==void 0&&(t.textContent=i);for(let f in o)if(o.hasOwnProperty(f)){var n=f.indexOf("--")===0,r=Ev(f,o[f],n);f==="float"&&(f="cssFloat"),n?t.style.setProperty(f,r):t.style[f]=r}for(let f in u){const d=l?f:Xl[f]||(Xl[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase()));typeof t.getAttribute(d)<"u"&&t.setAttribute(d,u[f])}return}else return!1},t=>t);const wv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Cv=Ug(qg,!1)(wv);function $l(t,e){return t.map(function(n,r){return n+e[r]})}function eu(t,e){return t.map(function(n,r){return n-e[r]})}function As(t){return Math.hypot.apply(Math,t)}function Sv(t,e,n){var r=As(e),o=r===0?0:1/r,i=n===0?0:1/n,s=i*r,a=e.map(function(f){return i*f}),u=e.map(function(f){return o*f}),l=As(t);return{velocities:a,velocity:s,distance:l,direction:u}}function xs(t){return Math.sign?Math.sign(t):+(t>0)-+(t<0)||+t}function Lv(t,e,n){return Math.max(e,Math.min(t,n))}function Av(t,e){return Math.pow(t,e*5)}function tu(t,e,n){return e===0||Math.abs(e)===1/0?Av(t,n):t*e*n/(e+n*t)}function kr(t,e,n,r){return r===void 0&&(r=.15),r===0?Lv(t,e,n):t<e?-tu(e-t,n-e,r)+e:t>n?+tu(t-n,n-e,r)+n:t}function nu(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)}}function xv(t,e,n){return e&&nu(t.prototype,e),n&&nu(t,n),t}function ut(){return ut=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ut.apply(this,arguments)}function ru(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Ov(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Qo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pv(t,e){if(t){if(typeof t=="string")return ou(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ou(t,e)}}function ou(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yo(t,e){var n;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=Pv(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=t[Symbol.iterator](),n.next.bind(n)}function iu(){}function su(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.length===0?iu:e.length===1?e[0]:function(){for(var r,o=Yo(e),i;!(i=o()).done;){var s=i.value;r=s.apply(this,arguments)||r}return r}}function nn(t,e){if(t===void 0){if(e===void 0)throw new Error("Must define fallback value if undefined is expected");t=e}return Array.isArray(t)?t:[t,t]}function Wo(t){if(typeof t=="function"){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.apply(void 0,n)}else return t}function Os(t,e){t===void 0&&(t={});for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,t[s],s,t);break;case"object":n[s]=Os(t[s],a);break;case"boolean":a&&(n[s]=t[s]);break}}return n}var Mv=180,kv=.15,Iv=.5,Dv=60,Tv={threshold:function(e){return e===void 0&&(e=0),nn(e)},rubberband:function(e){switch(e===void 0&&(e=0),e){case!0:return nn(kv);case!1:return nn(0);default:return nn(e)}},enabled:function(e){return e===void 0&&(e=!0),e},triggerAllEvents:function(e){return e===void 0&&(e=!1),e},initial:function(e){return e===void 0&&(e=0),typeof e=="function"?e:nn(e)}},au=ut({},Tv,{axis:!0,lockDirection:function(e){return e===void 0&&(e=!1),e},bounds:function(e){if(e===void 0&&(e={}),typeof e=="function")return function(d){return au.bounds(e(d))};var n=e,r=n.left,o=r===void 0?-1/0:r,i=n.right,s=i===void 0?1/0:i,a=n.top,u=a===void 0?-1/0:a,l=n.bottom,f=l===void 0?1/0:l;return[[o,s],[u,f]]}}),Bv=typeof window<"u"&&window.document&&window.document.createElement,Nv={enabled:function(e){return e===void 0&&(e=!0),e},domTarget:!0,window:function(t){function e(n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return t===void 0&&(t=Bv?window:void 0),t}),eventOptions:function(e){var n=e===void 0?{}:e,r=n.passive,o=r===void 0?!0:r,i=n.capture,s=i===void 0?!1:i;return{passive:o,capture:s}}},jv=ut({},au,{threshold:function(e,n,r){var o=r.filterTaps,i=o===void 0?!1:o,s=r.lockDirection,a=s===void 0?!1:s,u=r.axis,l=u===void 0?void 0:u,f=nn(e,i?3:a||l?1:0);return this.filterTaps=i||f[0]+f[1]>0,f},swipeVelocity:function(e){return e===void 0&&(e=Iv),nn(e)},swipeDistance:function(e){return e===void 0&&(e=Dv),nn(e)},delay:function(e){switch(e===void 0&&(e=0),e){case!0:return Mv;case!1:return 0;default:return e}}});function Uv(t){return t===void 0&&(t={}),Os(t,Nv)}function Hv(t){return t===void 0&&(t={}),Os(t,jv)}function zv(t){var e=t.domTarget,n=t.eventOptions,r=t.window,o=t.enabled,i=Ov(t,["domTarget","eventOptions","window","enabled"]),s=Uv({domTarget:e,eventOptions:n,window:r,enabled:o});return s.drag=Hv(i),s}function Ir(t){return ut({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:iu,canceled:!1,memo:void 0,args:void 0},t)}function lu(){var t={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},e=Ir({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),n=Ir({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),r=Ir({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),o=Ir({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),i=Ir({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:t,drag:e,pinch:n,wheel:r,move:o,scroll:i}}var En=new Map,Fv=function(){function t(n,r){var o=this;r===void 0&&(r=[]),this.controller=n,this.args=r,this.debounced=!0,this.setTimeout=function(i,s){var a;s===void 0&&(s=140),clearTimeout(o.controller.timeouts[o.stateKey]);for(var u=arguments.length,l=new Array(u>2?u-2:0),f=2;f<u;f++)l[f-2]=arguments[f];o.controller.timeouts[o.stateKey]=(a=window).setTimeout.apply(a,[i,s].concat(l))},this.clearTimeout=function(){clearTimeout(o.controller.timeouts[o.stateKey])},this.fireGestureHandler=function(i){if(i===void 0&&(i=!1),o.state._blocked)return o.debounced||(o.state._active=!1,o.clean()),null;if(!i&&!o.state.intentional&&!o.config.triggerAllEvents)return null;if(o.state.intentional){var s=o.state.active,a=o.state._active;o.state.active=a,o.state.first=a&&!s,o.state.last=s&&!a,o.controller.state.shared[o.ingKey]=a}var u=ut({},o.controller.state.shared,o.state,o.mapStateValues(o.state)),l=o.handler(u);return o.state.memo=l!==void 0?l:o.state.memo,o.state._active||o.clean(),u}}var e=t.prototype;return e.updateSharedState=function(r){Object.assign(this.controller.state.shared,r)},e.updateGestureState=function(r){Object.assign(this.state,r)},e.checkIntentionality=function(r,o){return{_intentional:r,_blocked:!1}},e.getMovement=function(r){var o=this.config,i=o.initial,s=o.bounds,a=o.rubberband,u=o.threshold,l=this.state,f=l._bounds,d=l._initial,h=l._active,g=l._intentional,v=l.lastOffset,p=l.movement,C=this.getInternalMovement(r,this.state),w=g[0]===!1?uu(C[0],u[0]):g[0],m=g[1]===!1?uu(C[1],u[1]):g[1],b=this.checkIntentionality([w,m],C);if(b._blocked)return ut({},b,{_movement:C,delta:[0,0]});var O=b._intentional,S=C,y,E;if(O[0]!==!1&&g[0]===!1&&(E=Wo(i,this.state),y=Wo(s,this.state),d[0]=E[0],f[0]=y[0]),O[1]!==!1&&g[1]===!1){var A,M;E=(A=E)!=null?A:Wo(i,this.state),y=(M=y)!=null?M:Wo(s,this.state),d[1]=E[1],f[1]=y[1]}var P=[O[0]!==!1?C[0]-O[0]:d[0],O[1]!==!1?C[1]-O[1]:d[1]],x=$l(P,v),k=h?a:[0,0];return P=cu(f,$l(P,d),k),ut({},b,{intentional:O[0]!==!1||O[1]!==!1,_initial:d,_movement:S,movement:P,values:r,offset:cu(f,x,k),delta:eu(P,p)})},e.clean=function(){this.clearTimeout()},xv(t,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),t}();function uu(t,e){return Math.abs(t)>=e?xs(t)*e:!1}function cu(t,e,n){var r=e[0],o=e[1],i=n[0],s=n[1],a=t[0],u=a[0],l=a[1],f=t[1],d=f[0],h=f[1];return[kr(r,u,l,i),kr(o,d,h,s)]}function Ps(t,e,n){var r=t.state,o=t.args,i=e.timeStamp,s=e.type,a=r.values,u=n?0:i-r.startTime;return{_lastEventType:s,event:e,timeStamp:i,elapsedTime:u,args:o,previous:a}}function Vv(t,e,n){var r=t.state.offset,o=n.timeStamp;return ut({},lu()[t.stateKey],{_active:!0,values:e,initial:e,offset:r,lastOffset:r,startTime:o})}function Gv(t,e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.call.apply(t,[this,ut({},e,{event:n})].concat(o))}}var Qv=function(e){var n=this;this.classes=e,this.bind=function(){for(var r={},o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];for(var a=Yo(n.classes),u;!(u=a()).done;){var l=u.value;new l(n,i).addBindings(r)}for(var f=0,d=Object.entries(n.nativeRefs);f<d.length;f++){var h=d[f],g=h[0],v=h[1];Ms(r,g,Gv(v,ut({},n.state.shared,{args:i})))}return n.config.domTarget?Kv(n,r):qv(n,r)},this.effect=function(){return n.config.domTarget&&n.bind(),n.clean},this.clean=function(){var r=du(n.config),o=n.config.eventOptions;r&&Dr(r,fu(n.domListeners),o),Object.values(n.timeouts).forEach(clearTimeout),Yv(n)},this.state=lu(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function Yv(t){var e=t.config,n=e.window,r=e.eventOptions,o=t.windowListeners;if(n){for(var i in o){var s=o[i];Dr(n,s,r)}t.windowListeners={}}}function Wv(t,e){var n=t.config,r=t.windowListeners;n.window&&(Dr(n.window,r[e],n.eventOptions),delete r[e])}function Rv(t,e,n){var r=t.config,o=t.windowListeners;n===void 0&&(n=[]),r.window&&(Dr(r.window,o[e],r.eventOptions),hu(r.window,o[e]=n,r.eventOptions))}function Kv(t,e){var n=t.config,r=t.domListeners,o=du(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;Dr(o,fu(r),i);for(var s=0,a=Object.entries(e);s<a.length;s++){var u=a[s],l=u[0],f=u[1],d=l.slice(2).toLowerCase();r.push([d,su.apply(void 0,f)])}hu(o,r,i)}function qv(t,e){for(var n=t.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(e);i<s.length;i++){var a=s[i],u=a[0],l=a[1],f=Array.isArray(l)?l:[l],d=u+o;r[d]=su.apply(void 0,f)}return r}function fu(t){return t===void 0&&(t=[]),t.splice(0,t.length)}function du(t){var e=t.domTarget;return e&&"current"in e?e.current:e}function Ms(t,e,n){t[e]||(t[e]=[]),t[e].push(n)}function hu(t,e,n){e===void 0&&(e=[]),n===void 0&&(n={});for(var r=Yo(e),o;!(o=r()).done;){var i=o.value,s=i[0],a=i[1];t.addEventListener(s,a,n)}}function Dr(t,e,n){e===void 0&&(e=[]),n===void 0&&(n={});for(var r=Yo(e),o;!(o=r()).done;){var i=o.value,s=i[0],a=i[1];t.removeEventListener(s,a,n)}}function Zv(t,e,n){n===void 0&&(n={});var r=_v(t),o=c.useMemo(function(){return new Qv(r)},[]);return o.config=e,o.handlers=t,o.nativeRefs=n,c.useEffect(o.effect,[]),o.config.domTarget?Jv:o.bind}function Jv(){}function _v(t){var e=new Set;return t.drag&&e.add(En.get("drag")),t.wheel&&e.add(En.get("wheel")),t.scroll&&e.add(En.get("scroll")),t.move&&e.add(En.get("move")),t.pinch&&e.add(En.get("pinch")),t.hover&&e.add(En.get("hover")),e}var Xv=function(t){ru(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.getInternalMovement=function(o,i){return eu(o,i.initial)},n.checkIntentionality=function(o,i){if(o[0]===!1&&o[1]===!1)return{_intentional:o,axis:this.state.axis};var s=i.map(Math.abs),a=s[0],u=s[1],l=this.state.axis||(a>u?"x":a<u?"y":void 0);return!this.config.axis&&!this.config.lockDirection?{_intentional:o,_blocked:!1,axis:l}:l?this.config.axis&&l!==this.config.axis?{_intentional:o,_blocked:!0,axis:l}:(o[l==="x"?1:0]=!1,{_intentional:o,_blocked:!1,axis:l}):{_intentional:[!1,!1],_blocked:!1,axis:l}},n.getKinematics=function(o,i){var s=this.getMovement(o);if(!s._blocked){var a=i.timeStamp-this.state.timeStamp;Object.assign(s,Sv(s.movement,s.delta,a))}return s},n.mapStateValues=function(o){return{xy:o.values,vxvy:o.velocities}},e}(Fv);function pu(t){if("touches"in t){var e=t.targetTouches,n=t.changedTouches;return e.length>0?e:n}return null}function gu(t){var e="buttons"in t?t.buttons:0,n=pu(t),r=n&&n.length||0,o=r>0||e>0,i=t.shiftKey,s=t.altKey,a=t.metaKey,u=t.ctrlKey;return{touches:r,down:o,buttons:e,shiftKey:i,altKey:s,metaKey:a,ctrlKey:u}}function vu(t){var e=pu(t),n=e?e[0]:t,r=n.clientX,o=n.clientY;return[r,o]}var $v=3,em=220,tm=function(t){ru(e,t);function e(){var r;return r=t.apply(this,arguments)||this,r.ingKey="dragging",r.stateKey="drag",r.onDragStart=function(o){!r.enabled||r.state._active||(Rv(r.controller,r.stateKey,[["pointermove",r.onDragChange],["pointerup",r.onDragEnd],["pointercancel",r.onDragEnd]]),r.updateGestureState({_pointerId:o.pointerId}),r.config.delay>0?(r.state._delayedEvent=!0,"persist"in o&&typeof o.persist=="function"&&o.persist(),r.setTimeout(r.startDrag.bind(Qo(r)),r.config.delay,o)):r.startDrag(o))},r.onDragChange=function(o){if(!r.state.canceled&&o.pointerId===r.state._pointerId){if(!r.state._active){r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(o));return}var i=gu(o);if(!i.down){r.onDragEnd(o);return}r.updateSharedState(i);var s=vu(o),a=r.getKinematics(s,o),u=Ps(Qo(r),o),l=r.state._isTap,f=As(a._movement);l&&f>=$v&&(l=!1),r.updateGestureState(ut({},u,a,{_isTap:l})),r.fireGestureHandler()}},r.onDragEnd=function(o){if(o.pointerId===r.state._pointerId){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var i=r.state._isTap,s=r.state.velocities,a=s[0],u=s[1],l=r.state.movement,f=l[0],d=l[1],h=r.state._intentional,g=h[0],v=h[1],p=r.config.swipeVelocity,C=p[0],w=p[1],m=r.config.swipeDistance,b=m[0],O=m[1],S=ut({},Ps(Qo(r),o),r.getMovement(r.state.values)),y=[0,0];S.elapsedTime<em&&(g!==!1&&Math.abs(a)>C&&Math.abs(f)>b&&(y[0]=xs(a)),v!==!1&&Math.abs(u)>w&&Math.abs(d)>O&&(y[1]=xs(u))),r.updateGestureState(ut({},S,{tap:i,swipe:y})),r.fireGestureHandler(i===!0)}},r.clean=function(){t.prototype.clean.call(Qo(r)),r.state._delayedEvent=!1,Wv(r.controller,r.stateKey)},r.onCancel=function(){r.state.canceled||(r.updateGestureState({canceled:!0}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return r.fireGestureHandler()}))},r.onClick=function(o){r.state._isTap||o.stopPropagation()},r}var n=e.prototype;return n.startDrag=function(o){var i=vu(o);this.updateSharedState(gu(o)),this.updateGestureState(ut({},Vv(this,i,o),Ps(this,o,!0),{_pointerId:o.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(i)),this.fireGestureHandler()},n.addBindings=function(o){if(Ms(o,"onPointerDown",this.onDragStart),this.config.filterTaps){var i=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";Ms(o,i,this.onClick)}},e}(Xv);function nm(t,e){var n,r=[],o,i=!1;function s(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return i&&n===this&&e(u,r)||(o=t.apply(this,u),i=!0,n=this,r=u),o}return s}function Ro(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,o;if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ro(t[r],e[r]))return!1;return!0}var i;if(typeof Map=="function"&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;for(i=t.entries();!(r=i.next()).done;)if(!Ro(r.value[1],e.get(r.value[0])))return!1;return!0}if(typeof Set=="function"&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(r=i.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;if(typeof Element<"u"&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!(o[r]==="_owner"&&t.$$typeof)&&!Ro(t[o[r]],e[o[r]]))return!1;return!0}return t!==t&&e!==e}function rm(t,e){try{return Ro(t,e)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}function om(t,e){e===void 0&&(e={}),En.set("drag",tm);var n=c.useRef();return n.current||(n.current=nm(zv,rm)),Zv({drag:t},n.current(e))}/*!
|
|
41
41
|
* tabbable 5.3.3
|
|
42
42
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
43
|
-
*/var mu=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ko=mu.join(","),yu=typeof Element>"u",
|
|
43
|
+
*/var mu=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ko=mu.join(","),yu=typeof Element>"u",wn=yu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ks=!yu&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},bu=function(e,n,r){var o=Array.prototype.slice.apply(e.querySelectorAll(Ko));return n&&wn.call(e,Ko)&&o.unshift(e),o=o.filter(r),o},Eu=function t(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),u=a.length?a:s.children,l=t(u,!0,r);r.flatten?o.push.apply(o,l):o.push({scope:s,candidates:l})}else{var f=wn.call(s,Ko);f&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var d=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),h=!r.shadowRootFilter||r.shadowRootFilter(s);if(d&&h){var g=t(d===!0?s.children:d.children,!0,r);r.flatten?o.push.apply(o,g):o.push({scope:s,candidates:g})}else i.unshift.apply(i,s.children)}}return o},wu=function(e,n){return e.tabIndex<0&&(n||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},im=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Cu=function(e){return e.tagName==="INPUT"},sm=function(e){return Cu(e)&&e.type==="hidden"},am=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},lm=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},um=function(e){if(!e.name)return!0;var n=e.form||ks(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=lm(o,e.form);return!i||i===e},cm=function(e){return Cu(e)&&e.type==="radio"},fm=function(e){return cm(e)&&!um(e)},Su=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},dm=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=wn.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(wn.call(s,"details:not([open]) *"))return!0;var a=ks(e).host,u=(a==null?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(!r||r==="full"){if(typeof o=="function"){for(var l=e;e;){var f=e.parentElement,d=ks(e);if(f&&!f.shadowRoot&&o(f)===!0)return Su(e);e.assignedSlot?e=e.assignedSlot:!f&&d!==e.ownerDocument?e=d.host:e=f}e=l}if(u)return!e.getClientRects().length}else if(r==="non-zero-area")return Su(e);return!1},hm=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return wn.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},qo=function(e,n){return!(n.disabled||sm(n)||dm(n,e)||am(n)||hm(n))},Is=function(e,n){return!(fm(n)||wu(n)<0||!qo(e,n))},pm=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},gm=function t(e){var n=[],r=[];return e.forEach(function(o,i){var s=!!o.scope,a=s?o.scope:o,u=wu(a,s),l=s?t(o.candidates):a;u===0?s?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:u,item:o,isScope:s,content:l})}),r.sort(im).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},vm=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Eu([e],n.includeContainer,{filter:Is.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:pm}):r=bu(e,n.includeContainer,Is.bind(null,n)),gm(r)},mm=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Eu([e],n.includeContainer,{filter:qo.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=bu(e,n.includeContainer,qo.bind(null,n)),r},Zo=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return wn.call(e,Ko)===!1?!1:Is(n,e)},ym=mu.concat("iframe").join(","),Ds=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return wn.call(e,ym)===!1?!1:qo(n,e)};/*!
|
|
44
44
|
* focus-trap 6.9.4
|
|
45
45
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
46
|
-
*/function Lu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Au(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lu(Object(n),!0).forEach(function(r){bm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xu=function(){var t=[];return{activateTrap:function(n){if(t.length>0){var r=t[t.length-1];r!==n&&r.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}}}(),Em=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},wm=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Cm=function(e){return e.key==="Tab"||e.keyCode===9},Ou=function(e){return setTimeout(e,0)},Pu=function(e,n){var r=-1;return e.every(function(o,i){return n(o)?(r=i,!1):!0}),r},Dr=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,r):e},Jo=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Sm=function(e,n){var r=(n==null?void 0:n.document)||document,o=Au({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(y,E,A){return y&&y[E]!==void 0?y[E]:o[A||E]},u=function(y){return i.containerGroups.findIndex(function(E){var A=E.container,M=E.tabbableNodes;return A.contains(y)||M.find(function(P){return P===y})})},l=function(y){var E=o[y];if(typeof E=="function"){for(var A=arguments.length,M=new Array(A>1?A-1:0),P=1;P<A;P++)M[P-1]=arguments[P];E=E.apply(void 0,M)}if(E===!0&&(E=void 0),!E){if(E===void 0||E===!1)return E;throw new Error("`".concat(y,"` was specified but was not a node, or did not return a node"))}var x=E;if(typeof E=="string"&&(x=r.querySelector(E),!x))throw new Error("`".concat(y,"` as selector refers to no known node"));return x},f=function(){var y=l("initialFocus");if(y===!1)return!1;if(y===void 0)if(u(r.activeElement)>=0)y=r.activeElement;else{var E=i.tabbableGroups[0],A=E&&E.firstTabbableNode;y=A||l("fallbackFocus")}if(!y)throw new Error("Your focus-trap needs to have at least one focusable element");return y},d=function(){if(i.containerGroups=i.containers.map(function(y){var E=vm(y,o.tabbableOptions),A=mm(y,o.tabbableOptions);return{container:y,tabbableNodes:E,focusableNodes:A,firstTabbableNode:E.length>0?E[0]:null,lastTabbableNode:E.length>0?E[E.length-1]:null,nextTabbableNode:function(P){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=A.findIndex(function(N){return N===P});if(!(k<0))return x?A.slice(k+1).find(function(N){return Zo(N,o.tabbableOptions)}):A.slice(0,k).reverse().find(function(N){return Zo(N,o.tabbableOptions)})}}}),i.tabbableGroups=i.containerGroups.filter(function(y){return y.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function S(y){if(y!==!1&&y!==r.activeElement){if(!y||!y.focus){S(f());return}y.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=y,Em(y)&&y.select()}},g=function(y){var E=l("setReturnFocus",y);return E||(E===!1?!1:y)},v=function(y){var E=Jo(y);if(!(u(E)>=0)){if(Dr(o.clickOutsideDeactivates,y)){s.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Ds(E,o.tabbableOptions)});return}Dr(o.allowOutsideClick,y)||y.preventDefault()}},p=function(y){var E=Jo(y),A=u(E)>=0;A||E instanceof Document?A&&(i.mostRecentlyFocusedNode=E):(y.stopImmediatePropagation(),h(i.mostRecentlyFocusedNode||f()))},C=function(y){var E=Jo(y);d();var A=null;if(i.tabbableGroups.length>0){var M=u(E),P=M>=0?i.containerGroups[M]:void 0;if(M<0)y.shiftKey?A=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:A=i.tabbableGroups[0].firstTabbableNode;else if(y.shiftKey){var x=Pu(i.tabbableGroups,function(G){var R=G.firstTabbableNode;return E===R});if(x<0&&(P.container===E||Ds(E,o.tabbableOptions)&&!Zo(E,o.tabbableOptions)&&!P.nextTabbableNode(E,!1))&&(x=M),x>=0){var k=x===0?i.tabbableGroups.length-1:x-1,N=i.tabbableGroups[k];A=N.lastTabbableNode}}else{var z=Pu(i.tabbableGroups,function(G){var R=G.lastTabbableNode;return E===R});if(z<0&&(P.container===E||Ds(E,o.tabbableOptions)&&!Zo(E,o.tabbableOptions)&&!P.nextTabbableNode(E))&&(z=M),z>=0){var Q=z===i.tabbableGroups.length-1?0:z+1,K=i.tabbableGroups[Q];A=K.firstTabbableNode}}}else A=l("fallbackFocus");A&&(y.preventDefault(),h(A))},w=function(y){if(wm(y)&&Dr(o.escapeDeactivates,y)!==!1){y.preventDefault(),s.deactivate();return}if(Cm(y)){C(y);return}},m=function(y){var E=Jo(y);u(E)>=0||Dr(o.clickOutsideDeactivates,y)||Dr(o.allowOutsideClick,y)||(y.preventDefault(),y.stopImmediatePropagation())},b=function(){if(i.active)return xu.activateTrap(s),i.delayInitialFocusTimer=o.delayInitialFocus?Ou(function(){h(f())}):h(f()),r.addEventListener("focusin",p,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",m,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),s},O=function(){if(i.active)return r.removeEventListener("focusin",p,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",m,!0),r.removeEventListener("keydown",w,!0),s};return s={get active(){return i.active},get paused(){return i.paused},activate:function(y){if(i.active)return this;var E=a(y,"onActivate"),A=a(y,"onPostActivate"),M=a(y,"checkCanFocusTrap");M||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,E&&E();var P=function(){M&&d(),b(),A&&A()};return M?(M(i.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(y){if(!i.active)return this;var E=Au({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},y);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,O(),i.active=!1,i.paused=!1,xu.deactivateTrap(s);var A=a(E,"onDeactivate"),M=a(E,"onPostDeactivate"),P=a(E,"checkCanReturnFocus"),x=a(E,"returnFocus","returnFocusOnDeactivate");A&&A();var k=function(){Ou(function(){x&&h(g(i.nodeFocusedBeforeActivation)),M&&M()})};return x&&P?(P(g(i.nodeFocusedBeforeActivation)).then(k,k),this):(k(),this)},pause:function(){return i.paused||!i.active?this:(i.paused=!0,O(),this)},unpause:function(){return!i.paused||!i.active?this:(i.paused=!1,d(),b(),this)},updateContainerElements:function(y){var E=[].concat(y).filter(Boolean);return i.containers=E.map(function(A){return typeof A=="string"?r.querySelector(A):A}),i.active&&d(),this}},s.updateContainerElements(e),s};function Lm(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var Ts=!1;if(typeof window<"u"){var Mu={get passive(){Ts=!0}};window.addEventListener("testPassive",null,Mu),window.removeEventListener("testPassive",null,Mu)}var ku=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),rn=[],_o=!1,Iu=-1,Tr=void 0,Br=void 0,Du=function(e){return rn.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(e))})},Xo=function(e){var n=e||window.event;return Du(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},Am=function(e){if(Br===void 0){var n=!!e&&e.reserveScrollBarGap===!0,r=window.innerWidth-document.documentElement.clientWidth;n&&r>0&&(Br=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}Tr===void 0&&(Tr=document.body.style.overflow,document.body.style.overflow="hidden")},xm=function(){Br!==void 0&&(document.body.style.paddingRight=Br,Br=void 0),Tr!==void 0&&(document.body.style.overflow=Tr,Tr=void 0)},Om=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},Pm=function(e,n){var r=e.targetTouches[0].clientY-Iu;return Du(e.target)?!1:n&&n.scrollTop===0&&r>0||Om(n)&&r<0?Xo(e):(e.stopPropagation(),!0)},Mm=function(e,n){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!rn.some(function(o){return o.targetElement===e})){var r={targetElement:e,options:n||{}};rn=[].concat(Lm(rn),[r]),ku?(e.ontouchstart=function(o){o.targetTouches.length===1&&(Iu=o.targetTouches[0].clientY)},e.ontouchmove=function(o){o.targetTouches.length===1&&Pm(o,e)},_o||(document.addEventListener("touchmove",Xo,Ts?{passive:!1}:void 0),_o=!0)):Am(n)}},km=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}rn=rn.filter(function(n){return n.targetElement!==e}),ku?(e.ontouchstart=null,e.ontouchmove=null,_o&&rn.length===0&&(document.removeEventListener("touchmove",Xo,Ts?{passive:!1}:void 0),_o=!1)):rn.length||xm()},wn=[],Im=function(){return wn.some(function(t){return t.activeTargets.length>0})},Dm=function(){return wn.some(function(t){return t.skippedTargets.length>0})},Tu="ResizeObserver loop completed with undelivered notifications.",Tm=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Tu}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Tu),window.dispatchEvent(t)},Nr;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Nr||(Nr={}));var Cn=function(t){return Object.freeze(t)},Bm=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Cn(this)}return t}(),Bu=function(){function t(e,n,r,o){return this.x=e,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Cn(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,o=e.top,i=e.right,s=e.bottom,a=e.left,u=e.width,l=e.height;return{x:n,y:r,top:o,right:i,bottom:s,left:a,width:u,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Bs=function(t){return t instanceof SVGElement&&"getBBox"in t},Nu=function(t){if(Bs(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var o=t,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||t.getClientRects().length)},ju=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Nm=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},jr=typeof window<"u"?window:{},$o=new WeakMap,Uu=/auto|scroll/,jm=/^tb|vertical/,Um=/msie|trident/i.test(jr.navigator&&jr.navigator.userAgent),Nt=function(t){return parseFloat(t||"0")},er=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Bm((n?e:t)||0,(n?t:e)||0)},Hu=Cn({devicePixelContentBoxSize:er(),borderBoxSize:er(),contentBoxSize:er(),contentRect:new Bu(0,0,0,0)}),zu=function(t,e){if(e===void 0&&(e=!1),$o.has(t)&&!e)return $o.get(t);if(Nu(t))return $o.set(t,Hu),Hu;var n=getComputedStyle(t),r=Bs(t)&&t.ownerSVGElement&&t.getBBox(),o=!Um&&n.boxSizing==="border-box",i=jm.test(n.writingMode||""),s=!r&&Uu.test(n.overflowY||""),a=!r&&Uu.test(n.overflowX||""),u=r?0:Nt(n.paddingTop),l=r?0:Nt(n.paddingRight),f=r?0:Nt(n.paddingBottom),d=r?0:Nt(n.paddingLeft),h=r?0:Nt(n.borderTopWidth),g=r?0:Nt(n.borderRightWidth),v=r?0:Nt(n.borderBottomWidth),p=r?0:Nt(n.borderLeftWidth),C=d+l,w=u+f,m=p+g,b=h+v,O=a?t.offsetHeight-b-t.clientHeight:0,S=s?t.offsetWidth-m-t.clientWidth:0,y=o?C+m:0,E=o?w+b:0,A=r?r.width:Nt(n.width)-y-S,M=r?r.height:Nt(n.height)-E-O,P=A+C+S+m,x=M+w+O+b,k=Cn({devicePixelContentBoxSize:er(Math.round(A*devicePixelRatio),Math.round(M*devicePixelRatio),i),borderBoxSize:er(P,x,i),contentBoxSize:er(A,M,i),contentRect:new Bu(d,u,A,M)});return $o.set(t,k),k},Fu=function(t,e,n){var r=zu(t,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case Nr.DEVICE_PIXEL_CONTENT_BOX:return s;case Nr.BORDER_BOX:return o;default:return i}},Hm=function(){function t(e){var n=zu(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Cn([n.borderBoxSize]),this.contentBoxSize=Cn([n.contentBoxSize]),this.devicePixelContentBoxSize=Cn([n.devicePixelContentBoxSize])}return t}(),Vu=function(t){if(Nu(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},zm=function(){var t=1/0,e=[];wn.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(l){var f=new Hm(l.target),d=Vu(l.target);a.push(f),l.lastReportedSize=Fu(l.target,l.observedBox),d<t&&(t=d)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var o=r[n];o()}return t},Gu=function(t){wn.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Vu(o.target)>t?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Fm=function(){var t=0;for(Gu(t);Im();)t=zm(),Gu(t);return Dm()&&Tm(),t>0},Ns,Qu=[],Vm=function(){return Qu.splice(0).forEach(function(t){return t()})},Gm=function(t){if(!Ns){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Vm()}).observe(n,r),Ns=function(){n.textContent="".concat(e?e--:e++)}}Qu.push(t),Ns()},Qm=function(t){Gm(function(){requestAnimationFrame(t)})},ei=0,Ym=function(){return!!ei},Wm=250,Rm={attributes:!0,characterData:!0,childList:!0,subtree:!0},Yu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Wu=function(t){return t===void 0&&(t=0),Date.now()+t},js=!1,Km=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Wm),!js){js=!0;var r=Wu(e);Qm(function(){var o=!1;try{o=Fm()}finally{if(js=!1,e=r-Wu(),!Ym())return;o?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Rm)};document.body?n():jr.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Yu.forEach(function(n){return jr.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Yu.forEach(function(n){return jr.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Us=new Km,Ru=function(t){!ei&&t>0&&Us.start(),ei+=t,!ei&&Us.stop()},qm=function(t){return!Bs(t)&&!Nm(t)&&getComputedStyle(t).display==="inline"},Zm=function(){function t(e,n){this.target=e,this.observedBox=n||Nr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Fu(this.target,this.observedBox,!0);return qm(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Jm=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),ti=new WeakMap,Ku=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},ni=function(){function t(){}return t.connect=function(e,n){var r=new Jm(e,n);ti.set(e,r)},t.observe=function(e,n,r){var o=ti.get(e),i=o.observationTargets.length===0;Ku(o.observationTargets,n)<0&&(i&&wn.push(o),o.observationTargets.push(new Zm(n,r&&r.box)),Ru(1),Us.schedule())},t.unobserve=function(e,n){var r=ti.get(e),o=Ku(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&wn.splice(wn.indexOf(r),1),r.observationTargets.splice(o,1),Ru(-1))},t.disconnect=function(e){var n=this,r=ti.get(e);r.observationTargets.slice().forEach(function(o){return n.unobserve(e,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),_m=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ni.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ju(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ni.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ju(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ni.unobserve(this,e)},t.prototype.disconnect=function(){ni.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();function it(){return it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},it.apply(this,arguments)}function ri(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}var Ur=typeof window<"u"?c.useLayoutEffect:c.useEffect;function Hr(t,e,n){return e=(e=+e)==e?e:0,n=(n=+n)==n?n:0,(t=+t)==t&&(t=(t=t<=n?t:n)>=e?t:e),t}function oi(t){var e=Math.round(t);if(Number.isNaN(t))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return e}var Xm={box:"border-box"};function Hs(t,e){var n=e.label,r=e.enabled,o=e.resizeSourceRef,i=c.useState(0),s=i[0],a=i[1];c.useDebugValue(n+": "+s);var u=c.useCallback(function(l){a(l[0].borderBoxSize[0].blockSize),o.current="element"},[o]);return Ur(function(){if(t.current&&r){var l=new _m(u);return l.observe(t.current,Xm),function(){l.disconnect()}}},[t,u,r]),r?s:0}function st(t){return t===void 0&&(t=1e3),new Promise(function(e){return setTimeout(e,t)})}var qu={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Zu={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},$m=xg({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:it({},qu,Zu)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:it({},qu,Zu)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:it({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[Og({y:function(t,e){return e.payload.y},velocity:function(t,e){return e.payload.velocity},snapSource:function(t,e){var n=e.payload.source;return n===void 0?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(t,e){},onSnapCancel:function(t,e){},onResizeCancel:function(t,e){},onCloseCancel:function(t,e){},onOpenEnd:function(t,e){},onSnapEnd:function(t,e){},onRezizeEnd:function(t,e){}},services:{onSnapStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onOpenStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onCloseStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onResizeStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onSnapEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onOpenEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onCloseEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onResizeEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},renderVisuallyHidden:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},activate:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},deactivate:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},openSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},openImmediately:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},snapSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},resizeSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},closeSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}}},guards:{initiallyClosed:function(t){return t.initialState==="CLOSED"},initiallyOpen:function(t){return t.initialState==="OPEN"}}}),ey=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],ty=["velocity"],ny=["onRest","config"],Ju=$g.default,ry=Ju.tension,ii=Ju.friction,oy=c.forwardRef(function(t,e){var n=t.children,r=t.sibling,o=t.className,i=t.footer,s=t.header,a=t.open,u=t.initialState,l=t.lastSnapRef,f=t.initialFocusRef,d=t.onDismiss,h=t.maxHeight,g=t.defaultSnap,v=g===void 0?sy:g,p=t.snapPoints,C=p===void 0?ay:p,w=t.blocking,m=w===void 0||w,b=t.scrollLocking,O=b===void 0||b,S=t.style,y=t.onSpringStart,E=t.onSpringCancel,A=t.onSpringEnd,M=t.reserveScrollBarGap,P=M===void 0?m:M,x=t.expandOnContentDrag,k=x!==void 0&&x,N=ri(t,ey),z=function(){var F=c.useState(!1),ie=F[0],J=F[1],be=c.useState({}),Te=be[0],Ae=be[1],Be=c.useCallback(function(De){return Ae(function(He){var ge;return it({},He,((ge={})[De]=!1,ge))}),function(){Ae(function(He){var ge;return it({},He,((ge={})[De]=!0,ge))})}},[]);return c.useEffect(function(){var De=Object.values(Te);De.length!==0&&De.every(Boolean)&&J(!0)},[Te]),{ready:ie,registerReady:Be}}(),Q=z.ready,K=z.registerReady,G=c.useRef(!1),R=c.useRef(y),T=c.useRef(E),I=c.useRef(A);c.useEffect(function(){R.current=y,T.current=E,I.current=A},[E,y,A]);var D,V,H=ov(function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}}),Y=H[0],ne=H[1],U=c.useRef(null),ee=c.useRef(null),le=c.useRef(null),Z=c.useRef(null),B=c.useRef(null),q=c.useRef(null),_=c.useRef(0),re=c.useRef(),pe=c.useRef(!1),oe=(D=c.useMemo(function(){return typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)"):null},[]),V=c.useRef(D==null?void 0:D.matches),c.useDebugValue(V.current?"reduce":"no-preference"),c.useEffect(function(){var F=function(ie){V.current=ie.matches};return D==null||D.addListener(F),function(){return D==null?void 0:D.removeListener(F)}},[D]),V),ue=function(F){var ie=F.targetRef,J=F.enabled,be=F.reserveScrollBarGap,Te=c.useRef({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return c.useDebugValue(J?"Enabled":"Disabled"),c.useEffect(function(){if(!J)return Te.current.deactivate(),void(Te.current={activate:function(){},deactivate:function(){}});var Ae=ie.current,Be=!1;Te.current={activate:function(){Be||(Be=!0,Mm(Ae,{allowTouchMove:function(De){return De.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:be}))},deactivate:function(){Be&&(Be=!1,km(Ae))}}},[J,ie,be]),Te}({targetRef:ee,enabled:Q&&O,reserveScrollBarGap:P}),Le=function(F){var ie=F.targetRef,J=F.enabled,be=c.useRef({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return c.useDebugValue(J?"Enabled":"Disabled"),c.useEffect(function(){if(!J)return be.current.deactivate(),void(be.current={activate:function(){},deactivate:function(){}});var Te=ie.current,Ae=!1,Be=[],De=[];be.current={activate:function(){if(!Ae){Ae=!0;var He=Te.parentNode;document.querySelectorAll("body > *").forEach(function(ge){if(ge!==He){var we=ge.getAttribute("aria-hidden");we!==null&&we!=="false"||(Be.push(we),De.push(ge),ge.setAttribute("aria-hidden","true"))}})}},deactivate:function(){Ae&&(Ae=!1,De.forEach(function(He,ge){var we=Be[ge];we===null?He.removeAttribute("aria-hidden"):He.setAttribute("aria-hidden",we)}),Be=[],De=[])}}},[ie,J]),be}({targetRef:U,enabled:Q&&m}),Pe=function(F){var ie=F.targetRef,J=F.fallbackRef,be=F.initialFocusRef,Te=F.enabled,Ae=c.useRef({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return c.useDebugValue(Te?"Enabled":"Disabled"),c.useEffect(function(){if(!Te)return Ae.current.deactivate(),void(Ae.current={activate:function(){},deactivate:function(){}});var Be=J.current,De=Sm(ie.current,{onActivate:void 0,initialFocus:be?function(){return(be==null?void 0:be.current)||Be}:void 0,fallbackFocus:Be,escapeDeactivates:!1,clickOutsideDeactivates:!1}),He=!1;Ae.current={activate:function(){try{return He?Promise.resolve():(He=!0,Promise.resolve(De.activate()).then(function(){return Promise.resolve(new Promise(function(ge){return setTimeout(function(){return ge(void 0)},0)})).then(function(){})}))}catch(ge){return Promise.reject(ge)}},deactivate:function(){He&&(He=!1,De.deactivate())}}},[Te,J,be,ie]),Ae}({targetRef:U,fallbackRef:q,initialFocusRef:f||void 0,enabled:Q&&m&&f!==!1}),Me=function(F){var ie=F.getSnapPoints,J=F.heightRef,be=F.lastSnapRef,Te=F.ready,Ae=function(Ze){var pt=Ze.contentRef,gt=Ze.controlledMaxHeight,tt=Ze.footerEnabled,Gt=Ze.footerRef,Dt=Ze.headerEnabled,vt=Ze.headerRef,dn=Ze.registerReady,Zt=Ze.resizeSourceRef,to=c.useMemo(function(){return dn("contentHeight")},[dn]),no=function(hn,Tn,Bn){var Nn=c.useMemo(function(){return Tn("maxHeight")},[Tn]),jn=c.useState(function(){return oi(hn)||typeof window<"u"?window.innerHeight:0}),io=jn[0],so=jn[1],pn=io>0,se=c.useRef(0);return c.useDebugValue(hn?"controlled":"auto"),c.useEffect(function(){pn&&Nn()},[pn,Nn]),Ur(function(){if(hn)return so(oi(hn)),void(Bn.current="maxheightprop");var zd=function(){se.current||(se.current=requestAnimationFrame(function(){so(window.innerHeight),Bn.current="window",se.current=0}))};return window.addEventListener("resize",zd),so(window.innerHeight),Bn.current="window",Nn(),function(){window.removeEventListener("resize",zd),cancelAnimationFrame(se.current)}},[hn,Nn,Bn]),io}(gt,dn,Zt),cr=Hs(vt,{label:"headerHeight",enabled:Dt,resizeSourceRef:Zt}),ro=Hs(pt,{label:"contentHeight",enabled:!0,resizeSourceRef:Zt}),fr=Hs(Gt,{label:"footerHeight",enabled:tt,resizeSourceRef:Zt}),Dn=Math.min(no-cr-fr,ro)+cr+fr;c.useDebugValue("minHeight: "+Dn);var oo=ro>0;return c.useEffect(function(){oo&&to()},[oo,to]),{maxHeight:no,minHeight:Dn,headerHeight:cr,footerHeight:fr}}({contentRef:F.contentRef,controlledMaxHeight:F.controlledMaxHeight,footerEnabled:F.footerEnabled,footerRef:F.footerRef,headerEnabled:F.headerEnabled,headerRef:F.headerRef,registerReady:F.registerReady,resizeSourceRef:F.resizeSourceRef}),Be=Ae.maxHeight,De=Ae.minHeight,He=Ae.headerHeight,ge=Ae.footerHeight,we=function(Ze,pt){var gt=[].concat(Ze).map(oi).reduce(function(vt,dn){return vt.add(Hr(dn,0,pt)),vt},new Set),tt=Array.from(gt),Gt=Math.min.apply(Math,tt);if(Number.isNaN(Gt))throw new TypeError("minSnap is NaN");var Dt=Math.max.apply(Math,tt);if(Number.isNaN(Dt))throw new TypeError("maxSnap is NaN");return{snapPoints:tt,minSnap:Gt,maxSnap:Dt}}(Te?ie({height:J.current,footerHeight:ge,headerHeight:He,minHeight:De,maxHeight:Be}):[0],Be),ct=we.snapPoints,qt=we.minSnap,lt=we.maxSnap;return c.useDebugValue("minSnap: "+qt+", maxSnap:"+lt),{minSnap:qt,maxSnap:lt,findSnap:function(Ze){var pt=oi(typeof Ze=="function"?Ze({footerHeight:ge,headerHeight:He,height:J.current,minHeight:De,maxHeight:Be,snapPoints:ct,lastSnap:be.current}):Ze);return ct.reduce(function(gt,tt){return Math.abs(tt-pt)<Math.abs(gt-pt)?tt:gt},qt)},maxHeight:Be}}({contentRef:le,controlledMaxHeight:h,footerEnabled:!!i,footerRef:B,getSnapPoints:C,headerEnabled:s!==!1,headerRef:Z,heightRef:_,lastSnapRef:l,ready:Q,registerReady:K,resizeSourceRef:re}),ae=Me.minSnap,fe=Me.maxSnap,Ge=Me.maxHeight,_e=Me.findSnap,X=c.useRef(Ge),Qe=c.useRef(ae),Ue=c.useRef(fe),ht=c.useRef(_e),at=c.useRef(0);Ur(function(){X.current=Ge,Ue.current=fe,Qe.current=ae,ht.current=_e,at.current=_e(v)},[_e,v,Ge,fe,ae]);var de=c.useCallback(function(F){var ie=F.onRest,J=F.config,be=(J=J===void 0?{}:J).velocity,Te=be===void 0?1:be,Ae=ri(J,ty),Be=ri(F,ny);return new Promise(function(De){return ne(it({},Be,{config:it({velocity:Te},Ae,{mass:1,tension:ry,friction:Math.max(ii,ii+(ii-ii*Te))}),onRest:function(){var He=[].slice.call(arguments);De.apply(void 0,He),ie==null||ie.apply(void 0,He)}}))})},[ne]),In=jg($m,{devTools:!1,actions:{onOpenCancel:c.useCallback(function(){return T.current==null?void 0:T.current({type:"OPEN"})},[]),onSnapCancel:c.useCallback(function(F){return T.current==null?void 0:T.current({type:"SNAP",source:F.snapSource})},[]),onCloseCancel:c.useCallback(function(){return T.current==null?void 0:T.current({type:"CLOSE"})},[]),onResizeCancel:c.useCallback(function(){return T.current==null?void 0:T.current({type:"RESIZE",source:re.current})},[]),onOpenEnd:c.useCallback(function(){return I.current==null?void 0:I.current({type:"OPEN"})},[]),onSnapEnd:c.useCallback(function(F,ie){return I.current==null?void 0:I.current({type:"SNAP",source:F.snapSource})},[]),onResizeEnd:c.useCallback(function(){return I.current==null?void 0:I.current({type:"RESIZE",source:re.current})},[])},context:{initialState:u},services:{onSnapStart:c.useCallback(function(F,ie){try{return Promise.resolve(R.current==null?void 0:R.current({type:"SNAP",source:ie.payload.source||"custom"}))}catch(J){return Promise.reject(J)}},[]),onOpenStart:c.useCallback(function(){try{return Promise.resolve(R.current==null?void 0:R.current({type:"OPEN"}))}catch(F){return Promise.reject(F)}},[]),onCloseStart:c.useCallback(function(){try{return Promise.resolve(R.current==null?void 0:R.current({type:"CLOSE"}))}catch(F){return Promise.reject(F)}},[]),onResizeStart:c.useCallback(function(){try{return Promise.resolve(R.current==null?void 0:R.current({type:"RESIZE",source:re.current}))}catch(F){return Promise.reject(F)}},[]),onSnapEnd:c.useCallback(function(F,ie){try{return Promise.resolve(I.current==null?void 0:I.current({type:"SNAP",source:F.snapSource}))}catch(J){return Promise.reject(J)}},[]),onOpenEnd:c.useCallback(function(){try{return Promise.resolve(I.current==null?void 0:I.current({type:"OPEN"}))}catch(F){return Promise.reject(F)}},[]),onCloseEnd:c.useCallback(function(){try{return Promise.resolve(I.current==null?void 0:I.current({type:"CLOSE"}))}catch(F){return Promise.reject(F)}},[]),onResizeEnd:c.useCallback(function(){try{return Promise.resolve(I.current==null?void 0:I.current({type:"RESIZE",source:re.current}))}catch(F){return Promise.reject(F)}},[]),renderVisuallyHidden:c.useCallback(function(F,ie){try{return Promise.resolve(de({y:at.current,ready:0,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:!0})).then(function(){})}catch(J){return Promise.reject(J)}},[de]),activate:c.useCallback(function(F,ie){try{return G.current=!0,Promise.resolve(Promise.all([ue.current.activate(),Pe.current.activate(),Le.current.activate()])).then(function(){})}catch(J){return Promise.reject(J)}},[Le,Pe,ue]),deactivate:c.useCallback(function(){try{return ue.current.deactivate(),Pe.current.deactivate(),Le.current.deactivate(),G.current=!1,Promise.resolve()}catch(F){return Promise.reject(F)}},[Le,Pe,ue]),openImmediately:c.useCallback(function(){try{return _.current=at.current,Promise.resolve(de({y:at.current,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:!0})).then(function(){})}catch(F){return Promise.reject(F)}},[de]),openSmoothly:c.useCallback(function(){try{return Promise.resolve(de({y:0,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:!0})).then(function(){return _.current=at.current,Promise.resolve(de({y:at.current,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:oe.current})).then(function(){})})}catch(F){return Promise.reject(F)}},[de,oe]),snapSmoothly:c.useCallback(function(F,ie){try{var J=ht.current(F.y);return _.current=J,l.current=J,Promise.resolve(de({y:J,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:Qe.current,immediate:oe.current,config:{velocity:F.velocity}})).then(function(){})}catch(be){return Promise.reject(be)}},[de,l,oe]),resizeSmoothly:c.useCallback(function(){try{var F=ht.current(_.current);return _.current=F,l.current=F,Promise.resolve(de({y:F,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:Qe.current,immediate:re.current!=="element"||oe.current})).then(function(){})}catch(ie){return Promise.reject(ie)}},[de,l,oe]),closeSmoothly:c.useCallback(function(F,ie){try{return de({minSnap:_.current,immediate:!0}),_.current=0,Promise.resolve(de({y:0,maxHeight:X.current,maxSnap:Ue.current,immediate:oe.current})).then(function(){return Promise.resolve(de({ready:0,immediate:!0})).then(function(){})})}catch(J){return Promise.reject(J)}},[de,oe])}}),Hi=In[0],It=In[1];c.useEffect(function(){Q&&It(a?"OPEN":"CLOSE")},[a,It,Q]),Ur(function(){(Ge||fe||ae)&&It("RESIZE")},[Ge,fe,ae,It]),c.useEffect(function(){return function(){ue.current.deactivate(),Pe.current.deactivate(),Le.current.deactivate()}},[Le,Pe,ue]),c.useImperativeHandle(e,function(){return{snapTo:function(F,ie){var J=ie===void 0?{}:ie,be=J.velocity,Te=be===void 0?1:be,Ae=J.source,Be=Ae===void 0?"custom":Ae;It("SNAP",{payload:{y:ht.current(F),velocity:Te,source:Be}})},get height(){return _.current}}},[It]),c.useEffect(function(){var F=ee.current,ie=function(be){pe.current&&be.preventDefault()},J=function(be){F.scrollTop<0&&(requestAnimationFrame(function(){F.style.overflow="hidden",F.scrollTop=0,F.style.removeProperty("overflow")}),be.preventDefault())};return k&&(F.addEventListener("scroll",ie),F.addEventListener("touchmove",ie),F.addEventListener("touchstart",J)),function(){F.removeEventListener("scroll",ie),F.removeEventListener("touchmove",ie),F.removeEventListener("touchstart",J)}},[k,ee]);var Kt=om(function(F){var ie=F.args,J=(ie=ie===void 0?[]:ie)[0],be=(J=J===void 0?{}:J).closeOnTap,Te=be!==void 0&&be,Ae=J.isContentDragging,Be=Ae!==void 0&&Ae,De=F.cancel,He=F.direction[1],ge=F.down,we=F.first,ct=F.last,qt=F.memo,lt=qt===void 0?Y.y.getValue():qt,Ze=F.tap,pt=F.velocity,gt=-1*F.movement[1];if(!G.current)return De(),lt;if(d&&Te&&Ze)return De(),setTimeout(function(){return d()},0),lt;if(Ze)return lt;var tt=lt+gt,Gt=gt*pt,Dt=Math.max(Qe.current,Math.min(Ue.current,tt+2*Gt));if(!ge&&d&&He>0&&tt+Gt<Qe.current/2)return De(),d(),lt;var vt=ge?d||Qe.current!==Ue.current?Mr(tt,d?0:Qe.current,Ue.current,.55):tt<Qe.current?Mr(tt,Qe.current,2*Ue.current,.55):Mr(tt,Qe.current/2,Ue.current,.55):Dt;return k&&Be?(vt>=Ue.current&&(vt=Ue.current),lt===Ue.current&&ee.current.scrollTop>0&&(vt=Ue.current),pe.current=vt<Ue.current):pe.current=!1,we&&It("DRAG"),ct?(It("SNAP",{payload:{y:vt,velocity:pt>.05?pt:1,source:"dragging"}}),lt):(ne({y:vt,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:Qe.current,immediate:!0,config:{velocity:pt}}),lt)},{filterTaps:!0});if(Number.isNaN(Ue.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(Qe.current))throw new TypeError("minSnapRef is NaN!!");var zi=function(F){var ie,J=F.spring,be=Xn([J.y,J.maxHeight],function(ge,we){return Math.round(Hr(we-ge,0,16))+"px"}),Te=Xn([J.y,J.minSnap,J.maxSnap],function(ge,we,ct){return Hr(ge,we,ct)+"px"}),Ae=Xn([J.y,J.minSnap,J.maxSnap],function(ge,we,ct){return ge<we?we-ge+"px":ge>ct?ct-ge+"px":"0px"}),Be=Xn([J.y,J.maxSnap],function(ge,we){return ge>=we?Math.ceil(ge-we):0}),De=Xn([J.y,J.minSnap],function(ge,we){if(!we)return 0;var ct=Math.max(we/2-45,0);return Hr((ge-ct)*(1/(Math.min(we/2+45,we)-ct)+0),0,1)}),He=Xn([J.y,J.minSnap],function(ge,we){return we?Hr(ge/we,0,1):0});return(ie={})["--rsbs-content-opacity"]=De,ie["--rsbs-backdrop-opacity"]=He,ie["--rsbs-antigap-scale-y"]=Be,ie["--rsbs-overlay-translate-y"]=Ae,ie["--rsbs-overlay-rounded"]=be,ie["--rsbs-overlay-h"]=Te,ie}({spring:Y});return c.createElement(Cv.div,it({},N,{"data-rsbs-root":!0,"data-rsbs-state":iy.find(Hi.matches),"data-rsbs-is-blocking":m,"data-rsbs-is-dismissable":!!d,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!i,className:o,ref:U,style:it({},zi,S,{opacity:Y.ready})}),r,m&&c.createElement("div",it({key:"backdrop","data-rsbs-backdrop":!0},Kt({closeOnTap:!0}))),c.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:q,onKeyDown:function(F){F.key==="Escape"&&(F.stopPropagation(),d&&d())}},s!==!1&&c.createElement("div",it({key:"header","data-rsbs-header":!0,ref:Z},Kt()),s),c.createElement("div",it({key:"scroll","data-rsbs-scroll":!0,ref:ee},k?Kt({isContentDragging:!0}):{}),c.createElement("div",{"data-rsbs-content":!0,ref:le},n)),i&&c.createElement("div",it({key:"footer",ref:B,"data-rsbs-footer":!0},Kt()),i)))}),iy=["closed","opening","open","closing","dragging","snapping","resizing"];function sy(t){var e=t.lastSnap;return e??Math.min.apply(Math,t.snapPoints)}function ay(t){return t.minHeight}var ly=["onSpringStart","onSpringEnd","skipInitialTransition"],_u=c.forwardRef(function(t,e){var n=t.onSpringStart,r=t.onSpringEnd,o=t.skipInitialTransition,i=ri(t,ly),s=c.useState(!1),a=s[0],u=s[1],l=c.useRef(),f=c.useRef(null),d=c.useRef(o&&i.open?"OPEN":"CLOSED");Ur(function(){if(i.open)return cancelAnimationFrame(l.current),u(!0),function(){d.current="CLOSED"}},[i.open]);var h=c.useCallback(function(v){return Promise.resolve(n==null?void 0:n(v)).then(function(){v.type==="OPEN"&&cancelAnimationFrame(l.current)})},[n]),g=c.useCallback(function(v){return Promise.resolve(r==null?void 0:r(v)).then(function(){v.type==="CLOSE"&&(l.current=requestAnimationFrame(function(){return u(!1)}))})},[r]);return a?c.createElement(Ip,{"data-rsbs-portal":!0},c.createElement(oy,it({},i,{lastSnapRef:f,ref:e,initialState:d.current,onSpringStart:h,onSpringEnd:g}))):null});function Xu(t,e){return function(){return t.apply(e,arguments)}}const{toString:uy}=Object.prototype,{getPrototypeOf:zs}=Object,si=(t=>e=>{const n=uy.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=t=>(t=t.toLowerCase(),e=>si(e)===t),ai=t=>e=>typeof e===t,{isArray:tr}=Array,zr=ai("undefined");function cy(t){return t!==null&&!zr(t)&&t.constructor!==null&&!zr(t.constructor)&&St(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $u=jt("ArrayBuffer");function fy(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$u(t.buffer),e}const dy=ai("string"),St=ai("function"),ec=ai("number"),li=t=>t!==null&&typeof t=="object",hy=t=>t===!0||t===!1,ui=t=>{if(si(t)!=="object")return!1;const e=zs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},py=jt("Date"),gy=jt("File"),vy=jt("Blob"),my=jt("FileList"),yy=t=>li(t)&&St(t.pipe),by=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||St(t.append)&&((e=si(t))==="formdata"||e==="object"&&St(t.toString)&&t.toString()==="[object FormData]"))},Ey=jt("URLSearchParams"),wy=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fr(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),tr(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,t[a],a,t)}}function tc(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const nc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rc=t=>!zr(t)&&t!==nc;function Fs(){const{caseless:t}=rc(this)&&this||{},e={},n=(r,o)=>{const i=t&&tc(e,o)||o;ui(e[i])&&ui(r)?e[i]=Fs(e[i],r):ui(r)?e[i]=Fs({},r):tr(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fr(arguments[r],n);return e}const Cy=(t,e,n,{allOwnKeys:r}={})=>(Fr(e,(o,i)=>{n&&St(o)?t[i]=Xu(o,n):t[i]=o},{allOwnKeys:r}),t),Sy=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ly=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Ay=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&zs(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},xy=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Oy=t=>{if(!t)return null;if(tr(t))return t;let e=t.length;if(!ec(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Py=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zs(Uint8Array)),My=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},ky=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Iy=jt("HTMLFormElement"),Dy=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),oc=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ty=jt("RegExp"),ic=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Fr(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},By=t=>{ic(t,(e,n)=>{if(St(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(St(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ny=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return tr(t)?r(t):r(String(t).split(e)),n},jy=()=>{},Uy=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Vs="abcdefghijklmnopqrstuvwxyz",sc="0123456789",ac={DIGIT:sc,ALPHA:Vs,ALPHA_DIGIT:Vs+Vs.toUpperCase()+sc},Hy=(t=16,e=ac.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function zy(t){return!!(t&&St(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Fy=t=>{const e=new Array(10),n=(r,o)=>{if(li(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=tr(r)?[]:{};return Fr(r,(s,a)=>{const u=n(s,o+1);!zr(u)&&(i[a]=u)}),e[o]=void 0,i}}return r};return n(t,0)},Vy=jt("AsyncFunction"),j={isArray:tr,isArrayBuffer:$u,isBuffer:cy,isFormData:by,isArrayBufferView:fy,isString:dy,isNumber:ec,isBoolean:hy,isObject:li,isPlainObject:ui,isUndefined:zr,isDate:py,isFile:gy,isBlob:vy,isRegExp:Ty,isFunction:St,isStream:yy,isURLSearchParams:Ey,isTypedArray:Py,isFileList:my,forEach:Fr,merge:Fs,extend:Cy,trim:wy,stripBOM:Sy,inherits:Ly,toFlatObject:Ay,kindOf:si,kindOfTest:jt,endsWith:xy,toArray:Oy,forEachEntry:My,matchAll:ky,isHTMLForm:Iy,hasOwnProperty:oc,hasOwnProp:oc,reduceDescriptors:ic,freezeMethods:By,toObjectSet:Ny,toCamelCase:Dy,noop:jy,toFiniteNumber:Uy,findKey:tc,global:nc,isContextDefined:rc,ALPHABET:ac,generateString:Hy,isSpecCompliantForm:zy,toJSONObject:Fy,isAsyncFn:Vy,isThenable:t=>t&&(li(t)||St(t))&&St(t.then)&&St(t.catch)};function Se(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}j.inherits(Se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lc=Se.prototype,uc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{uc[t]={value:t}}),Object.defineProperties(Se,uc),Object.defineProperty(lc,"isAxiosError",{value:!0}),Se.from=(t,e,n,r,o,i)=>{const s=Object.create(lc);return j.toFlatObject(t,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),Se.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Gy=null;function Gs(t){return j.isPlainObject(t)||j.isArray(t)}function cc(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function fc(t,e,n){return t?t.concat(e).map(function(o,i){return o=cc(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function Qy(t){return j.isArray(t)&&!t.some(Gs)}const Yy=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function ci(t,e,n){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,C){return!j.isUndefined(C[p])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(j.isDate(v))return v.toISOString();if(!u&&j.isBlob(v))throw new Se("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(v)||j.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,p,C){let w=v;if(v&&!C&&typeof v=="object"){if(j.endsWith(p,"{}"))p=r?p:p.slice(0,-2),v=JSON.stringify(v);else if(j.isArray(v)&&Qy(v)||(j.isFileList(v)||j.endsWith(p,"[]"))&&(w=j.toArray(v)))return p=cc(p),w.forEach(function(b,O){!(j.isUndefined(b)||b===null)&&e.append(s===!0?fc([p],O,i):s===null?p:p+"[]",l(b))}),!1}return Gs(v)?!0:(e.append(fc(C,p,i),l(v)),!1)}const d=[],h=Object.assign(Yy,{defaultVisitor:f,convertValue:l,isVisitable:Gs});function g(v,p){if(!j.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(v),j.forEach(v,function(w,m){(!(j.isUndefined(w)||w===null)&&o.call(e,w,j.isString(m)?m.trim():m,p,h))===!0&&g(w,p?p.concat(m):[m])}),d.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return g(t),e}function dc(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Qs(t,e){this._pairs=[],t&&ci(t,this,e)}const hc=Qs.prototype;hc.append=function(e,n){this._pairs.push([e,n])},hc.toString=function(e){const n=e?function(r){return e.call(this,r,dc)}:dc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Wy(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pc(t,e,n){if(!e)return t;const r=n&&n.encode||Wy,o=n&&n.serialize;let i;if(o?i=o(e,n):i=j.isURLSearchParams(e)?e.toString():new Qs(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ry{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(r){r!==null&&e(r)})}}const gc=Ry,vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ky=typeof URLSearchParams<"u"?URLSearchParams:Qs,qy=typeof FormData<"u"?FormData:null,Zy=typeof Blob<"u"?Blob:null,Jy=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),_y=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kt={isBrowser:!0,classes:{URLSearchParams:Ky,FormData:qy,Blob:Zy},isStandardBrowserEnv:Jy,isStandardBrowserWebWorkerEnv:_y,protocols:["http","https","file","blob","url","data"]};function Xy(t,e){return ci(t,new kt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return kt.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function $y(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function e0(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function mc(t){function e(n,r,o,i){let s=n[i++];const a=Number.isFinite(+s),u=i>=n.length;return s=!s&&j.isArray(o)?o.length:s,u?(j.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!j.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&j.isArray(o[s])&&(o[s]=e0(o[s])),!a)}if(j.isFormData(t)&&j.isFunction(t.entries)){const n={};return j.forEachEntry(t,(r,o)=>{e($y(r),o,n,0)}),n}return null}function t0(t,e,n){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Ys={transitional:vc,adapter:kt.isNode?"http":"xhr",transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o&&o?JSON.stringify(mc(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xy(e,this.formSerializer).toString();if((a=j.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ci(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),t0(e)):e}],transformResponse:[function(e){const n=this.transitional||Ys.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&j.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Se.from(a,Se.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{Ys.headers[t]={}});const Ws=Ys,n0=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r0=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
47
|
-
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&n0[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},yc=Symbol("internals");function
|
|
48
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[yc]=this[yc]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Vr(s);r[a]||(a0(o,s),r[a]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}}di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(di.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),j.freezeMethods(di);const Wt=di;function Ks(t,e){const n=this||Ws,r=e||n,o=Wt.from(r.headers);let i=r.data;return j.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function bc(t){return!!(t&&t.__CANCEL__)}function Gr(t,e,n){Se.call(this,t??"canceled",Se.ERR_CANCELED,e,n),this.name="CanceledError"}j.inherits(Gr,Se,{__CANCEL__:!0});function l0(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Se("Request failed with status code "+n.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const u0=kt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const u=[];u.push(n+"="+encodeURIComponent(r)),j.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),j.isString(i)&&u.push("path="+i),j.isString(s)&&u.push("domain="+s),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function c0(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function f0(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Ec(t,e){return t&&!c0(e)?f0(t,e):e}const d0=kt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=j.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function h0(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function p0(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),f=r[i];s||(s=l),n[o]=u,r[o]=l;let d=i,h=0;for(;d!==o;)h+=n[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-s<e)return;const g=f&&l-f;return g?Math.round(h*1e3/g):void 0}}function wc(t,e){let n=0;const r=p0(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,u=r(a),l=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&l?(s-i)/u:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const hi={http:Gy,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let o=t.data;const i=Wt.from(t.headers).normalize(),s=t.responseType;let a;function u(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}j.isFormData(o)&&(kt.isStandardBrowserEnv||kt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+v))}const f=Ec(t.baseURL,t.url);l.open(t.method.toUpperCase(),pc(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function d(){if(!l)return;const g=Wt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:t,request:l};l0(function(w){n(w),u()},function(w){r(w),u()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Se("Request aborted",Se.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new Se("Network Error",Se.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||vc;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),r(new Se(v,p.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,t,l)),l=null},kt.isStandardBrowserEnv){const g=(t.withCredentials||d0(f))&&t.xsrfCookieName&&u0.read(t.xsrfCookieName);g&&i.set(t.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&j.forEach(i.toJSON(),function(v,p){l.setRequestHeader(p,v)}),j.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",wc(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",wc(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=g=>{l&&(r(!g||g.type?new Gr(null,t,l):g),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const h=h0(f);if(h&&kt.protocols.indexOf(h)===-1){r(new Se("Unsupported protocol "+h+":",Se.ERR_BAD_REQUEST,t));return}l.send(o||null)})}};j.forEach(hi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Cc={getAdapter:t=>{t=j.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;o<e&&(n=t[o],!(r=j.isString(n)?hi[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new Se(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(j.hasOwnProp(hi,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!j.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:hi};function qs(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Gr(null,t)}function Sc(t){return qs(t),t.headers=Wt.from(t.headers),t.data=Ks.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Cc.getAdapter(t.adapter||Ws.adapter)(t).then(function(r){return qs(t),r.data=Ks.call(t,t.transformResponse,r),r.headers=Wt.from(r.headers),r},function(r){return bc(r)||(qs(t),r&&r.response&&(r.response.data=Ks.call(t,t.transformResponse,r.response),r.response.headers=Wt.from(r.response.headers))),Promise.reject(r)})}const Lc=t=>t instanceof Wt?t.toJSON():t;function nr(t,e){e=e||{};const n={};function r(l,f,d){return j.isPlainObject(l)&&j.isPlainObject(f)?j.merge.call({caseless:d},l,f):j.isPlainObject(f)?j.merge({},f):j.isArray(f)?f.slice():f}function o(l,f,d){if(j.isUndefined(f)){if(!j.isUndefined(l))return r(void 0,l,d)}else return r(l,f,d)}function i(l,f){if(!j.isUndefined(f))return r(void 0,f)}function s(l,f){if(j.isUndefined(f)){if(!j.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,d){if(d in e)return r(l,f);if(d in t)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,f)=>o(Lc(l),Lc(f),!0)};return j.forEach(Object.keys(Object.assign({},t,e)),function(f){const d=u[f]||o,h=d(t[f],e[f],f);j.isUndefined(h)&&d!==a||(n[f]=h)}),n}const Ac="1.5.0",Zs={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zs[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const xc={};Zs.transitional=function(e,n,r){function o(i,s){return"[Axios v"+Ac+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new Se(o(s," has been removed"+(n?" in "+n:"")),Se.ERR_DEPRECATED);return n&&!xc[s]&&(xc[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function g0(t,e,n){if(typeof t!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const a=t[i],u=a===void 0||s(a,i,t);if(u!==!0)throw new Se("option "+i+" must be "+u,Se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}}const Js={assertOptions:g0,validators:Zs},on=Js.validators;class pi{constructor(e){this.defaults=e,this.interceptors={request:new gc,response:new gc}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=nr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Js.assertOptions(r,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},!1),o!=null&&(j.isFunction(o)?n.paramsSerializer={serialize:o}:Js.assertOptions(o,{encode:on.function,serialize:on.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Wt.concat(s,i);const a=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(u=u&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let f,d=0,h;if(!u){const v=[Sc.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,l),h=v.length,f=Promise.resolve(n);d<h;)f=f.then(v[d++],v[d++]);return f}h=a.length;let g=n;for(d=0;d<h;){const v=a[d++],p=a[d++];try{g=v(g)}catch(C){p.call(this,C);break}}try{f=Sc.call(this,g)}catch(v){return Promise.reject(v)}for(d=0,h=l.length;d<h;)f=f.then(l[d++],l[d++]);return f}getUri(e){e=nr(this.defaults,e);const n=Ec(e.baseURL,e.url);return pc(n,e.params,e.paramsSerializer)}}j.forEach(["delete","get","head","options"],function(e){pi.prototype[e]=function(n,r){return this.request(nr(r||{},{method:e,url:n,data:(r||{}).data}))}}),j.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(nr(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}pi.prototype[e]=n(),pi.prototype[e+"Form"]=n(!0)});const gi=pi;class _s{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Gr(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new _s(function(o){e=o}),cancel:e}}}const v0=_s;function m0(t){return function(n){return t.apply(null,n)}}function y0(t){return j.isObject(t)&&t.isAxiosError===!0}const Xs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xs).forEach(([t,e])=>{Xs[e]=t});const b0=Xs;function Oc(t){const e=new gi(t),n=Xu(gi.prototype.request,e);return j.extend(n,gi.prototype,e,{allOwnKeys:!0}),j.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Oc(nr(t,o))},n}const qe=Oc(Ws);qe.Axios=gi,qe.CanceledError=Gr,qe.CancelToken=v0,qe.isCancel=bc,qe.VERSION=Ac,qe.toFormData=ci,qe.AxiosError=Se,qe.Cancel=qe.CanceledError,qe.all=function(e){return Promise.all(e)},qe.spread=m0,qe.isAxiosError=y0,qe.mergeConfig=nr,qe.AxiosHeaders=Wt,qe.formToJSON=t=>mc(j.isHTMLForm(t)?new FormData(t):t),qe.getAdapter=Cc.getAdapter,qe.HttpStatusCode=b0,qe.default=qe;const vi=qe.create({baseURL:"https://ecomgate.omnic.solutions/api/1.0.0/type-1/public/"}),E0=512;var sn=(t=>(t[t.All=0]="All",t[t.PickPoint=20]="PickPoint",t[t.PostOffice=30]="PostOffice",t))(sn||{}),Ut=(t=>(t[t.PayByCash=0]="PayByCash",t[t.DressingRoom=1]="DressingRoom",t[t.CheckOrder=2]="CheckOrder",t))(Ut||{}),Ht=(t=>(t[t.Return=0]="Return",t[t.Payment=1]="Payment",t[t.Shipping=2]="Shipping",t))(Ht||{});const w0={[Ut.CheckOrder]:["is_check_order","is_delivery"],[Ut.DressingRoom]:["is_dressing_room","is_delivery"],[Ut.PayByCash]:["pay_by_cash","pay_by_card","is_delivery"]},C0={[Ht.Return]:["is_pickup"],[Ht.Shipping]:["is_pickup"],[Ht.Payment]:["pay_by_cash","pay_by_card","is_pickup"]};async function*Pc({q:t,filter:e,bounds:n}={},{loading:r,onCancel:o,controller:i}={}){r&&i&&(i.abort(),o==null||o());const s={status:30,page_size:E0};t&&(s.q=t),e!=null&&e.type&&(s.type=e.type),e!=null&&e.receive&&Object.entries(e==null?void 0:e.receive).forEach(([f,d])=>{if(!d)return;w0[f].forEach(g=>{s[g]=!0})}),e!=null&&e.send&&Object.entries(e==null?void 0:e.send).forEach(([f,d])=>{if(!d)return;C0[f].forEach(g=>{s[g]=!0})}),n&&(s.start_latitude=n[0][0],s.end_latitude=n[0][1],s.start_longitude=n[1][0],s.end_longitude=n[1][1]);let a=await vi.get("/locations/points",{params:s,signal:i==null?void 0:i.signal}),u=a.data.data.num_pages,l=a.data.data.current_page;for(;l<u;){yield a,s.page=l+1;const f=await vi.get("/locations/points",{params:s,signal:i==null?void 0:i.signal});a.data.data.results=[...a.data.data.results,...f.data.data.results],a=f,l=f.data.data.current_page,u=f.data.data.num_pages}return yield a,a}const $s=new WeakSet;let rr=new AbortController;$s.add(rr);const S0=()=>{rr.abort(),$s.delete(rr),rr=new AbortController,$s.add(rr)},Mc=(t,e,n)=>async r=>{const o={loading:t,controller:rr,onCancel:S0};if(!n){const i=(await Pc({filter:e},o).next()).value;r(i.data);return}for await(const i of Pc({filter:e,bounds:n},o))r(i.data)},kc="@omnic/widget-locations",ea=(t,e)=>{var n;(n=document.getElementById(kc))==null||n.style.setProperty(t,e)},Ic=t=>{t.stopImmediatePropagation()},ta=async(t,e="ROOFTOP")=>{fo.setLocationType(e);const n=await fo.fromLatLng(t[0].toString(),t[1].toString()),r=n.results.map(o=>{var a,u;const i=(a=o.geometry)==null?void 0:a.viewport,s=(u=o.geometry)==null?void 0:u.location;return{...o,geometry:{...o.geometry,viewport:new google.maps.LatLngBounds(i.southwest,i.northeast),location:new google.maps.LatLng(s)}}});return{...n,results:r}},L0={points:[],error:!1,loaded:!1,loading:!1,reloading:!1},zt=Xt()((t,e)=>({...L0,async loadNext(n,r){const o=e().reloading;t({error:!1,reloading:!0}),ze.getState().setBounds(n);let i=0;try{await Mc(o,r,n)(a=>{t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++})}catch{t({error:!0})}finally{t({reloading:!1})}},async loadFirst(n){const r=e().loading,o=ze.getState().bounds;t({error:!1,loading:!0});let i=0;try{await Mc(r,n,o)(a=>{i>=1&&t({loading:!1,loaded:!0}),t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++}),t({loading:!1,loaded:!0})}catch{t({error:!0,loading:!1})}finally{t({loading:!1})}}})),A0={query:"",type:sn.All,hours:["08:00","22:00"],send:{[Ht.Return]:!1,[Ht.Payment]:!1,[Ht.Shipping]:!1},receive:{[Ut.PayByCash]:!1,[Ut.CheckOrder]:!1,[Ut.DressingRoom]:!1}},Sn=Xt(t=>({...A0,setFilter(e){ze.getState().setDetailsOpen(!1),mt.getState().setCourierPoint(null),yt.getState().setSelectedPoint(null),t(e)}})),x0=()=>{c.useEffect(()=>{zt.getState().loadFirst();const t=Sn.subscribe(e=>{zt.getState().loadFirst(e)});return()=>{t()}},[])},Qr=".",na=Symbol("target"),Dc=Symbol("unsubscribe");function ra(t){return t instanceof Date||t instanceof Set||t instanceof Map||t instanceof WeakSet||t instanceof WeakMap||ArrayBuffer.isView(t)}function O0(t){return(typeof t=="object"?t===null:typeof t!="function")||t instanceof RegExp}const Ft=Array.isArray;function oa(t){return typeof t=="symbol"}const Lt={after:(t,e)=>Ft(t)?t.slice(e.length):e===""?t:t.slice(e.length+1),concat:(t,e)=>Ft(t)?(t=[...t],e&&t.push(e),t):e&&e.toString!==void 0?(t!==""&&(t+=Qr),oa(e)?t+e.toString():t+e):t,initial:t=>{if(Ft(t))return t.slice(0,-1);if(t==="")return t;const e=t.lastIndexOf(Qr);return e===-1?"":t.slice(0,e)},last:t=>{if(Ft(t))return t[t.length-1]||"";if(t==="")return t;const e=t.lastIndexOf(Qr);return e===-1?t:t.slice(e+1)},walk:(t,e)=>{if(Ft(t))for(const n of t)e(n);else if(t!==""){let n=0,r=t.indexOf(Qr);if(r===-1)e(t);else for(;n<t.length;)r===-1&&(r=t.length),e(t.slice(n,r)),n=r+1,r=t.indexOf(Qr,n)}},get(t,e){return this.walk(e,n=>{t&&(t=t[n])}),t}};function P0(t){return typeof t=="object"&&typeof t.next=="function"}function M0(t,e,n,r,o){const i=t.next;if(e.name==="entries")t.next=function(){const s=i.call(this);return s.done===!1&&(s.value[0]=o(s.value[0],e,s.value[0],r),s.value[1]=o(s.value[1],e,s.value[0],r)),s};else if(e.name==="values"){const s=n[na].keys();t.next=function(){const a=i.call(this);return a.done===!1&&(a.value=o(a.value,e,s.next().value,r)),a}}else t.next=function(){const s=i.call(this);return s.done===!1&&(s.value=o(s.value,e,s.value,r)),s};return t}function Tc(t,e,n){return t.isUnsubscribed||e.ignoreSymbols&&oa(n)||e.ignoreUnderscores&&n.charAt(0)==="_"||"ignoreKeys"in e&&e.ignoreKeys.includes(n)}class k0{constructor(e){this._equals=e,this._proxyCache=new WeakMap,this._pathCache=new WeakMap,this.isUnsubscribed=!1}_getDescriptorCache(){return this._descriptorCache===void 0&&(this._descriptorCache=new WeakMap),this._descriptorCache}_getProperties(e){const n=this._getDescriptorCache();let r=n.get(e);return r===void 0&&(r={},n.set(e,r)),r}_getOwnPropertyDescriptor(e,n){if(this.isUnsubscribed)return Reflect.getOwnPropertyDescriptor(e,n);const r=this._getProperties(e);let o=r[n];return o===void 0&&(o=Reflect.getOwnPropertyDescriptor(e,n),r[n]=o),o}getProxy(e,n,r,o){if(this.isUnsubscribed)return e;const i=e[o],s=i||e;this._pathCache.set(s,n);let a=this._proxyCache.get(s);return a===void 0&&(a=i===void 0?new Proxy(e,r):e,this._proxyCache.set(s,a)),a}getPath(e){return this.isUnsubscribed?void 0:this._pathCache.get(e)}isDetached(e,n){return!Object.is(e,Lt.get(n,this.getPath(e)))}defineProperty(e,n,r){return Reflect.defineProperty(e,n,r)?(this.isUnsubscribed||(this._getProperties(e)[n]=r),!0):!1}setProperty(e,n,r,o,i){if(!this._equals(i,r)||!(n in e)){const s=this._getOwnPropertyDescriptor(e,n);return s!==void 0&&"set"in s?Reflect.set(e,n,r,o):Reflect.set(e,n,r)}return!0}deleteProperty(e,n,r){if(Reflect.deleteProperty(e,n)){if(!this.isUnsubscribed){const o=this._getDescriptorCache().get(e);o&&(delete o[n],this._pathCache.delete(r))}return!0}return!1}isSameDescriptor(e,n,r){const o=this._getOwnPropertyDescriptor(n,r);return e!==void 0&&o!==void 0&&Object.is(e.value,o.value)&&(e.writable||!1)===(o.writable||!1)&&(e.enumerable||!1)===(o.enumerable||!1)&&(e.configurable||!1)===(o.configurable||!1)&&e.get===o.get&&e.set===o.set}isGetInvariant(e,n){const r=this._getOwnPropertyDescriptor(e,n);return r!==void 0&&r.configurable!==!0&&r.writable!==!0}unsubscribe(){this._descriptorCache=null,this._pathCache=null,this._proxyCache=null,this.isUnsubscribed=!0}}function ia(t){return toString.call(t)==="[object Object]"}function mi(){return!0}function or(t,e){return t.length!==e.length||t.some((n,r)=>e[r]!==n)}const Bc=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),I0=new Set(["concat","includes","indexOf","join","keys","lastIndexOf"]),Nc={push:mi,pop:mi,shift:mi,unshift:mi,copyWithin:or,reverse:or,sort:or,splice:or,flat:or,fill:or},D0=new Set([...Bc,...I0,...Object.keys(Nc)]);function yi(t,e){if(t.size!==e.size)return!0;for(const n of t)if(!e.has(n))return!0;return!1}const jc=["keys","values","entries"],Uc=new Set(["has","toString"]),Hc={add:yi,clear:yi,delete:yi,forEach:yi},T0=new Set([...Uc,...Object.keys(Hc),...jc]);function bi(t,e){if(t.size!==e.size)return!0;let n;for(const[r,o]of t)if(n=e.get(r),n!==o||n===void 0&&!e.has(r))return!0;return!1}const B0=new Set([...Uc,"get"]),zc={set:bi,clear:bi,delete:bi,forEach:bi},N0=new Set([...B0,...Object.keys(zc),...jc]);class an{constructor(e,n,r,o){this._path=n,this._isChanged=!1,this._clonedCache=new Set,this._hasOnValidate=o,this._changes=o?[]:null,this.clone=n===void 0?e:this._shallowClone(e)}static isHandledMethod(e){return Bc.has(e)}_shallowClone(e){let n=e;if(ia(e))n={...e};else if(Ft(e)||ArrayBuffer.isView(e))n=[...e];else if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set([...e].map(r=>this._shallowClone(r)));else if(e instanceof Map){n=new Map;for(const[r,o]of e.entries())n.set(r,this._shallowClone(o))}return this._clonedCache.add(n),n}preferredThisArg(e,n,r,o){return e?(Ft(o)?this._onIsChanged=Nc[n]:o instanceof Set?this._onIsChanged=Hc[n]:o instanceof Map&&(this._onIsChanged=zc[n]),o):r}update(e,n,r){const o=Lt.after(e,this._path);if(n!=="length"){let i=this.clone;Lt.walk(o,s=>{i&&i[s]&&(this._clonedCache.has(i[s])||(i[s]=this._shallowClone(i[s])),i=i[s])}),this._hasOnValidate&&this._changes.push({path:o,property:n,previous:r}),i&&i[n]&&(i[n]=r)}this._isChanged=!0}undo(e){let n;for(let r=this._changes.length-1;r!==-1;r--)n=this._changes[r],Lt.get(e,n.path)[n.property]=n.previous}isChanged(e){return this._onIsChanged===void 0?this._isChanged:this._onIsChanged(this.clone,e)}}class Fc extends an{static isHandledMethod(e){return D0.has(e)}}class j0 extends an{undo(e){e.setTime(this.clone.getTime())}isChanged(e,n){return!n(this.clone.valueOf(),e.valueOf())}}class Vc extends an{static isHandledMethod(e){return T0.has(e)}undo(e){for(const n of this.clone)e.add(n);for(const n of e)this.clone.has(n)||e.delete(n)}}class Gc extends an{static isHandledMethod(e){return N0.has(e)}undo(e){for(const[n,r]of this.clone.entries())e.set(n,r);for(const n of e.keys())this.clone.has(n)||e.delete(n)}}class U0 extends an{constructor(e,n,r,o){super(void 0,n,r,o),this._arg1=r[0],this._weakValue=e.has(this._arg1)}isChanged(e){return this._weakValue!==e.has(this._arg1)}undo(e){this._weakValue&&!e.has(this._arg1)?e.add(this._arg1):e.delete(this._arg1)}}class H0 extends an{constructor(e,n,r,o){super(void 0,n,r,o),this._weakKey=r[0],this._weakHas=e.has(this._weakKey),this._weakValue=e.get(this._weakKey)}isChanged(e){return this._weakValue!==e.get(this._weakKey)}undo(e){const n=e.has(this._weakKey);this._weakHas&&!n?e.set(this._weakKey,this._weakValue):!this._weakHas&&n?e.delete(this._weakKey):this._weakValue!==e.get(this._weakKey)&&e.set(this._weakKey,this._weakValue)}}class Ln{constructor(e){this._stack=[],this._hasOnValidate=e}static isHandledType(e){return ia(e)||Ft(e)||ra(e)}static isHandledMethod(e,n){return ia(e)?an.isHandledMethod(n):Ft(e)?Fc.isHandledMethod(n):e instanceof Set?Vc.isHandledMethod(n):e instanceof Map?Gc.isHandledMethod(n):ra(e)}get isCloning(){return this._stack.length>0}start(e,n,r){let o=an;Ft(e)?o=Fc:e instanceof Date?o=j0:e instanceof Set?o=Vc:e instanceof Map?o=Gc:e instanceof WeakSet?o=U0:e instanceof WeakMap&&(o=H0),this._stack.push(new o(e,n,r,this._hasOnValidate))}update(e,n,r){this._stack[this._stack.length-1].update(e,n,r)}preferredThisArg(e,n,r){const{name:o}=e,i=Ln.isHandledMethod(r,o);return this._stack[this._stack.length-1].preferredThisArg(i,o,n,r)}isChanged(e,n,r){return this._stack[this._stack.length-1].isChanged(e,n,r)}undo(e){this._previousClone!==void 0&&this._previousClone.undo(e)}stop(){return this._previousClone=this._stack.pop(),this._previousClone.clone}}const z0={equals:Object.is,isShallow:!1,pathAsArray:!1,ignoreSymbols:!1,ignoreUnderscores:!1,ignoreDetached:!1,details:!1},Yr=(t,e,n={})=>{n={...z0,...n};const r=Symbol("ProxyTarget"),{equals:o,isShallow:i,ignoreDetached:s,details:a}=n,u=new k0(o),l=typeof n.onValidate=="function",f=new Ln(l),d=(m,b,O,S,y)=>!l||f.isCloning||n.onValidate(Lt.concat(u.getPath(m),b),O,S,y)===!0,h=(m,b,O,S)=>{!Tc(u,n,b)&&!(s&&u.isDetached(m,t))&&g(u.getPath(m),b,O,S)},g=(m,b,O,S,y)=>{f.isCloning?f.update(m,b,S):e(Lt.concat(m,b),O,S,y)},v=m=>m&&(m[r]||m),p=(m,b,O,S)=>O0(m)||O==="constructor"||i&&!Ln.isHandledMethod(b,O)||Tc(u,n,O)||u.isGetInvariant(b,O)||s&&u.isDetached(b,t)?m:(S===void 0&&(S=u.getPath(b)),u.getProxy(m,Lt.concat(S,O),C,r)),C={get(m,b,O){if(oa(b)){if(b===r||b===na)return m;if(b===Dc&&!u.isUnsubscribed&&u.getPath(m).length===0)return u.unsubscribe(),m}const S=ra(m)?Reflect.get(m,b):Reflect.get(m,b,O);return p(S,m,b)},set(m,b,O,S){O=v(O);const y=m[r]||m,E=y[b];if(o(E,O)&&b in m)return!0;const A=d(m,b,O,E);return A&&u.setProperty(y,b,O,S,E)?(h(m,b,m[b],E),!0):!A},defineProperty(m,b,O){if(!u.isSameDescriptor(O,m,b)){const S=m[b];d(m,b,O.value,S)&&u.defineProperty(m,b,O,S)&&h(m,b,O.value,S)}return!0},deleteProperty(m,b){if(!Reflect.has(m,b))return!0;const O=Reflect.get(m,b),S=d(m,b,void 0,O);return S&&u.deleteProperty(m,b,O)?(h(m,b,void 0,O),!0):!S},apply(m,b,O){const S=b[r]||b;if(u.isUnsubscribed)return Reflect.apply(m,S,O);if((a===!1||a!==!0&&!a.includes(m.name))&&Ln.isHandledType(S)){let y=Lt.initial(u.getPath(m));const E=Ln.isHandledMethod(S,m.name);f.start(S,y,O);let A=Reflect.apply(m,f.preferredThisArg(m,b,S),E?O.map(x=>v(x)):O);const M=f.isChanged(S,o),P=f.stop();if(Ln.isHandledType(A)&&E&&(b instanceof Map&&m.name==="get"&&(y=Lt.concat(y,O[0])),A=u.getProxy(A,y,C)),M){const x={name:m.name,args:O,result:A},k=f.isCloning?Lt.initial(y):y,N=f.isCloning?Lt.last(y):"";d(Lt.get(t,k),N,S,P,x)?g(k,N,S,P,x):f.undo(S)}return(b instanceof Map||b instanceof Set)&&P0(A)?M0(A,m,b,y,p):A}return Reflect.apply(m,b,O)}},w=u.getProxy(t,n.pathAsArray?[]:"",C);return e=e.bind(w),l&&(n.onValidate=n.onValidate.bind(w)),w};Yr.target=t=>t&&t[na]||t,Yr.unsubscribe=t=>t[Dc]||t;const F0=t=>{const e=t??window.OMNIC_WIDGET_LOCATIONS_CONFIG,[n,r]=c.useState({...mo,...e,map:{...mo.map,...e==null?void 0:e.map},palette:{...mo.palette,...e==null?void 0:e.palette}});console.log(n);const o=t&&!window.OMNIC_WIDGET_LOCATIONS_CONFIG,i=!t&&window.OMNIC_WIDGET_LOCATIONS_CONFIG;return c.useEffect(()=>{o&&r(t)},[t,o]),c.useEffect(()=>{if(i)return window.OMNIC_WIDGET_LOCATIONS_CONFIG=Yr(window.OMNIC_WIDGET_LOCATIONS_CONFIG,function(){const s=Yr.target(this);s.palette&&(s.palette={...s.palette}),s.map&&(s.map={...s.map}),r({...s})}),()=>{window.OMNIC_WIDGET_LOCATIONS_CONFIG&&Yr.unsubscribe(window.OMNIC_WIDGET_LOCATIONS_CONFIG)}},[i]),n},V0=(t,e)=>{vi.defaults.headers.get.Authorization=`INN ${t}`,e!=null&&e.baseURL&&(vi.defaults.baseURL=e.baseURL)},G0={root:"Overlay-module__root__y8tkGi"},sa=({children:t,className:e})=>L.jsx("div",{className:Ce(G0.root,e),children:t}),Q0={loader:"Spinner-module__loader__HX--ed"},aa=()=>L.jsx("div",{className:Q0.loader,children:"Loading..."});/*! *****************************************************************************
|
|
46
|
+
*/function Lu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Au(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lu(Object(n),!0).forEach(function(r){bm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xu=function(){var t=[];return{activateTrap:function(n){if(t.length>0){var r=t[t.length-1];r!==n&&r.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}}}(),Em=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},wm=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Cm=function(e){return e.key==="Tab"||e.keyCode===9},Ou=function(e){return setTimeout(e,0)},Pu=function(e,n){var r=-1;return e.every(function(o,i){return n(o)?(r=i,!1):!0}),r},Tr=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,r):e},Jo=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Sm=function(e,n){var r=(n==null?void 0:n.document)||document,o=Au({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},n),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(y,E,A){return y&&y[E]!==void 0?y[E]:o[A||E]},u=function(y){return i.containerGroups.findIndex(function(E){var A=E.container,M=E.tabbableNodes;return A.contains(y)||M.find(function(P){return P===y})})},l=function(y){var E=o[y];if(typeof E=="function"){for(var A=arguments.length,M=new Array(A>1?A-1:0),P=1;P<A;P++)M[P-1]=arguments[P];E=E.apply(void 0,M)}if(E===!0&&(E=void 0),!E){if(E===void 0||E===!1)return E;throw new Error("`".concat(y,"` was specified but was not a node, or did not return a node"))}var x=E;if(typeof E=="string"&&(x=r.querySelector(E),!x))throw new Error("`".concat(y,"` as selector refers to no known node"));return x},f=function(){var y=l("initialFocus");if(y===!1)return!1;if(y===void 0)if(u(r.activeElement)>=0)y=r.activeElement;else{var E=i.tabbableGroups[0],A=E&&E.firstTabbableNode;y=A||l("fallbackFocus")}if(!y)throw new Error("Your focus-trap needs to have at least one focusable element");return y},d=function(){if(i.containerGroups=i.containers.map(function(y){var E=vm(y,o.tabbableOptions),A=mm(y,o.tabbableOptions);return{container:y,tabbableNodes:E,focusableNodes:A,firstTabbableNode:E.length>0?E[0]:null,lastTabbableNode:E.length>0?E[E.length-1]:null,nextTabbableNode:function(P){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=A.findIndex(function(N){return N===P});if(!(k<0))return x?A.slice(k+1).find(function(N){return Zo(N,o.tabbableOptions)}):A.slice(0,k).reverse().find(function(N){return Zo(N,o.tabbableOptions)})}}}),i.tabbableGroups=i.containerGroups.filter(function(y){return y.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function S(y){if(y!==!1&&y!==r.activeElement){if(!y||!y.focus){S(f());return}y.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=y,Em(y)&&y.select()}},g=function(y){var E=l("setReturnFocus",y);return E||(E===!1?!1:y)},v=function(y){var E=Jo(y);if(!(u(E)>=0)){if(Tr(o.clickOutsideDeactivates,y)){s.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Ds(E,o.tabbableOptions)});return}Tr(o.allowOutsideClick,y)||y.preventDefault()}},p=function(y){var E=Jo(y),A=u(E)>=0;A||E instanceof Document?A&&(i.mostRecentlyFocusedNode=E):(y.stopImmediatePropagation(),h(i.mostRecentlyFocusedNode||f()))},C=function(y){var E=Jo(y);d();var A=null;if(i.tabbableGroups.length>0){var M=u(E),P=M>=0?i.containerGroups[M]:void 0;if(M<0)y.shiftKey?A=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:A=i.tabbableGroups[0].firstTabbableNode;else if(y.shiftKey){var x=Pu(i.tabbableGroups,function(G){var R=G.firstTabbableNode;return E===R});if(x<0&&(P.container===E||Ds(E,o.tabbableOptions)&&!Zo(E,o.tabbableOptions)&&!P.nextTabbableNode(E,!1))&&(x=M),x>=0){var k=x===0?i.tabbableGroups.length-1:x-1,N=i.tabbableGroups[k];A=N.lastTabbableNode}}else{var z=Pu(i.tabbableGroups,function(G){var R=G.lastTabbableNode;return E===R});if(z<0&&(P.container===E||Ds(E,o.tabbableOptions)&&!Zo(E,o.tabbableOptions)&&!P.nextTabbableNode(E))&&(z=M),z>=0){var Q=z===i.tabbableGroups.length-1?0:z+1,K=i.tabbableGroups[Q];A=K.firstTabbableNode}}}else A=l("fallbackFocus");A&&(y.preventDefault(),h(A))},w=function(y){if(wm(y)&&Tr(o.escapeDeactivates,y)!==!1){y.preventDefault(),s.deactivate();return}if(Cm(y)){C(y);return}},m=function(y){var E=Jo(y);u(E)>=0||Tr(o.clickOutsideDeactivates,y)||Tr(o.allowOutsideClick,y)||(y.preventDefault(),y.stopImmediatePropagation())},b=function(){if(i.active)return xu.activateTrap(s),i.delayInitialFocusTimer=o.delayInitialFocus?Ou(function(){h(f())}):h(f()),r.addEventListener("focusin",p,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",m,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),s},O=function(){if(i.active)return r.removeEventListener("focusin",p,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",m,!0),r.removeEventListener("keydown",w,!0),s};return s={get active(){return i.active},get paused(){return i.paused},activate:function(y){if(i.active)return this;var E=a(y,"onActivate"),A=a(y,"onPostActivate"),M=a(y,"checkCanFocusTrap");M||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,E&&E();var P=function(){M&&d(),b(),A&&A()};return M?(M(i.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(y){if(!i.active)return this;var E=Au({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},y);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,O(),i.active=!1,i.paused=!1,xu.deactivateTrap(s);var A=a(E,"onDeactivate"),M=a(E,"onPostDeactivate"),P=a(E,"checkCanReturnFocus"),x=a(E,"returnFocus","returnFocusOnDeactivate");A&&A();var k=function(){Ou(function(){x&&h(g(i.nodeFocusedBeforeActivation)),M&&M()})};return x&&P?(P(g(i.nodeFocusedBeforeActivation)).then(k,k),this):(k(),this)},pause:function(){return i.paused||!i.active?this:(i.paused=!0,O(),this)},unpause:function(){return!i.paused||!i.active?this:(i.paused=!1,d(),b(),this)},updateContainerElements:function(y){var E=[].concat(y).filter(Boolean);return i.containers=E.map(function(A){return typeof A=="string"?r.querySelector(A):A}),i.active&&d(),this}},s.updateContainerElements(e),s};function Lm(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var Ts=!1;if(typeof window<"u"){var Mu={get passive(){Ts=!0}};window.addEventListener("testPassive",null,Mu),window.removeEventListener("testPassive",null,Mu)}var ku=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),rn=[],_o=!1,Iu=-1,Br=void 0,Nr=void 0,Du=function(e){return rn.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(e))})},Xo=function(e){var n=e||window.event;return Du(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},Am=function(e){if(Nr===void 0){var n=!!e&&e.reserveScrollBarGap===!0,r=window.innerWidth-document.documentElement.clientWidth;n&&r>0&&(Nr=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}Br===void 0&&(Br=document.body.style.overflow,document.body.style.overflow="hidden")},xm=function(){Nr!==void 0&&(document.body.style.paddingRight=Nr,Nr=void 0),Br!==void 0&&(document.body.style.overflow=Br,Br=void 0)},Om=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},Pm=function(e,n){var r=e.targetTouches[0].clientY-Iu;return Du(e.target)?!1:n&&n.scrollTop===0&&r>0||Om(n)&&r<0?Xo(e):(e.stopPropagation(),!0)},Mm=function(e,n){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!rn.some(function(o){return o.targetElement===e})){var r={targetElement:e,options:n||{}};rn=[].concat(Lm(rn),[r]),ku?(e.ontouchstart=function(o){o.targetTouches.length===1&&(Iu=o.targetTouches[0].clientY)},e.ontouchmove=function(o){o.targetTouches.length===1&&Pm(o,e)},_o||(document.addEventListener("touchmove",Xo,Ts?{passive:!1}:void 0),_o=!0)):Am(n)}},km=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}rn=rn.filter(function(n){return n.targetElement!==e}),ku?(e.ontouchstart=null,e.ontouchmove=null,_o&&rn.length===0&&(document.removeEventListener("touchmove",Xo,Ts?{passive:!1}:void 0),_o=!1)):rn.length||xm()},Cn=[],Im=function(){return Cn.some(function(t){return t.activeTargets.length>0})},Dm=function(){return Cn.some(function(t){return t.skippedTargets.length>0})},Tu="ResizeObserver loop completed with undelivered notifications.",Tm=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Tu}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Tu),window.dispatchEvent(t)},jr;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(jr||(jr={}));var Sn=function(t){return Object.freeze(t)},Bm=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Sn(this)}return t}(),Bu=function(){function t(e,n,r,o){return this.x=e,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Sn(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,o=e.top,i=e.right,s=e.bottom,a=e.left,u=e.width,l=e.height;return{x:n,y:r,top:o,right:i,bottom:s,left:a,width:u,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Bs=function(t){return t instanceof SVGElement&&"getBBox"in t},Nu=function(t){if(Bs(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var o=t,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||t.getClientRects().length)},ju=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Nm=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ur=typeof window<"u"?window:{},$o=new WeakMap,Uu=/auto|scroll/,jm=/^tb|vertical/,Um=/msie|trident/i.test(Ur.navigator&&Ur.navigator.userAgent),Nt=function(t){return parseFloat(t||"0")},tr=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Bm((n?e:t)||0,(n?t:e)||0)},Hu=Sn({devicePixelContentBoxSize:tr(),borderBoxSize:tr(),contentBoxSize:tr(),contentRect:new Bu(0,0,0,0)}),zu=function(t,e){if(e===void 0&&(e=!1),$o.has(t)&&!e)return $o.get(t);if(Nu(t))return $o.set(t,Hu),Hu;var n=getComputedStyle(t),r=Bs(t)&&t.ownerSVGElement&&t.getBBox(),o=!Um&&n.boxSizing==="border-box",i=jm.test(n.writingMode||""),s=!r&&Uu.test(n.overflowY||""),a=!r&&Uu.test(n.overflowX||""),u=r?0:Nt(n.paddingTop),l=r?0:Nt(n.paddingRight),f=r?0:Nt(n.paddingBottom),d=r?0:Nt(n.paddingLeft),h=r?0:Nt(n.borderTopWidth),g=r?0:Nt(n.borderRightWidth),v=r?0:Nt(n.borderBottomWidth),p=r?0:Nt(n.borderLeftWidth),C=d+l,w=u+f,m=p+g,b=h+v,O=a?t.offsetHeight-b-t.clientHeight:0,S=s?t.offsetWidth-m-t.clientWidth:0,y=o?C+m:0,E=o?w+b:0,A=r?r.width:Nt(n.width)-y-S,M=r?r.height:Nt(n.height)-E-O,P=A+C+S+m,x=M+w+O+b,k=Sn({devicePixelContentBoxSize:tr(Math.round(A*devicePixelRatio),Math.round(M*devicePixelRatio),i),borderBoxSize:tr(P,x,i),contentBoxSize:tr(A,M,i),contentRect:new Bu(d,u,A,M)});return $o.set(t,k),k},Fu=function(t,e,n){var r=zu(t,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case jr.DEVICE_PIXEL_CONTENT_BOX:return s;case jr.BORDER_BOX:return o;default:return i}},Hm=function(){function t(e){var n=zu(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Sn([n.borderBoxSize]),this.contentBoxSize=Sn([n.contentBoxSize]),this.devicePixelContentBoxSize=Sn([n.devicePixelContentBoxSize])}return t}(),Vu=function(t){if(Nu(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},zm=function(){var t=1/0,e=[];Cn.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(l){var f=new Hm(l.target),d=Vu(l.target);a.push(f),l.lastReportedSize=Fu(l.target,l.observedBox),d<t&&(t=d)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var o=r[n];o()}return t},Gu=function(t){Cn.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Vu(o.target)>t?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Fm=function(){var t=0;for(Gu(t);Im();)t=zm(),Gu(t);return Dm()&&Tm(),t>0},Ns,Qu=[],Vm=function(){return Qu.splice(0).forEach(function(t){return t()})},Gm=function(t){if(!Ns){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Vm()}).observe(n,r),Ns=function(){n.textContent="".concat(e?e--:e++)}}Qu.push(t),Ns()},Qm=function(t){Gm(function(){requestAnimationFrame(t)})},ei=0,Ym=function(){return!!ei},Wm=250,Rm={attributes:!0,characterData:!0,childList:!0,subtree:!0},Yu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Wu=function(t){return t===void 0&&(t=0),Date.now()+t},js=!1,Km=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Wm),!js){js=!0;var r=Wu(e);Qm(function(){var o=!1;try{o=Fm()}finally{if(js=!1,e=r-Wu(),!Ym())return;o?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Rm)};document.body?n():Ur.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Yu.forEach(function(n){return Ur.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Yu.forEach(function(n){return Ur.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Us=new Km,Ru=function(t){!ei&&t>0&&Us.start(),ei+=t,!ei&&Us.stop()},qm=function(t){return!Bs(t)&&!Nm(t)&&getComputedStyle(t).display==="inline"},Zm=function(){function t(e,n){this.target=e,this.observedBox=n||jr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Fu(this.target,this.observedBox,!0);return qm(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Jm=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),ti=new WeakMap,Ku=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},ni=function(){function t(){}return t.connect=function(e,n){var r=new Jm(e,n);ti.set(e,r)},t.observe=function(e,n,r){var o=ti.get(e),i=o.observationTargets.length===0;Ku(o.observationTargets,n)<0&&(i&&Cn.push(o),o.observationTargets.push(new Zm(n,r&&r.box)),Ru(1),Us.schedule())},t.unobserve=function(e,n){var r=ti.get(e),o=Ku(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Cn.splice(Cn.indexOf(r),1),r.observationTargets.splice(o,1),Ru(-1))},t.disconnect=function(e){var n=this,r=ti.get(e);r.observationTargets.slice().forEach(function(o){return n.unobserve(e,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),_m=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ni.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ju(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ni.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ju(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ni.unobserve(this,e)},t.prototype.disconnect=function(){ni.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();function it(){return it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},it.apply(this,arguments)}function ri(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}var Hr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function zr(t,e,n){return e=(e=+e)==e?e:0,n=(n=+n)==n?n:0,(t=+t)==t&&(t=(t=t<=n?t:n)>=e?t:e),t}function oi(t){var e=Math.round(t);if(Number.isNaN(t))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return e}var Xm={box:"border-box"};function Hs(t,e){var n=e.label,r=e.enabled,o=e.resizeSourceRef,i=c.useState(0),s=i[0],a=i[1];c.useDebugValue(n+": "+s);var u=c.useCallback(function(l){a(l[0].borderBoxSize[0].blockSize),o.current="element"},[o]);return Hr(function(){if(t.current&&r){var l=new _m(u);return l.observe(t.current,Xm),function(){l.disconnect()}}},[t,u,r]),r?s:0}function st(t){return t===void 0&&(t=1e3),new Promise(function(e){return setTimeout(e,t)})}var qu={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Zu={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},$m=xg({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:it({},qu,Zu)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:it({},qu,Zu)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:it({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[Og({y:function(t,e){return e.payload.y},velocity:function(t,e){return e.payload.velocity},snapSource:function(t,e){var n=e.payload.source;return n===void 0?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(t,e){},onSnapCancel:function(t,e){},onResizeCancel:function(t,e){},onCloseCancel:function(t,e){},onOpenEnd:function(t,e){},onSnapEnd:function(t,e){},onRezizeEnd:function(t,e){}},services:{onSnapStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onOpenStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onCloseStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onResizeStart:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onSnapEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onOpenEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onCloseEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},onResizeEnd:function(){try{return Promise.resolve(st()).then(function(){})}catch(t){return Promise.reject(t)}},renderVisuallyHidden:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},activate:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},deactivate:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},openSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},openImmediately:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},snapSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},resizeSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}},closeSmoothly:function(t,e){try{return Promise.resolve(st()).then(function(){})}catch(n){return Promise.reject(n)}}},guards:{initiallyClosed:function(t){return t.initialState==="CLOSED"},initiallyOpen:function(t){return t.initialState==="OPEN"}}}),ey=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],ty=["velocity"],ny=["onRest","config"],Ju=$g.default,ry=Ju.tension,ii=Ju.friction,oy=c.forwardRef(function(t,e){var n=t.children,r=t.sibling,o=t.className,i=t.footer,s=t.header,a=t.open,u=t.initialState,l=t.lastSnapRef,f=t.initialFocusRef,d=t.onDismiss,h=t.maxHeight,g=t.defaultSnap,v=g===void 0?sy:g,p=t.snapPoints,C=p===void 0?ay:p,w=t.blocking,m=w===void 0||w,b=t.scrollLocking,O=b===void 0||b,S=t.style,y=t.onSpringStart,E=t.onSpringCancel,A=t.onSpringEnd,M=t.reserveScrollBarGap,P=M===void 0?m:M,x=t.expandOnContentDrag,k=x!==void 0&&x,N=ri(t,ey),z=function(){var F=c.useState(!1),ie=F[0],J=F[1],be=c.useState({}),Te=be[0],Ae=be[1],Be=c.useCallback(function(De){return Ae(function(He){var ge;return it({},He,((ge={})[De]=!1,ge))}),function(){Ae(function(He){var ge;return it({},He,((ge={})[De]=!0,ge))})}},[]);return c.useEffect(function(){var De=Object.values(Te);De.length!==0&&De.every(Boolean)&&J(!0)},[Te]),{ready:ie,registerReady:Be}}(),Q=z.ready,K=z.registerReady,G=c.useRef(!1),R=c.useRef(y),T=c.useRef(E),I=c.useRef(A);c.useEffect(function(){R.current=y,T.current=E,I.current=A},[E,y,A]);var D,V,H=ov(function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}}),Y=H[0],ne=H[1],U=c.useRef(null),ee=c.useRef(null),le=c.useRef(null),Z=c.useRef(null),B=c.useRef(null),q=c.useRef(null),_=c.useRef(0),re=c.useRef(),pe=c.useRef(!1),oe=(D=c.useMemo(function(){return typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)"):null},[]),V=c.useRef(D==null?void 0:D.matches),c.useDebugValue(V.current?"reduce":"no-preference"),c.useEffect(function(){var F=function(ie){V.current=ie.matches};return D==null||D.addListener(F),function(){return D==null?void 0:D.removeListener(F)}},[D]),V),ue=function(F){var ie=F.targetRef,J=F.enabled,be=F.reserveScrollBarGap,Te=c.useRef({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return c.useDebugValue(J?"Enabled":"Disabled"),c.useEffect(function(){if(!J)return Te.current.deactivate(),void(Te.current={activate:function(){},deactivate:function(){}});var Ae=ie.current,Be=!1;Te.current={activate:function(){Be||(Be=!0,Mm(Ae,{allowTouchMove:function(De){return De.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:be}))},deactivate:function(){Be&&(Be=!1,km(Ae))}}},[J,ie,be]),Te}({targetRef:ee,enabled:Q&&O,reserveScrollBarGap:P}),Le=function(F){var ie=F.targetRef,J=F.enabled,be=c.useRef({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return c.useDebugValue(J?"Enabled":"Disabled"),c.useEffect(function(){if(!J)return be.current.deactivate(),void(be.current={activate:function(){},deactivate:function(){}});var Te=ie.current,Ae=!1,Be=[],De=[];be.current={activate:function(){if(!Ae){Ae=!0;var He=Te.parentNode;document.querySelectorAll("body > *").forEach(function(ge){if(ge!==He){var we=ge.getAttribute("aria-hidden");we!==null&&we!=="false"||(Be.push(we),De.push(ge),ge.setAttribute("aria-hidden","true"))}})}},deactivate:function(){Ae&&(Ae=!1,De.forEach(function(He,ge){var we=Be[ge];we===null?He.removeAttribute("aria-hidden"):He.setAttribute("aria-hidden",we)}),Be=[],De=[])}}},[ie,J]),be}({targetRef:U,enabled:Q&&m}),Pe=function(F){var ie=F.targetRef,J=F.fallbackRef,be=F.initialFocusRef,Te=F.enabled,Ae=c.useRef({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return c.useDebugValue(Te?"Enabled":"Disabled"),c.useEffect(function(){if(!Te)return Ae.current.deactivate(),void(Ae.current={activate:function(){},deactivate:function(){}});var Be=J.current,De=Sm(ie.current,{onActivate:void 0,initialFocus:be?function(){return(be==null?void 0:be.current)||Be}:void 0,fallbackFocus:Be,escapeDeactivates:!1,clickOutsideDeactivates:!1}),He=!1;Ae.current={activate:function(){try{return He?Promise.resolve():(He=!0,Promise.resolve(De.activate()).then(function(){return Promise.resolve(new Promise(function(ge){return setTimeout(function(){return ge(void 0)},0)})).then(function(){})}))}catch(ge){return Promise.reject(ge)}},deactivate:function(){He&&(He=!1,De.deactivate())}}},[Te,J,be,ie]),Ae}({targetRef:U,fallbackRef:q,initialFocusRef:f||void 0,enabled:Q&&m&&f!==!1}),Me=function(F){var ie=F.getSnapPoints,J=F.heightRef,be=F.lastSnapRef,Te=F.ready,Ae=function(Ze){var pt=Ze.contentRef,gt=Ze.controlledMaxHeight,tt=Ze.footerEnabled,Gt=Ze.footerRef,Dt=Ze.headerEnabled,vt=Ze.headerRef,dn=Ze.registerReady,Zt=Ze.resizeSourceRef,no=c.useMemo(function(){return dn("contentHeight")},[dn]),ro=function(hn,Bn,Nn){var jn=c.useMemo(function(){return Bn("maxHeight")},[Bn]),Un=c.useState(function(){return oi(hn)||typeof window<"u"?window.innerHeight:0}),so=Un[0],ao=Un[1],pn=so>0,se=c.useRef(0);return c.useDebugValue(hn?"controlled":"auto"),c.useEffect(function(){pn&&jn()},[pn,jn]),Hr(function(){if(hn)return ao(oi(hn)),void(Nn.current="maxheightprop");var zd=function(){se.current||(se.current=requestAnimationFrame(function(){ao(window.innerHeight),Nn.current="window",se.current=0}))};return window.addEventListener("resize",zd),ao(window.innerHeight),Nn.current="window",jn(),function(){window.removeEventListener("resize",zd),cancelAnimationFrame(se.current)}},[hn,jn,Nn]),so}(gt,dn,Zt),fr=Hs(vt,{label:"headerHeight",enabled:Dt,resizeSourceRef:Zt}),oo=Hs(pt,{label:"contentHeight",enabled:!0,resizeSourceRef:Zt}),dr=Hs(Gt,{label:"footerHeight",enabled:tt,resizeSourceRef:Zt}),Tn=Math.min(ro-fr-dr,oo)+fr+dr;c.useDebugValue("minHeight: "+Tn);var io=oo>0;return c.useEffect(function(){io&&no()},[io,no]),{maxHeight:ro,minHeight:Tn,headerHeight:fr,footerHeight:dr}}({contentRef:F.contentRef,controlledMaxHeight:F.controlledMaxHeight,footerEnabled:F.footerEnabled,footerRef:F.footerRef,headerEnabled:F.headerEnabled,headerRef:F.headerRef,registerReady:F.registerReady,resizeSourceRef:F.resizeSourceRef}),Be=Ae.maxHeight,De=Ae.minHeight,He=Ae.headerHeight,ge=Ae.footerHeight,we=function(Ze,pt){var gt=[].concat(Ze).map(oi).reduce(function(vt,dn){return vt.add(zr(dn,0,pt)),vt},new Set),tt=Array.from(gt),Gt=Math.min.apply(Math,tt);if(Number.isNaN(Gt))throw new TypeError("minSnap is NaN");var Dt=Math.max.apply(Math,tt);if(Number.isNaN(Dt))throw new TypeError("maxSnap is NaN");return{snapPoints:tt,minSnap:Gt,maxSnap:Dt}}(Te?ie({height:J.current,footerHeight:ge,headerHeight:He,minHeight:De,maxHeight:Be}):[0],Be),ct=we.snapPoints,qt=we.minSnap,lt=we.maxSnap;return c.useDebugValue("minSnap: "+qt+", maxSnap:"+lt),{minSnap:qt,maxSnap:lt,findSnap:function(Ze){var pt=oi(typeof Ze=="function"?Ze({footerHeight:ge,headerHeight:He,height:J.current,minHeight:De,maxHeight:Be,snapPoints:ct,lastSnap:be.current}):Ze);return ct.reduce(function(gt,tt){return Math.abs(tt-pt)<Math.abs(gt-pt)?tt:gt},qt)},maxHeight:Be}}({contentRef:le,controlledMaxHeight:h,footerEnabled:!!i,footerRef:B,getSnapPoints:C,headerEnabled:s!==!1,headerRef:Z,heightRef:_,lastSnapRef:l,ready:Q,registerReady:K,resizeSourceRef:re}),ae=Me.minSnap,fe=Me.maxSnap,Ge=Me.maxHeight,_e=Me.findSnap,X=c.useRef(Ge),Qe=c.useRef(ae),Ue=c.useRef(fe),ht=c.useRef(_e),at=c.useRef(0);Hr(function(){X.current=Ge,Ue.current=fe,Qe.current=ae,ht.current=_e,at.current=_e(v)},[_e,v,Ge,fe,ae]);var de=c.useCallback(function(F){var ie=F.onRest,J=F.config,be=(J=J===void 0?{}:J).velocity,Te=be===void 0?1:be,Ae=ri(J,ty),Be=ri(F,ny);return new Promise(function(De){return ne(it({},Be,{config:it({velocity:Te},Ae,{mass:1,tension:ry,friction:Math.max(ii,ii+(ii-ii*Te))}),onRest:function(){var He=[].slice.call(arguments);De.apply(void 0,He),ie==null||ie.apply(void 0,He)}}))})},[ne]),Dn=jg($m,{devTools:!1,actions:{onOpenCancel:c.useCallback(function(){return T.current==null?void 0:T.current({type:"OPEN"})},[]),onSnapCancel:c.useCallback(function(F){return T.current==null?void 0:T.current({type:"SNAP",source:F.snapSource})},[]),onCloseCancel:c.useCallback(function(){return T.current==null?void 0:T.current({type:"CLOSE"})},[]),onResizeCancel:c.useCallback(function(){return T.current==null?void 0:T.current({type:"RESIZE",source:re.current})},[]),onOpenEnd:c.useCallback(function(){return I.current==null?void 0:I.current({type:"OPEN"})},[]),onSnapEnd:c.useCallback(function(F,ie){return I.current==null?void 0:I.current({type:"SNAP",source:F.snapSource})},[]),onResizeEnd:c.useCallback(function(){return I.current==null?void 0:I.current({type:"RESIZE",source:re.current})},[])},context:{initialState:u},services:{onSnapStart:c.useCallback(function(F,ie){try{return Promise.resolve(R.current==null?void 0:R.current({type:"SNAP",source:ie.payload.source||"custom"}))}catch(J){return Promise.reject(J)}},[]),onOpenStart:c.useCallback(function(){try{return Promise.resolve(R.current==null?void 0:R.current({type:"OPEN"}))}catch(F){return Promise.reject(F)}},[]),onCloseStart:c.useCallback(function(){try{return Promise.resolve(R.current==null?void 0:R.current({type:"CLOSE"}))}catch(F){return Promise.reject(F)}},[]),onResizeStart:c.useCallback(function(){try{return Promise.resolve(R.current==null?void 0:R.current({type:"RESIZE",source:re.current}))}catch(F){return Promise.reject(F)}},[]),onSnapEnd:c.useCallback(function(F,ie){try{return Promise.resolve(I.current==null?void 0:I.current({type:"SNAP",source:F.snapSource}))}catch(J){return Promise.reject(J)}},[]),onOpenEnd:c.useCallback(function(){try{return Promise.resolve(I.current==null?void 0:I.current({type:"OPEN"}))}catch(F){return Promise.reject(F)}},[]),onCloseEnd:c.useCallback(function(){try{return Promise.resolve(I.current==null?void 0:I.current({type:"CLOSE"}))}catch(F){return Promise.reject(F)}},[]),onResizeEnd:c.useCallback(function(){try{return Promise.resolve(I.current==null?void 0:I.current({type:"RESIZE",source:re.current}))}catch(F){return Promise.reject(F)}},[]),renderVisuallyHidden:c.useCallback(function(F,ie){try{return Promise.resolve(de({y:at.current,ready:0,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:!0})).then(function(){})}catch(J){return Promise.reject(J)}},[de]),activate:c.useCallback(function(F,ie){try{return G.current=!0,Promise.resolve(Promise.all([ue.current.activate(),Pe.current.activate(),Le.current.activate()])).then(function(){})}catch(J){return Promise.reject(J)}},[Le,Pe,ue]),deactivate:c.useCallback(function(){try{return ue.current.deactivate(),Pe.current.deactivate(),Le.current.deactivate(),G.current=!1,Promise.resolve()}catch(F){return Promise.reject(F)}},[Le,Pe,ue]),openImmediately:c.useCallback(function(){try{return _.current=at.current,Promise.resolve(de({y:at.current,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:!0})).then(function(){})}catch(F){return Promise.reject(F)}},[de]),openSmoothly:c.useCallback(function(){try{return Promise.resolve(de({y:0,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:!0})).then(function(){return _.current=at.current,Promise.resolve(de({y:at.current,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:at.current,immediate:oe.current})).then(function(){})})}catch(F){return Promise.reject(F)}},[de,oe]),snapSmoothly:c.useCallback(function(F,ie){try{var J=ht.current(F.y);return _.current=J,l.current=J,Promise.resolve(de({y:J,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:Qe.current,immediate:oe.current,config:{velocity:F.velocity}})).then(function(){})}catch(be){return Promise.reject(be)}},[de,l,oe]),resizeSmoothly:c.useCallback(function(){try{var F=ht.current(_.current);return _.current=F,l.current=F,Promise.resolve(de({y:F,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:Qe.current,immediate:re.current!=="element"||oe.current})).then(function(){})}catch(ie){return Promise.reject(ie)}},[de,l,oe]),closeSmoothly:c.useCallback(function(F,ie){try{return de({minSnap:_.current,immediate:!0}),_.current=0,Promise.resolve(de({y:0,maxHeight:X.current,maxSnap:Ue.current,immediate:oe.current})).then(function(){return Promise.resolve(de({ready:0,immediate:!0})).then(function(){})})}catch(J){return Promise.reject(J)}},[de,oe])}}),Hi=Dn[0],It=Dn[1];c.useEffect(function(){Q&&It(a?"OPEN":"CLOSE")},[a,It,Q]),Hr(function(){(Ge||fe||ae)&&It("RESIZE")},[Ge,fe,ae,It]),c.useEffect(function(){return function(){ue.current.deactivate(),Pe.current.deactivate(),Le.current.deactivate()}},[Le,Pe,ue]),c.useImperativeHandle(e,function(){return{snapTo:function(F,ie){var J=ie===void 0?{}:ie,be=J.velocity,Te=be===void 0?1:be,Ae=J.source,Be=Ae===void 0?"custom":Ae;It("SNAP",{payload:{y:ht.current(F),velocity:Te,source:Be}})},get height(){return _.current}}},[It]),c.useEffect(function(){var F=ee.current,ie=function(be){pe.current&&be.preventDefault()},J=function(be){F.scrollTop<0&&(requestAnimationFrame(function(){F.style.overflow="hidden",F.scrollTop=0,F.style.removeProperty("overflow")}),be.preventDefault())};return k&&(F.addEventListener("scroll",ie),F.addEventListener("touchmove",ie),F.addEventListener("touchstart",J)),function(){F.removeEventListener("scroll",ie),F.removeEventListener("touchmove",ie),F.removeEventListener("touchstart",J)}},[k,ee]);var Kt=om(function(F){var ie=F.args,J=(ie=ie===void 0?[]:ie)[0],be=(J=J===void 0?{}:J).closeOnTap,Te=be!==void 0&&be,Ae=J.isContentDragging,Be=Ae!==void 0&&Ae,De=F.cancel,He=F.direction[1],ge=F.down,we=F.first,ct=F.last,qt=F.memo,lt=qt===void 0?Y.y.getValue():qt,Ze=F.tap,pt=F.velocity,gt=-1*F.movement[1];if(!G.current)return De(),lt;if(d&&Te&&Ze)return De(),setTimeout(function(){return d()},0),lt;if(Ze)return lt;var tt=lt+gt,Gt=gt*pt,Dt=Math.max(Qe.current,Math.min(Ue.current,tt+2*Gt));if(!ge&&d&&He>0&&tt+Gt<Qe.current/2)return De(),d(),lt;var vt=ge?d||Qe.current!==Ue.current?kr(tt,d?0:Qe.current,Ue.current,.55):tt<Qe.current?kr(tt,Qe.current,2*Ue.current,.55):kr(tt,Qe.current/2,Ue.current,.55):Dt;return k&&Be?(vt>=Ue.current&&(vt=Ue.current),lt===Ue.current&&ee.current.scrollTop>0&&(vt=Ue.current),pe.current=vt<Ue.current):pe.current=!1,we&&It("DRAG"),ct?(It("SNAP",{payload:{y:vt,velocity:pt>.05?pt:1,source:"dragging"}}),lt):(ne({y:vt,ready:1,maxHeight:X.current,maxSnap:Ue.current,minSnap:Qe.current,immediate:!0,config:{velocity:pt}}),lt)},{filterTaps:!0});if(Number.isNaN(Ue.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(Qe.current))throw new TypeError("minSnapRef is NaN!!");var zi=function(F){var ie,J=F.spring,be=$n([J.y,J.maxHeight],function(ge,we){return Math.round(zr(we-ge,0,16))+"px"}),Te=$n([J.y,J.minSnap,J.maxSnap],function(ge,we,ct){return zr(ge,we,ct)+"px"}),Ae=$n([J.y,J.minSnap,J.maxSnap],function(ge,we,ct){return ge<we?we-ge+"px":ge>ct?ct-ge+"px":"0px"}),Be=$n([J.y,J.maxSnap],function(ge,we){return ge>=we?Math.ceil(ge-we):0}),De=$n([J.y,J.minSnap],function(ge,we){if(!we)return 0;var ct=Math.max(we/2-45,0);return zr((ge-ct)*(1/(Math.min(we/2+45,we)-ct)+0),0,1)}),He=$n([J.y,J.minSnap],function(ge,we){return we?zr(ge/we,0,1):0});return(ie={})["--rsbs-content-opacity"]=De,ie["--rsbs-backdrop-opacity"]=He,ie["--rsbs-antigap-scale-y"]=Be,ie["--rsbs-overlay-translate-y"]=Ae,ie["--rsbs-overlay-rounded"]=be,ie["--rsbs-overlay-h"]=Te,ie}({spring:Y});return c.createElement(Cv.div,it({},N,{"data-rsbs-root":!0,"data-rsbs-state":iy.find(Hi.matches),"data-rsbs-is-blocking":m,"data-rsbs-is-dismissable":!!d,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!i,className:o,ref:U,style:it({},zi,S,{opacity:Y.ready})}),r,m&&c.createElement("div",it({key:"backdrop","data-rsbs-backdrop":!0},Kt({closeOnTap:!0}))),c.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:q,onKeyDown:function(F){F.key==="Escape"&&(F.stopPropagation(),d&&d())}},s!==!1&&c.createElement("div",it({key:"header","data-rsbs-header":!0,ref:Z},Kt()),s),c.createElement("div",it({key:"scroll","data-rsbs-scroll":!0,ref:ee},k?Kt({isContentDragging:!0}):{}),c.createElement("div",{"data-rsbs-content":!0,ref:le},n)),i&&c.createElement("div",it({key:"footer",ref:B,"data-rsbs-footer":!0},Kt()),i)))}),iy=["closed","opening","open","closing","dragging","snapping","resizing"];function sy(t){var e=t.lastSnap;return e??Math.min.apply(Math,t.snapPoints)}function ay(t){return t.minHeight}var ly=["onSpringStart","onSpringEnd","skipInitialTransition"],_u=c.forwardRef(function(t,e){var n=t.onSpringStart,r=t.onSpringEnd,o=t.skipInitialTransition,i=ri(t,ly),s=c.useState(!1),a=s[0],u=s[1],l=c.useRef(),f=c.useRef(null),d=c.useRef(o&&i.open?"OPEN":"CLOSED");Hr(function(){if(i.open)return cancelAnimationFrame(l.current),u(!0),function(){d.current="CLOSED"}},[i.open]);var h=c.useCallback(function(v){return Promise.resolve(n==null?void 0:n(v)).then(function(){v.type==="OPEN"&&cancelAnimationFrame(l.current)})},[n]),g=c.useCallback(function(v){return Promise.resolve(r==null?void 0:r(v)).then(function(){v.type==="CLOSE"&&(l.current=requestAnimationFrame(function(){return u(!1)}))})},[r]);return a?c.createElement(Ip,{"data-rsbs-portal":!0},c.createElement(oy,it({},i,{lastSnapRef:f,ref:e,initialState:d.current,onSpringStart:h,onSpringEnd:g}))):null});function Xu(t,e){return function(){return t.apply(e,arguments)}}const{toString:uy}=Object.prototype,{getPrototypeOf:zs}=Object,si=(t=>e=>{const n=uy.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=t=>(t=t.toLowerCase(),e=>si(e)===t),ai=t=>e=>typeof e===t,{isArray:nr}=Array,Fr=ai("undefined");function cy(t){return t!==null&&!Fr(t)&&t.constructor!==null&&!Fr(t.constructor)&&St(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $u=jt("ArrayBuffer");function fy(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$u(t.buffer),e}const dy=ai("string"),St=ai("function"),ec=ai("number"),li=t=>t!==null&&typeof t=="object",hy=t=>t===!0||t===!1,ui=t=>{if(si(t)!=="object")return!1;const e=zs(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},py=jt("Date"),gy=jt("File"),vy=jt("Blob"),my=jt("FileList"),yy=t=>li(t)&&St(t.pipe),by=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||St(t.append)&&((e=si(t))==="formdata"||e==="object"&&St(t.toString)&&t.toString()==="[object FormData]"))},Ey=jt("URLSearchParams"),wy=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),nr(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,t[a],a,t)}}function tc(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const nc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rc=t=>!Fr(t)&&t!==nc;function Fs(){const{caseless:t}=rc(this)&&this||{},e={},n=(r,o)=>{const i=t&&tc(e,o)||o;ui(e[i])&&ui(r)?e[i]=Fs(e[i],r):ui(r)?e[i]=Fs({},r):nr(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Vr(arguments[r],n);return e}const Cy=(t,e,n,{allOwnKeys:r}={})=>(Vr(e,(o,i)=>{n&&St(o)?t[i]=Xu(o,n):t[i]=o},{allOwnKeys:r}),t),Sy=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ly=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Ay=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&zs(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},xy=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Oy=t=>{if(!t)return null;if(nr(t))return t;let e=t.length;if(!ec(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Py=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&zs(Uint8Array)),My=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},ky=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Iy=jt("HTMLFormElement"),Dy=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),oc=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ty=jt("RegExp"),ic=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Vr(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},By=t=>{ic(t,(e,n)=>{if(St(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(St(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ny=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return nr(t)?r(t):r(String(t).split(e)),n},jy=()=>{},Uy=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Vs="abcdefghijklmnopqrstuvwxyz",sc="0123456789",ac={DIGIT:sc,ALPHA:Vs,ALPHA_DIGIT:Vs+Vs.toUpperCase()+sc},Hy=(t=16,e=ac.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function zy(t){return!!(t&&St(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Fy=t=>{const e=new Array(10),n=(r,o)=>{if(li(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=nr(r)?[]:{};return Vr(r,(s,a)=>{const u=n(s,o+1);!Fr(u)&&(i[a]=u)}),e[o]=void 0,i}}return r};return n(t,0)},Vy=jt("AsyncFunction"),j={isArray:nr,isArrayBuffer:$u,isBuffer:cy,isFormData:by,isArrayBufferView:fy,isString:dy,isNumber:ec,isBoolean:hy,isObject:li,isPlainObject:ui,isUndefined:Fr,isDate:py,isFile:gy,isBlob:vy,isRegExp:Ty,isFunction:St,isStream:yy,isURLSearchParams:Ey,isTypedArray:Py,isFileList:my,forEach:Vr,merge:Fs,extend:Cy,trim:wy,stripBOM:Sy,inherits:Ly,toFlatObject:Ay,kindOf:si,kindOfTest:jt,endsWith:xy,toArray:Oy,forEachEntry:My,matchAll:ky,isHTMLForm:Iy,hasOwnProperty:oc,hasOwnProp:oc,reduceDescriptors:ic,freezeMethods:By,toObjectSet:Ny,toCamelCase:Dy,noop:jy,toFiniteNumber:Uy,findKey:tc,global:nc,isContextDefined:rc,ALPHABET:ac,generateString:Hy,isSpecCompliantForm:zy,toJSONObject:Fy,isAsyncFn:Vy,isThenable:t=>t&&(li(t)||St(t))&&St(t.then)&&St(t.catch)};function Se(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}j.inherits(Se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lc=Se.prototype,uc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{uc[t]={value:t}}),Object.defineProperties(Se,uc),Object.defineProperty(lc,"isAxiosError",{value:!0}),Se.from=(t,e,n,r,o,i)=>{const s=Object.create(lc);return j.toFlatObject(t,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),Se.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Gy=null;function Gs(t){return j.isPlainObject(t)||j.isArray(t)}function cc(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function fc(t,e,n){return t?t.concat(e).map(function(o,i){return o=cc(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function Qy(t){return j.isArray(t)&&!t.some(Gs)}const Yy=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function ci(t,e,n){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,C){return!j.isUndefined(C[p])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(j.isDate(v))return v.toISOString();if(!u&&j.isBlob(v))throw new Se("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(v)||j.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,p,C){let w=v;if(v&&!C&&typeof v=="object"){if(j.endsWith(p,"{}"))p=r?p:p.slice(0,-2),v=JSON.stringify(v);else if(j.isArray(v)&&Qy(v)||(j.isFileList(v)||j.endsWith(p,"[]"))&&(w=j.toArray(v)))return p=cc(p),w.forEach(function(b,O){!(j.isUndefined(b)||b===null)&&e.append(s===!0?fc([p],O,i):s===null?p:p+"[]",l(b))}),!1}return Gs(v)?!0:(e.append(fc(C,p,i),l(v)),!1)}const d=[],h=Object.assign(Yy,{defaultVisitor:f,convertValue:l,isVisitable:Gs});function g(v,p){if(!j.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(v),j.forEach(v,function(w,m){(!(j.isUndefined(w)||w===null)&&o.call(e,w,j.isString(m)?m.trim():m,p,h))===!0&&g(w,p?p.concat(m):[m])}),d.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return g(t),e}function dc(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Qs(t,e){this._pairs=[],t&&ci(t,this,e)}const hc=Qs.prototype;hc.append=function(e,n){this._pairs.push([e,n])},hc.toString=function(e){const n=e?function(r){return e.call(this,r,dc)}:dc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Wy(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pc(t,e,n){if(!e)return t;const r=n&&n.encode||Wy,o=n&&n.serialize;let i;if(o?i=o(e,n):i=j.isURLSearchParams(e)?e.toString():new Qs(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ry{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(r){r!==null&&e(r)})}}const gc=Ry,vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ky=typeof URLSearchParams<"u"?URLSearchParams:Qs,qy=typeof FormData<"u"?FormData:null,Zy=typeof Blob<"u"?Blob:null,Jy=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),_y=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kt={isBrowser:!0,classes:{URLSearchParams:Ky,FormData:qy,Blob:Zy},isStandardBrowserEnv:Jy,isStandardBrowserWebWorkerEnv:_y,protocols:["http","https","file","blob","url","data"]};function Xy(t,e){return ci(t,new kt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return kt.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function $y(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function e0(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function mc(t){function e(n,r,o,i){let s=n[i++];const a=Number.isFinite(+s),u=i>=n.length;return s=!s&&j.isArray(o)?o.length:s,u?(j.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!j.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&j.isArray(o[s])&&(o[s]=e0(o[s])),!a)}if(j.isFormData(t)&&j.isFunction(t.entries)){const n={};return j.forEachEntry(t,(r,o)=>{e($y(r),o,n,0)}),n}return null}function t0(t,e,n){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Ys={transitional:vc,adapter:kt.isNode?"http":"xhr",transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o&&o?JSON.stringify(mc(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xy(e,this.formSerializer).toString();if((a=j.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ci(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),t0(e)):e}],transformResponse:[function(e){const n=this.transitional||Ys.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&j.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Se.from(a,Se.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kt.classes.FormData,Blob:kt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{Ys.headers[t]={}});const Ws=Ys,n0=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r0=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
47
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&n0[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},yc=Symbol("internals");function Gr(t){return t&&String(t).trim().toLowerCase()}function fi(t){return t===!1||t==null?t:j.isArray(t)?t.map(fi):String(t)}function o0(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const i0=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Rs(t,e,n,r,o){if(j.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!j.isString(e)){if(j.isString(r))return e.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(e)}}function s0(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function a0(t,e){const n=j.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class di{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,u,l){const f=Gr(u);if(!f)throw new Error("header name must be a non-empty string");const d=j.findKey(o,f);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||u]=fi(a))}const s=(a,u)=>j.forEach(a,(l,f)=>i(l,f,u));return j.isPlainObject(e)||e instanceof this.constructor?s(e,n):j.isString(e)&&(e=e.trim())&&!i0(e)?s(r0(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Gr(e),e){const r=j.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return o0(o);if(j.isFunction(n))return n.call(this,o,r);if(j.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Gr(e),e){const r=j.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Rs(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Gr(s),s){const a=j.findKey(r,s);a&&(!n||Rs(r,r[a],a,n))&&(delete r[a],o=!0)}}return j.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||Rs(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return j.forEach(this,(o,i)=>{const s=j.findKey(r,i);if(s){n[s]=fi(o),delete n[i];return}const a=e?s0(i):String(i).trim();a!==i&&delete n[i],n[a]=fi(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return j.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&j.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
48
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[yc]=this[yc]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Gr(s);r[a]||(a0(o,s),r[a]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}}di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(di.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),j.freezeMethods(di);const Wt=di;function Ks(t,e){const n=this||Ws,r=e||n,o=Wt.from(r.headers);let i=r.data;return j.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function bc(t){return!!(t&&t.__CANCEL__)}function Qr(t,e,n){Se.call(this,t??"canceled",Se.ERR_CANCELED,e,n),this.name="CanceledError"}j.inherits(Qr,Se,{__CANCEL__:!0});function l0(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Se("Request failed with status code "+n.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const u0=kt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const u=[];u.push(n+"="+encodeURIComponent(r)),j.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),j.isString(i)&&u.push("path="+i),j.isString(s)&&u.push("domain="+s),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function c0(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function f0(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Ec(t,e){return t&&!c0(e)?f0(t,e):e}const d0=kt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=j.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function h0(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function p0(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),f=r[i];s||(s=l),n[o]=u,r[o]=l;let d=i,h=0;for(;d!==o;)h+=n[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-s<e)return;const g=f&&l-f;return g?Math.round(h*1e3/g):void 0}}function wc(t,e){let n=0;const r=p0(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,u=r(a),l=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&l?(s-i)/u:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const hi={http:Gy,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let o=t.data;const i=Wt.from(t.headers).normalize(),s=t.responseType;let a;function u(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}j.isFormData(o)&&(kt.isStandardBrowserEnv||kt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+v))}const f=Ec(t.baseURL,t.url);l.open(t.method.toUpperCase(),pc(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function d(){if(!l)return;const g=Wt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:t,request:l};l0(function(w){n(w),u()},function(w){r(w),u()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Se("Request aborted",Se.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new Se("Network Error",Se.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||vc;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),r(new Se(v,p.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,t,l)),l=null},kt.isStandardBrowserEnv){const g=(t.withCredentials||d0(f))&&t.xsrfCookieName&&u0.read(t.xsrfCookieName);g&&i.set(t.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&j.forEach(i.toJSON(),function(v,p){l.setRequestHeader(p,v)}),j.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",wc(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",wc(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=g=>{l&&(r(!g||g.type?new Qr(null,t,l):g),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const h=h0(f);if(h&&kt.protocols.indexOf(h)===-1){r(new Se("Unsupported protocol "+h+":",Se.ERR_BAD_REQUEST,t));return}l.send(o||null)})}};j.forEach(hi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Cc={getAdapter:t=>{t=j.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;o<e&&(n=t[o],!(r=j.isString(n)?hi[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new Se(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(j.hasOwnProp(hi,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!j.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:hi};function qs(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Qr(null,t)}function Sc(t){return qs(t),t.headers=Wt.from(t.headers),t.data=Ks.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Cc.getAdapter(t.adapter||Ws.adapter)(t).then(function(r){return qs(t),r.data=Ks.call(t,t.transformResponse,r),r.headers=Wt.from(r.headers),r},function(r){return bc(r)||(qs(t),r&&r.response&&(r.response.data=Ks.call(t,t.transformResponse,r.response),r.response.headers=Wt.from(r.response.headers))),Promise.reject(r)})}const Lc=t=>t instanceof Wt?t.toJSON():t;function rr(t,e){e=e||{};const n={};function r(l,f,d){return j.isPlainObject(l)&&j.isPlainObject(f)?j.merge.call({caseless:d},l,f):j.isPlainObject(f)?j.merge({},f):j.isArray(f)?f.slice():f}function o(l,f,d){if(j.isUndefined(f)){if(!j.isUndefined(l))return r(void 0,l,d)}else return r(l,f,d)}function i(l,f){if(!j.isUndefined(f))return r(void 0,f)}function s(l,f){if(j.isUndefined(f)){if(!j.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function a(l,f,d){if(d in e)return r(l,f);if(d in t)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,f)=>o(Lc(l),Lc(f),!0)};return j.forEach(Object.keys(Object.assign({},t,e)),function(f){const d=u[f]||o,h=d(t[f],e[f],f);j.isUndefined(h)&&d!==a||(n[f]=h)}),n}const Ac="1.5.0",Zs={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zs[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const xc={};Zs.transitional=function(e,n,r){function o(i,s){return"[Axios v"+Ac+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new Se(o(s," has been removed"+(n?" in "+n:"")),Se.ERR_DEPRECATED);return n&&!xc[s]&&(xc[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function g0(t,e,n){if(typeof t!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const a=t[i],u=a===void 0||s(a,i,t);if(u!==!0)throw new Se("option "+i+" must be "+u,Se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}}const Js={assertOptions:g0,validators:Zs},on=Js.validators;class pi{constructor(e){this.defaults=e,this.interceptors={request:new gc,response:new gc}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=rr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Js.assertOptions(r,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean)},!1),o!=null&&(j.isFunction(o)?n.paramsSerializer={serialize:o}:Js.assertOptions(o,{encode:on.function,serialize:on.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&j.merge(i.common,i[n.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Wt.concat(s,i);const a=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(u=u&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let f,d=0,h;if(!u){const v=[Sc.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,l),h=v.length,f=Promise.resolve(n);d<h;)f=f.then(v[d++],v[d++]);return f}h=a.length;let g=n;for(d=0;d<h;){const v=a[d++],p=a[d++];try{g=v(g)}catch(C){p.call(this,C);break}}try{f=Sc.call(this,g)}catch(v){return Promise.reject(v)}for(d=0,h=l.length;d<h;)f=f.then(l[d++],l[d++]);return f}getUri(e){e=rr(this.defaults,e);const n=Ec(e.baseURL,e.url);return pc(n,e.params,e.paramsSerializer)}}j.forEach(["delete","get","head","options"],function(e){pi.prototype[e]=function(n,r){return this.request(rr(r||{},{method:e,url:n,data:(r||{}).data}))}}),j.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(rr(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}pi.prototype[e]=n(),pi.prototype[e+"Form"]=n(!0)});const gi=pi;class _s{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Qr(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new _s(function(o){e=o}),cancel:e}}}const v0=_s;function m0(t){return function(n){return t.apply(null,n)}}function y0(t){return j.isObject(t)&&t.isAxiosError===!0}const Xs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xs).forEach(([t,e])=>{Xs[e]=t});const b0=Xs;function Oc(t){const e=new gi(t),n=Xu(gi.prototype.request,e);return j.extend(n,gi.prototype,e,{allOwnKeys:!0}),j.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Oc(rr(t,o))},n}const qe=Oc(Ws);qe.Axios=gi,qe.CanceledError=Qr,qe.CancelToken=v0,qe.isCancel=bc,qe.VERSION=Ac,qe.toFormData=ci,qe.AxiosError=Se,qe.Cancel=qe.CanceledError,qe.all=function(e){return Promise.all(e)},qe.spread=m0,qe.isAxiosError=y0,qe.mergeConfig=rr,qe.AxiosHeaders=Wt,qe.formToJSON=t=>mc(j.isHTMLForm(t)?new FormData(t):t),qe.getAdapter=Cc.getAdapter,qe.HttpStatusCode=b0,qe.default=qe;const vi=qe.create({baseURL:"https://ecomgate.omnic.solutions/api/1.0.0/type-1/public/"}),E0=512;var sn=(t=>(t[t.All=0]="All",t[t.PickPoint=20]="PickPoint",t[t.PostOffice=30]="PostOffice",t))(sn||{}),Ut=(t=>(t[t.PayByCash=0]="PayByCash",t[t.DressingRoom=1]="DressingRoom",t[t.CheckOrder=2]="CheckOrder",t))(Ut||{}),Ht=(t=>(t[t.Return=0]="Return",t[t.Payment=1]="Payment",t[t.Shipping=2]="Shipping",t))(Ht||{});const w0={[Ut.CheckOrder]:["is_check_order","is_delivery"],[Ut.DressingRoom]:["is_dressing_room","is_delivery"],[Ut.PayByCash]:["pay_by_cash","pay_by_card","is_delivery"]},C0={[Ht.Return]:["is_pickup"],[Ht.Shipping]:["is_pickup"],[Ht.Payment]:["pay_by_cash","pay_by_card","is_pickup"]};async function*Pc({q:t,filter:e,bounds:n}={},{loading:r,onCancel:o,controller:i}={}){r&&i&&(i.abort(),o==null||o());const s={status:30,page_size:E0};t&&(s.q=t),e!=null&&e.type&&(s.type=e.type),e!=null&&e.receive&&Object.entries(e==null?void 0:e.receive).forEach(([f,d])=>{if(!d)return;w0[f].forEach(g=>{s[g]=!0})}),e!=null&&e.send&&Object.entries(e==null?void 0:e.send).forEach(([f,d])=>{if(!d)return;C0[f].forEach(g=>{s[g]=!0})}),n&&(s.start_latitude=n[0][0],s.end_latitude=n[0][1],s.start_longitude=n[1][0],s.end_longitude=n[1][1]);let a=await vi.get("/locations/points",{params:s,signal:i==null?void 0:i.signal}),u=a.data.data.num_pages,l=a.data.data.current_page;for(;l<u;){yield a,s.page=l+1;const f=await vi.get("/locations/points",{params:s,signal:i==null?void 0:i.signal});a.data.data.results=[...a.data.data.results,...f.data.data.results],a=f,l=f.data.data.current_page,u=f.data.data.num_pages}return yield a,a}const $s=new WeakSet;let or=new AbortController;$s.add(or);const S0=()=>{or.abort(),$s.delete(or),or=new AbortController,$s.add(or)},Mc=(t,e,n)=>async r=>{const o={loading:t,controller:or,onCancel:S0};if(!n){const i=(await Pc({filter:e},o).next()).value;r(i.data);return}for await(const i of Pc({filter:e,bounds:n},o))r(i.data)},kc="@omnic/widget-locations",ea=(t,e)=>{var n;(n=document.getElementById(kc))==null||n.style.setProperty(t,e)},Ic=t=>{t.stopImmediatePropagation()},ta=async(t,e="ROOFTOP")=>{ho.setLocationType(e);const n=await ho.fromLatLng(t[0].toString(),t[1].toString()),r=n.results.map(o=>{var a,u;const i=(a=o.geometry)==null?void 0:a.viewport,s=(u=o.geometry)==null?void 0:u.location;return{...o,geometry:{...o.geometry,viewport:new google.maps.LatLngBounds(i.southwest,i.northeast),location:new google.maps.LatLng(s)}}});return{...n,results:r}},L0={points:[],error:!1,loaded:!1,loading:!1,reloading:!1},zt=Xt()((t,e)=>({...L0,async loadNext(n,r){const o=e().reloading;t({error:!1,reloading:!0}),ze.getState().setBounds(n);let i=0;try{await Mc(o,r,n)(a=>{t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++})}catch{t({error:!0})}finally{t({reloading:!1})}},async loadFirst(n){const r=e().loading,o=ze.getState().bounds;t({error:!1,loading:!0});let i=0;try{await Mc(r,n,o)(a=>{i>=1&&t({loading:!1,loaded:!0}),t(i===0?{points:a.data.results}:{points:[...e().points,...a.data.results]}),i++}),t({loading:!1,loaded:!0})}catch{t({error:!0,loading:!1})}finally{t({loading:!1})}}})),A0={query:"",type:sn.All,hours:["08:00","22:00"],send:{[Ht.Return]:!1,[Ht.Payment]:!1,[Ht.Shipping]:!1},receive:{[Ut.PayByCash]:!1,[Ut.CheckOrder]:!1,[Ut.DressingRoom]:!1}},Ln=Xt(t=>({...A0,setFilter(e){ze.getState().setDetailsOpen(!1),mt.getState().setCourierPoint(null),yt.getState().setSelectedPoint(null),t(e)}})),x0=()=>{c.useEffect(()=>{zt.getState().loadFirst();const t=Ln.subscribe(e=>{zt.getState().loadFirst(e)});return()=>{t()}},[])},Yr=".",na=Symbol("target"),Dc=Symbol("unsubscribe");function ra(t){return t instanceof Date||t instanceof Set||t instanceof Map||t instanceof WeakSet||t instanceof WeakMap||ArrayBuffer.isView(t)}function O0(t){return(typeof t=="object"?t===null:typeof t!="function")||t instanceof RegExp}const Ft=Array.isArray;function oa(t){return typeof t=="symbol"}const Lt={after:(t,e)=>Ft(t)?t.slice(e.length):e===""?t:t.slice(e.length+1),concat:(t,e)=>Ft(t)?(t=[...t],e&&t.push(e),t):e&&e.toString!==void 0?(t!==""&&(t+=Yr),oa(e)?t+e.toString():t+e):t,initial:t=>{if(Ft(t))return t.slice(0,-1);if(t==="")return t;const e=t.lastIndexOf(Yr);return e===-1?"":t.slice(0,e)},last:t=>{if(Ft(t))return t[t.length-1]||"";if(t==="")return t;const e=t.lastIndexOf(Yr);return e===-1?t:t.slice(e+1)},walk:(t,e)=>{if(Ft(t))for(const n of t)e(n);else if(t!==""){let n=0,r=t.indexOf(Yr);if(r===-1)e(t);else for(;n<t.length;)r===-1&&(r=t.length),e(t.slice(n,r)),n=r+1,r=t.indexOf(Yr,n)}},get(t,e){return this.walk(e,n=>{t&&(t=t[n])}),t}};function P0(t){return typeof t=="object"&&typeof t.next=="function"}function M0(t,e,n,r,o){const i=t.next;if(e.name==="entries")t.next=function(){const s=i.call(this);return s.done===!1&&(s.value[0]=o(s.value[0],e,s.value[0],r),s.value[1]=o(s.value[1],e,s.value[0],r)),s};else if(e.name==="values"){const s=n[na].keys();t.next=function(){const a=i.call(this);return a.done===!1&&(a.value=o(a.value,e,s.next().value,r)),a}}else t.next=function(){const s=i.call(this);return s.done===!1&&(s.value=o(s.value,e,s.value,r)),s};return t}function Tc(t,e,n){return t.isUnsubscribed||e.ignoreSymbols&&oa(n)||e.ignoreUnderscores&&n.charAt(0)==="_"||"ignoreKeys"in e&&e.ignoreKeys.includes(n)}class k0{constructor(e){this._equals=e,this._proxyCache=new WeakMap,this._pathCache=new WeakMap,this.isUnsubscribed=!1}_getDescriptorCache(){return this._descriptorCache===void 0&&(this._descriptorCache=new WeakMap),this._descriptorCache}_getProperties(e){const n=this._getDescriptorCache();let r=n.get(e);return r===void 0&&(r={},n.set(e,r)),r}_getOwnPropertyDescriptor(e,n){if(this.isUnsubscribed)return Reflect.getOwnPropertyDescriptor(e,n);const r=this._getProperties(e);let o=r[n];return o===void 0&&(o=Reflect.getOwnPropertyDescriptor(e,n),r[n]=o),o}getProxy(e,n,r,o){if(this.isUnsubscribed)return e;const i=e[o],s=i||e;this._pathCache.set(s,n);let a=this._proxyCache.get(s);return a===void 0&&(a=i===void 0?new Proxy(e,r):e,this._proxyCache.set(s,a)),a}getPath(e){return this.isUnsubscribed?void 0:this._pathCache.get(e)}isDetached(e,n){return!Object.is(e,Lt.get(n,this.getPath(e)))}defineProperty(e,n,r){return Reflect.defineProperty(e,n,r)?(this.isUnsubscribed||(this._getProperties(e)[n]=r),!0):!1}setProperty(e,n,r,o,i){if(!this._equals(i,r)||!(n in e)){const s=this._getOwnPropertyDescriptor(e,n);return s!==void 0&&"set"in s?Reflect.set(e,n,r,o):Reflect.set(e,n,r)}return!0}deleteProperty(e,n,r){if(Reflect.deleteProperty(e,n)){if(!this.isUnsubscribed){const o=this._getDescriptorCache().get(e);o&&(delete o[n],this._pathCache.delete(r))}return!0}return!1}isSameDescriptor(e,n,r){const o=this._getOwnPropertyDescriptor(n,r);return e!==void 0&&o!==void 0&&Object.is(e.value,o.value)&&(e.writable||!1)===(o.writable||!1)&&(e.enumerable||!1)===(o.enumerable||!1)&&(e.configurable||!1)===(o.configurable||!1)&&e.get===o.get&&e.set===o.set}isGetInvariant(e,n){const r=this._getOwnPropertyDescriptor(e,n);return r!==void 0&&r.configurable!==!0&&r.writable!==!0}unsubscribe(){this._descriptorCache=null,this._pathCache=null,this._proxyCache=null,this.isUnsubscribed=!0}}function ia(t){return toString.call(t)==="[object Object]"}function mi(){return!0}function ir(t,e){return t.length!==e.length||t.some((n,r)=>e[r]!==n)}const Bc=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),I0=new Set(["concat","includes","indexOf","join","keys","lastIndexOf"]),Nc={push:mi,pop:mi,shift:mi,unshift:mi,copyWithin:ir,reverse:ir,sort:ir,splice:ir,flat:ir,fill:ir},D0=new Set([...Bc,...I0,...Object.keys(Nc)]);function yi(t,e){if(t.size!==e.size)return!0;for(const n of t)if(!e.has(n))return!0;return!1}const jc=["keys","values","entries"],Uc=new Set(["has","toString"]),Hc={add:yi,clear:yi,delete:yi,forEach:yi},T0=new Set([...Uc,...Object.keys(Hc),...jc]);function bi(t,e){if(t.size!==e.size)return!0;let n;for(const[r,o]of t)if(n=e.get(r),n!==o||n===void 0&&!e.has(r))return!0;return!1}const B0=new Set([...Uc,"get"]),zc={set:bi,clear:bi,delete:bi,forEach:bi},N0=new Set([...B0,...Object.keys(zc),...jc]);class an{constructor(e,n,r,o){this._path=n,this._isChanged=!1,this._clonedCache=new Set,this._hasOnValidate=o,this._changes=o?[]:null,this.clone=n===void 0?e:this._shallowClone(e)}static isHandledMethod(e){return Bc.has(e)}_shallowClone(e){let n=e;if(ia(e))n={...e};else if(Ft(e)||ArrayBuffer.isView(e))n=[...e];else if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set([...e].map(r=>this._shallowClone(r)));else if(e instanceof Map){n=new Map;for(const[r,o]of e.entries())n.set(r,this._shallowClone(o))}return this._clonedCache.add(n),n}preferredThisArg(e,n,r,o){return e?(Ft(o)?this._onIsChanged=Nc[n]:o instanceof Set?this._onIsChanged=Hc[n]:o instanceof Map&&(this._onIsChanged=zc[n]),o):r}update(e,n,r){const o=Lt.after(e,this._path);if(n!=="length"){let i=this.clone;Lt.walk(o,s=>{i&&i[s]&&(this._clonedCache.has(i[s])||(i[s]=this._shallowClone(i[s])),i=i[s])}),this._hasOnValidate&&this._changes.push({path:o,property:n,previous:r}),i&&i[n]&&(i[n]=r)}this._isChanged=!0}undo(e){let n;for(let r=this._changes.length-1;r!==-1;r--)n=this._changes[r],Lt.get(e,n.path)[n.property]=n.previous}isChanged(e){return this._onIsChanged===void 0?this._isChanged:this._onIsChanged(this.clone,e)}}class Fc extends an{static isHandledMethod(e){return D0.has(e)}}class j0 extends an{undo(e){e.setTime(this.clone.getTime())}isChanged(e,n){return!n(this.clone.valueOf(),e.valueOf())}}class Vc extends an{static isHandledMethod(e){return T0.has(e)}undo(e){for(const n of this.clone)e.add(n);for(const n of e)this.clone.has(n)||e.delete(n)}}class Gc extends an{static isHandledMethod(e){return N0.has(e)}undo(e){for(const[n,r]of this.clone.entries())e.set(n,r);for(const n of e.keys())this.clone.has(n)||e.delete(n)}}class U0 extends an{constructor(e,n,r,o){super(void 0,n,r,o),this._arg1=r[0],this._weakValue=e.has(this._arg1)}isChanged(e){return this._weakValue!==e.has(this._arg1)}undo(e){this._weakValue&&!e.has(this._arg1)?e.add(this._arg1):e.delete(this._arg1)}}class H0 extends an{constructor(e,n,r,o){super(void 0,n,r,o),this._weakKey=r[0],this._weakHas=e.has(this._weakKey),this._weakValue=e.get(this._weakKey)}isChanged(e){return this._weakValue!==e.get(this._weakKey)}undo(e){const n=e.has(this._weakKey);this._weakHas&&!n?e.set(this._weakKey,this._weakValue):!this._weakHas&&n?e.delete(this._weakKey):this._weakValue!==e.get(this._weakKey)&&e.set(this._weakKey,this._weakValue)}}class An{constructor(e){this._stack=[],this._hasOnValidate=e}static isHandledType(e){return ia(e)||Ft(e)||ra(e)}static isHandledMethod(e,n){return ia(e)?an.isHandledMethod(n):Ft(e)?Fc.isHandledMethod(n):e instanceof Set?Vc.isHandledMethod(n):e instanceof Map?Gc.isHandledMethod(n):ra(e)}get isCloning(){return this._stack.length>0}start(e,n,r){let o=an;Ft(e)?o=Fc:e instanceof Date?o=j0:e instanceof Set?o=Vc:e instanceof Map?o=Gc:e instanceof WeakSet?o=U0:e instanceof WeakMap&&(o=H0),this._stack.push(new o(e,n,r,this._hasOnValidate))}update(e,n,r){this._stack[this._stack.length-1].update(e,n,r)}preferredThisArg(e,n,r){const{name:o}=e,i=An.isHandledMethod(r,o);return this._stack[this._stack.length-1].preferredThisArg(i,o,n,r)}isChanged(e,n,r){return this._stack[this._stack.length-1].isChanged(e,n,r)}undo(e){this._previousClone!==void 0&&this._previousClone.undo(e)}stop(){return this._previousClone=this._stack.pop(),this._previousClone.clone}}const z0={equals:Object.is,isShallow:!1,pathAsArray:!1,ignoreSymbols:!1,ignoreUnderscores:!1,ignoreDetached:!1,details:!1},Wr=(t,e,n={})=>{n={...z0,...n};const r=Symbol("ProxyTarget"),{equals:o,isShallow:i,ignoreDetached:s,details:a}=n,u=new k0(o),l=typeof n.onValidate=="function",f=new An(l),d=(m,b,O,S,y)=>!l||f.isCloning||n.onValidate(Lt.concat(u.getPath(m),b),O,S,y)===!0,h=(m,b,O,S)=>{!Tc(u,n,b)&&!(s&&u.isDetached(m,t))&&g(u.getPath(m),b,O,S)},g=(m,b,O,S,y)=>{f.isCloning?f.update(m,b,S):e(Lt.concat(m,b),O,S,y)},v=m=>m&&(m[r]||m),p=(m,b,O,S)=>O0(m)||O==="constructor"||i&&!An.isHandledMethod(b,O)||Tc(u,n,O)||u.isGetInvariant(b,O)||s&&u.isDetached(b,t)?m:(S===void 0&&(S=u.getPath(b)),u.getProxy(m,Lt.concat(S,O),C,r)),C={get(m,b,O){if(oa(b)){if(b===r||b===na)return m;if(b===Dc&&!u.isUnsubscribed&&u.getPath(m).length===0)return u.unsubscribe(),m}const S=ra(m)?Reflect.get(m,b):Reflect.get(m,b,O);return p(S,m,b)},set(m,b,O,S){O=v(O);const y=m[r]||m,E=y[b];if(o(E,O)&&b in m)return!0;const A=d(m,b,O,E);return A&&u.setProperty(y,b,O,S,E)?(h(m,b,m[b],E),!0):!A},defineProperty(m,b,O){if(!u.isSameDescriptor(O,m,b)){const S=m[b];d(m,b,O.value,S)&&u.defineProperty(m,b,O,S)&&h(m,b,O.value,S)}return!0},deleteProperty(m,b){if(!Reflect.has(m,b))return!0;const O=Reflect.get(m,b),S=d(m,b,void 0,O);return S&&u.deleteProperty(m,b,O)?(h(m,b,void 0,O),!0):!S},apply(m,b,O){const S=b[r]||b;if(u.isUnsubscribed)return Reflect.apply(m,S,O);if((a===!1||a!==!0&&!a.includes(m.name))&&An.isHandledType(S)){let y=Lt.initial(u.getPath(m));const E=An.isHandledMethod(S,m.name);f.start(S,y,O);let A=Reflect.apply(m,f.preferredThisArg(m,b,S),E?O.map(x=>v(x)):O);const M=f.isChanged(S,o),P=f.stop();if(An.isHandledType(A)&&E&&(b instanceof Map&&m.name==="get"&&(y=Lt.concat(y,O[0])),A=u.getProxy(A,y,C)),M){const x={name:m.name,args:O,result:A},k=f.isCloning?Lt.initial(y):y,N=f.isCloning?Lt.last(y):"";d(Lt.get(t,k),N,S,P,x)?g(k,N,S,P,x):f.undo(S)}return(b instanceof Map||b instanceof Set)&&P0(A)?M0(A,m,b,y,p):A}return Reflect.apply(m,b,O)}},w=u.getProxy(t,n.pathAsArray?[]:"",C);return e=e.bind(w),l&&(n.onValidate=n.onValidate.bind(w)),w};Wr.target=t=>t&&t[na]||t,Wr.unsubscribe=t=>t[Dc]||t;const F0=t=>{const e=t??window.OMNIC_WIDGET_LOCATIONS_CONFIG,[n,r]=c.useState({...vn,...e,map:{...vn.map,...e==null?void 0:e.map},palette:{...vn.palette,...e==null?void 0:e.palette}});console.log(n);const o=t&&!window.OMNIC_WIDGET_LOCATIONS_CONFIG,i=!t&&window.OMNIC_WIDGET_LOCATIONS_CONFIG;return c.useEffect(()=>{o&&r({...vn,...t,map:{...vn.map,...t.map},palette:{...vn.palette,...t.palette}})},[t,o]),c.useEffect(()=>{if(i)return window.OMNIC_WIDGET_LOCATIONS_CONFIG=Wr(window.OMNIC_WIDGET_LOCATIONS_CONFIG,function(){const s=Wr.target(this);s.map&&(s.map={...s.map}),s.palette&&(s.palette={...s.palette}),r({...s})}),()=>{window.OMNIC_WIDGET_LOCATIONS_CONFIG&&Wr.unsubscribe(window.OMNIC_WIDGET_LOCATIONS_CONFIG)}},[i]),n},V0=(t,e)=>{vi.defaults.headers.get.Authorization=`INN ${t}`,e!=null&&e.baseURL&&(vi.defaults.baseURL=e.baseURL)},G0={root:"Overlay-module__root__y8tkGi"},sa=({children:t,className:e})=>L.jsx("div",{className:Ce(G0.root,e),children:t}),Q0={loader:"Spinner-module__loader__HX--ed"},aa=()=>L.jsx("div",{className:Q0.loader,children:"Loading..."});/*! *****************************************************************************
|
|
49
49
|
Copyright (c) Microsoft Corporation.
|
|
50
50
|
|
|
51
51
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -60,10 +60,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60
60
|
PERFORMANCE OF THIS SOFTWARE.
|
|
61
61
|
***************************************************************************** */var la=function(t,e){return la=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},la(t,e)};function je(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");la(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var te=function(){return te=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},te.apply(this,arguments)};function ua(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Y0(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(d){s(d)}}function u(f){try{l(r.throw(f))}catch(d){s(d)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}function W0(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Qc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var R0=function(t,e,n,r,o,i,s,a){if(!t){var u;if(e===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,s,a],f=0;u=new Error(e.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},K0=R0,Re=Qc(K0),he=c.createContext(null);function q0(){Re(!!c.useContext,"useGoogleMap is React hook and requires React version 16.8+");var t=c.useContext(he);return Re(!!t,"useGoogleMap needs a GoogleMap available up in the tree"),t}function Z0(t,e,n){return Object.keys(t).reduce(function(o,i){return e(o,t[i],i)},n)}function J0(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function _0(t,e,n,r){var o={},i=function(s,a){var u=n[a];u!==e[a]&&(o[a]=u,s(r,u))};return J0(t,i),o}function X0(t,e,n){var r=Z0(n,function(i,s,a){return typeof t[a]=="function"&&i.push(google.maps.event.addListener(e,s,t[a])),i},[]);return r}function $0(t){google.maps.event.removeListener(t)}function ye(t){t===void 0&&(t=[]),t.forEach($0)}function ve(t){var e=t.updaterMap,n=t.eventMap,r=t.prevProps,o=t.nextProps,i=t.instance,s=X0(o,i,n);return _0(e,r,o,i),s}var Yc={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},Wc={extraMapTypes:function(t,e){e.forEach(function(r,o){t.mapTypes.set(String(o),r)})},center:function(t,e){t.setCenter(e)},clickableIcons:function(t,e){t.setClickableIcons(e)},heading:function(t,e){t.setHeading(e)},mapTypeId:function(t,e){t.setMapTypeId(e)},options:function(t,e){t.setOptions(e)},streetView:function(t,e){t.setStreetView(e)},tilt:function(t,e){t.setTilt(e)},zoom:function(t,e){t.setZoom(e)}};function eb(t){var e=t.children,n=t.options,r=t.id,o=t.mapContainerStyle,i=t.mapContainerClassName,s=t.center,a=t.onClick,u=t.onDblClick,l=t.onDrag,f=t.onDragEnd,d=t.onDragStart,h=t.onMouseMove,g=t.onMouseOut,v=t.onMouseOver,p=t.onMouseDown,C=t.onMouseUp,w=t.onRightClick,m=t.onCenterChanged,b=t.onLoad,O=t.onUnmount,S=c.useState(null),y=S[0],E=S[1],A=c.useRef(null),M=c.useState(null),P=M[0],x=M[1],k=c.useState(null),N=k[0],z=k[1],Q=c.useState(null),K=Q[0],G=Q[1],R=c.useState(null),T=R[0],I=R[1],D=c.useState(null),V=D[0],H=D[1],Y=c.useState(null),ne=Y[0],U=Y[1],ee=c.useState(null),le=ee[0],Z=ee[1],B=c.useState(null),q=B[0],_=B[1],re=c.useState(null),pe=re[0],oe=re[1],ue=c.useState(null),Le=ue[0],Pe=ue[1],Me=c.useState(null),ae=Me[0],fe=Me[1],Ge=c.useState(null),_e=Ge[0],X=Ge[1];return c.useEffect(function(){n&&y!==null&&y.setOptions(n)},[y,n]),c.useEffect(function(){y!==null&&typeof s<"u"&&y.setCenter(s)},[y,s]),c.useEffect(function(){y&&u&&(N!==null&&google.maps.event.removeListener(N),z(google.maps.event.addListener(y,"dblclick",u)))},[u]),c.useEffect(function(){y&&f&&(K!==null&&google.maps.event.removeListener(K),G(google.maps.event.addListener(y,"dragend",f)))},[f]),c.useEffect(function(){y&&d&&(T!==null&&google.maps.event.removeListener(T),I(google.maps.event.addListener(y,"dragstart",d)))},[d]),c.useEffect(function(){y&&p&&(V!==null&&google.maps.event.removeListener(V),H(google.maps.event.addListener(y,"mousedown",p)))},[p]),c.useEffect(function(){y&&h&&(ne!==null&&google.maps.event.removeListener(ne),U(google.maps.event.addListener(y,"mousemove",h)))},[h]),c.useEffect(function(){y&&g&&(le!==null&&google.maps.event.removeListener(le),Z(google.maps.event.addListener(y,"mouseout",g)))},[g]),c.useEffect(function(){y&&v&&(q!==null&&google.maps.event.removeListener(q),_(google.maps.event.addListener(y,"mouseover",v)))},[v]),c.useEffect(function(){y&&C&&(pe!==null&&google.maps.event.removeListener(pe),oe(google.maps.event.addListener(y,"mouseup",C)))},[C]),c.useEffect(function(){y&&w&&(Le!==null&&google.maps.event.removeListener(Le),Pe(google.maps.event.addListener(y,"rightclick",w)))},[w]),c.useEffect(function(){y&&a&&(ae!==null&&google.maps.event.removeListener(ae),fe(google.maps.event.addListener(y,"click",a)))},[a]),c.useEffect(function(){y&&l&&(_e!==null&&google.maps.event.removeListener(_e),X(google.maps.event.addListener(y,"drag",l)))},[l]),c.useEffect(function(){y&&m&&(P!==null&&google.maps.event.removeListener(P),x(google.maps.event.addListener(y,"center_changed",m)))},[a]),c.useEffect(function(){var Qe=A.current===null?null:new google.maps.Map(A.current,n);return E(Qe),Qe!==null&&b&&b(Qe),function(){Qe!==null&&O&&O(Qe)}},[]),L.jsx("div",{id:r,ref:A,style:o,className:i,children:L.jsx(he.Provider,{value:y,children:y!==null?e:L.jsx(L.Fragment,{})})})}c.memo(eb);var tb=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={map:null},n.registeredEvents=[],n.mapRef=null,n.getInstance=function(){return n.mapRef===null?null:new google.maps.Map(n.mapRef,n.props.options)},n.panTo=function(r){var o=n.getInstance();o&&o.panTo(r)},n.setMapCallback=function(){n.state.map!==null&&n.props.onLoad&&n.props.onLoad(n.state.map)},n.getRef=function(r){n.mapRef=r},n}return e.prototype.componentDidMount=function(){var n=this.getInstance();this.registeredEvents=ve({updaterMap:Wc,eventMap:Yc,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{map:n}},this.setMapCallback)},e.prototype.componentDidUpdate=function(n){this.state.map!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Wc,eventMap:Yc,prevProps:n,nextProps:this.props,instance:this.state.map}))},e.prototype.componentWillUnmount=function(){this.state.map!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),ye(this.registeredEvents))},e.prototype.render=function(){return L.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:L.jsx(he.Provider,{value:this.state.map,children:this.state.map!==null?this.props.children:L.jsx(L.Fragment,{})})})},e}(c.PureComponent),ln=typeof document<"u";function Rc(t){var e=t.url,n=t.id,r=t.nonce;return ln?new Promise(function(i,s){var a=document.getElementById(n),u=window;if(a){var l=a.getAttribute("data-state");if(a.src===e&&l!=="error"){if(l==="ready")return i(n);var f=u.initMap,d=a.onerror;u.initMap=function(){f&&f(),i(n)},a.onerror=function(g){d&&d(g),s(g)};return}else a.remove()}var h=document.createElement("script");h.type="text/javascript",h.src=e,h.id=n,h.async=!0,h.nonce=r||"",h.onerror=function(v){h.setAttribute("data-state","error"),s(v)},u.initMap=function(){h.setAttribute("data-state","ready"),i(n)},document.head.appendChild(h)}).catch(function(o){throw console.error("injectScript error: ",o),o}):Promise.reject(new Error("document is undefined"))}function Kc(t){var e=t.href;return e&&(e.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||e.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text")===0)?!0:t.tagName.toLowerCase()==="style"&&t.styleSheet&&t.styleSheet.cssText&&t.styleSheet.cssText.replace(`\r
|
|
62
62
|
`,"").indexOf(".gm-style")===0?(t.styleSheet.cssText="",!0):t.tagName.toLowerCase()==="style"&&t.innerHTML&&t.innerHTML.replace(`\r
|
|
63
|
-
`,"").indexOf(".gm-style")===0?(t.innerHTML="",!0):t.tagName.toLowerCase()==="style"&&!t.styleSheet&&!t.innerHTML}function ca(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(o,i){return Kc(o)||Reflect.apply(e,t,[o,i]),o};var n=t.appendChild.bind(t);t.appendChild=function(o){return Kc(o)||Reflect.apply(n,t,[o]),o}}}function qc(t){var e=t.googleMapsApiKey,n=t.googleMapsClientId,r=t.version,o=r===void 0?"weekly":r,i=t.language,s=t.region,a=t.libraries,u=t.channel,l=t.mapIds,f=t.authReferrerPolicy,d=[];return Re(e&&n||!(e&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?d.push("key=".concat(e)):n&&d.push("client=".concat(n)),o&&d.push("v=".concat(o)),i&&d.push("language=".concat(i)),s&&d.push("region=".concat(s)),a&&a.length&&d.push("libraries=".concat(a.sort().join(","))),u&&d.push("channel=".concat(u)),l&&l.length&&d.push("map_ids=".concat(l.join(","))),f&&d.push("auth_referrer_policy=".concat(f)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var
|
|
63
|
+
`,"").indexOf(".gm-style")===0?(t.innerHTML="",!0):t.tagName.toLowerCase()==="style"&&!t.styleSheet&&!t.innerHTML}function ca(){var t=document.getElementsByTagName("head")[0];if(t){var e=t.insertBefore.bind(t);t.insertBefore=function(o,i){return Kc(o)||Reflect.apply(e,t,[o,i]),o};var n=t.appendChild.bind(t);t.appendChild=function(o){return Kc(o)||Reflect.apply(n,t,[o]),o}}}function qc(t){var e=t.googleMapsApiKey,n=t.googleMapsClientId,r=t.version,o=r===void 0?"weekly":r,i=t.language,s=t.region,a=t.libraries,u=t.channel,l=t.mapIds,f=t.authReferrerPolicy,d=[];return Re(e&&n||!(e&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),e?d.push("key=".concat(e)):n&&d.push("client=".concat(n)),o&&d.push("v=".concat(o)),i&&d.push("language=".concat(i)),s&&d.push("region=".concat(s)),a&&a.length&&d.push("libraries=".concat(a.sort().join(","))),u&&d.push("channel=".concat(u)),l&&l.length&&d.push("map_ids=".concat(l.join(","))),f&&d.push("auth_referrer_policy=".concat(f)),d.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?".concat(d.join("&"))}var Rr=!1;function Zc(){return L.jsx("div",{children:"Loading..."})}var Kr={id:"script-loader",version:"weekly"};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.check=c.createRef(),n.state={loaded:!1},n.cleanupCallback=function(){delete window.google.maps,n.injectScript()},n.isCleaningUp=function(){return Y0(n,void 0,void 0,function(){function r(o){if(!Rr)o();else if(ln)var i=window.setInterval(function(){Rr||(window.clearInterval(i),o())},1)}return W0(this,function(o){return[2,new Promise(r)]})})},n.cleanup=function(){Rr=!0;var r=document.getElementById(n.props.id);r&&r.parentNode&&r.parentNode.removeChild(r),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(i){return typeof i.src=="string"&&i.src.includes("maps.googleapis")}).forEach(function(i){i.parentNode&&i.parentNode.removeChild(i)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(i){return i.href==="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"}).forEach(function(i){i.parentNode&&i.parentNode.removeChild(i)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(i){return i.innerText!==void 0&&i.innerText.length>0&&i.innerText.includes(".gm-")}).forEach(function(i){i.parentNode&&i.parentNode.removeChild(i)})},n.injectScript=function(){n.props.preventGoogleFontsLoading&&ca(),Re(!!n.props.id,'LoadScript requires "id" prop to be a string: %s',n.props.id);var r={id:n.props.id,nonce:n.props.nonce,url:qc(n.props)};Rc(r).then(function(){n.props.onLoad&&n.props.onLoad(),n.setState(function(){return{loaded:!0}})}).catch(function(o){n.props.onError&&n.props.onError(o),console.error(`
|
|
64
64
|
There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(n.props.googleMapsApiKey||"-",") or Client ID (").concat(n.props.googleMapsClientId||"-",`) to <LoadScript />
|
|
65
65
|
Otherwise it is a Network issue.
|
|
66
|
-
`))})},n}return e.prototype.componentDidMount=function(){if(ln){if(window.google&&window.google.maps&&!
|
|
66
|
+
`))})},n}return e.prototype.componentDidMount=function(){if(ln){if(window.google&&window.google.maps&&!Rr){console.error("google api is already presented");return}this.isCleaningUp().then(this.injectScript).catch(function(r){console.error("Error at injecting script after cleaning up: ",r)})}},e.prototype.componentDidUpdate=function(n){this.props.libraries!==n.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),ln&&n.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))},e.prototype.componentWillUnmount=function(){var n=this;if(ln){this.cleanup();var r=function(){n.check.current||(delete window.google,Rr=!1)};window.setTimeout(r,1),this.props.onUnmount&&this.props.onUnmount()}},e.prototype.render=function(){return L.jsxs(L.Fragment,{children:[L.jsx("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||L.jsx(Zc,{})]})},e.defaultProps=Kr,e})(c.PureComponent);var Jc;function nb(t){var e=t.id,n=e===void 0?Kr.id:e,r=t.version,o=r===void 0?Kr.version:r,i=t.nonce,s=t.googleMapsApiKey,a=t.googleMapsClientId,u=t.language,l=t.region,f=t.libraries,d=t.preventGoogleFontsLoading,h=t.channel,g=t.mapIds,v=t.authReferrerPolicy,p=c.useRef(!1),C=c.useState(!1),w=C[0],m=C[1],b=c.useState(void 0),O=b[0],S=b[1];c.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]),c.useEffect(function(){ln&&d&&ca()},[d]),c.useEffect(function(){w&&Re(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[w]);var y=qc({version:o,googleMapsApiKey:s,googleMapsClientId:a,language:u,region:l,libraries:f,channel:h,mapIds:g,authReferrerPolicy:v});c.useEffect(function(){if(!ln)return;function M(){p.current&&(m(!0),Jc=y)}if(window.google&&window.google.maps&&Jc===y){M();return}Rc({id:n,url:y,nonce:i}).then(M).catch(function(x){p.current&&S(x),console.warn(`
|
|
67
67
|
There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(s||"-",") or Client ID (").concat(a||"-",`)
|
|
68
68
|
Otherwise it is a Network issue.
|
|
69
69
|
`)),console.error(x)})},[n,y,i]);var E=c.useRef();return c.useEffect(function(){E.current&&f!==E.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),E.current=f},[f]),{isLoaded:w,loadError:O,url:y}}var rb=L.jsx(Zc,{});function ob(t){var e=t.loadingElement,n=t.onLoad,r=t.onError,o=t.onUnmount,i=t.children,s=ua(t,["loadingElement","onLoad","onError","onUnmount","children"]),a=nb(s),u=a.isLoaded,l=a.loadError;return c.useEffect(function(){u&&typeof n=="function"&&n()},[u,n]),c.useEffect(function(){l&&typeof r=="function"&&r(l)},[l,r]),c.useEffect(function(){return function(){o&&o()}},[o]),u?i:e||rb}c.memo(ob);/*! *****************************************************************************
|
|
@@ -79,7 +79,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
79
79
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
80
80
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
81
81
|
PERFORMANCE OF THIS SOFTWARE.
|
|
82
|
-
***************************************************************************** */function ib(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(d){s(d)}}function u(f){try{l(r.throw(f))}catch(d){s(d)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}var sb=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)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(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const _c="__googleMapsScriptId";var ir;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(ir||(ir={}));class An{constructor({apiKey:e,authReferrerPolicy:n,channel:r,client:o,id:i=_c,language:s,libraries:a=[],mapIds:u,nonce:l,region:f,retries:d=3,url:h="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=n,this.channel=r,this.client=o,this.id=i||_c,this.language=s,this.libraries=a,this.mapIds=u,this.nonce=l,this.region=f,this.retries=d,this.url=h,this.version=g,An.instance){if(!sb(this.options,An.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(An.instance.options)}`);return An.instance}An.instance=this}get options(){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,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?ir.FAILURE:this.done?ir.SUCCESS:this.loading?ir.LOADING:ir.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,n)=>{this.loadCallback(r=>{r?n(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,a,u,l="The Google Maps JavaScript API",f="google",d="importLibrary",h="__ib__",g=document,v=window;v=v[f]||(v[f]={});const p=v.maps||(v.maps={}),C=new Set,w=new URLSearchParams,m=()=>s||(s=new Promise((b,O)=>ib(this,void 0,void 0,function*(){var S;yield a=g.createElement("script"),a.id=this.id,w.set("libraries",[...C]+"");for(u in i)w.set(u.replace(/[A-Z]/g,y=>"_"+y[0].toLowerCase()),i[u]);w.set("callback",f+".maps."+h),a.src=this.url+"?"+w,p[h]=b,a.onerror=()=>s=O(Error(l+" could not load.")),a.nonce=this.nonce||((S=g.querySelector("script[nonce]"))===null||S===void 0?void 0:S.nonce)||"",g.head.append(a)})));p[d]?console.warn(l+" only loads once. Ignoring:",i):p[d]=(b,...O)=>C.add(b)&&m().then(()=>p[d](b,...O))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}var ab=["maps"];function lb(t){var e=t.id,n=e===void 0?Rr.id:e,r=t.version,o=r===void 0?Rr.version:r,i=t.nonce,s=t.googleMapsApiKey,a=t.language,u=t.region,l=t.libraries,f=l===void 0?ab:l,d=t.preventGoogleFontsLoading,h=t.mapIds,g=t.authReferrerPolicy,v=c.useRef(!1),p=c.useState(!1),C=p[0],w=p[1],m=c.useState(void 0),b=m[0],O=m[1];c.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var S=c.useMemo(function(){return new An({id:n,apiKey:s,version:o,libraries:f,language:a||"en",region:u||"US",mapIds:h||[],nonce:i||"",authReferrerPolicy:g||"origin"})},[n,s,o,f,a,u,h,i,g]);c.useEffect(function(){C||S.load().then(function(){v.current&&w(!0)}).catch(function(A){O(A)})},[]),c.useEffect(function(){ln&&d&&ca()},[d]);var y=c.useRef();return c.useEffect(function(){y.current&&f!==y.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),y.current=f},[f]),{isLoaded:C,loadError:b}}var Xc={},$c={options:function(t,e){t.setOptions(e)}};function ub(t){var e=t.options,n=t.onLoad,r=t.onUnmount,o=c.useContext(he),i=c.useState(null),s=i[0],a=i[1];return c.useEffect(function(){s!==null&&s.setMap(o)},[o]),c.useEffect(function(){e&&s!==null&&s.setOptions(e)},[s,e]),c.useEffect(function(){var u=new google.maps.TrafficLayer(te(te({},e||{}),{map:o}));return a(u),n&&n(u),function(){s!==null&&(r&&r(s),s.setMap(null))}},[]),null}c.memo(ub),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={trafficLayer:null},n.setTrafficLayerCallback=function(){n.state.trafficLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.trafficLayer)},n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=new google.maps.TrafficLayer(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:$c,eventMap:Xc,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{trafficLayer:n}},this.setTrafficLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.trafficLayer!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:$c,eventMap:Xc,prevProps:n,nextProps:this.props,instance:this.state.trafficLayer}))},e.prototype.componentWillUnmount=function(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),ye(this.registeredEvents),this.state.trafficLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);function cb(t){var e=t.onLoad,n=t.onUnmount,r=c.useContext(he),o=c.useState(null),i=o[0],s=o[1];return c.useEffect(function(){i!==null&&i.setMap(r)},[r]),c.useEffect(function(){var a=new google.maps.BicyclingLayer;return s(a),a.setMap(r),e&&e(a),function(){a!==null&&(n&&n(a),a.setMap(null))}},[]),null}c.memo(cb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={bicyclingLayer:null},n.setBicyclingLayerCallback=function(){n.state.bicyclingLayer!==null&&(n.state.bicyclingLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.bicyclingLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:n}},this.setBicyclingLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);function fb(t){var e=t.onLoad,n=t.onUnmount,r=c.useContext(he),o=c.useState(null),i=o[0],s=o[1];return c.useEffect(function(){i!==null&&i.setMap(r)},[r]),c.useEffect(function(){var a=new google.maps.TransitLayer;return s(a),a.setMap(r),e&&e(a),function(){i!==null&&(n&&n(i),i.setMap(null))}},[]),null}c.memo(fb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={transitLayer:null},n.setTransitLayerCallback=function(){n.state.transitLayer!==null&&(n.state.transitLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.transitLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:n}},this.setTransitLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var ef={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},tf={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}};function db(t){var e=t.options,n=t.drawingMode,r=t.onCircleComplete,o=t.onMarkerComplete,i=t.onOverlayComplete,s=t.onPolygonComplete,a=t.onPolylineComplete,u=t.onRectangleComplete,l=t.onLoad,f=t.onUnmount,d=c.useContext(he),h=c.useState(null),g=h[0],v=h[1],p=c.useState(null),C=p[0],w=p[1],m=c.useState(null),b=m[0],O=m[1],S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1];return c.useEffect(function(){g!==null&&g.setMap(d)},[d]),c.useEffect(function(){e&&g!==null&&g.setOptions(e)},[g,e]),c.useEffect(function(){n&&g!==null&&g.setDrawingMode(n)},[g,n]),c.useEffect(function(){g&&r&&(C!==null&&google.maps.event.removeListener(C),w(google.maps.event.addListener(g,"circlecomplete",r)))},[g,r]),c.useEffect(function(){g&&o&&(b!==null&&google.maps.event.removeListener(b),O(google.maps.event.addListener(g,"markercomplete",o)))},[g,o]),c.useEffect(function(){g&&i&&(y!==null&&google.maps.event.removeListener(y),E(google.maps.event.addListener(g,"overlaycomplete",i)))},[g,i]),c.useEffect(function(){g&&s&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(g,"polygoncomplete",s)))},[g,s]),c.useEffect(function(){g&&a&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(g,"polylinecomplete",a)))},[g,a]),c.useEffect(function(){g&&u&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(g,"rectanglecomplete",u)))},[g,u]),c.useEffect(function(){Re(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var G=new google.maps.drawing.DrawingManager(te(te({},e||{}),{map:d}));return n&&G.setDrawingMode(n),r&&w(google.maps.event.addListener(G,"circlecomplete",r)),o&&O(google.maps.event.addListener(G,"markercomplete",o)),i&&E(google.maps.event.addListener(G,"overlaycomplete",i)),s&&P(google.maps.event.addListener(G,"polygoncomplete",s)),a&&N(google.maps.event.addListener(G,"polylinecomplete",a)),u&&K(google.maps.event.addListener(G,"rectanglecomplete",u)),v(G),l&&l(G),function(){g!==null&&(C&&google.maps.event.removeListener(C),b&&google.maps.event.removeListener(b),y&&google.maps.event.removeListener(y),M&&google.maps.event.removeListener(M),k&&google.maps.event.removeListener(k),Q&&google.maps.event.removeListener(Q),f&&f(g),g.setMap(null))}},[]),null}c.memo(db),function(t){je(e,t);function e(n){var r=t.call(this,n)||this;return r.registeredEvents=[],r.state={drawingManager:null},r.setDrawingManagerCallback=function(){r.state.drawingManager!==null&&r.props.onLoad&&r.props.onLoad(r.state.drawingManager)},Re(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),r}return e.prototype.componentDidMount=function(){var n=new google.maps.drawing.DrawingManager(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:tf,eventMap:ef,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{drawingManager:n}},this.setDrawingManagerCallback)},e.prototype.componentDidUpdate=function(n){this.state.drawingManager!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:tf,eventMap:ef,prevProps:n,nextProps:this.props,instance:this.state.drawingManager}))},e.prototype.componentWillUnmount=function(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),ye(this.registeredEvents),this.state.drawingManager.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var nf={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},rf={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Ei={};function hb(t){var e=t.position,n=t.options,r=t.clusterer,o=t.noClustererRedraw,i=t.children,s=t.draggable,a=t.visible,u=t.animation,l=t.clickable,f=t.cursor,d=t.icon,h=t.label,g=t.opacity,v=t.shape,p=t.title,C=t.zIndex,w=t.onClick,m=t.onDblClick,b=t.onDrag,O=t.onDragEnd,S=t.onDragStart,y=t.onMouseOut,E=t.onMouseOver,A=t.onMouseUp,M=t.onMouseDown,P=t.onRightClick,x=t.onClickableChanged,k=t.onCursorChanged,N=t.onAnimationChanged,z=t.onDraggableChanged,Q=t.onFlatChanged,K=t.onIconChanged,G=t.onPositionChanged,R=t.onShapeChanged,T=t.onTitleChanged,I=t.onVisibleChanged,D=t.onZindexChanged,V=t.onLoad,H=t.onUnmount,Y=c.useContext(he),ne=c.useState(null),U=ne[0],ee=ne[1],le=c.useState(null),Z=le[0],B=le[1],q=c.useState(null),_=q[0],re=q[1],pe=c.useState(null),oe=pe[0],ue=pe[1],Le=c.useState(null),Pe=Le[0],Me=Le[1],ae=c.useState(null),fe=ae[0],Ge=ae[1],_e=c.useState(null),X=_e[0],Qe=_e[1],Ue=c.useState(null),ht=Ue[0],at=Ue[1],de=c.useState(null),In=de[0],Hi=de[1],It=c.useState(null),Kt=It[0],zi=It[1],F=c.useState(null),ie=F[0],J=F[1],be=c.useState(null),Te=be[0],Ae=be[1],Be=c.useState(null),De=Be[0],He=Be[1],ge=c.useState(null),we=ge[0],ct=ge[1],qt=c.useState(null),lt=qt[0],Ze=qt[1],pt=c.useState(null),gt=pt[0],tt=pt[1],Gt=c.useState(null),Dt=Gt[0],vt=Gt[1],dn=c.useState(null),Zt=dn[0],to=dn[1],no=c.useState(null),cr=no[0],ro=no[1],fr=c.useState(null),Dn=fr[0],oo=fr[1],hn=c.useState(null),Tn=hn[0],Bn=hn[1],Nn=c.useState(null),jn=Nn[0],io=Nn[1];c.useEffect(function(){U!==null&&U.setMap(Y)},[Y]),c.useEffect(function(){typeof n<"u"&&U!==null&&U.setOptions(n)},[U,n]),c.useEffect(function(){typeof s<"u"&&U!==null&&U.setDraggable(s)},[U,s]),c.useEffect(function(){e&&U!==null&&U.setPosition(e)},[U,e]),c.useEffect(function(){typeof a<"u"&&U!==null&&U.setVisible(a)},[U,a]),c.useEffect(function(){U==null||U.setAnimation(u)},[U,u]),c.useEffect(function(){U&&m&&(Z!==null&&google.maps.event.removeListener(Z),B(google.maps.event.addListener(U,"dblclick",m)))},[m]),c.useEffect(function(){U&&O&&(_!==null&&google.maps.event.removeListener(_),re(google.maps.event.addListener(U,"dragend",O)))},[O]),c.useEffect(function(){U&&S&&(oe!==null&&google.maps.event.removeListener(oe),ue(google.maps.event.addListener(U,"dragstart",S)))},[S]),c.useEffect(function(){U&&M&&(Pe!==null&&google.maps.event.removeListener(Pe),Me(google.maps.event.addListener(U,"mousedown",M)))},[M]),c.useEffect(function(){U&&y&&(fe!==null&&google.maps.event.removeListener(fe),Ge(google.maps.event.addListener(U,"mouseout",y)))},[y]),c.useEffect(function(){U&&E&&(X!==null&&google.maps.event.removeListener(X),Qe(google.maps.event.addListener(U,"mouseover",E)))},[E]),c.useEffect(function(){U&&A&&(ht!==null&&google.maps.event.removeListener(ht),at(google.maps.event.addListener(U,"mouseup",A)))},[A]),c.useEffect(function(){U&&P&&(In!==null&&google.maps.event.removeListener(In),Hi(google.maps.event.addListener(U,"rightclick",P)))},[P]),c.useEffect(function(){U&&w&&(Kt!==null&&google.maps.event.removeListener(Kt),zi(google.maps.event.addListener(U,"click",w)))},[w]),c.useEffect(function(){U&&b&&(ie!==null&&google.maps.event.removeListener(ie),J(google.maps.event.addListener(U,"drag",b)))},[b]),c.useEffect(function(){U&&x&&(Te!==null&&google.maps.event.removeListener(Te),Ae(google.maps.event.addListener(U,"clickable_changed",x)))},[x]),c.useEffect(function(){U&&k&&(De!==null&&google.maps.event.removeListener(De),He(google.maps.event.addListener(U,"cursor_changed",k)))},[k]),c.useEffect(function(){U&&N&&(we!==null&&google.maps.event.removeListener(we),ct(google.maps.event.addListener(U,"animation_changed",N)))},[N]),c.useEffect(function(){U&&z&&(lt!==null&&google.maps.event.removeListener(lt),Ze(google.maps.event.addListener(U,"draggable_changed",z)))},[z]),c.useEffect(function(){U&&Q&&(gt!==null&&google.maps.event.removeListener(gt),tt(google.maps.event.addListener(U,"flat_changed",Q)))},[Q]),c.useEffect(function(){U&&K&&(Dt!==null&&google.maps.event.removeListener(Dt),vt(google.maps.event.addListener(U,"icon_changed",K)))},[K]),c.useEffect(function(){U&&G&&(Zt!==null&&google.maps.event.removeListener(Zt),to(google.maps.event.addListener(U,"position_changed",G)))},[G]),c.useEffect(function(){U&&R&&(cr!==null&&google.maps.event.removeListener(cr),ro(google.maps.event.addListener(U,"shape_changed",R)))},[R]),c.useEffect(function(){U&&T&&(Dn!==null&&google.maps.event.removeListener(Dn),oo(google.maps.event.addListener(U,"title_changed",T)))},[T]),c.useEffect(function(){U&&I&&(Tn!==null&&google.maps.event.removeListener(Tn),Bn(google.maps.event.addListener(U,"visible_changed",I)))},[I]),c.useEffect(function(){U&&D&&(jn!==null&&google.maps.event.removeListener(jn),io(google.maps.event.addListener(U,"zindex_changed",D)))},[D]),c.useEffect(function(){var pn=te(te(te({},n||Ei),r?Ei:{map:Y}),{position:e}),se=new google.maps.Marker(pn);return r?r.addMarker(se,!!o):se.setMap(Y),e&&se.setPosition(e),typeof a<"u"&&se.setVisible(a),typeof s<"u"&&se.setDraggable(s),typeof l<"u"&&se.setClickable(l),typeof f=="string"&&se.setCursor(f),d&&se.setIcon(d),typeof h<"u"&&se.setLabel(h),typeof g<"u"&&se.setOpacity(g),v&&se.setShape(v),typeof p=="string"&&se.setTitle(p),typeof C=="number"&&se.setZIndex(C),m&&B(google.maps.event.addListener(se,"dblclick",m)),O&&re(google.maps.event.addListener(se,"dragend",O)),S&&ue(google.maps.event.addListener(se,"dragstart",S)),M&&Me(google.maps.event.addListener(se,"mousedown",M)),y&&Ge(google.maps.event.addListener(se,"mouseout",y)),E&&Qe(google.maps.event.addListener(se,"mouseover",E)),A&&at(google.maps.event.addListener(se,"mouseup",A)),P&&Hi(google.maps.event.addListener(se,"rightclick",P)),w&&zi(google.maps.event.addListener(se,"click",w)),b&&J(google.maps.event.addListener(se,"drag",b)),x&&Ae(google.maps.event.addListener(se,"clickable_changed",x)),k&&He(google.maps.event.addListener(se,"cursor_changed",k)),N&&ct(google.maps.event.addListener(se,"animation_changed",N)),z&&Ze(google.maps.event.addListener(se,"draggable_changed",z)),Q&&tt(google.maps.event.addListener(se,"flat_changed",Q)),K&&vt(google.maps.event.addListener(se,"icon_changed",K)),G&&to(google.maps.event.addListener(se,"position_changed",G)),R&&ro(google.maps.event.addListener(se,"shape_changed",R)),T&&oo(google.maps.event.addListener(se,"title_changed",T)),I&&Bn(google.maps.event.addListener(se,"visible_changed",I)),D&&io(google.maps.event.addListener(se,"zindex_changed",D)),ee(se),V&&V(se),function(){Z!==null&&google.maps.event.removeListener(Z),_!==null&&google.maps.event.removeListener(_),oe!==null&&google.maps.event.removeListener(oe),Pe!==null&&google.maps.event.removeListener(Pe),fe!==null&&google.maps.event.removeListener(fe),X!==null&&google.maps.event.removeListener(X),ht!==null&&google.maps.event.removeListener(ht),In!==null&&google.maps.event.removeListener(In),Kt!==null&&google.maps.event.removeListener(Kt),Te!==null&&google.maps.event.removeListener(Te),De!==null&&google.maps.event.removeListener(De),we!==null&&google.maps.event.removeListener(we),lt!==null&&google.maps.event.removeListener(lt),gt!==null&&google.maps.event.removeListener(gt),Dt!==null&&google.maps.event.removeListener(Dt),Zt!==null&&google.maps.event.removeListener(Zt),Dn!==null&&google.maps.event.removeListener(Dn),Tn!==null&&google.maps.event.removeListener(Tn),jn!==null&&google.maps.event.removeListener(jn),H&&H(se),r?r.removeMarker(se,!!o):se&&se.setMap(null)}},[]);var so=c.useMemo(function(){return i?c.Children.map(i,function(pn){if(!c.isValidElement(pn))return pn;var se=pn;return c.cloneElement(se,{anchor:U})}):null},[i,U]);return L.jsx(L.Fragment,{children:so})||null}c.memo(hb);var of=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=te(te(te({},this.props.options||Ei),this.props.clusterer?Ei:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(n),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=ve({updaterMap:rf,eventMap:nf,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},e.prototype.componentDidUpdate=function(n){this.marker&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:rf,eventMap:nf,prevProps:n,nextProps:this.props,instance:this.marker}))},e.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),ye(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},e.prototype.render=function(){var n=this,r=null;return this.props.children&&(r=c.Children.map(this.props.children,function(o){if(!c.isValidElement(o))return o;var i=o;return c.cloneElement(i,{anchor:n.marker})})),r||null},e.contextType=he,e}(c.PureComponent),pb=function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var n=this.cluster.getClusterer();if(google.maps.event.trigger(n,"click",this.cluster),google.maps.event.trigger(n,"clusterclick",this.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),o=this.cluster.getBounds(),i=n.getMap();i!==null&&"fitBounds"in i&&i.fitBounds(o),this.timeOut=window.setTimeout(function(){var s=n.getMap();if(s!==null){"fitBounds"in s&&s.fitBounds(o);var a=s.getZoom()||0;r!==null&&a>r&&s.setZoom(r+1)}},100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(e=this.getPanes())===null||e===void 0||e.overlayMouseTarget.appendChild(this.div);var n=this.getMap();n!==null&&(this.boundsChangedListener=google.maps.event.addListener(n,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),this.timeOut!==null&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=e!==null?"".concat(e.y,"px"):"0",this.div.style.left=e!==null?"".concat(e.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var e,n,r,o,i,s;if(this.div&&this.center){var a=this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?this.cluster.getClusterer().getTitle():this.sums.title,u=this.backgroundPosition.split(" "),l=parseInt(((e=u[0])===null||e===void 0?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),f=parseInt(((n=u[1])===null||n===void 0?void 0:n.replace(/^\s+|\s+$/g,""))||"0",10),d=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(d!==null?"".concat(d.y,"px"):"0","; left: ").concat(d!==null?"".concat(d.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var h=document.createElement("img");h.alt=a,h.src=this.url,h.width=this.width,h.height=this.height,h.setAttribute("style","position: absolute; top: ".concat(f,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(h.style.clip="rect(-".concat(f,"px, -").concat(l+this.width,"px, -").concat(f+this.height,", -").concat(l,")"));var g=document.createElement("div");g.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),!((r=this.sums)===null||r===void 0)&&r.text&&(g.innerText="".concat((o=this.sums)===null||o===void 0?void 0:o.text)),!((i=this.sums)===null||i===void 0)&&i.html&&(g.innerHTML="".concat((s=this.sums)===null||s===void 0?void 0:s.html)),this.div.innerHTML="",this.div.appendChild(h),this.div.appendChild(g),this.div.title=a,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(e){this.sums=e;var n=this.cluster.getClusterer().getStyles(),r=n[Math.min(n.length-1,Math.max(0,e.index-1))];r&&(this.url=r.url,this.height=r.height,this.width=r.width,r.className&&(this.className="".concat(this.clusterClassName," ").concat(r.className)),this.anchorText=r.anchorText||[0,0],this.anchorIcon=r.anchorIcon||[this.height/2,this.width/2],this.textColor=r.textColor||"black",this.textSize=r.textSize||11,this.textDecoration=r.textDecoration||"none",this.fontWeight=r.fontWeight||"bold",this.fontStyle=r.fontStyle||"normal",this.fontFamily=r.fontFamily||"Arial,sans-serif",this.backgroundPosition=r.backgroundPosition||"0 0")},t.prototype.setCenter=function(e){this.center=e},t.prototype.getPosFromLatLng=function(e){var n=this.getProjection().fromLatLngToDivPixel(e);return n!==null&&(n.x-=this.anchorIcon[1],n.y-=this.anchorIcon[0]),n},t}(),gb=function(){function t(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new pb(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),n=this.getMarkers(),r=0,o=n;r<o.length;r++){var i=o[r],s=i.getPosition();s&&e.extend(s)}return e},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(e){var n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter){var r=e.getPosition();if(r){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+r.lat())/o,(this.center.lng()*(o-1)+r.lng())/o),this.calculateBounds()}}}else{var r=e.getPosition();r&&(this.center=r,this.calculateBounds())}e.isAdded=!0,this.markers.push(e);var i=this.markers.length,s=this.markerClusterer.getMaxZoom(),a=(n=this.map)===null||n===void 0?void 0:n.getZoom();if(s!==null&&typeof a<"u"&&a>s)e.getMap()!==this.map&&e.setMap(this.map);else if(i<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(i===this.minClusterSize)for(var u=0,l=this.markers;u<l.length;u++){var f=l[u];f.setMap(null)}else e.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(e){if(this.bounds!==null){var n=e.getPosition();if(n)return this.bounds.contains(n)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var e,n=this.markers.length,r=this.markerClusterer.getMaxZoom(),o=(e=this.map)===null||e===void 0?void 0:e.getZoom();if(r!==null&&typeof o<"u"&&o>r){this.clusterIcon.hide();return}if(n<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},t.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var n=0;n<this.markers.length;n++)if(e===this.markers[n])return!0;return!1},t}();function vb(t,e){var n=t.length,r=n.toString().length,o=Math.min(r,e);return{text:n.toString(),index:o,title:""}}var mb=2e3,yb=500,bb="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",Eb="png",wb=[53,56,66,78,90],Cb="cluster",sf=function(){function t(e,n,r){n===void 0&&(n=[]),r===void 0&&(r={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,r.zoomOnClick!==void 0&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,r.averageCenter!==void 0&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,r.ignoreHidden!==void 0&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,r.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||bb,this.imageExtension=r.imageExtension||Eb,this.imageSizes=r.imageSizes||wb,this.calculator=r.calculator||vb,this.batchSize=r.batchSize||mb,this.batchSizeIE=r.batchSizeIE||yb,this.clusterClass=r.clusterClass||Cb,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onZoomChanged=function(){var e,n;this.resetViewport(!1),(((e=this.getMap())===null||e===void 0?void 0:e.getZoom())===(this.get("minZoom")||0)||((n=this.getMap())===null||n===void 0?void 0:n.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},t.prototype.onIdle=function(){this.redraw()},t.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),e!==null&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},t.prototype.onRemove=function(){for(var e=0,n=this.markers;e<n.length;e++){var r=n[e];r.getMap()!==this.activeMap&&r.setMap(this.activeMap)}for(var o=0,i=this.clusters;o<i.length;o++){var s=i[o];s.remove()}this.clusters=[];for(var a=0,u=this.listeners;a<u.length;a++){var l=u[a];google.maps.event.removeListener(l)}this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.getMap=function(){return null},t.prototype.getPanes=function(){return null},t.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},t.prototype.setMap=function(){},t.prototype.addListener=function(){return{remove:function(){}}},t.prototype.bindTo=function(){},t.prototype.get=function(){},t.prototype.notify=function(){},t.prototype.set=function(){},t.prototype.setValues=function(){},t.prototype.unbind=function(){},t.prototype.unbindAll=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},t.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),n=new google.maps.LatLngBounds,r=0,o=e;r<o.length;r++){var i=o[r],s=i.getPosition();s&&n.extend(s)}var a=this.getMap();a!==null&&"fitBounds"in a&&a.fitBounds(n)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(e){this.gridSize=e},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(e){this.maxZoom=e},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(e){this.styles=e},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(e){this.title=e},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(e){this.averageCenter=e},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(e){this.imageExtension=e},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(e){this.imagePath=e},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(e){this.imageSizes=e},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(e){this.calculator=e},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(e){this.clusterClass=e},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(e,n){this.pushMarkerTo(e),n||this.redraw()},t.prototype.addMarkers=function(e,n){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=e[r];o&&this.pushMarkerTo(o)}n||this.redraw()},t.prototype.pushMarkerTo=function(e){var n=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",function(){n.ready&&(e.isAdded=!1,n.repaint())}),e.isAdded=!1,this.markers.push(e)},t.prototype.removeMarker_=function(e){var n=-1;if(this.markers.indexOf)n=this.markers.indexOf(e);else for(var r=0;r<this.markers.length;r++)if(e===this.markers[r]){n=r;break}return n===-1?!1:(e.setMap(null),this.markers.splice(n,1),!0)},t.prototype.removeMarker=function(e,n){var r=this.removeMarker_(e);return!n&&r&&this.repaint(),r},t.prototype.removeMarkers=function(e,n){for(var r=!1,o=0,i=e;o<i.length;o++){var s=i[o];r=r||this.removeMarker_(s)}return!n&&r&&this.repaint(),r},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var r=0,o=e;r<o.length;r++){var i=o[r];i.remove()}},0)},t.prototype.getExtendedBounds=function(e){var n=this.getProjection(),r=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));r!==null&&(r.x+=this.gridSize,r.y-=this.gridSize);var o=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(o!==null&&(o.x-=this.gridSize,o.y+=this.gridSize),r!==null){var i=n.fromDivPixelToLatLng(r);i!==null&&e.extend(i)}if(o!==null){var s=n.fromDivPixelToLatLng(o);s!==null&&e.extend(s)}return e},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(e){for(var n=0,r=this.clusters;n<r.length;n++){var o=r[n];o.remove()}this.clusters=[];for(var i=0,s=this.markers;i<s.length;i++){var a=s[i];a.isAdded=!1,e&&a.setMap(null)}},t.prototype.distanceBetweenPoints=function(e,n){var r=6371,o=(n.lat()-e.lat())*Math.PI/180,i=(n.lng()-e.lng())*Math.PI/180,s=Math.sin(o/2)*Math.sin(o/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(n.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return r*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},t.prototype.isMarkerInBounds=function(e,n){var r=e.getPosition();return r?n.contains(r):!1},t.prototype.addToClosestCluster=function(e){for(var n,r=4e4,o=null,i=0,s=this.clusters;i<s.length;i++){var a=s[i];n=a;var u=n.getCenter(),l=e.getPosition();if(u&&l){var f=this.distanceBetweenPoints(u,l);f<r&&(r=f,o=n)}}o&&o.isMarkerInClusterBounds(e)?o.addMarker(e):(n=new gb(this),n.addMarker(e),this.clusters.push(n))},t.prototype.createClusters=function(e){var n=this;if(this.ready){e===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var r=this.getMap(),o=r!==null&&("getBounds"in r)?r.getBounds():null,i=(r==null?void 0:r.getZoom())||0,s=i>3?new google.maps.LatLngBounds(o==null?void 0:o.getSouthWest(),o==null?void 0:o.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),a=this.getExtendedBounds(s),u=Math.min(e+this.batchSize,this.markers.length),l=e;l<u;l++){var f=this.markers[l];f&&!f.isAdded&&this.isMarkerInBounds(f,a)&&(!this.ignoreHidden||this.ignoreHidden&&f.getVisible())&&this.addToClosestCluster(f)}if(u<this.markers.length)this.timerRefStatic=window.setTimeout(function(){n.createClusters(u)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var d=0,h=this.clusters;d<h.length;d++){var g=h[d];g.updateIcon()}}}},t.prototype.extend=function(e,n){return(function(o){for(var i in o.prototype){var s=i;this.prototype[s]=o.prototype[s]}return this}).apply(e,[n])},t}(),At={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},Oe={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},Sb={};function Lb(t){var e=t.children,n=t.options,r=t.averageCenter,o=t.batchSizeIE,i=t.calculator,s=t.clusterClass,a=t.enableRetinaIcons,u=t.gridSize,l=t.ignoreHidden,f=t.imageExtension,d=t.imagePath,h=t.imageSizes,g=t.maxZoom,v=t.minimumClusterSize,p=t.styles,C=t.title,w=t.zoomOnClick,m=t.onClick,b=t.onClusteringBegin,O=t.onClusteringEnd,S=t.onMouseOver,y=t.onMouseOut,E=t.onLoad,A=t.onUnmount,M=c.useState(null),P=M[0],x=M[1],k=c.useContext(he),N=c.useState(null),z=N[0],Q=N[1],K=c.useState(null),G=K[0],R=K[1],T=c.useState(null),I=T[0],D=T[1],V=c.useState(null),H=V[0],Y=V[1],ne=c.useState(null),U=ne[0],ee=ne[1];return c.useEffect(function(){P&&y&&(H!==null&&google.maps.event.removeListener(H),Y(google.maps.event.addListener(P,At.onMouseOut,y)))},[y]),c.useEffect(function(){P&&S&&(U!==null&&google.maps.event.removeListener(U),ee(google.maps.event.addListener(P,At.onMouseOver,S)))},[S]),c.useEffect(function(){P&&m&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(P,At.onClick,m)))},[m]),c.useEffect(function(){P&&b&&(G!==null&&google.maps.event.removeListener(G),R(google.maps.event.addListener(P,At.onClusteringBegin,b)))},[b]),c.useEffect(function(){P&&O&&(I!==null&&google.maps.event.removeListener(I),R(google.maps.event.addListener(P,At.onClusteringEnd,O)))},[O]),c.useEffect(function(){typeof r<"u"&&P!==null&&Oe.averageCenter(P,r)},[P,r]),c.useEffect(function(){typeof o<"u"&&P!==null&&Oe.batchSizeIE(P,o)},[P,o]),c.useEffect(function(){typeof i<"u"&&P!==null&&Oe.calculator(P,i)},[P,i]),c.useEffect(function(){typeof s<"u"&&P!==null&&Oe.clusterClass(P,s)},[P,s]),c.useEffect(function(){typeof a<"u"&&P!==null&&Oe.enableRetinaIcons(P,a)},[P,a]),c.useEffect(function(){typeof u<"u"&&P!==null&&Oe.gridSize(P,u)},[P,u]),c.useEffect(function(){typeof l<"u"&&P!==null&&Oe.ignoreHidden(P,l)},[P,l]),c.useEffect(function(){typeof f<"u"&&P!==null&&Oe.imageExtension(P,f)},[P,f]),c.useEffect(function(){typeof d<"u"&&P!==null&&Oe.imagePath(P,d)},[P,d]),c.useEffect(function(){typeof h<"u"&&P!==null&&Oe.imageSizes(P,h)},[P,h]),c.useEffect(function(){typeof g<"u"&&P!==null&&Oe.maxZoom(P,g)},[P,g]),c.useEffect(function(){typeof v<"u"&&P!==null&&Oe.minimumClusterSize(P,v)},[P,v]),c.useEffect(function(){typeof p<"u"&&P!==null&&Oe.styles(P,p)},[P,p]),c.useEffect(function(){typeof C<"u"&&P!==null&&Oe.title(P,C)},[P,C]),c.useEffect(function(){typeof w<"u"&&P!==null&&Oe.zoomOnClick(P,w)},[P,w]),c.useEffect(function(){if(k){var le=te({},n||Sb),Z=new sf(k,[],le);return r&&Oe.averageCenter(Z,r),o&&Oe.batchSizeIE(Z,o),i&&Oe.calculator(Z,i),s&&Oe.clusterClass(Z,s),a&&Oe.enableRetinaIcons(Z,a),u&&Oe.gridSize(Z,u),l&&Oe.ignoreHidden(Z,l),f&&Oe.imageExtension(Z,f),d&&Oe.imagePath(Z,d),h&&Oe.imageSizes(Z,h),g&&Oe.maxZoom(Z,g),v&&Oe.minimumClusterSize(Z,v),p&&Oe.styles(Z,p),C&&Oe.title(Z,C),w&&Oe.zoomOnClick(Z,w),y&&Y(google.maps.event.addListener(Z,At.onMouseOut,y)),S&&ee(google.maps.event.addListener(Z,At.onMouseOver,S)),m&&Q(google.maps.event.addListener(Z,At.onClick,m)),b&&R(google.maps.event.addListener(Z,At.onClusteringBegin,b)),O&&D(google.maps.event.addListener(Z,At.onClusteringEnd,O)),x(Z),E&&E(Z),function(){H!==null&&google.maps.event.removeListener(H),U!==null&&google.maps.event.removeListener(U),z!==null&&google.maps.event.removeListener(z),G!==null&&google.maps.event.removeListener(G),I!==null&&google.maps.event.removeListener(I),A&&A(Z)}}},[]),P!==null&&e(P)||null}c.memo(Lb);var Ab=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={markerClusterer:null},n.setClustererCallback=function(){n.state.markerClusterer!==null&&n.props.onLoad&&n.props.onLoad(n.state.markerClusterer)},n}return e.prototype.componentDidMount=function(){if(this.context){var n=new sf(this.context,[],this.props.options);this.registeredEvents=ve({updaterMap:Oe,eventMap:At,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{markerClusterer:n}},this.setClustererCallback)}},e.prototype.componentDidUpdate=function(n){this.state.markerClusterer&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Oe,eventMap:At,prevProps:n,nextProps:this.props,instance:this.state.markerClusterer}))},e.prototype.componentWillUnmount=function(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),ye(this.registeredEvents),this.state.markerClusterer.setMap(null))},e.prototype.render=function(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null},e.contextType=he,e}(c.PureComponent);function af(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}var lf=function(){function t(e){e===void 0&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",e.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),typeof e.visible>"u"&&(typeof e.isHidden>"u"?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var e=this,n=function(l){l.returnValue=!1,l.preventDefault&&l.preventDefault(),e.enableEventPropagation||af(l)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var r=this.getPanes();if(r!==null&&r[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var o=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-o.left-o.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var i=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],s=0,a=i;s<a.length;s++){var u=a[s];this.eventListeners.push(google.maps.event.addListener(this.div,u,af))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){e.div&&(e.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",n),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var e="";return this.closeBoxURL!==""&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},t.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},t.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},t.prototype.getCloseClickHandler=function(){return this.closeClickHandler},t.prototype.panBox=function(e){if(this.div&&!e){var n=this.getMap();if(n instanceof google.maps.Map){var r=0,o=0,i=n.getBounds();i&&!i.contains(this.position)&&n.setCenter(this.position);var s=n.getDiv(),a=s.offsetWidth,u=s.offsetHeight,l=this.pixelOffset.width,f=this.pixelOffset.height,d=this.div.offsetWidth,h=this.div.offsetHeight,g=this.infoBoxClearance.width,v=this.infoBoxClearance.height,p=this.getProjection(),C=p.fromLatLngToContainerPixel(this.position);C!==null&&(C.x<-l+g?r=C.x+l-g:C.x+d+l+g>a&&(r=C.x+d+l+g-a),this.alignBottom?C.y<-f+v+h?o=C.y+f-v-h:C.y+f+v>u&&(o=C.y+f+v-u):C.y<-f+v?o=C.y+f-v:C.y+h+f+v>u&&(o=C.y+h+f+v-u)),r===0&&o===0||n.panBy(r,o)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this.div.style[n]=e[n]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var r=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+r*100+')"',this.div.style.filter="alpha(opacity="+r*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var n=this.div.ownerDocument,r=n&&n.defaultView?n.defaultView.getComputedStyle(this.div,""):null;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}return e},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection(),n=e.fromLatLngToDivPixel(this.position);n!==null&&(this.div.style.left=n.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(n.y+this.pixelOffset.height)+"px":this.div.style.top=n.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(e){e===void 0&&(e={}),typeof e.boxClass<"u"&&(this.boxClass=e.boxClass,this.setBoxStyle()),typeof e.boxStyle<"u"&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),typeof e.content<"u"&&this.setContent(e.content),typeof e.disableAutoPan<"u"&&(this.disableAutoPan=e.disableAutoPan),typeof e.maxWidth<"u"&&(this.maxWidth=e.maxWidth),typeof e.pixelOffset<"u"&&(this.pixelOffset=e.pixelOffset),typeof e.alignBottom<"u"&&(this.alignBottom=e.alignBottom),typeof e.position<"u"&&this.setPosition(e.position),typeof e.zIndex<"u"&&this.setZIndex(e.zIndex),typeof e.closeBoxMargin<"u"&&(this.closeBoxMargin=e.closeBoxMargin),typeof e.closeBoxURL<"u"&&(this.closeBoxURL=e.closeBoxURL),typeof e.infoBoxClearance<"u"&&(this.infoBoxClearance=e.infoBoxClearance),typeof e.isHidden<"u"&&(this.isHidden=e.isHidden),typeof e.visible<"u"&&(this.isHidden=!e.visible),typeof e.enableEventPropagation<"u"&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){var e=this.getMap();return typeof e>"u"||e===null?!1:!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(e,n){var r=this;n&&(this.position=n.getPosition(),this.moveListener=google.maps.event.addListener(n,"position_changed",function(){var o=n.getPosition();r.setPosition(o)}),this.mapListener=google.maps.event.addListener(n,"map_changed",function(){r.setMap(n.map)})),this.setMap(e),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,n=this.eventListeners;e<n.length;e++){var r=n[e];google.maps.event.removeListener(r)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(e,n){return(function(o){for(var i in o.prototype)Object.prototype.hasOwnProperty.call(this,i)||(this.prototype[i]=o.prototype[i]);return this}).apply(e,[n])},t}(),uf={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},cf={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},xb={};function Ob(t){var e=t.children,n=t.anchor,r=t.options,o=t.position,i=t.zIndex,s=t.onCloseClick,a=t.onDomReady,u=t.onContentChanged,l=t.onPositionChanged,f=t.onZindexChanged,d=t.onLoad,h=t.onUnmount,g=c.useContext(he),v=c.useState(null),p=v[0],C=v[1],w=c.useState(null),m=w[0],b=w[1],O=c.useState(null),S=O[0],y=O[1],E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useRef(null);return c.useEffect(function(){g&&p!==null&&(p.close(),n?p.open(g,n):p.getPosition()&&p.open(g))},[g,p,n]),c.useEffect(function(){r&&p!==null&&p.setOptions(r)},[p,r]),c.useEffect(function(){if(o&&p!==null){var G=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o.lat,o.lng);p.setPosition(G)}},[o]),c.useEffect(function(){typeof i=="number"&&p!==null&&p.setZIndex(i)},[i]),c.useEffect(function(){p&&s&&(m!==null&&google.maps.event.removeListener(m),b(google.maps.event.addListener(p,"closeclick",s)))},[s]),c.useEffect(function(){p&&a&&(S!==null&&google.maps.event.removeListener(S),y(google.maps.event.addListener(p,"domready",a)))},[a]),c.useEffect(function(){p&&u&&(A!==null&&google.maps.event.removeListener(A),M(google.maps.event.addListener(p,"content_changed",u)))},[u]),c.useEffect(function(){p&&l&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(p,"position_changed",l)))},[l]),c.useEffect(function(){p&&f&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(p,"zindex_changed",f)))},[f]),c.useEffect(function(){if(g){var G=r||xb,R=G.position,T=ua(G,["position"]),I=void 0;R&&!(R instanceof google.maps.LatLng)&&(I=new google.maps.LatLng(R.lat,R.lng));var D=new lf(te(te({},T),I?{position:I}:{}));K.current=document.createElement("div"),C(D),s&&b(google.maps.event.addListener(D,"closeclick",s)),a&&y(google.maps.event.addListener(D,"domready",a)),u&&M(google.maps.event.addListener(D,"content_changed",u)),l&&k(google.maps.event.addListener(D,"position_changed",l)),f&&Q(google.maps.event.addListener(D,"zindex_changed",f)),D.setContent(K.current),n?D.open(g,n):D.getPosition()?D.open(g):Re(!1,"You must provide either an anchor or a position prop for <InfoBox>."),d&&d(D)}return function(){p!==null&&(m&&google.maps.event.removeListener(m),A&&google.maps.event.removeListener(A),S&&google.maps.event.removeListener(S),x&&google.maps.event.removeListener(x),z&&google.maps.event.removeListener(z),h&&h(p),p.close())}},[]),K.current?Un.createPortal(c.Children.only(e),K.current):null}c.memo(Ob),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoBox:null},n.open=function(r,o){o?n.context!==null&&r.open(n.context,o):r.getPosition()?n.context!==null&&r.open(n.context):Re(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},n.setInfoBoxCallback=function(){n.state.infoBox!==null&&n.containerElement!==null&&(n.state.infoBox.setContent(n.containerElement),n.open(n.state.infoBox,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoBox))},n}return e.prototype.componentDidMount=function(){var n=this.props.options||{},r=n.position,o=ua(n,["position"]),i;r&&!(r instanceof google.maps.LatLng)&&(i=new google.maps.LatLng(r.lat,r.lng));var s=new lf(te(te({},o),i?{position:i}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=ve({updaterMap:cf,eventMap:uf,prevProps:{},nextProps:this.props,instance:s}),this.setState({infoBox:s},this.setInfoBoxCallback)},e.prototype.componentDidUpdate=function(n){var r=this.state.infoBox;r!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:cf,eventMap:uf,prevProps:n,nextProps:this.props,instance:r}))},e.prototype.componentWillUnmount=function(){var n=this.props.onUnmount,r=this.state.infoBox;r!==null&&(n&&n(r),ye(this.registeredEvents),r.close())},e.prototype.render=function(){return this.containerElement?Un.createPortal(c.Children.only(this.props.children),this.containerElement):null},e.contextType=he,e}(c.PureComponent);var Pb=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)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(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},ff=Qc(Pb);const df=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],fa=1,Kr=8;class da{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(e,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=r>>4;if(o!==fa)throw new Error(`Got v${o} data when expected v${fa}.`);const i=df[r&15];if(!i)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new da(a,s,i,e)}constructor(e,n=64,r=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const i=df.indexOf(this.ArrayType),s=e*2*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-a%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${r}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,Kr,e),this.coords=new this.ArrayType(this.data,Kr+a+u,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(Kr+s+a+u),this.ids=new this.IndexArrayType(this.data,Kr,e),this.coords=new this.ArrayType(this.data,Kr+a+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(fa<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=e)}add(e,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=n,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return ha(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,n,r,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:s,nodeSize:a}=this,u=[0,i.length-1,0],l=[];for(;u.length;){const f=u.pop()||0,d=u.pop()||0,h=u.pop()||0;if(d-h<=a){for(let C=h;C<=d;C++){const w=s[2*C],m=s[2*C+1];w>=e&&w<=r&&m>=n&&m<=o&&l.push(i[C])}continue}const g=h+d>>1,v=s[2*g],p=s[2*g+1];v>=e&&v<=r&&p>=n&&p<=o&&l.push(i[g]),(f===0?e<=v:n<=p)&&(u.push(h),u.push(g-1),u.push(1-f)),(f===0?r>=v:o>=p)&&(u.push(g+1),u.push(d),u.push(1-f))}return l}within(e,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:s}=this,a=[0,o.length-1,0],u=[],l=r*r;for(;a.length;){const f=a.pop()||0,d=a.pop()||0,h=a.pop()||0;if(d-h<=s){for(let C=h;C<=d;C++)pf(i[2*C],i[2*C+1],e,n)<=l&&u.push(o[C]);continue}const g=h+d>>1,v=i[2*g],p=i[2*g+1];pf(v,p,e,n)<=l&&u.push(o[g]),(f===0?e-r<=v:n-r<=p)&&(a.push(h),a.push(g-1),a.push(1-f)),(f===0?e+r>=v:n+r>=p)&&(a.push(g+1),a.push(d),a.push(1-f))}return u}}function ha(t,e,n,r,o,i){if(o-r<=n)return;const s=r+o>>1;hf(t,e,s,r,o,i),ha(t,e,n,r,s-1,1-i),ha(t,e,n,s+1,o,1-i)}function hf(t,e,n,r,o,i){for(;o>r;){if(o-r>600){const l=o-r+1,f=n-r+1,d=Math.log(l),h=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*h*(l-h)/l)*(f-l/2<0?-1:1),v=Math.max(r,Math.floor(n-f*h/l+g)),p=Math.min(o,Math.floor(n+(l-f)*h/l+g));hf(t,e,n,v,p,i)}const s=e[2*n+i];let a=r,u=o;for(qr(t,e,r,n),e[2*o+i]>s&&qr(t,e,r,o);a<u;){for(qr(t,e,a,u),a++,u--;e[2*a+i]<s;)a++;for(;e[2*u+i]>s;)u--}e[2*r+i]===s?qr(t,e,r,u):(u++,qr(t,e,u,o)),u<=n&&(r=u+1),n<=u&&(o=u-1)}}function qr(t,e,n,r){pa(t,n,r),pa(e,2*n,2*r),pa(e,2*n+1,2*r+1)}function pa(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function pf(t,e,n,r){const o=t-n,i=e-r;return o*o+i*i}const Mb={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},gf=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1)),xn=2,un=3,ga=4,cn=5,vf=6;class kb{constructor(e){this.options=Object.assign(Object.create(Mb),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:n,minZoom:r,maxZoom:o}=this.options;n&&console.time("total time");const i=`prepare ${e.length} points`;n&&console.time(i),this.points=e;const s=[];for(let u=0;u<e.length;u++){const l=e[u];if(!l.geometry)continue;const[f,d]=l.geometry.coordinates,h=gf(wi(f)),g=gf(Ci(d));s.push(h,g,1/0,u,-1,1),this.options.reduce&&s.push(0)}let a=this.trees[o+1]=this._createTree(s);n&&console.timeEnd(i);for(let u=o;u>=r;u--){const l=+Date.now();a=this.trees[u]=this._createTree(this._cluster(a,u)),n&&console.log("z%d: %d clusters in %dms",u,a.numItems,+Date.now()-l)}return n&&console.timeEnd("total time"),this}getClusters(e,n){let r=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let i=e[2]===180?180:((e[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){const d=this.getClusters([r,o,180,s],n),h=this.getClusters([-180,o,i,s],n);return d.concat(h)}const a=this.trees[this._limitZoom(n)],u=a.range(wi(r),Ci(s),wi(i),Ci(o)),l=a.data,f=[];for(const d of u){const h=this.stride*d;f.push(l[h+cn]>1?mf(l,h,this.clusterProps):this.points[l[h+un]])}return f}getChildren(e){const n=this._getOriginId(e),r=this._getOriginZoom(e),o="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(o);const s=i.data;if(n*this.stride>=s.length)throw new Error(o);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),u=s[n*this.stride],l=s[n*this.stride+1],f=i.within(u,l,a),d=[];for(const h of f){const g=h*this.stride;s[g+ga]===e&&d.push(s[g+cn]>1?mf(s,g,this.clusterProps):this.points[s[g+un]])}if(d.length===0)throw new Error(o);return d}getLeaves(e,n,r){n=n||10,r=r||0;const o=[];return this._appendLeaves(o,e,n,r,0),o}getTile(e,n,r){const o=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:s,radius:a}=this.options,u=a/s,l=(r-u)/i,f=(r+1+u)/i,d={features:[]};return this._addTileFeatures(o.range((n-u)/i,l,(n+1+u)/i,f),o.data,n,r,i,d),n===0&&this._addTileFeatures(o.range(1-u/i,l,1,f),o.data,i,r,i,d),n===i-1&&this._addTileFeatures(o.range(0,l,u/i,f),o.data,-1,r,i,d),d.features.length?d:null}getClusterExpansionZoom(e){let n=this._getOriginZoom(e)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(e);if(n++,r.length!==1)break;e=r[0].properties.cluster_id}return n}_appendLeaves(e,n,r,o,i){const s=this.getChildren(n);for(const a of s){const u=a.properties;if(u&&u.cluster?i+u.point_count<=o?i+=u.point_count:i=this._appendLeaves(e,u.cluster_id,r,o,i):i<o?i++:e.push(a),e.length===r)break}return i}_createTree(e){const n=new da(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)n.add(e[r],e[r+1]);return n.finish(),n.data=e,n}_addTileFeatures(e,n,r,o,i,s){for(const a of e){const u=a*this.stride,l=n[u+cn]>1;let f,d,h;if(l)f=yf(n,u,this.clusterProps),d=n[u],h=n[u+1];else{const p=this.points[n[u+un]];f=p.properties;const[C,w]=p.geometry.coordinates;d=wi(C),h=Ci(w)}const g={type:1,geometry:[[Math.round(this.options.extent*(d*i-r)),Math.round(this.options.extent*(h*i-o))]],tags:f};let v;l||this.options.generateId?v=n[u+un]:v=this.points[n[u+un]].id,v!==void 0&&(g.id=v),s.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,n){const{radius:r,extent:o,reduce:i,minPoints:s}=this.options,a=r/(o*Math.pow(2,n)),u=e.data,l=[],f=this.stride;for(let d=0;d<u.length;d+=f){if(u[d+xn]<=n)continue;u[d+xn]=n;const h=u[d],g=u[d+1],v=e.within(u[d],u[d+1],a),p=u[d+cn];let C=p;for(const w of v){const m=w*f;u[m+xn]>n&&(C+=u[m+cn])}if(C>p&&C>=s){let w=h*p,m=g*p,b,O=-1;const S=((d/f|0)<<5)+(n+1)+this.points.length;for(const y of v){const E=y*f;if(u[E+xn]<=n)continue;u[E+xn]=n;const A=u[E+cn];w+=u[E]*A,m+=u[E+1]*A,u[E+ga]=S,i&&(b||(b=this._map(u,d,!0),O=this.clusterProps.length,this.clusterProps.push(b)),i(b,this._map(u,E)))}u[d+ga]=S,l.push(w/C,m/C,1/0,S,-1,C),i&&l.push(O)}else{for(let w=0;w<f;w++)l.push(u[d+w]);if(C>1)for(const w of v){const m=w*f;if(!(u[m+xn]<=n)){u[m+xn]=n;for(let b=0;b<f;b++)l.push(u[m+b])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,n,r){if(e[n+cn]>1){const s=this.clusterProps[e[n+vf]];return r?Object.assign({},s):s}const o=this.points[e[n+un]].properties,i=this.options.map(o);return r&&i===o?Object.assign({},i):i}}function mf(t,e,n){return{type:"Feature",id:t[e+un],properties:yf(t,e,n),geometry:{type:"Point",coordinates:[Ib(t[e]),Db(t[e+1])]}}}function yf(t,e,n){const r=t[e+cn],o=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,i=t[e+vf],s=i===-1?{}:Object.assign({},n[i]);return Object.assign(s,{cluster:!0,cluster_id:t[e+un],point_count:r,point_count_abbreviated:o})}function wi(t){return t/360+.5}function Ci(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function Ib(t){return(t-.5)*360}function Db(t){const e=(180-t*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! *****************************************************************************
|
|
82
|
+
***************************************************************************** */function ib(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(d){s(d)}}function u(f){try{l(r.throw(f))}catch(d){s(d)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}var sb=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)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(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const _c="__googleMapsScriptId";var sr;(function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"})(sr||(sr={}));class xn{constructor({apiKey:e,authReferrerPolicy:n,channel:r,client:o,id:i=_c,language:s,libraries:a=[],mapIds:u,nonce:l,region:f,retries:d=3,url:h="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=n,this.channel=r,this.client=o,this.id=i||_c,this.language=s,this.libraries=a,this.mapIds=u,this.nonce=l,this.region=f,this.retries=d,this.url=h,this.version=g,xn.instance){if(!sb(this.options,xn.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(xn.instance.options)}`);return xn.instance}xn.instance=this}get options(){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,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?sr.FAILURE:this.done?sr.SUCCESS:this.loading?sr.LOADING:sr.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,n)=>{this.loadCallback(r=>{r?n(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||n===void 0)&&n.importLibrary||(i=>{let s,a,u,l="The Google Maps JavaScript API",f="google",d="importLibrary",h="__ib__",g=document,v=window;v=v[f]||(v[f]={});const p=v.maps||(v.maps={}),C=new Set,w=new URLSearchParams,m=()=>s||(s=new Promise((b,O)=>ib(this,void 0,void 0,function*(){var S;yield a=g.createElement("script"),a.id=this.id,w.set("libraries",[...C]+"");for(u in i)w.set(u.replace(/[A-Z]/g,y=>"_"+y[0].toLowerCase()),i[u]);w.set("callback",f+".maps."+h),a.src=this.url+"?"+w,p[h]=b,a.onerror=()=>s=O(Error(l+" could not load.")),a.nonce=this.nonce||((S=g.querySelector("script[nonce]"))===null||S===void 0?void 0:S.nonce)||"",g.head.append(a)})));p[d]?console.warn(l+" only loads once. Ignoring:",i):p[d]=(b,...O)=>C.add(b)&&m().then(()=>p[d](b,...O))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}var ab=["maps"];function lb(t){var e=t.id,n=e===void 0?Kr.id:e,r=t.version,o=r===void 0?Kr.version:r,i=t.nonce,s=t.googleMapsApiKey,a=t.language,u=t.region,l=t.libraries,f=l===void 0?ab:l,d=t.preventGoogleFontsLoading,h=t.mapIds,g=t.authReferrerPolicy,v=c.useRef(!1),p=c.useState(!1),C=p[0],w=p[1],m=c.useState(void 0),b=m[0],O=m[1];c.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var S=c.useMemo(function(){return new xn({id:n,apiKey:s,version:o,libraries:f,language:a||"en",region:u||"US",mapIds:h||[],nonce:i||"",authReferrerPolicy:g||"origin"})},[n,s,o,f,a,u,h,i,g]);c.useEffect(function(){C||S.load().then(function(){v.current&&w(!0)}).catch(function(A){O(A)})},[]),c.useEffect(function(){ln&&d&&ca()},[d]);var y=c.useRef();return c.useEffect(function(){y.current&&f!==y.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),y.current=f},[f]),{isLoaded:C,loadError:b}}var Xc={},$c={options:function(t,e){t.setOptions(e)}};function ub(t){var e=t.options,n=t.onLoad,r=t.onUnmount,o=c.useContext(he),i=c.useState(null),s=i[0],a=i[1];return c.useEffect(function(){s!==null&&s.setMap(o)},[o]),c.useEffect(function(){e&&s!==null&&s.setOptions(e)},[s,e]),c.useEffect(function(){var u=new google.maps.TrafficLayer(te(te({},e||{}),{map:o}));return a(u),n&&n(u),function(){s!==null&&(r&&r(s),s.setMap(null))}},[]),null}c.memo(ub),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={trafficLayer:null},n.setTrafficLayerCallback=function(){n.state.trafficLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.trafficLayer)},n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=new google.maps.TrafficLayer(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:$c,eventMap:Xc,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{trafficLayer:n}},this.setTrafficLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.trafficLayer!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:$c,eventMap:Xc,prevProps:n,nextProps:this.props,instance:this.state.trafficLayer}))},e.prototype.componentWillUnmount=function(){this.state.trafficLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),ye(this.registeredEvents),this.state.trafficLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);function cb(t){var e=t.onLoad,n=t.onUnmount,r=c.useContext(he),o=c.useState(null),i=o[0],s=o[1];return c.useEffect(function(){i!==null&&i.setMap(r)},[r]),c.useEffect(function(){var a=new google.maps.BicyclingLayer;return s(a),a.setMap(r),e&&e(a),function(){a!==null&&(n&&n(a),a.setMap(null))}},[]),null}c.memo(cb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={bicyclingLayer:null},n.setBicyclingLayerCallback=function(){n.state.bicyclingLayer!==null&&(n.state.bicyclingLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.bicyclingLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.BicyclingLayer;this.setState(function(){return{bicyclingLayer:n}},this.setBicyclingLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.bicyclingLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);function fb(t){var e=t.onLoad,n=t.onUnmount,r=c.useContext(he),o=c.useState(null),i=o[0],s=o[1];return c.useEffect(function(){i!==null&&i.setMap(r)},[r]),c.useEffect(function(){var a=new google.maps.TransitLayer;return s(a),a.setMap(r),e&&e(a),function(){i!==null&&(n&&n(i),i.setMap(null))}},[]),null}c.memo(fb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={transitLayer:null},n.setTransitLayerCallback=function(){n.state.transitLayer!==null&&(n.state.transitLayer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.transitLayer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:n}},this.setTransitLayerCallback)},e.prototype.componentWillUnmount=function(){this.state.transitLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var ef={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},tf={drawingMode:function(t,e){t.setDrawingMode(e)},options:function(t,e){t.setOptions(e)}};function db(t){var e=t.options,n=t.drawingMode,r=t.onCircleComplete,o=t.onMarkerComplete,i=t.onOverlayComplete,s=t.onPolygonComplete,a=t.onPolylineComplete,u=t.onRectangleComplete,l=t.onLoad,f=t.onUnmount,d=c.useContext(he),h=c.useState(null),g=h[0],v=h[1],p=c.useState(null),C=p[0],w=p[1],m=c.useState(null),b=m[0],O=m[1],S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1];return c.useEffect(function(){g!==null&&g.setMap(d)},[d]),c.useEffect(function(){e&&g!==null&&g.setOptions(e)},[g,e]),c.useEffect(function(){n&&g!==null&&g.setDrawingMode(n)},[g,n]),c.useEffect(function(){g&&r&&(C!==null&&google.maps.event.removeListener(C),w(google.maps.event.addListener(g,"circlecomplete",r)))},[g,r]),c.useEffect(function(){g&&o&&(b!==null&&google.maps.event.removeListener(b),O(google.maps.event.addListener(g,"markercomplete",o)))},[g,o]),c.useEffect(function(){g&&i&&(y!==null&&google.maps.event.removeListener(y),E(google.maps.event.addListener(g,"overlaycomplete",i)))},[g,i]),c.useEffect(function(){g&&s&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(g,"polygoncomplete",s)))},[g,s]),c.useEffect(function(){g&&a&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(g,"polylinecomplete",a)))},[g,a]),c.useEffect(function(){g&&u&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(g,"rectanglecomplete",u)))},[g,u]),c.useEffect(function(){Re(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var G=new google.maps.drawing.DrawingManager(te(te({},e||{}),{map:d}));return n&&G.setDrawingMode(n),r&&w(google.maps.event.addListener(G,"circlecomplete",r)),o&&O(google.maps.event.addListener(G,"markercomplete",o)),i&&E(google.maps.event.addListener(G,"overlaycomplete",i)),s&&P(google.maps.event.addListener(G,"polygoncomplete",s)),a&&N(google.maps.event.addListener(G,"polylinecomplete",a)),u&&K(google.maps.event.addListener(G,"rectanglecomplete",u)),v(G),l&&l(G),function(){g!==null&&(C&&google.maps.event.removeListener(C),b&&google.maps.event.removeListener(b),y&&google.maps.event.removeListener(y),M&&google.maps.event.removeListener(M),k&&google.maps.event.removeListener(k),Q&&google.maps.event.removeListener(Q),f&&f(g),g.setMap(null))}},[]),null}c.memo(db),function(t){je(e,t);function e(n){var r=t.call(this,n)||this;return r.registeredEvents=[],r.state={drawingManager:null},r.setDrawingManagerCallback=function(){r.state.drawingManager!==null&&r.props.onLoad&&r.props.onLoad(r.state.drawingManager)},Re(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing),r}return e.prototype.componentDidMount=function(){var n=new google.maps.drawing.DrawingManager(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:tf,eventMap:ef,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{drawingManager:n}},this.setDrawingManagerCallback)},e.prototype.componentDidUpdate=function(n){this.state.drawingManager!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:tf,eventMap:ef,prevProps:n,nextProps:this.props,instance:this.state.drawingManager}))},e.prototype.componentWillUnmount=function(){this.state.drawingManager!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),ye(this.registeredEvents),this.state.drawingManager.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var nf={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},rf={animation:function(t,e){t.setAnimation(e)},clickable:function(t,e){t.setClickable(e)},cursor:function(t,e){t.setCursor(e)},draggable:function(t,e){t.setDraggable(e)},icon:function(t,e){t.setIcon(e)},label:function(t,e){t.setLabel(e)},map:function(t,e){t.setMap(e)},opacity:function(t,e){t.setOpacity(e)},options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},shape:function(t,e){t.setShape(e)},title:function(t,e){t.setTitle(e)},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},Ei={};function hb(t){var e=t.position,n=t.options,r=t.clusterer,o=t.noClustererRedraw,i=t.children,s=t.draggable,a=t.visible,u=t.animation,l=t.clickable,f=t.cursor,d=t.icon,h=t.label,g=t.opacity,v=t.shape,p=t.title,C=t.zIndex,w=t.onClick,m=t.onDblClick,b=t.onDrag,O=t.onDragEnd,S=t.onDragStart,y=t.onMouseOut,E=t.onMouseOver,A=t.onMouseUp,M=t.onMouseDown,P=t.onRightClick,x=t.onClickableChanged,k=t.onCursorChanged,N=t.onAnimationChanged,z=t.onDraggableChanged,Q=t.onFlatChanged,K=t.onIconChanged,G=t.onPositionChanged,R=t.onShapeChanged,T=t.onTitleChanged,I=t.onVisibleChanged,D=t.onZindexChanged,V=t.onLoad,H=t.onUnmount,Y=c.useContext(he),ne=c.useState(null),U=ne[0],ee=ne[1],le=c.useState(null),Z=le[0],B=le[1],q=c.useState(null),_=q[0],re=q[1],pe=c.useState(null),oe=pe[0],ue=pe[1],Le=c.useState(null),Pe=Le[0],Me=Le[1],ae=c.useState(null),fe=ae[0],Ge=ae[1],_e=c.useState(null),X=_e[0],Qe=_e[1],Ue=c.useState(null),ht=Ue[0],at=Ue[1],de=c.useState(null),Dn=de[0],Hi=de[1],It=c.useState(null),Kt=It[0],zi=It[1],F=c.useState(null),ie=F[0],J=F[1],be=c.useState(null),Te=be[0],Ae=be[1],Be=c.useState(null),De=Be[0],He=Be[1],ge=c.useState(null),we=ge[0],ct=ge[1],qt=c.useState(null),lt=qt[0],Ze=qt[1],pt=c.useState(null),gt=pt[0],tt=pt[1],Gt=c.useState(null),Dt=Gt[0],vt=Gt[1],dn=c.useState(null),Zt=dn[0],no=dn[1],ro=c.useState(null),fr=ro[0],oo=ro[1],dr=c.useState(null),Tn=dr[0],io=dr[1],hn=c.useState(null),Bn=hn[0],Nn=hn[1],jn=c.useState(null),Un=jn[0],so=jn[1];c.useEffect(function(){U!==null&&U.setMap(Y)},[Y]),c.useEffect(function(){typeof n<"u"&&U!==null&&U.setOptions(n)},[U,n]),c.useEffect(function(){typeof s<"u"&&U!==null&&U.setDraggable(s)},[U,s]),c.useEffect(function(){e&&U!==null&&U.setPosition(e)},[U,e]),c.useEffect(function(){typeof a<"u"&&U!==null&&U.setVisible(a)},[U,a]),c.useEffect(function(){U==null||U.setAnimation(u)},[U,u]),c.useEffect(function(){U&&m&&(Z!==null&&google.maps.event.removeListener(Z),B(google.maps.event.addListener(U,"dblclick",m)))},[m]),c.useEffect(function(){U&&O&&(_!==null&&google.maps.event.removeListener(_),re(google.maps.event.addListener(U,"dragend",O)))},[O]),c.useEffect(function(){U&&S&&(oe!==null&&google.maps.event.removeListener(oe),ue(google.maps.event.addListener(U,"dragstart",S)))},[S]),c.useEffect(function(){U&&M&&(Pe!==null&&google.maps.event.removeListener(Pe),Me(google.maps.event.addListener(U,"mousedown",M)))},[M]),c.useEffect(function(){U&&y&&(fe!==null&&google.maps.event.removeListener(fe),Ge(google.maps.event.addListener(U,"mouseout",y)))},[y]),c.useEffect(function(){U&&E&&(X!==null&&google.maps.event.removeListener(X),Qe(google.maps.event.addListener(U,"mouseover",E)))},[E]),c.useEffect(function(){U&&A&&(ht!==null&&google.maps.event.removeListener(ht),at(google.maps.event.addListener(U,"mouseup",A)))},[A]),c.useEffect(function(){U&&P&&(Dn!==null&&google.maps.event.removeListener(Dn),Hi(google.maps.event.addListener(U,"rightclick",P)))},[P]),c.useEffect(function(){U&&w&&(Kt!==null&&google.maps.event.removeListener(Kt),zi(google.maps.event.addListener(U,"click",w)))},[w]),c.useEffect(function(){U&&b&&(ie!==null&&google.maps.event.removeListener(ie),J(google.maps.event.addListener(U,"drag",b)))},[b]),c.useEffect(function(){U&&x&&(Te!==null&&google.maps.event.removeListener(Te),Ae(google.maps.event.addListener(U,"clickable_changed",x)))},[x]),c.useEffect(function(){U&&k&&(De!==null&&google.maps.event.removeListener(De),He(google.maps.event.addListener(U,"cursor_changed",k)))},[k]),c.useEffect(function(){U&&N&&(we!==null&&google.maps.event.removeListener(we),ct(google.maps.event.addListener(U,"animation_changed",N)))},[N]),c.useEffect(function(){U&&z&&(lt!==null&&google.maps.event.removeListener(lt),Ze(google.maps.event.addListener(U,"draggable_changed",z)))},[z]),c.useEffect(function(){U&&Q&&(gt!==null&&google.maps.event.removeListener(gt),tt(google.maps.event.addListener(U,"flat_changed",Q)))},[Q]),c.useEffect(function(){U&&K&&(Dt!==null&&google.maps.event.removeListener(Dt),vt(google.maps.event.addListener(U,"icon_changed",K)))},[K]),c.useEffect(function(){U&&G&&(Zt!==null&&google.maps.event.removeListener(Zt),no(google.maps.event.addListener(U,"position_changed",G)))},[G]),c.useEffect(function(){U&&R&&(fr!==null&&google.maps.event.removeListener(fr),oo(google.maps.event.addListener(U,"shape_changed",R)))},[R]),c.useEffect(function(){U&&T&&(Tn!==null&&google.maps.event.removeListener(Tn),io(google.maps.event.addListener(U,"title_changed",T)))},[T]),c.useEffect(function(){U&&I&&(Bn!==null&&google.maps.event.removeListener(Bn),Nn(google.maps.event.addListener(U,"visible_changed",I)))},[I]),c.useEffect(function(){U&&D&&(Un!==null&&google.maps.event.removeListener(Un),so(google.maps.event.addListener(U,"zindex_changed",D)))},[D]),c.useEffect(function(){var pn=te(te(te({},n||Ei),r?Ei:{map:Y}),{position:e}),se=new google.maps.Marker(pn);return r?r.addMarker(se,!!o):se.setMap(Y),e&&se.setPosition(e),typeof a<"u"&&se.setVisible(a),typeof s<"u"&&se.setDraggable(s),typeof l<"u"&&se.setClickable(l),typeof f=="string"&&se.setCursor(f),d&&se.setIcon(d),typeof h<"u"&&se.setLabel(h),typeof g<"u"&&se.setOpacity(g),v&&se.setShape(v),typeof p=="string"&&se.setTitle(p),typeof C=="number"&&se.setZIndex(C),m&&B(google.maps.event.addListener(se,"dblclick",m)),O&&re(google.maps.event.addListener(se,"dragend",O)),S&&ue(google.maps.event.addListener(se,"dragstart",S)),M&&Me(google.maps.event.addListener(se,"mousedown",M)),y&&Ge(google.maps.event.addListener(se,"mouseout",y)),E&&Qe(google.maps.event.addListener(se,"mouseover",E)),A&&at(google.maps.event.addListener(se,"mouseup",A)),P&&Hi(google.maps.event.addListener(se,"rightclick",P)),w&&zi(google.maps.event.addListener(se,"click",w)),b&&J(google.maps.event.addListener(se,"drag",b)),x&&Ae(google.maps.event.addListener(se,"clickable_changed",x)),k&&He(google.maps.event.addListener(se,"cursor_changed",k)),N&&ct(google.maps.event.addListener(se,"animation_changed",N)),z&&Ze(google.maps.event.addListener(se,"draggable_changed",z)),Q&&tt(google.maps.event.addListener(se,"flat_changed",Q)),K&&vt(google.maps.event.addListener(se,"icon_changed",K)),G&&no(google.maps.event.addListener(se,"position_changed",G)),R&&oo(google.maps.event.addListener(se,"shape_changed",R)),T&&io(google.maps.event.addListener(se,"title_changed",T)),I&&Nn(google.maps.event.addListener(se,"visible_changed",I)),D&&so(google.maps.event.addListener(se,"zindex_changed",D)),ee(se),V&&V(se),function(){Z!==null&&google.maps.event.removeListener(Z),_!==null&&google.maps.event.removeListener(_),oe!==null&&google.maps.event.removeListener(oe),Pe!==null&&google.maps.event.removeListener(Pe),fe!==null&&google.maps.event.removeListener(fe),X!==null&&google.maps.event.removeListener(X),ht!==null&&google.maps.event.removeListener(ht),Dn!==null&&google.maps.event.removeListener(Dn),Kt!==null&&google.maps.event.removeListener(Kt),Te!==null&&google.maps.event.removeListener(Te),De!==null&&google.maps.event.removeListener(De),we!==null&&google.maps.event.removeListener(we),lt!==null&&google.maps.event.removeListener(lt),gt!==null&&google.maps.event.removeListener(gt),Dt!==null&&google.maps.event.removeListener(Dt),Zt!==null&&google.maps.event.removeListener(Zt),Tn!==null&&google.maps.event.removeListener(Tn),Bn!==null&&google.maps.event.removeListener(Bn),Un!==null&&google.maps.event.removeListener(Un),H&&H(se),r?r.removeMarker(se,!!o):se&&se.setMap(null)}},[]);var ao=c.useMemo(function(){return i?c.Children.map(i,function(pn){if(!c.isValidElement(pn))return pn;var se=pn;return c.cloneElement(se,{anchor:U})}):null},[i,U]);return L.jsx(L.Fragment,{children:ao})||null}c.memo(hb);var of=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n}return e.prototype.componentDidMount=function(){var n=te(te(te({},this.props.options||Ei),this.props.clusterer?Ei:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(n),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=ve({updaterMap:rf,eventMap:nf,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},e.prototype.componentDidUpdate=function(n){this.marker&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:rf,eventMap:nf,prevProps:n,nextProps:this.props,instance:this.marker}))},e.prototype.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),ye(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},e.prototype.render=function(){var n=this,r=null;return this.props.children&&(r=c.Children.map(this.props.children,function(o){if(!c.isValidElement(o))return o;var i=o;return c.cloneElement(i,{anchor:n.marker})})),r||null},e.contextType=he,e}(c.PureComponent),pb=function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(e.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return t.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},t.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},t.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var n=this.cluster.getClusterer();if(google.maps.event.trigger(n,"click",this.cluster),google.maps.event.trigger(n,"clusterclick",this.cluster),n.getZoomOnClick()){var r=n.getMaxZoom(),o=this.cluster.getBounds(),i=n.getMap();i!==null&&"fitBounds"in i&&i.fitBounds(o),this.timeOut=window.setTimeout(function(){var s=n.getMap();if(s!==null){"fitBounds"in s&&s.fitBounds(o);var a=s.getZoom()||0;r!==null&&a>r&&s.setZoom(r+1)}},100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},t.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},t.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},t.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),(e=this.getPanes())===null||e===void 0||e.overlayMouseTarget.appendChild(this.div);var n=this.getMap();n!==null&&(this.boundsChangedListener=google.maps.event.addListener(n,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),this.boundsChangedListener!==null&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),this.timeOut!==null&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},t.prototype.draw=function(){if(this.visible&&this.div!==null&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=e!==null?"".concat(e.y,"px"):"0",this.div.style.left=e!==null?"".concat(e.x,"px"):"0"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){var e,n,r,o,i,s;if(this.div&&this.center){var a=this.sums===null||typeof this.sums.title>"u"||this.sums.title===""?this.cluster.getClusterer().getTitle():this.sums.title,u=this.backgroundPosition.split(" "),l=parseInt(((e=u[0])===null||e===void 0?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),f=parseInt(((n=u[1])===null||n===void 0?void 0:n.replace(/^\s+|\s+$/g,""))||"0",10),d=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(d!==null?"".concat(d.y,"px"):"0","; left: ").concat(d!==null?"".concat(d.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var h=document.createElement("img");h.alt=a,h.src=this.url,h.width=this.width,h.height=this.height,h.setAttribute("style","position: absolute; top: ".concat(f,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(h.style.clip="rect(-".concat(f,"px, -").concat(l+this.width,"px, -").concat(f+this.height,", -").concat(l,")"));var g=document.createElement("div");g.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),!((r=this.sums)===null||r===void 0)&&r.text&&(g.innerText="".concat((o=this.sums)===null||o===void 0?void 0:o.text)),!((i=this.sums)===null||i===void 0)&&i.html&&(g.innerHTML="".concat((s=this.sums)===null||s===void 0?void 0:s.html)),this.div.innerHTML="",this.div.appendChild(h),this.div.appendChild(g),this.div.title=a,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(e){this.sums=e;var n=this.cluster.getClusterer().getStyles(),r=n[Math.min(n.length-1,Math.max(0,e.index-1))];r&&(this.url=r.url,this.height=r.height,this.width=r.width,r.className&&(this.className="".concat(this.clusterClassName," ").concat(r.className)),this.anchorText=r.anchorText||[0,0],this.anchorIcon=r.anchorIcon||[this.height/2,this.width/2],this.textColor=r.textColor||"black",this.textSize=r.textSize||11,this.textDecoration=r.textDecoration||"none",this.fontWeight=r.fontWeight||"bold",this.fontStyle=r.fontStyle||"normal",this.fontFamily=r.fontFamily||"Arial,sans-serif",this.backgroundPosition=r.backgroundPosition||"0 0")},t.prototype.setCenter=function(e){this.center=e},t.prototype.getPosFromLatLng=function(e){var n=this.getProjection().fromLatLngToDivPixel(e);return n!==null&&(n.x-=this.anchorIcon[1],n.y-=this.anchorIcon[0]),n},t}(),gb=function(){function t(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new pb(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),n=this.getMarkers(),r=0,o=n;r<o.length;r++){var i=o[r],s=i.getPosition();s&&e.extend(s)}return e},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(e){var n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter){var r=e.getPosition();if(r){var o=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(o-1)+r.lat())/o,(this.center.lng()*(o-1)+r.lng())/o),this.calculateBounds()}}}else{var r=e.getPosition();r&&(this.center=r,this.calculateBounds())}e.isAdded=!0,this.markers.push(e);var i=this.markers.length,s=this.markerClusterer.getMaxZoom(),a=(n=this.map)===null||n===void 0?void 0:n.getZoom();if(s!==null&&typeof a<"u"&&a>s)e.getMap()!==this.map&&e.setMap(this.map);else if(i<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(i===this.minClusterSize)for(var u=0,l=this.markers;u<l.length;u++){var f=l[u];f.setMap(null)}else e.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(e){if(this.bounds!==null){var n=e.getPosition();if(n)return this.bounds.contains(n)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var e,n=this.markers.length,r=this.markerClusterer.getMaxZoom(),o=(e=this.map)===null||e===void 0?void 0:e.getZoom();if(r!==null&&typeof o<"u"&&o>r){this.clusterIcon.hide();return}if(n<this.minClusterSize){this.clusterIcon.hide();return}this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show()},t.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var n=0;n<this.markers.length;n++)if(e===this.markers[n])return!0;return!1},t}();function vb(t,e){var n=t.length,r=n.toString().length,o=Math.min(r,e);return{text:n.toString(),index:o,title:""}}var mb=2e3,yb=500,bb="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",Eb="png",wb=[53,56,66,78,90],Cb="cluster",sf=function(){function t(e,n,r){n===void 0&&(n=[]),r===void 0&&(r={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,r.zoomOnClick!==void 0&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,r.averageCenter!==void 0&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,r.ignoreHidden!==void 0&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,r.enableRetinaIcons!==void 0&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||bb,this.imageExtension=r.imageExtension||Eb,this.imageSizes=r.imageSizes||wb,this.calculator=r.calculator||vb,this.batchSize=r.batchSize||mb,this.batchSizeIE=r.batchSizeIE||yb,this.clusterClass=r.clusterClass||Cb,navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onZoomChanged=function(){var e,n;this.resetViewport(!1),(((e=this.getMap())===null||e===void 0?void 0:e.getZoom())===(this.get("minZoom")||0)||((n=this.getMap())===null||n===void 0?void 0:n.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},t.prototype.onIdle=function(){this.redraw()},t.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),e!==null&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},t.prototype.onRemove=function(){for(var e=0,n=this.markers;e<n.length;e++){var r=n[e];r.getMap()!==this.activeMap&&r.setMap(this.activeMap)}for(var o=0,i=this.clusters;o<i.length;o++){var s=i[o];s.remove()}this.clusters=[];for(var a=0,u=this.listeners;a<u.length;a++){var l=u[a];google.maps.event.removeListener(l)}this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.getMap=function(){return null},t.prototype.getPanes=function(){return null},t.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},t.prototype.setMap=function(){},t.prototype.addListener=function(){return{remove:function(){}}},t.prototype.bindTo=function(){},t.prototype.get=function(){},t.prototype.notify=function(){},t.prototype.set=function(){},t.prototype.setValues=function(){},t.prototype.unbind=function(){},t.prototype.unbindAll=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},t.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),n=new google.maps.LatLngBounds,r=0,o=e;r<o.length;r++){var i=o[r],s=i.getPosition();s&&n.extend(s)}var a=this.getMap();a!==null&&"fitBounds"in a&&a.fitBounds(n)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(e){this.gridSize=e},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(e){this.maxZoom=e},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(e){this.styles=e},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(e){this.title=e},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(e){this.averageCenter=e},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(e){this.imageExtension=e},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(e){this.imagePath=e},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(e){this.imageSizes=e},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(e){this.calculator=e},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(e){this.clusterClass=e},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(e,n){this.pushMarkerTo(e),n||this.redraw()},t.prototype.addMarkers=function(e,n){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=e[r];o&&this.pushMarkerTo(o)}n||this.redraw()},t.prototype.pushMarkerTo=function(e){var n=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",function(){n.ready&&(e.isAdded=!1,n.repaint())}),e.isAdded=!1,this.markers.push(e)},t.prototype.removeMarker_=function(e){var n=-1;if(this.markers.indexOf)n=this.markers.indexOf(e);else for(var r=0;r<this.markers.length;r++)if(e===this.markers[r]){n=r;break}return n===-1?!1:(e.setMap(null),this.markers.splice(n,1),!0)},t.prototype.removeMarker=function(e,n){var r=this.removeMarker_(e);return!n&&r&&this.repaint(),r},t.prototype.removeMarkers=function(e,n){for(var r=!1,o=0,i=e;o<i.length;o++){var s=i[o];r=r||this.removeMarker_(s)}return!n&&r&&this.repaint(),r},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var r=0,o=e;r<o.length;r++){var i=o[r];i.remove()}},0)},t.prototype.getExtendedBounds=function(e){var n=this.getProjection(),r=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));r!==null&&(r.x+=this.gridSize,r.y-=this.gridSize);var o=n.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(o!==null&&(o.x-=this.gridSize,o.y+=this.gridSize),r!==null){var i=n.fromDivPixelToLatLng(r);i!==null&&e.extend(i)}if(o!==null){var s=n.fromDivPixelToLatLng(o);s!==null&&e.extend(s)}return e},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(e){for(var n=0,r=this.clusters;n<r.length;n++){var o=r[n];o.remove()}this.clusters=[];for(var i=0,s=this.markers;i<s.length;i++){var a=s[i];a.isAdded=!1,e&&a.setMap(null)}},t.prototype.distanceBetweenPoints=function(e,n){var r=6371,o=(n.lat()-e.lat())*Math.PI/180,i=(n.lng()-e.lng())*Math.PI/180,s=Math.sin(o/2)*Math.sin(o/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(n.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return r*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)))},t.prototype.isMarkerInBounds=function(e,n){var r=e.getPosition();return r?n.contains(r):!1},t.prototype.addToClosestCluster=function(e){for(var n,r=4e4,o=null,i=0,s=this.clusters;i<s.length;i++){var a=s[i];n=a;var u=n.getCenter(),l=e.getPosition();if(u&&l){var f=this.distanceBetweenPoints(u,l);f<r&&(r=f,o=n)}}o&&o.isMarkerInClusterBounds(e)?o.addMarker(e):(n=new gb(this),n.addMarker(e),this.clusters.push(n))},t.prototype.createClusters=function(e){var n=this;if(this.ready){e===0&&(google.maps.event.trigger(this,"clusteringbegin",this),this.timerRefStatic!==null&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var r=this.getMap(),o=r!==null&&("getBounds"in r)?r.getBounds():null,i=(r==null?void 0:r.getZoom())||0,s=i>3?new google.maps.LatLngBounds(o==null?void 0:o.getSouthWest(),o==null?void 0:o.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),a=this.getExtendedBounds(s),u=Math.min(e+this.batchSize,this.markers.length),l=e;l<u;l++){var f=this.markers[l];f&&!f.isAdded&&this.isMarkerInBounds(f,a)&&(!this.ignoreHidden||this.ignoreHidden&&f.getVisible())&&this.addToClosestCluster(f)}if(u<this.markers.length)this.timerRefStatic=window.setTimeout(function(){n.createClusters(u)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var d=0,h=this.clusters;d<h.length;d++){var g=h[d];g.updateIcon()}}}},t.prototype.extend=function(e,n){return(function(o){for(var i in o.prototype){var s=i;this.prototype[s]=o.prototype[s]}return this}).apply(e,[n])},t}(),At={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},Oe={averageCenter:function(t,e){t.setAverageCenter(e)},batchSizeIE:function(t,e){t.setBatchSizeIE(e)},calculator:function(t,e){t.setCalculator(e)},clusterClass:function(t,e){t.setClusterClass(e)},enableRetinaIcons:function(t,e){t.setEnableRetinaIcons(e)},gridSize:function(t,e){t.setGridSize(e)},ignoreHidden:function(t,e){t.setIgnoreHidden(e)},imageExtension:function(t,e){t.setImageExtension(e)},imagePath:function(t,e){t.setImagePath(e)},imageSizes:function(t,e){t.setImageSizes(e)},maxZoom:function(t,e){t.setMaxZoom(e)},minimumClusterSize:function(t,e){t.setMinimumClusterSize(e)},styles:function(t,e){t.setStyles(e)},title:function(t,e){t.setTitle(e)},zoomOnClick:function(t,e){t.setZoomOnClick(e)}},Sb={};function Lb(t){var e=t.children,n=t.options,r=t.averageCenter,o=t.batchSizeIE,i=t.calculator,s=t.clusterClass,a=t.enableRetinaIcons,u=t.gridSize,l=t.ignoreHidden,f=t.imageExtension,d=t.imagePath,h=t.imageSizes,g=t.maxZoom,v=t.minimumClusterSize,p=t.styles,C=t.title,w=t.zoomOnClick,m=t.onClick,b=t.onClusteringBegin,O=t.onClusteringEnd,S=t.onMouseOver,y=t.onMouseOut,E=t.onLoad,A=t.onUnmount,M=c.useState(null),P=M[0],x=M[1],k=c.useContext(he),N=c.useState(null),z=N[0],Q=N[1],K=c.useState(null),G=K[0],R=K[1],T=c.useState(null),I=T[0],D=T[1],V=c.useState(null),H=V[0],Y=V[1],ne=c.useState(null),U=ne[0],ee=ne[1];return c.useEffect(function(){P&&y&&(H!==null&&google.maps.event.removeListener(H),Y(google.maps.event.addListener(P,At.onMouseOut,y)))},[y]),c.useEffect(function(){P&&S&&(U!==null&&google.maps.event.removeListener(U),ee(google.maps.event.addListener(P,At.onMouseOver,S)))},[S]),c.useEffect(function(){P&&m&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(P,At.onClick,m)))},[m]),c.useEffect(function(){P&&b&&(G!==null&&google.maps.event.removeListener(G),R(google.maps.event.addListener(P,At.onClusteringBegin,b)))},[b]),c.useEffect(function(){P&&O&&(I!==null&&google.maps.event.removeListener(I),R(google.maps.event.addListener(P,At.onClusteringEnd,O)))},[O]),c.useEffect(function(){typeof r<"u"&&P!==null&&Oe.averageCenter(P,r)},[P,r]),c.useEffect(function(){typeof o<"u"&&P!==null&&Oe.batchSizeIE(P,o)},[P,o]),c.useEffect(function(){typeof i<"u"&&P!==null&&Oe.calculator(P,i)},[P,i]),c.useEffect(function(){typeof s<"u"&&P!==null&&Oe.clusterClass(P,s)},[P,s]),c.useEffect(function(){typeof a<"u"&&P!==null&&Oe.enableRetinaIcons(P,a)},[P,a]),c.useEffect(function(){typeof u<"u"&&P!==null&&Oe.gridSize(P,u)},[P,u]),c.useEffect(function(){typeof l<"u"&&P!==null&&Oe.ignoreHidden(P,l)},[P,l]),c.useEffect(function(){typeof f<"u"&&P!==null&&Oe.imageExtension(P,f)},[P,f]),c.useEffect(function(){typeof d<"u"&&P!==null&&Oe.imagePath(P,d)},[P,d]),c.useEffect(function(){typeof h<"u"&&P!==null&&Oe.imageSizes(P,h)},[P,h]),c.useEffect(function(){typeof g<"u"&&P!==null&&Oe.maxZoom(P,g)},[P,g]),c.useEffect(function(){typeof v<"u"&&P!==null&&Oe.minimumClusterSize(P,v)},[P,v]),c.useEffect(function(){typeof p<"u"&&P!==null&&Oe.styles(P,p)},[P,p]),c.useEffect(function(){typeof C<"u"&&P!==null&&Oe.title(P,C)},[P,C]),c.useEffect(function(){typeof w<"u"&&P!==null&&Oe.zoomOnClick(P,w)},[P,w]),c.useEffect(function(){if(k){var le=te({},n||Sb),Z=new sf(k,[],le);return r&&Oe.averageCenter(Z,r),o&&Oe.batchSizeIE(Z,o),i&&Oe.calculator(Z,i),s&&Oe.clusterClass(Z,s),a&&Oe.enableRetinaIcons(Z,a),u&&Oe.gridSize(Z,u),l&&Oe.ignoreHidden(Z,l),f&&Oe.imageExtension(Z,f),d&&Oe.imagePath(Z,d),h&&Oe.imageSizes(Z,h),g&&Oe.maxZoom(Z,g),v&&Oe.minimumClusterSize(Z,v),p&&Oe.styles(Z,p),C&&Oe.title(Z,C),w&&Oe.zoomOnClick(Z,w),y&&Y(google.maps.event.addListener(Z,At.onMouseOut,y)),S&&ee(google.maps.event.addListener(Z,At.onMouseOver,S)),m&&Q(google.maps.event.addListener(Z,At.onClick,m)),b&&R(google.maps.event.addListener(Z,At.onClusteringBegin,b)),O&&D(google.maps.event.addListener(Z,At.onClusteringEnd,O)),x(Z),E&&E(Z),function(){H!==null&&google.maps.event.removeListener(H),U!==null&&google.maps.event.removeListener(U),z!==null&&google.maps.event.removeListener(z),G!==null&&google.maps.event.removeListener(G),I!==null&&google.maps.event.removeListener(I),A&&A(Z)}}},[]),P!==null&&e(P)||null}c.memo(Lb);var Ab=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={markerClusterer:null},n.setClustererCallback=function(){n.state.markerClusterer!==null&&n.props.onLoad&&n.props.onLoad(n.state.markerClusterer)},n}return e.prototype.componentDidMount=function(){if(this.context){var n=new sf(this.context,[],this.props.options);this.registeredEvents=ve({updaterMap:Oe,eventMap:At,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{markerClusterer:n}},this.setClustererCallback)}},e.prototype.componentDidUpdate=function(n){this.state.markerClusterer&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Oe,eventMap:At,prevProps:n,nextProps:this.props,instance:this.state.markerClusterer}))},e.prototype.componentWillUnmount=function(){this.state.markerClusterer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),ye(this.registeredEvents),this.state.markerClusterer.setMap(null))},e.prototype.render=function(){return this.state.markerClusterer!==null?this.props.children(this.state.markerClusterer):null},e.contextType=he,e}(c.PureComponent);function af(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}var lf=function(){function t(e){e===void 0&&(e={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",e.closeBoxURL===""&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),typeof e.visible>"u"&&(typeof e.isHidden>"u"?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var e=this,n=function(l){l.returnValue=!1,l.preventDefault&&l.preventDefault(),e.enableEventPropagation||af(l)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),typeof this.content=="string"?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var r=this.getPanes();if(r!==null&&r[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(this.maxWidth!==0&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var o=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-o.left-o.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var i=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],s=0,a=i;s<a.length;s++){var u=a[s];this.eventListeners.push(google.maps.event.addListener(this.div,u,af))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){e.div&&(e.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",n),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var e="";return this.closeBoxURL!==""&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},t.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&this.closeBoxURL!==""?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},t.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},t.prototype.getCloseClickHandler=function(){return this.closeClickHandler},t.prototype.panBox=function(e){if(this.div&&!e){var n=this.getMap();if(n instanceof google.maps.Map){var r=0,o=0,i=n.getBounds();i&&!i.contains(this.position)&&n.setCenter(this.position);var s=n.getDiv(),a=s.offsetWidth,u=s.offsetHeight,l=this.pixelOffset.width,f=this.pixelOffset.height,d=this.div.offsetWidth,h=this.div.offsetHeight,g=this.infoBoxClearance.width,v=this.infoBoxClearance.height,p=this.getProjection(),C=p.fromLatLngToContainerPixel(this.position);C!==null&&(C.x<-l+g?r=C.x+l-g:C.x+d+l+g>a&&(r=C.x+d+l+g-a),this.alignBottom?C.y<-f+v+h?o=C.y+f-v-h:C.y+f+v>u&&(o=C.y+f+v-u):C.y<-f+v?o=C.y+f-v:C.y+h+f+v>u&&(o=C.y+h+f+v-u)),r===0&&o===0||n.panBy(r,o)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this.div.style[n]=e[n]);if(this.div.style.webkitTransform="translateZ(0)",typeof this.div.style.opacity<"u"&&this.div.style.opacity!==""){var r=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+r*100+')"',this.div.style.filter="alpha(opacity="+r*100+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",this.zIndex!==null&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var n=this.div.ownerDocument,r=n&&n.defaultView?n.defaultView.getComputedStyle(this.div,""):null;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var o=this.div.currentStyle;o&&(e.top=parseInt(o.borderTopWidth||"",10)||0,e.bottom=parseInt(o.borderBottomWidth||"",10)||0,e.left=parseInt(o.borderLeftWidth||"",10)||0,e.right=parseInt(o.borderRightWidth||"",10)||0)}return e},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection(),n=e.fromLatLngToDivPixel(this.position);n!==null&&(this.div.style.left=n.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(n.y+this.pixelOffset.height)+"px":this.div.style.top=n.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(e){e===void 0&&(e={}),typeof e.boxClass<"u"&&(this.boxClass=e.boxClass,this.setBoxStyle()),typeof e.boxStyle<"u"&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),typeof e.content<"u"&&this.setContent(e.content),typeof e.disableAutoPan<"u"&&(this.disableAutoPan=e.disableAutoPan),typeof e.maxWidth<"u"&&(this.maxWidth=e.maxWidth),typeof e.pixelOffset<"u"&&(this.pixelOffset=e.pixelOffset),typeof e.alignBottom<"u"&&(this.alignBottom=e.alignBottom),typeof e.position<"u"&&this.setPosition(e.position),typeof e.zIndex<"u"&&this.setZIndex(e.zIndex),typeof e.closeBoxMargin<"u"&&(this.closeBoxMargin=e.closeBoxMargin),typeof e.closeBoxURL<"u"&&(this.closeBoxURL=e.closeBoxURL),typeof e.infoBoxClearance<"u"&&(this.infoBoxClearance=e.infoBoxClearance),typeof e.isHidden<"u"&&(this.isHidden=e.isHidden),typeof e.visible<"u"&&(this.isHidden=!e.visible),typeof e.enableEventPropagation<"u"&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px",typeof e=="string"?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){var e=this.getMap();return typeof e>"u"||e===null?!1:!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(e,n){var r=this;n&&(this.position=n.getPosition(),this.moveListener=google.maps.event.addListener(n,"position_changed",function(){var o=n.getPosition();r.setPosition(o)}),this.mapListener=google.maps.event.addListener(n,"map_changed",function(){r.setMap(n.map)})),this.setMap(e),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,n=this.eventListeners;e<n.length;e++){var r=n[e];google.maps.event.removeListener(r)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(e,n){return(function(o){for(var i in o.prototype)Object.prototype.hasOwnProperty.call(this,i)||(this.prototype[i]=o.prototype[i]);return this}).apply(e,[n])},t}(),uf={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},cf={options:function(t,e){t.setOptions(e)},position:function(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible:function(t,e){t.setVisible(e)},zIndex:function(t,e){t.setZIndex(e)}},xb={};function Ob(t){var e=t.children,n=t.anchor,r=t.options,o=t.position,i=t.zIndex,s=t.onCloseClick,a=t.onDomReady,u=t.onContentChanged,l=t.onPositionChanged,f=t.onZindexChanged,d=t.onLoad,h=t.onUnmount,g=c.useContext(he),v=c.useState(null),p=v[0],C=v[1],w=c.useState(null),m=w[0],b=w[1],O=c.useState(null),S=O[0],y=O[1],E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useRef(null);return c.useEffect(function(){g&&p!==null&&(p.close(),n?p.open(g,n):p.getPosition()&&p.open(g))},[g,p,n]),c.useEffect(function(){r&&p!==null&&p.setOptions(r)},[p,r]),c.useEffect(function(){if(o&&p!==null){var G=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o.lat,o.lng);p.setPosition(G)}},[o]),c.useEffect(function(){typeof i=="number"&&p!==null&&p.setZIndex(i)},[i]),c.useEffect(function(){p&&s&&(m!==null&&google.maps.event.removeListener(m),b(google.maps.event.addListener(p,"closeclick",s)))},[s]),c.useEffect(function(){p&&a&&(S!==null&&google.maps.event.removeListener(S),y(google.maps.event.addListener(p,"domready",a)))},[a]),c.useEffect(function(){p&&u&&(A!==null&&google.maps.event.removeListener(A),M(google.maps.event.addListener(p,"content_changed",u)))},[u]),c.useEffect(function(){p&&l&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(p,"position_changed",l)))},[l]),c.useEffect(function(){p&&f&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(p,"zindex_changed",f)))},[f]),c.useEffect(function(){if(g){var G=r||xb,R=G.position,T=ua(G,["position"]),I=void 0;R&&!(R instanceof google.maps.LatLng)&&(I=new google.maps.LatLng(R.lat,R.lng));var D=new lf(te(te({},T),I?{position:I}:{}));K.current=document.createElement("div"),C(D),s&&b(google.maps.event.addListener(D,"closeclick",s)),a&&y(google.maps.event.addListener(D,"domready",a)),u&&M(google.maps.event.addListener(D,"content_changed",u)),l&&k(google.maps.event.addListener(D,"position_changed",l)),f&&Q(google.maps.event.addListener(D,"zindex_changed",f)),D.setContent(K.current),n?D.open(g,n):D.getPosition()?D.open(g):Re(!1,"You must provide either an anchor or a position prop for <InfoBox>."),d&&d(D)}return function(){p!==null&&(m&&google.maps.event.removeListener(m),A&&google.maps.event.removeListener(A),S&&google.maps.event.removeListener(S),x&&google.maps.event.removeListener(x),z&&google.maps.event.removeListener(z),h&&h(p),p.close())}},[]),K.current?Hn.createPortal(c.Children.only(e),K.current):null}c.memo(Ob),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoBox:null},n.open=function(r,o){o?n.context!==null&&r.open(n.context,o):r.getPosition()?n.context!==null&&r.open(n.context):Re(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},n.setInfoBoxCallback=function(){n.state.infoBox!==null&&n.containerElement!==null&&(n.state.infoBox.setContent(n.containerElement),n.open(n.state.infoBox,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoBox))},n}return e.prototype.componentDidMount=function(){var n=this.props.options||{},r=n.position,o=ua(n,["position"]),i;r&&!(r instanceof google.maps.LatLng)&&(i=new google.maps.LatLng(r.lat,r.lng));var s=new lf(te(te({},o),i?{position:i}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=ve({updaterMap:cf,eventMap:uf,prevProps:{},nextProps:this.props,instance:s}),this.setState({infoBox:s},this.setInfoBoxCallback)},e.prototype.componentDidUpdate=function(n){var r=this.state.infoBox;r!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:cf,eventMap:uf,prevProps:n,nextProps:this.props,instance:r}))},e.prototype.componentWillUnmount=function(){var n=this.props.onUnmount,r=this.state.infoBox;r!==null&&(n&&n(r),ye(this.registeredEvents),r.close())},e.prototype.render=function(){return this.containerElement?Hn.createPortal(c.Children.only(this.props.children),this.containerElement):null},e.contextType=he,e}(c.PureComponent);var Pb=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)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(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},ff=Qc(Pb);const df=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],fa=1,qr=8;class da{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(e,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=r>>4;if(o!==fa)throw new Error(`Got v${o} data when expected v${fa}.`);const i=df[r&15];if(!i)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new da(a,s,i,e)}constructor(e,n=64,r=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const i=df.indexOf(this.ArrayType),s=e*2*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-a%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${r}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,qr,e),this.coords=new this.ArrayType(this.data,qr+a+u,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(qr+s+a+u),this.ids=new this.IndexArrayType(this.data,qr,e),this.coords=new this.ArrayType(this.data,qr+a+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(fa<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=e)}add(e,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=n,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return ha(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,n,r,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:s,nodeSize:a}=this,u=[0,i.length-1,0],l=[];for(;u.length;){const f=u.pop()||0,d=u.pop()||0,h=u.pop()||0;if(d-h<=a){for(let C=h;C<=d;C++){const w=s[2*C],m=s[2*C+1];w>=e&&w<=r&&m>=n&&m<=o&&l.push(i[C])}continue}const g=h+d>>1,v=s[2*g],p=s[2*g+1];v>=e&&v<=r&&p>=n&&p<=o&&l.push(i[g]),(f===0?e<=v:n<=p)&&(u.push(h),u.push(g-1),u.push(1-f)),(f===0?r>=v:o>=p)&&(u.push(g+1),u.push(d),u.push(1-f))}return l}within(e,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:s}=this,a=[0,o.length-1,0],u=[],l=r*r;for(;a.length;){const f=a.pop()||0,d=a.pop()||0,h=a.pop()||0;if(d-h<=s){for(let C=h;C<=d;C++)pf(i[2*C],i[2*C+1],e,n)<=l&&u.push(o[C]);continue}const g=h+d>>1,v=i[2*g],p=i[2*g+1];pf(v,p,e,n)<=l&&u.push(o[g]),(f===0?e-r<=v:n-r<=p)&&(a.push(h),a.push(g-1),a.push(1-f)),(f===0?e+r>=v:n+r>=p)&&(a.push(g+1),a.push(d),a.push(1-f))}return u}}function ha(t,e,n,r,o,i){if(o-r<=n)return;const s=r+o>>1;hf(t,e,s,r,o,i),ha(t,e,n,r,s-1,1-i),ha(t,e,n,s+1,o,1-i)}function hf(t,e,n,r,o,i){for(;o>r;){if(o-r>600){const l=o-r+1,f=n-r+1,d=Math.log(l),h=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*h*(l-h)/l)*(f-l/2<0?-1:1),v=Math.max(r,Math.floor(n-f*h/l+g)),p=Math.min(o,Math.floor(n+(l-f)*h/l+g));hf(t,e,n,v,p,i)}const s=e[2*n+i];let a=r,u=o;for(Zr(t,e,r,n),e[2*o+i]>s&&Zr(t,e,r,o);a<u;){for(Zr(t,e,a,u),a++,u--;e[2*a+i]<s;)a++;for(;e[2*u+i]>s;)u--}e[2*r+i]===s?Zr(t,e,r,u):(u++,Zr(t,e,u,o)),u<=n&&(r=u+1),n<=u&&(o=u-1)}}function Zr(t,e,n,r){pa(t,n,r),pa(e,2*n,2*r),pa(e,2*n+1,2*r+1)}function pa(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function pf(t,e,n,r){const o=t-n,i=e-r;return o*o+i*i}const Mb={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},gf=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1)),On=2,un=3,ga=4,cn=5,vf=6;class kb{constructor(e){this.options=Object.assign(Object.create(Mb),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:n,minZoom:r,maxZoom:o}=this.options;n&&console.time("total time");const i=`prepare ${e.length} points`;n&&console.time(i),this.points=e;const s=[];for(let u=0;u<e.length;u++){const l=e[u];if(!l.geometry)continue;const[f,d]=l.geometry.coordinates,h=gf(wi(f)),g=gf(Ci(d));s.push(h,g,1/0,u,-1,1),this.options.reduce&&s.push(0)}let a=this.trees[o+1]=this._createTree(s);n&&console.timeEnd(i);for(let u=o;u>=r;u--){const l=+Date.now();a=this.trees[u]=this._createTree(this._cluster(a,u)),n&&console.log("z%d: %d clusters in %dms",u,a.numItems,+Date.now()-l)}return n&&console.timeEnd("total time"),this}getClusters(e,n){let r=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let i=e[2]===180?180:((e[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){const d=this.getClusters([r,o,180,s],n),h=this.getClusters([-180,o,i,s],n);return d.concat(h)}const a=this.trees[this._limitZoom(n)],u=a.range(wi(r),Ci(s),wi(i),Ci(o)),l=a.data,f=[];for(const d of u){const h=this.stride*d;f.push(l[h+cn]>1?mf(l,h,this.clusterProps):this.points[l[h+un]])}return f}getChildren(e){const n=this._getOriginId(e),r=this._getOriginZoom(e),o="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(o);const s=i.data;if(n*this.stride>=s.length)throw new Error(o);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),u=s[n*this.stride],l=s[n*this.stride+1],f=i.within(u,l,a),d=[];for(const h of f){const g=h*this.stride;s[g+ga]===e&&d.push(s[g+cn]>1?mf(s,g,this.clusterProps):this.points[s[g+un]])}if(d.length===0)throw new Error(o);return d}getLeaves(e,n,r){n=n||10,r=r||0;const o=[];return this._appendLeaves(o,e,n,r,0),o}getTile(e,n,r){const o=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:s,radius:a}=this.options,u=a/s,l=(r-u)/i,f=(r+1+u)/i,d={features:[]};return this._addTileFeatures(o.range((n-u)/i,l,(n+1+u)/i,f),o.data,n,r,i,d),n===0&&this._addTileFeatures(o.range(1-u/i,l,1,f),o.data,i,r,i,d),n===i-1&&this._addTileFeatures(o.range(0,l,u/i,f),o.data,-1,r,i,d),d.features.length?d:null}getClusterExpansionZoom(e){let n=this._getOriginZoom(e)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(e);if(n++,r.length!==1)break;e=r[0].properties.cluster_id}return n}_appendLeaves(e,n,r,o,i){const s=this.getChildren(n);for(const a of s){const u=a.properties;if(u&&u.cluster?i+u.point_count<=o?i+=u.point_count:i=this._appendLeaves(e,u.cluster_id,r,o,i):i<o?i++:e.push(a),e.length===r)break}return i}_createTree(e){const n=new da(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)n.add(e[r],e[r+1]);return n.finish(),n.data=e,n}_addTileFeatures(e,n,r,o,i,s){for(const a of e){const u=a*this.stride,l=n[u+cn]>1;let f,d,h;if(l)f=yf(n,u,this.clusterProps),d=n[u],h=n[u+1];else{const p=this.points[n[u+un]];f=p.properties;const[C,w]=p.geometry.coordinates;d=wi(C),h=Ci(w)}const g={type:1,geometry:[[Math.round(this.options.extent*(d*i-r)),Math.round(this.options.extent*(h*i-o))]],tags:f};let v;l||this.options.generateId?v=n[u+un]:v=this.points[n[u+un]].id,v!==void 0&&(g.id=v),s.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,n){const{radius:r,extent:o,reduce:i,minPoints:s}=this.options,a=r/(o*Math.pow(2,n)),u=e.data,l=[],f=this.stride;for(let d=0;d<u.length;d+=f){if(u[d+On]<=n)continue;u[d+On]=n;const h=u[d],g=u[d+1],v=e.within(u[d],u[d+1],a),p=u[d+cn];let C=p;for(const w of v){const m=w*f;u[m+On]>n&&(C+=u[m+cn])}if(C>p&&C>=s){let w=h*p,m=g*p,b,O=-1;const S=((d/f|0)<<5)+(n+1)+this.points.length;for(const y of v){const E=y*f;if(u[E+On]<=n)continue;u[E+On]=n;const A=u[E+cn];w+=u[E]*A,m+=u[E+1]*A,u[E+ga]=S,i&&(b||(b=this._map(u,d,!0),O=this.clusterProps.length,this.clusterProps.push(b)),i(b,this._map(u,E)))}u[d+ga]=S,l.push(w/C,m/C,1/0,S,-1,C),i&&l.push(O)}else{for(let w=0;w<f;w++)l.push(u[d+w]);if(C>1)for(const w of v){const m=w*f;if(!(u[m+On]<=n)){u[m+On]=n;for(let b=0;b<f;b++)l.push(u[m+b])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,n,r){if(e[n+cn]>1){const s=this.clusterProps[e[n+vf]];return r?Object.assign({},s):s}const o=this.points[e[n+un]].properties,i=this.options.map(o);return r&&i===o?Object.assign({},i):i}}function mf(t,e,n){return{type:"Feature",id:t[e+un],properties:yf(t,e,n),geometry:{type:"Point",coordinates:[Ib(t[e]),Db(t[e+1])]}}}function yf(t,e,n){const r=t[e+cn],o=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,i=t[e+vf],s=i===-1?{}:Object.assign({},n[i]);return Object.assign(s,{cluster:!0,cluster_id:t[e+un],point_count:r,point_count_abbreviated:o})}function wi(t){return t/360+.5}function Ci(t){const e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function Ib(t){return(t-.5)*360}function Db(t){const e=(180-t*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! *****************************************************************************
|
|
83
83
|
Copyright (c) Microsoft Corporation.
|
|
84
84
|
|
|
85
85
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -97,4 +97,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
97
97
|
<circle cx="120" cy="120" opacity=".3" r="90" />
|
|
98
98
|
<circle cx="120" cy="120" opacity=".2" r="110" />
|
|
99
99
|
<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
|
|
100
|
-
</svg>`,a=`Cluster of ${e} markers`,u=Number(google.maps.Marker.MAX_ZINDEX)+e;if(bt.isAdvancedMarkerAvailable(o)){const f=document.createElement("div");f.innerHTML=s;const d=f.firstElementChild;d.setAttribute("transform","translate(0 25)");const h={map:o,position:n,zIndex:u,title:a,content:d};return new google.maps.marker.AdvancedMarkerElement(h)}const l={position:n,zIndex:u,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(s)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}function zb(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}class ma{constructor(){zb(ma,google.maps.OverlayView)}}var Zr;(function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"})(Zr||(Zr={}));const Fb=(t,e,n)=>{n.fitBounds(e.bounds)};class Vb extends ma{constructor({map:e,markers:n=[],algorithmOptions:r={},algorithm:o=new jb(r),renderer:i=new Hb,onClusterClick:s=Fb}){super(),this.markers=[...n],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=s,e&&this.setMap(e)}addMarker(e,n){this.markers.includes(e)||(this.markers.push(e),n||this.render())}addMarkers(e,n){e.forEach(r=>{this.addMarker(r,!0)}),n||this.render()}removeMarker(e,n){const r=this.markers.indexOf(e);return r===-1?!1:(bt.setMap(e,null),this.markers.splice(r,1),n||this.render(),!0)}removeMarkers(e,n){let r=!1;return e.forEach(o=>{r=this.removeMarker(o,!0)||r}),r&&!n&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,Zr.CLUSTERING_BEGIN,this);const{clusters:n,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const o=new Set;for(const s of n)s.markers.length==1&&o.add(s.markers[0]);const i=[];for(const s of this.clusters)s.marker!=null&&(s.markers.length==1?o.has(s.marker)||bt.setMap(s.marker,null):i.push(s.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame(()=>i.forEach(s=>bt.setMap(s,null)))}google.maps.event.trigger(this,Zr.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>bt.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new Ub(this.markers,this.clusters),n=this.getMap();this.clusters.forEach(r=>{r.markers.length===1?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,e,n),r.markers.forEach(o=>bt.setMap(o,null)),this.onClusterClick&&r.marker.addListener("click",o=>{google.maps.event.trigger(this,Zr.CLUSTER_CLICK,r),this.onClusterClick(o,r,n)})),bt.setMap(r.marker,n)})}}function Gb(t){var e=q0(),n=c.useState(null),r=n[0],o=n[1];return c.useEffect(function(){if(e&&r===null){var i=new Vb(te(te({},t),{map:e}));o(i)}},[e]),r}function Qb(t){var e=t.children,n=t.options,r=Gb(n);return r!==null?e(r):null}c.memo(Qb);var bf={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Ef={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}};function Yb(t){var e=t.children,n=t.anchor,r=t.options,o=t.position,i=t.zIndex,s=t.onCloseClick,a=t.onDomReady,u=t.onContentChanged,l=t.onPositionChanged,f=t.onZindexChanged,d=t.onLoad,h=t.onUnmount,g=c.useContext(he),v=c.useState(null),p=v[0],C=v[1],w=c.useState(null),m=w[0],b=w[1],O=c.useState(null),S=O[0],y=O[1],E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useRef(null);return c.useEffect(function(){p!==null&&(p.close(),n?p.open(g,n):p.getPosition()&&p.open(g))},[g,p,n]),c.useEffect(function(){r&&p!==null&&p.setOptions(r)},[p,r]),c.useEffect(function(){o&&p!==null&&p.setPosition(o)},[o]),c.useEffect(function(){typeof i=="number"&&p!==null&&p.setZIndex(i)},[i]),c.useEffect(function(){p&&s&&(m!==null&&google.maps.event.removeListener(m),b(google.maps.event.addListener(p,"closeclick",s)))},[s]),c.useEffect(function(){p&&a&&(S!==null&&google.maps.event.removeListener(S),y(google.maps.event.addListener(p,"domready",a)))},[a]),c.useEffect(function(){p&&u&&(A!==null&&google.maps.event.removeListener(A),M(google.maps.event.addListener(p,"content_changed",u)))},[u]),c.useEffect(function(){p&&l&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(p,"position_changed",l)))},[l]),c.useEffect(function(){p&&f&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(p,"zindex_changed",f)))},[f]),c.useEffect(function(){var G=new google.maps.InfoWindow(te({},r||{}));return C(G),K.current=document.createElement("div"),s&&b(google.maps.event.addListener(G,"closeclick",s)),a&&y(google.maps.event.addListener(G,"domready",a)),u&&M(google.maps.event.addListener(G,"content_changed",u)),l&&k(google.maps.event.addListener(G,"position_changed",l)),f&&Q(google.maps.event.addListener(G,"zindex_changed",f)),G.setContent(K.current),o&&G.setPosition(o),i&&G.setZIndex(i),n?G.open(g,n):G.getPosition()?G.open(g):Re(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),d&&d(G),function(){m&&google.maps.event.removeListener(m),A&&google.maps.event.removeListener(A),S&&google.maps.event.removeListener(S),x&&google.maps.event.removeListener(x),z&&google.maps.event.removeListener(z),h&&h(G),G.close()}},[]),K.current?Un.createPortal(c.Children.only(e),K.current):null}c.memo(Yb);var wf=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoWindow:null},n.open=function(r,o){o?r.open(n.context,o):r.getPosition()?r.open(n.context):Re(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},n.setInfoWindowCallback=function(){n.state.infoWindow!==null&&n.containerElement!==null&&(n.state.infoWindow.setContent(n.containerElement),n.open(n.state.infoWindow,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoWindow))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.InfoWindow(te({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=ve({updaterMap:Ef,eventMap:bf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{infoWindow:n}},this.setInfoWindowCallback)},e.prototype.componentDidUpdate=function(n){this.state.infoWindow!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Ef,eventMap:bf,prevProps:n,nextProps:this.props,instance:this.state.infoWindow}))},e.prototype.componentWillUnmount=function(){this.state.infoWindow!==null&&(ye(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},e.prototype.render=function(){return this.containerElement?Un.createPortal(c.Children.only(this.props.children),this.containerElement):null},e.contextType=he,e}(c.PureComponent),Cf={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Sf={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},Wb={};function Rb(t){var e=t.options,n=t.draggable,r=t.editable,o=t.visible,i=t.path,s=t.onDblClick,a=t.onDragEnd,u=t.onDragStart,l=t.onMouseDown,f=t.onMouseMove,d=t.onMouseOut,h=t.onMouseOver,g=t.onMouseUp,v=t.onRightClick,p=t.onClick,C=t.onDrag,w=t.onLoad,m=t.onUnmount,b=c.useContext(he),O=c.useState(null),S=O[0],y=O[1],E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useState(null),G=K[0],R=K[1],T=c.useState(null),I=T[0],D=T[1],V=c.useState(null),H=V[0],Y=V[1],ne=c.useState(null),U=ne[0],ee=ne[1],le=c.useState(null),Z=le[0],B=le[1],q=c.useState(null),_=q[0],re=q[1],pe=c.useState(null),oe=pe[0],ue=pe[1],Le=c.useState(null),Pe=Le[0],Me=Le[1];return c.useEffect(function(){S!==null&&S.setMap(b)},[b]),c.useEffect(function(){typeof e<"u"&&S!==null&&S.setOptions(e)},[S,e]),c.useEffect(function(){typeof n<"u"&&S!==null&&S.setDraggable(n)},[S,n]),c.useEffect(function(){typeof r<"u"&&S!==null&&S.setEditable(r)},[S,r]),c.useEffect(function(){typeof o<"u"&&S!==null&&S.setVisible(o)},[S,o]),c.useEffect(function(){typeof i<"u"&&S!==null&&S.setPath(i)},[S,i]),c.useEffect(function(){S&&s&&(A!==null&&google.maps.event.removeListener(A),M(google.maps.event.addListener(S,"dblclick",s)))},[s]),c.useEffect(function(){S&&a&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(S,"dragend",a)))},[a]),c.useEffect(function(){S&&u&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(S,"dragstart",u)))},[u]),c.useEffect(function(){S&&l&&(G!==null&&google.maps.event.removeListener(G),R(google.maps.event.addListener(S,"mousedown",l)))},[l]),c.useEffect(function(){S&&f&&(I!==null&&google.maps.event.removeListener(I),D(google.maps.event.addListener(S,"mousemove",f)))},[f]),c.useEffect(function(){S&&d&&(H!==null&&google.maps.event.removeListener(H),Y(google.maps.event.addListener(S,"mouseout",d)))},[d]),c.useEffect(function(){S&&h&&(U!==null&&google.maps.event.removeListener(U),ee(google.maps.event.addListener(S,"mouseover",h)))},[h]),c.useEffect(function(){S&&g&&(Z!==null&&google.maps.event.removeListener(Z),B(google.maps.event.addListener(S,"mouseup",g)))},[g]),c.useEffect(function(){S&&v&&(_!==null&&google.maps.event.removeListener(_),re(google.maps.event.addListener(S,"rightclick",v)))},[v]),c.useEffect(function(){S&&p&&(oe!==null&&google.maps.event.removeListener(oe),ue(google.maps.event.addListener(S,"click",p)))},[p]),c.useEffect(function(){S&&C&&(Pe!==null&&google.maps.event.removeListener(Pe),Me(google.maps.event.addListener(S,"drag",C)))},[C]),c.useEffect(function(){var ae=new google.maps.Polyline(te(te({},e||Wb),{map:b}));return i&&ae.setPath(i),typeof o<"u"&&ae.setVisible(o),typeof r<"u"&&ae.setEditable(r),typeof n<"u"&&ae.setDraggable(n),s&&M(google.maps.event.addListener(ae,"dblclick",s)),a&&k(google.maps.event.addListener(ae,"dragend",a)),u&&Q(google.maps.event.addListener(ae,"dragstart",u)),l&&R(google.maps.event.addListener(ae,"mousedown",l)),f&&D(google.maps.event.addListener(ae,"mousemove",f)),d&&Y(google.maps.event.addListener(ae,"mouseout",d)),h&&ee(google.maps.event.addListener(ae,"mouseover",h)),g&&B(google.maps.event.addListener(ae,"mouseup",g)),v&&re(google.maps.event.addListener(ae,"rightclick",v)),p&&ue(google.maps.event.addListener(ae,"click",p)),C&&Me(google.maps.event.addListener(ae,"drag",C)),y(ae),w&&w(ae),function(){A!==null&&google.maps.event.removeListener(A),x!==null&&google.maps.event.removeListener(x),z!==null&&google.maps.event.removeListener(z),G!==null&&google.maps.event.removeListener(G),I!==null&&google.maps.event.removeListener(I),H!==null&&google.maps.event.removeListener(H),U!==null&&google.maps.event.removeListener(U),Z!==null&&google.maps.event.removeListener(Z),_!==null&&google.maps.event.removeListener(_),oe!==null&&google.maps.event.removeListener(oe),m&&m(ae),ae.setMap(null)}},[]),null}c.memo(Rb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polyline:null},n.setPolylineCallback=function(){n.state.polyline!==null&&n.props.onLoad&&n.props.onLoad(n.state.polyline)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polyline(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Sf,eventMap:Cf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polyline:n}},this.setPolylineCallback)},e.prototype.componentDidUpdate=function(n){this.state.polyline!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Sf,eventMap:Cf,prevProps:n,nextProps:this.props,instance:this.state.polyline}))},e.prototype.componentWillUnmount=function(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),ye(this.registeredEvents),this.state.polyline.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Lf={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Af={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}};function Kb(t){var e=t.options,n=t.draggable,r=t.editable,o=t.visible,i=t.path,s=t.paths,a=t.onDblClick,u=t.onDragEnd,l=t.onDragStart,f=t.onMouseDown,d=t.onMouseMove,h=t.onMouseOut,g=t.onMouseOver,v=t.onMouseUp,p=t.onRightClick,C=t.onClick,w=t.onDrag,m=t.onLoad,b=t.onUnmount,O=c.useContext(he),S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1],G=c.useState(null),R=G[0],T=G[1],I=c.useState(null),D=I[0],V=I[1],H=c.useState(null),Y=H[0],ne=H[1],U=c.useState(null),ee=U[0],le=U[1],Z=c.useState(null),B=Z[0],q=Z[1],_=c.useState(null),re=_[0],pe=_[1],oe=c.useState(null),ue=oe[0],Le=oe[1],Pe=c.useState(null),Me=Pe[0],ae=Pe[1];return c.useEffect(function(){y!==null&&y.setMap(O)},[O]),c.useEffect(function(){typeof e<"u"&&y!==null&&y.setOptions(e)},[y,e]),c.useEffect(function(){typeof n<"u"&&y!==null&&y.setDraggable(n)},[y,n]),c.useEffect(function(){typeof r<"u"&&y!==null&&y.setEditable(r)},[y,r]),c.useEffect(function(){typeof o<"u"&&y!==null&&y.setVisible(o)},[y,o]),c.useEffect(function(){typeof i<"u"&&y!==null&&y.setPath(i)},[y,i]),c.useEffect(function(){typeof s<"u"&&y!==null&&y.setPaths(s)},[y,s]),c.useEffect(function(){y&&a&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(y,"dblclick",a)))},[a]),c.useEffect(function(){y&&u&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(y,"dragend",u)))},[u]),c.useEffect(function(){y&&l&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(y,"dragstart",l)))},[l]),c.useEffect(function(){y&&f&&(R!==null&&google.maps.event.removeListener(R),T(google.maps.event.addListener(y,"mousedown",f)))},[f]),c.useEffect(function(){y&&d&&(D!==null&&google.maps.event.removeListener(D),V(google.maps.event.addListener(y,"mousemove",d)))},[d]),c.useEffect(function(){y&&h&&(Y!==null&&google.maps.event.removeListener(Y),ne(google.maps.event.addListener(y,"mouseout",h)))},[h]),c.useEffect(function(){y&&g&&(ee!==null&&google.maps.event.removeListener(ee),le(google.maps.event.addListener(y,"mouseover",g)))},[g]),c.useEffect(function(){y&&v&&(B!==null&&google.maps.event.removeListener(B),q(google.maps.event.addListener(y,"mouseup",v)))},[v]),c.useEffect(function(){y&&p&&(re!==null&&google.maps.event.removeListener(re),pe(google.maps.event.addListener(y,"rightclick",p)))},[p]),c.useEffect(function(){y&&C&&(ue!==null&&google.maps.event.removeListener(ue),Le(google.maps.event.addListener(y,"click",C)))},[C]),c.useEffect(function(){y&&w&&(Me!==null&&google.maps.event.removeListener(Me),ae(google.maps.event.addListener(y,"drag",w)))},[w]),c.useEffect(function(){var fe=new google.maps.Polygon(te(te({},e||{}),{map:O}));return i&&fe.setPath(i),s&&fe.setPaths(s),typeof o<"u"&&fe.setVisible(o),typeof r<"u"&&fe.setEditable(r),typeof n<"u"&&fe.setDraggable(n),a&&P(google.maps.event.addListener(fe,"dblclick",a)),u&&N(google.maps.event.addListener(fe,"dragend",u)),l&&K(google.maps.event.addListener(fe,"dragstart",l)),f&&T(google.maps.event.addListener(fe,"mousedown",f)),d&&V(google.maps.event.addListener(fe,"mousemove",d)),h&&ne(google.maps.event.addListener(fe,"mouseout",h)),g&&le(google.maps.event.addListener(fe,"mouseover",g)),v&&q(google.maps.event.addListener(fe,"mouseup",v)),p&&pe(google.maps.event.addListener(fe,"rightclick",p)),C&&Le(google.maps.event.addListener(fe,"click",C)),w&&ae(google.maps.event.addListener(fe,"drag",w)),E(fe),m&&m(fe),function(){M!==null&&google.maps.event.removeListener(M),k!==null&&google.maps.event.removeListener(k),Q!==null&&google.maps.event.removeListener(Q),R!==null&&google.maps.event.removeListener(R),D!==null&&google.maps.event.removeListener(D),Y!==null&&google.maps.event.removeListener(Y),ee!==null&&google.maps.event.removeListener(ee),B!==null&&google.maps.event.removeListener(B),re!==null&&google.maps.event.removeListener(re),ue!==null&&google.maps.event.removeListener(ue),b&&b(fe),fe.setMap(null)}},[]),null}c.memo(Kb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polygon:null},n.setPolygonCallback=function(){n.state.polygon!==null&&n.props.onLoad&&n.props.onLoad(n.state.polygon)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polygon(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Af,eventMap:Lf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polygon:n}},this.setPolygonCallback)},e.prototype.componentDidUpdate=function(n){this.state.polygon!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Af,eventMap:Lf,prevProps:n,nextProps:this.props,instance:this.state.polygon}))},e.prototype.componentWillUnmount=function(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),ye(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var xf={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Of={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}};function qb(t){var e=t.options,n=t.bounds,r=t.draggable,o=t.editable,i=t.visible,s=t.onDblClick,a=t.onDragEnd,u=t.onDragStart,l=t.onMouseDown,f=t.onMouseMove,d=t.onMouseOut,h=t.onMouseOver,g=t.onMouseUp,v=t.onRightClick,p=t.onClick,C=t.onDrag,w=t.onBoundsChanged,m=t.onLoad,b=t.onUnmount,O=c.useContext(he),S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1],G=c.useState(null),R=G[0],T=G[1],I=c.useState(null),D=I[0],V=I[1],H=c.useState(null),Y=H[0],ne=H[1],U=c.useState(null),ee=U[0],le=U[1],Z=c.useState(null),B=Z[0],q=Z[1],_=c.useState(null),re=_[0],pe=_[1],oe=c.useState(null),ue=oe[0],Le=oe[1],Pe=c.useState(null),Me=Pe[0],ae=Pe[1],fe=c.useState(null),Ge=fe[0],_e=fe[1];return c.useEffect(function(){y!==null&&y.setMap(O)},[O]),c.useEffect(function(){typeof e<"u"&&y!==null&&y.setOptions(e)},[y,e]),c.useEffect(function(){typeof r<"u"&&y!==null&&y.setDraggable(r)},[y,r]),c.useEffect(function(){typeof o<"u"&&y!==null&&y.setEditable(o)},[y,o]),c.useEffect(function(){typeof i<"u"&&y!==null&&y.setVisible(i)},[y,i]),c.useEffect(function(){typeof n<"u"&&y!==null&&y.setBounds(n)},[y,n]),c.useEffect(function(){y&&s&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(y,"dblclick",s)))},[s]),c.useEffect(function(){y&&a&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(y,"dragend",a)))},[a]),c.useEffect(function(){y&&u&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(y,"dragstart",u)))},[u]),c.useEffect(function(){y&&l&&(R!==null&&google.maps.event.removeListener(R),T(google.maps.event.addListener(y,"mousedown",l)))},[l]),c.useEffect(function(){y&&f&&(D!==null&&google.maps.event.removeListener(D),V(google.maps.event.addListener(y,"mousemove",f)))},[f]),c.useEffect(function(){y&&d&&(Y!==null&&google.maps.event.removeListener(Y),ne(google.maps.event.addListener(y,"mouseout",d)))},[d]),c.useEffect(function(){y&&h&&(ee!==null&&google.maps.event.removeListener(ee),le(google.maps.event.addListener(y,"mouseover",h)))},[h]),c.useEffect(function(){y&&g&&(B!==null&&google.maps.event.removeListener(B),q(google.maps.event.addListener(y,"mouseup",g)))},[g]),c.useEffect(function(){y&&v&&(re!==null&&google.maps.event.removeListener(re),pe(google.maps.event.addListener(y,"rightclick",v)))},[v]),c.useEffect(function(){y&&p&&(ue!==null&&google.maps.event.removeListener(ue),Le(google.maps.event.addListener(y,"click",p)))},[p]),c.useEffect(function(){y&&C&&(Me!==null&&google.maps.event.removeListener(Me),ae(google.maps.event.addListener(y,"drag",C)))},[C]),c.useEffect(function(){y&&w&&(Ge!==null&&google.maps.event.removeListener(Ge),_e(google.maps.event.addListener(y,"bounds_changed",w)))},[w]),c.useEffect(function(){var X=new google.maps.Rectangle(te(te({},e||{}),{map:O}));return typeof i<"u"&&X.setVisible(i),typeof o<"u"&&X.setEditable(o),typeof r<"u"&&X.setDraggable(r),typeof n<"u"&&X.setBounds(n),s&&P(google.maps.event.addListener(X,"dblclick",s)),a&&N(google.maps.event.addListener(X,"dragend",a)),u&&K(google.maps.event.addListener(X,"dragstart",u)),l&&T(google.maps.event.addListener(X,"mousedown",l)),f&&V(google.maps.event.addListener(X,"mousemove",f)),d&&ne(google.maps.event.addListener(X,"mouseout",d)),h&&le(google.maps.event.addListener(X,"mouseover",h)),g&&q(google.maps.event.addListener(X,"mouseup",g)),v&&pe(google.maps.event.addListener(X,"rightclick",v)),p&&Le(google.maps.event.addListener(X,"click",p)),C&&ae(google.maps.event.addListener(X,"drag",C)),w&&_e(google.maps.event.addListener(X,"bounds_changed",w)),E(X),m&&m(X),function(){M!==null&&google.maps.event.removeListener(M),k!==null&&google.maps.event.removeListener(k),Q!==null&&google.maps.event.removeListener(Q),R!==null&&google.maps.event.removeListener(R),D!==null&&google.maps.event.removeListener(D),Y!==null&&google.maps.event.removeListener(Y),ee!==null&&google.maps.event.removeListener(ee),B!==null&&google.maps.event.removeListener(B),re!==null&&google.maps.event.removeListener(re),ue!==null&&google.maps.event.removeListener(ue),Me!==null&&google.maps.event.removeListener(Me),Ge!==null&&google.maps.event.removeListener(Ge),b&&b(X),X.setMap(null)}},[]),null}c.memo(qb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={rectangle:null},n.setRectangleCallback=function(){n.state.rectangle!==null&&n.props.onLoad&&n.props.onLoad(n.state.rectangle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Rectangle(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Of,eventMap:xf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{rectangle:n}},this.setRectangleCallback)},e.prototype.componentDidUpdate=function(n){this.state.rectangle!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Of,eventMap:xf,prevProps:n,nextProps:this.props,instance:this.state.rectangle}))},e.prototype.componentWillUnmount=function(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),ye(this.registeredEvents),this.state.rectangle.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Pf={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Mf={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},Zb={};function Jb(t){var e=t.options,n=t.center,r=t.radius,o=t.draggable,i=t.editable,s=t.visible,a=t.onDblClick,u=t.onDragEnd,l=t.onDragStart,f=t.onMouseDown,d=t.onMouseMove,h=t.onMouseOut,g=t.onMouseOver,v=t.onMouseUp,p=t.onRightClick,C=t.onClick,w=t.onDrag,m=t.onCenterChanged,b=t.onRadiusChanged,O=t.onLoad,S=t.onUnmount,y=c.useContext(he),E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useState(null),G=K[0],R=K[1],T=c.useState(null),I=T[0],D=T[1],V=c.useState(null),H=V[0],Y=V[1],ne=c.useState(null),U=ne[0],ee=ne[1],le=c.useState(null),Z=le[0],B=le[1],q=c.useState(null),_=q[0],re=q[1],pe=c.useState(null),oe=pe[0],ue=pe[1],Le=c.useState(null),Pe=Le[0],Me=Le[1],ae=c.useState(null),fe=ae[0],Ge=ae[1],_e=c.useState(null),X=_e[0],Qe=_e[1],Ue=c.useState(null),ht=Ue[0],at=Ue[1];return c.useEffect(function(){A!==null&&A.setMap(y)},[y]),c.useEffect(function(){typeof e<"u"&&A!==null&&A.setOptions(e)},[A,e]),c.useEffect(function(){typeof o<"u"&&A!==null&&A.setDraggable(o)},[A,o]),c.useEffect(function(){typeof i<"u"&&A!==null&&A.setEditable(i)},[A,i]),c.useEffect(function(){typeof s<"u"&&A!==null&&A.setVisible(s)},[A,s]),c.useEffect(function(){typeof r=="number"&&A!==null&&A.setRadius(r)},[A,r]),c.useEffect(function(){typeof n<"u"&&A!==null&&A.setCenter(n)},[A,n]),c.useEffect(function(){A&&a&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(A,"dblclick",a)))},[a]),c.useEffect(function(){A&&u&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(A,"dragend",u)))},[u]),c.useEffect(function(){A&&l&&(G!==null&&google.maps.event.removeListener(G),R(google.maps.event.addListener(A,"dragstart",l)))},[l]),c.useEffect(function(){A&&f&&(I!==null&&google.maps.event.removeListener(I),D(google.maps.event.addListener(A,"mousedown",f)))},[f]),c.useEffect(function(){A&&d&&(H!==null&&google.maps.event.removeListener(H),Y(google.maps.event.addListener(A,"mousemove",d)))},[d]),c.useEffect(function(){A&&h&&(U!==null&&google.maps.event.removeListener(U),ee(google.maps.event.addListener(A,"mouseout",h)))},[h]),c.useEffect(function(){A&&g&&(Z!==null&&google.maps.event.removeListener(Z),B(google.maps.event.addListener(A,"mouseover",g)))},[g]),c.useEffect(function(){A&&v&&(_!==null&&google.maps.event.removeListener(_),re(google.maps.event.addListener(A,"mouseup",v)))},[v]),c.useEffect(function(){A&&p&&(oe!==null&&google.maps.event.removeListener(oe),ue(google.maps.event.addListener(A,"rightclick",p)))},[p]),c.useEffect(function(){A&&C&&(Pe!==null&&google.maps.event.removeListener(Pe),Me(google.maps.event.addListener(A,"click",C)))},[C]),c.useEffect(function(){A&&w&&(fe!==null&&google.maps.event.removeListener(fe),Ge(google.maps.event.addListener(A,"drag",w)))},[w]),c.useEffect(function(){A&&m&&(X!==null&&google.maps.event.removeListener(X),Qe(google.maps.event.addListener(A,"center_changed",m)))},[C]),c.useEffect(function(){A&&b&&(ht!==null&&google.maps.event.removeListener(ht),at(google.maps.event.addListener(A,"radius_changed",b)))},[b]),c.useEffect(function(){var de=new google.maps.Circle(te(te({},e||Zb),{map:y}));return typeof r=="number"&&de.setRadius(r),typeof n<"u"&&de.setCenter(n),typeof r=="number"&&de.setRadius(r),typeof s<"u"&&de.setVisible(s),typeof i<"u"&&de.setEditable(i),typeof o<"u"&&de.setDraggable(o),a&&k(google.maps.event.addListener(de,"dblclick",a)),u&&Q(google.maps.event.addListener(de,"dragend",u)),l&&R(google.maps.event.addListener(de,"dragstart",l)),f&&D(google.maps.event.addListener(de,"mousedown",f)),d&&Y(google.maps.event.addListener(de,"mousemove",d)),h&&ee(google.maps.event.addListener(de,"mouseout",h)),g&&B(google.maps.event.addListener(de,"mouseover",g)),v&&re(google.maps.event.addListener(de,"mouseup",v)),p&&ue(google.maps.event.addListener(de,"rightclick",p)),C&&Me(google.maps.event.addListener(de,"click",C)),w&&Ge(google.maps.event.addListener(de,"drag",w)),m&&Qe(google.maps.event.addListener(de,"center_changed",m)),b&&at(google.maps.event.addListener(de,"radius_changed",b)),M(de),O&&O(de),function(){x!==null&&google.maps.event.removeListener(x),z!==null&&google.maps.event.removeListener(z),G!==null&&google.maps.event.removeListener(G),I!==null&&google.maps.event.removeListener(I),H!==null&&google.maps.event.removeListener(H),U!==null&&google.maps.event.removeListener(U),Z!==null&&google.maps.event.removeListener(Z),_!==null&&google.maps.event.removeListener(_),oe!==null&&google.maps.event.removeListener(oe),Pe!==null&&google.maps.event.removeListener(Pe),X!==null&&google.maps.event.removeListener(X),ht!==null&&google.maps.event.removeListener(ht),S&&S(de),de.setMap(null)}},[]),null}c.memo(Jb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={circle:null},n.setCircleCallback=function(){n.state.circle!==null&&n.props.onLoad&&n.props.onLoad(n.state.circle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Circle(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Mf,eventMap:Pf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{circle:n}},this.setCircleCallback)},e.prototype.componentDidUpdate=function(n){this.state.circle!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Mf,eventMap:Pf,prevProps:n,nextProps:this.props,instance:this.state.circle}))},e.prototype.componentWillUnmount=function(){var n;this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),ye(this.registeredEvents),(n=this.state.circle)===null||n===void 0||n.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var kf={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},If={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,r){t.loadGeoJson(e,n,r)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}};function _b(t){var e=t.options,n=t.onClick,r=t.onDblClick,o=t.onMouseDown,i=t.onMouseMove,s=t.onMouseOut,a=t.onMouseOver,u=t.onMouseUp,l=t.onRightClick,f=t.onAddFeature,d=t.onRemoveFeature,h=t.onRemoveProperty,g=t.onSetGeometry,v=t.onSetProperty,p=t.onLoad,C=t.onUnmount,w=c.useContext(he),m=c.useState(null),b=m[0],O=m[1],S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1],G=c.useState(null),R=G[0],T=G[1],I=c.useState(null),D=I[0],V=I[1],H=c.useState(null),Y=H[0],ne=H[1],U=c.useState(null),ee=U[0],le=U[1],Z=c.useState(null),B=Z[0],q=Z[1],_=c.useState(null),re=_[0],pe=_[1],oe=c.useState(null),ue=oe[0],Le=oe[1],Pe=c.useState(null),Me=Pe[0],ae=Pe[1],fe=c.useState(null),Ge=fe[0],_e=fe[1];return c.useEffect(function(){b!==null&&b.setMap(w)},[w]),c.useEffect(function(){b&&r&&(y!==null&&google.maps.event.removeListener(y),E(google.maps.event.addListener(b,"dblclick",r)))},[r]),c.useEffect(function(){b&&o&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(b,"mousedown",o)))},[o]),c.useEffect(function(){b&&i&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(b,"mousemove",i)))},[i]),c.useEffect(function(){b&&s&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(b,"mouseout",s)))},[s]),c.useEffect(function(){b&&a&&(R!==null&&google.maps.event.removeListener(R),T(google.maps.event.addListener(b,"mouseover",a)))},[a]),c.useEffect(function(){b&&u&&(D!==null&&google.maps.event.removeListener(D),V(google.maps.event.addListener(b,"mouseup",u)))},[u]),c.useEffect(function(){b&&l&&(Y!==null&&google.maps.event.removeListener(Y),ne(google.maps.event.addListener(b,"rightclick",l)))},[l]),c.useEffect(function(){b&&n&&(ee!==null&&google.maps.event.removeListener(ee),le(google.maps.event.addListener(b,"click",n)))},[n]),c.useEffect(function(){b&&f&&(B!==null&&google.maps.event.removeListener(B),q(google.maps.event.addListener(b,"addfeature",f)))},[f]),c.useEffect(function(){b&&d&&(re!==null&&google.maps.event.removeListener(re),pe(google.maps.event.addListener(b,"removefeature",d)))},[d]),c.useEffect(function(){b&&h&&(ue!==null&&google.maps.event.removeListener(ue),Le(google.maps.event.addListener(b,"removeproperty",h)))},[h]),c.useEffect(function(){b&&g&&(Me!==null&&google.maps.event.removeListener(Me),ae(google.maps.event.addListener(b,"setgeometry",g)))},[g]),c.useEffect(function(){b&&v&&(Ge!==null&&google.maps.event.removeListener(Ge),_e(google.maps.event.addListener(b,"setproperty",v)))},[v]),c.useEffect(function(){if(w!==null){var X=new google.maps.Data(te(te({},e||{}),{map:w}));r&&E(google.maps.event.addListener(X,"dblclick",r)),o&&P(google.maps.event.addListener(X,"mousedown",o)),i&&N(google.maps.event.addListener(X,"mousemove",i)),s&&K(google.maps.event.addListener(X,"mouseout",s)),a&&T(google.maps.event.addListener(X,"mouseover",a)),u&&V(google.maps.event.addListener(X,"mouseup",u)),l&&ne(google.maps.event.addListener(X,"rightclick",l)),n&&le(google.maps.event.addListener(X,"click",n)),f&&q(google.maps.event.addListener(X,"addfeature",f)),d&&pe(google.maps.event.addListener(X,"removefeature",d)),h&&Le(google.maps.event.addListener(X,"removeproperty",h)),g&&ae(google.maps.event.addListener(X,"setgeometry",g)),v&&_e(google.maps.event.addListener(X,"setproperty",v)),O(X),p&&p(X)}return function(){b&&(y!==null&&google.maps.event.removeListener(y),M!==null&&google.maps.event.removeListener(M),k!==null&&google.maps.event.removeListener(k),Q!==null&&google.maps.event.removeListener(Q),R!==null&&google.maps.event.removeListener(R),D!==null&&google.maps.event.removeListener(D),Y!==null&&google.maps.event.removeListener(Y),ee!==null&&google.maps.event.removeListener(ee),B!==null&&google.maps.event.removeListener(B),re!==null&&google.maps.event.removeListener(re),ue!==null&&google.maps.event.removeListener(ue),Me!==null&&google.maps.event.removeListener(Me),Ge!==null&&google.maps.event.removeListener(Ge),C&&C(b),b.setMap(null))}},[]),null}c.memo(_b),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={data:null},n.setDataCallback=function(){n.state.data!==null&&n.props.onLoad&&n.props.onLoad(n.state.data)},n}return e.prototype.componentDidMount=function(){if(this.context!==null){var n=new google.maps.Data(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:If,eventMap:kf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{data:n}},this.setDataCallback)}},e.prototype.componentDidUpdate=function(n){this.state.data!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:If,eventMap:kf,prevProps:n,nextProps:this.props,instance:this.state.data}))},e.prototype.componentWillUnmount=function(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),ye(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Df={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},Tf={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={kmlLayer:null},n.setKmlLayerCallback=function(){n.state.kmlLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.kmlLayer)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.KmlLayer(te(te({},this.props.options),{map:this.context}));this.registeredEvents=ve({updaterMap:Tf,eventMap:Df,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{kmlLayer:n}},this.setKmlLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.kmlLayer!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Tf,eventMap:Df,prevProps:n,nextProps:this.props,instance:this.state.kmlLayer}))},e.prototype.componentWillUnmount=function(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),ye(this.registeredEvents),this.state.kmlLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e})(c.PureComponent);function Bf(t,e){return typeof e=="function"?e(t.offsetWidth,t.offsetHeight):{x:0,y:0}}function Xb(t,e){return new e(t.lat,t.lng)}function $b(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function eE(t,e,n){return t instanceof e?t:n(t,e)}function tE(t,e,n){return t instanceof e?t:n(t,e)}function nE(t,e,n){var r=t&&t.fromLatLngToDivPixel(n.getNorthEast()),o=t&&t.fromLatLngToDivPixel(n.getSouthWest());return r&&o?{left:"".concat(o.x+e.x,"px"),top:"".concat(r.y+e.y,"px"),width:"".concat(r.x-o.x-e.x,"px"),height:"".concat(o.y-r.y-e.y,"px")}:{left:"-9999px",top:"-9999px"}}function rE(t,e,n){var r=t&&t.fromLatLngToDivPixel(n);if(r){var o=r.x,i=r.y;return{left:"".concat(o+e.x,"px"),top:"".concat(i+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}function Nf(t,e,n,r){return n!==void 0?nE(t,e,tE(n,google.maps.LatLngBounds,$b)):rE(t,e,eE(r,google.maps.LatLng,Xb))}function oE(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.height&&t.height===e.height}function iE(t,e,n,r,o){var i=function(s){je(a,s);function a(u,l,f,d){var h=s.call(this)||this;return h.container=u,h.pane=l,h.position=f,h.bounds=d,h}return a.prototype.onAdd=function(){var u,l=(u=this.getPanes())===null||u===void 0?void 0:u[this.pane];l==null||l.appendChild(this.container)},a.prototype.draw=function(){for(var u=this.getProjection(),l=te({},this.container?Bf(this.container,o):{x:0,y:0}),f=Nf(u,l,this.bounds,this.position),d=0,h=Object.entries(f);d<h.length;d++){var g=h[d],v=g[0],p=g[1];this.container.style[v]=p}},a.prototype.onRemove=function(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)},a}(google.maps.OverlayView);return new i(t,e,n,r)}function jf(t){if(!t)return"";var e=t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng);return e+""}function Uf(t){if(!t)return"";var e=t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west));return e+""}function sE(t){var e=t.position,n=t.bounds,r=t.mapPaneName,o=t.zIndex,i=t.onLoad,s=t.onUnmount,a=t.getPixelPositionOffset,u=t.children,l=c.useContext(he),f=c.useMemo(function(){var h=document.createElement("div");return h.style.position="absolute",h},[]),d=c.useMemo(function(){return iE(f,r,e,n,a)},[f,r,e,n]);return c.useEffect(function(){return i==null||i(d),d==null||d.setMap(l),function(){s==null||s(d),d==null||d.setMap(null)}},[l,d]),c.useEffect(function(){f.style.zIndex="".concat(o)},[o,f]),Da.createPortal(u,f)}c.memo(sE),function(t){je(e,t);function e(n){var r=t.call(this,n)||this;r.state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var i=r.props.mapPaneName,s=r.overlayView.getPanes();Re(!!i,"OverlayView requires props.mapPaneName but got %s",i),s?r.setState({paneEl:s[i]}):r.setState({paneEl:null})},r.onAdd=function(){var i,s;r.updatePane(),(s=(i=r.props).onLoad)===null||s===void 0||s.call(i,r.overlayView)},r.onPositionElement=function(){var i,s=r.overlayView.getProjection(),a=te({x:0,y:0},r.containerRef.current?Bf(r.containerRef.current,r.props.getPixelPositionOffset):{}),u=Nf(s,a,r.props.bounds,r.props.position),l=(i=r.state.containerStyle,i.left),f=i.top,d=i.width,h=i.height;oE(u,{left:l,top:f,width:d,height:h})||r.setState({containerStyle:{top:u.top||0,left:u.left||0,width:u.width||0,height:u.height||0,position:"absolute"}})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){var i,s;r.setState(function(){return{paneEl:null}}),(s=(i=r.props).onUnmount)===null||s===void 0||s.call(i,r.overlayView)},r.containerRef=c.createRef();var o=new google.maps.OverlayView;return o.onAdd=r.onAdd,o.draw=r.draw,o.onRemove=r.onRemove,r.overlayView=o,r}return e.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},e.prototype.componentDidUpdate=function(n){var r=jf(n.position),o=jf(this.props.position),i=Uf(n.bounds),s=Uf(this.props.bounds);(r!==o||i!==s)&&this.overlayView.draw(),n.mapPaneName!==this.props.mapPaneName&&this.updatePane()},e.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},e.prototype.render=function(){var n=this.state.paneEl;return n?Da.createPortal(L.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:c.Children.only(this.props.children)}),n):null},e.FLOAT_PANE="floatPane",e.MAP_PANE="mapPane",e.MARKER_LAYER="markerLayer",e.OVERLAY_LAYER="overlayLayer",e.OVERLAY_MOUSE_TARGET="overlayMouseTarget",e.contextType=he,e}(c.PureComponent);function aE(){}var Hf={onDblClick:"dblclick",onClick:"click"},zf={opacity:function(t,e){t.setOpacity(e)}};function lE(t){var e=t.url,n=t.bounds,r=t.options,o=t.visible,i=c.useContext(he),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),a=c.useMemo(function(){var u=new google.maps.GroundOverlay(e,s,te({},r));return u},[]);return c.useEffect(function(){a!==null&&a.setMap(i)},[i]),c.useEffect(function(){typeof e<"u"&&a!==null&&(a.set("url",e),a.setMap(i))},[a,e]),c.useEffect(function(){typeof o<"u"&&a!==null&&a.setOpacity(o?1:0)},[a,o]),c.useEffect(function(){var u=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));typeof n<"u"&&a!==null&&(a.set("bounds",u),a.setMap(i))},[a,n]),null}c.memo(lE),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={groundOverlay:null},n.setGroundOverlayCallback=function(){n.state.groundOverlay!==null&&n.props.onLoad&&n.props.onLoad(n.state.groundOverlay)},n}return e.prototype.componentDidMount=function(){Re(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var n=new google.maps.GroundOverlay(this.props.url,this.props.bounds,te(te({},this.props.options),{map:this.context}));this.registeredEvents=ve({updaterMap:zf,eventMap:Hf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{groundOverlay:n}},this.setGroundOverlayCallback)},e.prototype.componentDidUpdate=function(n){this.state.groundOverlay!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:zf,eventMap:Hf,prevProps:n,nextProps:this.props,instance:this.state.groundOverlay}))},e.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},e.prototype.render=function(){return null},e.defaultProps={onLoad:aE},e.contextType=he,e}(c.PureComponent);var Ff={},Vf={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}};function uE(t){var e=t.data,n=t.onLoad,r=t.onUnmount,o=t.options,i=c.useContext(he),s=c.useState(null),a=s[0],u=s[1];return c.useEffect(function(){google.maps.visualization||Re(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),c.useEffect(function(){Re(!!e,"data property is required in HeatmapLayer %s",e)},[e]),c.useEffect(function(){a!==null&&a.setMap(i)},[i]),c.useEffect(function(){o&&a!==null&&a.setOptions(o)},[a,o]),c.useEffect(function(){var l=new google.maps.visualization.HeatmapLayer(te(te({},o||{}),{data:e,map:i}));return u(l),n&&n(l),function(){a!==null&&(r&&r(a),a.setMap(null))}},[]),null}c.memo(uE),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={heatmapLayer:null},n.setHeatmapLayerCallback=function(){n.state.heatmapLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.heatmapLayer)},n}return e.prototype.componentDidMount=function(){Re(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),Re(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var n=new google.maps.visualization.HeatmapLayer(te(te({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=ve({updaterMap:Vf,eventMap:Ff,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{heatmapLayer:n}},this.setHeatmapLayerCallback)},e.prototype.componentDidUpdate=function(n){ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Vf,eventMap:Ff,prevProps:n,nextProps:this.props,instance:this.state.heatmapLayer})},e.prototype.componentWillUnmount=function(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),ye(this.registeredEvents),this.state.heatmapLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Gf={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Qf={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={streetViewPanorama:null},n.setStreetViewPanoramaCallback=function(){n.state.streetViewPanorama!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewPanorama)},n}return e.prototype.componentDidMount=function(){var n,r,o=(r=(n=this.context)===null||n===void 0?void 0:n.getStreetView())!==null&&r!==void 0?r:null;this.registeredEvents=ve({updaterMap:Qf,eventMap:Gf,prevProps:{},nextProps:this.props,instance:o}),this.setState(function(){return{streetViewPanorama:o}},this.setStreetViewPanoramaCallback)},e.prototype.componentDidUpdate=function(n){this.state.streetViewPanorama!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Qf,eventMap:Gf,prevProps:n,nextProps:this.props,instance:this.state.streetViewPanorama}))},e.prototype.componentWillUnmount=function(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),ye(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},e.prototype.render=function(){return null},e.contextType=he,e})(c.PureComponent),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={streetViewService:null},n.setStreetViewServiceCallback=function(){n.state.streetViewService!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewService)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:n}},this.setStreetViewServiceCallback)},e.prototype.componentWillUnmount=function(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={directionsService:null},n.setDirectionsServiceCallback=function(){n.state.directionsService!==null&&n.props.onLoad&&n.props.onLoad(n.state.directionsService)},n}return e.prototype.componentDidMount=function(){Re(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var n=new google.maps.DirectionsService;this.setState(function(){return{directionsService:n}},this.setDirectionsServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.directionsService!==null&&this.state.directionsService.route(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.directionsService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},e.prototype.render=function(){return null},e}(c.PureComponent);var Yf={onDirectionsChanged:"directions_changed"},Wf={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={directionsRenderer:null},n.setDirectionsRendererCallback=function(){n.state.directionsRenderer!==null&&(n.state.directionsRenderer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.directionsRenderer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=ve({updaterMap:Wf,eventMap:Yf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{directionsRenderer:n}},this.setDirectionsRendererCallback)},e.prototype.componentDidUpdate=function(n){this.state.directionsRenderer!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Wf,eventMap:Yf,prevProps:n,nextProps:this.props,instance:this.state.directionsRenderer}))},e.prototype.componentWillUnmount=function(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),ye(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},e.prototype.render=function(){return L.jsx(L.Fragment,{})},e.contextType=he,e})(c.PureComponent),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={distanceMatrixService:null},n.setDistanceMatrixServiceCallback=function(){n.state.distanceMatrixService!==null&&n.props.onLoad&&n.props.onLoad(n.state.distanceMatrixService)},n}return e.prototype.componentDidMount=function(){Re(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var n=new google.maps.DistanceMatrixService;this.setState(function(){return{distanceMatrixService:n}},this.setDistanceMatrixServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.distanceMatrixService!==null&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.distanceMatrixService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},e.prototype.render=function(){return null},e}(c.PureComponent);var Rf={onPlacesChanged:"places_changed"},Kf={bounds:function(t,e){t.setBounds(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=c.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){n.state.searchBox!==null&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}return e.prototype.componentDidMount=function(){if(Re(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){var n=this.containerElement.current.querySelector("input");if(n!==null){var r=new google.maps.places.SearchBox(n,this.props.options);this.registeredEvents=ve({updaterMap:Kf,eventMap:Rf,prevProps:{},nextProps:this.props,instance:r}),this.setState(function(){return{searchBox:r}},this.setSearchBoxCallback)}}},e.prototype.componentDidUpdate=function(n){this.state.searchBox!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Kf,eventMap:Rf,prevProps:n,nextProps:this.props,instance:this.state.searchBox}))},e.prototype.componentWillUnmount=function(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),ye(this.registeredEvents))},e.prototype.render=function(){return L.jsx("div",{ref:this.containerElement,children:c.Children.only(this.props.children)})},e.contextType=he,e})(c.PureComponent);var qf={onPlaceChanged:"place_changed"},Zf={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=c.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){n.state.autocomplete!==null&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}return e.prototype.componentDidMount=function(){var n;Re(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var r=(n=this.containerElement.current)===null||n===void 0?void 0:n.querySelector("input");if(r){var o=new google.maps.places.Autocomplete(r,this.props.options);this.registeredEvents=ve({updaterMap:Zf,eventMap:qf,prevProps:{},nextProps:this.props,instance:o}),this.setState(function(){return{autocomplete:o}},this.setAutocompleteCallback)}},e.prototype.componentDidUpdate=function(n){ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Zf,eventMap:qf,prevProps:n,nextProps:this.props,instance:this.state.autocomplete})},e.prototype.componentWillUnmount=function(){this.state.autocomplete!==null&&ye(this.registeredEvents)},e.prototype.render=function(){return L.jsx("div",{ref:this.containerElement,className:this.props.className,children:c.Children.only(this.props.children)})},e.defaultProps={className:""},e.contextType=he,e})(c.PureComponent);function ya(t){return typeof t=="object"&&"lat"in t&&"lng"in t?t.lat===$t[0]&&t.lng===$t[1]:t[0]===$t[0]&&t[1]===$t[1]}const cE={clickableIcons:!1,disableDefaultUI:!0,minZoom:0,maxZoom:20},Jf={optimized:!0},fE=1e3,Je={root:"MapGoogle-module__root__iB2RTt",hideUI:"MapGoogle-module__hideUI__zGYpjY",mapContainer:"MapGoogle-module__mapContainer__qTVsu4",balloon:"MapGoogle-module__balloon__nNM3fV",details:"MapGoogle-module__details__MuhoyT",cluster:"MapGoogle-module__cluster__KIS2sn",overlay:"MapGoogle-module__overlay__z03Yoa",mapControl:"MapGoogle-module__mapControl__Iu3xc4",geolocationControl:"MapGoogle-module__geolocationControl__cwYVsw",bottomSheet:"MapGoogle-module__bottomSheet__ql8eoC",locationViewContent:"MapGoogle-module__locationViewContent__LYJkkK",locationViewHeader:"MapGoogle-module__locationViewHeader__hzc7Ip",courierDetailsViewContent:"MapGoogle-module__courierDetailsViewContent__CIg-RD",courierDetailsViewHeader:"MapGoogle-module__courierDetailsViewHeader__vMFQjI",sheetSubmit:"MapGoogle-module__sheetSubmit__pjGRS0"},dE=({children:t,className:e,onLoad:n,onIdle:r,onUnmount:o})=>{const{map:i,disableCourierDelivery:s,hideMapUI:a}=Bt(),u=ze(v=>v.setDetailsOpen),l=mt(v=>v.setCourierPoint),f=yt(v=>v.setSelectedPoint),d=c.useMemo(()=>{var v,p;return{lat:((v=i==null?void 0:i.center)==null?void 0:v[0])??$t[0],lng:((p=i==null?void 0:i.center)==null?void 0:p[1])??$t[1]}},[i==null?void 0:i.center]),h=c.useCallback(async v=>{var w,m;const{latLng:p}=v;if(!p||s)return;u(!1),f(null);const C=[p.lat(),p.lng()];try{const b=await ta(C),O=(m=(w=b==null?void 0:b.results)==null?void 0:w[0])==null?void 0:m.formatted_address;O&&l({address:O,coords:C})}catch{l({address:null,coords:C})}},[s,l,u,f]),g=ya(d)?ul:es;return L.jsx(tb,{zoom:g,center:d,options:cE,mapContainerClassName:Ce(Je.root,e,{[Je.hideUI]:a}),onLoad:n,onIdle:r,onUnmount:o,onClick:h,children:t})},_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAEICAYAAAAJEPtqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAFmTSURBVHgB7X1psGVHedjX545GaBkYEKDFGB4Yi4BjZ6SRKFYz88+uggSSQAL5geQkUhbHoKSSOFtpximXU85igbMhx9aQBSfIFUNwIOVyrCckgo00SxIjh/0JxIwkS+hJI7TMzD2d/vr21/fr7q/79Ln33Pvum5lPenPO6X359l6ugvMwCOw5um+3eeyG8XgPtOPdoJs1rfSrQOvdoNRuBbBmE5p30CadmuZlr5ug1aZJswnQbk6Sqw0T9iCA3mxAH1N6x+Z9b1w/BudhEFBwHnqDQfY1OH1qX6tGf0K14zUMMkO5FiQSRlbxt2I8BbgQrYU86hgShSEQQxTN3U0LG+cJoz+cJ4AOsJx9PN7XaniH0u0eDLIcPACHoME3TMPCxzROlgICqLR4OYOREnBMG6Jo2ubTl+6AY+vXrG/CecjCeQI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E/6PwxvvPfAsNvt1HN/1oMqkxIFOxGClseSQoj1i2CExKQp8mdViO3q93age+XTO4ntb81QL8igxD99oCXHtEpN/tOG8Yc0QDj1LzPlH4yAEy9QQ7uvDHatUm7SwVsGvp5JHAeGjqBRwiPLko1veuf6kF3pc2E2xP4b4fFV53DRKcH0un5r8LAiiJ8DNuFACSwG+9Qn6SbAvBCLtQz43UGjKPfDeM/kIfhZEu47Rj2djId/YaYQxr7TT/gQW2gF/rlGfcrNODebdglk9sQ6F3HeVH9uGTy80ykjgDl4+C4d6Dvu/1TxL29URx7UgjR4286f4thzmi1PyKI3hqUrrghjVafDZNBPd6+8x/JY78Jti2QnsN2JgAOgbqE7/RDeqgOOcNU81+cwTQkLRhhABnZFI9eDZIcMCEU3L9CxrdduSZAaYIGotv8p5xaIY4xERUt8kEH8hDHpvJtpyOEpiceKnEErV3btbOTLJLSj95hv1F35z9ttGPyA3jaXUMCtDhFOzH5RvxluisXBWcLAeQgIAxSnRDYijQe4bThZ6YXvqKIt0iO2zXG7OdVneENTjWgw9sWiGDQI0LEhcA2/PmG0Tc+ESiOhxMCuzIsIbqdqoqQ2nbScXKqk9yP+I7tZ4eSvL7ufkLWc3QE2nKM706VQbA4fzYguwRnOwHkwBMGHeTBX5B3hjYe6LFP+s1h+tkmBPo1eYIzk98vsz82jU+naiGx+FsaxtMf9LNExKEQrgl5EbGxTI7MpJ7gaiqdv8Z3vEqQ2sp87kC/BE/l09Uizg+PQSvlnVkWnKsEUALyHE0OKYPd1arcdlzlruRAu8Mmdgt4FsHoSWsIJF3Yj094VYx+tR6BrR9oLpGQQ+OTqyPoBWPuRXA7Jm17nJoCrs0BF2f9O6cQvAvOE8B8oHqGE7cF59rV/Jv9yHQM1rh1e2QmAexM7NmqniwD/j9/ewWbk1NBkwAAAABJRU5ErkJggg==",Xf=28,$f=({children:t,hideFooter:e,minSnapHeight:n,submitDisabled:r,onSubmitClick:o,...i})=>L.jsx(_u,{...i,initialFocusRef:!1,defaultSnap:({snapPoints:s})=>Math.min(...s),snapPoints:({headerHeight:s,minHeight:a,footerHeight:u,maxHeight:l})=>[n==null?a:s+u+n,l-Xf],footer:e?null:L.jsx(wt,{disabled:r,variant:"primary",className:Je.sheetSubmit,onClick:o,children:L.jsx(gn,{keyName:"choose",ns:"common"})}),sibling:L.jsx("div",{"data-rsbs-backdrop":"true",onClick:s=>{var a;s.stopPropagation(),s.preventDefault(),(a=i.onDismiss)==null||a.call(i)}}),blocking:!1,children:L.jsx("div",{className:Je.bottomSheet,children:t})}),hE=({map:t,onAttach:e})=>{const n=yt(o=>o.setSelectPointHook),r=c.useCallback(o=>{o&&(e==null||e(),t==null||t.setZoom(vo),t==null||t.setCenter({lat:o.location.latitude,lng:o.location.longitude}))},[t]);c.useEffect(()=>{n(r)},[r,n])},pE=()=>{const[t,e]=c.useState(!1);return c.useEffect(()=>{if(t)return;const n=setTimeout(()=>e(!0),fE);return()=>clearTimeout(n)},[t]),[t,e]},gE=({map:t})=>{const e=vn(r=>r.place),n=ze(r=>r.zoom);c.useEffect(()=>{var i,s,a,u;if(!e)return;t==null||t.setZoom(n);const r=(s=(i=e.geometry)==null?void 0:i.location)==null?void 0:s.lng(),o=(u=(a=e.geometry)==null?void 0:a.location)==null?void 0:u.lat();!o||!r||t==null||t.setCenter({lng:r,lat:o})},[e,t])},ed=({isSelectedPoint:t})=>{const[e,n]=c.useState(!0),r=ze(o=>o.detailsOpen);return c.useEffect(()=>{n(t?!r:!0)},[r,t]),e},td=t=>ce.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.0035 28.0008V17.7646C31.0035 16.6603 30.3968 15.6453 29.4242 15.1223L22.4206 11.3567C21.5335 10.8798 20.4663 10.8798 19.5793 11.3567L12.5757 15.1223C11.603 15.6453 10.9963 16.6603 10.9963 17.7646V28.0008C10.9963 29.6576 12.3395 31.0008 13.9963 31.0008H19.311C19.3291 31.0012 19.3473 31.0014 19.3654 31.0014H22.634C22.6522 31.0014 22.6703 31.0012 22.6884 31.0008H28.0035C29.6604 31.0008 31.0035 29.6576 31.0035 28.0008ZM25.0841 29.0008H28.0035C28.5558 29.0008 29.0035 28.5531 29.0035 28.0008V17.7646C29.0035 17.3965 28.8013 17.0582 28.4771 16.8838L21.4735 13.1183C21.1778 12.9593 20.8221 12.9593 20.5264 13.1183L13.5228 16.8838C13.1986 17.0582 12.9963 17.3965 12.9963 17.7646V28.0008C12.9963 28.5531 13.4441 29.0008 13.9963 29.0008H16.9153C16.8826 28.8394 16.8654 28.6724 16.8654 28.5014V20.8949C16.8654 19.5142 17.9847 18.3949 19.3654 18.3949H22.634C24.0147 18.3949 25.134 19.5142 25.134 20.8949V28.5014C25.134 28.6724 25.1168 28.8394 25.0841 29.0008ZM22.6583 29.0008C22.9232 28.9881 23.134 28.7694 23.134 28.5014V20.8949C23.134 20.6188 22.9102 20.3949 22.634 20.3949H19.3654C19.0893 20.3949 18.8654 20.6188 18.8654 20.8949V28.5014C18.8654 28.7694 19.0763 28.9881 19.3411 29.0008H22.6583Z",fill:"currentcolor"}),ce.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),vE=t=>ce.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("g",{clipPath:"url(#clip0_422_11470)"},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0712 3.07116C16.583 2.58301 15.7916 2.58301 15.3034 3.07116L10 8.37456L4.69661 3.07116C4.20845 2.583 3.417 2.583 2.92884 3.07116C2.44069 3.55931 2.44069 4.35077 2.92884 4.83893L8.23224 10.1423L2.92903 15.4455C2.44087 15.9337 2.44087 16.7251 2.92903 17.2133C3.41718 17.7015 4.20864 17.7015 4.69679 17.2133L10 11.9101L15.3032 17.2133C15.7914 17.7015 16.5828 17.7015 17.071 17.2133C17.5591 16.7251 17.5591 15.9337 17.071 15.4455L11.7678 10.1423L17.0712 4.83893C17.5593 4.35078 17.5593 3.55932 17.0712 3.07116Z",fill:"currentcolor"})),ce.createElement("defs",null,ce.createElement("clipPath",{id:"clip0_422_11470"},ce.createElement("rect",{width:20.0004,height:20,fill:"white"})))),mE={root:"CloseButton-module__root__233rOd"},Si=({className:t,...e})=>L.jsx("div",{...e,className:Ce(mE.root,t),children:L.jsx(vE,{})}),fn={root:"CourierBalloon-module__root__4MUq03",details:"CourierBalloon-module__details__Ji6B9l",header:"CourierBalloon-module__header__SAzGF6",title:"CourierBalloon-module__title__FdGkJ2",description:"CourierBalloon-module__description__Su359i",actions:"CourierBalloon-module__actions__zJkpDW",errorVariant:"CourierBalloon-module__errorVariant__TjUPgn",logo:"CourierBalloon-module__logo__DMba5H"},ba=({SSR:t,variant:e,address:n,className:r,hasCloseButton:o,onDetails:i,onClose:s})=>{const a=e==="error",u=e==="default",l=t?"{ courier_balloon.title }":L.jsx(gn,{keyName:"title",ns:"courier_balloon"}),f=t?"{ courier_balloon.error_title }":L.jsx(gn,{keyName:"error_title",ns:"courier_balloon"}),d=t?"{ courier_balloon.error_description }":L.jsx(gn,{keyName:"error_description",ns:"courier_balloon"});return L.jsxs("div",{className:Ce(fn.root,r,fn[`${e}Variant`]),children:[L.jsxs("div",{className:fn.header,children:[L.jsx(td,{className:fn.logo}),L.jsx("span",{className:fn.title,children:a?f:l}),o&&L.jsx(Si,{onClick:s})]}),L.jsx("div",{className:fn.description,children:a?d:n||"{{ properties.address }}"}),u&&L.jsx("div",{className:fn.actions,children:L.jsx(wt,{id:go,as:"button",variant:"primary",className:fn.details,onClick:i,children:t?"{ details }":L.jsx(gn,{keyName:"details",ns:"common"})})})]})},nd={root:"Chip-module__root__A1duWr",active:"Chip-module__active__PmXa7K"},rd=({active:t,children:e,className:n,...r})=>L.jsx("div",{...r,className:Ce(nd.root,n,{[nd.active]:t}),children:e}),yE={root:"TextArea-module__root__l-RDfr"},od=c.forwardRef(({className:t,inputRef:e,onChange:n,onBlur:r,...o},i)=>{const s=c.useRef(null);c.useImperativeHandle(i,()=>({focus:()=>{var u;(u=s.current)==null||u.focus()},blur:()=>{var u;(u=s.current)==null||u.blur()},setValue:u=>{if(n){n({target:{value:u}});return}r&&r({target:{value:u}}),s.current&&(s.current.value=u)}}),[r,n]);const a=Cd(e,s);return L.jsx("textarea",{...o,ref:a,className:Ce(yE.root,t),onBlur:r,onChange:n})}),bE=({set:t})=>(e,n)=>{let r={...e};switch(n.type){case"SET_COMMENT":r={...e,comment:n.payload};break;case"SET_DELIVERY_TIME":r={...e,delivery_time:n.payload};break;case"SET_APARTMENT_NUMBER":r={...e,apartment_number:n.payload};break}return t==null||t(r),r},id=t=>{const{delivery_time:e,apartment_number:n}=t;return!!e&&!!n},ft={title:"CourierDetailsView-module__title__erksdV",logo:"CourierDetailsView-module__logo__qYbLKL",header:"CourierDetailsView-module__header__JofwHC",content:"CourierDetailsView-module__content__8xEbUb",section:"CourierDetailsView-module__section__NQlWki",chips:"CourierDetailsView-module__chips__T1ep8H",actions:"CourierDetailsView-module__actions__IgFrOE",submit:"CourierDetailsView-module__submit__Z-6fPa",actionsHidden:"CourierDetailsView-module__actionsHidden__VfVd-Y",commentSection:"CourierDetailsView-module__commentSection__vN110S",comment:"CourierDetailsView-module__comment__rOoPVP"},EE=({location:t,hideActions:e,classes:n,onClose:r,onChange:o,onSubmit:i})=>{const{inputs:s}=Bt(),{t:a}=xt(["details_modal","courier_balloon","common"]),u=c.useMemo(()=>bE({set:o}),[o]),[l,f]=c.useReducer(u,{...t,comment:"",delivery_time:"",apartment_number:""}),d=()=>{i==null||i(l)},h=m=>()=>{f({payload:m,type:"SET_DELIVERY_TIME"})},g=m=>{f({payload:m.target.value,type:"SET_APARTMENT_NUMBER"})},v=m=>{f({payload:m.target.value,type:"SET_COMMENT"})},p=id(l),C=Mi(s==null?void 0:s.apartment),w=Mi(s==null?void 0:s.comment);return L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:Ce(ft.header,n==null?void 0:n.header),children:[L.jsx(Si,{onClick:r}),L.jsxs("div",{className:ft.title,children:[L.jsx(td,{className:ft.logo}),L.jsx("span",{children:a("title",{ns:"courier_balloon"})})]})]}),L.jsxs("div",{className:Ce(ft.content,n==null?void 0:n.content),children:[L.jsxs("section",{className:ft.section,children:[L.jsxs("label",{children:[a("address"),":"]}),L.jsx("p",{children:t.address})]}),L.jsxs("section",{className:ft.section,children:[L.jsxs("label",{children:[a("delivery_time"),":"]}),L.jsxs("div",{className:ft.chips,children:[L.jsx(rd,{active:l.delivery_time==="8:00-13:00",onClick:h("8:00-13:00"),children:"8:00 - 13:00"}),L.jsx(rd,{active:l.delivery_time==="14:00-22:00",onClick:h("14:00-22:00"),children:"14:00 - 22:00"})]})]}),L.jsxs("section",{className:ft.section,children:[L.jsxs("label",{children:[a("apartment_number"),":"]}),L.jsx(od,{...C,rows:1,onChange:g})]}),L.jsxs("section",{className:Ce(ft.section,ft.commentSection),children:[L.jsxs("label",{children:[a("comment"),":"]}),L.jsx(od,{...w,className:ft.comment,onChange:v})]})]}),L.jsx("div",{className:Ce(ft.actions,{[ft.actionsHidden]:e}),children:L.jsx(wt,{disabled:!p,variant:"primary",className:ft.submit,onClick:d,children:a("choose",{ns:"common"})})})]})},sd=c.memo(EE),wE={header:Je.courierDetailsViewHeader,content:Je.courierDetailsViewContent},CE=({point:t,setOpenDetails:e,setCourierPoint:n,onPointClick:r})=>{const o=ed({isSelectedPoint:!0}),[i,s]=c.useState({...t,comment:"",delivery_time:"",apartment_number:""});c.useEffect(()=>{s({...t,comment:"",delivery_time:"",apartment_number:""})},[t]);const[a,u]=c.useState(null),l=eo("screenSm"),f={lat:i.coords[0],lng:i.coords[1]},d=()=>{e(!0)},h=()=>{n(null)},g={url:_f,scaledSize:new google.maps.Size(...Yt)},v=()=>{r(i),e(!1),n(null)},p=L.jsx(ba,{...i,hasCloseButton:l,variant:i.address?"default":"error",className:Je.balloon,onDetails:d,onClose:h}),C=id(i),w=o&&!!(a!=null&&a.getVisible());return L.jsxs(of,{noClustererRedraw:!0,icon:g,position:f,options:Jf,onLoad:u,children:[l&&L.jsxs($f,{minSnapHeight:i.address?200:void 0,submitDisabled:!C,hideFooter:!i.address,open:w,onDismiss:h,onSubmitClick:v,children:[i.address&&L.jsx(sd,{classes:wE,hideActions:!0,location:t,onChange:s,onClose:h}),!i.address&&p]}),!l&&w&&L.jsx(wf,{onCloseClick:h,children:p})]})},Ea="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAEICAYAAAAJEPtqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAGAkSURBVHgB7b1rrGVHeSj41T4NNg87TRxiuk2SQ5QxvjxMG7sJUn7QziQSoyR+ZJQokEjYuSOIeQRQJgl5je3cGJh7EyUo4ZXJBHOx4SqZwW2QCBjjPow0UkZu280oAeIbwfEM7jZ5tt0mYHefXbe+WvVVfV/VV+ux99r77HO6v+51Vq1a9a7vXVVrGzgHo8ChQ4f2fuc739l7+vTpA9bavS5q3RjzA+6O4b0ubh3TubjwjE82L+YkXi6Nv0+nAJMJbLq8j+DzZDI5hu/uv//+Y3AORgED52AwvPrVr15/+umnDzmEfAUitrsOuOh1nsYhamc5FSJQ01Fx1mfCB4tEgMSCRPFF15bNc4QxHM4RQAccOHBg79ra2iGHeK9pEN0ccMi4t0/eLiJokLk/pOSRCPIkKDmQII45grj7zJkzxxychHNQhXMEoMBVV111aDqdXmutcQhvDyWEa6AHc/fIzzl3Dn25v0wfnyARAL/TOwEbRBBHjx7dgHMg4BwBQMPlHYJc54KOy4O7W8HhCZmbMAyCmhQgVQZft0mC8lUN+WtEwCWFcSoTbLjA3Y7AD5+TDmcxARDSO+R7Az4CtKk1Q7h/g3BdEgChjwpEZUj1R6+zDHe01JjD7nb3gw8+eDucpXDW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osXtdyGebIhNFFjuCAYGX7RwD5Ho/UrAaI+mpK8KE4YYDQEmGWwOdAs9k/vtNOHafB4iWv2R6WHTLZu2g6wzg3QTup5QOTgd4IHD3FEzZNx4D8AZH5movEFnzAAAAAASUVORK5CYII=",ad=t=>ce.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ce.createElement("path",{d:"M7.63362 25C7.33927 25 7.067 24.9259 6.81681 24.7778C6.56662 24.6296 6.36793 24.4296 6.22076 24.1778C6.07359 23.9259 6 23.6519 6 23.3556V18.6444C6 18.3407 6.07359 18.0667 6.22076 17.8222C6.36793 17.5704 6.56662 17.3704 6.81681 17.2222C7.067 17.0741 7.33927 17 7.63362 17H12.3137C12.6081 17 12.8767 17.0741 13.1195 17.2222C13.3697 17.3704 13.5684 17.5704 13.7155 17.8222C13.8701 18.0667 13.9473 18.3407 13.9473 18.6444V23.3556C13.9473 23.6519 13.8701 23.9259 13.7155 24.1778C13.5684 24.4296 13.3697 24.6296 13.1195 24.7778C12.8767 24.9259 12.6081 25 12.3137 25H7.63362ZM7.71089 23.2667H12.2144V18.7333H7.71089V23.2667Z",fill:"black"}),ce.createElement("path",{d:"M15.1629 25V17H16.929L19.6222 20.2333L22.3045 17H24.0816V25H22.3597V19.6333L19.6222 22.9222L16.8738 19.6444V25H15.1629Z",fill:"black"}),ce.createElement("path",{d:"M25.4032 25V17H27.1693L31.6176 22.3333V17H33.3505V25H31.5845L27.1141 19.6444V25H25.4032Z",fill:"black"}),ce.createElement("path",{d:"M34.3112 25V17H36V25H34.3112Z",fill:"black"}),ce.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),SE=t=>ce.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{d:"M12.5 8.00003C12.5 8.28678 12.392 8.5735 12.1763 8.79212L5.38748 15.6718C4.95562 16.1094 4.25544 16.1094 3.82376 15.6718C3.39208 15.2343 3.39208 14.5249 3.82376 14.0872L9.83091 8.00003L3.82397 1.91279C3.39229 1.47515 3.39229 0.765811 3.82397 0.328387C4.25565 -0.109461 4.95583 -0.109461 5.38769 0.328387L12.1765 7.20793C12.3922 7.42666 12.5 7.71338 12.5 8.00003Z",fill:"currentcolor"})),On={root:"LocationBalloon-module__root__D5p9cL",submit:"LocationBalloon-module__submit__Ri5JaR",details:"LocationBalloon-module__details__6et6aX",header:"LocationBalloon-module__header__LCvDj0",title:"LocationBalloon-module__title__octhrc",description:"LocationBalloon-module__description__r7vFbw",actions:"LocationBalloon-module__actions__-jdejn"},ld=({SSR:t,name:e,location:n,onSubmit:r,className:o,onDetails:i,location_name:s})=>L.jsxs("div",{className:Ce(On.root,o),children:[L.jsxs("div",{className:On.header,children:[L.jsx(ad,{}),L.jsx("span",{className:On.title,children:e||"{{ properties.point.name }}"})]}),L.jsxs("div",{className:On.description,children:[(n==null?void 0:n.full_address)||"{{ properties.point.location.full_address }}",","," ",s||"{{ properties.point.location_name }}"]}),L.jsxs("div",{className:On.actions,children:[L.jsx(wt,{id:$i,variant:"primary",className:On.submit,onClick:r,children:t?"{ choose }":L.jsx(gn,{keyName:"choose",ns:"common"})}),L.jsxs(wt,{id:go,as:"link",variant:"primary",className:On.details,onClick:i,children:[t?"{ details }":L.jsx(gn,{keyName:"details",ns:"common"}),L.jsx(SE,{})]})]})]}),ot={title:"LocationView-module__title__QP69kD",logo:"LocationView-module__logo__nlPQaG",header:"LocationView-module__header__9DDuVU",content:"LocationView-module__content__Se2TSy",section:"LocationView-module__section__9m1x1v",chips:"LocationView-module__chips__6j-ZAh",services:"LocationView-module__services__rwbp2x",images:"LocationView-module__images__zfnQMA",image:"LocationView-module__image__JKvt9J",actions:"LocationView-module__actions__AGih3C",actionsHidden:"LocationView-module__actionsHidden__DBV1vj",submit:"LocationView-module__submit__6mD2w-",scheduleItem:"LocationView-module__scheduleItem__snTLMb"},LE=({location:t,hideActions:e,classes:n,onClose:r,onSubmit:o})=>{const{t:i}=xt(["details_modal","common"]);return L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:Ce(ot.header,n==null?void 0:n.header),children:[L.jsx(Si,{onClick:r}),L.jsxs("div",{className:ot.title,children:[L.jsx(ad,{className:ot.logo}),L.jsx("span",{children:t.name})]})]}),L.jsxs("div",{className:Ce(ot.content,n==null?void 0:n.content),children:[L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("address"),":"]}),L.jsx("p",{children:t.location.full_address})]}),!!t.schedule.length&&L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("schedule"),":"]}),t.schedule.map((s,a)=>L.jsx("p",{className:ot.scheduleItem,children:s},a))]}),(t.pay_by_card||t.pay_by_card)&&L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("payment_method"),":"]}),L.jsxs("div",{className:ot.chips,children:[t.pay_by_cash&&i("pay_by_cash"),t.pay_by_card&&t.pay_by_cash&&", ",t.pay_by_card&&i("pay_by_card")]})]}),L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("services"),":"]}),L.jsxs("div",{className:ot.services,children:[t.is_pickup&&L.jsx("span",{children:i("is_pickup")}),t.is_delivery&&L.jsx("span",{children:i("is_delivery")}),t.is_dressing_room&&L.jsx("span",{children:i("is_dressing_room")}),t.is_check_order&&L.jsx("span",{children:i("is_check_order")})]})]}),L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("location"),":"]}),L.jsx("p",{children:t.location_name})]}),!!t.images.length&&L.jsx("section",{className:ot.images,children:t.images.map(s=>L.jsx("img",{src:s,alt:t.name,className:ot.image},s))})]}),L.jsx("div",{className:Ce(ot.actions,{[ot.actionsHidden]:e}),children:L.jsx(wt,{variant:"primary",className:ot.submit,onClick:o,children:i("choose",{ns:"common"})})})]})},ud=c.memo(LE),AE={header:Je.locationViewHeader,content:Je.locationViewContent},xE=({point:t,clusterer:e,onPointClick:n,selectedPoint:r,setOpenDetails:o,onPointSelected:i})=>{const s=eo("screenSm"),[a,u]=c.useState(null),l=()=>{o(!1),i(t)},f=()=>{i(null)},d=()=>{o(!0),i(t)},h=()=>{n(t),o(!1),i(null)},g=(r==null?void 0:r.uid)===t.uid,v=g?zn:Yt,p=ed({isSelectedPoint:g}),C={scaledSize:new google.maps.Size(...v),url:t.type===30?wa:Ea},w={lat:t.location.latitude,lng:t.location.longitude},m=g&&p&&!!(a!=null&&a.getVisible());return L.jsxs(of,{noClustererRedraw:!0,icon:C,position:w,clusterer:e,options:Jf,onLoad:u,onClick:l,children:[s&&L.jsx($f,{minSnapHeight:200,open:m,onDismiss:f,onSubmitClick:h,children:L.jsx(ud,{classes:AE,hideActions:!0,location:t,onClose:f})}),m&&!s&&L.jsx(wf,{onCloseClick:f,children:L.jsx(ld,{...t,className:Je.balloon,onSubmit:h,onDetails:d})})]},t.uid)},OE=({points:t,selectedPoint:e,onOpenDetails:n,onPointClick:r,onPointSelected:o})=>L.jsx(Ab,{clusterClass:Je.cluster,onClusteringEnd:()=>{setTimeout(()=>{const i=document.getElementsByClassName(Je.cluster);for(const s of i)s.addEventListener("touchstart",Ic,{passive:!0})},100)},onUnmount:()=>{const i=document.getElementsByClassName(Je.cluster);for(const s of i)s.removeEventListener("touchstart",Ic)},children:i=>L.jsx(c.Fragment,{children:t.map(s=>L.jsx(xE,{point:s,clusterer:i,selectedPoint:e,setOpenDetails:n,onPointClick:r,onPointSelected:o},s.uid))})}),PE=c.memo(OE),ME=({mounted:t,onOpenDetails:e,onPointClick:n,onPointSelected:r})=>{const{locale:o}=Bt(),i=zt(l=>l.points),s=yt(l=>l.location),a=vn(l=>l.place);if(!t)return null;const u=JSON.stringify([i.length,o,a==null?void 0:a.place_id]);return L.jsx(PE,{points:i,selectedPoint:s,onOpenDetails:e,onPointClick:n,onPointSelected:r},u)},kE=c.memo(ME),IE=t=>ce.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("g",{id:"icon"},ce.createElement("rect",{id:"Rectangle 1602",x:9,width:2,height:20,rx:1,fill:"white"}),ce.createElement("rect",{id:"Rectangle 1603",x:20,y:9,width:2,height:20,rx:1,transform:"rotate(90 20 9)",fill:"white"}),ce.createElement("circle",{id:"Ellipse 789",cx:10,cy:10,r:8,fill:"white"}),ce.createElement("circle",{id:"Ellipse 790",cx:10,cy:10,r:6,fill:"currentcolor"}),ce.createElement("circle",{id:"Ellipse 791",cx:10,cy:10,r:4,fill:"white"}))),DE=t=>{const e=document.createElement("div"),n=document.createElement("div");e.classList.add(Je.mapControl),n.classList.add(Je.mapControl),e.innerHTML="+",n.innerHTML="—",t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(n),t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e),e.addEventListener("click",()=>{const r=t.getZoom()||0;return t.setZoom(r+1)}),n.addEventListener("click",()=>{const r=t.getZoom()||0;return t.setZoom(r-1)})},TE=t=>{const e=document.createElement("div");e.classList.add(Je.mapControl),e.classList.add(Je.geolocationControl),e.innerHTML=ao.renderToString(L.jsx(IE,{})),t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e),e.addEventListener("click",()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(n=>{const{latitude:r,longitude:o}=n.coords;t.panTo({lat:r,lng:o}),t.setZoom(es)})})},BE=({className:t})=>{const e=ze(m=>m.loading),n=ze(m=>m.setDetailsOpen),r=Sn(),o=zt(m=>m.loading),i=zt(m=>m.loadNext),s=mt(m=>m.courierPoint),a=mt(m=>m.setCourierPoint),u=yt(m=>m.setSelectedPoint),{onPointClick:l}=Bt(),[f,d]=pE(),[h,g]=c.useState(null);gE({map:h}),hE({map:h,onAttach:()=>d(!1)});const v=c.useCallback(m=>{g(m),DE(m),TE(m)},[]),p=c.useCallback(()=>{g(null)},[]),C=c.useCallback(()=>{if(!h)return;const m=h==null?void 0:h.getBounds();m&&i([[m.getSouthWest().lat(),m.getNorthEast().lat()],[m.getSouthWest().lng(),m.getNorthEast().lng()]],r)},[r,i,h]),w=c.useCallback((...m)=>{a(null),u(...m)},[a,u]);return L.jsxs("div",{className:Ce(Je.mapContainer,t),children:[L.jsxs(dE,{onIdle:C,onLoad:v,onUnmount:p,children:[s&&L.jsx(CE,{point:s,onPointClick:l,setOpenDetails:n,setCourierPoint:a}),L.jsx(kE,{mounted:f,onPointClick:l,onOpenDetails:n,onPointSelected:w})]}),(o||e||!f)&&L.jsx(sa,{className:Je.overlay,children:L.jsx(aa,{})})]})},NE=c.memo(BE);function Pn(){return Pn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pn.apply(this,arguments)}const cd=(t,e)=>{const n={};for(const r in t)e.indexOf(r)===-1&&(n[r]=t[r]);return n},fd=c.createContext(null),Li=c.createContext(null),dd=t=>e=>c.createElement(Li.Consumer,null,n=>c.createElement(t,Pn({parent:n},e))),jE=(t=[])=>{const[e,n]=c.useState(!1),r=c.useRef(t),o=(()=>{const s=c.useContext(fd);if(s===null)throw new Error("Couldn't find Yandex.Maps API in the context. Make sure that hook useYMaps is inside <YMaps /> provider");return s})(),i=o.getApi();return c.useEffect(()=>{o.load().then(()=>Promise.all(r.current.map(o.loadModule))).then(()=>n(!0))},[]),e&&i?i:null},UE=()=>{},HE=["onLoad","onError","modules","apiLoader"];function Ca(t,e=!1,n=[]){return r=>{const{width:o,height:i,modules:s=[],onLoad:a=UE}=r,u=jE(n.concat(s)),l=!e||!!u,f=cd(r,HE);return c.useEffect(()=>u?a(u):void 0,[u]),l?c.createElement(t,Pn({ymaps:u},f)):c.createElement("div",{style:{width:o,height:i}})}}const zE=typeof window<"u",hd={lang:"ru_RU",load:"",ns:"",mode:"release"},FE=t=>{const{version:e="2.1",enterprise:n=!1,query:r={lang:"ru_RU",load:"",ns:""},preload:o=!1,children:i}=t,s=c.useRef((a=>{const{query:u=hd}=a,l=Date.now().toString(32),f=u.ns||"",d="__yandex-maps-api-onload__$$"+l,h="__yandex-maps-api-onerror__$$"+l,g=zE?window:{},v={};let p;const C=()=>f?g[f]:p,w=()=>{delete g[d],delete g[h]};return{load:()=>{if(C())return Promise.resolve(p);if(v[f])return v[f];const m={onload:d,onerror:h,...hd,...u},b=Object.keys(m).map(S=>`${S}=${m[S]}`).join("&"),O=[`https://${a.enterprise?"enterprise.":""}api-maps.yandex.ru`,a.version,"?"+b].join("/");return v[f]=new Promise((S,y)=>{g[d]=E=>{w(),E.ready(()=>{p=E,S(E)})},g[h]=E=>{w(),y(E)},(E=>new Promise((A,M)=>{const P=document.createElement("script");P.type="text/javascript",P.onload=A,P.onerror=M,P.src=E,P.async=!0,document.head.appendChild(P)}))(O).catch(g[h])}),v[f]},getApi:C,loadModule:m=>new Promise((b,O)=>{p.modules.require(m).done(S=>{S.forEach(y=>{((E,A,M,P=!1)=>{const x=typeof A=="string"?A.split("."):A.slice();let k,N=E;for(;x.length>1;)k=x.shift(),N[k]||(N[k]={}),N=N[k];const z=x[0];N[z]=P===!0&&N[z]||M})(p,m,y,!0)}),b(p)},O)})}})({version:e,enterprise:n,query:r,preload:o}));return c.useEffect(()=>{o&&s.current.load()},[s.current]),c.createElement(fd.Provider,{value:s.current},i)},pd=/^on(?=[A-Z])/;function Ve(t){return Object.keys(t).reduce((e,n)=>{if(pd.test(n)){const r=n.replace(pd,"").toLowerCase();e._events[r]=t[n]}else e[n]=t[n];return e},{_events:{}})}function Mn(t,e,n){typeof n=="function"&&t.events.add(e,n)}function kn(t,e,n){typeof n=="function"&&t.events.remove(e,n)}function sr(t,e,n){Object.keys(Object.assign({},e,n)).forEach(r=>{e[r]!==n[r]&&(kn(t,r,e[r]),Mn(t,r,n[r]))})}const gd=t=>"default"+t.charAt(0).toUpperCase()+t.slice(1);function $e(t,e){return t[e]!==void 0||t[gd(e)]===void 0}function $(t,e,n){return($e(t,e)?t[e]:t[gd(e)])||n}function et(t,e,n=null){if(t!==e){if(t&&("current"in t?t.current=null:typeof t=="function"&&t(null)),!e)return;"current"in e?e.current=n:typeof e=="function"&&e(n)}}function vd(t){const{width:e,height:n,style:r,className:o}=t;return r!==void 0||o!==void 0?Object.assign({},r&&{style:r},o&&{className:o}):{style:{width:e,height:n}}}class VE extends c.Component{constructor(e){super(e),this.state={error:null,errorInfo:null}}componentDidCatch(e,n){const{onError:r=()=>{}}=this.props;r(e),this.setState({error:e,errorInfo:n})}render(){return this.state.error?null:this.props.children}}const Sa=t=>({onError:e,...n})=>c.createElement(VE,{onError:e},c.createElement(t,n));class Jr extends c.Component{constructor(){super(),this.instance=null,this.state={instance:null},this._parentElement=null,this._getRef=e=>{this._parentElement=e}}componentDidMount(){this.instance=Jr.mountObject(this._parentElement,this.props.ymaps.Map,this.props),this.setState({instance:this.instance})}componentDidUpdate(e){this.instance!==null&&Jr.updateObject(this.instance,e,this.props)}componentWillUnmount(){Jr.unmountObject(this.instance,this.props)}render(){const e=vd(this.props),n=Ve(this.props),r=cd(n,["_events","state","defaultState","options","defaultOptions","instanceRef","ymaps","children","width","height","style","className"]);return c.createElement(Li.Provider,{value:this.state.instance},c.createElement("div",Pn({ref:this._getRef},e,r),this.props.children))}static mountObject(e,n,r){const{instanceRef:o,_events:i}=Ve(r),s=new n(e,$(r,"state"),$(r,"options"));return Object.keys(i).forEach(a=>Mn(s,a,i[a])),et(null,o,s),s}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"state")){const u=$(n,"state",{}),l=$(r,"state",{});u.type!==l.type&&e.setType(l.type),u.behaviors!==l.behaviors&&(u.behaviors&&e.behaviors.disable(u.behaviors),l.behaviors&&e.behaviors.enable(l.behaviors)),l.zoom&&u.zoom!==l.zoom&&e.setZoom(l.zoom),l.center&&u.center!==l.center&&e.setCenter(l.center),l.bounds&&u.bounds!==l.bounds&&e.setBounds(l.bounds)}if($e(r,"options")){const u=$(n,"options"),l=$(r,"options",{});u!==l&&e.options.set(l)}$(n,"width")===$(r,"width")&&$(n,"height")===$(r,"height")||e.container.fitToViewport(),sr(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,_events:o}=Ve(n);e!==null&&(Object.keys(o).forEach(i=>kn(e,i,o[i])),e.destroy(),et(r))}}const md=Sa(Ca(Jr,!0,["Map"]));md.defaultProps={width:320,height:240};class Ai extends c.Component{constructor(){super(),this.state={instance:null},this._parentElement=null,this._getRef=e=>{this._parentElement=e}}componentDidMount(){this._mounted=!0,this.props.ymaps.panorama.isSupported()&&Ai.mountObject(this._parentElement,this.props.ymaps.panorama,this.props).then(e=>this._mounted&&this.setState({instance:e}))}componentDidUpdate(e){this.state.instance!==null&&Ai.updateObject(this.state.instance,e,this.props)}componentWillUnmount(){this._mounted=!1,Ai.unmountObject(this.state.instance,this.props)}render(){const e=vd(this.props);return c.createElement("div",Pn({ref:this._getRef},e))}static mountObject(e,n,r){const{instanceRef:o,_events:i}=Ve(r),s=$(r,"point"),a=$(r,"locateOptions"),u=$(r,"options");return new Promise((l,f)=>{n.locate(s,a).done(d=>{if(d.length>0){const h=new n.Player(e,d[0],u);et(null,o,h),Object.keys(i).forEach(g=>Mn(h,g,i[g])),l(h)}},f)})}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}if($e(r,"point")){const u=$(r,"point"),l=$(n,"point"),f=$(r,"locateOptions");u!==l&&e.moveTo(u,f)}sr(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,_events:o}=Ve(n);e!==null&&(Object.keys(o).forEach(i=>kn(e,i,o[i])),et(r))}}class xi extends c.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){const e=xi.mountControl(this.props.ymaps.control[this.props.name],this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){this.instance!==null&&xi.updateControl(this.instance,e,this.props)}componentWillUnmount(){xi.unmountControl(this.instance,this.props)}render(){return c.createElement(Li.Provider,{value:this.state.instance},this.props.children)}static mountControl(e,n){const{instanceRef:r,parent:o,lazy:i,_events:s}=Ve(n),a=new e({data:$(n,"data"),options:$(n,"options"),state:$(n,"state"),mapTypes:$(n,"mapTypes"),lazy:i});if(Object.keys(s).forEach(u=>Mn(a,u,s[u])),o&&o.controls&&typeof o.controls.add=="function")o.controls.add(a);else{if(!o||!o.add||typeof o.add!="function")throw new Error(`No parent found to mount ${n.name}`);o.add(a)}return et(null,r,a),a}static updateControl(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}if($e(r,"data")){const u=$(n,"data"),l=$(r,"data");u!==l&&e.data.set(l)}if($e(r,"state")){const u=$(n,"state"),l=$(r,"state");u!==l&&e.state.set(l)}if($e(r,"mapTypes")){const u=$(n,"mapTypes"),l=$(r,"mapTypes");u!==l&&(e.removeAllMapTypes(),l.forEach(f=>e.addMapType(f)))}sr(e,s,o),et(a,i,e)}static unmountControl(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>kn(e,s,i[s])),o.controls&&typeof o.controls.remove=="function"?o.controls.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}class Oi extends c.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){const e=Oi.mountObject(this.props.ymaps.Clusterer,this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){this.state.instance!==null&&Oi.updateObject(this.instance,e,this.props)}componentWillUnmount(){Oi.unmountObject(this.instance,this.props)}render(){return c.createElement(Li.Provider,{value:this.state.instance},this.props.children)}static mountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n),s=new e($(n,"options"));if(Object.keys(i).forEach(a=>Mn(s,a,i[a])),o.geoObjects&&typeof o.geoObjects.add=="function")o.geoObjects.add(s);else{if(!o.add||typeof o.add!="function")throw new Error("No parent found to mount Clusterer");o.add(s)}return et(null,r,s),s}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}sr(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>kn(e,s,i[s])),o.geoObjects&&typeof o.geoObjects.remove=="function"?o.geoObjects.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}class _r extends c.Component{constructor(){super(),this.state={instance:null}}componentDidMount(){const e=_r.mountObject(this.props.ymaps.ObjectManager,this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){this.instance!==null&&_r.updateObject(this.instance,e,this.props)}componentWillUnmount(){_r.unmountObject(this.instance,this.props)}render(){return null}static mountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n),s=$(n,"options",{}),a=$(n,"features",{}),u=$(n,"filter",null),l=$(n,"objects",{}),f=$(n,"clusters",{}),d=new e(s);if(d.add(a||[]),d.setFilter(u),d.objects.options.set(l),d.clusters.options.set(f),Object.keys(i).forEach(h=>Mn(d,h,i[h])),o.geoObjects&&typeof o.geoObjects.add=="function")o.geoObjects.add(d);else{if(!o.add||typeof o.add!="function")throw new Error("No parent found to mount ObjectManager");o.add(d)}return et(null,r,d),d}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}if($e(r,"objects")){const u=$(n,"objects"),l=$(r,"objects");u!==l&&e.objects.options.set(l)}if($e(r,"clusters")){const u=$(n,"clusters"),l=$(r,"clusters");u!==l&&e.clusters.options.set(l)}if($e(r,"filter")){const u=$(n,"filter"),l=$(r,"filter");u!==l&&e.setFilter(l)}if($e(r,"features")){const u=$(n,"features"),l=$(r,"features");u!==l&&(e.remove(u),e.add(l))}sr(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>kn(e,s,i[s])),o.geoObjects&&typeof o.geoObjects.remove=="function"?o.geoObjects.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}var GE=Sa(dd(Ca(_r,!0,["ObjectManager"])));class Xr extends c.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){const{name:e,ymaps:n,dangerZone:r}=this.props,o=Xr.mountObject(r&&typeof r.modifyConstructor=="function"?r.modifyConstructor(n[e]):n[e],this.props);this.instance=o,this.setState({instance:o})}componentDidUpdate(e){this.instance!==null&&Xr.updateObject(this.instance,e,this.props)}componentWillUnmount(){Xr.unmountObject(this.instance,this.props)}render(){return null}static mountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n),s=new e($(n,"geometry"),$(n,"properties"),$(n,"options"));if(Object.keys(i).forEach(a=>Mn(s,a,i[a])),o&&o.geoObjects&&typeof o.geoObjects.add=="function")o.geoObjects.add(s);else{if(!o||!o.add||typeof o.add!="function")throw new Error(`No parent found to mount ${n.name}`);o.add(s)}return et(null,r,s),s}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"geometry")){const u=$(n,"geometry",{}),l=$(r,"geometry",{});Array.isArray(l)&&l!==u?Array.isArray(l[0])&&typeof l[1]=="number"?(e.geometry.setCoordinates(l[0]),e.geometry.setRadius(l[1])):e.geometry.setCoordinates(l):typeof l=="object"&&(l.coordinates!==u.coordinates&&e.geometry.setCoordinates(l.coordinates),l.radius!==u.radius&&e.geometry.setRadius(l.radius))}if($e(r,"properties")){const u=$(n,"properties"),l=$(r,"properties");u!==l&&e.properties.set(l)}if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}sr(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>kn(e,s,i[s])),o.geoObjects&&typeof o.geoObjects.remove=="function"?o.geoObjects.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}var yd=Sa(dd(Ca(t=>c.createElement(Xr,Pn({},t,{name:"Placemark"})),!0,["Placemark"])));const bd=(t,e,n)=>t==null?void 0:t.map(r=>{var o;return{id:r.uid,type:"Feature",properties:{point:r},geometry:{type:"Point",coordinates:[r.location.latitude,r.location.longitude]},options:{hideIconOnBalloonOpen:!1,preset:Pi(r.type),balloonOffset:[0,-zn[1]],balloonContentLayout:(o=e==null?void 0:e.templateLayoutFactory)==null?void 0:o.createClass(n)}}}),Pi=(t,e)=>t===30?`custom#pin-postmat${e?`__${e}`:""}`:`custom#pin-pvz${e?`__${e}`:""}`,$r=t=>[-(t[0]/2),-t[1]],QE={en:"en_US",ru:"ru_RU"},YE={load:"suggest",apikey:"5298a725-4baa-457a-a2a7-c3abac81db20"},WE=["templateLayoutFactory","option.presetStorage","geocode"],RE=["objectManager.addon.objectsBalloon"],Ed=["geoObject.addon.balloon"],KE={yandexMapDisablePoiInteractivity:!1},qE={clusterize:!0},wd={iconImageSize:Yt,iconLayout:"default#image",hideIconOnBalloonOpen:!1,iconImageHref:_f,balloonOffset:[0,-Yt[1]],iconImageOffset:$r(Yt)},La={root:"MapYandex-module__root__r3kDJ8",overlay:"MapYandex-module__overlay__f7UGYS",details:"MapYandex-module__details__E3bDvL"},ZE=({className:t})=>{const{t:e}=xt(["courier_balloon","common"]),n=c.useRef(),r=c.useRef(null),{map:o,locale:i,disableCourierDelivery:s,hideMapUI:a,onPointClick:u}=Bt(),[l,f]=c.useState(null),[d,h]=c.useState([]),[g,v]=c.useState(qE),p=vn(B=>B.place),C=ze(B=>B.zoom),w=ze(B=>B.setLoaded),m=ze(B=>B.setDetailsOpen),b=Sn(),O=zt(B=>B.points),S=zt(B=>B.loading),y=zt(B=>B.loadNext),E=mt(B=>B.courierPoint),A=mt(B=>B.setCourierPoint),M=yt(B=>B.location),P=yt(B=>B.setSelectedPoint),x=yt(B=>B.setSelectPointHook),k=c.useRef([]),N=c.useMemo(()=>ao.renderToString(L.jsx(ld,{SSR:!0})).replace("{ choose }",e("choose")).replace("{ details }",e("details")),[e,i]),z=c.useMemo(()=>ao.renderToString(L.jsx(ba,{SSR:!0,variant:"default"})).replace("{ details }",e("details",{ns:"common"})).replace("{ courier_balloon.title }",e("title")),[e,i]),Q=c.useMemo(()=>ao.renderToString(L.jsx(ba,{SSR:!0,variant:"error"})).replace("{ courier_balloon.error_title }",e("error_title")).replace("{ courier_balloon.error_description }",e("error_description")),[e,i]),K=c.useMemo(()=>({zoom:es,center:(o==null?void 0:o.center)??$t,behaviors:["default","scrollZoom"]}),[o==null?void 0:o.center]);c.useEffect(()=>{var B,q;(q=n.current)==null||q.events.fire("boundschange",{newBounds:(B=n.current)==null?void 0:B.getBounds()})},[l]),c.useEffect(()=>{if(!l||!r.current)return;k.current.forEach(q=>{var _;q.id!==(M==null?void 0:M.uid)&&((_=r.current)==null||_.remove(q))});const B=bd(O,l,N);k.current=B,r.current.add(B)},[N,l,O,M==null?void 0:M.uid]),c.useEffect(()=>{var _,re,pe,oe,ue;if(!p)return;const B=(re=(_=p.geometry)==null?void 0:_.location)==null?void 0:re.lng(),q=(oe=(pe=p.geometry)==null?void 0:pe.location)==null?void 0:oe.lat();!q||!B||(ue=n.current)==null||ue.setCenter([q,B],C,{duration:300,timingFunction:"ease-in-out"})},[p]);const G=c.useCallback(B=>{const q=B.get("newBounds");y([[q[0][0],q[1][0]],[q[0][1],q[1][1]]],b)},[b,y]),R=c.useRef(M),T=c.useCallback(B=>{var q,_,re,pe;f(B),w(),(q=B==null?void 0:B.option)==null||q.presetStorage.add("custom#pin-postmat",{iconImageSize:Yt,iconLayout:"default#image",iconImageHref:wa,iconImageOffset:$r(Yt)}),(_=B==null?void 0:B.option)==null||_.presetStorage.add("custom#pin-postmat__active",{iconLayout:"default#image",iconImageHref:wa,iconImageSize:zn,iconImageOffset:$r(zn)}),(re=B==null?void 0:B.option)==null||re.presetStorage.add("custom#pin-pvz",{iconImageSize:Yt,iconLayout:"default#image",iconImageHref:Ea,iconImageOffset:$r(Yt)}),(pe=B==null?void 0:B.option)==null||pe.presetStorage.add("custom#pin-pvz__active",{iconLayout:"default#image",iconImageHref:Ea,iconImageSize:zn,iconImageOffset:$r(zn)}),v(oe=>{const ue=window.getComputedStyle(document.getElementById(kc)).getPropertyValue("--color-primary");return{...oe,clusterIconColor:ue}}),h(bd(O,B,N))},[N,O,w]),I=c.useCallback(B=>{var q,_;B&&((q=n.current)==null||q.setCenter([B.location.latitude,B.location.longitude],vo,{duration:300,timingFunction:"ease-in-out"}),(_=r.current)==null||_.objects.events.fire("click",{objectId:B.uid}))},[]);c.useEffect(()=>{x(I)},[I,x]);const D=c.useCallback(()=>{m(!0)},[m]),V=c.useCallback(()=>{var B;R.current&&(u(R.current),m(!1),P(null),A(null),(B=n.current)==null||B.balloon.close())},[u,A,m,P]),H=c.useCallback(()=>{var B,q;(B=document.getElementById(go))==null||B.addEventListener("click",D),(q=document.getElementById($i))==null||q.addEventListener("click",V)},[V,D]),Y=c.useCallback(B=>{var _,re,pe,oe,ue,Le;const q=B.get("objectId");((_=R.current)==null?void 0:_.uid)===q&&((oe=r.current)==null||oe.objects.setObjectOptions((re=R.current)==null?void 0:re.uid,{preset:Pi((pe=R.current)==null?void 0:pe.type)}),A(null),P(null),A(null),R.current=null),(ue=document.getElementById(go))==null||ue.removeEventListener("click",D),(Le=document.getElementById($i))==null||Le.removeEventListener("click",V)},[V,D,A,P]),ne=c.useCallback(B=>{var pe,oe,ue,Le;const q=B.get("objectId"),_=(oe=(pe=r.current)==null?void 0:pe.objects)==null?void 0:oe.getById(q);if(!_)return;const re=_.properties.point;m(!1),A(null),P(re),(ue=r.current)==null||ue.objects.each(Pe=>{var ae;const Me=Pe;(ae=r.current)==null||ae.objects.setObjectOptions(Me.id,{preset:Pi(Me.properties.point.type)})}),(Le=r.current)==null||Le.objects.setObjectOptions(q,{preset:Pi(re.type,"active")}),R.current=re},[A,m,P]),U=c.useCallback(async B=>{if(!l||s)return;const q=B.get("coords"),{geoObjects:_}=await l.geocode(q),re=_.get(0),pe=re.getAddressLine(),oe=re.properties.get("metaDataProperty.GeocoderMetaData.precision",{});if(P(null),oe!=="exact"){A({coords:q,address:null});return}A({coords:q,address:pe})},[s,l,A,P]),ee=c.useMemo(()=>{var B;return{...wd,balloonContentLayout:(B=l==null?void 0:l.templateLayoutFactory)==null?void 0:B.createClass(z)}},[z,l==null?void 0:l.templateLayoutFactory]),le=c.useMemo(()=>{var B;return{...wd,balloonContentLayout:(B=l==null?void 0:l.templateLayoutFactory)==null?void 0:B.createClass(Q)}},[Q,l==null?void 0:l.templateLayoutFactory]),Z=c.useCallback(B=>{var q,_,re,pe,oe;(q=B==null?void 0:B.balloon)==null||q.open(),(re=(_=B==null?void 0:B.balloon)==null?void 0:_.events)==null||re.add("open",H),(oe=(pe=B==null?void 0:B.balloon)==null?void 0:pe.events)==null||oe.add("close",Y)},[Y,H]);return L.jsxs("div",{className:Ce(La.root,t,{[La.hideUI]:a}),children:[L.jsx(FE,{query:{...YE,lang:QE[i??"ru"]},children:L.jsxs(md,{width:"100%",height:"100%",state:K,instanceRef:n,options:KE,modules:WE,onLoad:T,onClick:U,onBoundsChange:G,children:[(E==null?void 0:E.address)&&L.jsx(yd,{properties:E,modules:Ed,geometry:E.coords,options:ee,instanceRef:Z},JSON.stringify(E.coords)),E&&!E.address&&L.jsx(yd,{modules:Ed,geometry:E.coords,instanceRef:Z,options:le},JSON.stringify(E.coords)),L.jsx(GE,{features:d,instanceRef:r,modules:RE,options:g,onClick:ne,onBalloonOpen:H,onBalloonClose:Y})]})},i),S&&L.jsx(sa,{className:La.overlay,children:L.jsx(aa,{})})]})},JE=c.memo(ZE),_E=t=>({google:NE,yandex:JE})[t];function Cd(...t){return c.useCallback(e=>{for(let n=0;n<t.length;n++){const r=t[n];typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e)}},t)}const Mi=t=>{const e=c.useCallback(()=>{var n;(n=t==null?void 0:t.onClick)==null||n.call(t,t.name)},[t]);return{ref:t==null?void 0:t.ref,name:t==null?void 0:t.name,onClick:e}};function XE(t){const e=c.useCallback(o=>{const i=window.matchMedia(t);return i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[t]),n=()=>window.matchMedia(t).matches,r=()=>{throw Error("useMediaQuery is a client-only hook")};return c.useSyncExternalStore(e,n,r)}const $E={screenSm:"768px",screenMd:"1024px",screenLg:"1280px",screenXl:"1536px"};function eo(t){return XE(`(max-width: calc(${$E[t]} - 1px))`)}const ew={root:"Hr-module__root__tBRShh"},Aa=({className:t,...e})=>L.jsx("hr",{className:Ce(ew.root,t),...e}),Rt={root:"Sidebar-module__root__hxXudu",closeButton:"Sidebar-module__closeButton__8k-Ph3",open:"Sidebar-module__open__qMGUBV",header:"Sidebar-module__header__Eu-wRc",typeFilter:"Sidebar-module__typeFilter__-lxVdY",separator:"Sidebar-module__separator__XDb6rs",withRightPadding:"Sidebar-module__withRightPadding__knvmuY",sheetContent:"Sidebar-module__sheetContent__4iWeTf",doneButton:"Sidebar-module__doneButton__chvXVP"},tw=()=>{const{t}=xt("common"),e=eo("screenSm"),n=Fn(o=>o.toggle),r=()=>{n(!1)};return L.jsxs("div",{className:Rt.header,children:[e&&L.jsx("div",{className:Rt.doneButton,onClick:r,children:t("done")}),!e&&L.jsx(Si,{className:Rt.closeButton,onClick:r})]})},ki={root:"TypeFilter-module__root__FEaBBU",button:"TypeFilter-module__button__RYOzBQ"},nw=({value:t,onChange:e,className:n})=>{const{t:r}=xt("type_filter"),o=i=>()=>e==null?void 0:e(i);return L.jsxs("div",{className:Ce(ki.root,n),children:[L.jsx(wt,{className:ki.button,variant:t===sn.All?"primary":"secondary",onClick:o(sn.All),children:r("all")}),L.jsx(wt,{className:ki.button,variant:t===sn.PostOffice?"primary":"secondary",onClick:o(sn.PostOffice),children:r("post_office")}),L.jsx(wt,{className:ki.button,variant:t===sn.PickPoint?"primary":"secondary",onClick:o(sn.PickPoint),children:r("pick_point")})]})},rw=({className:t,onChange:e})=>{const n=Sn(r=>r.type);return L.jsx(nw,{value:n,className:t,onChange:e})},ow=c.memo(rw),Sd={root:"Radio-module__root__FMbfCi",label:"Radio-module__label__-LLJSR"},iw=({label:t,className:e,labelProps:n={},...r})=>{const{className:o,...i}=n;return L.jsxs("label",{className:Ce(Sd.label,o),...i,children:[L.jsx("input",{type:"radio",className:Ce(Sd.root,e),...r}),t]})},ar=t=>L.jsx(iw,{...t,type:"checkbox"}),xa={root:"RadioGroup-module__root__wNjmrq",body:"RadioGroup-module__body__n4Ho0-",legend:"RadioGroup-module__legend__ECksBN"},Ld=({label:t,value:e,onChange:n,children:r,className:o,...i})=>L.jsxs("div",{className:Ce(xa.root,o),...i,children:[t&&L.jsx("span",{className:xa.legend,children:t}),L.jsx("div",{className:xa.body,children:c.Children.map(r,s=>c.isValidElement(s)?c.cloneElement(s,{checked:!!(e!=null&&e[s.props.value]),onChange:a=>n==null?void 0:n({...e,[a.target.value]:a.target.checked})}):null)})]}),sw=({className:t,onChange:e})=>{const{t:n}=xt("send_filter"),r=Sn(o=>o.send);return L.jsxs(Ld,{className:t,value:r,label:n("title"),onChange:e,children:[L.jsx(ar,{name:"send",value:Ht.Return,label:n("sending_returns")}),L.jsx(ar,{name:"send",value:Ht.Shipping,label:n("shipping")}),L.jsx(ar,{name:"send",value:Ht.Payment,label:n("payment")})]})},aw=c.memo(sw),lw=({className:t,onChange:e})=>{const{t:n}=xt("receive_filter"),r=Sn(o=>o.receive);return L.jsxs(Ld,{value:r,label:n("title"),onChange:e,className:t,children:[L.jsx(ar,{name:"receive",value:Ut.DressingRoom,label:n("dressing_room")}),L.jsx(ar,{name:"receive",value:Ut.CheckOrder,label:n("check_order")}),L.jsx(ar,{name:"receive",value:Ut.PayByCash,label:n("pay_by_cash")})]})},uw=c.memo(lw),eL="",cw=({className:t})=>{const e=eo("screenSm"),n=Fn(f=>f.open),r=Fn(f=>f.toggle),o=Sn(f=>f.setFilter),i=c.useCallback(f=>o({type:f}),[o]),s=c.useCallback(f=>o({send:f}),[o]),a=c.useCallback(f=>o({receive:f}),[o]),u=c.useCallback(()=>r(!1),[r]),l=L.jsxs(L.Fragment,{children:[L.jsx(tw,{}),L.jsxs("div",{className:Rt.withRightPadding,children:[L.jsx(ow,{className:Rt.typeFilter,onChange:i}),L.jsx(Aa,{className:Rt.separator}),L.jsx(uw,{onChange:a}),L.jsx(Aa,{}),L.jsx(aw,{onChange:s}),L.jsx(Aa,{})]})]});return e?L.jsx(_u,{initialFocusRef:!1,open:n,snapPoints:({maxHeight:f})=>f-Xf,onDismiss:u,children:L.jsx("div",{className:Rt.sheetContent,children:l})}):L.jsx("div",{className:Ce(Rt.root,t,{[Rt.open]:n}),children:l})},fw=t=>ce.createElement("svg",{width:60,height:40,viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{d:"M0 0H52C56.4183 0 60 3.58172 60 8V32C60 36.4183 56.4183 40 52 40H0V0Z",fill:"none"}),ce.createElement("path",{d:"M32.093 10H45.907C47.0581 10 48 10.9092 48 12.0205V14.2431C48 15.0513 47.4767 16.0615 46.9535 16.5667L42.4535 20.4056C41.8256 20.9108 41.407 21.921 41.407 22.7292V27.0733C41.407 27.6795 40.9884 28.4877 40.4651 28.7908L39 29.7C37.6395 30.5082 35.7558 29.599 35.7558 27.9826V22.6282C35.7558 21.921 35.3372 21.0118 34.9186 20.5067L30.9419 16.4656C30.4186 15.9605 30 15.0513 30 14.4451V12.1215C30 10.9092 30.9419 10 32.093 10Z",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),dw=t=>ce.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("g",{id:"Filtr_mob"},ce.createElement("rect",{id:"bg",width:28,height:28,rx:4,fill:"#333333"}),ce.createElement("path",{id:"Vector",d:"M9.16507 7H18.8348C19.6406 7 20.3 7.63646 20.3 8.41436V9.97015C20.3 10.5359 19.9337 11.2431 19.5674 11.5967L16.4174 14.2839C15.9779 14.6375 15.6848 15.3447 15.6848 15.9105V18.9513C15.6848 19.3756 15.3918 19.9414 15.0255 20.1535L14 20.79C13.0476 21.3557 11.729 20.7193 11.729 19.5878V15.8397C11.729 15.3447 11.436 14.7083 11.143 14.3547L8.35925 11.5259C7.99297 11.1724 7.69995 10.5359 7.69995 10.1116V8.48508C7.69995 7.63646 8.35925 7 9.16507 7Z",stroke:"white",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))),Vt={root:"MapContainer-module__root__nze9pB",mapWrapper:"MapContainer-module__mapWrapper__twRo4C",wrapperBlurred:"MapContainer-module__wrapperBlurred__U-Ohae",locationSelector:"MapContainer-module__locationSelector__lEiSKq",filterButton:"MapContainer-module__filterButton__jIRGu9",sidebarOpen:"MapContainer-module__sidebarOpen__sUhaH-",filterIcon:"MapContainer-module__filterIcon__-2Qd2d",details:"MapContainer-module__details__sAP6T2"},hw=()=>{const t=Fn(o=>o.open),e=Fn(o=>o.toggle),n=eo("screenSm"),r=()=>{e(!0)};return L.jsxs("div",{className:Ce(Vt.filterButton,{[Vt.sidebarOpen]:t}),onClick:n?void 0:r,children:[n&&L.jsx(fl,{}),n?L.jsx(dw,{className:Vt.filterIcon,onClick:r}):L.jsx(fw,{className:Vt.filterIcon})]})};var Ad={},Ii={},xd={exports:{}},pw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gw=pw,vw=gw;function Od(){}function Pd(){}Pd.resetWarningCache=Od;var mw=function(){function t(r,o,i,s,a,u){if(u!==vw){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Pd,resetWarningCache:Od};return n.PropTypes=n,n};xd.exports=mw();var yw=xd.exports,Di={},lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.loadGoogleMapScript=lr.isBrowser=void 0;var Md=typeof window<"u"&&window.document;lr.isBrowser=Md;var bw=function(e,n){if(!Md||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var r=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(r&&r.length)return new Promise(function(s){if(typeof google<"u")return s();r[0].addEventListener("load",function(){return s()})});var o=new URL(n);o.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var i=document.createElement("script");return i.src=o.toString(),new Promise(function(s){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=s,document.body.appendChild(i)})};lr.loadGoogleMapScript=bw;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var Ew="https://maps.googleapis.com/maps/api/js";Ti.GOOGLE_MAP_SCRIPT_BASE_URL=Ew;function Bi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bi=function(n){return typeof n}:Bi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bi(t)}Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=xw;var dt=Cw(c),Oa=lr,ww=Ti;function kd(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(kd=function(o){return o?n:e})(t)}function Cw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||Bi(t)!=="object"&&typeof t!="function")return{default:t};var n=kd(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}function Id(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Dd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Id(Object(n),!0).forEach(function(r){Sw(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lw(t,e){if(t==null)return{};var n=Aw(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Aw(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function xw(t){var e=t.ref,n=t.onPlaceSelected,r=t.apiKey,o=t.libraries,i=o===void 0?"places":o,s=t.inputAutocompleteValue,a=s===void 0?"new-password":s,u=t.options;u=u===void 0?{}:u;var l=u.types,f=l===void 0?["(cities)"]:l,d=u.componentRestrictions,h=u.fields,g=h===void 0?["address_components","geometry.location","place_id","formatted_address"]:h,v=u.bounds,p=Lw(u,["types","componentRestrictions","fields","bounds"]),C=t.googleMapsScriptBaseUrl,w=C===void 0?ww.GOOGLE_MAP_SCRIPT_BASE_URL:C,m=t.language,b=(0,dt.useRef)(null),O=(0,dt.useRef)(null),S=(0,dt.useRef)(null),y=(0,dt.useRef)(null),E=m?"&language=".concat(m):"",A="".concat(w,"?libraries=").concat(i,"&key=").concat(r).concat(E),M=(0,dt.useCallback)(function(){return(0,Oa.loadGoogleMapScript)(w,A)},[w,A]);return(0,dt.useEffect)(function(){var P=Dd(Dd({},p),{},{fields:g,types:f,bounds:v});if(d&&(P.componentRestrictions=d),!(S.current||!b.current||!Oa.isBrowser)){e&&!e.current&&(e.current=b.current);var x=function(){var N;if(typeof google>"u")return console.error("Google has not been found. Make sure your provide apiKey prop.");if(!((N=google.maps)!==null&&N!==void 0&&N.places))return console.error("Google maps places API must be loaded.");if(!b.current instanceof HTMLInputElement)return console.error("Input ref must be HTMLInputElement.");S.current=new google.maps.places.Autocomplete(b.current,P),S.current&&(O.current=S.current.addListener("place_changed",function(){n&&S&&S.current&&n(S.current.getPlace(),b.current,S.current)}))};return r?M().then(function(){return x()}):x(),function(){return O.current?O.current.remove():void 0}}},[]),(0,dt.useEffect)(function(){var P;!(dt.default!==null&&dt.default!==void 0&&(P=dt.default.version)!==null&&P!==void 0&&P.startsWith("18"))&&Oa.isBrowser&&window.MutationObserver&&b.current&&b.current instanceof HTMLInputElement&&(y.current=new MutationObserver(function(){y.current.disconnect(),b.current&&(b.current.autocomplete=a)}),y.current.observe(b.current,{attributes:!0,attributeFilter:["autocomplete"]}))},[a]),(0,dt.useEffect)(function(){S.current&&S.current.setFields(g)},[g]),(0,dt.useEffect)(function(){S.current&&S.current.setBounds(v)},[v]),(0,dt.useEffect)(function(){S.current&&S.current.setComponentRestrictions(d)},[d]),(0,dt.useEffect)(function(){S.current&&S.current.setOptions(p)},[p]),{ref:b,autocompleteRef:S}}function Ni(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ni=function(n){return typeof n}:Ni=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ni(t)}Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var Pa=Pw(c),Ke=Td(yw),Ow=Td(Di);function Td(t){return t&&t.__esModule?t:{default:t}}function Bd(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Bd=function(o){return o?n:e})(t)}function Pw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||Ni(t)!=="object"&&typeof t!="function")return{default:t};var n=Bd(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}function ji(){return ji=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ji.apply(this,arguments)}function Mw(t,e){if(t==null)return{};var n=kw(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function kw(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Nd(t){var e=t.onPlaceSelected,n=t.apiKey,r=t.libraries,o=t.inputAutocompleteValue,i=t.options,s=t.googleMapsScriptBaseUrl,a=t.refProp,u=t.language,l=Mw(t,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),f=(0,Ow.default)({ref:a,googleMapsScriptBaseUrl:s,onPlaceSelected:e,apiKey:n,libraries:r,inputAutocompleteValue:o,options:i,language:u}),d=f.ref;return Pa.default.createElement("input",ji({ref:d},l))}Nd.propTypes={apiKey:Ke.default.string,libraries:Ke.default.arrayOf(Ke.default.string),ref:Ke.default.oneOfType([Ke.default.func,Ke.default.shape({current:Ke.default.any})]),googleMapsScriptBaseUrl:Ke.default.string,onPlaceSelected:Ke.default.func,inputAutocompleteValue:Ke.default.string,options:Ke.default.shape({componentRestrictions:Ke.default.object,bounds:Ke.default.object,location:Ke.default.object,offset:Ke.default.number,origin:Ke.default.object,radius:Ke.default.number,sessionToken:Ke.default.object,types:Ke.default.arrayOf(Ke.default.string)}),language:Ke.default.string};var Iw=(0,Pa.forwardRef)(function(t,e){return Pa.default.createElement(Nd,ji({},t,{refProp:e}))});Ii.default=Iw,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return n.default}});var e=r(Ii),n=r(Di);function r(o){return o&&o.__esModule?o:{default:o}}}(Ad);var jd=Ad;const Dw=t=>ce.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6174 16.0317C13.0777 17.2635 11.1246 18 8.99951 18C4.02895 18 -0.000488281 13.9706 -0.000488281 9C-0.000488281 4.02944 4.02895 0 8.99951 0C13.9701 0 17.9995 4.02944 17.9995 9C17.9995 11.1249 17.2631 13.0778 16.0316 14.6175L19.707 18.2929C20.0975 18.6834 20.0975 19.3166 19.707 19.7071C19.3165 20.0977 18.6833 20.0977 18.2928 19.7071L14.6174 16.0317ZM1.99951 9C1.99951 5.13401 5.13352 2 8.99951 2C12.8655 2 15.9995 5.13401 15.9995 9C15.9995 10.8866 15.2532 12.5988 14.0397 13.8577C14.006 13.8836 13.9737 13.9121 13.9428 13.9429C13.9119 13.9738 13.8835 14.0062 13.8575 14.0399C12.5986 15.2535 10.8863 16 8.99951 16C5.13352 16 1.99951 12.866 1.99951 9Z",fill:"currentcolor"})),ur={root:"Input-module__root__4cwtKq",endAdornment:"Input-module__endAdornment__Tv4vyT",input:"Input-module__input__qeMAQB",startAdornment:"Input-module__startAdornment__4bXzn1",label:"Input-module__label__N2eUZ2",inputContainer:"Input-module__inputContainer__Ticemx"},Ud=c.forwardRef(({label:t,className:e,startAdornment:n,endAdornment:r,onChange:o,onBlur:i,inputRef:s,...a},u)=>{const l=c.useRef(null);c.useImperativeHandle(u,()=>({focus:()=>{var d;(d=l.current)==null||d.focus()},blur:()=>{var d;(d=l.current)==null||d.blur()},setValue:d=>{if(o){o({target:{value:d}});return}if(i){i({target:{value:d}});return}l.current&&(l.current.value=d)}}),[i,o]);const f=Cd(s,l);return L.jsxs("label",{className:Ce(ur.root,e),children:[t&&L.jsx("span",{className:ur.label,children:t}),L.jsxs("div",{className:ur.inputContainer,children:[n&&L.jsx("div",{className:ur.startAdornment,children:n}),L.jsx("input",{...a,ref:f,className:ur.input,onChange:o,onBlur:i}),r&&L.jsx("div",{className:ur.endAdornment,children:r})]})]})}),Tw=({className:t})=>{const{t:e}=xt("location_selector"),{country:n,inputs:r}=Bt(),[o,i]=c.useState(""),[s,a]=c.useState(!1),u=ze(E=>E.setZoom),l=ze(E=>E.setBlurred),f=ze(E=>E.setDetailsOpen),d=vn(E=>E.setPlace),h=mt(E=>E.setCourierPoint),g=yt(E=>E.setSelectedPoint),v=[],p=n?{componentRestrictions:{country:n},types:v}:{types:v},C=E=>{u(vo),d(E)},{ref:w}=jd.usePlacesWidget({libraries:["places"],options:p,onPlaceSelected:C,inputAutocompleteValue:o}),m=E=>{s&&l(!!E.target.value),i(E.target.value)},b=()=>{o&&l(!0),f(!1),h(null),g(null),a(!0)},O=()=>{l(!1),a(!1)},S=E=>{E.key==="Enter"&&E.preventDefault()},y=Mi(r==null?void 0:r.address);return L.jsx(Ud,{...y,inputRef:w,value:o,className:t,endAdornment:L.jsx(Dw,{}),placeholder:e("placeholder"),onChange:m,onFocus:b,onBlur:O,onKeyDown:S})},Bw=({className:t})=>ze(n=>n.loaded)?L.jsx(Tw,{className:t}):null,Nw=c.memo(Bw),jw={root:"CourierDetailsModal-module__root__gLu0VW"},Uw=({onClose:t,onSubmit:e,location:n,className:r})=>L.jsx("div",{className:Ce(jw.root,r),children:L.jsx(sd,{location:n,onClose:t,onSubmit:e})}),Hw={root:"LocationDetailsModal-module__root__AzUydF"},zw=({onClose:t,onSubmit:e,location:n,className:r})=>{const o=()=>{e==null||e(n)};return L.jsx("div",{className:Ce(Hw.root,r),children:L.jsx(ud,{location:n,onClose:t,onSubmit:o})})},Fw=()=>{const{onPointClick:t}=Bt(),e=ze(l=>l.detailsOpen),n=ze(l=>l.setDetailsOpen),r=yt(l=>l.location),o=yt(l=>l.setSelectedPoint),i=mt(l=>l.courierPoint),s=mt(l=>l.setCourierPoint),a=c.useCallback(()=>{n(!1)},[n]),u=c.useCallback(l=>{t(l),n(!1),o(null),s(null)},[t,s,n,o]);return L.jsxs(L.Fragment,{children:[(i==null?void 0:i.address)&&e&&L.jsx(Uw,{location:i,className:Vt.details,onClose:a,onSubmit:u}),r&&e&&L.jsx(zw,{location:r,className:Vt.details,onClose:a,onSubmit:u})]})},Vw=({className:t,children:e})=>{const n=ze(r=>r.blurred);return L.jsxs("div",{className:Ce(Vt.root,t),children:[L.jsx(Nw,{className:Vt.locationSelector}),L.jsx(hw,{}),L.jsx("div",{className:Ce(Vt.mapWrapper,{[Vt.wrapperBlurred]:n}),children:e}),L.jsx(Fw,{})]})},Gw=c.memo(Vw),Ui={root:"Aside-module__root__JSqCyF",open:"Aside-module__open__t8OMLZ",overlay:"Aside-module__overlay__0UAvMb",container:"Aside-module__container__KJNP0t"},Qw=({open:t,children:e,className:n})=>L.jsxs("div",{className:Ce(Ui.root,n,{[Ui.open]:t}),children:[L.jsx("div",{className:Ui.overlay}),L.jsx("div",{className:Ui.container,children:e})]}),Ma={submit:"LocationAside-module__submit__hx8LTK",container:"LocationAside-module__container__KEGf9s",selector:"LocationAside-module__selector__ogsvtz",label:"LocationAside-module__label__-FWqoq"},Yw=()=>{const{t}=xt(["location_aside","common"]),{country:e,inputs:n}=Bt(),r=c.useRef(null),o=ze(p=>p.setZoom),i=vn(p=>p.setPlace),[s,a]=c.useState(""),u=bo(p=>p.open),l=bo(p=>p.toggle),f=p=>{l(!1),o(ts),i(p),p!=null&&p.formatted_address&&a(p==null?void 0:p.formatted_address)},d=e?{componentRestrictions:{country:e}}:void 0,h=p=>{a(p.target.value)},{ref:g}=jd.usePlacesWidget({libraries:["places"],options:d,onPlaceSelected:f,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA",inputAutocompleteValue:s}),v=Mi(n==null?void 0:n.city);return L.jsx(Qw,{open:u,children:L.jsx("div",{ref:r,className:Ma.container,children:L.jsxs("div",{className:Ma.selector,children:[L.jsx("div",{className:Ma.label,children:t("choose_city")}),L.jsx(Ud,{...v,inputRef:g,value:s,placeholder:t("placeholder"),onChange:h})]})})})},Ww=c.memo(Yw),Rw=t=>{const e=jh(["language"]);c.useEffect(()=>{t&&(e.changeLanguage(t),fo.setLanguage(t))},[t,e])},Kw=t=>{c.useEffect(()=>{t&&Object.keys(t).forEach(n=>{const r=t[n];r&&ea(`--color-${n}`,r)})},[t])},qw=t=>{c.useEffect(()=>{t&&typeof t<"u"&&ea("--button-radius",`${t}px`)},[t])},Zw=t=>{c.useEffect(()=>{t&&typeof t<"u"&&ea("--font",t)},[t])},Jw=t=>{const e=bo(r=>r.toggle),n=t==="selector";c.useEffect(()=>{n&&e(!0)},[n,e])},_w=(t,e,n)=>{const r=ze(a=>a.setZoom),o=ze(a=>a.setLoaded),i=vn(a=>a.setPlace),{isLoaded:s}=lb({language:e,libraries:gp,googleMapsApiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"});c.useEffect(()=>{s&&o()},[s,o]),c.useEffect(()=>{if(!s)return;const a=async()=>{const u=await ta(t,"GEOMETRIC_CENTER");i(u.results[0]),r(ya(t)?n:ts)};if(!navigator.geolocation||t&&!ya(t)){a();return}navigator.geolocation.getCurrentPosition(async u=>{const{latitude:l,longitude:f}=u.coords,d=await ta([l,f],"GEOMETRIC_CENTER");i(d.results[0]),r(ts)},u=>{console.error(u),a()},{maximumAge:6e4,timeout:5e3,enableHighAccuracy:!0})},[t,s,r,i,n])},Xw=({children:t,locale:e})=>(Rw(e),L.jsx(L.Fragment,{children:t})),Hd=()=>L.jsx(sa,{children:L.jsx(aa,{})}),$w=({children:t})=>{const e=zt(r=>r.loaded);return zt(r=>r.loading)&&!e?L.jsx(Hd,{}):L.jsx(L.Fragment,{children:t})},ka={map:"Widget-module__map__GhmuPO",sidebar:"Widget-module__sidebar__5gQrb3",header:"Widget-module__header__QlBK5m"},eC=({config:t,options:e})=>{const n=F0(t),{map:r,font:o,radius:i,locale:s,palette:a,startScreen:u,INN:l}=n;hr(l,"INN is required"),V0(l,e),hr(r==null?void 0:r.provider,"Map provider is required");const f=_E(r.provider);return x0(),Zw(o),Kw(a),qw(i),Jw(u),hr(s,"Locale is required"),hr(r.center,"Map center is required"),hr(r.initialZoom,"Map initial zoom is required"),_w(r==null?void 0:r.center,s,r.initialZoom),L.jsx(Ih,{tolgee:Fh,fallback:L.jsx(Hd,{}),children:L.jsx(Xw,{locale:s,children:L.jsx($w,{children:L.jsx(cl.Provider,{value:n,children:L.jsxs(Op,{children:[L.jsx(Ap,{className:ka.header}),L.jsx(cw,{className:ka.sidebar}),L.jsx(Gw,{className:ka.map,children:L.jsx(f,{})}),L.jsx(Ww,{})]})})})})})};Tt.Widget=eC,Object.defineProperty(Tt,Symbol.toStringTag,{value:"Module"})});
|
|
100
|
+
</svg>`,a=`Cluster of ${e} markers`,u=Number(google.maps.Marker.MAX_ZINDEX)+e;if(bt.isAdvancedMarkerAvailable(o)){const f=document.createElement("div");f.innerHTML=s;const d=f.firstElementChild;d.setAttribute("transform","translate(0 25)");const h={map:o,position:n,zIndex:u,title:a,content:d};return new google.maps.marker.AdvancedMarkerElement(h)}const l={position:n,zIndex:u,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(s)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(l)}}function zb(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}class ma{constructor(){zb(ma,google.maps.OverlayView)}}var Jr;(function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"})(Jr||(Jr={}));const Fb=(t,e,n)=>{n.fitBounds(e.bounds)};class Vb extends ma{constructor({map:e,markers:n=[],algorithmOptions:r={},algorithm:o=new jb(r),renderer:i=new Hb,onClusterClick:s=Fb}){super(),this.markers=[...n],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=s,e&&this.setMap(e)}addMarker(e,n){this.markers.includes(e)||(this.markers.push(e),n||this.render())}addMarkers(e,n){e.forEach(r=>{this.addMarker(r,!0)}),n||this.render()}removeMarker(e,n){const r=this.markers.indexOf(e);return r===-1?!1:(bt.setMap(e,null),this.markers.splice(r,1),n||this.render(),!0)}removeMarkers(e,n){let r=!1;return e.forEach(o=>{r=this.removeMarker(o,!0)||r}),r&&!n&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,Jr.CLUSTERING_BEGIN,this);const{clusters:n,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const o=new Set;for(const s of n)s.markers.length==1&&o.add(s.markers[0]);const i=[];for(const s of this.clusters)s.marker!=null&&(s.markers.length==1?o.has(s.marker)||bt.setMap(s.marker,null):i.push(s.marker));this.clusters=n,this.renderClusters(),requestAnimationFrame(()=>i.forEach(s=>bt.setMap(s,null)))}google.maps.event.trigger(this,Jr.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>bt.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new Ub(this.markers,this.clusters),n=this.getMap();this.clusters.forEach(r=>{r.markers.length===1?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,e,n),r.markers.forEach(o=>bt.setMap(o,null)),this.onClusterClick&&r.marker.addListener("click",o=>{google.maps.event.trigger(this,Jr.CLUSTER_CLICK,r),this.onClusterClick(o,r,n)})),bt.setMap(r.marker,n)})}}function Gb(t){var e=q0(),n=c.useState(null),r=n[0],o=n[1];return c.useEffect(function(){if(e&&r===null){var i=new Vb(te(te({},t),{map:e}));o(i)}},[e]),r}function Qb(t){var e=t.children,n=t.options,r=Gb(n);return r!==null?e(r):null}c.memo(Qb);var bf={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Ef={options:function(t,e){t.setOptions(e)},position:function(t,e){t.setPosition(e)},zIndex:function(t,e){t.setZIndex(e)}};function Yb(t){var e=t.children,n=t.anchor,r=t.options,o=t.position,i=t.zIndex,s=t.onCloseClick,a=t.onDomReady,u=t.onContentChanged,l=t.onPositionChanged,f=t.onZindexChanged,d=t.onLoad,h=t.onUnmount,g=c.useContext(he),v=c.useState(null),p=v[0],C=v[1],w=c.useState(null),m=w[0],b=w[1],O=c.useState(null),S=O[0],y=O[1],E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useRef(null);return c.useEffect(function(){p!==null&&(p.close(),n?p.open(g,n):p.getPosition()&&p.open(g))},[g,p,n]),c.useEffect(function(){r&&p!==null&&p.setOptions(r)},[p,r]),c.useEffect(function(){o&&p!==null&&p.setPosition(o)},[o]),c.useEffect(function(){typeof i=="number"&&p!==null&&p.setZIndex(i)},[i]),c.useEffect(function(){p&&s&&(m!==null&&google.maps.event.removeListener(m),b(google.maps.event.addListener(p,"closeclick",s)))},[s]),c.useEffect(function(){p&&a&&(S!==null&&google.maps.event.removeListener(S),y(google.maps.event.addListener(p,"domready",a)))},[a]),c.useEffect(function(){p&&u&&(A!==null&&google.maps.event.removeListener(A),M(google.maps.event.addListener(p,"content_changed",u)))},[u]),c.useEffect(function(){p&&l&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(p,"position_changed",l)))},[l]),c.useEffect(function(){p&&f&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(p,"zindex_changed",f)))},[f]),c.useEffect(function(){var G=new google.maps.InfoWindow(te({},r||{}));return C(G),K.current=document.createElement("div"),s&&b(google.maps.event.addListener(G,"closeclick",s)),a&&y(google.maps.event.addListener(G,"domready",a)),u&&M(google.maps.event.addListener(G,"content_changed",u)),l&&k(google.maps.event.addListener(G,"position_changed",l)),f&&Q(google.maps.event.addListener(G,"zindex_changed",f)),G.setContent(K.current),o&&G.setPosition(o),i&&G.setZIndex(i),n?G.open(g,n):G.getPosition()?G.open(g):Re(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),d&&d(G),function(){m&&google.maps.event.removeListener(m),A&&google.maps.event.removeListener(A),S&&google.maps.event.removeListener(S),x&&google.maps.event.removeListener(x),z&&google.maps.event.removeListener(z),h&&h(G),G.close()}},[]),K.current?Hn.createPortal(c.Children.only(e),K.current):null}c.memo(Yb);var wf=function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=null,n.state={infoWindow:null},n.open=function(r,o){o?r.open(n.context,o):r.getPosition()?r.open(n.context):Re(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},n.setInfoWindowCallback=function(){n.state.infoWindow!==null&&n.containerElement!==null&&(n.state.infoWindow.setContent(n.containerElement),n.open(n.state.infoWindow,n.props.anchor),n.props.onLoad&&n.props.onLoad(n.state.infoWindow))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.InfoWindow(te({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=ve({updaterMap:Ef,eventMap:bf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{infoWindow:n}},this.setInfoWindowCallback)},e.prototype.componentDidUpdate=function(n){this.state.infoWindow!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Ef,eventMap:bf,prevProps:n,nextProps:this.props,instance:this.state.infoWindow}))},e.prototype.componentWillUnmount=function(){this.state.infoWindow!==null&&(ye(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())},e.prototype.render=function(){return this.containerElement?Hn.createPortal(c.Children.only(this.props.children),this.containerElement):null},e.contextType=he,e}(c.PureComponent),Cf={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Sf={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},visible:function(t,e){t.setVisible(e)}},Wb={};function Rb(t){var e=t.options,n=t.draggable,r=t.editable,o=t.visible,i=t.path,s=t.onDblClick,a=t.onDragEnd,u=t.onDragStart,l=t.onMouseDown,f=t.onMouseMove,d=t.onMouseOut,h=t.onMouseOver,g=t.onMouseUp,v=t.onRightClick,p=t.onClick,C=t.onDrag,w=t.onLoad,m=t.onUnmount,b=c.useContext(he),O=c.useState(null),S=O[0],y=O[1],E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useState(null),G=K[0],R=K[1],T=c.useState(null),I=T[0],D=T[1],V=c.useState(null),H=V[0],Y=V[1],ne=c.useState(null),U=ne[0],ee=ne[1],le=c.useState(null),Z=le[0],B=le[1],q=c.useState(null),_=q[0],re=q[1],pe=c.useState(null),oe=pe[0],ue=pe[1],Le=c.useState(null),Pe=Le[0],Me=Le[1];return c.useEffect(function(){S!==null&&S.setMap(b)},[b]),c.useEffect(function(){typeof e<"u"&&S!==null&&S.setOptions(e)},[S,e]),c.useEffect(function(){typeof n<"u"&&S!==null&&S.setDraggable(n)},[S,n]),c.useEffect(function(){typeof r<"u"&&S!==null&&S.setEditable(r)},[S,r]),c.useEffect(function(){typeof o<"u"&&S!==null&&S.setVisible(o)},[S,o]),c.useEffect(function(){typeof i<"u"&&S!==null&&S.setPath(i)},[S,i]),c.useEffect(function(){S&&s&&(A!==null&&google.maps.event.removeListener(A),M(google.maps.event.addListener(S,"dblclick",s)))},[s]),c.useEffect(function(){S&&a&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(S,"dragend",a)))},[a]),c.useEffect(function(){S&&u&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(S,"dragstart",u)))},[u]),c.useEffect(function(){S&&l&&(G!==null&&google.maps.event.removeListener(G),R(google.maps.event.addListener(S,"mousedown",l)))},[l]),c.useEffect(function(){S&&f&&(I!==null&&google.maps.event.removeListener(I),D(google.maps.event.addListener(S,"mousemove",f)))},[f]),c.useEffect(function(){S&&d&&(H!==null&&google.maps.event.removeListener(H),Y(google.maps.event.addListener(S,"mouseout",d)))},[d]),c.useEffect(function(){S&&h&&(U!==null&&google.maps.event.removeListener(U),ee(google.maps.event.addListener(S,"mouseover",h)))},[h]),c.useEffect(function(){S&&g&&(Z!==null&&google.maps.event.removeListener(Z),B(google.maps.event.addListener(S,"mouseup",g)))},[g]),c.useEffect(function(){S&&v&&(_!==null&&google.maps.event.removeListener(_),re(google.maps.event.addListener(S,"rightclick",v)))},[v]),c.useEffect(function(){S&&p&&(oe!==null&&google.maps.event.removeListener(oe),ue(google.maps.event.addListener(S,"click",p)))},[p]),c.useEffect(function(){S&&C&&(Pe!==null&&google.maps.event.removeListener(Pe),Me(google.maps.event.addListener(S,"drag",C)))},[C]),c.useEffect(function(){var ae=new google.maps.Polyline(te(te({},e||Wb),{map:b}));return i&&ae.setPath(i),typeof o<"u"&&ae.setVisible(o),typeof r<"u"&&ae.setEditable(r),typeof n<"u"&&ae.setDraggable(n),s&&M(google.maps.event.addListener(ae,"dblclick",s)),a&&k(google.maps.event.addListener(ae,"dragend",a)),u&&Q(google.maps.event.addListener(ae,"dragstart",u)),l&&R(google.maps.event.addListener(ae,"mousedown",l)),f&&D(google.maps.event.addListener(ae,"mousemove",f)),d&&Y(google.maps.event.addListener(ae,"mouseout",d)),h&&ee(google.maps.event.addListener(ae,"mouseover",h)),g&&B(google.maps.event.addListener(ae,"mouseup",g)),v&&re(google.maps.event.addListener(ae,"rightclick",v)),p&&ue(google.maps.event.addListener(ae,"click",p)),C&&Me(google.maps.event.addListener(ae,"drag",C)),y(ae),w&&w(ae),function(){A!==null&&google.maps.event.removeListener(A),x!==null&&google.maps.event.removeListener(x),z!==null&&google.maps.event.removeListener(z),G!==null&&google.maps.event.removeListener(G),I!==null&&google.maps.event.removeListener(I),H!==null&&google.maps.event.removeListener(H),U!==null&&google.maps.event.removeListener(U),Z!==null&&google.maps.event.removeListener(Z),_!==null&&google.maps.event.removeListener(_),oe!==null&&google.maps.event.removeListener(oe),m&&m(ae),ae.setMap(null)}},[]),null}c.memo(Rb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polyline:null},n.setPolylineCallback=function(){n.state.polyline!==null&&n.props.onLoad&&n.props.onLoad(n.state.polyline)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polyline(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Sf,eventMap:Cf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polyline:n}},this.setPolylineCallback)},e.prototype.componentDidUpdate=function(n){this.state.polyline!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Sf,eventMap:Cf,prevProps:n,nextProps:this.props,instance:this.state.polyline}))},e.prototype.componentWillUnmount=function(){this.state.polyline!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),ye(this.registeredEvents),this.state.polyline.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Lf={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Af={draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},path:function(t,e){t.setPath(e)},paths:function(t,e){t.setPaths(e)},visible:function(t,e){t.setVisible(e)}};function Kb(t){var e=t.options,n=t.draggable,r=t.editable,o=t.visible,i=t.path,s=t.paths,a=t.onDblClick,u=t.onDragEnd,l=t.onDragStart,f=t.onMouseDown,d=t.onMouseMove,h=t.onMouseOut,g=t.onMouseOver,v=t.onMouseUp,p=t.onRightClick,C=t.onClick,w=t.onDrag,m=t.onLoad,b=t.onUnmount,O=c.useContext(he),S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1],G=c.useState(null),R=G[0],T=G[1],I=c.useState(null),D=I[0],V=I[1],H=c.useState(null),Y=H[0],ne=H[1],U=c.useState(null),ee=U[0],le=U[1],Z=c.useState(null),B=Z[0],q=Z[1],_=c.useState(null),re=_[0],pe=_[1],oe=c.useState(null),ue=oe[0],Le=oe[1],Pe=c.useState(null),Me=Pe[0],ae=Pe[1];return c.useEffect(function(){y!==null&&y.setMap(O)},[O]),c.useEffect(function(){typeof e<"u"&&y!==null&&y.setOptions(e)},[y,e]),c.useEffect(function(){typeof n<"u"&&y!==null&&y.setDraggable(n)},[y,n]),c.useEffect(function(){typeof r<"u"&&y!==null&&y.setEditable(r)},[y,r]),c.useEffect(function(){typeof o<"u"&&y!==null&&y.setVisible(o)},[y,o]),c.useEffect(function(){typeof i<"u"&&y!==null&&y.setPath(i)},[y,i]),c.useEffect(function(){typeof s<"u"&&y!==null&&y.setPaths(s)},[y,s]),c.useEffect(function(){y&&a&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(y,"dblclick",a)))},[a]),c.useEffect(function(){y&&u&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(y,"dragend",u)))},[u]),c.useEffect(function(){y&&l&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(y,"dragstart",l)))},[l]),c.useEffect(function(){y&&f&&(R!==null&&google.maps.event.removeListener(R),T(google.maps.event.addListener(y,"mousedown",f)))},[f]),c.useEffect(function(){y&&d&&(D!==null&&google.maps.event.removeListener(D),V(google.maps.event.addListener(y,"mousemove",d)))},[d]),c.useEffect(function(){y&&h&&(Y!==null&&google.maps.event.removeListener(Y),ne(google.maps.event.addListener(y,"mouseout",h)))},[h]),c.useEffect(function(){y&&g&&(ee!==null&&google.maps.event.removeListener(ee),le(google.maps.event.addListener(y,"mouseover",g)))},[g]),c.useEffect(function(){y&&v&&(B!==null&&google.maps.event.removeListener(B),q(google.maps.event.addListener(y,"mouseup",v)))},[v]),c.useEffect(function(){y&&p&&(re!==null&&google.maps.event.removeListener(re),pe(google.maps.event.addListener(y,"rightclick",p)))},[p]),c.useEffect(function(){y&&C&&(ue!==null&&google.maps.event.removeListener(ue),Le(google.maps.event.addListener(y,"click",C)))},[C]),c.useEffect(function(){y&&w&&(Me!==null&&google.maps.event.removeListener(Me),ae(google.maps.event.addListener(y,"drag",w)))},[w]),c.useEffect(function(){var fe=new google.maps.Polygon(te(te({},e||{}),{map:O}));return i&&fe.setPath(i),s&&fe.setPaths(s),typeof o<"u"&&fe.setVisible(o),typeof r<"u"&&fe.setEditable(r),typeof n<"u"&&fe.setDraggable(n),a&&P(google.maps.event.addListener(fe,"dblclick",a)),u&&N(google.maps.event.addListener(fe,"dragend",u)),l&&K(google.maps.event.addListener(fe,"dragstart",l)),f&&T(google.maps.event.addListener(fe,"mousedown",f)),d&&V(google.maps.event.addListener(fe,"mousemove",d)),h&&ne(google.maps.event.addListener(fe,"mouseout",h)),g&&le(google.maps.event.addListener(fe,"mouseover",g)),v&&q(google.maps.event.addListener(fe,"mouseup",v)),p&&pe(google.maps.event.addListener(fe,"rightclick",p)),C&&Le(google.maps.event.addListener(fe,"click",C)),w&&ae(google.maps.event.addListener(fe,"drag",w)),E(fe),m&&m(fe),function(){M!==null&&google.maps.event.removeListener(M),k!==null&&google.maps.event.removeListener(k),Q!==null&&google.maps.event.removeListener(Q),R!==null&&google.maps.event.removeListener(R),D!==null&&google.maps.event.removeListener(D),Y!==null&&google.maps.event.removeListener(Y),ee!==null&&google.maps.event.removeListener(ee),B!==null&&google.maps.event.removeListener(B),re!==null&&google.maps.event.removeListener(re),ue!==null&&google.maps.event.removeListener(ue),b&&b(fe),fe.setMap(null)}},[]),null}c.memo(Kb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={polygon:null},n.setPolygonCallback=function(){n.state.polygon!==null&&n.props.onLoad&&n.props.onLoad(n.state.polygon)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Polygon(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Af,eventMap:Lf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{polygon:n}},this.setPolygonCallback)},e.prototype.componentDidUpdate=function(n){this.state.polygon!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Af,eventMap:Lf,prevProps:n,nextProps:this.props,instance:this.state.polygon}))},e.prototype.componentWillUnmount=function(){this.state.polygon!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),ye(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var xf={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Of={bounds:function(t,e){t.setBounds(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},visible:function(t,e){t.setVisible(e)}};function qb(t){var e=t.options,n=t.bounds,r=t.draggable,o=t.editable,i=t.visible,s=t.onDblClick,a=t.onDragEnd,u=t.onDragStart,l=t.onMouseDown,f=t.onMouseMove,d=t.onMouseOut,h=t.onMouseOver,g=t.onMouseUp,v=t.onRightClick,p=t.onClick,C=t.onDrag,w=t.onBoundsChanged,m=t.onLoad,b=t.onUnmount,O=c.useContext(he),S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1],G=c.useState(null),R=G[0],T=G[1],I=c.useState(null),D=I[0],V=I[1],H=c.useState(null),Y=H[0],ne=H[1],U=c.useState(null),ee=U[0],le=U[1],Z=c.useState(null),B=Z[0],q=Z[1],_=c.useState(null),re=_[0],pe=_[1],oe=c.useState(null),ue=oe[0],Le=oe[1],Pe=c.useState(null),Me=Pe[0],ae=Pe[1],fe=c.useState(null),Ge=fe[0],_e=fe[1];return c.useEffect(function(){y!==null&&y.setMap(O)},[O]),c.useEffect(function(){typeof e<"u"&&y!==null&&y.setOptions(e)},[y,e]),c.useEffect(function(){typeof r<"u"&&y!==null&&y.setDraggable(r)},[y,r]),c.useEffect(function(){typeof o<"u"&&y!==null&&y.setEditable(o)},[y,o]),c.useEffect(function(){typeof i<"u"&&y!==null&&y.setVisible(i)},[y,i]),c.useEffect(function(){typeof n<"u"&&y!==null&&y.setBounds(n)},[y,n]),c.useEffect(function(){y&&s&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(y,"dblclick",s)))},[s]),c.useEffect(function(){y&&a&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(y,"dragend",a)))},[a]),c.useEffect(function(){y&&u&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(y,"dragstart",u)))},[u]),c.useEffect(function(){y&&l&&(R!==null&&google.maps.event.removeListener(R),T(google.maps.event.addListener(y,"mousedown",l)))},[l]),c.useEffect(function(){y&&f&&(D!==null&&google.maps.event.removeListener(D),V(google.maps.event.addListener(y,"mousemove",f)))},[f]),c.useEffect(function(){y&&d&&(Y!==null&&google.maps.event.removeListener(Y),ne(google.maps.event.addListener(y,"mouseout",d)))},[d]),c.useEffect(function(){y&&h&&(ee!==null&&google.maps.event.removeListener(ee),le(google.maps.event.addListener(y,"mouseover",h)))},[h]),c.useEffect(function(){y&&g&&(B!==null&&google.maps.event.removeListener(B),q(google.maps.event.addListener(y,"mouseup",g)))},[g]),c.useEffect(function(){y&&v&&(re!==null&&google.maps.event.removeListener(re),pe(google.maps.event.addListener(y,"rightclick",v)))},[v]),c.useEffect(function(){y&&p&&(ue!==null&&google.maps.event.removeListener(ue),Le(google.maps.event.addListener(y,"click",p)))},[p]),c.useEffect(function(){y&&C&&(Me!==null&&google.maps.event.removeListener(Me),ae(google.maps.event.addListener(y,"drag",C)))},[C]),c.useEffect(function(){y&&w&&(Ge!==null&&google.maps.event.removeListener(Ge),_e(google.maps.event.addListener(y,"bounds_changed",w)))},[w]),c.useEffect(function(){var X=new google.maps.Rectangle(te(te({},e||{}),{map:O}));return typeof i<"u"&&X.setVisible(i),typeof o<"u"&&X.setEditable(o),typeof r<"u"&&X.setDraggable(r),typeof n<"u"&&X.setBounds(n),s&&P(google.maps.event.addListener(X,"dblclick",s)),a&&N(google.maps.event.addListener(X,"dragend",a)),u&&K(google.maps.event.addListener(X,"dragstart",u)),l&&T(google.maps.event.addListener(X,"mousedown",l)),f&&V(google.maps.event.addListener(X,"mousemove",f)),d&&ne(google.maps.event.addListener(X,"mouseout",d)),h&&le(google.maps.event.addListener(X,"mouseover",h)),g&&q(google.maps.event.addListener(X,"mouseup",g)),v&&pe(google.maps.event.addListener(X,"rightclick",v)),p&&Le(google.maps.event.addListener(X,"click",p)),C&&ae(google.maps.event.addListener(X,"drag",C)),w&&_e(google.maps.event.addListener(X,"bounds_changed",w)),E(X),m&&m(X),function(){M!==null&&google.maps.event.removeListener(M),k!==null&&google.maps.event.removeListener(k),Q!==null&&google.maps.event.removeListener(Q),R!==null&&google.maps.event.removeListener(R),D!==null&&google.maps.event.removeListener(D),Y!==null&&google.maps.event.removeListener(Y),ee!==null&&google.maps.event.removeListener(ee),B!==null&&google.maps.event.removeListener(B),re!==null&&google.maps.event.removeListener(re),ue!==null&&google.maps.event.removeListener(ue),Me!==null&&google.maps.event.removeListener(Me),Ge!==null&&google.maps.event.removeListener(Ge),b&&b(X),X.setMap(null)}},[]),null}c.memo(qb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={rectangle:null},n.setRectangleCallback=function(){n.state.rectangle!==null&&n.props.onLoad&&n.props.onLoad(n.state.rectangle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Rectangle(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Of,eventMap:xf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{rectangle:n}},this.setRectangleCallback)},e.prototype.componentDidUpdate=function(n){this.state.rectangle!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Of,eventMap:xf,prevProps:n,nextProps:this.props,instance:this.state.rectangle}))},e.prototype.componentWillUnmount=function(){this.state.rectangle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),ye(this.registeredEvents),this.state.rectangle.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Pf={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Mf={center:function(t,e){t.setCenter(e)},draggable:function(t,e){t.setDraggable(e)},editable:function(t,e){t.setEditable(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},radius:function(t,e){t.setRadius(e)},visible:function(t,e){t.setVisible(e)}},Zb={};function Jb(t){var e=t.options,n=t.center,r=t.radius,o=t.draggable,i=t.editable,s=t.visible,a=t.onDblClick,u=t.onDragEnd,l=t.onDragStart,f=t.onMouseDown,d=t.onMouseMove,h=t.onMouseOut,g=t.onMouseOver,v=t.onMouseUp,p=t.onRightClick,C=t.onClick,w=t.onDrag,m=t.onCenterChanged,b=t.onRadiusChanged,O=t.onLoad,S=t.onUnmount,y=c.useContext(he),E=c.useState(null),A=E[0],M=E[1],P=c.useState(null),x=P[0],k=P[1],N=c.useState(null),z=N[0],Q=N[1],K=c.useState(null),G=K[0],R=K[1],T=c.useState(null),I=T[0],D=T[1],V=c.useState(null),H=V[0],Y=V[1],ne=c.useState(null),U=ne[0],ee=ne[1],le=c.useState(null),Z=le[0],B=le[1],q=c.useState(null),_=q[0],re=q[1],pe=c.useState(null),oe=pe[0],ue=pe[1],Le=c.useState(null),Pe=Le[0],Me=Le[1],ae=c.useState(null),fe=ae[0],Ge=ae[1],_e=c.useState(null),X=_e[0],Qe=_e[1],Ue=c.useState(null),ht=Ue[0],at=Ue[1];return c.useEffect(function(){A!==null&&A.setMap(y)},[y]),c.useEffect(function(){typeof e<"u"&&A!==null&&A.setOptions(e)},[A,e]),c.useEffect(function(){typeof o<"u"&&A!==null&&A.setDraggable(o)},[A,o]),c.useEffect(function(){typeof i<"u"&&A!==null&&A.setEditable(i)},[A,i]),c.useEffect(function(){typeof s<"u"&&A!==null&&A.setVisible(s)},[A,s]),c.useEffect(function(){typeof r=="number"&&A!==null&&A.setRadius(r)},[A,r]),c.useEffect(function(){typeof n<"u"&&A!==null&&A.setCenter(n)},[A,n]),c.useEffect(function(){A&&a&&(x!==null&&google.maps.event.removeListener(x),k(google.maps.event.addListener(A,"dblclick",a)))},[a]),c.useEffect(function(){A&&u&&(z!==null&&google.maps.event.removeListener(z),Q(google.maps.event.addListener(A,"dragend",u)))},[u]),c.useEffect(function(){A&&l&&(G!==null&&google.maps.event.removeListener(G),R(google.maps.event.addListener(A,"dragstart",l)))},[l]),c.useEffect(function(){A&&f&&(I!==null&&google.maps.event.removeListener(I),D(google.maps.event.addListener(A,"mousedown",f)))},[f]),c.useEffect(function(){A&&d&&(H!==null&&google.maps.event.removeListener(H),Y(google.maps.event.addListener(A,"mousemove",d)))},[d]),c.useEffect(function(){A&&h&&(U!==null&&google.maps.event.removeListener(U),ee(google.maps.event.addListener(A,"mouseout",h)))},[h]),c.useEffect(function(){A&&g&&(Z!==null&&google.maps.event.removeListener(Z),B(google.maps.event.addListener(A,"mouseover",g)))},[g]),c.useEffect(function(){A&&v&&(_!==null&&google.maps.event.removeListener(_),re(google.maps.event.addListener(A,"mouseup",v)))},[v]),c.useEffect(function(){A&&p&&(oe!==null&&google.maps.event.removeListener(oe),ue(google.maps.event.addListener(A,"rightclick",p)))},[p]),c.useEffect(function(){A&&C&&(Pe!==null&&google.maps.event.removeListener(Pe),Me(google.maps.event.addListener(A,"click",C)))},[C]),c.useEffect(function(){A&&w&&(fe!==null&&google.maps.event.removeListener(fe),Ge(google.maps.event.addListener(A,"drag",w)))},[w]),c.useEffect(function(){A&&m&&(X!==null&&google.maps.event.removeListener(X),Qe(google.maps.event.addListener(A,"center_changed",m)))},[C]),c.useEffect(function(){A&&b&&(ht!==null&&google.maps.event.removeListener(ht),at(google.maps.event.addListener(A,"radius_changed",b)))},[b]),c.useEffect(function(){var de=new google.maps.Circle(te(te({},e||Zb),{map:y}));return typeof r=="number"&&de.setRadius(r),typeof n<"u"&&de.setCenter(n),typeof r=="number"&&de.setRadius(r),typeof s<"u"&&de.setVisible(s),typeof i<"u"&&de.setEditable(i),typeof o<"u"&&de.setDraggable(o),a&&k(google.maps.event.addListener(de,"dblclick",a)),u&&Q(google.maps.event.addListener(de,"dragend",u)),l&&R(google.maps.event.addListener(de,"dragstart",l)),f&&D(google.maps.event.addListener(de,"mousedown",f)),d&&Y(google.maps.event.addListener(de,"mousemove",d)),h&&ee(google.maps.event.addListener(de,"mouseout",h)),g&&B(google.maps.event.addListener(de,"mouseover",g)),v&&re(google.maps.event.addListener(de,"mouseup",v)),p&&ue(google.maps.event.addListener(de,"rightclick",p)),C&&Me(google.maps.event.addListener(de,"click",C)),w&&Ge(google.maps.event.addListener(de,"drag",w)),m&&Qe(google.maps.event.addListener(de,"center_changed",m)),b&&at(google.maps.event.addListener(de,"radius_changed",b)),M(de),O&&O(de),function(){x!==null&&google.maps.event.removeListener(x),z!==null&&google.maps.event.removeListener(z),G!==null&&google.maps.event.removeListener(G),I!==null&&google.maps.event.removeListener(I),H!==null&&google.maps.event.removeListener(H),U!==null&&google.maps.event.removeListener(U),Z!==null&&google.maps.event.removeListener(Z),_!==null&&google.maps.event.removeListener(_),oe!==null&&google.maps.event.removeListener(oe),Pe!==null&&google.maps.event.removeListener(Pe),X!==null&&google.maps.event.removeListener(X),ht!==null&&google.maps.event.removeListener(ht),S&&S(de),de.setMap(null)}},[]),null}c.memo(Jb),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={circle:null},n.setCircleCallback=function(){n.state.circle!==null&&n.props.onLoad&&n.props.onLoad(n.state.circle)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.Circle(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:Mf,eventMap:Pf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{circle:n}},this.setCircleCallback)},e.prototype.componentDidUpdate=function(n){this.state.circle!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Mf,eventMap:Pf,prevProps:n,nextProps:this.props,instance:this.state.circle}))},e.prototype.componentWillUnmount=function(){var n;this.state.circle!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),ye(this.registeredEvents),(n=this.state.circle)===null||n===void 0||n.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var kf={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},If={add:function(t,e){t.add(e)},addgeojson:function(t,e,n){t.addGeoJson(e,n)},contains:function(t,e){t.contains(e)},foreach:function(t,e){t.forEach(e)},loadgeojson:function(t,e,n,r){t.loadGeoJson(e,n,r)},overridestyle:function(t,e,n){t.overrideStyle(e,n)},remove:function(t,e){t.remove(e)},revertstyle:function(t,e){t.revertStyle(e)},controlposition:function(t,e){t.setControlPosition(e)},controls:function(t,e){t.setControls(e)},drawingmode:function(t,e){t.setDrawingMode(e)},map:function(t,e){t.setMap(e)},style:function(t,e){t.setStyle(e)},togeojson:function(t,e){t.toGeoJson(e)}};function _b(t){var e=t.options,n=t.onClick,r=t.onDblClick,o=t.onMouseDown,i=t.onMouseMove,s=t.onMouseOut,a=t.onMouseOver,u=t.onMouseUp,l=t.onRightClick,f=t.onAddFeature,d=t.onRemoveFeature,h=t.onRemoveProperty,g=t.onSetGeometry,v=t.onSetProperty,p=t.onLoad,C=t.onUnmount,w=c.useContext(he),m=c.useState(null),b=m[0],O=m[1],S=c.useState(null),y=S[0],E=S[1],A=c.useState(null),M=A[0],P=A[1],x=c.useState(null),k=x[0],N=x[1],z=c.useState(null),Q=z[0],K=z[1],G=c.useState(null),R=G[0],T=G[1],I=c.useState(null),D=I[0],V=I[1],H=c.useState(null),Y=H[0],ne=H[1],U=c.useState(null),ee=U[0],le=U[1],Z=c.useState(null),B=Z[0],q=Z[1],_=c.useState(null),re=_[0],pe=_[1],oe=c.useState(null),ue=oe[0],Le=oe[1],Pe=c.useState(null),Me=Pe[0],ae=Pe[1],fe=c.useState(null),Ge=fe[0],_e=fe[1];return c.useEffect(function(){b!==null&&b.setMap(w)},[w]),c.useEffect(function(){b&&r&&(y!==null&&google.maps.event.removeListener(y),E(google.maps.event.addListener(b,"dblclick",r)))},[r]),c.useEffect(function(){b&&o&&(M!==null&&google.maps.event.removeListener(M),P(google.maps.event.addListener(b,"mousedown",o)))},[o]),c.useEffect(function(){b&&i&&(k!==null&&google.maps.event.removeListener(k),N(google.maps.event.addListener(b,"mousemove",i)))},[i]),c.useEffect(function(){b&&s&&(Q!==null&&google.maps.event.removeListener(Q),K(google.maps.event.addListener(b,"mouseout",s)))},[s]),c.useEffect(function(){b&&a&&(R!==null&&google.maps.event.removeListener(R),T(google.maps.event.addListener(b,"mouseover",a)))},[a]),c.useEffect(function(){b&&u&&(D!==null&&google.maps.event.removeListener(D),V(google.maps.event.addListener(b,"mouseup",u)))},[u]),c.useEffect(function(){b&&l&&(Y!==null&&google.maps.event.removeListener(Y),ne(google.maps.event.addListener(b,"rightclick",l)))},[l]),c.useEffect(function(){b&&n&&(ee!==null&&google.maps.event.removeListener(ee),le(google.maps.event.addListener(b,"click",n)))},[n]),c.useEffect(function(){b&&f&&(B!==null&&google.maps.event.removeListener(B),q(google.maps.event.addListener(b,"addfeature",f)))},[f]),c.useEffect(function(){b&&d&&(re!==null&&google.maps.event.removeListener(re),pe(google.maps.event.addListener(b,"removefeature",d)))},[d]),c.useEffect(function(){b&&h&&(ue!==null&&google.maps.event.removeListener(ue),Le(google.maps.event.addListener(b,"removeproperty",h)))},[h]),c.useEffect(function(){b&&g&&(Me!==null&&google.maps.event.removeListener(Me),ae(google.maps.event.addListener(b,"setgeometry",g)))},[g]),c.useEffect(function(){b&&v&&(Ge!==null&&google.maps.event.removeListener(Ge),_e(google.maps.event.addListener(b,"setproperty",v)))},[v]),c.useEffect(function(){if(w!==null){var X=new google.maps.Data(te(te({},e||{}),{map:w}));r&&E(google.maps.event.addListener(X,"dblclick",r)),o&&P(google.maps.event.addListener(X,"mousedown",o)),i&&N(google.maps.event.addListener(X,"mousemove",i)),s&&K(google.maps.event.addListener(X,"mouseout",s)),a&&T(google.maps.event.addListener(X,"mouseover",a)),u&&V(google.maps.event.addListener(X,"mouseup",u)),l&&ne(google.maps.event.addListener(X,"rightclick",l)),n&&le(google.maps.event.addListener(X,"click",n)),f&&q(google.maps.event.addListener(X,"addfeature",f)),d&&pe(google.maps.event.addListener(X,"removefeature",d)),h&&Le(google.maps.event.addListener(X,"removeproperty",h)),g&&ae(google.maps.event.addListener(X,"setgeometry",g)),v&&_e(google.maps.event.addListener(X,"setproperty",v)),O(X),p&&p(X)}return function(){b&&(y!==null&&google.maps.event.removeListener(y),M!==null&&google.maps.event.removeListener(M),k!==null&&google.maps.event.removeListener(k),Q!==null&&google.maps.event.removeListener(Q),R!==null&&google.maps.event.removeListener(R),D!==null&&google.maps.event.removeListener(D),Y!==null&&google.maps.event.removeListener(Y),ee!==null&&google.maps.event.removeListener(ee),B!==null&&google.maps.event.removeListener(B),re!==null&&google.maps.event.removeListener(re),ue!==null&&google.maps.event.removeListener(ue),Me!==null&&google.maps.event.removeListener(Me),Ge!==null&&google.maps.event.removeListener(Ge),C&&C(b),b.setMap(null))}},[]),null}c.memo(_b),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={data:null},n.setDataCallback=function(){n.state.data!==null&&n.props.onLoad&&n.props.onLoad(n.state.data)},n}return e.prototype.componentDidMount=function(){if(this.context!==null){var n=new google.maps.Data(te(te({},this.props.options||{}),{map:this.context}));this.registeredEvents=ve({updaterMap:If,eventMap:kf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{data:n}},this.setDataCallback)}},e.prototype.componentDidUpdate=function(n){this.state.data!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:If,eventMap:kf,prevProps:n,nextProps:this.props,instance:this.state.data}))},e.prototype.componentWillUnmount=function(){this.state.data!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),ye(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Df={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},Tf={options:function(t,e){t.setOptions(e)},url:function(t,e){t.setUrl(e)},zIndex:function(t,e){t.setZIndex(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={kmlLayer:null},n.setKmlLayerCallback=function(){n.state.kmlLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.kmlLayer)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.KmlLayer(te(te({},this.props.options),{map:this.context}));this.registeredEvents=ve({updaterMap:Tf,eventMap:Df,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{kmlLayer:n}},this.setKmlLayerCallback)},e.prototype.componentDidUpdate=function(n){this.state.kmlLayer!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Tf,eventMap:Df,prevProps:n,nextProps:this.props,instance:this.state.kmlLayer}))},e.prototype.componentWillUnmount=function(){this.state.kmlLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),ye(this.registeredEvents),this.state.kmlLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e})(c.PureComponent);function Bf(t,e){return typeof e=="function"?e(t.offsetWidth,t.offsetHeight):{x:0,y:0}}function Xb(t,e){return new e(t.lat,t.lng)}function $b(t,e){return new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng))}function eE(t,e,n){return t instanceof e?t:n(t,e)}function tE(t,e,n){return t instanceof e?t:n(t,e)}function nE(t,e,n){var r=t&&t.fromLatLngToDivPixel(n.getNorthEast()),o=t&&t.fromLatLngToDivPixel(n.getSouthWest());return r&&o?{left:"".concat(o.x+e.x,"px"),top:"".concat(r.y+e.y,"px"),width:"".concat(r.x-o.x-e.x,"px"),height:"".concat(o.y-r.y-e.y,"px")}:{left:"-9999px",top:"-9999px"}}function rE(t,e,n){var r=t&&t.fromLatLngToDivPixel(n);if(r){var o=r.x,i=r.y;return{left:"".concat(o+e.x,"px"),top:"".concat(i+e.y,"px")}}return{left:"-9999px",top:"-9999px"}}function Nf(t,e,n,r){return n!==void 0?nE(t,e,tE(n,google.maps.LatLngBounds,$b)):rE(t,e,eE(r,google.maps.LatLng,Xb))}function oE(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.height&&t.height===e.height}function iE(t,e,n,r,o){var i=function(s){je(a,s);function a(u,l,f,d){var h=s.call(this)||this;return h.container=u,h.pane=l,h.position=f,h.bounds=d,h}return a.prototype.onAdd=function(){var u,l=(u=this.getPanes())===null||u===void 0?void 0:u[this.pane];l==null||l.appendChild(this.container)},a.prototype.draw=function(){for(var u=this.getProjection(),l=te({},this.container?Bf(this.container,o):{x:0,y:0}),f=Nf(u,l,this.bounds,this.position),d=0,h=Object.entries(f);d<h.length;d++){var g=h[d],v=g[0],p=g[1];this.container.style[v]=p}},a.prototype.onRemove=function(){this.container.parentNode!==null&&this.container.parentNode.removeChild(this.container)},a}(google.maps.OverlayView);return new i(t,e,n,r)}function jf(t){if(!t)return"";var e=t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng);return e+""}function Uf(t){if(!t)return"";var e=t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west));return e+""}function sE(t){var e=t.position,n=t.bounds,r=t.mapPaneName,o=t.zIndex,i=t.onLoad,s=t.onUnmount,a=t.getPixelPositionOffset,u=t.children,l=c.useContext(he),f=c.useMemo(function(){var h=document.createElement("div");return h.style.position="absolute",h},[]),d=c.useMemo(function(){return iE(f,r,e,n,a)},[f,r,e,n]);return c.useEffect(function(){return i==null||i(d),d==null||d.setMap(l),function(){s==null||s(d),d==null||d.setMap(null)}},[l,d]),c.useEffect(function(){f.style.zIndex="".concat(o)},[o,f]),Da.createPortal(u,f)}c.memo(sE),function(t){je(e,t);function e(n){var r=t.call(this,n)||this;r.state={paneEl:null,containerStyle:{position:"absolute"}},r.updatePane=function(){var i=r.props.mapPaneName,s=r.overlayView.getPanes();Re(!!i,"OverlayView requires props.mapPaneName but got %s",i),s?r.setState({paneEl:s[i]}):r.setState({paneEl:null})},r.onAdd=function(){var i,s;r.updatePane(),(s=(i=r.props).onLoad)===null||s===void 0||s.call(i,r.overlayView)},r.onPositionElement=function(){var i,s=r.overlayView.getProjection(),a=te({x:0,y:0},r.containerRef.current?Bf(r.containerRef.current,r.props.getPixelPositionOffset):{}),u=Nf(s,a,r.props.bounds,r.props.position),l=(i=r.state.containerStyle,i.left),f=i.top,d=i.width,h=i.height;oE(u,{left:l,top:f,width:d,height:h})||r.setState({containerStyle:{top:u.top||0,left:u.left||0,width:u.width||0,height:u.height||0,position:"absolute"}})},r.draw=function(){r.onPositionElement()},r.onRemove=function(){var i,s;r.setState(function(){return{paneEl:null}}),(s=(i=r.props).onUnmount)===null||s===void 0||s.call(i,r.overlayView)},r.containerRef=c.createRef();var o=new google.maps.OverlayView;return o.onAdd=r.onAdd,o.draw=r.draw,o.onRemove=r.onRemove,r.overlayView=o,r}return e.prototype.componentDidMount=function(){this.overlayView.setMap(this.context)},e.prototype.componentDidUpdate=function(n){var r=jf(n.position),o=jf(this.props.position),i=Uf(n.bounds),s=Uf(this.props.bounds);(r!==o||i!==s)&&this.overlayView.draw(),n.mapPaneName!==this.props.mapPaneName&&this.updatePane()},e.prototype.componentWillUnmount=function(){this.overlayView.setMap(null)},e.prototype.render=function(){var n=this.state.paneEl;return n?Da.createPortal(L.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:c.Children.only(this.props.children)}),n):null},e.FLOAT_PANE="floatPane",e.MAP_PANE="mapPane",e.MARKER_LAYER="markerLayer",e.OVERLAY_LAYER="overlayLayer",e.OVERLAY_MOUSE_TARGET="overlayMouseTarget",e.contextType=he,e}(c.PureComponent);function aE(){}var Hf={onDblClick:"dblclick",onClick:"click"},zf={opacity:function(t,e){t.setOpacity(e)}};function lE(t){var e=t.url,n=t.bounds,r=t.options,o=t.visible,i=c.useContext(he),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),a=c.useMemo(function(){var u=new google.maps.GroundOverlay(e,s,te({},r));return u},[]);return c.useEffect(function(){a!==null&&a.setMap(i)},[i]),c.useEffect(function(){typeof e<"u"&&a!==null&&(a.set("url",e),a.setMap(i))},[a,e]),c.useEffect(function(){typeof o<"u"&&a!==null&&a.setOpacity(o?1:0)},[a,o]),c.useEffect(function(){var u=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));typeof n<"u"&&a!==null&&(a.set("bounds",u),a.setMap(i))},[a,n]),null}c.memo(lE),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={groundOverlay:null},n.setGroundOverlayCallback=function(){n.state.groundOverlay!==null&&n.props.onLoad&&n.props.onLoad(n.state.groundOverlay)},n}return e.prototype.componentDidMount=function(){Re(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var n=new google.maps.GroundOverlay(this.props.url,this.props.bounds,te(te({},this.props.options),{map:this.context}));this.registeredEvents=ve({updaterMap:zf,eventMap:Hf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{groundOverlay:n}},this.setGroundOverlayCallback)},e.prototype.componentDidUpdate=function(n){this.state.groundOverlay!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:zf,eventMap:Hf,prevProps:n,nextProps:this.props,instance:this.state.groundOverlay}))},e.prototype.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},e.prototype.render=function(){return null},e.defaultProps={onLoad:aE},e.contextType=he,e}(c.PureComponent);var Ff={},Vf={data:function(t,e){t.setData(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)}};function uE(t){var e=t.data,n=t.onLoad,r=t.onUnmount,o=t.options,i=c.useContext(he),s=c.useState(null),a=s[0],u=s[1];return c.useEffect(function(){google.maps.visualization||Re(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),c.useEffect(function(){Re(!!e,"data property is required in HeatmapLayer %s",e)},[e]),c.useEffect(function(){a!==null&&a.setMap(i)},[i]),c.useEffect(function(){o&&a!==null&&a.setOptions(o)},[a,o]),c.useEffect(function(){var l=new google.maps.visualization.HeatmapLayer(te(te({},o||{}),{data:e,map:i}));return u(l),n&&n(l),function(){a!==null&&(r&&r(a),a.setMap(null))}},[]),null}c.memo(uE),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={heatmapLayer:null},n.setHeatmapLayerCallback=function(){n.state.heatmapLayer!==null&&n.props.onLoad&&n.props.onLoad(n.state.heatmapLayer)},n}return e.prototype.componentDidMount=function(){Re(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),Re(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var n=new google.maps.visualization.HeatmapLayer(te(te({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=ve({updaterMap:Vf,eventMap:Ff,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{heatmapLayer:n}},this.setHeatmapLayerCallback)},e.prototype.componentDidUpdate=function(n){ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Vf,eventMap:Ff,prevProps:n,nextProps:this.props,instance:this.state.heatmapLayer})},e.prototype.componentWillUnmount=function(){this.state.heatmapLayer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),ye(this.registeredEvents),this.state.heatmapLayer.setMap(null))},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent);var Gf={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Qf={register:function(t,e,n){t.registerPanoProvider(e,n)},links:function(t,e){t.setLinks(e)},motionTracking:function(t,e){t.setMotionTracking(e)},options:function(t,e){t.setOptions(e)},pano:function(t,e){t.setPano(e)},position:function(t,e){t.setPosition(e)},pov:function(t,e){t.setPov(e)},visible:function(t,e){t.setVisible(e)},zoom:function(t,e){t.setZoom(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={streetViewPanorama:null},n.setStreetViewPanoramaCallback=function(){n.state.streetViewPanorama!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewPanorama)},n}return e.prototype.componentDidMount=function(){var n,r,o=(r=(n=this.context)===null||n===void 0?void 0:n.getStreetView())!==null&&r!==void 0?r:null;this.registeredEvents=ve({updaterMap:Qf,eventMap:Gf,prevProps:{},nextProps:this.props,instance:o}),this.setState(function(){return{streetViewPanorama:o}},this.setStreetViewPanoramaCallback)},e.prototype.componentDidUpdate=function(n){this.state.streetViewPanorama!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Qf,eventMap:Gf,prevProps:n,nextProps:this.props,instance:this.state.streetViewPanorama}))},e.prototype.componentWillUnmount=function(){this.state.streetViewPanorama!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),ye(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},e.prototype.render=function(){return null},e.contextType=he,e})(c.PureComponent),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={streetViewService:null},n.setStreetViewServiceCallback=function(){n.state.streetViewService!==null&&n.props.onLoad&&n.props.onLoad(n.state.streetViewService)},n}return e.prototype.componentDidMount=function(){var n=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:n}},this.setStreetViewServiceCallback)},e.prototype.componentWillUnmount=function(){this.state.streetViewService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},e.prototype.render=function(){return null},e.contextType=he,e}(c.PureComponent),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={directionsService:null},n.setDirectionsServiceCallback=function(){n.state.directionsService!==null&&n.props.onLoad&&n.props.onLoad(n.state.directionsService)},n}return e.prototype.componentDidMount=function(){Re(!!this.props.options,"DirectionsService expected options object as parameter, but got %s",this.props.options);var n=new google.maps.DirectionsService;this.setState(function(){return{directionsService:n}},this.setDirectionsServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.directionsService!==null&&this.state.directionsService.route(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.directionsService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.directionsService)},e.prototype.render=function(){return null},e}(c.PureComponent);var Yf={onDirectionsChanged:"directions_changed"},Wf={directions:function(t,e){t.setDirections(e)},map:function(t,e){t.setMap(e)},options:function(t,e){t.setOptions(e)},panel:function(t,e){t.setPanel(e)},routeIndex:function(t,e){t.setRouteIndex(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.state={directionsRenderer:null},n.setDirectionsRendererCallback=function(){n.state.directionsRenderer!==null&&(n.state.directionsRenderer.setMap(n.context),n.props.onLoad&&n.props.onLoad(n.state.directionsRenderer))},n}return e.prototype.componentDidMount=function(){var n=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=ve({updaterMap:Wf,eventMap:Yf,prevProps:{},nextProps:this.props,instance:n}),this.setState(function(){return{directionsRenderer:n}},this.setDirectionsRendererCallback)},e.prototype.componentDidUpdate=function(n){this.state.directionsRenderer!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Wf,eventMap:Yf,prevProps:n,nextProps:this.props,instance:this.state.directionsRenderer}))},e.prototype.componentWillUnmount=function(){this.state.directionsRenderer!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),ye(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},e.prototype.render=function(){return L.jsx(L.Fragment,{})},e.contextType=he,e})(c.PureComponent),function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={distanceMatrixService:null},n.setDistanceMatrixServiceCallback=function(){n.state.distanceMatrixService!==null&&n.props.onLoad&&n.props.onLoad(n.state.distanceMatrixService)},n}return e.prototype.componentDidMount=function(){Re(!!this.props.options,"DistanceMatrixService expected options object as parameter, but go %s",this.props.options);var n=new google.maps.DistanceMatrixService;this.setState(function(){return{distanceMatrixService:n}},this.setDistanceMatrixServiceCallback)},e.prototype.componentDidUpdate=function(){this.state.distanceMatrixService!==null&&this.state.distanceMatrixService.getDistanceMatrix(this.props.options,this.props.callback)},e.prototype.componentWillUnmount=function(){this.state.distanceMatrixService!==null&&this.props.onUnmount&&this.props.onUnmount(this.state.distanceMatrixService)},e.prototype.render=function(){return null},e}(c.PureComponent);var Rf={onPlacesChanged:"places_changed"},Kf={bounds:function(t,e){t.setBounds(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=c.createRef(),n.state={searchBox:null},n.setSearchBoxCallback=function(){n.state.searchBox!==null&&n.props.onLoad&&n.props.onLoad(n.state.searchBox)},n}return e.prototype.componentDidMount=function(){if(Re(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),this.containerElement!==null&&this.containerElement.current!==null){var n=this.containerElement.current.querySelector("input");if(n!==null){var r=new google.maps.places.SearchBox(n,this.props.options);this.registeredEvents=ve({updaterMap:Kf,eventMap:Rf,prevProps:{},nextProps:this.props,instance:r}),this.setState(function(){return{searchBox:r}},this.setSearchBoxCallback)}}},e.prototype.componentDidUpdate=function(n){this.state.searchBox!==null&&(ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Kf,eventMap:Rf,prevProps:n,nextProps:this.props,instance:this.state.searchBox}))},e.prototype.componentWillUnmount=function(){this.state.searchBox!==null&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),ye(this.registeredEvents))},e.prototype.render=function(){return L.jsx("div",{ref:this.containerElement,children:c.Children.only(this.props.children)})},e.contextType=he,e})(c.PureComponent);var qf={onPlaceChanged:"place_changed"},Zf={bounds:function(t,e){t.setBounds(e)},restrictions:function(t,e){t.setComponentRestrictions(e)},fields:function(t,e){t.setFields(e)},options:function(t,e){t.setOptions(e)},types:function(t,e){t.setTypes(e)}};(function(t){je(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.registeredEvents=[],n.containerElement=c.createRef(),n.state={autocomplete:null},n.setAutocompleteCallback=function(){n.state.autocomplete!==null&&n.props.onLoad&&n.props.onLoad(n.state.autocomplete)},n}return e.prototype.componentDidMount=function(){var n;Re(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var r=(n=this.containerElement.current)===null||n===void 0?void 0:n.querySelector("input");if(r){var o=new google.maps.places.Autocomplete(r,this.props.options);this.registeredEvents=ve({updaterMap:Zf,eventMap:qf,prevProps:{},nextProps:this.props,instance:o}),this.setState(function(){return{autocomplete:o}},this.setAutocompleteCallback)}},e.prototype.componentDidUpdate=function(n){ye(this.registeredEvents),this.registeredEvents=ve({updaterMap:Zf,eventMap:qf,prevProps:n,nextProps:this.props,instance:this.state.autocomplete})},e.prototype.componentWillUnmount=function(){this.state.autocomplete!==null&&ye(this.registeredEvents)},e.prototype.render=function(){return L.jsx("div",{ref:this.containerElement,className:this.props.className,children:c.Children.only(this.props.children)})},e.defaultProps={className:""},e.contextType=he,e})(c.PureComponent);function ya(t){return typeof t=="object"&&"lat"in t&&"lng"in t?t.lat===$t[0]&&t.lng===$t[1]:t[0]===$t[0]&&t[1]===$t[1]}const cE={clickableIcons:!1,disableDefaultUI:!0,minZoom:0,maxZoom:20},Jf={optimized:!0},fE=1e3,Je={root:"MapGoogle-module__root__iB2RTt",hideUI:"MapGoogle-module__hideUI__zGYpjY",mapContainer:"MapGoogle-module__mapContainer__qTVsu4",balloon:"MapGoogle-module__balloon__nNM3fV",details:"MapGoogle-module__details__MuhoyT",cluster:"MapGoogle-module__cluster__KIS2sn",overlay:"MapGoogle-module__overlay__z03Yoa",mapControl:"MapGoogle-module__mapControl__Iu3xc4",geolocationControl:"MapGoogle-module__geolocationControl__cwYVsw",bottomSheet:"MapGoogle-module__bottomSheet__ql8eoC",locationViewContent:"MapGoogle-module__locationViewContent__LYJkkK",locationViewHeader:"MapGoogle-module__locationViewHeader__hzc7Ip",courierDetailsViewContent:"MapGoogle-module__courierDetailsViewContent__CIg-RD",courierDetailsViewHeader:"MapGoogle-module__courierDetailsViewHeader__vMFQjI",sheetSubmit:"MapGoogle-module__sheetSubmit__pjGRS0"},dE=({children:t,className:e,onLoad:n,onIdle:r,onUnmount:o})=>{const{map:i,disableCourierDelivery:s,hideMapUI:a}=Bt(),u=ze(v=>v.setDetailsOpen),l=mt(v=>v.setCourierPoint),f=yt(v=>v.setSelectedPoint),d=c.useMemo(()=>{var v,p;return{lat:((v=i==null?void 0:i.center)==null?void 0:v[0])??$t[0],lng:((p=i==null?void 0:i.center)==null?void 0:p[1])??$t[1]}},[i==null?void 0:i.center]),h=c.useCallback(async v=>{var w,m;const{latLng:p}=v;if(!p||s)return;u(!1),f(null);const C=[p.lat(),p.lng()];try{const b=await ta(C),O=(m=(w=b==null?void 0:b.results)==null?void 0:w[0])==null?void 0:m.formatted_address;O&&l({address:O,coords:C})}catch{l({address:null,coords:C})}},[s,l,u,f]),g=ya(d)?ul:es;return L.jsx(tb,{zoom:g,center:d,options:cE,mapContainerClassName:Ce(Je.root,e,{[Je.hideUI]:a}),onLoad:n,onIdle:r,onUnmount:o,onClick:h,children:t})},_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAEICAYAAAAJEPtqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAFmTSURBVHgB7X1psGVHedjX545GaBkYEKDFGB4Yi4BjZ6SRKFYz88+uggSSQAL5geQkUhbHoKSSOFtpximXU85igbMhx9aQBSfIFUNwIOVyrCckgo00SxIjh/0JxIwkS+hJI7TMzD2d/vr21/fr7q/79Ln33Pvum5lPenPO6X359l6ugvMwCOw5um+3eeyG8XgPtOPdoJs1rfSrQOvdoNRuBbBmE5p30CadmuZlr5ug1aZJswnQbk6Sqw0T9iCA3mxAH1N6x+Z9b1w/BudhEFBwHnqDQfY1OH1qX6tGf0K14zUMMkO5FiQSRlbxt2I8BbgQrYU86hgShSEQQxTN3U0LG+cJoz+cJ4AOsJx9PN7XaniH0u0eDLIcPACHoME3TMPCxzROlgICqLR4OYOREnBMG6Jo2ubTl+6AY+vXrG/CecjCeQIQYM99b9tnhuZPGUwzyK73aR6p49Q6CFZA+Cljd5bL5+KzoDozuLasK0cQ91+/vg7nIYDzBACOy58evxsaeIdB+HdPOXyI3PxFV5atiHszrh2oQmGA9FlVSyIWZBULpcG6efl024w+dey8dDh3CcAjvdIfBKvDO6SPsD1F/j7oPwFJGoTqfKcClNTYW1IIBSrQn4JGffrI3nsOwTkK5xwBePVGtzeY5+4pdsVKTIR0zhDVISWUIeHsKfYrKVPFrCihCbNLDkBj+lOt1h8/dv2963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F3HeVH9uGTy80ykjgDl4+C4d6Dvu/1TxL29URx7UgjR4286f4thzmi1PyKI3hqUrrghjVafDZNBPd6+8x/JY78Jti2QnsN2JgAOgbqE7/RDeqgOOcNU81+cwTQkLRhhABnZFI9eDZIcMCEU3L9CxrdduSZAaYIGotv8p5xaIY4xERUt8kEH8hDHpvJtpyOEpiceKnEErV3btbOTLJLSj95hv1F35z9ttGPyA3jaXUMCtDhFOzH5RvxluisXBWcLAeQgIAxSnRDYijQe4bThZ6YXvqKIt0iO2zXG7OdVneENTjWgw9sWiGDQI0LEhcA2/PmG0Tc+ESiOhxMCuzIsIbqdqoqQ2nbScXKqk9yP+I7tZ4eSvL7ufkLWc3QE2nKM706VQbA4fzYguwRnOwHkwBMGHeTBX5B3hjYe6LFP+s1h+tkmBPo1eYIzk98vsz82jU+naiGx+FsaxtMf9LNExKEQrgl5EbGxTI7MpJ7gaiqdv8Z3vEqQ2sp87kC/BE/l09Uizg+PQSvlnVkWnKsEUALyHE0OKYPd1arcdlzlruRAu8Mmdgt4FsHoSWsIJF3Yj094VYx+tR6BrR9oLpGQQ+OTqyPoBWPuRXA7Jm17nJoCrs0BF2f9O6cQvAvOE8B8oHqGE7cF59rV/Jv9yHQM1rh1e2QmAexM7NmqniwD/j9/ewWbk1NBkwAAAABJRU5ErkJggg==",Xf=28,$f=({children:t,hideFooter:e,minSnapHeight:n,submitDisabled:r,onSubmitClick:o,...i})=>L.jsx(_u,{...i,initialFocusRef:!1,defaultSnap:({snapPoints:s})=>Math.min(...s),snapPoints:({headerHeight:s,minHeight:a,footerHeight:u,maxHeight:l})=>[n==null?a:s+u+n,l-Xf],footer:e?null:L.jsx(wt,{disabled:r,variant:"primary",className:Je.sheetSubmit,onClick:o,children:L.jsx(gn,{keyName:"choose",ns:"common"})}),sibling:L.jsx("div",{"data-rsbs-backdrop":"true",onClick:s=>{var a;s.stopPropagation(),s.preventDefault(),(a=i.onDismiss)==null||a.call(i)}}),blocking:!1,children:L.jsx("div",{className:Je.bottomSheet,children:t})}),hE=({map:t,onAttach:e})=>{const n=yt(o=>o.setSelectPointHook),r=c.useCallback(o=>{o&&(e==null||e(),t==null||t.setZoom(mo),t==null||t.setCenter({lat:o.location.latitude,lng:o.location.longitude}))},[t]);c.useEffect(()=>{n(r)},[r,n])},pE=()=>{const[t,e]=c.useState(!1);return c.useEffect(()=>{if(t)return;const n=setTimeout(()=>e(!0),fE);return()=>clearTimeout(n)},[t]),[t,e]},gE=({map:t})=>{const e=mn(r=>r.place),n=ze(r=>r.zoom);c.useEffect(()=>{var i,s,a,u;if(!e)return;t==null||t.setZoom(n);const r=(s=(i=e.geometry)==null?void 0:i.location)==null?void 0:s.lng(),o=(u=(a=e.geometry)==null?void 0:a.location)==null?void 0:u.lat();!o||!r||t==null||t.setCenter({lng:r,lat:o})},[e,t])},ed=({isSelectedPoint:t})=>{const[e,n]=c.useState(!0),r=ze(o=>o.detailsOpen);return c.useEffect(()=>{n(t?!r:!0)},[r,t]),e},td=t=>ce.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.0035 28.0008V17.7646C31.0035 16.6603 30.3968 15.6453 29.4242 15.1223L22.4206 11.3567C21.5335 10.8798 20.4663 10.8798 19.5793 11.3567L12.5757 15.1223C11.603 15.6453 10.9963 16.6603 10.9963 17.7646V28.0008C10.9963 29.6576 12.3395 31.0008 13.9963 31.0008H19.311C19.3291 31.0012 19.3473 31.0014 19.3654 31.0014H22.634C22.6522 31.0014 22.6703 31.0012 22.6884 31.0008H28.0035C29.6604 31.0008 31.0035 29.6576 31.0035 28.0008ZM25.0841 29.0008H28.0035C28.5558 29.0008 29.0035 28.5531 29.0035 28.0008V17.7646C29.0035 17.3965 28.8013 17.0582 28.4771 16.8838L21.4735 13.1183C21.1778 12.9593 20.8221 12.9593 20.5264 13.1183L13.5228 16.8838C13.1986 17.0582 12.9963 17.3965 12.9963 17.7646V28.0008C12.9963 28.5531 13.4441 29.0008 13.9963 29.0008H16.9153C16.8826 28.8394 16.8654 28.6724 16.8654 28.5014V20.8949C16.8654 19.5142 17.9847 18.3949 19.3654 18.3949H22.634C24.0147 18.3949 25.134 19.5142 25.134 20.8949V28.5014C25.134 28.6724 25.1168 28.8394 25.0841 29.0008ZM22.6583 29.0008C22.9232 28.9881 23.134 28.7694 23.134 28.5014V20.8949C23.134 20.6188 22.9102 20.3949 22.634 20.3949H19.3654C19.0893 20.3949 18.8654 20.6188 18.8654 20.8949V28.5014C18.8654 28.7694 19.0763 28.9881 19.3411 29.0008H22.6583Z",fill:"currentcolor"}),ce.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),vE=t=>ce.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("g",{clipPath:"url(#clip0_422_11470)"},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0712 3.07116C16.583 2.58301 15.7916 2.58301 15.3034 3.07116L10 8.37456L4.69661 3.07116C4.20845 2.583 3.417 2.583 2.92884 3.07116C2.44069 3.55931 2.44069 4.35077 2.92884 4.83893L8.23224 10.1423L2.92903 15.4455C2.44087 15.9337 2.44087 16.7251 2.92903 17.2133C3.41718 17.7015 4.20864 17.7015 4.69679 17.2133L10 11.9101L15.3032 17.2133C15.7914 17.7015 16.5828 17.7015 17.071 17.2133C17.5591 16.7251 17.5591 15.9337 17.071 15.4455L11.7678 10.1423L17.0712 4.83893C17.5593 4.35078 17.5593 3.55932 17.0712 3.07116Z",fill:"currentcolor"})),ce.createElement("defs",null,ce.createElement("clipPath",{id:"clip0_422_11470"},ce.createElement("rect",{width:20.0004,height:20,fill:"white"})))),mE={root:"CloseButton-module__root__233rOd"},Si=({className:t,...e})=>L.jsx("div",{...e,className:Ce(mE.root,t),children:L.jsx(vE,{})}),fn={root:"CourierBalloon-module__root__4MUq03",details:"CourierBalloon-module__details__Ji6B9l",header:"CourierBalloon-module__header__SAzGF6",title:"CourierBalloon-module__title__FdGkJ2",description:"CourierBalloon-module__description__Su359i",actions:"CourierBalloon-module__actions__zJkpDW",errorVariant:"CourierBalloon-module__errorVariant__TjUPgn",logo:"CourierBalloon-module__logo__DMba5H"},ba=({SSR:t,variant:e,address:n,className:r,hasCloseButton:o,onDetails:i,onClose:s})=>{const a=e==="error",u=e==="default",l=t?"{ courier_balloon.title }":L.jsx(gn,{keyName:"title",ns:"courier_balloon"}),f=t?"{ courier_balloon.error_title }":L.jsx(gn,{keyName:"error_title",ns:"courier_balloon"}),d=t?"{ courier_balloon.error_description }":L.jsx(gn,{keyName:"error_description",ns:"courier_balloon"});return L.jsxs("div",{className:Ce(fn.root,r,fn[`${e}Variant`]),children:[L.jsxs("div",{className:fn.header,children:[L.jsx(td,{className:fn.logo}),L.jsx("span",{className:fn.title,children:a?f:l}),o&&L.jsx(Si,{onClick:s})]}),L.jsx("div",{className:fn.description,children:a?d:n||"{{ properties.address }}"}),u&&L.jsx("div",{className:fn.actions,children:L.jsx(wt,{id:vo,as:"button",variant:"primary",className:fn.details,onClick:i,children:t?"{ details }":L.jsx(gn,{keyName:"details",ns:"common"})})})]})},nd={root:"Chip-module__root__A1duWr",active:"Chip-module__active__PmXa7K"},rd=({active:t,children:e,className:n,...r})=>L.jsx("div",{...r,className:Ce(nd.root,n,{[nd.active]:t}),children:e}),yE={root:"TextArea-module__root__l-RDfr"},od=c.forwardRef(({className:t,inputRef:e,onChange:n,onBlur:r,...o},i)=>{const s=c.useRef(null);c.useImperativeHandle(i,()=>({focus:()=>{var u;(u=s.current)==null||u.focus()},blur:()=>{var u;(u=s.current)==null||u.blur()},setValue:u=>{if(n){n({target:{value:u}});return}r&&r({target:{value:u}}),s.current&&(s.current.value=u)}}),[r,n]);const a=Cd(e,s);return L.jsx("textarea",{...o,ref:a,className:Ce(yE.root,t),onBlur:r,onChange:n})}),bE=({set:t})=>(e,n)=>{let r={...e};switch(n.type){case"SET_COMMENT":r={...e,comment:n.payload};break;case"SET_DELIVERY_TIME":r={...e,delivery_time:n.payload};break;case"SET_APARTMENT_NUMBER":r={...e,apartment_number:n.payload};break}return t==null||t(r),r},id=t=>{const{delivery_time:e,apartment_number:n}=t;return!!e&&!!n},ft={title:"CourierDetailsView-module__title__erksdV",logo:"CourierDetailsView-module__logo__qYbLKL",header:"CourierDetailsView-module__header__JofwHC",content:"CourierDetailsView-module__content__8xEbUb",section:"CourierDetailsView-module__section__NQlWki",chips:"CourierDetailsView-module__chips__T1ep8H",actions:"CourierDetailsView-module__actions__IgFrOE",submit:"CourierDetailsView-module__submit__Z-6fPa",actionsHidden:"CourierDetailsView-module__actionsHidden__VfVd-Y",commentSection:"CourierDetailsView-module__commentSection__vN110S",comment:"CourierDetailsView-module__comment__rOoPVP"},EE=({location:t,hideActions:e,classes:n,onClose:r,onChange:o,onSubmit:i})=>{const{inputs:s}=Bt(),{t:a}=xt(["details_modal","courier_balloon","common"]),u=c.useMemo(()=>bE({set:o}),[o]),[l,f]=c.useReducer(u,{...t,comment:"",delivery_time:"",apartment_number:""}),d=()=>{i==null||i(l)},h=m=>()=>{f({payload:m,type:"SET_DELIVERY_TIME"})},g=m=>{f({payload:m.target.value,type:"SET_APARTMENT_NUMBER"})},v=m=>{f({payload:m.target.value,type:"SET_COMMENT"})},p=id(l),C=Mi(s==null?void 0:s.apartment),w=Mi(s==null?void 0:s.comment);return L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:Ce(ft.header,n==null?void 0:n.header),children:[L.jsx(Si,{onClick:r}),L.jsxs("div",{className:ft.title,children:[L.jsx(td,{className:ft.logo}),L.jsx("span",{children:a("title",{ns:"courier_balloon"})})]})]}),L.jsxs("div",{className:Ce(ft.content,n==null?void 0:n.content),children:[L.jsxs("section",{className:ft.section,children:[L.jsxs("label",{children:[a("address"),":"]}),L.jsx("p",{children:t.address})]}),L.jsxs("section",{className:ft.section,children:[L.jsxs("label",{children:[a("delivery_time"),":"]}),L.jsxs("div",{className:ft.chips,children:[L.jsx(rd,{active:l.delivery_time==="8:00-13:00",onClick:h("8:00-13:00"),children:"8:00 - 13:00"}),L.jsx(rd,{active:l.delivery_time==="14:00-22:00",onClick:h("14:00-22:00"),children:"14:00 - 22:00"})]})]}),L.jsxs("section",{className:ft.section,children:[L.jsxs("label",{children:[a("apartment_number"),":"]}),L.jsx(od,{...C,rows:1,onChange:g})]}),L.jsxs("section",{className:Ce(ft.section,ft.commentSection),children:[L.jsxs("label",{children:[a("comment"),":"]}),L.jsx(od,{...w,className:ft.comment,onChange:v})]})]}),L.jsx("div",{className:Ce(ft.actions,{[ft.actionsHidden]:e}),children:L.jsx(wt,{disabled:!p,variant:"primary",className:ft.submit,onClick:d,children:a("choose",{ns:"common"})})})]})},sd=c.memo(EE),wE={header:Je.courierDetailsViewHeader,content:Je.courierDetailsViewContent},CE=({point:t,setOpenDetails:e,setCourierPoint:n,onPointClick:r})=>{const o=ed({isSelectedPoint:!0}),[i,s]=c.useState({...t,comment:"",delivery_time:"",apartment_number:""});c.useEffect(()=>{s({...t,comment:"",delivery_time:"",apartment_number:""})},[t]);const[a,u]=c.useState(null),l=to("screenSm"),f={lat:i.coords[0],lng:i.coords[1]},d=()=>{e(!0)},h=()=>{n(null)},g={url:_f,scaledSize:new google.maps.Size(...Yt)},v=()=>{r(i),e(!1),n(null)},p=L.jsx(ba,{...i,hasCloseButton:l,variant:i.address?"default":"error",className:Je.balloon,onDetails:d,onClose:h}),C=id(i),w=o&&!!(a!=null&&a.getVisible());return L.jsxs(of,{noClustererRedraw:!0,icon:g,position:f,options:Jf,onLoad:u,children:[l&&L.jsxs($f,{minSnapHeight:i.address?200:void 0,submitDisabled:!C,hideFooter:!i.address,open:w,onDismiss:h,onSubmitClick:v,children:[i.address&&L.jsx(sd,{classes:wE,hideActions:!0,location:t,onChange:s,onClose:h}),!i.address&&p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cvlyHJ2HGYNSe4+ofywOx39lp65KEt4jga/hNsNdIiy1xfRdKc6wtb37oQphfO5kJog9idhngILS5NPh5JYwb1VoCPgR+MRIDKh7r7JLpRJrioSFToK1lDMA62cQbYmVFh2CJHIR1uO8S4ZyG431bh2QHRHb37mBmA/geS+R77JqpALFrmf4LMpI2NnZ4iTaQyuKU3XewPdZ3zY/aBWEHkOCGTg3rK+Luzg+UHnq6RfseVNB6cFDxPrJmS40Fj7byyI9yrVR/y/yGcO0dxYSOvhMHpfuFa2TOqCsBB3z2fzf4qDBADBBdkgPGYKbY0EcuXvyQbJsZLPRPqr4m+saMeoOk3iPkX1gGwSzW75grsp9hL3+T2IOccBAXgLGsWG5v7ykfzEO215mzgplHcB376uDJ4Jusrq7ajcBiy4ydxsgojGi7w+tnmBH1tXEfO7gI5p00v+aI2TesyQICt/dy3iHixi9TiEcECL32IyTRv01+yVNn1XWKxZtiy8GMzOIaz7+mtNN6Renfbzuavx5/xBkgFgONYX+0A6NMb1JiboOct4tmcD8YhCNQnQcH/QSzSmwKjNTG7/UJ64iDuIAHKEL1Fi0RpYLNjH3QMDAr7G8UP0D/iQeH035Y8AQCaPOgGUtNwJhYTC/zEK3juigrt+1hnvBzWGzSPibu14T44GOChxGaSAybLcuv8vqaQOYVEv2aWmciX4fBbouUjiShx+G4MkASTPZX8dwzYBBoD9i61wO/UWwRnAnjZbPED4BcF9d5/TFjfgXXmaE+aM96jQh1ic0za3pg3RIwzJDrtikR8wUw5fXvqosXtdyGebIhNFFjuCAYGX7RwD5Ho/UrAaI+mpK8KE4YYDQEmGWwOdAs9k/vtNOHafB4iWv2R6WHTLZu2g6wzg3QTup5QOTgd4IHD3FEzZNx4D8AZH5movEFnzAAAAAASUVORK5CYII=",ad=t=>ce.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ce.createElement("path",{d:"M7.63362 25C7.33927 25 7.067 24.9259 6.81681 24.7778C6.56662 24.6296 6.36793 24.4296 6.22076 24.1778C6.07359 23.9259 6 23.6519 6 23.3556V18.6444C6 18.3407 6.07359 18.0667 6.22076 17.8222C6.36793 17.5704 6.56662 17.3704 6.81681 17.2222C7.067 17.0741 7.33927 17 7.63362 17H12.3137C12.6081 17 12.8767 17.0741 13.1195 17.2222C13.3697 17.3704 13.5684 17.5704 13.7155 17.8222C13.8701 18.0667 13.9473 18.3407 13.9473 18.6444V23.3556C13.9473 23.6519 13.8701 23.9259 13.7155 24.1778C13.5684 24.4296 13.3697 24.6296 13.1195 24.7778C12.8767 24.9259 12.6081 25 12.3137 25H7.63362ZM7.71089 23.2667H12.2144V18.7333H7.71089V23.2667Z",fill:"black"}),ce.createElement("path",{d:"M15.1629 25V17H16.929L19.6222 20.2333L22.3045 17H24.0816V25H22.3597V19.6333L19.6222 22.9222L16.8738 19.6444V25H15.1629Z",fill:"black"}),ce.createElement("path",{d:"M25.4032 25V17H27.1693L31.6176 22.3333V17H33.3505V25H31.5845L27.1141 19.6444V25H25.4032Z",fill:"black"}),ce.createElement("path",{d:"M34.3112 25V17H36V25H34.3112Z",fill:"black"}),ce.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),SE=t=>ce.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{d:"M12.5 8.00003C12.5 8.28678 12.392 8.5735 12.1763 8.79212L5.38748 15.6718C4.95562 16.1094 4.25544 16.1094 3.82376 15.6718C3.39208 15.2343 3.39208 14.5249 3.82376 14.0872L9.83091 8.00003L3.82397 1.91279C3.39229 1.47515 3.39229 0.765811 3.82397 0.328387C4.25565 -0.109461 4.95583 -0.109461 5.38769 0.328387L12.1765 7.20793C12.3922 7.42666 12.5 7.71338 12.5 8.00003Z",fill:"currentcolor"})),Pn={root:"LocationBalloon-module__root__D5p9cL",submit:"LocationBalloon-module__submit__Ri5JaR",details:"LocationBalloon-module__details__6et6aX",header:"LocationBalloon-module__header__LCvDj0",title:"LocationBalloon-module__title__octhrc",description:"LocationBalloon-module__description__r7vFbw",actions:"LocationBalloon-module__actions__-jdejn"},ld=({SSR:t,name:e,location:n,onSubmit:r,className:o,onDetails:i,location_name:s})=>L.jsxs("div",{className:Ce(Pn.root,o),children:[L.jsxs("div",{className:Pn.header,children:[L.jsx(ad,{}),L.jsx("span",{className:Pn.title,children:e||"{{ properties.point.name }}"})]}),L.jsxs("div",{className:Pn.description,children:[(n==null?void 0:n.full_address)||"{{ properties.point.location.full_address }}",","," ",s||"{{ properties.point.location_name }}"]}),L.jsxs("div",{className:Pn.actions,children:[L.jsx(wt,{id:$i,variant:"primary",className:Pn.submit,onClick:r,children:t?"{ choose }":L.jsx(gn,{keyName:"choose",ns:"common"})}),L.jsxs(wt,{id:vo,as:"link",variant:"primary",className:Pn.details,onClick:i,children:[t?"{ details }":L.jsx(gn,{keyName:"details",ns:"common"}),L.jsx(SE,{})]})]})]}),ot={title:"LocationView-module__title__QP69kD",logo:"LocationView-module__logo__nlPQaG",header:"LocationView-module__header__9DDuVU",content:"LocationView-module__content__Se2TSy",section:"LocationView-module__section__9m1x1v",chips:"LocationView-module__chips__6j-ZAh",services:"LocationView-module__services__rwbp2x",images:"LocationView-module__images__zfnQMA",image:"LocationView-module__image__JKvt9J",actions:"LocationView-module__actions__AGih3C",actionsHidden:"LocationView-module__actionsHidden__DBV1vj",submit:"LocationView-module__submit__6mD2w-",scheduleItem:"LocationView-module__scheduleItem__snTLMb"},LE=({location:t,hideActions:e,classes:n,onClose:r,onSubmit:o})=>{const{t:i}=xt(["details_modal","common"]);return L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:Ce(ot.header,n==null?void 0:n.header),children:[L.jsx(Si,{onClick:r}),L.jsxs("div",{className:ot.title,children:[L.jsx(ad,{className:ot.logo}),L.jsx("span",{children:t.name})]})]}),L.jsxs("div",{className:Ce(ot.content,n==null?void 0:n.content),children:[L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("address"),":"]}),L.jsx("p",{children:t.location.full_address})]}),!!t.schedule.length&&L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("schedule"),":"]}),t.schedule.map((s,a)=>L.jsx("p",{className:ot.scheduleItem,children:s},a))]}),(t.pay_by_card||t.pay_by_card)&&L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("payment_method"),":"]}),L.jsxs("div",{className:ot.chips,children:[t.pay_by_cash&&i("pay_by_cash"),t.pay_by_card&&t.pay_by_cash&&", ",t.pay_by_card&&i("pay_by_card")]})]}),L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("services"),":"]}),L.jsxs("div",{className:ot.services,children:[t.is_pickup&&L.jsx("span",{children:i("is_pickup")}),t.is_delivery&&L.jsx("span",{children:i("is_delivery")}),t.is_dressing_room&&L.jsx("span",{children:i("is_dressing_room")}),t.is_check_order&&L.jsx("span",{children:i("is_check_order")})]})]}),L.jsxs("section",{className:ot.section,children:[L.jsxs("label",{children:[i("location"),":"]}),L.jsx("p",{children:t.location_name})]}),!!t.images.length&&L.jsx("section",{className:ot.images,children:t.images.map(s=>L.jsx("img",{src:s,alt:t.name,className:ot.image},s))})]}),L.jsx("div",{className:Ce(ot.actions,{[ot.actionsHidden]:e}),children:L.jsx(wt,{variant:"primary",className:ot.submit,onClick:o,children:i("choose",{ns:"common"})})})]})},ud=c.memo(LE),AE={header:Je.locationViewHeader,content:Je.locationViewContent},xE=({point:t,clusterer:e,onPointClick:n,selectedPoint:r,setOpenDetails:o,onPointSelected:i})=>{const s=to("screenSm"),[a,u]=c.useState(null),l=()=>{o(!1),i(t)},f=()=>{i(null)},d=()=>{o(!0),i(t)},h=()=>{n(t),o(!1),i(null)},g=(r==null?void 0:r.uid)===t.uid,v=g?Fn:Yt,p=ed({isSelectedPoint:g}),C={scaledSize:new google.maps.Size(...v),url:t.type===30?wa:Ea},w={lat:t.location.latitude,lng:t.location.longitude},m=g&&p&&!!(a!=null&&a.getVisible());return L.jsxs(of,{noClustererRedraw:!0,icon:C,position:w,clusterer:e,options:Jf,onLoad:u,onClick:l,children:[s&&L.jsx($f,{minSnapHeight:200,open:m,onDismiss:f,onSubmitClick:h,children:L.jsx(ud,{classes:AE,hideActions:!0,location:t,onClose:f})}),m&&!s&&L.jsx(wf,{onCloseClick:f,children:L.jsx(ld,{...t,className:Je.balloon,onSubmit:h,onDetails:d})})]},t.uid)},OE=({points:t,selectedPoint:e,onOpenDetails:n,onPointClick:r,onPointSelected:o})=>L.jsx(Ab,{clusterClass:Je.cluster,onClusteringEnd:()=>{setTimeout(()=>{const i=document.getElementsByClassName(Je.cluster);for(const s of i)s.addEventListener("touchstart",Ic,{passive:!0})},100)},onUnmount:()=>{const i=document.getElementsByClassName(Je.cluster);for(const s of i)s.removeEventListener("touchstart",Ic)},children:i=>L.jsx(c.Fragment,{children:t.map(s=>L.jsx(xE,{point:s,clusterer:i,selectedPoint:e,setOpenDetails:n,onPointClick:r,onPointSelected:o},s.uid))})}),PE=c.memo(OE),ME=({mounted:t,onOpenDetails:e,onPointClick:n,onPointSelected:r})=>{const{locale:o}=Bt(),i=zt(l=>l.points),s=yt(l=>l.location),a=mn(l=>l.place);if(!t)return null;const u=JSON.stringify([i.length,o,a==null?void 0:a.place_id]);return L.jsx(PE,{points:i,selectedPoint:s,onOpenDetails:e,onPointClick:n,onPointSelected:r},u)},kE=c.memo(ME),IE=t=>ce.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("g",{id:"icon"},ce.createElement("rect",{id:"Rectangle 1602",x:9,width:2,height:20,rx:1,fill:"white"}),ce.createElement("rect",{id:"Rectangle 1603",x:20,y:9,width:2,height:20,rx:1,transform:"rotate(90 20 9)",fill:"white"}),ce.createElement("circle",{id:"Ellipse 789",cx:10,cy:10,r:8,fill:"white"}),ce.createElement("circle",{id:"Ellipse 790",cx:10,cy:10,r:6,fill:"currentcolor"}),ce.createElement("circle",{id:"Ellipse 791",cx:10,cy:10,r:4,fill:"white"}))),DE=t=>{const e=document.createElement("div"),n=document.createElement("div");e.classList.add(Je.mapControl),n.classList.add(Je.mapControl),e.innerHTML="+",n.innerHTML="—",t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(n),t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e),e.addEventListener("click",()=>{const r=t.getZoom()||0;return t.setZoom(r+1)}),n.addEventListener("click",()=>{const r=t.getZoom()||0;return t.setZoom(r-1)})},TE=t=>{const e=document.createElement("div");e.classList.add(Je.mapControl),e.classList.add(Je.geolocationControl),e.innerHTML=lo.renderToString(L.jsx(IE,{})),t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e),e.addEventListener("click",()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(n=>{const{latitude:r,longitude:o}=n.coords;t.panTo({lat:r,lng:o}),t.setZoom(es)})})},BE=({className:t})=>{const e=ze(m=>m.loading),n=ze(m=>m.setDetailsOpen),r=Ln(),o=zt(m=>m.loading),i=zt(m=>m.loadNext),s=mt(m=>m.courierPoint),a=mt(m=>m.setCourierPoint),u=yt(m=>m.setSelectedPoint),{onPointClick:l}=Bt(),[f,d]=pE(),[h,g]=c.useState(null);gE({map:h}),hE({map:h,onAttach:()=>d(!1)});const v=c.useCallback(m=>{g(m),DE(m),TE(m)},[]),p=c.useCallback(()=>{g(null)},[]),C=c.useCallback(()=>{if(!h)return;const m=h==null?void 0:h.getBounds();m&&i([[m.getSouthWest().lat(),m.getNorthEast().lat()],[m.getSouthWest().lng(),m.getNorthEast().lng()]],r)},[r,i,h]),w=c.useCallback((...m)=>{a(null),u(...m)},[a,u]);return L.jsxs("div",{className:Ce(Je.mapContainer,t),children:[L.jsxs(dE,{onIdle:C,onLoad:v,onUnmount:p,children:[s&&L.jsx(CE,{point:s,onPointClick:l,setOpenDetails:n,setCourierPoint:a}),L.jsx(kE,{mounted:f,onPointClick:l,onOpenDetails:n,onPointSelected:w})]}),(o||e||!f)&&L.jsx(sa,{className:Je.overlay,children:L.jsx(aa,{})})]})},NE=c.memo(BE);function Mn(){return Mn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mn.apply(this,arguments)}const cd=(t,e)=>{const n={};for(const r in t)e.indexOf(r)===-1&&(n[r]=t[r]);return n},fd=c.createContext(null),Li=c.createContext(null),dd=t=>e=>c.createElement(Li.Consumer,null,n=>c.createElement(t,Mn({parent:n},e))),jE=(t=[])=>{const[e,n]=c.useState(!1),r=c.useRef(t),o=(()=>{const s=c.useContext(fd);if(s===null)throw new Error("Couldn't find Yandex.Maps API in the context. Make sure that hook useYMaps is inside <YMaps /> provider");return s})(),i=o.getApi();return c.useEffect(()=>{o.load().then(()=>Promise.all(r.current.map(o.loadModule))).then(()=>n(!0))},[]),e&&i?i:null},UE=()=>{},HE=["onLoad","onError","modules","apiLoader"];function Ca(t,e=!1,n=[]){return r=>{const{width:o,height:i,modules:s=[],onLoad:a=UE}=r,u=jE(n.concat(s)),l=!e||!!u,f=cd(r,HE);return c.useEffect(()=>u?a(u):void 0,[u]),l?c.createElement(t,Mn({ymaps:u},f)):c.createElement("div",{style:{width:o,height:i}})}}const zE=typeof window<"u",hd={lang:"ru_RU",load:"",ns:"",mode:"release"},FE=t=>{const{version:e="2.1",enterprise:n=!1,query:r={lang:"ru_RU",load:"",ns:""},preload:o=!1,children:i}=t,s=c.useRef((a=>{const{query:u=hd}=a,l=Date.now().toString(32),f=u.ns||"",d="__yandex-maps-api-onload__$$"+l,h="__yandex-maps-api-onerror__$$"+l,g=zE?window:{},v={};let p;const C=()=>f?g[f]:p,w=()=>{delete g[d],delete g[h]};return{load:()=>{if(C())return Promise.resolve(p);if(v[f])return v[f];const m={onload:d,onerror:h,...hd,...u},b=Object.keys(m).map(S=>`${S}=${m[S]}`).join("&"),O=[`https://${a.enterprise?"enterprise.":""}api-maps.yandex.ru`,a.version,"?"+b].join("/");return v[f]=new Promise((S,y)=>{g[d]=E=>{w(),E.ready(()=>{p=E,S(E)})},g[h]=E=>{w(),y(E)},(E=>new Promise((A,M)=>{const P=document.createElement("script");P.type="text/javascript",P.onload=A,P.onerror=M,P.src=E,P.async=!0,document.head.appendChild(P)}))(O).catch(g[h])}),v[f]},getApi:C,loadModule:m=>new Promise((b,O)=>{p.modules.require(m).done(S=>{S.forEach(y=>{((E,A,M,P=!1)=>{const x=typeof A=="string"?A.split("."):A.slice();let k,N=E;for(;x.length>1;)k=x.shift(),N[k]||(N[k]={}),N=N[k];const z=x[0];N[z]=P===!0&&N[z]||M})(p,m,y,!0)}),b(p)},O)})}})({version:e,enterprise:n,query:r,preload:o}));return c.useEffect(()=>{o&&s.current.load()},[s.current]),c.createElement(fd.Provider,{value:s.current},i)},pd=/^on(?=[A-Z])/;function Ve(t){return Object.keys(t).reduce((e,n)=>{if(pd.test(n)){const r=n.replace(pd,"").toLowerCase();e._events[r]=t[n]}else e[n]=t[n];return e},{_events:{}})}function kn(t,e,n){typeof n=="function"&&t.events.add(e,n)}function In(t,e,n){typeof n=="function"&&t.events.remove(e,n)}function ar(t,e,n){Object.keys(Object.assign({},e,n)).forEach(r=>{e[r]!==n[r]&&(In(t,r,e[r]),kn(t,r,n[r]))})}const gd=t=>"default"+t.charAt(0).toUpperCase()+t.slice(1);function $e(t,e){return t[e]!==void 0||t[gd(e)]===void 0}function $(t,e,n){return($e(t,e)?t[e]:t[gd(e)])||n}function et(t,e,n=null){if(t!==e){if(t&&("current"in t?t.current=null:typeof t=="function"&&t(null)),!e)return;"current"in e?e.current=n:typeof e=="function"&&e(n)}}function vd(t){const{width:e,height:n,style:r,className:o}=t;return r!==void 0||o!==void 0?Object.assign({},r&&{style:r},o&&{className:o}):{style:{width:e,height:n}}}class VE extends c.Component{constructor(e){super(e),this.state={error:null,errorInfo:null}}componentDidCatch(e,n){const{onError:r=()=>{}}=this.props;r(e),this.setState({error:e,errorInfo:n})}render(){return this.state.error?null:this.props.children}}const Sa=t=>({onError:e,...n})=>c.createElement(VE,{onError:e},c.createElement(t,n));class _r extends c.Component{constructor(){super(),this.instance=null,this.state={instance:null},this._parentElement=null,this._getRef=e=>{this._parentElement=e}}componentDidMount(){this.instance=_r.mountObject(this._parentElement,this.props.ymaps.Map,this.props),this.setState({instance:this.instance})}componentDidUpdate(e){this.instance!==null&&_r.updateObject(this.instance,e,this.props)}componentWillUnmount(){_r.unmountObject(this.instance,this.props)}render(){const e=vd(this.props),n=Ve(this.props),r=cd(n,["_events","state","defaultState","options","defaultOptions","instanceRef","ymaps","children","width","height","style","className"]);return c.createElement(Li.Provider,{value:this.state.instance},c.createElement("div",Mn({ref:this._getRef},e,r),this.props.children))}static mountObject(e,n,r){const{instanceRef:o,_events:i}=Ve(r),s=new n(e,$(r,"state"),$(r,"options"));return Object.keys(i).forEach(a=>kn(s,a,i[a])),et(null,o,s),s}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"state")){const u=$(n,"state",{}),l=$(r,"state",{});u.type!==l.type&&e.setType(l.type),u.behaviors!==l.behaviors&&(u.behaviors&&e.behaviors.disable(u.behaviors),l.behaviors&&e.behaviors.enable(l.behaviors)),l.zoom&&u.zoom!==l.zoom&&e.setZoom(l.zoom),l.center&&u.center!==l.center&&e.setCenter(l.center),l.bounds&&u.bounds!==l.bounds&&e.setBounds(l.bounds)}if($e(r,"options")){const u=$(n,"options"),l=$(r,"options",{});u!==l&&e.options.set(l)}$(n,"width")===$(r,"width")&&$(n,"height")===$(r,"height")||e.container.fitToViewport(),ar(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,_events:o}=Ve(n);e!==null&&(Object.keys(o).forEach(i=>In(e,i,o[i])),e.destroy(),et(r))}}const md=Sa(Ca(_r,!0,["Map"]));md.defaultProps={width:320,height:240};class Ai extends c.Component{constructor(){super(),this.state={instance:null},this._parentElement=null,this._getRef=e=>{this._parentElement=e}}componentDidMount(){this._mounted=!0,this.props.ymaps.panorama.isSupported()&&Ai.mountObject(this._parentElement,this.props.ymaps.panorama,this.props).then(e=>this._mounted&&this.setState({instance:e}))}componentDidUpdate(e){this.state.instance!==null&&Ai.updateObject(this.state.instance,e,this.props)}componentWillUnmount(){this._mounted=!1,Ai.unmountObject(this.state.instance,this.props)}render(){const e=vd(this.props);return c.createElement("div",Mn({ref:this._getRef},e))}static mountObject(e,n,r){const{instanceRef:o,_events:i}=Ve(r),s=$(r,"point"),a=$(r,"locateOptions"),u=$(r,"options");return new Promise((l,f)=>{n.locate(s,a).done(d=>{if(d.length>0){const h=new n.Player(e,d[0],u);et(null,o,h),Object.keys(i).forEach(g=>kn(h,g,i[g])),l(h)}},f)})}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}if($e(r,"point")){const u=$(r,"point"),l=$(n,"point"),f=$(r,"locateOptions");u!==l&&e.moveTo(u,f)}ar(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,_events:o}=Ve(n);e!==null&&(Object.keys(o).forEach(i=>In(e,i,o[i])),et(r))}}class xi extends c.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){const e=xi.mountControl(this.props.ymaps.control[this.props.name],this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){this.instance!==null&&xi.updateControl(this.instance,e,this.props)}componentWillUnmount(){xi.unmountControl(this.instance,this.props)}render(){return c.createElement(Li.Provider,{value:this.state.instance},this.props.children)}static mountControl(e,n){const{instanceRef:r,parent:o,lazy:i,_events:s}=Ve(n),a=new e({data:$(n,"data"),options:$(n,"options"),state:$(n,"state"),mapTypes:$(n,"mapTypes"),lazy:i});if(Object.keys(s).forEach(u=>kn(a,u,s[u])),o&&o.controls&&typeof o.controls.add=="function")o.controls.add(a);else{if(!o||!o.add||typeof o.add!="function")throw new Error(`No parent found to mount ${n.name}`);o.add(a)}return et(null,r,a),a}static updateControl(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}if($e(r,"data")){const u=$(n,"data"),l=$(r,"data");u!==l&&e.data.set(l)}if($e(r,"state")){const u=$(n,"state"),l=$(r,"state");u!==l&&e.state.set(l)}if($e(r,"mapTypes")){const u=$(n,"mapTypes"),l=$(r,"mapTypes");u!==l&&(e.removeAllMapTypes(),l.forEach(f=>e.addMapType(f)))}ar(e,s,o),et(a,i,e)}static unmountControl(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>In(e,s,i[s])),o.controls&&typeof o.controls.remove=="function"?o.controls.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}class Oi extends c.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){const e=Oi.mountObject(this.props.ymaps.Clusterer,this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){this.state.instance!==null&&Oi.updateObject(this.instance,e,this.props)}componentWillUnmount(){Oi.unmountObject(this.instance,this.props)}render(){return c.createElement(Li.Provider,{value:this.state.instance},this.props.children)}static mountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n),s=new e($(n,"options"));if(Object.keys(i).forEach(a=>kn(s,a,i[a])),o.geoObjects&&typeof o.geoObjects.add=="function")o.geoObjects.add(s);else{if(!o.add||typeof o.add!="function")throw new Error("No parent found to mount Clusterer");o.add(s)}return et(null,r,s),s}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}ar(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>In(e,s,i[s])),o.geoObjects&&typeof o.geoObjects.remove=="function"?o.geoObjects.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}class Xr extends c.Component{constructor(){super(),this.state={instance:null}}componentDidMount(){const e=Xr.mountObject(this.props.ymaps.ObjectManager,this.props);this.instance=e,this.setState({instance:e})}componentDidUpdate(e){this.instance!==null&&Xr.updateObject(this.instance,e,this.props)}componentWillUnmount(){Xr.unmountObject(this.instance,this.props)}render(){return null}static mountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n),s=$(n,"options",{}),a=$(n,"features",{}),u=$(n,"filter",null),l=$(n,"objects",{}),f=$(n,"clusters",{}),d=new e(s);if(d.add(a||[]),d.setFilter(u),d.objects.options.set(l),d.clusters.options.set(f),Object.keys(i).forEach(h=>kn(d,h,i[h])),o.geoObjects&&typeof o.geoObjects.add=="function")o.geoObjects.add(d);else{if(!o.add||typeof o.add!="function")throw new Error("No parent found to mount ObjectManager");o.add(d)}return et(null,r,d),d}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}if($e(r,"objects")){const u=$(n,"objects"),l=$(r,"objects");u!==l&&e.objects.options.set(l)}if($e(r,"clusters")){const u=$(n,"clusters"),l=$(r,"clusters");u!==l&&e.clusters.options.set(l)}if($e(r,"filter")){const u=$(n,"filter"),l=$(r,"filter");u!==l&&e.setFilter(l)}if($e(r,"features")){const u=$(n,"features"),l=$(r,"features");u!==l&&(e.remove(u),e.add(l))}ar(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>In(e,s,i[s])),o.geoObjects&&typeof o.geoObjects.remove=="function"?o.geoObjects.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}var GE=Sa(dd(Ca(Xr,!0,["ObjectManager"])));class $r extends c.Component{constructor(){super(),this.state={instance:null},this.instance=null}componentDidMount(){const{name:e,ymaps:n,dangerZone:r}=this.props,o=$r.mountObject(r&&typeof r.modifyConstructor=="function"?r.modifyConstructor(n[e]):n[e],this.props);this.instance=o,this.setState({instance:o})}componentDidUpdate(e){this.instance!==null&&$r.updateObject(this.instance,e,this.props)}componentWillUnmount(){$r.unmountObject(this.instance,this.props)}render(){return null}static mountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n),s=new e($(n,"geometry"),$(n,"properties"),$(n,"options"));if(Object.keys(i).forEach(a=>kn(s,a,i[a])),o&&o.geoObjects&&typeof o.geoObjects.add=="function")o.geoObjects.add(s);else{if(!o||!o.add||typeof o.add!="function")throw new Error(`No parent found to mount ${n.name}`);o.add(s)}return et(null,r,s),s}static updateObject(e,n,r){const{_events:o,instanceRef:i}=Ve(r),{_events:s,instanceRef:a}=Ve(n);if($e(r,"geometry")){const u=$(n,"geometry",{}),l=$(r,"geometry",{});Array.isArray(l)&&l!==u?Array.isArray(l[0])&&typeof l[1]=="number"?(e.geometry.setCoordinates(l[0]),e.geometry.setRadius(l[1])):e.geometry.setCoordinates(l):typeof l=="object"&&(l.coordinates!==u.coordinates&&e.geometry.setCoordinates(l.coordinates),l.radius!==u.radius&&e.geometry.setRadius(l.radius))}if($e(r,"properties")){const u=$(n,"properties"),l=$(r,"properties");u!==l&&e.properties.set(l)}if($e(r,"options")){const u=$(n,"options"),l=$(r,"options");u!==l&&e.options.set(l)}ar(e,s,o),et(a,i,e)}static unmountObject(e,n){const{instanceRef:r,parent:o,_events:i}=Ve(n);e!==null&&(Object.keys(i).forEach(s=>In(e,s,i[s])),o.geoObjects&&typeof o.geoObjects.remove=="function"?o.geoObjects.remove(e):o.remove&&typeof o.remove=="function"&&o.remove(e),et(r))}}var yd=Sa(dd(Ca(t=>c.createElement($r,Mn({},t,{name:"Placemark"})),!0,["Placemark"])));const bd=(t,e,n)=>t==null?void 0:t.map(r=>{var o;return{id:r.uid,type:"Feature",properties:{point:r},geometry:{type:"Point",coordinates:[r.location.latitude,r.location.longitude]},options:{hideIconOnBalloonOpen:!1,preset:Pi(r.type),balloonOffset:[0,-Fn[1]],balloonContentLayout:(o=e==null?void 0:e.templateLayoutFactory)==null?void 0:o.createClass(n)}}}),Pi=(t,e)=>t===30?`custom#pin-postmat${e?`__${e}`:""}`:`custom#pin-pvz${e?`__${e}`:""}`,eo=t=>[-(t[0]/2),-t[1]],QE={en:"en_US",ru:"ru_RU"},YE={load:"suggest",apikey:"5298a725-4baa-457a-a2a7-c3abac81db20"},WE=["templateLayoutFactory","option.presetStorage","geocode"],RE=["objectManager.addon.objectsBalloon"],Ed=["geoObject.addon.balloon"],KE={yandexMapDisablePoiInteractivity:!1},qE={clusterize:!0},wd={iconImageSize:Yt,iconLayout:"default#image",hideIconOnBalloonOpen:!1,iconImageHref:_f,balloonOffset:[0,-Yt[1]],iconImageOffset:eo(Yt)},La={root:"MapYandex-module__root__r3kDJ8",overlay:"MapYandex-module__overlay__f7UGYS",details:"MapYandex-module__details__E3bDvL"},ZE=({className:t})=>{const{t:e}=xt(["courier_balloon","common"]),n=c.useRef(),r=c.useRef(null),{map:o,locale:i,disableCourierDelivery:s,hideMapUI:a,onPointClick:u}=Bt(),[l,f]=c.useState(null),[d,h]=c.useState([]),[g,v]=c.useState(qE),p=mn(B=>B.place),C=ze(B=>B.zoom),w=ze(B=>B.setLoaded),m=ze(B=>B.setDetailsOpen),b=Ln(),O=zt(B=>B.points),S=zt(B=>B.loading),y=zt(B=>B.loadNext),E=mt(B=>B.courierPoint),A=mt(B=>B.setCourierPoint),M=yt(B=>B.location),P=yt(B=>B.setSelectedPoint),x=yt(B=>B.setSelectPointHook),k=c.useRef([]),N=c.useMemo(()=>lo.renderToString(L.jsx(ld,{SSR:!0})).replace("{ choose }",e("choose")).replace("{ details }",e("details")),[e,i]),z=c.useMemo(()=>lo.renderToString(L.jsx(ba,{SSR:!0,variant:"default"})).replace("{ details }",e("details",{ns:"common"})).replace("{ courier_balloon.title }",e("title")),[e,i]),Q=c.useMemo(()=>lo.renderToString(L.jsx(ba,{SSR:!0,variant:"error"})).replace("{ courier_balloon.error_title }",e("error_title")).replace("{ courier_balloon.error_description }",e("error_description")),[e,i]),K=c.useMemo(()=>({zoom:es,center:(o==null?void 0:o.center)??$t,behaviors:["default","scrollZoom"]}),[o==null?void 0:o.center]);c.useEffect(()=>{var B,q;(q=n.current)==null||q.events.fire("boundschange",{newBounds:(B=n.current)==null?void 0:B.getBounds()})},[l]),c.useEffect(()=>{if(!l||!r.current)return;k.current.forEach(q=>{var _;q.id!==(M==null?void 0:M.uid)&&((_=r.current)==null||_.remove(q))});const B=bd(O,l,N);k.current=B,r.current.add(B)},[N,l,O,M==null?void 0:M.uid]),c.useEffect(()=>{var _,re,pe,oe,ue;if(!p)return;const B=(re=(_=p.geometry)==null?void 0:_.location)==null?void 0:re.lng(),q=(oe=(pe=p.geometry)==null?void 0:pe.location)==null?void 0:oe.lat();!q||!B||(ue=n.current)==null||ue.setCenter([q,B],C,{duration:300,timingFunction:"ease-in-out"})},[p]);const G=c.useCallback(B=>{const q=B.get("newBounds");y([[q[0][0],q[1][0]],[q[0][1],q[1][1]]],b)},[b,y]),R=c.useRef(M),T=c.useCallback(B=>{var q,_,re,pe;f(B),w(),(q=B==null?void 0:B.option)==null||q.presetStorage.add("custom#pin-postmat",{iconImageSize:Yt,iconLayout:"default#image",iconImageHref:wa,iconImageOffset:eo(Yt)}),(_=B==null?void 0:B.option)==null||_.presetStorage.add("custom#pin-postmat__active",{iconLayout:"default#image",iconImageHref:wa,iconImageSize:Fn,iconImageOffset:eo(Fn)}),(re=B==null?void 0:B.option)==null||re.presetStorage.add("custom#pin-pvz",{iconImageSize:Yt,iconLayout:"default#image",iconImageHref:Ea,iconImageOffset:eo(Yt)}),(pe=B==null?void 0:B.option)==null||pe.presetStorage.add("custom#pin-pvz__active",{iconLayout:"default#image",iconImageHref:Ea,iconImageSize:Fn,iconImageOffset:eo(Fn)}),v(oe=>{const ue=window.getComputedStyle(document.getElementById(kc)).getPropertyValue("--color-primary");return{...oe,clusterIconColor:ue}}),h(bd(O,B,N))},[N,O,w]),I=c.useCallback(B=>{var q,_;B&&((q=n.current)==null||q.setCenter([B.location.latitude,B.location.longitude],mo,{duration:300,timingFunction:"ease-in-out"}),(_=r.current)==null||_.objects.events.fire("click",{objectId:B.uid}))},[]);c.useEffect(()=>{x(I)},[I,x]);const D=c.useCallback(()=>{m(!0)},[m]),V=c.useCallback(()=>{var B;R.current&&(u(R.current),m(!1),P(null),A(null),(B=n.current)==null||B.balloon.close())},[u,A,m,P]),H=c.useCallback(()=>{var B,q;(B=document.getElementById(vo))==null||B.addEventListener("click",D),(q=document.getElementById($i))==null||q.addEventListener("click",V)},[V,D]),Y=c.useCallback(B=>{var _,re,pe,oe,ue,Le;const q=B.get("objectId");((_=R.current)==null?void 0:_.uid)===q&&((oe=r.current)==null||oe.objects.setObjectOptions((re=R.current)==null?void 0:re.uid,{preset:Pi((pe=R.current)==null?void 0:pe.type)}),A(null),P(null),A(null),R.current=null),(ue=document.getElementById(vo))==null||ue.removeEventListener("click",D),(Le=document.getElementById($i))==null||Le.removeEventListener("click",V)},[V,D,A,P]),ne=c.useCallback(B=>{var pe,oe,ue,Le;const q=B.get("objectId"),_=(oe=(pe=r.current)==null?void 0:pe.objects)==null?void 0:oe.getById(q);if(!_)return;const re=_.properties.point;m(!1),A(null),P(re),(ue=r.current)==null||ue.objects.each(Pe=>{var ae;const Me=Pe;(ae=r.current)==null||ae.objects.setObjectOptions(Me.id,{preset:Pi(Me.properties.point.type)})}),(Le=r.current)==null||Le.objects.setObjectOptions(q,{preset:Pi(re.type,"active")}),R.current=re},[A,m,P]),U=c.useCallback(async B=>{if(!l||s)return;const q=B.get("coords"),{geoObjects:_}=await l.geocode(q),re=_.get(0),pe=re.getAddressLine(),oe=re.properties.get("metaDataProperty.GeocoderMetaData.precision",{});if(P(null),oe!=="exact"){A({coords:q,address:null});return}A({coords:q,address:pe})},[s,l,A,P]),ee=c.useMemo(()=>{var B;return{...wd,balloonContentLayout:(B=l==null?void 0:l.templateLayoutFactory)==null?void 0:B.createClass(z)}},[z,l==null?void 0:l.templateLayoutFactory]),le=c.useMemo(()=>{var B;return{...wd,balloonContentLayout:(B=l==null?void 0:l.templateLayoutFactory)==null?void 0:B.createClass(Q)}},[Q,l==null?void 0:l.templateLayoutFactory]),Z=c.useCallback(B=>{var q,_,re,pe,oe;(q=B==null?void 0:B.balloon)==null||q.open(),(re=(_=B==null?void 0:B.balloon)==null?void 0:_.events)==null||re.add("open",H),(oe=(pe=B==null?void 0:B.balloon)==null?void 0:pe.events)==null||oe.add("close",Y)},[Y,H]);return L.jsxs("div",{className:Ce(La.root,t,{[La.hideUI]:a}),children:[L.jsx(FE,{query:{...YE,lang:QE[i??"ru"]},children:L.jsxs(md,{width:"100%",height:"100%",state:K,instanceRef:n,options:KE,modules:WE,onLoad:T,onClick:U,onBoundsChange:G,children:[(E==null?void 0:E.address)&&L.jsx(yd,{properties:E,modules:Ed,geometry:E.coords,options:ee,instanceRef:Z},JSON.stringify(E.coords)),E&&!E.address&&L.jsx(yd,{modules:Ed,geometry:E.coords,instanceRef:Z,options:le},JSON.stringify(E.coords)),L.jsx(GE,{features:d,instanceRef:r,modules:RE,options:g,onClick:ne,onBalloonOpen:H,onBalloonClose:Y})]})},i),S&&L.jsx(sa,{className:La.overlay,children:L.jsx(aa,{})})]})},JE=c.memo(ZE),_E=t=>({google:NE,yandex:JE})[t];function Cd(...t){return c.useCallback(e=>{for(let n=0;n<t.length;n++){const r=t[n];typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e)}},t)}const Mi=t=>{const e=c.useCallback(()=>{var n;(n=t==null?void 0:t.onClick)==null||n.call(t,t.name)},[t]);return{ref:t==null?void 0:t.ref,name:t==null?void 0:t.name,onClick:e}};function XE(t){const e=c.useCallback(o=>{const i=window.matchMedia(t);return i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[t]),n=()=>window.matchMedia(t).matches,r=()=>{throw Error("useMediaQuery is a client-only hook")};return c.useSyncExternalStore(e,n,r)}const $E={screenSm:"768px",screenMd:"1024px",screenLg:"1280px",screenXl:"1536px"};function to(t){return XE(`(max-width: calc(${$E[t]} - 1px))`)}const ew={root:"Hr-module__root__tBRShh"},Aa=({className:t,...e})=>L.jsx("hr",{className:Ce(ew.root,t),...e}),Rt={root:"Sidebar-module__root__hxXudu",closeButton:"Sidebar-module__closeButton__8k-Ph3",open:"Sidebar-module__open__qMGUBV",header:"Sidebar-module__header__Eu-wRc",typeFilter:"Sidebar-module__typeFilter__-lxVdY",separator:"Sidebar-module__separator__XDb6rs",withRightPadding:"Sidebar-module__withRightPadding__knvmuY",sheetContent:"Sidebar-module__sheetContent__4iWeTf",doneButton:"Sidebar-module__doneButton__chvXVP"},tw=()=>{const{t}=xt("common"),e=to("screenSm"),n=Vn(o=>o.toggle),r=()=>{n(!1)};return L.jsxs("div",{className:Rt.header,children:[e&&L.jsx("div",{className:Rt.doneButton,onClick:r,children:t("done")}),!e&&L.jsx(Si,{className:Rt.closeButton,onClick:r})]})},ki={root:"TypeFilter-module__root__FEaBBU",button:"TypeFilter-module__button__RYOzBQ"},nw=({value:t,onChange:e,className:n})=>{const{t:r}=xt("type_filter"),o=i=>()=>e==null?void 0:e(i);return L.jsxs("div",{className:Ce(ki.root,n),children:[L.jsx(wt,{className:ki.button,variant:t===sn.All?"primary":"secondary",onClick:o(sn.All),children:r("all")}),L.jsx(wt,{className:ki.button,variant:t===sn.PostOffice?"primary":"secondary",onClick:o(sn.PostOffice),children:r("post_office")}),L.jsx(wt,{className:ki.button,variant:t===sn.PickPoint?"primary":"secondary",onClick:o(sn.PickPoint),children:r("pick_point")})]})},rw=({className:t,onChange:e})=>{const n=Ln(r=>r.type);return L.jsx(nw,{value:n,className:t,onChange:e})},ow=c.memo(rw),Sd={root:"Radio-module__root__FMbfCi",label:"Radio-module__label__-LLJSR"},iw=({label:t,className:e,labelProps:n={},...r})=>{const{className:o,...i}=n;return L.jsxs("label",{className:Ce(Sd.label,o),...i,children:[L.jsx("input",{type:"radio",className:Ce(Sd.root,e),...r}),t]})},lr=t=>L.jsx(iw,{...t,type:"checkbox"}),xa={root:"RadioGroup-module__root__wNjmrq",body:"RadioGroup-module__body__n4Ho0-",legend:"RadioGroup-module__legend__ECksBN"},Ld=({label:t,value:e,onChange:n,children:r,className:o,...i})=>L.jsxs("div",{className:Ce(xa.root,o),...i,children:[t&&L.jsx("span",{className:xa.legend,children:t}),L.jsx("div",{className:xa.body,children:c.Children.map(r,s=>c.isValidElement(s)?c.cloneElement(s,{checked:!!(e!=null&&e[s.props.value]),onChange:a=>n==null?void 0:n({...e,[a.target.value]:a.target.checked})}):null)})]}),sw=({className:t,onChange:e})=>{const{t:n}=xt("send_filter"),r=Ln(o=>o.send);return L.jsxs(Ld,{className:t,value:r,label:n("title"),onChange:e,children:[L.jsx(lr,{name:"send",value:Ht.Return,label:n("sending_returns")}),L.jsx(lr,{name:"send",value:Ht.Shipping,label:n("shipping")}),L.jsx(lr,{name:"send",value:Ht.Payment,label:n("payment")})]})},aw=c.memo(sw),lw=({className:t,onChange:e})=>{const{t:n}=xt("receive_filter"),r=Ln(o=>o.receive);return L.jsxs(Ld,{value:r,label:n("title"),onChange:e,className:t,children:[L.jsx(lr,{name:"receive",value:Ut.DressingRoom,label:n("dressing_room")}),L.jsx(lr,{name:"receive",value:Ut.CheckOrder,label:n("check_order")}),L.jsx(lr,{name:"receive",value:Ut.PayByCash,label:n("pay_by_cash")})]})},uw=c.memo(lw),eL="",cw=({className:t})=>{const e=to("screenSm"),n=Vn(f=>f.open),r=Vn(f=>f.toggle),o=Ln(f=>f.setFilter),i=c.useCallback(f=>o({type:f}),[o]),s=c.useCallback(f=>o({send:f}),[o]),a=c.useCallback(f=>o({receive:f}),[o]),u=c.useCallback(()=>r(!1),[r]),l=L.jsxs(L.Fragment,{children:[L.jsx(tw,{}),L.jsxs("div",{className:Rt.withRightPadding,children:[L.jsx(ow,{className:Rt.typeFilter,onChange:i}),L.jsx(Aa,{className:Rt.separator}),L.jsx(uw,{onChange:a}),L.jsx(Aa,{}),L.jsx(aw,{onChange:s}),L.jsx(Aa,{})]})]});return e?L.jsx(_u,{initialFocusRef:!1,open:n,snapPoints:({maxHeight:f})=>f-Xf,onDismiss:u,children:L.jsx("div",{className:Rt.sheetContent,children:l})}):L.jsx("div",{className:Ce(Rt.root,t,{[Rt.open]:n}),children:l})},fw=t=>ce.createElement("svg",{width:60,height:40,viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{d:"M0 0H52C56.4183 0 60 3.58172 60 8V32C60 36.4183 56.4183 40 52 40H0V0Z",fill:"none"}),ce.createElement("path",{d:"M32.093 10H45.907C47.0581 10 48 10.9092 48 12.0205V14.2431C48 15.0513 47.4767 16.0615 46.9535 16.5667L42.4535 20.4056C41.8256 20.9108 41.407 21.921 41.407 22.7292V27.0733C41.407 27.6795 40.9884 28.4877 40.4651 28.7908L39 29.7C37.6395 30.5082 35.7558 29.599 35.7558 27.9826V22.6282C35.7558 21.921 35.3372 21.0118 34.9186 20.5067L30.9419 16.4656C30.4186 15.9605 30 15.0513 30 14.4451V12.1215C30 10.9092 30.9419 10 32.093 10Z",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),dw=t=>ce.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("g",{id:"Filtr_mob"},ce.createElement("rect",{id:"bg",width:28,height:28,rx:4,fill:"#333333"}),ce.createElement("path",{id:"Vector",d:"M9.16507 7H18.8348C19.6406 7 20.3 7.63646 20.3 8.41436V9.97015C20.3 10.5359 19.9337 11.2431 19.5674 11.5967L16.4174 14.2839C15.9779 14.6375 15.6848 15.3447 15.6848 15.9105V18.9513C15.6848 19.3756 15.3918 19.9414 15.0255 20.1535L14 20.79C13.0476 21.3557 11.729 20.7193 11.729 19.5878V15.8397C11.729 15.3447 11.436 14.7083 11.143 14.3547L8.35925 11.5259C7.99297 11.1724 7.69995 10.5359 7.69995 10.1116V8.48508C7.69995 7.63646 8.35925 7 9.16507 7Z",stroke:"white",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}))),Vt={root:"MapContainer-module__root__nze9pB",mapWrapper:"MapContainer-module__mapWrapper__twRo4C",wrapperBlurred:"MapContainer-module__wrapperBlurred__U-Ohae",locationSelector:"MapContainer-module__locationSelector__lEiSKq",filterButton:"MapContainer-module__filterButton__jIRGu9",sidebarOpen:"MapContainer-module__sidebarOpen__sUhaH-",filterIcon:"MapContainer-module__filterIcon__-2Qd2d",details:"MapContainer-module__details__sAP6T2"},hw=()=>{const t=Vn(o=>o.open),e=Vn(o=>o.toggle),n=to("screenSm"),r=()=>{e(!0)};return L.jsxs("div",{className:Ce(Vt.filterButton,{[Vt.sidebarOpen]:t}),onClick:n?void 0:r,children:[n&&L.jsx(fl,{}),n?L.jsx(dw,{className:Vt.filterIcon,onClick:r}):L.jsx(fw,{className:Vt.filterIcon})]})};var Ad={},Ii={},xd={exports:{}},pw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gw=pw,vw=gw;function Od(){}function Pd(){}Pd.resetWarningCache=Od;var mw=function(){function t(r,o,i,s,a,u){if(u!==vw){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Pd,resetWarningCache:Od};return n.PropTypes=n,n};xd.exports=mw();var yw=xd.exports,Di={},ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.loadGoogleMapScript=ur.isBrowser=void 0;var Md=typeof window<"u"&&window.document;ur.isBrowser=Md;var bw=function(e,n){if(!Md||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var r=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(r&&r.length)return new Promise(function(s){if(typeof google<"u")return s();r[0].addEventListener("load",function(){return s()})});var o=new URL(n);o.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var i=document.createElement("script");return i.src=o.toString(),new Promise(function(s){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=s,document.body.appendChild(i)})};ur.loadGoogleMapScript=bw;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var Ew="https://maps.googleapis.com/maps/api/js";Ti.GOOGLE_MAP_SCRIPT_BASE_URL=Ew;function Bi(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bi=function(n){return typeof n}:Bi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bi(t)}Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=xw;var dt=Cw(c),Oa=ur,ww=Ti;function kd(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(kd=function(o){return o?n:e})(t)}function Cw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||Bi(t)!=="object"&&typeof t!="function")return{default:t};var n=kd(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}function Id(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Dd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Id(Object(n),!0).forEach(function(r){Sw(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lw(t,e){if(t==null)return{};var n=Aw(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Aw(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function xw(t){var e=t.ref,n=t.onPlaceSelected,r=t.apiKey,o=t.libraries,i=o===void 0?"places":o,s=t.inputAutocompleteValue,a=s===void 0?"new-password":s,u=t.options;u=u===void 0?{}:u;var l=u.types,f=l===void 0?["(cities)"]:l,d=u.componentRestrictions,h=u.fields,g=h===void 0?["address_components","geometry.location","place_id","formatted_address"]:h,v=u.bounds,p=Lw(u,["types","componentRestrictions","fields","bounds"]),C=t.googleMapsScriptBaseUrl,w=C===void 0?ww.GOOGLE_MAP_SCRIPT_BASE_URL:C,m=t.language,b=(0,dt.useRef)(null),O=(0,dt.useRef)(null),S=(0,dt.useRef)(null),y=(0,dt.useRef)(null),E=m?"&language=".concat(m):"",A="".concat(w,"?libraries=").concat(i,"&key=").concat(r).concat(E),M=(0,dt.useCallback)(function(){return(0,Oa.loadGoogleMapScript)(w,A)},[w,A]);return(0,dt.useEffect)(function(){var P=Dd(Dd({},p),{},{fields:g,types:f,bounds:v});if(d&&(P.componentRestrictions=d),!(S.current||!b.current||!Oa.isBrowser)){e&&!e.current&&(e.current=b.current);var x=function(){var N;if(typeof google>"u")return console.error("Google has not been found. Make sure your provide apiKey prop.");if(!((N=google.maps)!==null&&N!==void 0&&N.places))return console.error("Google maps places API must be loaded.");if(!b.current instanceof HTMLInputElement)return console.error("Input ref must be HTMLInputElement.");S.current=new google.maps.places.Autocomplete(b.current,P),S.current&&(O.current=S.current.addListener("place_changed",function(){n&&S&&S.current&&n(S.current.getPlace(),b.current,S.current)}))};return r?M().then(function(){return x()}):x(),function(){return O.current?O.current.remove():void 0}}},[]),(0,dt.useEffect)(function(){var P;!(dt.default!==null&&dt.default!==void 0&&(P=dt.default.version)!==null&&P!==void 0&&P.startsWith("18"))&&Oa.isBrowser&&window.MutationObserver&&b.current&&b.current instanceof HTMLInputElement&&(y.current=new MutationObserver(function(){y.current.disconnect(),b.current&&(b.current.autocomplete=a)}),y.current.observe(b.current,{attributes:!0,attributeFilter:["autocomplete"]}))},[a]),(0,dt.useEffect)(function(){S.current&&S.current.setFields(g)},[g]),(0,dt.useEffect)(function(){S.current&&S.current.setBounds(v)},[v]),(0,dt.useEffect)(function(){S.current&&S.current.setComponentRestrictions(d)},[d]),(0,dt.useEffect)(function(){S.current&&S.current.setOptions(p)},[p]),{ref:b,autocompleteRef:S}}function Ni(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ni=function(n){return typeof n}:Ni=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ni(t)}Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var Pa=Pw(c),Ke=Td(yw),Ow=Td(Di);function Td(t){return t&&t.__esModule?t:{default:t}}function Bd(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Bd=function(o){return o?n:e})(t)}function Pw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||Ni(t)!=="object"&&typeof t!="function")return{default:t};var n=Bd(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=t[i]}return r.default=t,n&&n.set(t,r),r}function ji(){return ji=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ji.apply(this,arguments)}function Mw(t,e){if(t==null)return{};var n=kw(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function kw(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Nd(t){var e=t.onPlaceSelected,n=t.apiKey,r=t.libraries,o=t.inputAutocompleteValue,i=t.options,s=t.googleMapsScriptBaseUrl,a=t.refProp,u=t.language,l=Mw(t,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),f=(0,Ow.default)({ref:a,googleMapsScriptBaseUrl:s,onPlaceSelected:e,apiKey:n,libraries:r,inputAutocompleteValue:o,options:i,language:u}),d=f.ref;return Pa.default.createElement("input",ji({ref:d},l))}Nd.propTypes={apiKey:Ke.default.string,libraries:Ke.default.arrayOf(Ke.default.string),ref:Ke.default.oneOfType([Ke.default.func,Ke.default.shape({current:Ke.default.any})]),googleMapsScriptBaseUrl:Ke.default.string,onPlaceSelected:Ke.default.func,inputAutocompleteValue:Ke.default.string,options:Ke.default.shape({componentRestrictions:Ke.default.object,bounds:Ke.default.object,location:Ke.default.object,offset:Ke.default.number,origin:Ke.default.object,radius:Ke.default.number,sessionToken:Ke.default.object,types:Ke.default.arrayOf(Ke.default.string)}),language:Ke.default.string};var Iw=(0,Pa.forwardRef)(function(t,e){return Pa.default.createElement(Nd,ji({},t,{refProp:e}))});Ii.default=Iw,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return n.default}});var e=r(Ii),n=r(Di);function r(o){return o&&o.__esModule?o:{default:o}}}(Ad);var jd=Ad;const Dw=t=>ce.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ce.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6174 16.0317C13.0777 17.2635 11.1246 18 8.99951 18C4.02895 18 -0.000488281 13.9706 -0.000488281 9C-0.000488281 4.02944 4.02895 0 8.99951 0C13.9701 0 17.9995 4.02944 17.9995 9C17.9995 11.1249 17.2631 13.0778 16.0316 14.6175L19.707 18.2929C20.0975 18.6834 20.0975 19.3166 19.707 19.7071C19.3165 20.0977 18.6833 20.0977 18.2928 19.7071L14.6174 16.0317ZM1.99951 9C1.99951 5.13401 5.13352 2 8.99951 2C12.8655 2 15.9995 5.13401 15.9995 9C15.9995 10.8866 15.2532 12.5988 14.0397 13.8577C14.006 13.8836 13.9737 13.9121 13.9428 13.9429C13.9119 13.9738 13.8835 14.0062 13.8575 14.0399C12.5986 15.2535 10.8863 16 8.99951 16C5.13352 16 1.99951 12.866 1.99951 9Z",fill:"currentcolor"})),cr={root:"Input-module__root__4cwtKq",endAdornment:"Input-module__endAdornment__Tv4vyT",input:"Input-module__input__qeMAQB",startAdornment:"Input-module__startAdornment__4bXzn1",label:"Input-module__label__N2eUZ2",inputContainer:"Input-module__inputContainer__Ticemx"},Ud=c.forwardRef(({label:t,className:e,startAdornment:n,endAdornment:r,onChange:o,onBlur:i,inputRef:s,...a},u)=>{const l=c.useRef(null);c.useImperativeHandle(u,()=>({focus:()=>{var d;(d=l.current)==null||d.focus()},blur:()=>{var d;(d=l.current)==null||d.blur()},setValue:d=>{if(o){o({target:{value:d}});return}if(i){i({target:{value:d}});return}l.current&&(l.current.value=d)}}),[i,o]);const f=Cd(s,l);return L.jsxs("label",{className:Ce(cr.root,e),children:[t&&L.jsx("span",{className:cr.label,children:t}),L.jsxs("div",{className:cr.inputContainer,children:[n&&L.jsx("div",{className:cr.startAdornment,children:n}),L.jsx("input",{...a,ref:f,className:cr.input,onChange:o,onBlur:i}),r&&L.jsx("div",{className:cr.endAdornment,children:r})]})]})}),Tw=({className:t})=>{const{t:e}=xt("location_selector"),{country:n,inputs:r}=Bt(),[o,i]=c.useState(""),[s,a]=c.useState(!1),u=ze(E=>E.setZoom),l=ze(E=>E.setBlurred),f=ze(E=>E.setDetailsOpen),d=mn(E=>E.setPlace),h=mt(E=>E.setCourierPoint),g=yt(E=>E.setSelectedPoint),v=[],p=n?{componentRestrictions:{country:n},types:v}:{types:v},C=E=>{u(mo),d(E)},{ref:w}=jd.usePlacesWidget({libraries:["places"],options:p,onPlaceSelected:C,inputAutocompleteValue:o}),m=E=>{s&&l(!!E.target.value),i(E.target.value)},b=()=>{o&&l(!0),f(!1),h(null),g(null),a(!0)},O=()=>{l(!1),a(!1)},S=E=>{E.key==="Enter"&&E.preventDefault()},y=Mi(r==null?void 0:r.address);return L.jsx(Ud,{...y,inputRef:w,value:o,className:t,endAdornment:L.jsx(Dw,{}),placeholder:e("placeholder"),onChange:m,onFocus:b,onBlur:O,onKeyDown:S})},Bw=({className:t})=>ze(n=>n.loaded)?L.jsx(Tw,{className:t}):null,Nw=c.memo(Bw),jw={root:"CourierDetailsModal-module__root__gLu0VW"},Uw=({onClose:t,onSubmit:e,location:n,className:r})=>L.jsx("div",{className:Ce(jw.root,r),children:L.jsx(sd,{location:n,onClose:t,onSubmit:e})}),Hw={root:"LocationDetailsModal-module__root__AzUydF"},zw=({onClose:t,onSubmit:e,location:n,className:r})=>{const o=()=>{e==null||e(n)};return L.jsx("div",{className:Ce(Hw.root,r),children:L.jsx(ud,{location:n,onClose:t,onSubmit:o})})},Fw=()=>{const{onPointClick:t}=Bt(),e=ze(l=>l.detailsOpen),n=ze(l=>l.setDetailsOpen),r=yt(l=>l.location),o=yt(l=>l.setSelectedPoint),i=mt(l=>l.courierPoint),s=mt(l=>l.setCourierPoint),a=c.useCallback(()=>{n(!1)},[n]),u=c.useCallback(l=>{t(l),n(!1),o(null),s(null)},[t,s,n,o]);return L.jsxs(L.Fragment,{children:[(i==null?void 0:i.address)&&e&&L.jsx(Uw,{location:i,className:Vt.details,onClose:a,onSubmit:u}),r&&e&&L.jsx(zw,{location:r,className:Vt.details,onClose:a,onSubmit:u})]})},Vw=({className:t,children:e})=>{const n=ze(r=>r.blurred);return L.jsxs("div",{className:Ce(Vt.root,t),children:[L.jsx(Nw,{className:Vt.locationSelector}),L.jsx(hw,{}),L.jsx("div",{className:Ce(Vt.mapWrapper,{[Vt.wrapperBlurred]:n}),children:e}),L.jsx(Fw,{})]})},Gw=c.memo(Vw),Ui={root:"Aside-module__root__JSqCyF",open:"Aside-module__open__t8OMLZ",overlay:"Aside-module__overlay__0UAvMb",container:"Aside-module__container__KJNP0t"},Qw=({open:t,children:e,className:n})=>L.jsxs("div",{className:Ce(Ui.root,n,{[Ui.open]:t}),children:[L.jsx("div",{className:Ui.overlay}),L.jsx("div",{className:Ui.container,children:e})]}),Ma={submit:"LocationAside-module__submit__hx8LTK",container:"LocationAside-module__container__KEGf9s",selector:"LocationAside-module__selector__ogsvtz",label:"LocationAside-module__label__-FWqoq"},Yw=()=>{const{t}=xt(["location_aside","common"]),{country:e,inputs:n}=Bt(),r=c.useRef(null),o=ze(p=>p.setZoom),i=mn(p=>p.setPlace),[s,a]=c.useState(""),u=bo(p=>p.open),l=bo(p=>p.toggle),f=p=>{l(!1),o(ts),i(p),p!=null&&p.formatted_address&&a(p==null?void 0:p.formatted_address)},d=e?{componentRestrictions:{country:e}}:void 0,h=p=>{a(p.target.value)},{ref:g}=jd.usePlacesWidget({libraries:["places"],options:d,onPlaceSelected:f,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA",inputAutocompleteValue:s}),v=Mi(n==null?void 0:n.city);return L.jsx(Qw,{open:u,children:L.jsx("div",{ref:r,className:Ma.container,children:L.jsxs("div",{className:Ma.selector,children:[L.jsx("div",{className:Ma.label,children:t("choose_city")}),L.jsx(Ud,{...v,inputRef:g,value:s,placeholder:t("placeholder"),onChange:h})]})})})},Ww=c.memo(Yw),Rw=t=>{const e=jh(["language"]);c.useEffect(()=>{t&&(e.changeLanguage(t),ho.setLanguage(t))},[t,e])},Kw=t=>{c.useEffect(()=>{t&&Object.keys(t).forEach(n=>{const r=t[n];r&&ea(`--color-${n}`,r)})},[t])},qw=t=>{c.useEffect(()=>{t&&typeof t<"u"&&ea("--button-radius",`${t}px`)},[t])},Zw=t=>{c.useEffect(()=>{t&&typeof t<"u"&&ea("--font",t)},[t])},Jw=t=>{const e=bo(r=>r.toggle),n=t==="selector";c.useEffect(()=>{n&&e(!0)},[n,e])},_w=(t,e,n)=>{const r=ze(a=>a.setZoom),o=ze(a=>a.setLoaded),i=mn(a=>a.setPlace),{isLoaded:s}=lb({language:e,libraries:gp,googleMapsApiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"});c.useEffect(()=>{s&&o()},[s,o]),c.useEffect(()=>{if(!s)return;const a=async()=>{const u=await ta(t,"GEOMETRIC_CENTER");i(u.results[0]),r(ya(t)?n:ts)};if(!navigator.geolocation||t&&!ya(t)){a();return}navigator.geolocation.getCurrentPosition(async u=>{const{latitude:l,longitude:f}=u.coords,d=await ta([l,f],"GEOMETRIC_CENTER");i(d.results[0]),r(ts)},u=>{console.error(u),a()},{maximumAge:6e4,timeout:5e3,enableHighAccuracy:!0})},[t,s,r,i,n])},Xw=({children:t,locale:e})=>(Rw(e),L.jsx(L.Fragment,{children:t})),Hd=()=>L.jsx(sa,{children:L.jsx(aa,{})}),$w=({children:t})=>{const e=zt(r=>r.loaded);return zt(r=>r.loading)&&!e?L.jsx(Hd,{}):L.jsx(L.Fragment,{children:t})},ka={map:"Widget-module__map__GhmuPO",sidebar:"Widget-module__sidebar__5gQrb3",header:"Widget-module__header__QlBK5m"},eC=({config:t,options:e})=>{const n=F0(t),{map:r,font:o,radius:i,locale:s,palette:a,startScreen:u,INN:l}=n;pr(l,"INN is required"),V0(l,e),pr(r==null?void 0:r.provider,"Map provider is required");const f=_E(r.provider);return x0(),Zw(o),Kw(a),qw(i),Jw(u),pr(s,"Locale is required"),pr(r.center,"Map center is required"),pr(r.initialZoom,"Map initial zoom is required"),_w(r==null?void 0:r.center,s,r.initialZoom),L.jsx(Ih,{tolgee:Fh,fallback:L.jsx(Hd,{}),children:L.jsx(Xw,{locale:s,children:L.jsx($w,{children:L.jsx(cl.Provider,{value:n,children:L.jsxs(Op,{children:[L.jsx(Ap,{className:ka.header}),L.jsx(cw,{className:ka.sidebar}),L.jsx(Gw,{className:ka.map,children:L.jsx(f,{})}),L.jsx(Ww,{})]})})})})})};Tt.Widget=eC,Object.defineProperty(Tt,Symbol.toStringTag,{value:"Module"})});
|