1var e=e=>{let t=e[e.length-1];if(t){let n=Number(t.lat),r=Number(t.lng),i=n,a=r,o=e.length-1;for(;o--;){let t=e[o];if(t){let{lat:e,lng:o}=t,s=Number(e),c=Number(o);s<n&&(n=s),c<r&&(r=c),s>i&&(i=s),c>a&&(a=c)}}return[[n,r],[i,a]]}throw Error(`first office: required`)},t=e=>[Number(e.lat),Number(e.lng)],n=async(e,t,r,i,a)=>{if(window.ymaps&&r in window.ymaps)return e(window.ymaps[r]);a<1&&t(Error(`object '${r}' not found`)),setTimeout(()=>n(e,t,r,i,a-1),i)},r=20,i=50,a=async e=>new Promise((t,a)=>n(t,a,e,i,r)),o=async(e,t,n)=>{let r=(await a(`util`)).bounds.getCenterAndZoom(e,[t,n]);return{zoom:r.zoom,center:r.center}},s=async e=>{let t={controls:[`zoomControl`]};if(e.bounds){if(e.clientHeight&&e.clientWidth){let{center:n,zoom:r}=await o(e.bounds,e.clientHeight,e.clientWidth);t.center=n,t.zoom=r}else t.bounds=e.bounds}else t.center=e.center,t.zoom=e.zoom;return new(await(a(`Map`)))(`map`,t)},c=async e=>{if(e)return new Promise(t=>{e?.events.add(`destroy`,t),e?.destroy()})},l=[55.76,37.64],u=16;function d(){let n={geoMap:void 0},r=async()=>{await c(n.geoMap),n.geoMap=void 0},i=e=>{n.geoMap?.geoObjects.removeAll();for(let t of e)n.geoMap?.geoObjects.add(t)};return{geoMapWrapper:n,destroyMap:r,prepareMapOffices:async r=>{let a,c;if(r.officesVisible.length>1){let{center:t,zoom:n}=await o(e(r.officesVisible),r.clientHeight,r.clientWidth);a=t,c=n}else r.officesVisible.length===1&&(a=t(r.officesVisible[0]),c=u);if(a&&c){n.geoMap?n.geoMap.setCenter(a,c):n.geoMap=await s({center:a,zoom:c});let e=await Promise.all(r.officesVisible.map(async e=>r.officeToGeoObject(e)));return i(e)}},prepareMapRoute:async e=>{n.geoMap||=await s({center:l,zoom:u}),i(e)}}}var f=e=>` 2<div> 3 <p class="global-para global-para_balloon global-para_bold">ÐдÑеÑ:</p> 4 <p class="global-para global-para_balloon">{{properties.data.address}}</p> 5 <p class="global-para global-para_balloon global-para_bold">Режим ÑабоÑÑ:</p> 6 <p class="global-para global-para_balloon">{{properties.data.schedule}}</p> 7 <p class="global-para global-para_balloon global-para_bold">ТелеÑон:</p> 8 <p class="global-para global-para_balloon">{{properties.data.phone}}</p> 9 ${e?.addRouteButton?` 10<div style="text-align: center"> 11 <button type="button" id="${e.buttonId}" class="global-b-button global-b-button_dominant"> 12 ÐÑоложиÑÑ Ð¼Ð°ÑÑÑÑÑ 13 </button> 14</div> 15 `:``} 16 ${e?.addChooseButton?`<button type="button" id="${e.buttonId}" class="global-b-button global-b-button_dominant">ÐÑбÑаÑÑ</button>`:``} 17</div> 18`,p=new URL(`logo-liga.BEN30AjS.png`,import.meta.url).href,m=e=>e?`ÐомбаÑд в ${e.city_name}`:``,h=async(e,n)=>{let r=await a(`Placemark`),i=t(e),o=m(e);return new r(i,{hintContent:o,data:{title:o,address:e.address,schedule:e.schedule,phone:e.phone}},{iconLayout:`default#image`,iconImageHref:p,iconImageSize:[60,20],balloonContentLayout:n})};export{a,d as i,m as n,t as o,f as r,h as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.