PageSourceSearch

https://hroveform.pl/gfx/pol/common_shop.js.gzip?r=1774616729

js hroveform.pl collected 2026-10-08 06:44:43 UTC 478,472 bytes, 6 lines download raw bytes

1async function FetchWithTimeout(t,e={}){const{timeout:n=8e3}=e,i=new AbortController,s=setTimeout((()=>i.abort()),n),o=await fetch(t,{...e,signal:i.signal});return clearTimeout(s),o}function CreateElement(t){const{tag:e,classes:n,id:i,href:s,attributes:o,text:r}=t,a=document.createElement(e);return void 0!==n&&(a.className=n),void 0!==i&&(a.id=i),void 0!==s&&(a.href=s),void 0!==o&&o.forEach((t=>a.setAttribute(t.name,t.value))),void 0!==r&&(a.innerHTML=r),a}function calculateSubscriptionPrice(t){return this.params=t||{},this.roundPrice=t=>{const e=currency_decimal_separator;currency_decimal_separator=".";const n=format_price(t,{mask:"#####0.00"});return currency_decimal_separator=e,n},this.formatPrice=t=>format_price(t,{mask:this.currencyFormat,currency:this.symbol,currency_space:this.currencySpace,currency_before_price:this.currencyBeforeValue}),this.percentagePrice=(t,e,n,i)=>{let s=0===i?0:n*(i/100);return s+=e,s=t-s,s>0?s:0},this.quotaPrice=(t,e,n)=>{let i=e+n;return i=t-i,i>0?i:0},this.calculatePercent=(t,e)=>100-100*e/t,this.netPrice=(t,e)=>{const n=t-t*e/100;return n>0?n:0},this.init=()=>{const{max:e,maxNet:n,save:i,before:s,rebateValue:o,rebateType:r,currencyFormat:a,symbol:l,currencySpace:c,currencyBeforeValue:u}=t;if(!e&&!o)return!1;this.currencyFormat=a||app_shop.vars?.currency?.format||app_shop.vars?.currency_format,this.symbol=l||app_shop.vars?.currency?.symbol||app_shop.vars?.symbol,this.currencySpace=c||app_shop.vars?.currency?.space||app_shop.vars?.currency_space,this.currencyBeforeValue=u||app_shop.vars?.currency?.beforeValue||app_shop.vars.currency_before_value,this.rebateType=r||"percentage";const h="percentage"===this.rebateType?this.percentagePrice(+e,+i,+s,+o):this.quotaPrice(+e,+i,+o),d=this.calculatePercent(e,h),p=this.netPrice(n,d);return{gross:{value:this.roundPrice(h),formatted:this.formatPrice(h)},net:{value:this.roundPrice(p),formatted:this.formatPrice(p)},percent:Math.round(d)}},this.init()}class VanillaCalendar{constructor(t,e){this.HTMLElement="object"==typeof t?t:document.querySelector(t),this.HTMLElement&&(this.type=e?.type??"default",this.date={min:e?.date?.min??"1970-01-01",max:e?.date?.max??"2470-12-31",today:e?.date?.today??new Date},this.info={top:e?.info?.top??!1,bottom:e?.info?.bottom??!1},this.customDayNames=e?.customDayNames??[],this.settings={lang:e?.settings?.lang??app_shop?.vars?.language?.symbol??"pl",iso8601:e?.settings?.iso8601??!0,workingDays:e?.settings?.workingDays??null,disabled:{weekDay:e?.settings?.disabled?.weekDay??null,weekends:e?.settings?.disabled?.weekends??!1},range:{min:e?.settings?.range?.min??this.date.min,max:e?.settings?.range?.max??this.date.max,disabled:e?.settings?.range?.disabled??null,enabled:e?.settings?.range?.enabled??null},selection:{day:e?.settings?.selection?.day??"single",month:e?.settings?.selection?.month??!0,year:e?.settings?.selection?.year??!0,time:e?.settings?.selection?.time??!1,controlTime:e?.settings?.selection?.controlTime??"all",stepHours:e?.settings?.selection?.stepHours??1,stepMinutes:e?.settings?.selection?.stepMinutes??1}
1,selected:{dates:e?.settings?.selected?.dates??null,month:e?.settings?.selected?.month??null,year:e?.settings?.selected?.year??null,holidays:e?.settings?.selected?.holidays??null,time:e?.settings?.selected?.time??null},visibility:{templateHeader:e?.settings?.visibility?.templateHeader??"%M %Y",monthShort:e?.settings?.visibility?.monthShort??!0,weekNumbers:e?.settings?.visibility?.weekNumbers??!1,weekend:e?.settings?.visibility?.weekend??!0,today:e?.settings?.visibility?.today??!0,disabled:e?.settings?.visibility?.disabled??!1}},this.locale={months:e?.locale?.months??[],weekday:e?.locale?.weekday??[]},this.actions={clickDay:e?.actions?.clickDay??null,clickMonth:e?.actions?.clickMonth??null,clickYear:e?.actions?.clickYear??null,changeTime:e?.actions?.changeTime??null,afterRender:e?.actions?.afterRender??null,afterFocus:e?.actions?.afterFocus??null},this.popups=e?.popups??null,this.currentType=this.type,this.selectedKeeping=null,this.userTime=!1)}generateDate(t){const e=t.getUTCFullYear();let n=t.getUTCMonth()+1,i=t.getUTCDate();return n=n<10?`0${n}`:n,i=i<10?`0${i}`:i,`${e}-${n}-${i}`}transformTime12(t){const e=Number(t);let n=e;return 0===e?n="12":13===e?n="01":14===e?n="02":15===e?n="03":16===e?n="04":17===e?n="05":18===e?n="06":19===e?n="07":20===e?n="08":21===e?n="09":22===e?n="10":23===e&&(n="11"),n}transformTime24(t,e){const n=Number(t);let i=n;return"AM"===e?12===n&&(i="00"):"PM"===e&&(1===n?i="13":2===n?i="14":3===n?i="15":4===n?i="16":5===n?i="17":6===n?i="18":7===n?i="19":8===n?i="20":9===n?i="21":10===n?i="22":11===n&&(i="23")),i}setVariablesDates(){null!==this.settings.selected.dates?this.selectedDates=this.settings.selected.dates:this.selectedDates=[],null!==this.settings.selected.month&&this.settings.selected.month>=0&&this.settings.selected.month<12?this.selectedMonth=this.settings.selected.month:this.selectedMonth=this.date.today.getUTCMonth(),null!==this.settings.selected.year&&this.settings.selected.year>=0&&this.settings.selected.year<=9999?this.selectedYear=this.settings.selected.year:this.selectedYear=this.date.today.getUTCFullYear(),this.viewYear=this.selectedYear,this.dateMin=this.settings.visibility.disabled?new Date(this.date.min):new Date(this.settings.range.min),this.dateMax=this.settings.visibility.disabled?new Date(this.date.max):new Date(this.settings.range.max);const t=!0===this.settings.selection.time||12===this.settings.selection.time;if(t||24===this.settings.selection.time){if("string"==typeof this.settings.selected.time){const e=t?/^([0-9]|0[1-9]|1[0-2]):([0-5][0-9])|(AM|PM)/g:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])/g;this.settings.selected.time.replace(e,((e,n,i,s)=>{n&&i&&(this.userTime=!0,this.selectedHours=n,this.selectedMinutes=i),s&&t?this.selectedKeeping=s:t&&(this.selectedKeeping="AM")}))}!this.userTime&&t?(this.selectedHours=this.transformTime12(this.date.today.getHours()),this.selectedMinutes=this.date.today.getMinutes(),this.selectedKeeping=Number(this.date.today.getHours())>12?"PM":"AM"):this.userTime||(this.selectedHours=this.date.today.getHours(),this.selectedMinutes=this.date.today.getMinutes()),this.selectedHours=Number(this.selectedHours)<10?`0${Number(this.selectedHours)}`:`${this.selectedHours}`,this.selectedMinutes=Number(this.selectedMinutes)<10?`0${Number(this.selectedMinutes)}`:`${this.selectedMinutes}`,this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`}else this.settings.selection.time&&(this.settings.selection.time=null)}createDOM(){"default"===this.currentType?(this.HTMLElement.classList.add("vanilla-calendar_default"),this.HTMLElement.classList.remove("vanilla-calendar_month"),this.HTMLElement.classList.remove("vanilla-calendar_year"),this.HTMLElement.innerHTML=`\n      ${this.info.top?'\n      <div class="vanilla-calendar-info --top"></div>\n      ':""}\n      <div class="vanilla-calendar-header">\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_prev"\n          data-calendar-arrow="prev"\n          title="Prev">\n        </button>\n        <div class="vanilla-calendar-header__content"></div>\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_next"\n          data-calendar-arrow="next"\n          title="Next">\n        </button>\n      </div>\n      ${this.settings.visibility.weekNumbers?'\n      <div class="vanilla-calendar-column">\n        <b class="vanilla-calendar-column__title">#</b>\n        <div class="vanilla-calendar-column__content vanilla-calendar-week-numbers"></div>\n      </div>\n      ':""}\n      <div class="vanilla-calendar-content">\n        <div class="vanilla-calendar-week"></div>\n        <div class="vanilla-calendar-days"></div>\n        ${this.settings.selection.time?'\n        <div class="vanilla-calendar-time"></div>\n        ':""}\n      </div>\n      ${this.info.bottom?'\n      <div class="vanilla-calendar-info --bottom"></div>\n      ':""}\n    `):"month"===this.currentType?(this.HTMLElement.classList.remove("vanilla-calendar_default"),this.HTMLElement.classList.add("vanilla-calendar_month"),this.HTMLElement.classList.remove("vanilla-calendar_year"),this.HTMLElement.innerHTML='\n      <div class="vanilla-calendar-header">\n        <div class="vanilla-calendar-header__content"></div>\n      </div>\n      <div class="vanilla-calendar-content">\n        <div class="vanilla-calendar-months"></div>\n      </div>'):"year"===this.currentType&&(this.HTMLElement.classList.remove("vanilla-calendar_default"),this.HTMLElement.classList.remove("vanilla-calendar_month"),this.HTMLElement.classList.add("vanilla-calendar_year"),this.HTMLElement.innerHTML='\n      <div class="vanilla-calendar-header">\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_prev"\n          title="prev">\n        </button>\n        <div class="vanilla-calendar-header__content"></div>\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_next"\n          title="next">\n        </button>\n      </div>\n      <div class="vanilla-calendar-content">\n        <div class="vanilla-calendar-years"></div>\n      </div>')}createHeader(){const t=this.HTMLElement.querySelector(".vanilla-calendar-header__content"),e=this.settings.selection.month?"":" vanilla-calendar-month_disabled",n=this.settings.selection.year?"":" vanilla-calendar-year_disabled",i=`\n    <button type="button"\n      class="vanilla-calendar-month${e}"\n      ${e?' tabindex="-1" ':""}\n      data-calendar-selected-month="${this.selectedMonth}">\n      ${this.locale.months[this.selectedMonth]}\n    </button>`.replace(/[\n\t]/g,""),s=`\n    <button type="button"\n      class="vanilla-calendar-year${n}"\n      ${n?' tabindex="-1" ':""}\n      data-calendar-selected-year="${this.selectedYear}">\n      ${this.selectedYear}\n    </button>`.replace(/[\n\t]/g,"");let o=this.settings.visibility.templateHeader.replace("%M",i);o=o.replace("%Y",s),t.innerHTML=o}controlArrows(){if(!["default","year"].includes(this.currentType))return;const t=this.HTMLElement.querySelector(".vanilla-calendar-arrow_prev"),e=this.HTMLElement.querySelector(".vanilla-calendar-arrow_next");(()=>{if("default"!==this.currentType)return;const n=this.selectedMonth===this.dateMin.getUTCMonth(),i=this.selectedMonth===this.dateMax.getUTCMonth(),s=!this.settings.selection.year||this.selectedYear===this.dateMin.getUTCFullYear(),o=!this.settings.selection.year||this.selectedYear===this.dateMax.getUTCFullYear();n&&s||!this.settings.selection.month?t.style.visibility="hidden":t.style.visibility=null,i&&o||!this.settings.selection.month?e.style.visibility="hidden":e.style.visibility=null})(),(()=>{"year"===this.currentType&&(this.dateMin.getUTCFullYear()&&this.viewYear-7<=this.dateMin.getUTCFullYear()?t.style.visibility="hidden":t.style.visibility=null,this.dateMax.getUTCFullYear()&&this.viewYear+7>=this.dateMax.getUTCFullYear()?e.style.visibility="hidden":e.style.visibility=null)})()}createWeek(){const t=this.HTMLElement.querySelector(".vanilla-calendar-week"),e=d
1ocument.createElement("b");e.className="vanilla-calendar-week__day";const n=[...this.locale.weekday];this.settings.iso8601&&n.push(n.shift()),t.innerHTML="";for(let i=0;i<n.length;i++){const s=n[i],o=e.cloneNode(!0);this.settings.visibility.weekend&&this.settings.iso8601?5!==i&&6!==i||o.classList.add("vanilla-calendar-week__day_weekend"):this.settings.visibility.weekend&&!this.settings.iso8601&&(0!==i&&6!==i||o.classList.add("vanilla-calendar-week__day_weekend")),o.innerText=`${s}`,t.append(o)}}getWeekNumber(t){const e=new Date(t).getUTCDate(),n=new Date(t).getUTCMonth(),i=new Date(t).getUTCFullYear(),s=new Date(i,n,e),o=new Date(Date.UTC(s.getUTCFullYear(),0,1)),r=Math.ceil(((s-o)/864e5+1)/7);return{year:s.getUTCFullYear(),week:r}}createWeekNumbers(t,e){if(!this.settings.visibility.weekNumbers)return;const n=this.HTMLElement.querySelector(".vanilla-calendar-week-numbers"),i=this.HTMLElement.querySelectorAll(".vanilla-calendar-day__btn"),s=Math.ceil((t+e)/7),o=document.createElement("span");o.className="vanilla-calendar-week-number",n.innerHTML="";for(let t=0;t<s;t++){const e=this.getWeekNumber(i[7*t].dataset.calendarDay),s=o.cloneNode(!0);s.innerText=`${e.week}`,s.dataset.calendarYearWeek=`${e.year}`,n.append(s)}}createPopup(t){if(this.popups)for(const e in this.popups)if(Object.hasOwnProperty.call(this.popups,e)){const n=t.querySelector(`[data-calendar-day="${e}"]`);if(n){const t=this.popups[e];n.classList.add(t.modifier),n.parentNode.innerHTML+=`<div class="vanilla-calendar-day__popup">${t.html}</div>`}}}createDays(){const t=new Date(Date.UTC(this.selectedYear,this.selectedMonth,1)),e=new Date(Date.UTC(this.selectedYear,this.selectedMonth+1,0)).getUTCDate();let n=Number(t.getUTCDay());this.settings.iso8601&&(n=Number((0!==t.getUTCDay()?t.getUTCDay():7)-1));const i=this.HTMLElement.querySelector(".vanilla-calendar-days"),s=document.createElement("div"),o=document.createElement("button");s.className="vanilla-calendar-day",o.className="vanilla-calendar-day__btn",o.type="button",["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&i.classList.add("vanilla-calendar-days_selecting"),i.innerHTML="";const r=(t,e,n,i)=>{!this.settings.visibility.weekend||0!==e&&6!==e||t.classList.add("vanilla-calendar-day__btn_weekend"),Array.isArray(this.settings.selected.holidays)&&this.settings.selected.holidays.forEach((e=>{e===n&&t.classList.add("vanilla-calendar-day__btn_holiday")}));let s=this.date.today.getUTCDate(),o=this.date.today.getUTCMonth()+1;s=s<10?`0${s}`:s,o=o<10?`0${o}`:o;const r=`${this.date.today.getUTCFullYear()}-${o}-${s}`;if(this.settings.visibility.today&&t.dataset.calendarDay===r&&t.classList.add("vanilla-calendar-day__btn_today"),0===this.selectedDates.indexOf(n)||this.selectedDates[0]&&this.selectedDates.indexOf(n)===this.selectedDates.length-1?t.classList.add("vanilla-calendar-day__btn_selected"):"multiple-ranged"===this.settings.selection.day&&this.selectedDates.indexOf(n)>0?(t.classList.add("vanilla-calendar-day__btn_selected"),t.classList.add("vanilla-calendar-day__btn_intermediate")):this.selectedDates.indexOf(n)>0&&t.classList.add("vanilla-calendar-day__btn_selected"),(this.settings.range.min>n||this.settings.range.max<n)&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),this.settings.selection.month||i||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),this.settings.selection.year||new Date(n).getFullYear()===this.selectedYear||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),Array.isArray(this.settings.range.disabled)?this.settings.range.disabled.forEach((e=>{e===n&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"))})):Array.isArray(this.settings.range.enabled)&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),this.settings.range.enabled.forEach((e=>{e===n&&(t.classList.remove("vanilla-calendar-day__btn_disabled"),t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"))}))),!this.settings.disabled.weekends||0!==e&&6!==e||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")),Array.isArray(this.settings.disabled.weekDay)&&this.settings.disabled.weekDay.forEach((n=>{n===e&&(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"))})),Array.isArray(this.settings.workingDays)&&(this.settings.workingDays.includes(e)||(t.classList.add("vanilla-calendar-day__btn_disabled"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"))),this.customDayNames?.length){const e=this.customDayNames.find((t=>t.date===n));if(e){const{class:n="",name:i}=e||{};t.classList.add(n),i&&(t.innerHTML=i)}}},a=(t,e,n,a,l)=>{const c=s.cloneNode(!0),u=o.cloneNode(!0);l&&u.classList.add(l),u.innerText=t,u.dataset.calendarDay=n,r(u,e,n,a),c.append(u),i.append(c)};(()=>{let t=new Date(Date.UTC(this.selectedYear,this.selectedMonth,0)).getUTCDate()-n,e=this.selectedYear,i=this.selectedMonth;0===this.selectedMonth?(i=this.locale.months.length,e=this.selectedYear-1):this.selectedMonth<10&&(i=`0${this.selectedMonth}`);for(let s=0;s<n;s++){t+=1;const n=`${e}-${i}-${t}`,s=new Date(Date.UTC(this.selectedYear,this.selectedMonth,t-1)).getUTCMonth()-1,o=new Date(Date.UTC(this.selectedYear,s,t)).getUTCDay();a(t,o,n,!1,"vanilla-calendar-day__btn_prev")}})(),(()=>{for(let t=1;t<=e;t++){const e=new Date(Date.UTC(this.selectedYear,this.selectedMonth,t)),n=this.generateDate(e),i=e.getUTCDay();a(t,i,n,!0)}})(),(()=>{const t=n+e,i=Math.ceil(t/this.locale.weekday.length),s=this.locale.weekday.length*i-t;let o=this.selectedYear,r=this.selectedMonth+2;this.selectedMonth+1===this.locale.months.length?(r="01",o=this.selectedYear+1):this.selectedMonth+2<10&&(r=`0${this.selectedMonth+2}`);for(let t=1;t<=s;t++){const e=`${o}-${r}-${t<10?`0${t}`:t}`,n=new Date(Date.UTC(this.selectedYear,this.selectedMonth,t)).getUTCMonth()+1,i=new Date(Date.UTC(this.selectedYear,n,t)).getUTCDay();a(t,i,e,!1,"vanilla-calendar-day__btn_next")}})(),this.createPopup(i),this.createWeekNumbers(n,e),this.actions.afterRender&&this.actions.afterRender(this)}changeMonth(t){const e=this.locale.months.length-1;switch(t){case"prev":0!==this.selectedMonth?this.selectedMonth-=1:this.settings.selection.year&&(this.selectedYear-=1,this.selectedMonth=e);break;case"next":this.selectedMonth!==e?this.selectedMonth+=1:this.settings.selection.year&&(this.selectedYear+=1,this.selectedMonth=0)}this.settings.selected.month=this.selectedMonth,this.settings.selected.year=this.selectedYear,this.createHeader(),this.controlArrows(),this.createDays()}createYears(){this.currentType="year",this.createDOM(),this.createHeader(),this.controlArrows();const t=this.HTMLElement.querySelector(".vanilla-calendar-years");this.settings.selection.year&&t.classList.add("vanilla-calendar-years_selecting");const e=document.createElement("button");e.type="button",e.className="vanilla-calendar-years__year";for(let n=this.viewYear-7;n<this.viewYear+8;n++){const i=n,s=e.cloneNode(!0);i===this.selectedYear&&s.classList.add("vanilla-calendar-years__year_selected"),i<this.dateMin.getUTCFullYear()&&(s.classList.add("vanilla-calendar-years__year_disabled"),s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true")),i>this.dateMax.getUTCFullYear()&&(s.classList.add("vanilla-calendar-years__year_disabled"),s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true")),s.dataset.calendarYear=i,s.innerText=`${i}`,t.append(s)}this.actions.afterRender&&this.actions.afterRender(this)}createMonths(){this.currentType="month",this.createDOM(),this.createHeader();const t=this.HTMLElement.querySelector(".vanilla-calendar-months");this.settings.selection.month&&t.classList.add("vanilla-calendar-months_selecting");const e=document.createElement("button");e.type="button",e.className="vanilla-calendar-months__month";for(let n=0;n<this.locale.months.length;n++){const i=this.locale.months[n],s=e.cloneNode(!0);n===this.selectedMonth&&s.classList.add("vanilla-calendar-months__month_selected"),n<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&(s.classList.add("vanilla-calendar-months__month_disabled"),s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true")),n>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&(s.classList.add("vanilla-calendar-months__month_disabled"),s.setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true")),s.dataset.calendarMonth=n,s.title=`${i}`,s.innerText=`${this.settings.visibility.monthShort?i.substring(0,3):i}`,t.append(s)}this.actions.afterRender&&this.actions.afterRender(this)}controlTime(t){const e=this.HTMLElement.querySelector('.vanilla-calendar-time__range input[name="hours"]'),n=this.HTMLElement.querySelector('.vanilla-calendar-time__range input[name="minutes"]'),i=this.HTMLElement.querySelector('.vanilla-calendar-time__hours input[name="hours"]'),s=this.HTMLElement.querySelector('.vanilla-calendar-time__minutes input[name="minutes"]'),o=this.HTMLElement.querySelector(".vanilla-calendar-time__keeping"),r=(t,e)=>{t.addEventListener("mouseover",(()=>e.classList.add("is-focus")))},a=(t,e)=>{t.addEventListener("mouseout",(()=>e.classList.remove("is-focus")))},l=(t,e,n)=>{"hours"===n?this.selectedHours=`${e}`:"minutes"===n&&(this.selectedMinutes=`${e}`),this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`,this.settings.selected.time=this.selectedTime,this.actions.changeTime&&this.actions.changeTime(t,this.selectedTime,this.selectedHours,this.selectedMinutes,this.selectedKeeping)},c=(t,e,n,i)=>{t.addEventListener("input",(t=>{let s=Number(t.target.value);s=s<10?`0${s}`:`${s}`,"hours"===n&&12===i?Number(t.target.value)<i&&Number(t.target.value)>0?(e.value=s,this.selectedKeeping="AM",o.innerText=this.selectedKeeping,l(t,s,n)):(0===Number(t.target.value)?(this.selectedKeeping="AM",o.innerText="AM"):(this.selectedKeeping="PM",o.innerText="PM"),e.value=this.transformTime12(t.target.value),l(t,this.transformTime12(t.target.value),n)):(e.value=s,l(t,s,n))}))},u=(t,e,n,i)=>{e.addEventListener("change",(e=>{let s=Number(e.target.value);s=s<10?`0${s}`:`${s}`,"hours"===n&&12===i?e.target.value&&Number(e.target.value)<=i&&Number(e.target.value)>0?(e.target.value=s,t.value=this.transformTime24(s,this.selectedKeeping),l(e,s,n)):e.target.value&&Number(e.target.value)<24&&(Number(e.target.value)>i||0===Number(e.target.value))?(0===Number(e.target.value)?(this.selectedKeeping="AM",o.innerText="AM"):(this.selectedKeeping="PM",o.innerText="PM"),e.target.value=this.transformTime12(e.target.value),t.value=s,l(e,this.transformTime12(e.target.value),n)):e.target.value=this.selectedHours:e.target.value&&Number(e.target.value)<=i&&Number(e.target.value)>=0?(e.target.value=s,t.value=s,l(e,s,n)):"hours"===n?e.target.value=this.selectedHours:"minutes"===n&&(e.target.value=this.selectedMinutes)}))};r(e,i),r(n,s),a(e,i),a(n,s),c(e,i,"hours",24===t?23:t),c(n,s,"minutes"),u(e,i,"hours",24===t?23:t),u(n,s,"minutes",59),o&&o.addEventListener("click",(t=>{o.innerText.includes("AM")?this.selectedKeeping="PM":this.selectedKeeping="AM",e.value=this.transformTime24(this.selectedHours,this.selectedKeeping),l(t,this.selectedHours,"hours"),o.innerText=this.selectedKeeping}))}createTime(){const t=this.HTMLElement.querySelector(".vanilla-calendar-time");if(!t)return;const e=!0===this.settings.selection.time?12:this.settings.selection.time,n="range"===this.settings.selection.controlTime;t.innerHTML=`\n    <div class="vanilla-calendar-time__content">\n      <label class="vanilla-calendar-time__hours">\n        <input type="text"\n          name="hours"\n          maxlength="2"\n          value="${this.selectedHours}"\n          ${n?"disabled":""}>\n      </label>\n      <label class="vanilla-calendar-time__minutes">\n        <input type="text"\n          name="minutes"\n          maxlength="2"\n          value="${this.selectedMinutes}"\n          ${n?"disabled":""}>\n      </label>\n      ${12===e?`\n      <button type="button"\n        class="vanilla-calendar-time__keeping"\n        ${n?"disabled":""}>${this.selectedKeeping}</button>\n      `:""}\n    </div>\n    <div class="vanilla-calendar-time__ranges">\n      <label class="vanilla-calendar-time__range">\n        <input type="range"\n          name="hours"\n          min="0"\n          max="23"\n          step="${this.settings.selection.stepHours}"\n          value="${this.selectedKeeping?this.transformTime24(this.selectedHours,this.selectedKeeping):this.selectedHours}">\n      </label>\n      <label class="vanilla-calendar-time__range">\n        <input type="range"\n          name="minutes"\n          min="0"\n          max="59"\n          step="${this.settings.selection.stepMinutes}"\n          value="${this.selectedMinutes}">\n      </label>\n    </div>`,this.controlTime(e)}getLocale(){if("define"!==this.settings.lang){this.locale.weekday=[];for(let t=0;t<7;
1t++){let e=new Date(0,0,t).toLocaleString(this.settings.lang,{weekday:"short"});e=`${e.charAt(0).toUpperCase()}${e.substring(1,e.length)}`,e=e.replace(/\./,""),this.locale.weekday.push(e)}this.locale.months=[];for(let t=0;t<12;t++){let e=new Date(0,t).toLocaleString(this.settings.lang,{month:"long"});e=`${e.charAt(0).toUpperCase()}${e.substring(1,e.length)}`,e=e.replace(/\./,""),this.locale.months.push(e)}}}createInfo(){if(this.info.top){this.HTMLElement.querySelector(".vanilla-calendar-info.--top").innerHTML=this.info.top}if(this.info.bottom){this.HTMLElement.querySelector(".vanilla-calendar-info.--bottom").innerHTML=this.info.bottom}}update(){this.setVariablesDates(),this.getLocale(),this.createDOM(),this.createHeader(),this.controlArrows(),this.createTime(),this.createInfo(),"default"===this.currentType?(this.createWeek(),this.createDays()):"month"===this.currentType?this.createMonths():"year"===this.currentType&&this.createYears(),this.actions.afterRender&&this.actions.afterRender(this)}focusElement({type:t="day"}){const e=this.HTMLElement.querySelector(".vanilla-calendar-day__btn_selected:not(.disabled)");if("day"===t&&e)return e.focus(),void(this.actions.afterFocus&&this.actions.afterFocus(this,t));const n=Array.from(this.HTMLElement.querySelectorAll(".vanilla-calendar-content button"));n.find((t=>-1===t?.className.indexOf("disabled")&&-1===t?.className.indexOf("prev")))?.focus?.(),this.actions.afterFocus&&this.actions.afterFocus(this,t)}click(){this.HTMLElement.addEventListener("click",(t=>{const e=t.target.closest(".vanilla-calendar-arrow"),n=t.target.closest(".vanilla-calendar-arrow_prev"),i=t.target.closest(".vanilla-calendar-arrow_next"),s=t.target.closest(".vanilla-calendar-day__btn"),o=t.target.closest(".vanilla-calendar-day__btn_prev"),r=t.target.closest(".vanilla-calendar-day__btn_next"),a=t.target.closest(".vanilla-calendar-year"),l=t.target.closest(".vanilla-calendar-years__year"),c=t.target.closest(".vanilla-calendar-month"),u=t.target.closest(".vanilla-calendar-months__month"),h=()=>{s.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(s.dataset.calendarDay),1):(this.selectedDates=[],this.selectedDates.push(s.dataset.calendarDay))},d=()=>{s.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(s.dataset.calendarDay),1):this.selectedDates.push(s.dataset.calendarDay)},p=()=>{if(this.selectedDates.length>1&&(this.selectedDates=[]),this.selectedDates.push(s.dataset.calendarDay),!this.selectedDates[1])return;const t=new Date(Date.UTC(new Date(this.selectedDates[0]).getUTCFullYear(),new Date(this.selectedDates[0]).getUTCMonth(),new Date(this.selectedDates[0]).getUTCDate())),e=new Date(Date.UTC(new Date(this.selectedDates[1]).getUTCFullYear(),new Date(this.selectedDates[1]).getUTCMonth(),new Date(this.selectedDates[1]).getUTCDate())),n=t=>{const e=this.generateDate(t);this.settings.range.disabled&&this.settings.range.disabled.includes(e)||this.selectedDates.push(e)};if(this.selectedDates=[],e>t)for(let i=t;i<=e;i.setUTCDate(i.getUTCDate()+1))n(i);else for(let i=t;i>=e;i.setUTCDate(i.getUTCDate()-1))n(i)};(()=>{e&&"year"!==this.currentType&&"month"!==this.currentType&&(this.changeMonth(t.target.dataset.calendarArrow),this.focusElement({type:"arrow"}))})(),(()=>{if(["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&s){switch(this.settings.selection.day){case"single":h();break;case"multiple":d();break;case"multiple-ranged":p()}this.actions.clickDay&&this.actions.clickDay(t,this.selectedDates),this.settings.selected.dates=this.selectedDates,o?this.changeMonth("prev"):r?this.changeMonth("next"):this.createDays(),this.focusElement({type:"day"})}})(),(()=>{this.settings.selection.year&&(e&&"year"===this.currentType?(i?this.viewYear+=15:n&&(this.viewYear-=15),this.createYears(),this.focusElement({type:"year"})):"year"!==this.currentType&&a?(this.createYears(),this.focusElement({type:"year"})):"year"===this.currentType&&a?(this.currentType=this.type,this.update(),this.focusElement({type:"year"})):l&&(this.selectedYear=Number(l.dataset.calendarYear),this.currentType=this.t
1ype,this.selectedMonth<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&(this.settings.selected.month=this.dateMin.getUTCMonth()),this.selectedMonth>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&(this.settings.selected.month=this.dateMax.getUTCMonth()),this.actions.clickYear&&this.actions.clickYear(t,this.selectedYear),this.settings.selected.year=this.selectedYear,this.update(),this.focusElement({type:"year"})))})(),(()=>{this.settings.selection.month&&("month"!==this.currentType&&c?(this.createMonths(),this.focusElement({type:"month"})):"month"===this.currentType&&c?(this.currentType=this.type,this.update(),this.focusElement({type:"month"})):u&&(this.selectedMonth=Number(u.dataset.calendarMonth),this.currentType=this.type,this.actions.clickMonth&&this.actions.clickMonth(t,this.selectedMonth),this.settings.selected.month=this.selectedMonth,this.update(),this.focusElement({type:"month"})))})()}))}init(){this.HTMLElement&&(this.update(),this.click())}}function FormValidation(t){const{form:e,formSelector:n,afterValidate:i,afterValidateForm:s}=t||{};this.debounce=(t,e=500)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>t(...i)),e)}},this.fetchData=async t=>{try{const e=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?query=validateClientData`,{method:"POST",body:JSON.stringify({query:`query {${t}}`})});return await e.json()}catch(t){return!1}},this.vars={passwordLengthMin:6,passwordLengthMax:30,changedInputs:[]},this.callbacks={validate:i,validateAll:s},this.errorCode={birth_date:app_shop?.txt?.errorCode?.birth_date||"Wpisz poprawną datę urodzenia w formacie RRRR-MM-DD",illegal_characters_client_city:app_shop?.txt?.errorCode?.illegal_characters_client_city||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_firm:app_shop?.txt?.errorCode?.illegal_characters_client_firm||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_firstname:app_shop?.txt?.errorCode?.illegal_characters_client_firstname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_lastname:app_shop?.txt?.errorCode?.illegal_characters_client_lastname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_nip:app_shop?.txt?.errorCode?.illegal_characters_client_nip||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_phone:app_shop?.txt?.errorCode?.illegal_characters_client_phone||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_phone2:app_shop?.txt?.errorCode?.illegal_characters_client_phone2||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_street:app_shop?.txt?.errorCode?.illegal_characters_client_street||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_additional:app_shop?.txt?.errorCode?.illegal_characters_delivery_additional||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_city:app_shop?.txt?.errorCode?.illegal_characters_delivery_city||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_firstname:app_shop?.txt?.errorCode?.illegal_characters_delivery_firstname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_lastname:app_shop?.txt?.errorCode?.illegal_characters_delivery_lastname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_phone:app_shop?.txt?.errorCode?.illegal_characters_delivery_phone||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_street:app_shop?.txt?.errorCode?.illegal_characters_delivery_street||"Jeden z użytych znaków jest niedozwolony.",incorect_delivery_region:app_shop?.txt?.errorCode?.incorect_delivery_region||"Wybierz kraj odbiorcy przesyłki.",incorect_delivery_zipcode:app_shop?.txt?.errorCode?.incorect_delivery_zipcode||"Wpisz kod pocztowy odbiorcy przesyłki.",incorect_email:app_shop?.txt?.errorCode?.incorect_email||"Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected]",incorect_invoice_phone:app_shop?.txt?.errorCode?.incorect_invoice_phone||"Wpisz telefon klienta.",incorect_invoice_zipcode:app_shop?.txt?.errorCode?.incorect_invoice_zipcode||"Wpisz ko
1d pocztowy klienta.",incorect_login:app_shop?.txt?.errorCode?.incorect_login||"Błędnie wpisany login. Login musi mieć minimum 3, a maksimum 40 znaków. Możesz użyć liter i cyfr oraz symboli @ . - _.",incorect_nip:app_shop?.txt?.errorCode?.incorect_nip||"Niepoprawny NIP dla wybranego kraju.",incorect_phone:app_shop?.txt?.errorCode?.incorect_phone||"Wpisz swój telefon.",incorect_shops:app_shop?.txt?.errorCode?.incorect_shops||"Wybierz sklep z listy.",incorect_zipcode:app_shop?.txt?.errorCode?.incorect_zipcode||"Błędnie wpisany kod pocztowy.",incorrect_region:app_shop?.txt?.errorCode?.incorrect_region||"Błędnie wybrany region.",invalid_format:app_shop?.txt?.errorCode?.invalid_format||"Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę.",login_equals_password:app_shop?.txt?.errorCode?.login_equals_password||"Hasło jest takie samo jak login. Wpisz inne hasło.",login_taken:app_shop?.txt?.errorCode?.login_taken||"Podany login jest już zajęty",login_taken_login_propose:app_shop?.txt?.errorCode?.login_taken_login_propose||"Podany login jest już zajęty.<br/><br/>Proponowany login: ",no_city:app_shop?.txt?.errorCode?.no_city||"Wpisz w to pole nazwę miasta.",no_delivery_city:app_shop?.txt?.errorCode?.no_delivery_city||"Wpisz miejscowość odbiorcy przesyłki.",no_delivery_firstname:app_shop?.txt?.errorCode?.no_delivery_firstname||"Wpisz imię odbiorcy przesyłki.",no_delivery_lastname:app_shop?.txt?.errorCode?.no_delivery_lastname||"Wpisz nazwisko odbiorcy przesyłki.",no_delivery_street:app_shop?.txt?.errorCode?.no_delivery_street||"Wpisz ulicę i numer domu odbiorcy przesyłki.",no_firmname:app_shop?.txt?.errorCode?.no_firmname||"Błędnie wpisana nazwa firmy.",no_firstname:app_shop?.txt?.errorCode?.no_firstname||"Wpisz w to pole swoje imię.",no_invoice_city:app_shop?.txt?.errorCode?.no_invoice_city||"Wpisz miejscowość klienta.",no_invoice_firmname:app_shop?.txt?.errorCode?.no_invoice_firmname||"Wpisz nazwę firmy klienta.",no_invoice_firstname:app_shop?.txt?.errorCode?.no_invoice_firstname||"Wpisz imię klienta.",no_invoice_lastname:app_shop?.txt?.errorCode?.no_invoice_lastname||"Wpisz nazwisko klienta.",no_invoice_street:app_shop?.txt?.errorCode?.no_invoice_street||"Wpisz ulicę i numer domu klienta.",no_invoice_street_number:app_shop?.txt?.errorCode?.no_invoice_street_number||"Wpisz ulicę i numer domu klienta.",no_login:app_shop?.txt?.errorCode?.no_login||"Wpisz w to pole swój login.",no_name:app_shop?.txt?.errorCode?.no_name||"Wpisz w to pole swoje nazwisko.",no_password:app_shop?.txt?.errorCode?.no_password||"Wpisz w to pole swoje hasło.",no_street:app_shop?.txt?.errorCode?.no_street||"Wpisz nazwę ulicy lub miejscowości.",no_street_number:app_shop?.txt?.errorCode?.no_street_number||"Podaj nr domu.",no_street_number_uk:app_shop?.txt?.errorCode?.no_street_number_uk||"Brakuje numeru domu.",not_equal_passwords:app_shop?.txt?.errorCode?.not_equal_passwords||"Wpisane hasła nie są takie same. Wpisz ponownie hasło i potwierdzenie.",password_to_long:app_shop?.txt?.errorCode?.password_to_long||"Za długie hasło. Wpisz krótsze hasło (maksimum",password_to_short:app_shop?.txt?.errorCode?.password_to_short||"Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum",used_login:app_shop?.txt?.errorCode?.used_login||"Podany login jest już zajęty",incorrect_iban:app_shop?.txt?.errorCode?.incorrect_iban||app_shop.txt.txt_validation5||"Format numeru konta bankowego jest niepoprawny"},this.passwordErrorCodes=["no_password","not_equal_passwords","password_to_long","password_to_short","login_equals_password"],this.loginErrorCodes=["incorect_login","login_taken","login_taken_login_propose","no_login","used_login"],this.txt={mandatoryField:app_shop?.txt?.formValidation?.mandatoryField||"Proszę wypełnić to pole.",zipcodeFormat:app_shop?.txt?.formValidation?.zipcodeFormat||"Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",characters:app_shop?.txt?.formValidation?.characters||"znaków).",noOptionSelected:app_shop?.txt?.formValidation?.noOptionSelected||"Proszę wybrać opcję.",minimalCharacters:app_shop?.txt?.formValidation?.minimalCharacters||app_shop.txt?.txt_validation1||"Minimalna liczba znaków dla tego pola to ",maximumCharacters:app_shop?.txt?.formValidation?.maximumCharacters||app_shop.txt?.txt_validation2||"Maksymalna liczba znaków dla tego pola to ",onlyDigital:app_shop?.txt?.formValidation?.onlyDigital||"Pole nie może zawierać cyfr."},this.queries={VALIDATE_FIRSTNAME_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        firstname: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_LASTNAME_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        lastname: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_ADDITIONAL_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        companyName: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_NIP_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        country: ${e}\n      }\n      taxNumber: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_STREET_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        street: "${t?.replace?.(/"/g,'\\"')}"\n        country: ${e}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_ZIPCODE_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        zipcode: "${t?.replace?.(/"/g,'\\"')}"\n        country: ${e}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_CITY_QUERY:t=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        city: "${t?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_PHONE_QUERY:(t,e)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        phone: "${t?.replace?.(/"/g,'\\"')}"\n        country: ${e}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_EMAIL_QUERY:t=>`validateClientData(ClientDataInput: {clientData: {\n      email: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n      clientExists\n    }`,VALIDATE_BIRTHDATE_QUERY:t=>`validateClientData(ClientDataInput: {clientData: {\n      birthDate: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_LOGIN_QUERY:(t,e)=>`validateClientData(ClientDataInput: {loginAndPassword: {\n      login: "${t?.replace?.(/"/g,'\\"')}"\n      ${e?`password: "${e?.replace?.(/"/g,'\\"')}"`:""}\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_PASSWORD_QUERY:(t,e)=>`validateClientData(ClientDataInput: {loginAndPassword: {\n      ${e?`login: "${e?.replace?.(/"/g,'\\"')}"`:""}\n      password: "${t?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_INPUTS_QUERY:t=>JSON.stringify({query:`query {\n        validateClientData(${t}) {\n          messages {\n            code\n            message\n          }\n        }\n      }`})},this.events={onInput:t=>{const{target:e}=t;this.vars.changedInputs.push(e),this.debounces.validateInput(e)},onChange:t=>{const{target:e}=t;this.validateCheckbox(e)},onSubmit:async t=>{if("true"===this.form.dataset.handled)return void delete this.form.dataset.handled;t.preventDefault();await this.validateForm()?(this.form.classList.remove("--fail-validation"),this.form.dataset.handled="true",this.form.submit()):this.form.classList.add("--fail-validation")}},this.concatErrorMessages=t=>{const{code:e}=t[0];switch(e){case"incorect_zipcode":return`${this.errorCode[e]} ${this.txt.zipcodeFormat} ${t[1]?.message}`;case"password_to_short":return`${this.errorCode[e]} ${this.vars.passwordLengthMin} ${this.txt.characters}`;case"password_to_long":return`${this.errorCode[e]} ${this.vars.passwordLengthMax} ${this.txt.characters}`;default:return this.errorCode[e]}},this.checkDigital=t=>!!/\d/.test(t),this.validateFirstnameGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,o=this.queries.VALIDATE_FIRSTNAME_QUERY(s);if(n)return this.queries.VALIDATE_FIRSTNAME_QUERY(s);const r=i||await this.fetchData(o),{messages:a}=r?.data?.validateClientData||r;return this.checkDigital(s)?this.txt.onlyDigital:a?.length?this.concatErrorMessages(a):""},this.validateLastnameGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,o=this.queries.VALIDATE_LASTNAME_QUERY(s);if(n)return this.queries.VALIDATE_LASTNAME_QUERY(s);const r=i||await this.fetchData(o),{messages:a}=r?.data?.validateClientData||r;return this.checkDigital(s)?this.txt.onlyDigital:a?.length?this.concatErrorMessages(a):""},this.validateAdditionalGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,o=this.queries.VALIDATE_ADDITIONAL_QUERY(s);if(n)return o;const r=i||await this.fetchData(o),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.validateNipGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,{region:o}=e.dataset,r=this.queries.VALIDATE_NIP_QUERY(s,o);if(n)return r;const a=i||await this.fetchData(r),{messages:l}=a?.data?.validateClientData||a;return l?.length?this.concatErrorMessages(l):""},this.validateStreetGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,{concatFrom:o,region:r}=e.dataset,a=this.form?.querySelector(o),l=`${s} ${a?.value||""}`,c=this.queries.VALIDATE_STREET_QUERY(l,r);if(n)return c;const u=i||await this.fetchData(c),{messages:h}=u?.data?.validateClientData||u;return h?.length?a&&"no_street_number"===h[0].code?(this.setValidityState(a,this.concatErrorMessages(h)),""):this.concatErrorMessages(h):(a&&this.setValidityState(a,""),"")},this.validateZipcodeGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,{region:o}=e.dataset,r=this.queries.VALIDATE_ZIPCODE_QUERY(s,o);if(n)return r;const a=i||await this.fetchData(r),{messages:l}=a?.data?.validateClientData||a;return l?.length?this.concatErrorMessages(l):""},this.validateCityGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,o=this.queries.VALIDATE_CITY_QUERY(s);if(n)return o;const r=i||await this.fetchData(o),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.validatePhone=t=>{const{input:e,getQuery:n}=t;if(n)return"";const{value:i}=e;return i.length>=9?"":this.concatErrorMessages([{code:"incorect_phone"}])},this.validatePhoneGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,{concatFrom:o,region:r}=e.dataset,a=this.form?.querySelector(o),l=a?.value||"",c=l?`${l}${s}`:s;if(!r)return this.validatePhone(t);const u=this.queries.VALIDATE_PHONE_QUERY(c,r);if(n)return u;const h=i||await this.fetchData(u),{messages:d}=h?.data?.validateClientData||h;return d?.length?this.concatErrorMessages(d):""},this.validateEmailGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,o=this.queries.VALIDATE_EMAIL_QUERY(s);if(n)return o;const r=i||await this.fetchData(o),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.validateBirthdateGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,o=this.queries.VALIDATE_BIRTHDATE_QUERY(s);if(n)return o;const r=i||await this.fetchData(o),{messages:a}=r?.data?.validateClientData||r;return a?.length?this.concatErrorMessages(a):""},this.setPasswordState=({element:t,messages:e})=>
1{if(!e.length)return void this.removeValidityState(t);const n=e.filter((t=>this.passwordErrorCodes.includes(t.code)));if(!n.length)return void this.removeValidityState(t);const i=this.concatErrorMessages(n);this.setValidityState(t,i)},this.validateLoginGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,{concatPassword:o}=e.dataset,r=this.form?.querySelector(o),a=r?.value||"",l=this.queries.VALIDATE_LOGIN_QUERY(s,a);if(n)return l;const c=i||await this.fetchData(l),{messages:u}=c?.data?.validateClientData||c;if(a&&this.setPasswordState({element:r,messages:u}),!u?.length)return"";const h=u.filter((t=>!this.passwordErrorCodes.includes(t.code)));return h.length?this.concatErrorMessages(h):""},this.validatePasswordGQL=async t=>{const{input:e,getQuery:n,response:i}=t,{value:s}=e,{concatLogin:o}=e.dataset,r=this.form?.querySelector(o),a=r?.value||"",l=this.queries.VALIDATE_PASSWORD_QUERY(s,a);if(n)return l;const c=i||await this.fetchData(l),{messages:u}=c?.data?.validateClientData||c;if(!u?.length)return"";const h=u.filter((t=>!this.loginErrorCodes.includes(t.code)));return h.length?this.concatErrorMessages(h):""},this.validateIBANGQL=async t=>{const{input:e,getQuery:n}=t,{value:i}=e;if(n)return"";const s=await fetch(`/ajax/payments.php?action=verify_iban&bankAccount=${i}`),o=await s.json(),{errno:r}=o||{};return r?this.concatErrorMessages([{code:"incorrect_iban"}]):""},this.getInputQueries=async t=>(await Promise.all(t.map((async t=>{const e=await this.validateGraphQL({input:t,getQuery:!0});return`${t.id}:${e}`})))).join(""),this.validateInputsGQL=async t=>{const e=await this.getInputQueries(t),n=await this.fetchData(e);n?.data&&Object.keys(n.data).forEach((async e=>{const[i]=t.filter((t=>t.id===e));if(!i)return;const s=await this.validateGraphQL({input:i,response:n.data[e]});this.setValidityState(i,s)}))},this.clientExists=async t=>{const e=this.queries.VALIDATE_EMAIL_QUERY(t),n=await this.fetchData(e),{clientExists:i}=n?.data?.validateClientData||n;return i},this.validateMinLength=t=>{const e=t.getAttribute("minlength");return e?+e<=t.value.length?"":`${this.txt.minimalCharacters}${e}`:""},this.validateMaxLength=t=>{const e=t.getAttribute("maxlength");return e?+e>=t.value.length?"":`${this.txt.maximumCharacters}${e}`:""},this.validateInputs=async t=>{t.forEach((t=>{const e=this.validateNotEmpty(t)||this.validateMinLength(t)||this.validateMaxLength(t);""!==e&&this.setValidityState(t,e)}));const e=[...t].filter((t=>t.closest(".f-feedback:not(.--error)")));if(!e.length)return;[...e].filter((t=>!t.hasAttribute("data-graphql"))).forEach((t=>{this.setValidityState(t,"")}));const n=[...e].filter((t=>t.hasAttribute("data-graphql")));if(!n.length)return;const i=n.findIndex((t=>"iban"===t.dataset.graphql));-1!==i&&(await this.validateInput(n[i]),n.splice(i,1)),n.length&&await this.validateInputsGQL(n)},this.isPhoneNumber=t=>new RegExp("^[0-9*#+() ]+$").test(t),this.getGQLType=t=>{const{graphql:e}=t.dataset,n=e.split(" ");if(2===n.filter((t=>"phone"===t||"email"===t)).length){return this.isPhoneNumber(t.value)?"phone":"email"}return n[0]},this.validateGraphQL=async t=>{const{input:e,getQuery:n,response:i}=t,{graphql:s}=e.dataset;if(!s)return!1;const o=s.split(" ");switch(1===o.length?o[0]:this.getGQLType(e)){case"firstname":return await this.validateFirstnameGQL({input:e,getQuery:n,response:i});case"lastname":return await this.validateLastnameGQL({input:e,getQuery:n,response:i});case"additional":case"firm":return await this.validateAdditionalGQL({input:e,getQuery:n,response:i});case"nip":return await this.validateNipGQL({input:e,getQuery:n,response:i});case"street":return await this.validateStreetGQL({input:e,getQuery:n,response:i});case"zipcode":return await this.validateZipcodeGQL({input:e,getQuery:n,response:i});case"city":return await this.validateCityGQL({input:e,getQuery:n,response:i});case"phone":return await this.validatePhoneGQL({input:e,getQuery:n,response:i});case"email":return await this.validateEmailGQL({input:e,getQuery:n,response:i});case"birthdate":return await this.validateBirthdateGQL({input:e,getQuery:n,response:i});case"login":return await this.validateLoginGQL({input:e,getQuery:n,response:i});case"password":return await this.validatePasswordGQL({input:e,getQuery:n,response:i});case"iban":return await this.validateIBANGQL({input:e,getQuery:n,response:i});default:return this.setValidityState(e,"")}},this.validateInput=async t=>{const e=[...new Set(this.vars.changedInputs)].filter((t=>"username"!==t.autocomplete&&"current-password"!==t.autocomplete));if(this.vars.changedInputs=[],e.length>1)return this.removeAllValidityState(),this.validateForm(),!1;const{concatTo:n}=t.dataset;if(n)return this.validateInput(this.form.querySelector(n));let i=this.validateNotEmpty(t)||this.validateMinLength(t)||this.validateMaxLength(t);if(""!==i)return this.setValidityState(t,i);return t.getAttribute("data-graphql")?(i=await this.validateGraphQL({input:t}),this.setValidityState(t,i)):this.setValidityState(t,i)},this.validateSelects=t=>{t.forEach((t=>{this.validateSelect(t)}))},this.validateSelect=t=>{if(!t)return!0;let e="";return t.closest(".--placeholder")&&t.selectedIndex<1?(e=this.txt.noOptionSelected,this.setValidityState(t,e)):this.setValidityState(t,e)},this.validateCheckboxes=t=>{t.forEach((t=>{this.validateCheckbox(t)}))},this.validateCheckbox=t=>!t||(t.checked?this.setValidityState(t,"",!0):this.setValidityState(t,"error",!0)),this.validateObjectGQL=async(t={})=>{let e="";for(const[n,i]of Object.entries(t)){const s={dataset:{}};s.value="street"===n&&t.streetNumber?`${i} ${t.streetNumber}`:i,s.dataset.region=t.region,s.dataset.graphql=n;const o=await this.validateGraphQL({input:s,getQuery:!0});o&&(e+=`${n}:${o}`)}if(""===e)return!0;const n=await this.fetchData(e);if(!n?.data)return!0;const i=[];for(const[e,s]of Object.entries(n.data)){const o={dataset:{}};o.value="street"===e&&t.streetNumber?`${s} ${t.streetNumber}`:s,o.dataset.region=t.region,o.dataset.graphql=e,i.push(await this.validateGraphQL({input:o,response:n.data[e]}))}return!i.filter((t=>""!==t)).length},this.validateObjectRequired=(t={},e=[])=>{if(!e.length)return!0;for(const[n,i]of Object.entries(t))if(e.includes(n)&&""===i)return validRequired=!1,!1;return!0},this.validateObject=async(t={},e)=>{if(!this.validateObjectRequired(t,e))return!1;return!!await this.validateObjectGQL(t,e)},this.validateForm=async t=>{const e=t||this.form,n=e.querySelectorAll('.f-control.--validate:not(:disabled):not([type="checkbox"])'),i=[...n].filter((t=>t.closest(".f-feedback:not(.--error):not(.--success)")));await this.validateInputs(i);const s=e.querySelectorAll("select.f-select.--validate:not(:disabled), div.f-select.--validate select:not(:disabled)"),o=[...s].filter((t=>t.closest(".f-feedback:not(.--error):not(.--success)")));this.validateSelects(o);const r=e.querySelectorAll('.f-control.--validate[type="checkbox"]:not(:disabled)'),a=[...r].filter((t=>t.closest(".--checkbox:not(.--error):not(.--success), .--switch:not(.--error):not(.--success)")));this.validateCheckboxes(a);const l=[...n].filter((t=>t.closest(".f-feedback.--error"))),c=[...s].filter((t=>t.closest(".f-feedback.--error"))),u=[...r].filter((t=>t.closest(".--checkbox.--error, .--switch.--error, .f-feedback.--error")));return l.length||c.length||u.length?("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(t,!1),!1):("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(t,!0),!0)},this.validateNotEmpty=t=>t.required||0!==t.value.length?t.value.length>0?"":this.txt.mandatoryField:"",this.createMessageElement=t=>{const e=document.createElement("div");return e.classList.add("f-message"),e.setAttribute("aria-live","polite"),t.append(e),e},this.setValidityState=(t,e,n)=>{if(!(t&&t instanceof HTMLElement))return!1;const i=t.closest(".f-feedback")||t.parentNode;i.classList.remove("--success","--error");const s=!n&&(i.querySelector(".f-message")||this.createMessageElement(i));return i.classList.toggle("--empty",""===t.value),""===e?(i.classList.add("--success"),s&&(s.textContent=""),"function"==typeof this.callbacks.validate&&this.callbacks.validate(t,!0),!0):(i.classList.add("--error"),s&&(s.textContent=e),"function"==typeof this.callbacks.validate&&this.callbacks.validate(t,!1),!1)},this.getValidityState=t=>{if(!t)return"";const e=t.closest(".f-feedback")||t.parentNode;return e.classList.contains("--success")?"success":e.classList.contains("--error")?"error":""},this.removeAllValidityState=t=>{(t||this.form).querySelectorAll(".f-control.--validate").forEach((t=>{this.removeValidityState(t)}))},this.removeValidityState=t=>{const e=t.closest(".f-feedback")||t.parentNode;e.classList.remove("--success","--error");const n=e.querySelector(".f-message");n&&(n.textContent="")},this.removeEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((t=>{"checkbox"!==t.type?t.removeEventListener("input",this.events.onInput):t.removeEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.removeEventListener("submit",this.events.onSubmit))},this.initEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((t=>{"checkbox"!==t.type?t.addEventListener("input",this.events.onInput):t.addEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.addEventListener("submit",this.events.onSubmit))},this.init=()=>{this.form=e||document.querySelector(n)||document,this.initEvents()},this.destroy=()=>{this.removeEvents()},this.reInit=()=>{this.destroy(),this.init()},this.debounces={validateInput:this.debounce(this.validateInput)}}app_shop.graphql||(app_shop.graphql={}),app_shop.graphql.trackingEvents=async t=>{const{headers:e}=t||{};if(!e)return!1;const n=e.get("x-iai-tracking-events");if(!n||+n<1)return!1;const i=JSON.stringify({query:"query {\n      trackingEvents\n    }"});try{const t=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?trackingEvents`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:i}),e=await t.json();return e.data.trackingEvents?.forEach((t=>{const e=new Function(t);try{e()}catch(t){}})),e.data.trackingEvents}catch(t){return[]}},app_shop.fn.ajaxLoadSite=function(t){if((()=>{const t=document.getElementById("ajaxLoadSite"),e=document.getElementById("ajaxLoadSite_cover");t&&t.remove(),e&&e.remove()})(),!t)return;const e=`\n    <div id="ajaxLoadSite_cover" style="height:${document.body.scrollHeight}px;width:100%;position:absolute;
1left:0;top:0;"></div>\n    <div id="ajaxLoadSite" style="left:50%;transform:translateX(-50%);"></div>\n  `;document.body.insertAdjacentHTML("beforeend",e)},app_shop.fn.ajaxLoadSiteMessage=function(t){const e=document.getElementById("ajaxLoadSite");e&&e.append(t)};class WebAuthn{constructor(t={}){this.IAIAccountsUrl=t.IAIAccountsUrl||"https://accounts.idosell.com/",this.urls=t.urls||{generateRegister:`${this.IAIAccountsUrl}webAuthn/generateRegisterRequest.php`,register:`${this.IAIAccountsUrl}webAuthn/register.php`,generateLogin:`${this.IAIAccountsUrl}webAuthn/generateLoginRequest.php`,login:`${this.IAIAccountsUrl}webAuthn/login.php`,gql:"/graphql/v1/"},this.supportMac=t.supportMac??!0,this.supportIos=t.supportIos??!0,this.supportSafari=t.supportSafari??!0,this.supportOpera=t.supportOpera??!0}async fetchDataGQL(t={}){const{data:e,url:n,urlParameter:i=""}=t;if(!e)return!1;const s=`${n||this.urls.gql||"/graphql/v1/"}${i}`;try{const t=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){throw new Error(`A connection error occurred. It was not possible to retrieve data from ${s}`)}}async fetchData(t={}){const{data:e,url:n}=t;if(!e||!n)return!1;try{const t=await fetch(n,{method:"POST",body:e,credentials:"include",cache:"no-cache"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){throw new Error(`A connection error occurred. It was not possible to retrieve data from ${n}`)}}browserNotSupported(){const t=new Error("Browser not supported.");throw t.code=1,t}isOpera(){const{browser:t}=document.documentElement.dataset;return!!t&&("Opera"===t||"Safari"===t&&navigator.userAgent.indexOf("OP")>-1)}isNotSupportedSafari(){const{browser:t,browserVersion:e}=document.documentElement.dataset;return!(!t||!e)&&("Safari"===t&&+e<15)}async checkBrowserSupport(){return!(!window.fetch||!navigator.credentials||!navigator.credentials.create||!window.PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable||!await(window.PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable())||!this.supportMac&&app_shop.vars.isMac||!this.supportIos&&app_shop.vars.isIos||!this.supportSafari&&app_shop.vars.isSafari||!this.supportOpera&&this.isOpera()||this.isNotSupportedSafari())}checkResponse(t){if(!t)throw new Error("Failed to retrieve data.");if("error"===t.status)throw new Error(t.errorMsg||"Unknown error occured.")}recursiveBase64StrToArrayBuffer(t){const e="=?BINARY?B?";let n={};if(Array.isArray(t))n=t.map((t=>this.recursiveBase64StrToArrayBuffer(t)));else{if("object"!=typeof t)return t;Object.keys(t).forEach((i=>{if("string"==typeof t[i]){let s=t[i];if(s.startsWith(e)&&s.endsWith("?=")){s=s.slice(11,-2);const t=window.atob(s),e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);n[i]=e.buffer}else n[i]=t[i]}else n[i]=this.recursiveBase64StrToArrayBuffer(t[i])}))}return n}arrayBufferToBase64(t){const e=new Uint8Array(t),n=Array.from(e,(t=>String.fromCharCode(t))).join("");return window.btoa(n)}async registration({userLogin:t="",authorizeToken:e=""}){if(await this.checkBrowserSupport()||this.browserNotSupported(),!t)throw new Error('"userLogin" is required.');if(!e)throw new Error('"authorizeToken" is required. GraphQL expressCheckoutVerifyOtp > verificationToken.');const n=await this.fetchData({data:e,url:this.urls.generateRegister});this.checkResponse(n);const i=JSON.parse(n.data),s=this.recursiveBase64StrToArrayBuffer(i),o=await navigator.credentials.create(s),{clientDataJSON:r,attestationObject:a}=o?.response||{},l={userLogin:t,domain:window.location.hostname,authenticatorTransportMethods:o.response.getTransports?o.response.getTransports():[],clientDataJSONBase64:r?this.arrayBufferToBase64(r):"",attestationObjectBase64:a?this.arrayBufferToBase64(a):""},c=await this.fetchData({data:JSON.stringify(l),url:this.urls.register});this.checkResponse(c)}async login(){await this.checkBrowserSupport()||this.browserNotSupported();const t={domain:window.location.hostname},e=await this.fetchData({data:JSON.stringify(t),url:this.urls.generateLogin});this.checkResponse(e);const n=JSON.parse(e.data),i=this.recursiveBase64StrToArrayBuffer(n),s=await navigator.credentials.get(i),{rawId:o,response:{clientDataJSON:r,authenticatorData:a,signature:l,userHandle:c}}=s||{},u={domain:window.location.hostname,publicKeyCredentialBinRawId:o?this.arrayBufferToBase64(o):null,clientDataJSONBase64:r?this.arrayBufferToBase64(r):null,authenticatorDataBase64:a?this.arrayBufferToBase64(a):null,
1signatureBase64:l?this.arrayBufferToBase64(l):null,userHandleBinBase64:c?this.arrayBufferToBase64(c):null},h=await this.fetchData({data:JSON.stringify(u),url:this.urls.login});if(this.checkResponse(h),"success"!==h.status)throw new Error(h.ms);return await this.loginToShop(h.loginToken)}async loginToShop(t){if(!t)throw new Error('"loginToken" is invalid.');const e=JSON.stringify({query:`mutation{\n        loginByIAIAccountsToken(token: "${t}") {\n          status\n          login\n        }\n      }`}),n=await this.fetchDataGQL({data:e,urlParameter:"?mutation=loginByToken"});return n?.data?.loginByIAIAccountsToken}}app_shop.fn.cookie={get:function(t){const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const i=e[n].trim(),[s,o]=i.split("=");if(s===t)return decodeURIComponent(o)}return null},set:function(t,e,n){let i="";if(n){const t=new Date;t.setTime(t.getTime()+24*n*60*60*1e3),i=`; expires=${t.toUTCString()}`}document.cookie=`${t}=${encodeURIComponent(e)}${i}; path=/`},remove:function(t){this.set(t,"",-1)}},app_shop.vars.xhr="",app_shop.getFile=t=>{const e=document.createElement("script");e.src=`${app_shop.urls.prefix}${t}.js`,document.body.appendChild(e)},app_shop.getOuterJS=t=>{t.forEach((t=>{const e=document.createElement("script");e.src=`${app_shop.urls.prefix}${t}.js`,document.body.appendChild(e)}))},app_shop.run=(t,e,n,i)=>{(Array.isArray(e)?e:[e]).forEach((e=>{app_shop.fnrun[e]=app_shop.fnrun[e]||[],app_shop.fnrun[e].push({w:n,fn:t,a:i})}))},app_shop.runArr=(t,e,n)=>{t&&t.forEach((t=>{const{w:e,fn:i,a:s}=t;(!e||null!==document.querySelector(e))&&(n&&e&&!s||i())}))};class iaiGetAjax{constructor(){this.data={},this.cache={},this.fn={}}addToData(t,e,n){this.data[t]||(this.data[t]=e,this.fn[t]=n)}projector(t){this.addToData("Projector",{format:"json",params:{}},t)}basket(t){this.addToData("Basket",{},t)}wishlist(t){this.addToData("Wishlist",{},t)}comparers(t){this.addToData("Comparers",{},t)}snippets(t,e){this.addToData("Snippets",{format:"json",params:{mobile:e.mobile,tablet:e.tablet,pc:e.pc,request_uri:e.request_uri,additional_ajax:e.additional_ajax}},t)}toplayersAndWidgets(t,e){this.addToData("ToplayersAndWidgets",{format:"json",params:{mobile:e.mobile,tablet:e.tablet,pc:e.pc,request_uri:e.request_uri,additional_ajax:e.additional_ajax}},t)}reInit(t=[]){t.length?(Object.keys(this.data).forEach((e=>{t.includes(e)||(delete this.data[e],delete this.fn[e],delete this.cache[e])})),this.init()):this.init()}init(){const t=`request=${JSON.stringify(this.data)}`;fetch("/ajax/get.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}).then((t=>t.json())).then((t=>{this.cache=t,Object.values(this.fn).forEach((t=>t(this.cache)))})).catch((t=>{}))}}const iaiGet=new iaiGetAjax;app_shop.fn.change_url=t=>{history.pushState&&history.pushState({foo:"bar"},"",decodeURIComponent(t))},app_shop.fn.evalJSFromHtml=function(t){(t?.querySelectorAll("script.ajaxLoad")||[]).forEach((t=>{const e=document.createElement("script");e.innerHTML=t.innerHTML,document.body.appendChild(e)}))},app_shop.fn.load=async(t,e,n,i="")=>{const s=`${t}${i}`,o=new AbortController,r=setTimeout((()=>o.abort()),16e3);e.forEach((([t])=>document.querySelector(t)?.classList.add("load-content")));try{const i=await fetch(s,{signal:o.signal}),r=await i.text(),a=(new DOMParser).parseFromString(r,"text/html");e.forEach((t=>{const[e,n]=t,i=document.querySelector(e),s=a.querySelector(n);i&&s&&(i.outerHTML=s.outerHTML)})),app_shop.fn.change_url(t),app_shop.fn.evalJSFromHtml(a),n&&n(a)}catch(e){window.location.href=t}finally{clearTimeout(r)}},app_shop.fn.variety=(t,e,n)=>1===+t?e:n,app_shop.fn.setGrid=()=>{if(1===app_shop.vars.view){return void document.querySelectorAll(".setMobileGrid").forEach((t=>{const e=t.dataset.item,n=document.querySelector(e);if(!n)return;const i=document.createElement("del");i.className="domHandler",i.dataset.item=e,i.style.display="none",t.before(i),t.append(n)}))}document.querySelectorAll(".domHandler").forEach((t=>{const e=t.dataset.item,n=document.querySelector(e);n&&(t.after(n),t.remove())}))},app_shop.fn.runAjaxFn=()=>
1{if(app_shop.runArr(app_shop.fnrun.all,"all",!0),app_shop.vars.view)return void app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view,!0);const t=document.getElementById("viewType");if(!t)return;const{width:e}=window.getComputedStyle(t);app_shop.vars.view=parseInt(e,10),app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view,!0)},app_shop.runApp=()=>{const t=document.getElementById("viewType"),{width:e}=window.getComputedStyle(t)||{};app_shop.vars.view=parseInt(e,10)||1,app_shop.runArr(app_shop.fnrun.all,"all"),app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid(),app_shop.getOuterJS(app_shop.files),iaiGet.init();let n,i=app_shop.vars.view;const s=()=>{clearTimeout(n),n=setTimeout((()=>{const{width:e}=window.getComputedStyle(t);app_shop.vars.view=parseInt(e,10),app_shop.vars.view!==i&&(i=app_shop.vars.view,app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid())}),100)};window.removeEventListener("resize",s),window.addEventListener("resize",s)},app_shop.fn.getRwdSrc=t=>{if(!t)return"";const{src_mobile:e,src_tablet:n,src_desktop:i}=t.dataset||t.data()||{},s=[e,n,i,i][app_shop.vars.view-1];return s||""},app_shop.fn.rwdBanner=(t,e)=>{t&&e&&e.forEach((e=>{app_shop.run((()=>{document.querySelectorAll(t).forEach((t=>{t.querySelectorAll("img.rwd-src").forEach((t=>{t.setAttribute("src",app_shop.fn.getRwdSrc(t))}))}))}),e,t)}))},String.prototype.format=function(...t){let e=this;return t.forEach((t=>{e=e.replace(/%[a-z]/,t)})),e},app_shop.fn.news_data=function(t){const{data:e,month_names:n,format:i="%d-%m-%y"}=t||{};if(!e)return!1;const s=e.split("-");return!(s.length<3)&&(n&&(s[1]=n[parseInt(s[1],10)-1]),i.format(s[2],s[1],s[0]))},app_shop.fn.setHeight=t=>{const{selector:e,selectors:n,container:i}=t||{};if(!e&&!n||!i)return;const s=document.querySelector(i);if(!s)return;const o=t=>{if(!t)return 0;const{marginLeft:e,marginRight:n}=window.getComputedStyle(t);return t.offsetWidth+parseInt(e,10)+parseInt(n,10)},r=o(s),a=o(s.firstElementChild),l=t=>{if(!document.querySelectorAll(t).length)return;if(!a)return;const e=Math.round(r/a);if(!e)return;const n=[...s.children];for(let i=0;i<n.length;i+=e){const s=n.slice(i,i+e).map((e=>e.querySelector(t))),o=Math.max(...s.map((t=>t?.offsetHeight)));s.forEach((t=>{t&&(t.style.minHeight=`${o}px`)}))}};e&&l(e),n?.length&&n.forEach((t=>l(t)))};var markerClusterer=function(t){"use strict";function e(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}class n{static isAdvancedMarkerAvailable(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class i{constructor(t){let{markers:e,position:n}=t;this.markers=e,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(0===this.markers.length&&!this._position)return;const t=new google.maps.LatLngBounds(this._position,this._position);for(const e of this.markers)t.extend(n.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((t=>n.getVisible(t))).length}push(t){this.markers.push(t)}delete(){this.marker&&(n.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}const s=(t,e,i,s)=>{const r=o(t.getBounds(),e,s);return i.filter((t=>r.contains(n.getPosition(t))))},o=(t,e,n)=>{const{northEast:i,southWest:s}=l(t,e),o=c({northEast:i,southWest:s},n);return u(o,e)},r=(t,e,n)=>
vendor: 10,153 bytes, line 1
1{const i=o(t,e,n),s=i.getNorthEast(),r=i.getSouthWest();return[r.lng(),r.lat(),s.lng(),s.lat()]},a=(t,e)=>{const n=(e.lat-t.lat)*Math.PI/180,i=(e.lng-t.lng)*Math.PI/180,s=Math.sin(n/2),o=Math.sin(i/2),r=s*s+Math.cos(t.lat*Math.PI/180)*Math.cos(e.lat*Math.PI/180)*o*o;return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},l=(t,e)=>({northEast:e.fromLatLngToDivPixel(t.getNorthEast()),southWest:e.fromLatLngToDivPixel(t.getSouthWest())}),c=(t,e)=>{let{northEast:n,southWest:i}=t;return n.x+=e,n.y-=e,i.x-=e,i.y+=e,{northEast:n,southWest:i}},u=(t,e)=>{let{northEast:n,southWest:i}=t;const s=e.fromDivPixelToLatLng(i),o=e.fromDivPixelToLatLng(n);return new google.maps.LatLngBounds(s,o)};class h{constructor(t){let{maxZoom:e=16}=t;this.maxZoom=e}noop(t){let{markers:e}=t;return p(e)}}class d extends h{constructor(t){var{viewportPadding:n=60}=t;super(e(t,["viewportPadding"])),this.viewportPadding=60,this.viewportPadding=n}calculate(t){let{markers:e,map:n,mapCanvasProjection:i}=t;return n.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:!1}:{clusters:this.cluster({markers:s(n,i,e,this.viewportPadding),map:n,mapCanvasProjection:i})}}}const p=t=>t.map((t=>new i({position:n.getPosition(t),markers:[t]})));var m=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var i,s,o;if(Array.isArray(e)){if((i=e.length)!=n.length)return!1;for(s=i;0!=s--;)if(!t(e[s],n[s]))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=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(s=i;0!=s--;)if(!Object.prototype.hasOwnProperty.call(n,o[s]))return!1;for(s=i;0!=s--;){var r=o[s];if(!t(e[r],n[r]))return!1}return!0}return e!=e&&n!=n}));const f=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class _{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[e,n]=new Uint8Array(t,0,2);if(219!==e)throw new Error("Data does not appear to be in a KDBush format.");const i=n>>4;if(1!==i)throw new Error(`Got v${i} data when expected v1.`);const s=f[15&n];if(!s)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[r]=new Uint32Array(t,4,1);return new _(r,o,s,t)}constructor(t,e=64,n=Float64Array,i){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=n,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const s=f.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,r=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-r%8)%8;if(s<0)throw new Error(`Unexpected typed array class: ${n}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+r+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+o+r+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+r+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+s]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=t,this.coords[this._pos++]=e,n}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return g(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:o,nodeSize:r}=this,a=[0,s.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=r){for(let r=h;r<=u;r++){const a=o[2*r],c=o[2*r+1];a>=t&&a<=n&&c>=e&&c<=i&&l.push(s[r])}continue}const d=h+u>>1,p=o[2*d],m=o[2*d+1];p>=t&&p<=n&&m>=e&&m<=i&&l.push(s[d]),(0===c?t<=p:e<=m)&&(a.push(h),a.push(d-1),a.push(1-c)),(0===c?n>=p:i>=m)&&(a.push(d+1),a.push(u),a.push(1-c))}return l}within(t,e,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:s,nodeSize:o}=this,r=[0,i.length-1,0],a=[],l=n*n;for(;r.length;){const c=r.pop()||0,u=r.pop()||0,h=r.pop()||0;if(u-h<=o){for(let n=h;n<=u;n++)x(s[2*n],s[2*n+1],t,e)<=l&&a.push(i[n]);continue}const d=h+u>>1,p=s[2*d],m=s[2*d+1];x(p,m,t,e)<=l&&a.push(i[d]),(0===c?t-n<=p:e-n<=m)&&(r.push(h),r.push(d-1),r.push(1-c)),(0===c?t+n>=p:e+n>=m)&&(r.push(d+1),r.push(u),r.push(1-c))}return a}}function g(t,e,n,i,s,o){if(s-i<=n)return;const r=i+s>>1;v(t,e,r,i,s,o),g(t,e,n,i,r-1,1-o),g(t,e,n,r+1,s,1-o)}function v(t,e,n,i,s,o){for(;s>i;){if(s-i>600){const r=s-i+1,a=n-i+1,l=Math.log(r),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(r-c)/r)*(a-r/2<0?-1:1);v(t,e,n,Math.max(i,Math.floor(n-a*c/r+u)),Math.min(s,Math.floor(n+(r-a)*c/r+u)),o)}const r=e[2*n+o];let a=i,l=s;for(y(t,e,i,n),e[2*s+o]>r&&y(t,e,i,s);a<l;){for(y(t,e,a,l),a++,l--;e[2*a+o]<r;)a++;for(;e[2*l+o]>r;)l--}e[2*i+o]===r?y(t,e,i,l):(l++,y(t,e,l,s)),l<=n&&(i=l+1),n<=l&&(s=l-1)}}function y(t,e,n,i){b(t,n,i),b(e,2*n,2*i),b(e,2*n+1,2*i+1)}function b(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function x(t,e,n,i){const s=t-n,o=e-i;return s*s+o*o}const w={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},L=Math.fround||(k=new Float32Array(1),t=>(k[0]=+t,k[0]));var k;class T{constructor(t){this.options=Object.assign(Object.create(w),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:e,minZoom:n,maxZoom:i}=this.options;t.length;this.points=t;const s=[];for(let e=0;e<t.length;e++){const n=t[e];if(!n.geometry)continue;const[i,o]=n.geometry.coordinates,r=L(E(i)),a=L(M(o));s.push(r,a,1/0,e,-1,1),this.options.reduce&&s.push(0)}let o=this.trees[i+1]=this._createTree(s);for(let t=i;t>=n;t--){Date.now();o=this.trees[t]=this._createTree(this._cluster(o,t))}return this}getClusters(t,e){let n=((t[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[1]));let s=180===t[2]?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,s=180;else if(n>s){const t=this.getClusters([n,i,180,o],e),r=this.getClusters([-180,i,s,o],e);return t.concat(r)}const r=this.trees[this._limitZoom(e)],a=r.range(E(n),M(o),E(s),M(i)),l=r.data,c=[];for(const t of a){const e=this.stride*t;c.push(l[e+5]>1?C(l,e,this.clusterProps):this.points[l[e+3]])}return c}getChildren(t){const e=this._getOriginId(t),n=this._getOriginZoom(t),i="No cluster with the specified id.",s=this.trees[n];if(!s)throw new Error(i);const o=s.data;if(e*this.stride>=o.length)throw new Error(i);const r=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=o[e*this.stride],l=o[e*this.stride+1],c=s.within(a,l,r),u=[];for(const e of c){const n=e*this.stride;o[n+4]===t&&u.push(o[n+5]>1?C(o,n,this.clusterProps):this.points[o[n+3]])}if(0===u.length)throw new Error(i);return u}getLeaves(t,e,n){e=e||10,n=n||0;const i=[];return this._appendLeaves(i,t,e,n,0),i}getTile(t,e,n){const i=this.trees[this._limitZoom(t)],s=Math.pow(2,t),{extent:o,radius:r}=this.options,a=r/o,l=(n-a)/s,c=(n+1+a)/s,u={features:[]};return this._addTileFeatures(i.range((e-a)/s,l,(e+1+a)/s,c),i.data,e,n,s,u),0===e&&this._addTileFeatures(i.range(1-a/s,l,1,c),i.data,s,n,s,u),e===s-1&&this._addTileFeatures(i.range(0,l,a/s,c),i.data,-1,n,s,u),u.features.length?u:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){const n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e}_appendLeaves(t,e,n,i,s){const o=this.getChildren(e);for(const e of o){const o=e.properties;if(o&&o.cluster?s+o.point_count<=i?s+=o.point_count:s=this._appendLeaves(t,o.cluster_id,n,i,s):s<i?s++:t.push(e),t.length===n)break}return s}_createTree(t){const e=new _(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<t.length;n+=this.stride)e.add(t[n],t[n+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,n,i,s,o){for(const r of t){const t=r*this.stride,a=e[t+5]>1;let l,c,u;if(a)l=S(e,t,this.clusterProps),c=e[t],u=e[t+1];else{const n=this.points[e[t+3]];l=n.properties;const[i,s]=n.geometry.coordinates;c=E(i),u=M(s)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*s-n)),Math.round(this.options.extent*(u*s-i))]],tags:l};let d;d=a||this.options.generateId?e[t+3]:this.points[e[t+3]].id,void 0!==d&&(h.id=d),o.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){const{radius:n,extent:i,reduce:s,minPoints:o}=this.options,r=n/(i*Math.pow(2,e)),a=t.data,l=[],c=this.stride;for(let n=0;n<a.length;n+=c){if(a[n+2]<=e)continue;a[n+2]=e;const i=a[n],u=a[n+1],h=t.within(a[n],a[n+1],r),d=a[n+5];let p=d;for(const t of h){const n=t*c;a[n+2]>e&&(p+=a[n+5])}if(p>d&&p>=o){let t,o=i*d,r=u*d,m=-1;const f=(n/c<<5)+(e+1)+this.points.length;for(const i of h){const l=i*c;if(a[l+2]<=e)continue;a[l+2]=e;const u=a[l+5];o+=a[l]*u,r+=a[l+1]*u,a[l+4]=f,s&&(t||(t=this._map(a,n,!0),m=this.clusterProps.length,this.clusterProps.push(t)),s(t,this._map(a,l)))}a[n+4]=f,l.push(o/p,r/p,1/0,f,-1,p),s&&l.push(m)}else{for(let t=0;t<c;t++)l.push(a[n+t]);if(p>1)for(const t of h){const n=t*c;if(!(a[n+2]<=e)){a[n+2]=e;for(let t=0;t<c;t++)l.push(a[n+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,n){if(t[e+5]>1){const i=this.clusterProps[t[e+6]];return n?Object.assign({},i):i}const i=this.points[t[e+3]].properties,s=this.options.map(i);return n&&s===i?Object.assign({},s):s}}function C(t,e,n){return{type:"Feature",id:t[e+3],properties:S(t,e,n),geometry:{type:"Point",coordinates:[(i=t[e],360*(i-.5)),P(t[e+1])]}};var i}function S(t,e,n){const i=t[e+5],s=i>=1e4?`${Math.round(i/1e3)}
1k`:i>=1e3?Math.round(i/100)/10+"k":i,o=t[e+6],r=-1===o?{}:Object.assign({},n[o]);return Object.assign(r,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:s})}function E(t){return t/360+.5}function M(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 P(t){const e=(180-360*t)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}class A extends h{constructor(t){var{maxZoom:n,radius:i=60}=t,s=e(t,["maxZoom","radius"]);super({maxZoom:n}),this.state={zoom:-1},this.superCluster=new T(Object.assign({maxZoom:this.maxZoom,radius:i},s))}calculate(t){let e=!1;const i={zoom:t.map.getZoom()};if(!m(t.markers,this.markers)){e=!0,this.markers=[...t.markers];const i=this.markers.map((t=>{const e=n.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(i)}return e||(this.state.zoom<=this.maxZoom||i.zoom<=this.maxZoom)&&(e=!m(this.state,i)),this.state=i,e&&(this.clusters=this.cluster(t)),{cluster
vendor: 6,217 bytes, line 1
1s:this.clusters,changed:e}}cluster(t){let{map:e}=t;return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map((t=>this.transformCluster(t)))}transformCluster(t){let{geometry:{coordinates:[e,s]},properties:o}=t;if(o.cluster)return new i({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((t=>t.properties.marker)),position:{lat:s,lng:e}});const r=o.marker;return new i({markers:[r],position:n.getPosition(r)})}}class I{constructor(t,e){this.markers={sum:t.length};const n=e.map((t=>t.count)),i=n.reduce(((t,e)=>t+e),0);this.clusters={count:e.length,markers:{mean:i/e.length,sum:i,min:Math.min(...n),max:Math.max(...n)}}}}class B{render(t,e,i){let{count:s,position:o}=t;const r=`<svg fill="${s>Math.max(10,e.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${s}</text>\n</svg>`,a=`Cluster of ${s} markers`,l=Number(google.maps.Marker.MAX_ZINDEX)+s;if(n.isAdvancedMarkerAvailable(i)){const t=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;t.setAttribute("transform","translate(0 25)");const e={map:i,position:o,zIndex:l,title:a,content:t};return new google.maps.marker.AdvancedMarkerElement(e)}const c={position:o,zIndex:l,title:a,icon:{url:`data:image/svg+xml;base64,${btoa(r)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)}}class z{constructor(){!function(t,e){for(let n in e.prototype)t.prototype[n]=e.prototype[n]}(z,google.maps.OverlayView)}}var D;t.MarkerClustererEvents=void 0,(D=t.MarkerClustererEvents||(t.MarkerClustererEvents={})).CLUSTERING_BEGIN="clusteringbegin",D.CLUSTERING_END="clusteringend",D.CLUSTER_CLICK="click";const N=(t,e,n)=>{n.fitBounds(e.bounds)};return t.AbstractAlgorithm=h,t.AbstractViewportAlgorithm=d,t.Cluster=i,t.ClusterStats=I,t.DefaultRenderer=B,t.GridAlgorithm=class extends d{constructor(t){var{maxDistance:n=4e4,gridSize:i=40}=t;super(e(t,["maxDistance","gridSize"])),this.clusters=[],this.state={zoom:-1},this.maxDistance=n,this.gridSize=i}calculate(t){let{markers:e,map:n,mapCanvasProjection:i}=t;const o={zoom:n.getZoom()};let r=!1;return this.state.zoom>=this.maxZoom&&o.zoom>=this.maxZoom||(r=!m(this.state,o)),this.state=o,n.getZoom()>=this.maxZoom?{clusters:this.noop({markers:e}),changed:r}:{clusters:this.cluster({markers:s(n,i,e,this.viewportPadding),map:n,mapCanvasProjection:i})}}cluster(t){let{markers:e,map:n,mapCanvasProjection:i}=t;return this.clusters=[],e.forEach((t=>{this.addToClosestCluster(t,n,i)})),this.clusters}addToClosestCluster(t,e,s){let r=this.maxDistance,l=null;for(let e=0;e<this.clusters.length;e++){const i=this.clusters[e],s=a(i.bounds.getCenter().toJSON(),n.getPosition(t).toJSON());s<r&&(r=s,l=i)}if(l&&o(l.bounds,s,this.gridSize).contains(n.getPosition(t)))l.push(t);else{const e=new i({markers:[t]});this.clusters.push(e)}}},t.MarkerClusterer=class extends z{constructor(t){let{map:e,markers:n=[],algorithmOptions:i={},algorithm:s=new A(i),renderer:o=new B,onClusterClick:r=N}=t;super(),this.markers=[...n],this.clusters=[],this.algorithm=s,this.renderer=o,this.onClusterClick=r,e&&this.setMap(e)}addMarker(t,e){this.markers.includes(t)||(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach((t=>{this.addMarker(t,!0)})),e||this.render()}removeMarker(t,e){const i=this.markers.indexOf(t);return-1!==i&&(n.setMap(t,null),this.markers.splice(i,1),e||this.render(),!0)}removeMarkers(t,e){let n=!1;return t.forEach((t=>{n=this.removeMarker(t,!0)||n})),n&&!e&&this.render(),n}clearMarkers(t){this.markers.length=0,t||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTERING_BEGIN,this);const{clusters:i,changed:s}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(s||null==s){const t=new Set;for(const e of i)1==e.markers.length&&t.add(e.markers[0]);const e=[];for(const i of this.clusters)null!=i.marker&&(1==i.markers.length?t.has(i.marker)||n.setMap(i.marker,null):e.push(i.marker));this.clusters=i,this.renderClusters(),requestAnimationFrame((()=>e.forEach((t=>n.setMap(t,null)))))}google.maps.event.trigger(this,t.MarkerClustererEvents.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((t=>n.setMap(t,null))),this.clusters.forEach((t=>t.delete())),this.clusters=[]}renderClusters(){const e=new I(this.markers,this.clusters),i=this.getMap();this.clusters.forEach((s=>{1===s.markers.length?s.marker=s.markers[0]:(s.marker=this.renderer.render(s,e,i),s.markers.forEach((t=>n.setMap(t,null))),this.onClusterClick&&s.marker.addListener("click",(e=>{google.maps.event.trigger(this,t.MarkerClustererEvents.CLUSTER_CLICK,s),this.onClusterClick(e,s,i)}))),n.setMap(s.marker,i)}))}},t.MarkerUtils=n,t.NoopAlgorithm=class extends h{constructor(t){super(e(t,[]))}calculate(t){let{markers:e,map:n,mapCanvasProjection:i}=t;return{clusters:this.cluster({markers:e,map:n,mapCanvasProjection:i}),changed:!1}}cluster(t){return this.noop(t)}},t.SuperClusterAlgorithm=A,t.SuperClusterViewportAlgorithm=class extends d{constructor(t){var{maxZoom:n,radius:i=60,viewportPadding:s=60}=t,o=e(t,["maxZoom","radius","viewportPadding"]);super({maxZoom:n,viewportPadding:s}),this.superCluster=new T(Object.assign({maxZoom:this.maxZoom,radius:i},o)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(t){const e={zoom:Math.round(t.map.getZoom()),view:r(t.map.getBounds(),t.mapCanvasProjection,this.viewportPadding)};let i=!m(this.state,e);if(!m(t.markers,this.markers)){i=!0,this.markers=[...t.markers];const e=this.markers.map((t=>{const e=n.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}}));this.superCluster.load(e)}
1return i&&(this.clusters=this.cluster(t),this.state=e),{clusters:this.clusters,changed:i}}cluster(t){let{map:e,mapCanvasProjection:n}=t;const i={zoom:Math.round(e.getZoom()),view:r(e.getBounds(),n,this.viewportPadding)};return this.superCluster.getClusters(i.view,i.zoom).map((t=>this.transformCluster(t)))}transformCluster(t){let{geometry:{coordinates:[e,s]},properties:o}=t;if(o.cluster)return new i({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((t=>t.properties.marker)),position:{lat:s,lng:e}});const r=o.marker;return new i({markers:[r],position:n.getPosition(r)})}},t.defaultOnClusterClickHandler=N,t.distanceBetweenPoints=a,t.extendBoundsToPaddedViewport=o,t.extendPixelBounds=c,t.filterMarkersToPaddedViewport=s,t.getPaddedViewport=r,t.noop=p,t.pixelBoundsToLatLngBounds=u,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
2/* @preserve
3 * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com
4 * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
5 */!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})}(this,(function(t){"use strict";function e(t){for(var e,n,i=1,s=arguments.length;i<s;i++)for(e in n=arguments[i])t[e]=n[e];return t}var n=Object.create||function(t){return i.prototype=t,new i};function i(){}function s(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var o=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function a(t,e,n){var i,s,o=function(){i=!1,s&&(r.apply(n,s),s=!1)},r=function(){i?s=arguments:(t.apply(n,arguments),setTimeout(o,e),i=!0)};return r}function l(t,e,n){var i=e[1],s=i-(e=e[0]);return t===i&&n?t:((t-e)%s+s)%s+e}function c(){return!1}function u(t,e){return!1===e?t:(e=Math.pow(10,void 0===e?6:e),Math.round(t*e)/e)}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return h(t).split(/\s+/)}function p(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function m(t,e,n){var i,s=[];for(i in t)s.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+s.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(f,(function(t,n){if(void 0===(n=e[n]))throw new Error("No value provided for variable "+t);return"function"==typeof n?n(e):n}))}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||w,T=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||k!==w)return k.call(window,s(t,e));t.call(e)}function S(t){t&&T.call(window,t)}var E={__proto__:null,extend:e,create:n,bind:s,get lastId(){return o},stamp:r,throttle:a,wrapNum:l,falseFn:c,formatNum:u,trim:h,splitWords:d,setOptions:p,getParamString:m,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:k,cancelFn:T,requestAnimFrame:C,cancelAnimFrame:S};function M(){}M.extend=function(t){function i(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var s,o=i.__super__=this.prototype,r=n(o);for(s in(r.constructor=i).prototype=r,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(i[s]=this[s]);if(t.statics&&e(i,t.statics),t.includes){var a=t.includes;if("undefined"!=typeof L&&L&&L.Mixin){a=g(a)?a:[a];for(var l=0;l<a.length;l++)a[l],L.Mixin.Events}e.apply(null,[r].concat(t.includes))}return e(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?n(o.options):{},e(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},i},M.include=function(t){var n=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},M.mergeOptions=function(t){return e(this.prototype.options,t),this},M.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1
vendor: 6,914 bytes, line 5
5),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var P={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var s=0,o=(t=d(t)).length;s<o;s++)this._on(t[s],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=d(t);for(var s=1===arguments.length,o=0,r=t.length;o<r;o++)s?this._off(t[o]):this._off(t[o],e,n)}else delete this._events;return this},_on:function(t,e,n){if("function"!=typeof e);else{this._events=this._events||{};for(var i=this._events[t],s=(t=(i||(this._events[t]=i=[]),{fn:e,ctx:n=n===this?void 0:n}),i),o=0,r=s.length;o<r;o++)if(s[o].fn===e&&s[o].ctx===n)return;s.push(t)}},_off:function(t,e,n){var i,s,o;if(this._events&&(i=this._events[t]))if(1===arguments.length){if(this._firingCount)for(s=0,o=i.length;s<o;s++)i[s].fn=c;delete this._events[t]}else if(n===this&&(n=void 0),"function"!=typeof e);else for(s=0,o=i.length;s<o;s++){var r=i[s];if(r.ctx===n&&r.fn===e)return this._firingCount&&(r.fn=c,this._events[t]=i=i.slice()),void i.splice(s,1)}},fire:function(t,n,i){if(!this.listens(t,i))return this;var s=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var r=0,a=o.length;r<a;r++){var l=o[r];l.fn.call(l.ctx||this,s)}this._firingCount--}}return i&&this._propagateEvent(s),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var i in this._eventParents)if(this._eventParents[i].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var i in t)this.once(i,t[i],e);return this}var o=s((function(){this.off(t,e,n).off(t,o,n)}),this);return this.on(t,e,n).on(t,o,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}},A=(P.addEventListener=P.on,P.removeEventListener=P.clearAllEventListeners=P.off,P.addOneTimeEventListener=P.once,P.fireEvent=P.fire,P.hasEventListeners=P.listens,M.extend(P));function I(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var B=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function z(t,e,n){return t instanceof I?t:g(t)?new I(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new I(t.x,t.y):new I(t,e,n)}function D(t,e){if(t)for(var n=e?[t,e]:t,i=0,s=n.length;i<s;i++)this.extend(n[i])}function N(t,e){return!t||t instanceof D?t:new D(t,e)}function O(t,e){if(t)for(var n=e?[t,e]:t,i=0,s=n.length;i<s;i++)this.extend(n[i])}function j(t,e){return t instanceof O?t:new O(t,e)}function H(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function Z(t,e,n){return t instanceof H?t:g(t)&&"object"!=typeof t[0]?3===t.length?new H(t[0],t[1],t[2]):2===t.length?new H(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new H(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new H(t,e,n)}I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(t){var e=(t=z(t)).x-this.x;t=t.y-this.y;return Math.sqrt(e*e+t*t)},equals:function(t){return(t=z(t)).x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},D.prototype={extend:function(t){return t=z(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new I(this.min.x,this.max.y)},getTopRight:function(){return new I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t=("number"==typeof t[0]||t instanceof I?z:N)(t))instanceof D?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,s=(t=t.max).x>=e.x&&i.x<=n.x;t=t.y>=e.y&&i.y<=n.y;return s&&t},overlaps:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,s=(t=t.max).x>e.x&&i.x<n.x;t=t.y>e.y&&i.y<n.y;return s&&t},isValid:function(){return!(!this.min||!this.max)}},O.prototype={extend:function(t){var e,n,i=this._southWest,s=this._northEast;if(t instanceof H)n=e=t;else{if(!(t instanceof O))return t?this.extend(Z(t)||j(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||s?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),s.lat=Math.max(n.lat,s.lat),s.lng=Math.max(n.lng,s.lng)):(this._southWest=new H(e.lat,e.lng),this._northEast=new H(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t;t=Math.abs(e.lng-n.lng)*t;return new O(new H(e.lat-i,e.lng-t),new H(n.lat+i,n.lng+t))},getCenter:function(){return new H((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,399 bytes, line 5
5,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof H||"lat"in t?Z:j)(t);var e,n,i=this._southWest,s=this._northEast;return t instanceof O?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=s.lat&&e.lng>=i.lng&&n.lng<=s.lng},intersects:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),s=(t=t.getNorthEast()).lat>=e.lat&&i.lat<=n.lat;t=t.lng>=e.lng&&i.lng<=n.lng;return s&&t},overlaps:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),s=(t=t.getNorthEast()).lat>e.lat&&i.lat<n.lat;t=t.lng>e.lng&&i.lng<n.lng;return s&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var F={latLngToPoint:function(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)},pointToLatLng:function(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds;t=this.scale(t);return new D(this.transformation.transform(e.min,t),this.transformation.transform(e.max,t))},infinite:!(H.prototype={equals:function(t,e){return!!t&&(t=Z(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return $.distance(this,Z(t))},wrap:function(){return $.wrapLatLng(this)},toBounds:function(t){var e=(t=180*t/40075017)/Math.cos(Math.PI/180*this.lat);return j([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])},clone:function(){return new H(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new H(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat;e=e.lng-n.lng;
vendor: 6,655 bytes, line 5
5return 0==i&&0==e?t:(n=t.getSouthWest(),t=t.getNorthEast(),new O(new H(n.lat-i,n.lng-e),new H(t.lat-i,t.lng-e)))}},$=e({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,s=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2);e=Math.sin((e.lng-t.lng)*n/2),t=o*o+Math.cos(i)*Math.cos(s)*e*e,n=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*n}}),W={R:W=6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE;n=Math.max(Math.min(n,t.lat),-n),n=Math.sin(n*e);return new I(this.R*t.lng*e,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(t){var e=180/Math.PI;return new H((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new D([-(W*=Math.PI),-W],[W,W])};function R(t,e,n,i){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function q(t,e,n,i){return new R(t,e,n,i)}R.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new I((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var G=e({},$,{code:"EPSG:3857",projection:W,transformation:q(G=.5/(Math.PI*W.R),.5,-G,.5)}),V=e({},G,{code:"EPSG:900913"});function U(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Y(t,e){for(var n,i,s,o,r="",a=0,l=t.length;a<l;a++){for(n=0,i=(s=t[a]).length;n<i;n++)r+=(n?"L":"M")+(o=s[n]).x+" "+o.y;r+=e?Et.svg?"z":"x":""}return r||"M0 0"}var Q=document.documentElement.style,J="ActiveXObject"in window,X=J&&!document.addEventListener,K="msLaunchUri"in navigator&&!("documentMode"in document),tt=St("webkit"),et=St("android"),nt=St("android 2")||St("android 3"),it=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=(it=et&&St("Google")&&it<537&&!("AudioNode"in window),!!window.opera),ot=!K&&St("chrome"),rt=St("gecko")&&!tt&&!st&&!J,at=!ot&&St("safari"),lt=St("phantom"),ct="OTransition"in Q,ut=0===navigator.platform.indexOf("Win"),ht=J&&"transition"in Q,dt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!nt,pt=(Q="MozPerspective"in Q,!window.L_DISABLE_3D&&(ht||dt||Q)&&!ct&&!lt),mt=(Wn="undefined"!=typeof orientation||St("mobile"))&&tt,ft=Wn&&dt,_t=!window.PointerEvent&&window.MSPointerEvent,gt=!(!window.PointerEvent&&!_t),vt="ontouchstart"in window||!!window.TouchEvent,yt=!window.L_NO_TOUCH&&(vt||gt),bt=Wn&&st,xt=Wn&&rt,wt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Lt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),kt=!!document.createElement("canvas").getContext,Tt=!(!document.createElementNS||!U("svg").createSVGRect),Ct=!!Tt&&((Ct=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Ct.firstChild&&Ct.firstChild.namespaceURI));function St(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Et={ie:J,ielt9:X,edge:K,webkit:tt,android:et,android23:nt,androidStock:it,opera:st,chrome:ot,gecko:rt,safari:at,phantom:lt,opera12:ct,win:ut,ie3d:ht,webkit3d:dt,gecko3d:Q,any3d:pt,mobile:Wn,mobileWebkit:mt,mobileWebkit3d:ft,msPointer:_t,pointer:gt,touch:yt,touchNative:vt,mobileOpera:bt,mobileGecko:xt,retina:wt,passiveEvents:Lt,canvas:kt,svg:Tt,vml:!Tt&&function(){try{var t=document.createElement("div"),e=(t.innerHTML='<v:shape adj="1"/>',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),inlineSvg:Ct},Mt=Et.msPointer?"MSPointerDown":"pointerdown",Pt=Et.msPointer?"MSPointerMove":"pointermove",At=Et.msPointer?"MSPointerUp":"pointerup",It=Et.msPointer?"MSPointerCancel":"pointercancel",Bt={touchstart:Mt,touchmove:Pt,touchend:At,touchcancel:It},zt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Me(e),Zt(t,e)},touchmove:Zt,touchend:Zt,touchcancel:Zt},Dt={},Nt=!1;function Ot(t){Dt[t.pointerId]=t}function jt(t){Dt[t.pointerId]&&(Dt[t.pointerId]=t)}function Ht(t){delete Dt[t.pointerId]}function Zt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Dt)e.touches.push(Dt[n]);e.changedTouches=[e],t(e)}}var Ft,$t,Wt,Rt,qt,Gt,Vt=ce(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ut=ce(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Yt="webkitTransition"===Ut||"OTransition"===Ut?Ut+"End":"transitionend";function Qt(t){return"string"==typeof t?document.getElementById(t):t}function Jt(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(n=n&&"auto"!==n||!document.defaultView?n:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:n}function Xt(t,e,n){return(t=document.createElement(t)).className=e||"",n&&n.appendChild(t),t}function Kt(t){var e=t.parentNode;e&&e.removeChild(t)}function te(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ee(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ne(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ie(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=ae(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function se(t,e){var n;if(void 0!==t.classList)for(var i=d(e),s=0,o=i.length;s<o;s++)t.classList.add(i[s]);else ie(t,e)||re(t,((n=ae(t))?n+" ":"")+e)}function oe(t,e){void 0!==t.classList?t.classList.remove(e):re(t,h((" "+ae(t)+" ").replace(" "+e+" "," ")))}function re(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ae(t){return void 0===(t=t.correspondingElement?t.correspondingElement:t).className.baseVal?t.className:t.className.baseVal}function le(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}}function ce(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ue(t,e,n){e=e||new I(0,0),t.style[Vt]=(Et.ie3d?"translate("+e.x+"px,"+e.y+"px)":"translate3d("+e.x+"px,"+e.y+"px,0)")+(n?" scale("+n+")":"")}function he(t,e){t._leaflet_pos=e,Et.any3d?ue(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function de(t){return t._leaflet_pos||new I(0,0)}function pe(){ye(window,"dragstart",Me)}function me(){xe(window,"dragstart",Me)}function fe(t){for(;-1===t.tabIndex;)t=t.parentNode;
vendor: 1,721 bytes, line 5
5t.style&&(_e(),Gt=(qt=t).style.outline,t.style.outline="none",ye(window,"keydown",_e))}function _e(){qt&&(qt.style.outline=Gt,Gt=qt=void 0,xe(window,"keydown",_e))}function ge(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ve(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function ye(t,e,n,i){if(e&&"object"==typeof e)for(var s in e)ke(t,s,e[s],n);else for(var o=0,r=(e=d(e)).length;o<r;o++)ke(t,e[o],n,i);return this}Rt="onselectstart"in document?(Wt=function(){ye(window,"selectstart",Me)},function(){xe(window,"selectstart",Me)}):($t=ce(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Wt=function(){var t;$t&&(t=document.documentElement.style,Ft=t[$t],t[$t]="none")},function(){$t&&(document.documentElement.style[$t]=Ft,Ft=void 0)}),J={__proto__:null,TRANSFORM:Vt,TRANSITION:Ut,TRANSITION_END:Yt,get:Qt,getStyle:Jt,create:Xt,remove:Kt,empty:te,toFront:ee,toBack:ne,hasClass:ie,addClass:se,removeClass:oe,setClass:re,getClass:ae,setOpacity:le,testProp:ce,setTransform:ue,setPosition:he,getPosition:de,get disableTextSelection(){return Wt},get enableTextSelection(){return Rt},disableImageDrag:pe,enableImageDrag:me,preventOutline:fe,restoreOutline:_e,getSizedParentNode:ge,getScale:ve};var be="_leaflet_events";function xe(t,e,n,i){if(1===arguments.length)we(t),delete t[be];else if(e&&"object"==typeof e)for(var s in e)Te(t,s,e[s],n);else if(e=d(e),2===arguments.length)we(t,(function(t){return-1!==v(e,t)}));else for(var o=0,r=e.length;o<r;o++)Te(t,e[o],n,i);return this}function we(t,e){for(var n in t[be]){var i=n.split(/\d/)[0];e&&!e(i)||Te(t,i,null,null,n)}}
vendor: 4,799 bytes, line 5
5var Le={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ke(t,e,n,i){var s,o,a=e+r(n)+(i?"_"+r(i):"");t[be]&&t[be][a]||(o=s=function(e){return n.call(i||t,e||window.event)},!Et.touchNative&&Et.pointer&&0===e.indexOf("touch")?s=function(t,e,n){return"touchstart"!==e||Nt||(document.addEventListener(Mt,Ot,!0),document.addEventListener(Pt,jt,!0),document.addEventListener(At,Ht,!0),document.addEventListener(It,Ht,!0),Nt=!0),zt[e]?(n=zt[e].bind(this,n),t.addEventListener(Bt[e],n,!1),n):L.Util.falseFn}(t,e,s):Et.touch&&"dblclick"===e?s=function(t,e){t.addEventListener("dblclick",e);var n,i=0;function s(t){var s;1!==t.detail?n=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||((s=Date.now())-i<=200?2===++n&&e(function(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return(t=i).type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}(t)):n=1,i=s)}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}(t,s):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Le[e]||e,s,!!Et.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?t.addEventListener(Le[e],s=function(e){e=e||window.event,ze(t,e)&&o(e)},!1):t.addEventListener(e,o,!1):t.attachEvent("on"+e,s),t[be]=t[be]||{},t[be][a]=s)}function Te(t,e,n,i,s){var o,a;s=s||e+r(n)+(i?"_"+r(i):""),(n=t[be]&&t[be][s])&&(!Et.touchNative&&Et.pointer&&0===e.indexOf("touch")?(i=t,a=n,Bt[o=e]&&i.removeEventListener(Bt[o],a,!1)):Et.touch&&"dblclick"===e?(i=n,(a=t).removeEventListener("dblclick",i.dblclick),a.removeEventListener("click",i.simDblclick)):"removeEventListener"in t?t.removeEventListener(Le[e]||e,n,!1):t.detachEvent("on"+e,n),t[be][s]=null)}function Ce(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Se(t){return ke(t,"wheel",Ce),this}function Ee(t){return ye(t,"mousedown touchstart dblclick contextmenu",Ce),t._leaflet_disable_click=!0,this}function Me(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Pe(t){return Me(t),Ce(t),this}function Ae(t,e){if(!e)return new I(t.clientX,t.clientY);var n=ve(e),i=n.boundingClientRect;return new I((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Ie=Et.win&&Et.chrome?2*window.devicePixelRatio:Et.gecko?window.devicePixelRatio:1;function Be(t){return Et.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ie:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ze(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}X={__proto__:null,on:ye,off:xe,stopPropagation:Ce,disableScrollPropagation:Se,disableClickPropagation:Ee,preventDefault:Me,stop:Pe,getMousePosition:Ae,getWheelDelta:Be,isExternalTarget:ze,addListener:ye,removeListener:xe};var De=A.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=de(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),he(this._el,t),this.fire("step")},_complete:function(){S(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ne=A.extend({options:{crs:G,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(Z(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ut&&Et.any3d&&!Et.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ye(this._proxy,Yt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
vendor: 16,385 bytes, line 5
5,setView:function(t,n,i){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(Z(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Et.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Et.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),s=this.getSize().divideBy(2);t=(t instanceof I?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/i),i=this.containerPointToLatLng(s.add(t));return this.setView(i,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var n=z(e.paddingTopLeft||e.padding||[0,0]),i=z(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,n.add(i));return(s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0?{center:t.getCenter(),zoom:s}:(e=i.subtract(n).divideBy(2),i=this.project(t.getSouthWest(),s),n=this.project(t.getNorthEast(),s),{center:this.unproject(i.add(n).divideBy(2).add(e),s),zoom:s})},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){return e=e||{},(t=z(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new De,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(se(this._mapPane,"leaflet-pan-anim"),n=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var n},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Et.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),s=this.project(t),o=this.getSize(),r=this._zoom,a=(t=Z(t),e=void 0===e?r:e,Math.max(o.x,o.y)),l=a*this.getZoomScale(r,e),c=s.distanceTo(i)||1,u=1.42,h=u*u;function d(t){return t=(l*l-a*a+(t?-1:1)*h*h*c*c)/(2*(t?l:a)*h*c),(t=Math.sqrt(t*t+1)-t)<1e-9?-18:Math.log(t)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function m(t){return(Math.exp(t)+Math.exp(-t))/2}var f=d(0);var _=Date.now(),g=(d(1)-f)/u,v=n.duration?1e3*n.duration:1e3*g*.8;return this._moveStart(!0,n.noMoveStart),function n(){var o=(Date.now()-_)/v,l=(1-Math.pow(1-o,1.5))*g;o<=1?(this._flyToFrame=C(n,this),this._move(this.unproject(i.add(s.subtract(i).multiplyBy(function(t){return a*(m(f)*(p(t=f+u*t)/m(t))-p(f))/h}(l)/c)),r),this.getScaleZoom(a/(o=l,a*(m(f)/m(f+u*o))),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds:function(t){return(t=j(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter();t=this._limitCenter(n,this._zoom,j(t));return n.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=z((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=z(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),o=(t=this.project(t),(n=N([(o=this.getPixelBounds()).min.add(n),o.max.subtract(i)])).getSize());return n.contains(t)||(this._enforcingBounds=!0,i=t.subtract(n.getCenter()),n=n.extend(t).getSize().subtract(o),s.x+=i.x<0?-n.x:n.x,s.y+=i.y<0?-n.y:n.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize(),i=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=n.divideBy(2).round(),r=i.divideBy(2).round();return(o=o.subtract(r)).x||o.y?(t.animate&&t.pan?this.panBy(o):(t.pan&&this._rawPanBy(o),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=s(this._handleGeolocationResponse,this),i=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,i,t):navigator.geolocation.getCurrentPosition(n,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,n,i=new H(t.coords.latitude,t.coords.longitude),s=i.toBounds(2*t.coords.accuracy),o=this._locateOptions,r=(o.setView&&(e=this.getBoundsZoom(s),this.setView(i,o.maxZoom?Math.min(e,o.maxZoom):e)),{latlng:i,bounds:s,timestamp:t.timestamp});for(n in t.coords)"number"==typeof t.coords[n]&&(r[n]=t.coords[n]);this.fire("locationfound",r)}},addHandler:function(t,e){return e?(e=this[t]=new e(this),this._handlers.push(e),this.options[t]&&e.enable(),this):this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Kt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)Kt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){return e=Xt("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new O(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=j(t),n=z(n||[0,0]);var i=this.getZoom()||0,s=this.getMinZoom(),o=this.getMaxZoom(),r=t.getNorthWest(),a=(t=t.getSouthEast(),n=this.getSize().subtract(n),t=N(this.project(t,i),this.project(r,i)).getSize(),r=Et.any3d?this.options.zoomSnap:1,n.x/t.x);n=n.y/t.y,t=e?Math.max(a,n):Math.min(a,n),i=this.getScaleZoom(t,i);return r&&(i=Math.round(i/(r/100))*(r/100),i=e?Math.ceil(i/r)*r:Math.floor(i/r)*r),Math.max(s,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){return new D(t=this._getTopLeftPoint(t,e),t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e,t=n.zoom(t*n.scale(e));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){return t=z(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint:function(t){return this.project(Z(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){return t=this.containerPointToLayerPoint(z(t)),this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Ae(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){if(!(t=this._container=Qt(t)))throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");ye(t,"scroll",this._onScroll,this),this._containerId=r(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&Et.any3d,se(t,"leaflet-container"+(Et.touch?" leaflet-touch":"")+(Et.retina?" leaflet-retina":"")+(Et.ielt9?" leaflet-oldie":"")+(Et.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),Jt(t,"position"));"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),he(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(se(t.markerPane,"leaflet-zoom-hide"),se(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){he(this._mapPane,new I(0,0));var n=!this._loaded,i=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((s||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){he(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?xe:ye;e((this._targets[r(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Et.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],s="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,a=!1;o;){if((n=this._targets[r(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(s&&!ze(o,t))break;if(i.push(n),s)break}if(o===this._container)break;o=o.parentNode}return i.length||a||s||!this.listens(e,!0)?i:[this]},_isClickDisabled:function(t){for(;t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,n=t.target||t.srcElement;!this._loaded||n._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(n)||("mousedown"===(e=t.type)&&fe(n),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){"click"===t.type&&((l=e({},t)).type="preclick",this._fireDOMEvent(l,l.type,i));var s=this._findEventTargets(t,n);if(i){for(var o=[],r=0;r<i.length;r++)i[r].listens(n,!0)&&o.push(i[r]);s=o.concat(s)}if(s.length){"contextmenu"===n&&Me(t);var a,l=s[0],c={originalEvent:t};for("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(a=l.getLatLng&&(!l._radius||l._radius<=10),c.containerPoint=a?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=a?l.getLatLng():this.layerPointToLatLng(c.layerPoint)),r=0;r<s.length;r++)if(s[r].fire(n,c,!0),c.originalEvent._stopped||!1===s[r].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return de(this._mapPane)||new I(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){return n=this._getNewPixelOrigin(n,e),this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,n){return n=this._getNewPixelOrigin(n,e),N([this.project(t.getSouthWest
vendor: 20,509 bytes, line 5
5(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),s=this.getSize().divideBy(2);s=new D(i.subtract(s),i.add(s));return(s=this._getBoundsOffset(s,n,e)).round().equals([0,0])?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=new D((n=this.getPixelBounds()).min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,n){return n=(e=N(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n))).min.subtract(t.min),e=e.max.subtract(t.max),new I(this._rebound(n.x,-e.x),this._rebound(n.y,-e.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=Et.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){oe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==(e&&e.animate)&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy:function(){var t=this._proxy=Xt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=Vt,n=this._proxy.style[e];ue(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Kt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ue(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e);i=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(i)||(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,se(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&oe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Oe(t){return new He(t)}var je,He=M.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition();t=t._controlCorners[n];return se(e,"leaflet-control"),-1!==n.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(Kt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}}),Ze=(Ne.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=Xt("div",e+"control-container",this._container);function i(i,s){t[i+s]=Xt("div",e+i+" "+e+s,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Kt(this._controlCorners[t]);Kt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),He.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return He.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(r(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){se(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(se(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):oe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return oe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=Xt("div",t),n=this.options.collapsed,i=(e.setAttribute("aria-haspopup",!0),Ee(e),Se(e),this._section=Xt("section",t+"-list")),s=(n&&(this._map.on("click",this.collapse,this),ye(e,{mouseenter:function(){ye(i,"click",Me),this.expand(),setTimeout((function(){xe(i,"click",Me)}))},mouseleave:this.collapse},this)),this._layersLink=Xt("a",t+"-toggle",e));s.href="#",s.title="Layers",s.setAttribute("role","button"),ye(s,"click",Me),ye(s,"focus",this.expand,this),n||this.expand(),this._baseLayersList=Xt("div",t+"-base",i),this._separator=Xt("div",t+"-separator",i),this._overlaysList=Xt("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&r(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(s((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;te(this._baseLayersList),te(this._overlaysList),this._layerControlInputs=[];for(var t,e,n,i=0,s=0;s<this._layers.length;s++)n=this._layers[s],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,i+=n.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&1<i)?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target));(t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null)&&this._map.fire(t,e)},_createRadioElement:function(t,e){return t='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",(e=document.createElement("div")).innerHTML=t,e.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer),s=((i=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+r(this),i),this._layerControlInputs.push(e),e.layerId=r(t.layer),ye(e,"click",this._onInputClick,this),document.createElement("span"))).innerHTML=" "+t.name,document.createElement("span"));return n.appendChild(s),s.appendChild(e),s.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],s=[];this._handlingClick=!0;for(var o=n.length-1;0<=o;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||s.push(e);for(o=0;o<s.length;o++)this._map.hasLayer(s[o])&&this._map.removeLayer(s[o]);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])||this._map.addLayer(i[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),s=n.length-1;0<=s;s--)t=n[s],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}})),Fe=He.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=Xt("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,s){return(n=Xt("a",n,i)).innerHTML=t,n.href="#",n.title=e,n.setAttribute("role","button"),n.setAttribute("aria-label",e),Ee(n),ye(n,"click",Pe),ye(n,"click",s,this),ye(n,"click",this._refocusOnMap,this),n},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";oe(this._zoomInButton,e),oe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(se(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(se(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),$e=(Ne.mergeOptions({zoomControl:!0}),Ne.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Fe,this.addControl(this.zoomControl))})),He.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=Xt("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=Xt("div",e,n)),t.imperial&&(this._iScale=Xt("div",e,n))},_update:function(){var t=(e=this._map).getSize().y/2,e=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,n;5280<(t=3.2808399*t)?(n=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,n+" mi",n/e)):(n=this._getRoundNum(t),this._updateScale(this._iScale,n+" ft",n/t))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1);return e*(10<=(t=t/e)?10:5<=t?5:3<=t?3:2<=t?2:1)}})),We=He.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Et.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=Xt("div","leaflet-control-attribution"),Ee(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}}),Re=(K=(Ne.mergeOptions({attributionControl:!0}),Ne.addInitHook((function(){this.options.attributionControl&&(new We).addTo(this)})),He.Layers=Ze,He.Zoom=Fe,He.Scale=$e,He.Attribution=We,Oe.layers=function(t,e,n){return new Ze(t,e,n)},Oe.zoom=function(t){return new Fe(t)},Oe.scale=function(t){return new $e(t)},Oe.attribution=function(t){return new We(t)},M.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),tt=(K.addTo=function(t,e){return t.addHandler(e,this),this},{Events:P}),Et.touch?"touchstart mousedown":"mousedown"),qe=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){p(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(ye(this._dragStartTarget,Re,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(qe._dragging===this&&this.finishDrag(!0),xe(this._dragStartTarget,Re,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,n;this._enabled&&(this._moved=!1,ie(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?qe._dragging===this&&this.finishDrag():qe._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((qe._dragging=this)._preventOutline&&fe(this._element),pe(),Wt(),this._moving||(this.fire("down"),n=t.touches?t.touches[0]:t,e=ge(this._element),this._startPoint=new I(n.clientX,n.clientY),this._startPos=de(this._element),this._parentScale=ve(e),n="mousedown"===t.type,ye(document,n?"mousemove":"touchmove",this._onMove,this),ye(document,n?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:!(e=new I((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,Me(t),this._moved||(this.fire("dragstart"),this._moved=!0,se(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),se(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),he(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){oe(document.body,"leaflet-dragging"),this._lastTarget&&(oe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xe(document,"mousemove touchmove",this._onMove,this),xe(document,"mouseup touchend touchcancel",this._onUp,this),me(),Rt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,qe._dragging=!1}});function Ge(t,e){return e&&t.length?function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,function t(e,n,i,s,o){var r,a,l,c=0;for(a=s+1;a<=o-1;a++)c<(l=Je(e[a],e[s],e[o],!0))&&(r=a,c=l);i<c&&(n[r]=1,t(e,n,i,s,r),t(e,n,i,r,o))}(t,i,e,0,n-1);var s,o=[];for(s=0;s<n;s++)i[s]&&o.push(t[s]);return o}(t=function(t,e){for(var n=[t[0]],i=1,s=0,o=t.length;i<o;i++)(function(t,e){var n=e.x-t.x;return n*n+(e=e.y-t.y)*e})(t[i],t[s])>e&&(n.push(t[i]),s=i);return s<o-1&&n.push(t[o-1]),n}(t,e*=e),e):t.slice()}function Ve(t,e,n){return Math.sqrt(Je(t,e,n,!0))}function Ue(t,e,n,i,s){var o,r,a,l=i?je:Qe(t,n),c=Qe(e,n);for(je=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=Qe(r=Ye(t,e,o=l||c,n,s),n),o===l?(t=r,l=a):(e=r,c=a)}}function Ye(t,e,n,i,s){var o,r,a=e.x-t.x,l=(e=e.y-t.y,i.min);i=i.max;return 8&n?(o=t.x+a*(i.y-t.y)/e,r=i.y):4&n?(o=t.x+a*(l.y-t.y)/e,r=l.y):2&n?(o=i.x,r=t.y+e*(i.x-t.x)/a):1&n&&(o=l.x,r=t.y+e*(l.x-t.x)/a),new I(o,r,s)}function Qe(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Je(t,e,n,i){var s=e.x,o=(e=e.y,n.x-s),r=n.y-e,a=o*o+r*r;return 0<a&&(1<(a=((t.x-s)*o+(t.y-e)*r)/a)?(s=n.x,e=n.y):0<a&&(s+=o*a,e+=r*a)),o=t.x-s,r=t.y-e,i?o*o+r*r:new I(s,e)}function Xe(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ke(t){return Xe(t)}function tn(t,e,n){for(var i,s,o,r,a,l,c,u=[1,4,2,8],h=0,d=t.length;h<d;h++)t[h]._code=Qe(t[h],e);for(o=0;o<4;o++){for(l=u[o],i=[],h=0,s=(d=t.length)-1;h<d;s=h++)r=t[h],a=t[s],r._code&l?a._code&l||((c=Ye(a,r,l,e,n))._code=Qe(c,e),i.push(c)):(a._code&l&&((c=Ye(a,r,l,e,n))._code=Qe(c,e),i.push(c)),i.push(r));t=i}return t}et={__proto__:null,simplify:Ge,pointToSegmentDistance:Ve,closestPointOnSegment:function(t,e,n){return Je(t,e,n)},clipSegment:Ue,_getEdgeIntersection:Ye,_getBitCode:Qe,_sqClosestPointOnSegment:Je,isFlat:Xe,_flat:Ke};nt={__proto__:null,clipPolygon:tn},it={project:function(t){return new I(t.lng,t.lat)},unproject:function(t){return new H(t.y,t.x)},bounds:new D([-180,-90],[180,90])},st={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,s=this.R_MINOR/n,o=(s=Math.sqrt(1-s*s))*Math.sin(i);o=Math.tan(Math.PI/4-i/2)/Math.pow((1-o)/(1+o),s/2),i=-n*Math.log(Math.max(o,1e-10));return new I(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,s=this.R_MINOR/i,o=Math.sqrt(1-s*s),r=M
vendor: 2,458 bytes, line 5
5ath.exp(-t.y/i),a=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)e=o*Math.sin(a),e=Math.pow((1-e)/(1+e),o/2),a+=c=Math.PI/2-2*Math.atan(r*e)-a;return new H(a*n,t.x*n/i)}},ot={__proto__:null,LonLat:it,Mercator:st,SphericalMercator:W},at=e({},$,{code:"EPSG:3395",projection:st,transformation:q(rt=.5/(Math.PI*st.R),.5,-rt,.5)});var en=e({},$,{code:"EPSG:4326",projection:it,transformation:q(1/180,1,-1/180,.5)}),nn=(lt=e({},F,{projection:it,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng;e=e.lat-t.lat;return Math.sqrt(n*n+e*e)},infinite:!0}),ct=(F.Earth=$,F.EPSG3395=at,F.EPSG3857=G,F.EPSG900913=V,F.EPSG4326=en,F.Simple=lt,A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,n=t.target;n.hasLayer(this)&&(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents&&(e=this.getEvents(),n.on(e,this),this.once("remove",(function(){n.off(e,this)}),this)),this.onAdd(n),this.fire("add"),n.fire("layeradd",{layer:this}))}})),Ne.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?g(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){t=r(t),this._zoomBoundLayers[t]&&(
vendor: 8,596 bytes, line 5
5delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,i=this._getZoomSpan();for(t in this._zoomBoundLayers){var s=this._zoomBoundLayers[t].options;e=void 0===s.minZoom?e:Math.min(e,s.minZoom),n=void 0===s.maxZoom?n:Math.max(n,s.maxZoom)}this._layersMaxZoom=n===-1/0?void 0:n,this._layersMinZoom=e===1/0?void 0:e,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}}),ct.extend({initialize:function(t,e){var n,i;if(p(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:r})),sn=nn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),nn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),nn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t,e=new O;for(t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),on=M.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}return n=this._createImg(n,e&&"IMG"===e.tagName?e:null),this._setIconStyles(n,t),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var n=this.options,i=z(i="number"==typeof(i=n[e+"Size"])?[i,i]:i),s=z("shadow"===e&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),i&&(t.style.width=i.x+"px",t.style.height=i.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Et.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),rn=on.extend({options:{iconUrl:"/gfx/standards/marker-icon.png",iconRetinaUrl:"/gfx/standards/marker-icon-2x.png",shadowUrl:"/gfx/standards/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof rn.imagePath&&(rn.imagePath=this._detectIconPath()),(this.options.imagePath||rn.imagePath)+on.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){function e(t,e,n){return(e=e.exec(t))&&e[n]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Xt("div","leaflet-default-icon-path",document.body),e=Jt(t,"background-image")||Jt(t,"backgroundImage");return document.body.removeChild(t),(e=this._stripUrl(e))?e:(t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):""}}),an=K.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new qe(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),se(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&oe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,o=de(e._icon),r=n.getPixelBounds(),a=n.getPixelOrigin();(a=N(r.min._subtract(a).add(s),r.max._subtract(a).subtract(s))).contains(o)||(s=z((Math.max(a.max.x,o.x)-a.max.x)/(r.max.x-a.max.x)-(Math.min(a.min.x,o.x)-a.min.x)/(r.min.x-a.min.x),(Math.max(a.max.y,o.y)-a.max.y)/(r.max.y-a.max.y)-(Math.min(a.min.y,o.y)-a.min.y)/(r.min.y-a.min.y)).multiplyBy(i),n.panBy(s,{animate:!1}),this._draggable._newPos._add(s),this._draggable._startPos._add(s),he(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(S(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=de(e._icon),s=e._map.layerPointToLatLng(i);n&&he(n,i),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){S(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ln=ct.extend({options:{icon:new rn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=Z(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=Z(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t,e=this.options,n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=!1,s=!1;(t=((t=e.icon.createIcon(this._icon))!==this._icon&&(this._icon&&this._removeIcon(),i=!0,e.title&&(t.title=e.title),"IMG"===t.tagName&&(t.alt=e.alt||"")),se(t,n),e.keyboard&&(t.tabIndex="0",t.setAttribute("role","button")),this._icon=t,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ye(t,"focus",this._panOnFocus,this),e.icon.createShadow(this._shadow)))!==this._shadow&&(this._removeShadow(),s=!0),t&&(se(t,n),t.alt=""),this._shadow=t,e.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),t&&s&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,478 bytes, line 5
5),this.options.autoPanOnFocus&&xe(this._icon,"focus",this._panOnFocus,this),Kt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Kt(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&he(this._icon,t),this._shadow&&he(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction:function(){var t;this.options.interactive&&(se(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),an&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new an(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&le(this._icon,t),this._shadow&&le(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t,e,n=this._map;n&&(t=(e=this.options.icon.options).iconSize?z(e.iconSize):z(0,0),e=e.iconAnchor?z(e.iconAnchor):z(0,0),n.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),cn=ct.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),un=cn.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=Z(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=Z(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return cn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance();t=[t+n,e+n];this._pxBounds=new D(this._point.subtract(t),this._point.add(t))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),hn=un.extend({initialize:function(t,n,i){if(p(this,n="number"==typeof n?e({},i,{radius:n}):n),this._latlng=Z(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new O(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:cn.prototype.setStyle,_project:function(){var t,e,n,i,s,o=this._latlng.lng,r=this._latlng.lat,a=this._map,l=a.options.crs;l.distance===$.distance?(i=Math.PI/180,s=this._mRadius/$.R/i,t=a.project([r+s,o]),e=a.project([r-s,o]),e=t.add(e).divideBy(2),n=a.unproject(e).lat,i=Math.acos((Math.cos(s*i)-Math.sin(r*i)*Math.sin(n*i))/(Math.cos(r*i)*Math.cos(n*i)))/i,!isNaN(i)&&0!==i||(i=s/Math.cos(Math.PI/180*r)),this._point=e.subtract(a.getPixelOrigin()),this._radius=isNaN(i)?0:e.x-a.project([n,o-i]).x,this._radiusY=e.y-t.y):(s=l.unproject(l.project(this._latlng).subtract([this._mRadius,0])),this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(s).x),this._updateBounds()}}),dn=cn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,n=null,i=Je,s=0,o=this._parts.length;s<o;s++)for(var r=this._parts[s],a=1,l=r.length;a<l;a++){var c,u,h=i(t,c=r[a-1],u=r[a],!0);h<e&&(e=h,n=i(t,c,u))}return n&&(n.distance=Math.sqrt(e)),n}
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,s,o,r=this._rings[0],a=r.length;if(!a)return null;for(e=t=0;t<a-1;t++)e+=r[t].distanceTo(r[t+1])/2;if(0===e)return this._map.layerPointToLatLng(r[0]);for(n=t=0;t<a-1;t++)if(i=r[t],s=r[t+1],e<(n+=o=i.distanceTo(s)))return this._map.layerPointToLatLng([s.x-(o=(n-e)/o)*(s.x-i.x),s.y-o*(s.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Z(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new O,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Xe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Xe(t),i=0,s=t.length;i<s;i++)n?(e[i]=Z(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=new I(t=this._clickTolerance(),t);this._rawPxBounds&&(this._pxBounds=new D([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(t,e,n){var i,s,o=t[0]instanceof H,r=t.length;if(o){for(s=[],i=0;i<r;i++)s[i]=this._map.latLngToLayerPoint(t[i]),n.extend(s[i]);e.push(s)}else for(i=0;i<r;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var e,n,i,s,o=this._parts,r=0,a=0,l=this._rings.length;r<l;r++)for(e=0,n=(s=this._rings[r]).length;e<n-1;e++)(i=Ue(s[e],s[e+1],t,e,!0))&&(o[a]=o[a]||[],o[a].push(i[0]),i[1]===s[e+1]&&e!==n-2||(o[a].push(i[1]),a++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=Ge(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,s,o,r,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(i=0,s=(r=(a=this._parts[n]).length)-1;i<r;s=i++)if((e||0!==i)&&Ve(t,a[s],a[i])<=l)return!0;return!1}});dn._flat=Ke;var pn=dn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 7,434 bytes, line 5
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,s,o,r,a,l,c=this._rings[0],u=c.length;if(!u)return null;for(t=o=r=a=0,e=u-1;t<u;e=t++)n=c[t],i=c[e],s=n.y*i.x-i.y*n.x,r+=(n.x+i.x)*s,a+=(n.y+i.y)*s,o+=3*s;return l=0===o?c[0]:[r/o,a/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=(t=dn.prototype._convertLatLngs.call(this,t)).length;return 2<=e&&t[0]instanceof H&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs:function(t){dn.prototype._setLatLngs.call(this,t),Xe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(Xe(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var t=this._renderer._bounds,e=new I(e=this.options.weight,e);t=new D(t.min.subtract(e),t.max.add(e));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,i=0,s=this._rings.length;i<s;i++)(n=tn(this._rings[i],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,s,o,r,a,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,a=this._parts.length;s<a;s++)for(o=0,r=(l=(e=this._parts[s]).length)-1;o<l;r=o++)n=e[o],i=e[r],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||dn.prototype._containsPoint.call(this,t,!0)}}),mn=sn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,s=g(t)?t:t.features;if(s){for(e=0,n=s.length;e<n;e++)((i=s[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var r=fn(t,o);return r?(r.feature=wn(t),r.defaultOptions=r.options,this.resetStyle(r),o.onEachFeature&&o.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function fn(t,e){var n,i,s,o,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||gn;if(!a&&!r)return null;switch(r.type){case"Point":return _n(c,t,n=u(a),e);case"MultiPoint":for(s=0,o=a.length;s<o;s++)n=u(a[s]),l.push(_n(c,t,n,e));return new sn(l);case"LineString":case"MultiLineString":return i=vn(a,"LineString"===r.type?0:1,u),new dn(i,e);case"Polygon":case"MultiPolygon":return i=vn(a,"Polygon"===r.type?1:2,u),new pn(i,e);case"GeometryCollection":for(s=0,o=r.geometries.length;s<o;s++){var h=fn({geometry:r.geometries[s],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new sn(l);default:throw new Error("Invalid GeoJSON object.")}}function _n(t,e,n,i){return t?t(e,n):new ln(n,i&&i.markersInheritOptions&&i)}function gn(t){return new H(t[1],t[0],t[2])}function vn(t,e,n){for(var i,s=[],o=0,r=t.length;o<r;o++)i=e?vn(t[o],e-1,n):(n||gn)(t[o]),s.push(i);return s}function yn(t,e){return void 0!==(t=Z(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function bn(t,e,n,i){for(var s=[],o=0,r=t.length;o<r;o++)s.push(e?bn(t[o],e-1,n,i):yn(t[o],i));return!e&&n&&s.push(s[0]),s}function xn(t,n){return t.feature?e({},t.feature,{geometry:n}):wn(n)}function wn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Ln(t,e){return new mn(t,e)}ut={toGeoJSON:function(t){return xn(this,{type:"Point",coordinates:yn(this.getLatLng(),t)})}},ln.include(ut),hn.include(ut),un.include(ut),dn.include({toGeoJSON:function(t){var e=!Xe(this._latlngs);return xn(this,{type:(e?"Multi":"")+"LineString",coordinates:bn(this._latlngs,e?1:0,!1,t)})}}),pn.include({toGeoJSON:function(t){var e=!Xe(this._latlngs),n=e&&!Xe(this._latlngs[0]);t=bn(this._latlngs,n?2:e?1:0,!0,t);return xn(this,{type:(n?"Multi":"")+"Polygon",coordinates:t=e?t:[t]})}}),nn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),xn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){e.toGeoJSON&&(e=e.toGeoJSON(t),n?i.push(e.geometry):"FeatureCollection"===(e=wn(e)).type?i.push.apply(i,e.features):i.push(e))})),n?xn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});ht=Ln;var kn=ct.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=j(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(se(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Kt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ee(this._image),this},bringToBack:function(){return this._map&&ne(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:Xt("img");se(e,"leaflet-image-layer"),this._zoomAnimated&&se(e,"leaflet-zoom-animated"),this.options.className&&se(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=s(this.fire,this,"load"),e.onerror=s(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom);t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ue(this._image,t,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();he(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){le(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Tn=kn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
vendor: 5,459 bytes, line 5
5ine:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:Xt("video");if(se(e,"leaflet-image-layer"),this._zoomAnimated&&se(e,"leaflet-zoom-animated"),this.options.className&&se(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=s(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],o=0;o<n.length;o++)i.push(n[o].src);this._url=0<n.length?i:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;r<this._url.length;r++){var a=Xt("source");a.src=this._url[r],e.appendChild(a)}}}}),Cn=kn.extend({_initImage:function(){var t=this._image=this._url;se(t,"leaflet-image-layer"),this._zoomAnimated&&se(t,"leaflet-zoom-animated"),this.options.className&&se(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),Sn=ct.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(t,e){p(this,t),this._source=e},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&le(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&le(this._container,1),this.bringToFront(),this.options.interactive&&(se(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(le(this._container,0),this._removeTimeout=setTimeout(s(Kt,void 0,this._container),200)):Kt(this._container),this.options.interactive&&(oe(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Z(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ee(this._container),this},bringToBack:function(){return this._map&&ne(this._container),this},_prepareOpen:function(t){if(!(n=this._source)._map)return!1;if(n instanceof sn){var e,n=null,i=this._source._layers;for(e in i)if(i[e]._map){n=i[e];break}if(!n)return!1;this._source=n}if(!t)if(n.getCenter)t=n.getCenter();else if(n.getLatLng)t=n.getLatLng();else{if(!n.getBounds)throw new Error("Unable to get source layer LatLng.");t=n.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){var t,e,n;this._map&&(e=this._map.latLngToLayerPoint(this._latlng),t=z(this.options.offset),n=this._getAnchor(),this._zoomAnimated?he(this._container,e.add(n)):t=t.add(e).add(n),e=this._containerBottom=-t.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+t.x,this._container.style.bottom=e+"px",this._container.style.left=n+"px")},_getAnchor:function(){return[0,0]}}),En=(Ne.include({_initOverlay:function(t,e,n,i){var s=e;return s instanceof t||(s=new t(i).setContent(e)),n&&s.setLatLng(n),s}}),ct.include({_initOverlay:function(t,e,n,i){var s=n;return s instanceof t?(p(s,i),s._source=this):(s=e&&!i?e:new t(i,this)).setContent(n),s}}),Sn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Sn.prototype.openOn.call(this,t)},onAdd:function(t){Sn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof cn||this._source.on("preclick",Ce))},onRemove:function(t){Sn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof cn||this._source.off("preclick",Ce))},getEvents:function(){var t=Sn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
vendor: 10,742 bytes, line 5
5(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=Xt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=Xt("div",t+"-content-wrapper",e);this._contentNode=Xt("div",t+"-content",n),Ee(e),Se(this._contentNode),ye(e,"contextmenu",Ce),this._tipContainer=Xt("div",t+"-tip-container",e),this._tip=Xt("div",t+"-tip",this._tipContainer),this.options.closeButton&&((n=this._closeButton=Xt("a",t+"-close-button",e)).setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',ye(n,"click",this.close,this))},_updateLayout:function(){var t=this._contentNode,e=t.style,n=(e.width="",e.whiteSpace="nowrap",t.offsetWidth),i=(n=Math.min(n,this.options.maxWidth),n=(n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="",t.offsetHeight),this.options.maxHeight),s="leaflet-popup-scrolled";i&&i<n?(e.height=i+"px",se(t,s)):oe(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);var e=this._getAnchor();he(this._container,t.add(e))},_adjustPan:function(t){var e,n,i,s,o,r,a,l;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),e=this._map,n=parseInt(Jt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+n,l=this._containerWidth,(i=new I(this._containerLeft,-n-this._containerBottom))._add(de(this._container)),i=e.layerPointToContainerPoint(i),o=z(this.options.autoPanPadding),s=z(this.options.autoPanPaddingTopLeft||o),o=z(this.options.autoPanPaddingBottomRight||o),r=e.getSize(),a=0,i.x+l+o.x>r.x&&(a=i.x+l-r.x+o.x),i.x-a-s.x<(l=0)&&(a=i.x-s.x),i.y+n+o.y>r.y&&(l=i.y+n-r.y+o.y),i.y-l-s.y<0&&(l=i.y-s.y),(a||l)&&e.fire("autopanstart").panBy([a,l],{animate:t&&"moveend"===t.type}))},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Mn=(Ne.mergeOptions({closePopupOnClick:!0}),Ne.include({openPopup:function(t,e,n){return this._initOverlay(En,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),ct.include({bindPopup:function(t,e){return this._popup=this._initOverlay(En,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&this._popup._prepareOpen(t)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e;this._popup&&this._map&&(Pe(t),e=t.layer||t.target,this._popup._source!==e||e instanceof cn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),Sn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Sn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Sn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Sn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Xt("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n=this._map,i=this._container,s=n.latLngToContainerPoint(n.getCenter()),o=(n=n.layerPointToContainerPoint(t),this.options.direction),r=i.offsetWidth,a=i.offsetHeight,l=z(this.options.offset),c=this._getAnchor();n="top"===o?(e=r/2,a):"bottom"===o?(e=r/2,0):(e="center"===o?r/2:"right"===o?0:"left"===o?r:n.x<s.x?(o="right",0):(o="left",r+2*(l.x+c.x)),a/2);t=t.subtract(z(e,n,!0)).add(l).add(c),oe(i,"leaflet-tooltip-right"),oe(i,"leaflet-tooltip-left"),oe(i,"leaflet-tooltip-top"),oe(i,"leaflet-tooltip-bottom"),se(i,"leaflet-tooltip-"+o),he(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&le(this._container,t)},_animateZoom:function(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),Pn=(Ne.include({openTooltip:function(t,e,n){return this._initOverlay(Mn,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ct.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Mn,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var e,n;!t&&this._tooltipHandlersAdded||(e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t)},openTooltip:function(t){return this._tooltip&&this._tooltip._prepareOpen(t)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var e=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(t=this._map.mouseEventToContainerPoint(t.originalEvent),t=this._map.containerPointToLayerPoint(t),e=this._map.layerPointToLatLng(t)),this._tooltip.setLatLng(e)}}),on.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){t=t&&"DIV"===t.tagName?t:document.createElement("div");var e=this.options;return e.html instanceof Element?(te(t),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=z(e.bgPos),t.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}));on.Default=rn;var An=ct.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Et.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Kt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ee(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ne(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof I?t:new I(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),s=0,o=n.length;s<o;s++)e=n[s].style.zIndex,n[s]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Et.ielt9){le(this._container,this.options.opacity);var t,e=+new Date,n=!1,i=!1;for(t in this._tiles){var s,o=this._tiles[t];o.current&&o.loaded&&(s=Math.min(1,(e-o.loaded)/200),le(o.el,s),s<1?n=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0))}i&&!this._noPrune&&this._pruneTiles(),n&&(S(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=Xt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(Kt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],s=this._map;
vendor: 4,134 bytes, line 5
5return i||((i=this._levels[t]={}).el=Xt("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,s.getCenter(),s.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(n=this._tiles[t]).retain=n.current;for(t in this._tiles)(n=this._tiles[t]).current&&!n.active&&(e=n.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Kt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){n-=1;var s=((s=new I(+(t=Math.floor(t/2)),+(e=Math.floor(e/2)))).z=n,this._tileCoordsToKey(s));return(s=this._tiles[s])&&s.active?s.retain=!0:(s&&s.loaded&&(s.retain=!0),i<n&&this._retainParent(t,e,n,i))},_retainChildren:function(t,e,n,i){for(var s=2*t;s<2*t+2;s++)for(var o=2*e;o<2*e+2;o++){var r=((r=new I(s,o)).z=n+1,this._tileCoordsToKey(r));(r=this._tiles[r])&&r.active?r.retain=!0:(r&&r.loaded&&(r.retain=!0),n+1<i&&this._retainChildren(s,o,n+1,i))}},_resetView:function(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var s=Math.round(e),o=(s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s),this.options.updateWhenZooming&&s!==this._tileZoom);i&&!o||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom);e=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();Et.any3d?ue(t.el,e,i):he(t.el,e)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=(n=this._map)._animatingZoom?Math.max(n._animateToZoom,n.getZoom()):n.getZoom(),n=(e=n.getZoomScale(e,this._tileZoom),t=n.project(t,this._tileZoom).floor(),n.getSize().divideBy(2*e));return new D(t.subtract(n),t.add(n))},_update:function(t){if(i=this._map){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n,i=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(i),o=s.getCenter(),r=[],a=(i=this.options.keepBuffer,new D(s.getBottomLeft().subtract([i,-i]),s.getTopRight().add([i,-i])));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(n in this._tiles){var l=this._tiles[n].coords;l.z===this._tileZoom&&a.contains(new I(l.x,l.y))||(this._tiles[n].current=!1)}
vendor: 4,360 bytes, line 5
5if(1<Math.abs(e-this._tileZoom))this._setView(t,e);else{for(var c=s.min.y;c<=s.max.y;c++)for(var u=s.min.x;u<=s.max.x;u++){var h,d=new I(u,c);d.z=this._tileZoom,this._isValidTile(d)&&((h=this._tiles[this._tileCoordsToKey(d)])?h.current=!0:r.push(d))}if(r.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(u=0;u<r.length;u++)this._addTile(r[u],p);this._level.el.appendChild(p)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),j(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n);n=i.add(n);return[e.unproject(i,t.z),e.unproject(n,t.z)]},_tileCoordsToBounds:function(t){return t=new O((t=this._tileCoordsToNwSe(t))[0],t[1]),this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=new I(+(t=t.split(":"))[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(Kt(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){se(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Et.ielt9&&this.options.opacity<1&&le(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(s(this._tileReady,this,t,null,o)),he(o,n),this._tiles[i]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(le(n.el,0),S(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(se(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Et.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),In=An.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Et.retina&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return ye(n,"load",s(this._tileOnLoad,this,e,n)),ye(n,"error",s(this._tileOnError,this,e,n)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:Et.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(n.y=t),n["-y"]=t),_(this._url,e(n,this.options))},_tileOnLoad:function(t,e){Et.ielt9?setTimeout(s(t,this,null,e),
vendor: 6,196 bytes, line 5
50):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return(t=this.options.zoomReverse?e-t:t)+this.options.zoomOffset},_getSubdomain:function(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading:function(){var t,e,n;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((n=this._tiles[t].el).onload=c,n.onerror=c,n.complete||(n.src=y,e=this._tiles[t].coords,Kt(n),delete this._tiles[t],this.fire("tileabort",{tile:n,coords:e})))},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),An.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==y))return An.prototype._tileReady.call(this,t,e,n)}});function Bn(t,e){return new In(t,e)}var zn=In.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i,s=e({},this.defaultWmsParams);for(i in n)i in this.options||(s[i]=n[i]);t=(n=p(this,n)).detectRetina&&Et.retina?2:1;var o=this.getTileSize();s.width=o.x*t,s.height=o.y*t,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,In.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=(e=(n=N((n=this._crs).project(e[0]),n.project(e[1]))).min,n.max);e=(1.3<=this._wmsVersion&&this._crs===en?[e.y,e.x,n.y,n.x]:[e.x,e.y,n.x,n.y]).join(",");return(n=In.prototype.getTileUrl.call(this,t))+m(this.wmsParams,n,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+e},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});In.WMS=zn,Bn.wms=function(t,e){return new zn(t,e)};var Dn=ct.extend({options:{padding:.1},initialize:function(t){p(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&se(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e);i=i.multiplyBy(-n).add(s).subtract(this._map._getNewPixelOrigin(t,e));Et.any3d?ue(this._container,i,n):he(this._container,i)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Nn=Dn.extend({options:{tolerance:0},getEvents:function(){var t=Dn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Dn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ye(t,"mousemove",this._onMouseMove,this),ye(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ye(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,Kt(this._container),xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,e,n,i;this._map._animatingZoom&&this._bounds||(Dn.prototype._update.call(this),t=this._bounds,e=this._container,n=t.getSize(),i=Et.retina?2:1,he(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Et.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){Dn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),t=(this._layers[r(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=(n=t._order).next,n=n.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var e,n=t.options.dashArray.split(/[, ]+/),i=[],s=0;s<n.length;s++){if(e=Number(n[s]),isNaN(e))return;i.push(e)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))
vendor: 6,996 bytes, line 5
5)},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,e,n=this._redrawBounds;this._ctx.save(),n&&(e=n.getSize(),this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!n||t._pxBounds&&t._pxBounds.intersects(n))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,s,o,r=t._parts,a=r.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,s=r[n].length;i<s;i++)o=r[n][i],l[i?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,n,i,s;this._drawing&&!t._empty()&&(e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),1!=(s=(Math.max(Math.round(t._radiusY),1)||i)/i)&&(n.save(),n.scale(1,s)),n.beginPath(),n.arc(e.x,e.y/s,i,0,2*Math.PI,!1),1!=s&&n.restore(),this._fillStroke(n,t))},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(i)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(n=e));this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(oe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(se(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e,n,i=t._order;i&&(e=i.next,n=i.prev,e&&((e.prev=n)?n.next=e:e&&(this._drawFirst=e),i.prev=this._drawLast,(this._drawLast.next=i).next=null,this._drawLast=i,this._requestRedraw(t)))},_bringToBack:function(t){var e,n,i=t._order;i&&(e=i.next,(n=i.prev)&&((n.next=e)?e.prev=n:n&&(this._drawLast=n),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)))}});function On(t){return Et.canvas?new Nn(t):null}var jn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Hn=(dt={_initContainer:function(){this._container=Xt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Dn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=jn("shape");se(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=jn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;Kt(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,s=t._container;s.stroked=!!i.stroke,s.filled=!!i.fill,i.stroke?(e=e||(t._stroke=jn("stroke")),s.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(s.removeChild(e),t._stroke=null),i.fill?(n=n||(t._fill=jn("fill")),s.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(s.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ee(t._container)},_bringToBack:function(t){ne(t._container)}},Et.vml?jn:U),Zn=Dn.extend({_initContainer:function(){this._container=Hn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Hn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Kt(this._container),xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,n;this._map._animatingZoom&&this._bounds||(Dn.prototype._update.call(this),e=(t=this._bounds).getSize(),n=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),he(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=Hn("path");t.options.className&&se(e,t.options.className),t.options.interactive&&se(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Kt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path;t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Y(t._parts,e))}
vendor: 1,093 bytes, line 5
5,_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ";e=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ee(t._path)},_bringToBack:function(t){ne(t._path)}});function Fn(t){return Et.svg||Et.vml?new Zn(t):null}Et.vml&&Zn.include(dt),Ne.include({getRenderer:function(t){return t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&On(t)||Fn(t)}});var $n=pn.extend({initialize:function(t,e){pn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 16,298 bytes, line 5
5,_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Zn.create=Hn,Zn.pointsToPath=Y,mn.geometryToLayer=fn,mn.coordsToLatLng=gn,mn.coordsToLatLngs=vn,mn.latLngToCoords=yn,mn.latLngsToCoords=bn,mn.getFeature=xn,mn.asFeature=wn,Ne.mergeOptions({boxZoom:!0});Q=K.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Kt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Wt(),pe(),this._startPoint=this._map.mouseEventToContainerPoint(t),ye(document,{contextmenu:Pe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Xt("div","leaflet-zoom-box",this._container),se(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=(t=new D(this._point,this._startPoint)).getSize();he(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(Kt(this._box),oe(this._container,"leaflet-crosshair")),Rt(),me(),xe(document,{contextmenu:Pe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0),t=new O(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Ne.addInitHook("addHandler","boxZoom",Q),Ne.mergeOptions({doubleClickZoom:!0}),pt=K.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta;n=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}});var Wn=(Ne.addInitHook("addHandler","doubleClickZoom",pt),Ne.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),K.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new qe(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),se(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){oe(this._map._container,"leaflet-grab"),oe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=j(this._map.options.maxBounds),this._offsetLimit=N(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,n;this._map.options.inertia&&(e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=((s=this._draggable._newPos.x)-e+n)%t+e-n,s=(s+e+n)%t-e-n;t=Math.abs(i+n)<Math.abs(s+n)?i:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd:function(t){var e,n,i,s,o=this._map,r=o.options,a=!r.inertia||t.noInertia||this._times.length<2;o.fire("dragend",t),a?o.fire("moveend"):(this._prunePositions(+new Date),t=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,e=r.easeLinearity,a=(t=t.multiplyBy(e/a)).distanceTo([0,0]),n=Math.min(r.inertiaMaxSpeed,a),t=t.multiplyBy(n/a),i=n/(r.inertiaDeceleration*e),(s=t.multiplyBy(-i/2).round()).x||s.y?(s=o._limitOffset(s,o.options.maxBounds),C((function(){o.panBy(s,{duration:i,easeLinearity:e,noMoveStart:!0,animate:!0})}))):o.fire("moveend"))}})),Rn=(mt=(Ne.addInitHook("addHandler","dragging",Wn),Ne.mergeOptions({keyboard:!0,keyboardPanDelta:80}),K.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),ye(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,e,n;this._focused||(n=document.body,t=document.documentElement,e=n.scrollTop||t.scrollTop,n=n.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(n,e))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},n=this.keyCodes,i=0,s=n.left.length;i<s;i++)e[n.left[i]]=[-1*t,0];for(i=0,s=n.right.length;i<s;i++)e[n.right[i]]=[t,0];for(i=0,s=n.down.length;i<s;i++)e[n.down[i]]=[0,t];for(i=0,s=n.up.length;i<s;i++)e[n.up[i]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},n=this.keyCodes,i=0,s=n.zoomIn.length;i<s;i++)e[n.zoomIn[i]]=t;for(i=0,s=n.zoomOut.length;i<s;i++)e[n.zoomOut[i]]=-t},_addHooks:function(){ye(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=z(e).multiplyBy(3)),i.panBy(e),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Pe(t)}}})),ft=(Ne.addInitHook("addHandler","keyboard",mt),Ne.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),K.extend({addHooks:function(){ye(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Be(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),e=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),e),Pe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0,i=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel));i=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,n=n?Math.ceil(i/n)*n:i,i=t._limitZoom(e+(0<this._delta?n:-n))-e;this._delta=0,this._startTime=null,i&&("center"===t.options.scrollWheelZoom?t.setZoom(e+i):t.setZoomAround(this._lastMousePos,e+i))}})),_t=(Ne.addInitHook("addHandler","scrollWheelZoom",ft),Ne.mergeOptions({tapHold:Et.touchNative&&Et.safari&&Et.mobile,tapTolerance:15}),K.extend({addHooks:function(){ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){var e;clearTimeout(this._holdTimeout),1===t.touches.length&&(e=t.touches[0],this._startPos=this._newPos=new I(e.clientX,e.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(ye(document,"touchend",Me),ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),ye(document,"touchend touchcancel contextmenu",this._cancel,this),ye(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function t(){xe(document,"touchend",Me),xe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),xe(document,"touchend touchcancel contextmenu",this._cancel,this),xe(document,"touchmove",this._onMove,this)},_onMove:function(t){t=t.touches[0],this._newPos=new I(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}})),gt=(Ne.addInitHook("addHandler","tapHold",_t),Ne.mergeOptions({touchZoom:Et.touch,bounceAtZoomLimits:!0}),K.extend({addHooks:function(){se(this._map._container,"leaflet-touch-zoom"),ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){oe(this._map._container,"leaflet-touch-zoom"),xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,n,i=this._map;!t.touches||2!==t.touches.length||i._animatingZoom||this._zooming||(e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),ye(document,"touchmove",this._onTouchMove,this),ye(document,"touchend touchcancel",this._onTouchEnd,this),Me(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&1<o)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{if(n=n._add(i)._divideBy(2)._subtract(this._centerPoint),1==o&&0===n.x&&0===n.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(n),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest),i=s(e._move,e,this._center,this._zoom,{pinch:!0,round:!1}),this._animRequest=C(i,this,!0),Me(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),xe(document,"touchmove",this._onTouchMove,this),xe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),Ne.addInitHook("addHandler","touchZoom",gt),Ne.BoxZoom=Q,Ne.DoubleClickZoom=pt,Ne.Drag=Wn,Ne.Keyboard=mt,Ne.ScrollWheelZoom=ft,Ne.TapHold=_t,Ne.TouchZoom=gt,t.Bounds=D,t.Browser=Et,t.CRS=F,t.Canvas=Nn,t.Circle=hn,t.CircleMarker=un,t.Class=M,t.Control=He,t.DivIcon=Pn,t.DivOverlay=Sn,t.DomEvent=X,t.DomUtil=J,t.Draggable=qe,t.Evented=A,t.FeatureGroup=sn,t.GeoJSON=mn,t.GridLayer=An,t.Handler=K,t.Icon=on,t.ImageOverlay=kn,t.LatLng=H,t.LatLngBounds=O,t.Layer=ct,t.LayerGroup=nn,t.LineUtil=et,t.Map=Ne,t.Marker=ln,t.Mixin=tt,t.Path=cn,t.Point=I,t.PolyUtil=nt,t.Polygon=pn,t.Polyline=dn,t.Popup=En,t.PosAnimation=De,t.Projection=ot,t.Rectangle=$n,t.Renderer=Dn,t.SVG=Zn,t.SVGOverlay=Cn,t.TileLayer=In,t.Tooltip=Mn,t.Transformation=R,t.Util=E,t.VideoOverlay=Tn,t.bind=s,t.bounds=N,t.canvas=On,t.circle=function(t,e,n){return new hn(t,e,n)},t.circleMarker=function(t,e){return new un(t,e)},t.control=Oe,t.divIcon=function(t){return new Pn(t)},t.extend=e,t.featureGroup=function(t,e){return new sn(t,e)},t.geoJSON=Ln,t.geoJson=ht,t.gridLayer=function(t){return new An(t)},t.icon=function(t){return new on(t)},t.imageOverlay=function(t,e,n){return new kn(t,e,n)},t.latLng=Z,t.latLngBounds=j,t.layerGroup=function(t,e){return new nn(t,e)},t.map=function(t,e){return new Ne(t,e)},t.marker=function(t,e){return new ln(t,e)},t.point=z,t.polygon=function(t,e){return new pn(t,e)},t.polyline=function(t,e){return new dn(t,e)},t.popup=function(t,e){return new En(t,e)},t.rectangle=function(t,e){return new $n(t,e)},t.setOptions=p,t.stamp=r,t.svg=Fn,t.svgOverlay=function(t,e,n){return new Cn(t,e,n)},t.tileLayer=Bn,t.tooltip=function(t,e){return new Mn(t,e)},t.transformation=q,t.version="1.8.0",t.videoOverlay=function(t,e,n){return new Tn(t,e,n)},window.L);t.noConflict=function(){return window.L=Rn,this},window.L=t})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t=t||self).Leaflet=t.Leaflet||{},t.Leaflet.markercluster={}))}(this,(function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster
vendor: 10,998 bytes, line 5
5=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,n=this._zoom;if(t.__parent)for(;e.__parent._zoom>=n;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var n,i=this._featureGroup,s=this._nonPointGroup,o=this.options.chunkedLoading,r=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,u=!0;if(this._map){var h=(new Date).getTime(),d=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var m=(new Date).getTime()-p;if(r<m)break}if((n=t[c])instanceof L.LayerGroup)u&&(t=t.slice(),u=!1),this._extractNonGroupLayers(n,t),l=t.length;else if(n.getLatLng){if(!this.hasLayer(n)&&(this._addLayer(n,this._maxZoom),e||this.fire("layeradd",{layer:n}),n.__parent&&2===n.__parent.getChildCount())){var f=n.__parent.getAllChildMarkers(),_=f[0]===n?f[1]:f[0];i.removeLayer(_)}}else s.addLayer(n),e||this.fire("layeradd",{layer:n})}a&&a(c,l,(new Date).getTime()-h),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var p=this._needsClustering;c<l;c++)(n=t[c])instanceof L.LayerGroup?(u&&(t=t.slice(),u=!1),this._extractNonGroupLayers(n,t),l=t.length):n.getLatLng?this.hasLayer(n)||p.push(n):s.addLayer(n);return this},removeLayers:function(t){var e,n,i=t.length,s=this._featureGroup,o=this._nonPointGroup,r=!0;if(!this._map){for(e=0;e<i;e++)(n=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(n,t),i=t.length):(this._arraySplice(this._needsClustering,n),o.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push({layer:n,latlng:n._latlng}),this.fire("layerremove",{layer:n}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=i;for(e=0;e<l;e++)(n=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(n,a),l=a.length):this._unspiderfyLayer(n)}for(e=0;e<i;e++)(n=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(n,t),i=t.length):n.__parent?(this._removeLayer(n,!0,!0),this.fire("layerremove",{layer:n}),s.hasLayer(n)&&(s.removeLayer(n),n.clusterShow&&n.clusterShow())):(o.removeLayer(n),this.fire("layerremove",{layer:n}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var n,i,s,o=this._needsClustering.slice(),r=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),i=o.length-1;0<=i;i--){for(n=!0,s=r.length-1;0<=s;s--)if(r[s].layer===o[i]){n=!1;break}n&&t.call(e,o[i])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(n){L.stamp(n)===t&&(e=n)})),e},hasLayer:function(t){if(!t)return!1;var e,n=this._needsClustering;for(e=n.length-1;0<=e;e--)if(n[e]===t)return!0;for(e=(n=this._needsRemoving).length-1;0<=e;e--)if(n[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var n=this._map;"function"!=typeof e&&(e=function(){});var i=function(){!n.hasLayer(t)&&!n.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",i,this),this.off("animationend",i,this),n.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",i,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",i,this),this.on("animationend",i,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,n,i;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,n=this._needsRemoving.length;e<n;e++)(i=this._needsRemoving[e]).newlatlng=i.layer._latlng,i.layer._latlng=i.latlng;for(e=0,n=this._needsRemoving.length;e<n;e++)i=this._needsRemoving[e],this._removeLayer(i.layer,!0),i.layer._latlng=i.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),n=this._needsClustering,this._needsClustering=[],this.addLayers(n,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return t.splice(n,1),!0},_removeFromGridUnclustered:function(t,e){for(var n=this._map,i=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());s<=e&&i[e].removeObject(t,n.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,n){t._latlng=e,this.removeLayer(t),t._latlng=n,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,n){var i=this._gridClusters,s=this._gridUnclustered,o=this._featureGroup,r=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,u=c._markers;for(this._arraySplice(u,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)e&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],i[c._zoom].removeObject(c,r.project(c._cLatLng,c._zoom)),s[c._zoom].addObject(l,r.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),n||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,n){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,n)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),n=" marker-cluster-";return n+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+n,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,s=this.options.spiderfyOnEveryZoom;(e||i||s)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),n&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,n=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===n._childClusters.length;)n=n._childClusters[0];n._zoom===this._maxZoom&&n._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,i=this.options.spiderfyOnEveryZoom,s=this._map;(t||n||i)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),s.off("zoomend",this._hideCoverage,this))}
vendor: 4,879 bytes, line 5
5,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),n=this.options.maxClusterRadius,i=n;"function"!=typeof n&&(i=function(){return n}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var s=t;e<=s;s--)this._gridClusters[s]=new L.DistanceGrid(i(s)),this._gridUnclustered[s]=new L.DistanceGrid(i(s));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var n,i,s=this._gridClusters,o=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);r<=e;e--){n=this._map.project(t.getLatLng(),e);var a=s[e].getNearObject(n);if(a)return a._addChild(t),void(t.__parent=a);if(a=o[e].getNearObject(n)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,e,a,t);s[e].addObject(c,this._map.project(c._cLatLng,e)),a.__parent=c;var u=t.__parent=c;for(i=e-1;i>l._zoom;i--)u=new this._markerCluster(this,i,u),s[i].addObject(u,this._map.project(a.getLatLng(),i));return l._addChild(u),void this._removeFromGridUnclustered(a,e)}o[e].addObject(t,n)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var n=e.getAllChildMarkers();this._featureGroup.removeLayer(n[0]),this._featureGroup.removeLayer(n[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var n,i=t.getLayers(),s=0;for(e=e||[];s<i.length;s++)(n=i[s])instanceof L.LayerGroup?this._extractNonGroupLayers(n,e):e.push(n);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var n,i=this._getExpandedVisibleBounds(),s=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(i,t,o,(function(o){var r,a=o._latlng,l=o._markers;
vendor: 3,221 bytes, line 5
5for(i.contains(a)||(a=null),o._isSingleParent()&&t+1===e?(s.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,i)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,e,i)),n=l.length-1;0<=n;n--)r=l[n],i.contains(r._latlng)||s.removeLayer(r)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(i,e),s.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(i,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(i,t,o,(function(t){s.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var n=this,i=this._featureGroup;i.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){i.removeLayer(t),t.clusterShow(),n._animationEnd()}))):(this._forceLayout(),n._animationStart(),n._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,n){var i=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(i,s,e+1,n);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(i,n),this._enqueue((function(){if(1===t._childCount){var r=t._markers[0];this._ignoreMove=!0,r.setLatLng(r.getLatLng()),this._ignoreMove=!1,r.clusterShow&&r.clusterShow()}else t._recursively(i,n,s,(function(t){t._recursivelyRemoveChildrenFromMap(i,s,e+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var n=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,n,i){L.Marker.prototype.initialize.call(this,n?n._cLatLng||n.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,n&&this._addChild(n),i&&this._addChild(i)},getAllChildMarkers:function(t,e){t=t||[];for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n].getAllChildMarkers(t,e);for(var i=this._markers.length-1;0<=i;i--)e&&this._markers[i].__dragStart||t.push(this._markers[i]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,n=this._childClusters.slice(),i=this._group._map,s=i.getBoundsZoom(this._bounds),o=this._zoom+1,r=i.getZoom();0<n.length&&o<s;){o++;var a=[];for(e=0;e<n.length;e++)a=a.concat(n[e]._childClusters);n=a}
vendor: 10,854 bytes, line 5
5o<s?this._group._map.setView(this._latlng,o):s<=r?this._group._map.setView(this._latlng,r+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,n,i,s=this._markers,o=this._childClusters,r=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<s.length;t++)n=s[t]._latlng,this._bounds.extend(n),r+=n.lat,a+=n.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),n=e._wLatLng,i=e._childCount,r+=n.lat*i,a+=n.lng*i;this._latlng=this._wLatLng=new L.LatLng(r/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,n){this._recursively(t,this._group._map.getMinZoom(),n-1,(function(t){var n,i,s=t._markers;for(n=s.length-1;0<=n;n--)(i=s[n])._icon&&(i._setPos(e),i.clusterHide())}),(function(t){var n,i,s=t._childClusters;for(n=s.length-1;0<=n;n--)(i=s[n])._icon&&(i._setPos(e),i.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,n,i){this._recursively(t,i,e,(function(s){s._recursivelyAnimateChildrenIn(t,s._group._map.latLngToLayerPoint(s.getLatLng()).round(),n),s._isSingleParent()&&n-1===i?(s.clusterShow(),s._recursivelyRemoveChildrenFromMap(t,e,n)):s.clusterHide(),s._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,n){this._recursively(n,this._group._map.getMinZoom()-1,e,(function(i){if(e!==i._zoom)for(var s=i._markers.length-1;0<=s;s--){var o=i._markers[s];n.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),i._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var n=this._markers[e];n._backupLatlng&&(n.setLatLng(n._backupLatlng),delete n._backupLatlng)}if(t-1===this._zoom)for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i]._restorePosition();else for(var s=this._childClusters.length-1;0<=s;s--)this._childClusters[s]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,n,i){var s,o;this._recursively(t,e-1,n-1,(function(t){for(o=t._markers.length-1;0<=o;o--)s=t._markers[o],i&&i.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}),(function(t){for(o=t._childClusters.length-1;0<=o;o--)s=t._childClusters[o],i&&i.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())}))},_recursively:function(t,e,n,i,s){var o,r,a=this._childClusters,l=this._zoom;if(e<=l&&(i&&i(this),s&&l===n&&s(this)),l<e||l<n)for(o=a.length-1;0<=o;o--)(r=a[o])._boundsNeedUpdate&&r._recalculateBounds(),t.intersects(r._bounds)&&r._recursively(t,e,n,i,s)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var n=this._getCoord(e.x),i=this._getCoord(e.y),s=this._grid,o=s[i]=s[i]||{},r=o[n]=o[n]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var n,i,s=this._getCoord(e.x),o=this._getCoord(e.y),r=this._grid,a=r[o]=r[o]||{},l=a[s]=a[s]||[];for(delete this._objectPoint[L.Util.stamp(t)],n=0,i=l.length;n<i;n++)if(l[n]===t)return l.splice(n,1),1===i&&delete a[s],!0},eachObject:function(t,e){var n,i,s,o,r,a,l=this._grid;for(n in l)for(i in r=l[n])for(s=0,o=(a=r[i]).length;s<o;s++)t.call(e,a[s])&&(s--,o--)},getNearObject:function(t){var e,n,i,s,o,r,a,l,c=this._getCoord(t.x),u=this._getCoord(t.y),h=this._objectPoint,d=this._sqCellSize,p=null;for(e=u-1;e<=u+1;e++)if(s=this._grid[e])for(n=c-1;n<=c+1;n++)if(o=s[n])for(i=0,r=o.length;i<r;i++)a=o[i],((l=this._sqDist(h[L.Util.stamp(a)],t))<d||l<=d&&null===p)&&(d=l,p=a);return p},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}},L.QuickHull={getDistant:function(t,e){var n=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+n*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var n,i,s,o=0,r=null,a=[];for(n=e.length-1;0<=n;n--)i=e[n],0<(s=this.getDistant(i,t))&&(a.push(i),o<s&&(o=s,r=i));return{maxPoint:r,newPoints:a}},buildConvexHull:function(t,e){var n=[],i=this.findMostDistantPointFromBaseLine(t,e);return i.maxPoint?n=(n=n.concat(this.buildConvexHull([t[0],i.maxPoint],i.newPoints))).concat(this.buildConvexHull([i.maxPoint,t[1]],i.newPoints)):[t[0]]},getConvexHull:function(t){var e,n,i=!1,s=!1,o=!1,r=!1,a=null,l=null,c=null,u=null,h=null;for(e=t.length-1;0<=e;e--){var d=t[e];(!1===i||d.lat>i)&&(i=(a=d).lat),(!1===s||d.lat<s)&&(s=(l=d).lat),(!1===o||d.lng>o)&&(o=(c=d).lng),(!1===r||d.lng<r)&&(r=(u=d).lng)}return n=s!==i?(h=l,a):(h=u,c),[].concat(this.buildConvexHull([h,n],t),this.buildConvexHull([n,h],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,n=this.getAllChildMarkers(),i=[];for(e=n.length-1;0<=e;e--)t=n[e].getLatLng(),i.push(t);return L.QuickHull.getConvexHull(i)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),n=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,n):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,n):(n.y+=10,this._generatePointsCircle(e.length,n)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var n,i,s=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,r=[];for(s=Math.max(s,35),r.length=t,n=0;n<t;n++)i=this._circleStartAngle+n*o,r[n]=new L.Point(e.x+s*Math.cos(i),e.y+s*Math.sin(i))._round();return r},_generatePointsSpiral:function(t,e){var n,i=this._group.options.spiderfyDistanceMultiplier,s=i*this._spiralLengthStart,o=i*this._spiralFootSeparation,r=i*this._spiralLengthFactor*this._2PI,a=0,l=[];for(n=l.length=t;0<=n;n--)n<t&&(l[n]=new L.Point(e.x+s*Math.cos(a),e.y+s*Math.sin(a))._round()),s+=r/(a+=o/s+5e-4*n);return l},_noanimationUnspiderfy:function(){var t,e,n=this._group,i=n._map,s=n._featureGroup,o=this.getAllChildMarkers(null,!0);for(n._ignoreMove=!0,this.setOpacity(1),e=o.length-1;0<=e;e--)t=o[e],s.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(i.removeLayer(t._spiderLeg),delete t._spiderLeg);n.fire("unspiderfied",{cluster:this,markers:o}),n._ignoreMove=!1,n._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var n,i,s,o,r=this._group,a=r._map,l=r._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(r._ignoreMove=!0,n=0;n<t.length;n++)o=a.layerPointToLatLng(e[n]),i=t[n],s=new L.Polyline([this._latlng,o],c),a.addLayer(s),i._spiderLeg=s,i._preSpiderfyLatlng=i._latlng,i.setLatLng(o),i.setZIndexOffset&&i.setZIndexOffset(1e6),l.addLayer(i);this.setOpacity(.3),r._ignoreMove=!1,r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var n,i,s,o,r,a,l=this,c=this._group,u=c._map,h=c._featureGroup,d=this._latlng,p=u.latLngToLayerPoint(d),m=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),_=f.opacity;for(void 0===_&&(_=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),m?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=_,c._ignoreMove=!0,n=0;n<t.length;n++)i=t[n],a=u.layerPointToLatLng(e[n]),s=new L.Polyline([d,a],f),u.addLayer(s),i._spiderLeg=s,m&&(r=(o=s._path).getTotalLength()+.1,o.style.strokeDasharray=r,o.style.strokeDashoffset=r),i.setZIndexOffset&&i.setZIndexOffset(1e6),i.clusterHide&&i.clusterHide(),h.addLayer(i),i._setPos&&i._setPos(p);for(c._forceLayout(),c._animationStart(),n=t.length-1;0<=n;n--)a=u.layerPointToLatLng(e[n]),(i=t[n])._preSpiderfyLatlng=i._latlng,i.setLatLng(a),i.clusterShow&&i.clusterShow(),m&&((o=(s=i._spiderLeg)._path).style.strokeDashoffset=0,s.setStyle({opacity:_}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:t})}),200)},_animationUnspiderfy:function(t){var e,n,i,s,o,r,a=this,l=this._group,c=l._map,u=l._featureGroup,h=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),n=d.length-1;0<=n;n--)(e=d[n])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(h),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&u.removeLayer(e),p&&(o=(s=(i=e._spiderLeg)._path).getTotalLength()+.1,s.style.strokeDashoffset=o,i.setStyle({opacity:0}
5)));l._ignoreMove=!1,setTimeout((function(){var t=0;for(n=d.length-1;0<=n;n--)(e=d[n])._spiderLeg&&t++;for(n=d.length-1;0<=n;n--)(e=d[n])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&u.removeLayer(e),c.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,n;for(e in t)for(n=t[e].__parent;n;)n._iconNeedsUpdate=!0,n=n.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,n;for(e in t)n=t[e],this.hasLayer(n)&&n.setIcon(this._overrideMarkerIcon(n))}}),L.Marker.include({refreshIconOptions:function(t,e){var n=this.options.icon;return L.setOptions(n,t),this.setIcon(n),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=n,Object.defineProperty(t,"__esModule",{value:!0})}));const appModules={_debug:(t,e)=>{},list:new Map,types:["module","script"],positions:["head","body_top","body_bottom","before_shop_js","after_shop_js"],loadTimeout:5e3,shopJsName:"shop.js",validators:{moduleValid:(t,e)=>!t&&!e||(appModules._debug("load",`link wybranego modułu nie jest poprawny: ${t}`),!1),moduleInstalled:t=>!!appModules.list.has(t)||(appModules._debug("moduleInstalled","wskazany moduł nie został zainstalowany."),!1),allowedType:t=>{const{types:e}=appModules;return!!e.includes(t)||(appModules._debug("allowedType",`type skryptu musi być jedną z opcji: ${e.join(", ")}`),!1)},scriptPosition:t=>{const{positions:e}=appModules;return!!e.includes(t)||(appModules._debug("scriptPosition",`pozycja osadzenia skryptu musi być jedną z opcji: ${e.join(", ")}`),!1)},scriptNotLoaded:t=>!(document.querySelectorAll(`script[src*="${t}"]`).length>0)||(appModules._debug("scriptNotLoaded",`skrypt z linkiem ${t} został już załadowany`),!1),validateLink:t=>!!t||(appModules._debug("scriptNotLoaded",`skrypt z linkiem ${t} został już załadowany`),!1)},getModule:t=>appModules.list.has(t)?appModules.list.get(t):{link:"",content:null},installModule:(t,e)=>"string"!=typeof t||"string"!=typeof e?(appModules._debug("installModule","link/name musi być stringiem."),!1):appModules.list.has(t)?(appModules._debug("installModule",`wskazany moduł został już zainstalowany: ${t}`),!1):(appModules.list.set(t,{link:e,content:null}),!0),load:async(t,{type:e="module",position:n="head",scriptAttrs:i={}}={})=>{const{link:s,content:o}
5=appModules.getModule(t),{moduleInstalled:r,allowedType:a,scriptPosition:l}=appModules.validators;return!!r(t)&&(!!a(e)&&(o||("module"===e?appModules._loadModule({name:t,link:s}):"script"===e?!!l(n)&&appModules._loadScript({link:s,position:n,scriptAttrs:i}):void 0)))},_updateModule:(t,e)=>{if(appModules.list.has(t)){const n=appModules.getModule(t);return appModules.list.set(t,{...n,content:e}),!0}return!1},_loadModule:async({name:t,link:e})=>{try{const n=await import(e);return appModules._updateModule(t,n),n}catch(t){return appModules._debug("load",`Wystąpił błąd pobierania modułu: ${t}`),!1}},_loadScript:async({link:t="",position:e="head",scriptAttrs:n={}}={})=>new Promise(((i,s)=>{try{if(!appModules.validators.validateLink(t))return s(!1);if(!appModules.validators.scriptNotLoaded(t))return s(!1);const o=document.createElement("script");o.src=t,((t,e)=>{if(Object.getPrototypeOf(e)!==Object.prototype)return!1;Object.entries(e).forEach((([e,n])=>{t.setAttribute(e,n)}))})(o,n),o.addEventListener("load",(()=>{i(!0)})),o.addEventListener("error",((t,e,n,i,o)=>{appModules._debug("load",`błąd ładowania skryptu: ${t}, ${e}, ${n}, ${i}, ${o}`),s(!1)})),appModules._appendScript(o,e)}catch(t){appModules._debug("load",`błąd osadzania skryptu: ${t}`),s(!1)}})),_appendScript(t,e){const{shopJsName:n}=appModules;switch(e){case"body_top":document.body.insertAdjacentElement("afterbegin",t);break;case"body_bottom":document.body.insertAdjacentElement("beforeend",t);break;case"before_shop_js":{const e=document.querySelector(`script[src*="${n}"]`);if(!e){appModules._debug("_loadScript","before_shop_js - nie znaleziono tagu script z shop.js");break}e.insertAdjacentElement("beforeend",t);break}case"after_shop_js":{const e=document.querySelector(`script[src*="${n}"]`);if(!e){appModules._debug("_loadScript","after_shop_js - nie znaleziono tagu script z shop.js");break}e.insertAdjacentElement("afterend",t);break}default:document.head.appendChild(t)}}};window.errorLog=async t=>{const e=new URLSearchParams(`JSerror=${t?.stack?.toString()}`)||`JSerror=${t}`;try{await fetch(`/graphql/v1/?${e.toString()}`,{method:"POST",body:"query {\n        hello\n      }"})}catch(t){return!1}}
6/*! jQuery v1.7.2 jquery.com | jquery.org/license */,function(t,e){function n(t){return A.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}function i(t){if(!de[t]){var e=E.body,n=A("<"+t+">").appendTo(e),i=n.css("display");n.remove(),"none"!==i&&""!==i||(le||((le=E.createElement("iframe")).frameBorder=le.width=le.height=0),e.appendChild(le),ce&&le.createElement||((ce=(le.contentWindow||le.contentDocument).document).write((A.support.boxModel?"<!doctype html>":"")+"<html><body>"),ce.close()),n=ce.createElement(t),ce.body.appendChild(n),i=A.css(n,"display"),e.removeChild(le)),de[t]=i}return de[t]}function s(t,e){var n={};return A.each(fe.concat.apply([],fe.slice(0,e)),(function(){n[this]=t})),n}function o(){he=e}function r(){return setTimeout(o,0),he=A.now()}function a(){try{return new t.XMLHttpRequest}catch(t){}}function l(t,e,n,i){if(A.isArray(e))A.each(e,(function(e,s){n||Zt.test(t)?i(t,s):l(t+"["+("object"==typeof s?e:"")+"]",s,n,i)}));else if(n||"object"!==A.type(e))i(t,e);else for(var s in e)l(t+"["+s+"]",e[s],n,i)}function c(t,n){var i,s,o=A.ajaxSettings.flatOptions||{};for(i in n)n[i]!==e&&((o[i]?t:s||(s={}))[i]=n[i]);s&&A.extend(!0,t,s)}function u(t,n,i,s,o,r){(r=r||{})[o=o||n.dataTypes[0]]=!0;for(var a,l=t[o],c=0,h=l?l.length:0,d=t===te;c<h&&(d||!a);c++)"string"==typeof(a=l[c](n,i,s))&&(!d||r[a]?a=e:(n.dataTypes.unshift(a),a=u(t,n,i,s,a,r)));return(d||!a)&&!r["*"]&&(a=u(t,n,i,s,"*",r)),a}function h(t){return function(e,n){if("string"!=typeof e&&(n=e,e="*"),A.isFunction(n))for(var i,s,o=e.toLowerCase().split(Qt),r=0,a=o.length;r<a;r++)i=o[r],(s=/^\+/.test(i))&&(i=i.substr(1)||"*"),(t[i]=t[i]||[])[s?"unshift":"push"](n)}}function d(t,e,n){var i="width"===e?t.offsetWidth:t.offsetHeight,s="width"===e?1:0;if(i>0){if("border"!==n)for(;s<4;s+=2)n||(i-=parseFloat(A.css(t,"padding"+Nt[s]))||0),"margin"===n?i+=parseFloat(A.css(t,n+Nt[s]))||0:i-=parseFloat(A.css(t,"border"+Nt[s]+"Width"))||0;return i+"px"}if(((i=Tt(t,e))<0||null==i)&&(i=t.style[e]),It.test(i))return i;if(i=parseFloat(i)||0,n)for(;s<4;s+=2)i+=parseFloat(A.css(t,"padding"+Nt[s]))||0,"padding"!==n&&(i+=parseFloat(A.css(t,"border"+Nt[s]+"Width"))||0),"margin"===n&&(i+=parseFloat(A.css(t,n+Nt[s]))||0);return i+"px"}function p(t){var e=E.createElement("div");return kt.appendChild(e),e.innerHTML=t.outerHTML,e.firstChild}function m(t){var e=(t.nodeName||"").toLowerCase();
vendor: 22,245 bytes, line 6
6"input"===e?f(t):"script"!==e&&void 0!==t.getElementsByTagName&&A.grep(t.getElementsByTagName("input"),f)}function f(t){"checkbox"!==t.type&&"radio"!==t.type||(t.defaultChecked=t.checked)}function _(t){return void 0!==t.getElementsByTagName?t.getElementsByTagName("*"):void 0!==t.querySelectorAll?t.querySelectorAll("*"):[]}function g(t,e){var n;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),"object"===(n=e.nodeName.toLowerCase())?e.outerHTML=t.outerHTML:"input"!==n||"checkbox"!==t.type&&"radio"!==t.type?"option"===n?e.selected=t.defaultSelected:"input"===n||"textarea"===n?e.defaultValue=t.defaultValue:"script"===n&&e.text!==t.text&&(e.text=t.text):(t.checked&&(e.defaultChecked=e.checked=t.checked),e.value!==t.value&&(e.value=t.value)),e.removeAttribute(A.expando),e.removeAttribute("_submit_attached"),e.removeAttribute("_change_attached"))}function v(t,e){if(1===e.nodeType&&A.hasData(t)){var n,i,s,o=A._data(t),r=A._data(e,o),a=o.events;if(a)for(n in delete r.handle,r.events={},a)for(i=0,s=a[n].length;i<s;i++)A.event.add(e,n,a[n][i]);r.data&&(r.data=A.extend({},r.data))}}function y(t,e){return A.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){var e=ut.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function x(t,e,n){if(e=e||0,A.isFunction(e))return A.grep(t,(function(t,i){return!!e.call(t,i,t)===n}));if(e.nodeType)return A.grep(t,(function(t,i){return t===e===n}));if("string"==typeof e){var i=A.grep(t,(function(t){return 1===t.nodeType}));if(rt.test(e))return A.filter(e,i,!n);e=A.filter(e,i)}return A.grep(t,(function(t,i){return A.inArray(t,e)>=0===n}))}function w(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function L(){return!0}function k(){return!1}function T(t,e,n){var i=e+"defer",s=e+"queue",o=e+"mark",r=A._data(t,i);r&&("queue"===n||!A._data(t,s))&&("mark"===n||!A._data(t,o))&&setTimeout((function(){!A._data(t,s)&&!A._data(t,o)&&(A.removeData(t,i,!0),r.fire())}),0)}function C(t){for(var e in t)if(("data"!==e||!A.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function S(t,n,i){if(i===e&&1===t.nodeType){var s="data-"+n.replace(D,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(s))){try{i="true"===i||"false"!==i&&("null"===i?null:A.isNumeric(i)?+i:z.test(i)?A.parseJSON(i):i)}catch(t){}A.data(t,n,i)}else i=e}return i}var E=t.document,M=t.navigator,P=t.location,A=function(){function n(){if(!a.isReady){try{E.documentElement.doScroll("left")}catch(t){return void setTimeout(n,1)}a.ready()}}var i,s,o,r,a=function(t,e){return new a.fn.init(t,e,i)},l=t.jQuery,c=t.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,d=/^\s+/,p=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,f=/^[\],:{}\s]*$/,_=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,g=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,b=/(opera)(?:.*version)?[ \/]([\w.]+)/,x=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,L=/-([a-z]|[0-9])/gi,k=/^-ms-/,T=function(t,e){return(e+"").toUpperCase()},C=M.userAgent,S=Object.prototype.toString,P=Object.prototype.hasOwnProperty,A=Array.prototype.push,I=Array.prototype.slice,B=String.prototype.trim,z=Array.prototype.indexOf,D={};return a.fn=a.prototype={constructor:a,init:function(t,n,i){var s,o,r,l;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!n&&E.body)return this.context=E,this[0]=E.body,this.selector=t,this.length=1,this;if("string"==typeof t){if((s="<"!==t.charAt(0)||">"!==t.charAt(t.length-1)||t.length<3?u.exec(t):[null,t,null])&&(s[1]||!n)){if(s[1])return l=(n=n instanceof a?n[0]:n)?n.ownerDocument||n:E,(r=m.exec(t))?a.isPlainObject(n)?(t=[E.createElement(r[1])],a.fn.attr.call(t,n,!0)):t=[l.createElement(r[1])]:t=((r=a.buildFragment([s[1]],[l])).cacheable?a.clone(r.fragment):r.fragment).childNodes,a.merge(this,t);if((o=E.getElementById(s[2]))&&o.parentNode){if(o.id!==s[2])return i.find(t);this.length=1,this[0]=o}return this.context=E,this.selector=t,this}return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t)}return a.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),a.makeArray(t,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t,e,n){var i=this.constructor();return a.isArray(t)?A.apply(i,t):a.merge(i,t),i.prevObject=this,i.context=this.context,"find"===e?i.selector=this.selector+(this.selector?" ":"")+n:e&&(i.selector=this.selector+"."+e+"("+n+")"),i},each:function(t,e){return a.each(this,t,e)},ready:function(t){return a.bindReady(),o.add(t),this},eq:function(t){return-1===(t=+t)?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(t){return this.pushStack(a.map(this,(function(e,n){return t.call(e,n,e)})))},end:function(){return this.prevObject||this.constructor(null)},push:A,sort:[].sort,splice:[].splice},a.fn.init.prototype=a.fn,a.extend=a.fn.extend=function(){var t,n,i,s,o,r,l=arguments[0]||{},c=1,u=arguments.length,h=!1;for("boolean"==typeof l&&(h=l,l=arguments[1]||{},c=2),"object"!=typeof l&&!a.isFunction(l)&&(l={}),u===c&&(l=this,--c);c<u;c++)if(null!=(t=arguments[c]))for(n in t)i=l[n],l!==(s=t[n])&&(h&&s&&(a.isPlainObject(s)||(o=a.isArray(s)))?(o?(o=!1,r=i&&a.isArray(i)?i:[]):r=i&&a.isPlainObject(i)?i:{},l[n]=a.extend(h,r,s)):s!==e&&(l[n]=s));return l},a.extend({noConflict:function(e){return t.$===a&&(t.$=c),e&&t.jQuery===a&&(t.jQuery=l),a},isReady:!1,readyWait:1,holdReady:function(t){t?a.readyWait++:a.ready(!0)},ready:function(t){if(!0===t&&! --a.readyWait||!0!==t&&!a.isReady){if(!E.body)return setTimeout(a.ready,1);if(a.isReady=!0,!0!==t&&--a.readyWait>0)return;o.fireWith(E,[a]),a.fn.trigger&&a(E).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=a.Callbacks("once memory"),"complete"===E.readyState)return setTimeout(a.ready,1);if(E.addEventListener)E.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",a.ready,!1);else if(E.attachEvent){E.attachEvent("onreadystatechange",r),t.attachEvent("onload",a.ready);var e=!1;try{e=null==t.frameElement}catch(t){}E.documentElement.doScroll&&e&&n()}}},isFunction:function(t){return"function"===a.type(t)},isArray:Array.isArray||function(t){return"array"===a.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):D[S.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==a.type(t)||t.nodeType||a.isWindow(t))return!1;try{if(t.constructor&&!P.call(t,"constructor")&&!P.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}var n;for(n in t);return n===e||P.call(t,n)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseJSON:function(e){return"string"==typeof e&&e?(e=a.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):f.test(e.replace(_,"@").replace(g,"]").replace(v,""))?new Function("return "+e)():void a.error("Invalid JSON: "+e)):null},parseXML:function(n){if("string"!=typeof n||!n)return null;var i;try{t.DOMParser?i=(new DOMParser).parseFromString(n,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(n))}catch(t){i=e}return(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)&&a.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(e){e&&h.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(k,"ms-").replace(L,T)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,n,i){var s,o=0,r=t.length,l=r===e||a.isFunction(t);if(i)if(l){for(s in t)if(!1===n.apply(t[s],i))break}else for(;o<r&&!1!==n.apply(t[o++],i););else if(l){for(s in t)if(!1===n.call(t[s],s,t[s]))break}else for(;o<r&&!1!==n.call(t[o],o,t[o++]););return t},trim:B?function(t){return null==t?"":B.call(t)}:function(t){return null==t?"":(t+"").replace(d,"").replace(p,"")},makeArray:function(t,e){var n=e||[];if(null!=t){var i=a.type(t);null==t.length||"string"===i||"function"===i||"regexp"===i||a.isWindow(t)?A.call(n,t):a.merge(n,t)}return n},inArray:function(t,e,n){var i;if(e){if(z)return z.call(e,t,n);for(i=e.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,n){var i=t.length,s=0;if("number"==typeof n.length)for(var o=n.length;s<o;s++)t[i++]=n[s];else for(;n[s]!==e;)t[i++]=n[s++];return t.length=i,t},grep:function(t,e,n){var i=[];n=!!n;for(var s=0,o=t.length;s<o;s++)n!==!!e(t[s],s)&&i.push(t[s]);return i},map:function(t,n,i){var s,o,r=[],l=0,c=t.length;if(t instanceof a||c!==e&&"number"==typeof c&&(c>0&&t[0]&&t[c-1]||0===c||a.isArray(t)))for(;l<c;l++)null!=(s=n(t[l],l,i))&&(r[r.length]=s);else for(o in t)null!=(s=n(t[o],o,i))&&(r[r.length]=s);return r.concat.apply([],r)},guid:1,proxy:function(t,n){if("string"==typeof n){var i=t[n];n=t,t=i}if(!a.isFunction(t))return e;var s=I.call(arguments,2),o=function(){return t.apply(n,s.concat(I.call(arguments)))};return o.guid=t.guid=t.guid||o.guid||a.guid++,o},access:function(t,n,i,s,o,r,l){var c,u=null==i,h=0,d=t.length;if(i&&"object"==typeof i){for(h in i)a.access(t,n,h,i[h],1,r,s);o=1}else if(s!==e){if(c=l===e&&a.isFunction(s),u&&(c?(c=n,n=function(t,e,n){return c.call(a(t),n)}):(n.call(t,s),n=null)),n)for(;h<d;h++)n(t[h],i,c?s.call(t[h],h,n(t[h],i)):s,l);o=1}return o?t:u?n.call(t):d?n(t[0],i):r},now:function(){return(new Date).getTime()},uaMatch:function(t){t=t.toLowerCase();var e=y.exec(t)||b.exec(t)||x.exec(t)||t.indexOf("compatible")<0&&w.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},sub:function(){function t(e,n){return new t.fn.init(e,n)}a.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(n,i){return i&&i instanceof a&&!(i instanceof t)&&(i=t(i)),a.fn.init.call(this,n,i,e)},t.fn.init.prototype=t.fn;var e=t(E);return t},browser:{}}),a.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(t,e){D["[object "+e+"]"]=e.toLowerCase()})),(s=a.uaMatch(C)).browser&&(a.browser[s.browser]=!0,a.browser.version=s.version),a.browser.webkit&&(a.browser.safari=!0),h.test(" ")&&(d=/^[\s\xA0]+/,p=/[\s\xA0]+$/),i=a(E),E.addEventListener?r=function(){E.removeEventListener("DOMContentLoaded",r,!1),a.ready()}:E.attachEvent&&(r=function(){"complete"===E.readyState&&(E.detachEvent("onreadystatechange",r),a.ready())}),a}(),I={};A.Callbacks=function(t){t=t?I[t]||function(t){var e,n,i=I[t]={};for(e=0,n=(t=t.split(/\s+/)).length;e<n;e++)i[t[e]]=!0;return i}(t):{};var n,i,s,o,r,a,l=[],c=[],u=function(e){var n,i,s,o;for(n=0,i=e.length;n<i;n++)s=e[n],"array"===(o=A.type(s))?u(s):"function"===o&&(!t.unique||!d.has(s))&&l.push(s)},h=function(e,u){for(u=u||[],n=!t.memory||[e,u],i=!0,s=!0,a=o||0,o=0,r=l.length;l&&a<r;a++)if(!1===l[a].apply(e,u)&&t.stopOnFalse){n=!0;break}s=!1,l&&(t.once?!0===n?d.disable():l=[]:c&&c.length&&(n=c.shift(),d.fireWith(n[0],n[1])))},d={add:function(){if(l){var t=l.length;u(arguments),s?r=l.length:n&&!0!==n&&(o=t,h(n[0],n[1]))}return this},remove:function(){if(l)for(var e=arguments,n=0,i=e.length;n<i;n++)for(var o=0;o<l.length&&(e[n]!==l[o]||(s&&o<=r&&(r--,o<=a&&a--),l.splice(o--,1),!t.unique));o++);return this},has:function(t){if(l)for(var e=0,n=l.length;e<n;e++)if(t===l[e])return!0;return!1},empty:function(){return l=[],this},disable:function(){return l=c=n=e,this},disabled:function(){return!l},lock:function(){return c=e,(!n||!0===n)&&d.disable(),this},locked:function(){return!c},fireWith:function(e,i){return c&&(s?t.once||c.push([e,i]):(!t.once||!n)&&h(e,i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d};var B=[].slice;A.extend({Deferred:function(t){var e,n=A.Callbacks("once memory"),i=A.Callbacks("once memory"),s=A.Callbacks("memory"),o="pending",r={resolve:n,reject:i,notify:s},a={done:n.add,fail:i.add,progress:s.add,state:function(){return o},isResolved:n.fired,isRejected:i.fired,then:function(t,e,n){return l.done(t).fail(e).progress(n),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(t,e,n){return A.Deferred((function(i){A.each({done:[t,"resolve"],fail:[e,"reject"],progress:[n,"notify"]},(function(t,e){var n,s=e[0],o=e[1];A.isFunction(s)?l[t]((function(){(n=s.apply(this,arguments))&&A.isFunction(n.promise)?n.promise().then(i.resolve,i.reject,i.notify):i[o+"With"](this===l?i:this,[n])})):l[t](i[o])}))})).promise()},promise:function(t){if(null==t)t=a;else for(var e in a)t[e]=a[e];return t}},l=a.promise({});for(e in r)l[e]=r[e].fire,l[e+"With"]=r[e].fireWith;return l.done((function(){o="resolved"}),i.disable,s.lock).fail((function(){o="rejected"}),n.disable,s.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){r[t]=arguments.length>1?B.call(arguments,0):e,l.notifyWith(c,r)}}function n(t){return function(e){i[t]=arguments.length>1?B.call(arguments,0):e,--a||l.resolveWith(l,i)}}var i=B.call(arguments,0),s=0,o=i.length,r=Array(o),a=o,l=o<=1&&t&&A.isFunction(t.promise)?t:A.Deferred(),c=l.promise();if(o>1){for(;s<o;s++)i[s]&&i[s].promise&&A.isFunction(i[s].promise)?i[s].promise().then(n(s),l.reject,e(s)):--a;a||l.resolveWith(l,i)}else l!==t&&l.resolveWith(l,o?[t]:[]);return c}}),A.support=function(){var e,n,i,s,o,r,a,l,c,u,h,d=E.createElement("div");E.documentElement;if(d.setAttribute("className","t"),d.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0],!n||!n.length||!i)return{};o=(s=E.createElement("select")).appendChild(E.createElement("option")),r=d.getElementsByTagName("input")[0],e={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:"on"===r.value,optSelected:o.selected,getSetAttribute:"t"!==d.className,enctype:!!E.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==E.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},A.boxModel=e.boxModel="CSS1Compat"===E.compatMode,r.checked=!0,e.noCloneChecked=r.cloneNode(!0).checked,s.disabled=!0,e.optDisabled=!o.disabled;try{delete d.test}catch(t){e.deleteExpando=!1}if(!d.addEventListener&&d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",(function(){e.noCloneEvent=!1})),d.cloneNode(!0).fireEvent("onclick")),(r=E.createElement("input")).value="t",r.setAttribute("type","radio"),e.radioValue="t"===r.value,r.setAttribute("checked","checked"),r.setAttribute("name","t"),d.appendChild(r),(a=E.createDocumentFragment()).appendChild(d.lastChild),e.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=r.checked,a.removeChild(r),a.appendChild(d),d.attachEvent)for(u in{submit:1,change:1,focusin:1})(h=(c="on"+u)in d)||(d.setAttribute(c,"return;"),h="function"==typeof d[c]),e[u+"Bubbles"]=h;return a.removeChild(d),a=s=o=d=r=null,A((function(){var n,i,s,o,r,a,c,u,p,m,f,_=E.getElementsByTagName("body")[0];!_||(m=(f="padding:0;margin:0;border:")+"0;visibility:hidden;",u="<div "+(c="style='"+(p="position:absolute;top:0;left:0;width:1px;height:1px;")+f+"5px solid #000;")+"display:block;'><div style='"+f+"0;display:block;overflow:hidden;'></div></div><table "+c+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(n=E.createElement("div")).style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:1px",_.insertBefore(n,_.firstChild),d=E.createElement("div"),n.appendChild(d),d.innerHTML="<table><tr><td style='"+f+"0;display:none'></td><td>t</td></tr></table>",l=d.getElementsByTagName("td"),h=0===l[0].offsetHeight,l[0].style.display="",l[1].style.display="none",e.reliableHiddenOffsets=h&&0===l[0].offsetHeight,t.getComputedStyle&&(d.innerHTML="",(a=E.createElement("div")).style.width="0",a.style.marginRight="0",d.style.width="2px",d.appendChild(a),e.reliableMarginRight=0===(parseInt((t.getComputedStyle(a,null)||{marginRight:0}).marginRight,10)||0)),void 0!==d.style.zoom&&(d.innerHTML="",d.style.width=d.style.padding="1px",d.style.border=0,d.style.overflow="hidden",d.style.display="inline",d.style.zoom=1,e.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div style='width:5px;'></div>",e.shrinkWrapBlocks=3!==d.offsetWidth),d.style.cssText=p+m,d.innerHTML=u,s=(i=d.firstChild).firstChild,o=i.nextSibling.firstChild.firstChild,r={doesNotAddBorder:5!==s.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},s.style.position="fixed",s.style.top="20px",r.fixedPosition=20===s.offsetTop||15===s.offsetTop,s.style.position=s.style.top="",i.style.overflow="hidden",i.style.position="relative",r.subtractsBorderForOverflowNotVisible=-5===s.offsetTop,r.doesNotIncludeMarginInBodyOffset=1!==_.offsetTop,t.getComputedStyle&&(d.style.marginTop="1%",e.pixelMargin="1%"!==(t.getComputedStyle(d,null)||{marginTop:0}).marginTop),void 0!==n.style.zoom&&(n.style.zoom=1),_.removeChild(n),a=d=n=null,A.extend(e,r))})),e}();var z=/^(?:\{.*\}|\[.*\])$/,D=/([A-Z])/g;A.extend({cache:{},uuid:0,expando:"jQuery"+(A.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return!!(t=t.nodeType?A.cache[t[A.expando]]:t[A.expando])&&!C(t)},data:function(t,n,i,s){if(A.acceptData(t)){var o,r,a,l=A.expando,c="string"==typeof n,u=t.nodeType,h=u?A.cache:t,d=u?t[l]:t[l]&&l,p="events"===n;if((!d||!h[d]||!p&&!s&&!h[d].data)&&c&&i===e)return;return d||(u?t[l]=d=++A.uuid:d=l),h[d]||(h[d]={},u||(h[d].toJSON=A.noop)),"object"!=typeof n&&"function"!=typeof n||(s?h[d]=A.extend(h[d],n):h[d].data=A.extend(h[d].data,n)),o=r=h[d],s||(r.data||(r.data={}),r=r.data),i!==e&&(r[A.camelCase(n)]=i),p&&!r[n]?o.events:(c?null==(a=r[n])&&(a=r[A.camelCase(n)]):a=r,a)}},removeData:function(t,e,n){if(A.acceptData(t)){var i,s,o,r=A.expando,a=t.nodeType,l=a?A.cache:t,c=a?t[r]:r;if(!l[c])return;if(e&&(i=n?l[c]:l[c].data)){A.isArray(e)||(e in i?e=[e]:e=(e=A.camelCase(e))in i?[e]:e.split(" "));for(s=0,o=e.length;s<o;s++)delete i[e[s]];if(!(n?C:A.isEmptyObject)(i))return}if(!n&&(delete l[c].data,!C(l[c])))return;A.support.deleteExpando||!l.setInterval?delete l[c]:l[c]=null,a&&(A.support.deleteExpando?delete t[r]:t.removeAttribute?t.removeAttribute(r):t[r]=null)}},_data:function(t,e,n){return A.data(t,e,n,!0)},acceptData:function(t){if(t.nodeName){var e=A.noData[t.nodeName.toLowerCase()];if(e)return!0!==e&&t.getAttribute("classid")===e}return!0}}),A.fn.extend({data:function(t,n){var i,s,o,r,a,l=this[0],c=0,u=null;if(t===e){if(this.length&&(u=A.data(l),1===l.nodeType&&!A._data(l,"parsedAttrs"))){for(a=(o=l.attributes).length;c<a;c++)0===(r=o[c].name).indexOf("data-")&&(r=A.camelCase(r.substring(5)),S(l,r,u[r]));A._data(l,"parsedAttrs",!0)}return u}return"object"==typeof t?this.each((function(){A.data(this,t)})):((i=t.split(".",2))[1]=i[1]?"."+i[1]:"",s=i[1]+"!",A.access(this,(function(n){if(n===e)return(u=this.triggerHandler("getData"+s,[i[0]]))===e&&l&&(u=A.data(l,t),u=S(l,t,u)),u===e&&i[1]?this.data(i[0]):u;i[1]=n,this.each((function(){var e=A(this);e.triggerHandler("setData"+s,i),A.data(this,t,n),e.triggerHandler("changeData"+s,i)}))}),null,n,arguments.length>1,null,!1))},removeData:function(t){return this.each((function(){A.removeData(this,t)}))}}),A.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",A._data(t,e,(A._data(t,e)||0)+1))},_unmark:function(t,e,n){if(!0!==t&&(n=e,e=t,t=!1),e){var i=(n=n||"fx")+"mark",s=t?0:(A._data(e,i)||1)-1;s?A._data(e,i,s):(A.removeData(e,i,!0),T(e,n,"mark"))}},queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=A._data(t,e),n&&(!i||A.isArray(n)?i=A._data(t,e,A.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=A.queue(t,e),i=n.shift(),s={};"inprogress"===i&&(i=n.shift()),i&&("fx"===e&&n.unshift("inprogress"),A._data(t,e+".run",s),i.call(t,(function(){A.dequeue(t,e)}),s)),n.length||(A.removeData(t,e+"queue "+e+".run",!0),T(t,e,"queue"))}}),A.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),arguments.length<i?A.queue(this[0],t):n===e?this:this.each((function(){var e=A.queue(this,t,n);"fx"===t&&"inprogress"!==e[0]&&A.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){A.dequeue(this,t)}))},delay:function(t,e){return t=A.fx&&A.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){function i(){--l||o.resolveWith(r,[r])}"string"!=typeof t&&(n=t,t=e),t=t||"fx";for(var s,o=A.Deferred(),r=this,a=r.length,l=1,c=t+"defer",u=t+"queue",h=t+"mark";a--;)(s=A.data(r[a],c,e,!0)||(A.data(r[a],u,e,!0)||A.data(r[a],h,e,!0))&&A.data(r[a],c,A.Callbacks("once memory"),!0))&&(l++,s.add(i));return i(),o.promise(n)}});var N,O,j,H=/[\n\t\r]/g,Z=/\s+/,F=/\r/g,$=/^(?:button|input)$/i,W=/^(?:button|input|object|select|textarea)$/i,R=/^a(?:rea)?$/i,q=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,G=A.support.getSetAttribute;A.fn.extend({attr:function(t,e){return A.access(this,A.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){A.removeAttr(this,t)}))},prop:function(t,e){return A.access(this,A.prop,t,e,arguments.length>1)},removeProp:function(t){return t=A.propFix[t]||t,this.each((function(){try{this[t]=e,delete this[t]}catch(t){}}))},addClass:function(t){var e,n,i,s,o,r,a;
vendor: 4,375 bytes, line 6
6if(A.isFunction(t))return this.each((function(e){A(this).addClass(t.call(this,e,this.className))}));if(t&&"string"==typeof t)for(e=t.split(Z),n=0,i=this.length;n<i;n++)if(1===(s=this[n]).nodeType)if(s.className||1!==e.length){for(o=" "+s.className+" ",r=0,a=e.length;r<a;r++)~o.indexOf(" "+e[r]+" ")||(o+=e[r]+" ");s.className=A.trim(o)}else s.className=t;return this},removeClass:function(t){var n,i,s,o,r,a,l;if(A.isFunction(t))return this.each((function(e){A(this).removeClass(t.call(this,e,this.className))}));if(t&&"string"==typeof t||t===e)for(n=(t||"").split(Z),i=0,s=this.length;i<s;i++)if(1===(o=this[i]).nodeType&&o.className)if(t){for(r=(" "+o.className+" ").replace(H," "),a=0,l=n.length;a<l;a++)r=r.replace(" "+n[a]+" "," ");o.className=A.trim(r)}else o.className="";return this},toggleClass:function(t,e){var n=typeof t,i="boolean"==typeof e;return A.isFunction(t)?this.each((function(n){A(this).toggleClass(t.call(this,n,this.className,e),e)})):this.each((function(){if("string"===n)for(var s,o=0,r=A(this),a=e,l=t.split(Z);s=l[o++];)a=i?a:!r.hasClass(s),r[a?"addClass":"removeClass"](s);else"undefined"!==n&&"boolean"!==n||(this.className&&A._data(this,"__className__",this.className),this.className=this.className||!1===t?"":A._data(this,"__className__")||"")}))},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(H," ").indexOf(e)>-1)return!0;return!1},val:function(t){var n,i,s,o=this[0];return arguments.length?(s=A.isFunction(t),this.each((function(i){var o,r=A(this);1===this.nodeType&&(null==(o=s?t.call(this,i,r.val()):t)?o="":"number"==typeof o?o+="":A.isArray(o)&&(o=A.map(o,(function(t){return null==t?"":t+""}))),(n=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,o,"value")!==e||(this.value=o))}))):o?(n=A.valHooks[o.type]||A.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&(i=n.get(o,"value"))!==e?i:"string"==typeof(i=o.value)?i.replace(F,""):null==i?"":i:void 0}}),A.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,n,i,s,o=t.selectedIndex,r=[],a=t.options,l="select-one"===t.type;if(o<0)return null;for(n=l?o:0,i=l?o+1:a.length;n<i;n++)if((s=a[n]).selected&&(A.support.optDisabled?!s.disabled:null===s.getAttribute("disabled"))&&(!s.parentNode.disabled||!A.nodeName(s.parentNode,"optgroup"))){if(e=A(s).val(),l)return e;r.push(e)}return l&&!r.length&&a.length?A(a[o]).val():r},set:function(t,e){var n=A.makeArray(e);return A(t).find("option").each((function(){this.selected=A.inArray(A(this).val(),n)>=0})),n.length||(t.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,n,i,s){var o,r,a,l=t.nodeType;if(t&&3!==l&&8!==l&&2!==l)return s&&n in A.attrFn?A(t)[n](i):void 0===t.getAttribute?A.prop(t,n,i):((a=1!==l||!A.isXMLDoc(t))&&(n=n.toLowerCase(),r=A.attrHooks[n]||(q.test(n)?O:N)),i!==e?null===i?void A.removeAttr(t,n):r&&"set"in r&&a&&(o=r.set(t,i,n))!==e?o:(t.setAttribute(n,""+i),i):r&&"get"in r&&a&&null!==(o=r.get(t,n))?o:null===(o=t.getAttribute(n))?e:o)},removeAttr:function(t,e){var n,i,s,o,r,a=0;if(e&&1===t.nodeType)for(o=(i=e.toLowerCase().split(Z)).length;a<o;a++)(s=i[a])&&(n=A.propFix[s]||s,(r=q.test(s))||A.attr(t,s,""),t.removeAttribute(G?s:n),r&&n in t&&(t[n]=!1))},attrHooks:{type:{set:function(t,e){if($.test(t.nodeName)&&t.parentNode)A.error("type property can't be changed");else if(!A.support.radioValue&&"radio"===e&&A.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}},value:{get:function(t,e){return N&&A.nodeName(t,"button")?N.get(t,e):e in t?t.value:null},set:function(t,e,n){if(N&&A.nodeName(t,"button"))return N.set(t,e,n);t.value=e}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,n,i){var s,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return(1!==r||!A.isXMLDoc(t))&&(n=A.propFix[n]||n,o=A.propHooks[n]),i!==e?o&&"set"in o&&(s=o.set(t,i,n))!==e?s:t[n]=i:o&&"get"in o&&null!==(s=o.get(t,n))?s:t[n]},propHooks:{tabIndex:{get:function(t){var n=t.getAttributeNode("tabindex");
vendor: 15,046 bytes, line 6
6return n&&n.specified?parseInt(n.value,10):W.test(t.nodeName)||R.test(t.nodeName)&&t.href?0:e}}}}),A.attrHooks.tabindex=A.propHooks.tabIndex,O={get:function(t,n){var i,s=A.prop(t,n);return!0===s||"boolean"!=typeof s&&(i=t.getAttributeNode(n))&&!1!==i.nodeValue?n.toLowerCase():e},set:function(t,e,n){var i;return!1===e?A.removeAttr(t,n):((i=A.propFix[n]||n)in t&&(t[i]=!0),t.setAttribute(n,n.toLowerCase())),n}},G||(j={name:!0,id:!0,coords:!0},N=A.valHooks.button={get:function(t,n){var i;return(i=t.getAttributeNode(n))&&(j[n]?""!==i.nodeValue:i.specified)?i.nodeValue:e},set:function(t,e,n){var i=t.getAttributeNode(n);return i||(i=E.createAttribute(n),t.setAttributeNode(i)),i.nodeValue=e+""}},A.attrHooks.tabindex.set=N.set,A.each(["width","height"],(function(t,e){A.attrHooks[e]=A.extend(A.attrHooks[e],{set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}})})),A.attrHooks.contenteditable={get:N.get,set:function(t,e,n){""===e&&(e="false"),N.set(t,e,n)}}),A.support.hrefNormalized||A.each(["href","src","width","height"],(function(t,n){A.attrHooks[n]=A.extend(A.attrHooks[n],{get:function(t){var i=t.getAttribute(n,2);return null===i?e:i}})})),A.support.style||(A.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),A.support.optSelected||(A.propHooks.selected=A.extend(A.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),A.support.enctype||(A.propFix.enctype="encoding"),A.support.checkOn||A.each(["radio","checkbox"],(function(){A.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}})),A.each(["radio","checkbox"],(function(){A.valHooks[this]=A.extend(A.valHooks[this],{set:function(t,e){if(A.isArray(e))return t.checked=A.inArray(A(t).val(),e)>=0}})}));var V=/^(?:textarea|input|select)$/i,U=/^([^\.]*)?(?:\.(.+))?$/,Y=/(?:^|\s)hover(\.\S+)?\b/,Q=/^key/,J=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,K=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,tt=function(t){var e=K.exec(t);return e&&(e[1]=(e[1]||"").toLowerCase(),e[3]=e[3]&&new RegExp("(?:^|\\s)"+e[3]+"(?:\\s|$)")),e},et=function(t,e){var n=t.attributes||{};return(!e[1]||t.nodeName.toLowerCase()===e[1])&&(!e[2]||(n.id||{}).value===e[2])&&(!e[3]||e[3].test((n.class||{}).value))},nt=function(t){return A.event.special.hover?t:t.replace(Y,"mouseenter$1 mouseleave$1")};A.event={add:function(t,n,i,s,o){var r,a,l,c,u,h,d,p,m,f,_;if(3!==t.nodeType&&8!==t.nodeType&&n&&i&&(r=A._data(t))){for(i.handler&&(i=(m=i).handler,o=m.selector),i.guid||(i.guid=A.guid++),(l=r.events)||(r.events=l={}),(a=r.handle)||(r.handle=a=function(t){return void 0===A||t&&A.event.triggered===t.type?e:A.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=A.trim(nt(n)).split(" "),c=0;c<n.length;c++)h=(u=U.exec(n[c])||[])[1],d=(u[2]||"").split(".").sort(),_=A.event.special[h]||{},h=(o?_.delegateType:_.bindType)||h,_=A.event.special[h]||{},p=A.extend({type:h,origType:u[1],data:s,handler:i,guid:i.guid,selector:o,quick:o&&tt(o),namespace:d.join(".")},m),(f=l[h])||((f=l[h]=[]).delegateCount=0,_.setup&&!1!==_.setup.call(t,s,d,a)||(t.addEventListener?t.addEventListener(h,a,!1):t.attachEvent&&t.attachEvent("on"+h,a))),_.add&&(_.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),o?f.splice(f.delegateCount++,0,p):f.push(p),A.event.global[h]=!0;t=null}},global:{},remove:function(t,e,n,i,s){var o,r,a,l,c,u,h,d,p,m,f,_,g=A.hasData(t)&&A._data(t);if(g&&(d=g.events)){for(e=A.trim(nt(e||"")).split(" "),o=0;o<e.length;o++)if(a=l=(r=U.exec(e[o])||[])[1],c=r[2],a){for(p=A.event.special[a]||{},u=(f=d[a=(i?p.delegateType:p.bindType)||a]||[]).length,c=c?new RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=0;h<f.length;h++)_=f[h],(s||l===_.origType)&&(!n||n.guid===_.guid)&&(!c||c.test(_.namespace))&&(!i||i===_.selector||"**"===i&&_.selector)&&(f.splice(h--,1),_.selector&&f.delegateCount--,p.remove&&p.remove.call(t,_));0===f.length&&u!==f.length&&((!p.teardown||!1===p.teardown.call(t,c))&&A.removeEvent(t,a,g.handle),delete d[a])}else for(a in d)A.event.remove(t,a+e[o],n,i,!0);A.isEmptyObject(d)&&((m=g.handle)&&(m.elem=null),A.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,i,s,o){if(!s||3!==s.nodeType&&8!==s.nodeType){var r,a,l,c,u,h,d,p,m,f,_=n.type||n,g=[];if(X.test(_+A.event.triggered))return;if(_.indexOf("!")>=0&&(_=_.slice(0,-1),a=!0),_.indexOf(".")>=0&&(g=_.split("."),_=g.shift(),g.sort()),(!s||A.event.customEvent[_])&&!A.event.global[_])return;if((n="object"==typeof n?n[A.expando]?n:new A.Event(_,n):new A.Event(_)).type=_,n.isTrigger=!0,n.exclusive=a,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=_.indexOf(":")<0?"on"+_:"",!s){for(l in r=A.cache)r[l].events&&r[l].events[_]&&A.event.trigger(n,i,r[l].handle.elem,!0);return}if(n.result=e,n.target||(n.target=s),(i=null!=i?A.makeArray(i):[]).unshift(n),(d=A.event.special[_]||{}).trigger&&!1===d.trigger.apply(s,i))return;if(m=[[s,d.bindType||_]],!o&&!d.noBubble&&!A.isWindow(s)){for(f=d.delegateType||_,c=X.test(f+_)?s:s.parentNode,u=null;c;c=c.parentNode)m.push([c,f]),u=c;u&&u===s.ownerDocument&&m.push([u.defaultView||u.parentWindow||t,f])}for(l=0;l<m.length&&!n.isPropagationStopped();l++)c=m[l][0],n.type=m[l][1],(p=(A._data(c,"events")||{})[n.type]&&A._data(c,"handle"))&&p.apply(c,i),(p=h&&c[h])&&A.acceptData(c)&&!1===p.apply(c,i)&&n.preventDefault();return n.type=_,!o&&!n.isDefaultPrevented()&&(!d._default||!1===d._default.apply(s.ownerDocument,i))&&("click"!==_||!A.nodeName(s,"a"))&&A.acceptData(s)&&h&&s[_]&&("focus"!==_&&"blur"!==_||0!==n.target.offsetWidth)&&!A.isWindow(s)&&((u=s[h])&&(s[h]=null),A.event.triggered=_,s[_](),A.event.triggered=e,u&&(s[h]=u)),n.result}},dispatch:function(n){n=A.event.fix(n||t.event);var i,s,o,r,a,l,c,u,h,d,p=(A._data(this,"events")||{})[n.type]||[],m=p.delegateCount,f=[].slice.call(arguments,0),_=!n.exclusive&&!n.namespace,g=A.event.special[n.type]||{},v=[];if(f[0]=n,n.delegateTarget=this,!g.preDispatch||!1!==g.preDispatch.call(this,n)){if(m&&(!n.button||"click"!==n.type))for((r=A(this)).context=this.ownerDocument||this,o=n.target;o!=this;o=o.parentNode||this)if(!0!==o.disabled){for(l={},u=[],r[0]=o,i=0;i<m;i++)l[d=(h=p[i]).selector]===e&&(l[d]=h.quick?et(o,h.quick):r.is(d)),l[d]&&u.push(h);u.length&&v.push({elem:o,matches:u})}for(p.length>m&&v.push({elem:this,matches:p.slice(m)}),i=0;i<v.length&&!n.isPropagationStopped();i++)for(c=v[i],n.currentTarget=c.elem,s=0;s<c.matches.length&&!n.isImmediatePropagationStopped();s++)h=c.matches[s],(_||!n.namespace&&!h.namespace||n.namespace_re&&n.namespace_re.test(h.namespace))&&(n.data=h.data,n.handleObj=h,(a=((A.event.special[h.origType]||{}).handle||h.handler).apply(c.elem,f))!==e&&(n.result=a,!1===a&&(n.preventDefault(),n.stopPropagation())));return g.postDispatch&&g.postDispatch.call(this,n),n.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,s,o,r=n.button,a=n.fromElement;return null==t.pageX&&null!=n.clientX&&(s=(i=t.target.ownerDocument||E).documentElement,o=i.body,t.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),t.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?n.toElement:a),!t.which&&r!==e&&(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[A.expando])return t;var n,i,s=t,o=A.event.fixHooks[t.type]||{},r=o.props?this.props.concat(o.props):this.props;for(t=A.Event(s),n=r.length;n;)t[i=r[--n]]=s[i];return t.target||(t.target=s.srcElement||E),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey===e&&(t.metaKey=t.ctrlKey),o.filter?o.filter(t,s):t},special:{ready:{setup:A.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,n){A.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,n,i){var s=A.extend(new A.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?A.event.trigger(s,null,e):A.event.dispatch.call(e,s),s.isDefaultPrevented()&&n.preventDefault()}},A.event.handle=A.event.dispatch,A.removeEvent=E.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent&&t.detachEvent("on"+e,n)},A.Event=function(t,e){if(!(this instanceof A.Event))return new A.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.defaultPrevented&&t.defaultPrevented()?L:k):this.type=t,e&&A.extend(this,e),this.timeStamp=t&&t.timeStamp||A.now(),this[A.expando]=!0},A.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var t=this.originalEvent;!t||(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=L;var t=this.originalEvent;!t||(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L,this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k},A.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(t,e){A.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,s=t.handleObj;s.selector;return i&&(i===this||A.contains(this,i))||(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}})),A.support.submitBubbles||(A.event.special.submit={setup:function(){if(A.nodeName(this,"form"))return!1;A.event.add(this,"click._submit keypress._submit",(function(t){var n=t.target,i=A.nodeName(n,"input")||A.nodeName(n,"button")?n.form:e;i&&!i._submit_attached&&(A.event.add(i,"submit._submit",(function(t){t._submit_bubble=!0})),i._submit_attached=!0)}))},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&A.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(A.nodeName(this,"form"))return!1;A.event.remove(this,"._submit")}}),A.support.changeBubbles||(A.event.special.change={setup:function(){if(V.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(A.event.add(this,"propertychange._change",(function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)})),A.event.add(this,"click._change",(function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1,A.event.simulate("change",this,t,!0))}))),!1;A.event.add(this,"beforeactivate._change",(function(t){var e=t.target;V.test(e.nodeName)&&!e._change_attached&&(A.event.add(e,"change._change",(function(t){this.parentNode&&!t.isSimulated&&!t.isTrigger&&A.event.simulate("change",this.parentNode,t,!0)})),e._change_attached=!0)}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return A.event.remove(this,"._change"),V.test(this.nodeName)}}),A.support.focusinBubbles||A.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=0,i=function(t){A.event.simulate(e,t.target,A.event.fix(t),!0)};A.event.special[e]={setup:function(){0===n++&&E.addEventListener(t,i,!0)},teardown:function(){0===--n&&E.removeEventListener(t,i,!0)}}})),A.fn.extend({on:function(t,n,i,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=e),t)this.on(a,n,i,t[a],o);return this}if(null==i&&null==s?(s=n,i=n=e):null==s&&("string"==typeof n?(s=i,i=e):(s=i,i=n,n=e)),!1===s)s=k;else if(!s)return this;return 1===o&&(r=s,s=function(t){return A().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=A.guid++)),this.each((function(){A.event.add(this,t,s,i,n)}))},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){if(t&&t.preventDefault&&t.handleObj){var s=t.handleObj;return A(t.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this}if("object"==typeof t){for(var o in t)this.off(o,n,t[o]);return this}return!1!==n&&"function"!=typeof n||(i=n,n=e),!1===i&&(i=k),this.each((function(){A.event.remove(this,t,i,n)}))},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,n){return A(this.context).on(t,this.selector,e,n),this},die:function(t,e){return A(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1==arguments.length?this.off(t,"**"):this.off(e,t,n)},trigger:function(t,e){return this.each((function(){A.event.trigger(t,e,this)}))},triggerHandler:function(t,e){if(this[0])return A.event.trigger(t,e,this[0],!0)},toggle:function(t){var e=arguments,n=t.guid||A.guid++,i=0,s=function(n){var s=(A._data(this,"lastToggle"+t.guid)||0)%i;return A._data(this,"lastToggle"+t.guid,s+1),n.preventDefault(),e[s].apply(this,arguments)||!1};for(s.guid=n;i<e.length;)e[i++].guid=n;return this.click(s)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),A.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){A.fn[e]=function(t,n){return null==n&&(n=t,t=null),arguments.length>0?this.on(e,null,t,n):this.trigger(e)},A.attrFn&&(A.attrFn[e]=!0),Q.test(e)&&(A.event.fixHooks[e]=A.event.keyHooks),J.test(e)&&(A.event.fixHooks[e]=A.event.mouseHooks)})),function(){function t(t,e,n,i,o,r){for(var a=0,l=i.length;a<l;a++){var c=i[a];if(c){var u=!1;for(c=c[t];c;){if(c[s]===n){u=i[c.sizset];break}if(1===c.nodeType)if(r||(c[s]=n,c.sizset=a),"string"!=typeof e){if(c===e){u=!0;break}}else if(d.filter(e,[c]).length>0){u=c;break}c=c[t]}i[a]=u}}}function n(t,e,n,i,o,r){for(var a=0,l=i.length;a<l;a++){var c=i[a];if(c){var u=!1;for(c=c[t];c;){if(c[s]===n){u=i[c.sizset];break}if(1===c.nodeType&&!r&&(c[s]=n,c.sizset=a),c.nodeName.toLowerCase()===e){u=c;break}c=c[t]}i[a]=u}}}var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,s="sizcache"+(Math.random()+"").replace(".",""),o=0,r=Object.prototype.toString,a=!1,l=!0,c=/\\/g,u=/\r\n/g,h=/\W/;[0,0].sort((function(){return l=!1,0}));var d=function(t,e,n,s){n=n||[];var o=e=e||E;if(1!==e.nodeType&&9!==e.nodeType)return[];if(!t||"string"!=typeof t)return n;var a,l,c,u,h,p,_,g,v=!0,y=d.isXML(e),w=[],L=t;
vendor: 1,358 bytes, line 6
6do{if(i.exec(""),(a=i.exec(L))&&(L=a[3],w.push(a[1]),a[2])){u=a[3];break}}while(a);if(w.length>1&&f.exec(t))if(2===w.length&&m.relative[w[0]])l=x(w[0]+w[1],e,s);else for(l=m.relative[w[0]]?[e]:d(w.shift(),e);w.length;)t=w.shift(),m.relative[t]&&(t+=w.shift()),l=x(t,l,s);else if(!s&&w.length>1&&9===e.nodeType&&!y&&m.match.ID.test(w[0])&&!m.match.ID.test(w[w.length-1])&&(e=(h=d.find(w.shift(),e,y)).expr?d.filter(h.expr,h.set)[0]:h.set[0]),e)for(l=(h=s?{expr:w.pop(),set:b(s)}:d.find(w.pop(),1!==w.length||"~"!==w[0]&&"+"!==w[0]||!e.parentNode?e:e.parentNode,y)).expr?d.filter(h.expr,h.set):h.set,w.length>0?c=b(l):v=!1;w.length;)_=p=w.pop(),m.relative[p]?_=w.pop():p="",null==_&&(_=e),m.relative[p](c,_,y);else c=w=[];if(c||(c=l),c||d.error(p||t),"[object Array]"===r.call(c))if(v)if(e&&1===e.nodeType)for(g=0;null!=c[g];g++)c[g]&&(!0===c[g]||1===c[g].nodeType&&d.contains(e,c[g]))&&n.push(l[g]);else for(g=0;null!=c[g];g++)c[g]&&1===c[g].nodeType&&n.push(l[g]);else n.push.apply(n,c);else b(c,n);return u&&(d(u,o,n,s),d.uniqueSort(n)),n};d.uniqueSort=function(t){if(v&&(a=l,t.sort(v),a))for(var e=1;e<t.length;e++)t[e]===t[e-1]&&t.splice(e--,1);return t},d.matches=function(t,e){return d(t,null,null,e)},d.matchesSelector=function(t,e){return d(e,null,null,[t]).length>0},d.find=function(t,e,n){var i,s,o,r,a,l;if(!t)return[];for(s=0,o=m.order.length;s<o;
vendor: 14,848 bytes, line 6
6s++)if(a=m.order[s],(r=m.leftMatch[a].exec(t))&&(l=r[1],r.splice(1,1),"\\"!==l.substr(l.length-1)&&(r[1]=(r[1]||"").replace(c,""),null!=(i=m.find[a](r,e,n))))){t=t.replace(m.match[a],"");break}return i||(i=void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):[]),{set:i,expr:t}},d.filter=function(t,n,i,s){for(var o,r,a,l,c,u,h,p,f,_=t,g=[],v=n,y=n&&n[0]&&d.isXML(n[0]);t&&n.length;){for(a in m.filter)if(null!=(o=m.leftMatch[a].exec(t))&&o[2]){if(u=m.filter[a],h=o[1],r=!1,o.splice(1,1),"\\"===h.substr(h.length-1))continue;if(v===g&&(g=[]),m.preFilter[a])if(o=m.preFilter[a](o,v,i,g,s,y)){if(!0===o)continue}else r=l=!0;if(o)for(p=0;null!=(c=v[p]);p++)c&&(f=s^(l=u(c,o,p,v)),i&&null!=l?f?r=!0:v[p]=!1:f&&(g.push(c),r=!0));if(l!==e){if(i||(v=g),t=t.replace(m.match[a],""),!r)return[];break}}if(t===_){if(null!=r)break;d.error(t)}_=t}return v},d.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)};var p=d.getText=function(t){var e,n,i=t.nodeType,s="";if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;if("string"==typeof t.innerText)return t.innerText.replace(u,"");for(t=t.firstChild;t;t=t.nextSibling)s+=p(t)}else if(3===i||4===i)return t.nodeValue}else for(e=0;n=t[e];e++)8!==n.nodeType&&(s+=p(n));return s},m=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(t){return t.getAttribute("href")},type:function(t){return t.getAttribute("type")}},relative:{"+":function(t,e){var n="string"==typeof e,i=n&&!h.test(e),s=n&&!i;i&&(e=e.toLowerCase());for(var o,r=0,a=t.length;r<a;r++)if(o=t[r]){for(;(o=o.previousSibling)&&1!==o.nodeType;);t[r]=s||o&&o.nodeName.toLowerCase()===e?o||!1:o===e}s&&d.filter(e,t,!0)},">":function(t,e){var n,i="string"==typeof e,s=0,o=t.length;if(i&&!h.test(e)){for(e=e.toLowerCase();s<o;s++)if(n=t[s]){var r=n.parentNode;t[s]=r.nodeName.toLowerCase()===e&&r}}else{for(;s<o;s++)(n=t[s])&&(t[s]=i?n.parentNode:n.parentNode===e);i&&d.filter(e,t,!0)}},"":function(e,i,s){var r,a=o++,l=t;"string"==typeof i&&!h.test(i)&&(r=i=i.toLowerCase(),l=n),l("parentNode",i,a,e,r,s)},"~":function(e,i,s){var r,a=o++,l=t;"string"==typeof i&&!h.test(i)&&(r=i=i.toLowerCase(),l=n),l("previousSibling",i,a,e,r,s)}},find:{ID:function(t,e,n){if(void 0!==e.getElementById&&!n){var i=e.getElementById(t[1]);return i&&i.parentNode?[i]:[]}},NAME:function(t,e){if(void 0!==e.getElementsByName){for(var n=[],i=e.getElementsByName(t[1]),s=0,o=i.length;s<o;s++)i[s].getAttribute("name")===t[1]&&n.push(i[s]);return 0===n.length?null:n}},TAG:function(t,e){if(void 0!==e.getElementsByTagName)return e.getElementsByTagName(t[1])}},preFilter:{CLASS:function(t,e,n,i,s,o){if(t=" "+t[1].replace(c,"")+" ",o)return t;for(var r,a=0;null!=(r=e[a]);a++)r&&(s^(r.className&&(" "+r.className+" ").replace(/[\t\n\r]/g," ").indexOf(t)>=0)?n||i.push(r):n&&(e[a]=!1));return!1},ID:function(t){return t[1].replace(c,"")},TAG:function(t,e){return t[1].replace(c,"").toLowerCase()},CHILD:function(t){if("nth"===t[1]){t[2]||d.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===t[2]?"2n":"odd"===t[2]&&"2n+1")||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=e[1]+(e[2]||1)-0,t[3]=e[3]-0}else t[2]&&d.error(t[0]);return t[0]=o++,t},ATTR:function(t,e,n,i,s,o){var r=t[1]=t[1].replace(c,"");return!o&&m.attrMap[r]&&(t[1]=m.attrMap[r]),t[4]=(t[4]||t[5]||"").replace(c,""),"~="===t[2]&&(t[4]=" "+t[4]+" "),t},PSEUDO:function(t,e,n,s,o){if("not"===t[1]){if(!((i.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var r=d.filter(t[3],e,n,!0^o);return n||s.push.apply(s,r),!1}t[3]=d(t[3],null,null,e)}else if(m.match.POS.test(t[0])||m.match.CHILD.test(t[0]))return!0;return t},POS:function(t){return t.unshift(!0),t}},filters:{enabled:function(t){return!1===t.disabled&&"hidden"!==t.type},disabled:function(t){return!0===t.disabled},checked:function(t){return!0===t.checked},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},parent:function(t){return!!t.firstChild},empty:function(t){return!t.firstChild},has:function(t,e,n){return!!d(n[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){var e=t.getAttribute("type"),n=t.type;return"input"===t.nodeName.toLowerCase()&&"text"===n&&(e===n||null===e)},radio:function(t){return"input"===t.nodeName.toLowerCase()&&"radio"===t.type},checkbox:function(t){return"input"===t.nodeName.toLowerCase()&&"checkbox"===t.type},file:function(t){return"input"===t.nodeName.toLowerCase()&&"file"===t.type},password:function(t){return"input"===t.nodeName.toLowerCase()&&"password"===t.type},submit:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"submit"===t.type},image:function(t){return"input"===t.nodeName.toLowerCase()&&"image"===t.type},reset:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"reset"===t.type},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)},focus:function(t){return t===t.ownerDocument.activeElement}},setFilters:{first:function(t,e){return 0===e},last:function(t,e,n,i){return e===i.length-1},even:function(t,e){return e%2==0},odd:function(t,e){return e%2==1},lt:function(t,e,n){return e<n[3]-0},gt:function(t,e,n){return e>n[3]-0},nth:function(t,e,n){return n[3]-0===e},eq:function(t,e,n){return n[3]-0===e}},filter:{PSEUDO:function(t,e,n,i){var s=e[1],o=m.filters[s];if(o)return o(t,n,e,i);if("contains"===s)return(t.textContent||t.innerText||p([t])||"").indexOf(e[3])>=0;if("not"===s){for(var r=e[3],a=0,l=r.length;a<l;a++)if(r[a]===t)return!1;return!0}d.error(s)},CHILD:function(t,e){var n,i,o,r,a,l,c=e[1],u=t;switch(c){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===c)return!0;u=t;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(n=e[2],i=e[3],1===n&&0===i)return!0;if(o=e[0],(r=t.parentNode)&&(r[s]!==o||!t.nodeIndex)){for(a=0,u=r.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++a);r[s]=o}return l=t.nodeIndex-i,0===n?0===l:l%n===0&&l/n>=0}},ID:function(t,e){return 1===t.nodeType&&t.getAttribute("id")===e},TAG:function(t,e){return"*"===e&&1===t.nodeType||!!t.nodeName&&t.nodeName.toLowerCase()===e},CLASS:function(t,e){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(t,e){var n=e[1],i=d.attr?d.attr(t,n):m.attrHandle[n]?m.attrHandle[n](t):null!=t[n]?t[n]:t.getAttribute(n),s=i+"",o=e[2],r=e[4];return null==i?"!="===o:!o&&d.attr?null!=i:"="===o?s===r:"*="===o?s.indexOf(r)>=0:"~="===o?(" "+s+" ").indexOf(r)>=0:r?"!="===o?s!==r:"^="===o?0===s.indexOf(r):"$="===o?s.substr(s.length-r.length)===r:"|="===o&&(s===r||s.substr(0,r.length+1)===r+"-"):s&&!1!==i},POS:function(t,e,n,i){var s=e[2],o=m.setFilters[s];if(o)return o(t,n,e,i)}}},f=m.match.POS,_=function(t,e){return"\\"+(e-0+1)};for(var g in m.match)m.match[g]=new RegExp(m.match[g].source+/(?![^\[]*\])(?![^\(]*\))/.source),m.leftMatch[g]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[g].source.replace(/\\(\d+)/g,_));m.match.globalPOS=f;var v,y,b=function(t,e){return t=Array.prototype.slice.call(t,0),e?(e.push.apply(e,t),e):t};try{Array.prototype.slice.call(E.documentElement.childNodes,0)[0].nodeType}catch(t){b=function(t,e){var n=0,i=e||[];if("[object Array]"===r.call(t))Array.prototype.push.apply(i,t);else if("number"==typeof t.length)for(var s=t.length;n<s;n++)i.push(t[n]);else for(;t[n];n++)i.push(t[n]);return i}}E.documentElement.compareDocumentPosition?v=function(t,e){return t===e?(a=!0,0):t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1}:(v=function(t,e){if(t===e)return a=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var n,i,s=[],o=[],r=t.parentNode,l=e.parentNode,c=r;if(r===l)return y(t,e);if(!r)return-1;if(!l)return 1;for(;c;)s.unshift(c),c=c.parentNode;for(c=l;c;)o.unshift(c),c=c.parentNode;n=s.length,i=o.length;for(var u=0;u<n&&u<i;u++)if(s[u]!==o[u])return y(s[u],o[u]);return u===n?y(t,o[u],-1):y(s[u],e,1)},y=function(t,e,n){if(t===e)return n;for(var i=t.nextSibling;i;){if(i===e)return-1;i=i.nextSibling}return 1}),function(){var t=E.createElement("div"),n="script"+(new Date).getTime(),i=E.documentElement;t.innerHTML="<a name='"+n+"'/>",i.insertBefore(t,i.firstChild),E.getElementById(n)&&(m.find.ID=function(t,n,i){if(void 0!==n.getElementById&&!i){var s=n.getElementById(t[1]);return s?s.id===t[1]||void 0!==s.getAttributeNode&&s.getAttributeNode("id").nodeValue===t[1]?[s]:e:[]}},m.filter.ID=function(t,e){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return 1===t.nodeType&&n&&n.nodeValue===e}),i.removeChild(t),i=t=null}(),function(){var t=E.createElement("div");t.appendChild(E.createComment("")),t.getElementsByTagName("*").length>0&&(m.find.TAG=function(t,e){var n=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var i=[],s=0;n[s];s++)1===n[s].nodeType&&i.push(n[s]);n=i}return n}),t.innerHTML="<a href='#'></a>",t.firstChild&&void 0!==t.firstChild.getAttribute&&"#"!==t.firstChild.getAttribute("href")&&(m.attrHandle.href=function(t){return t.getAttribute("href",2)}),t=null}(),E.querySelectorAll&&function(){var t=d,e=E.createElement("div");if(e.innerHTML="<p class='TEST'></p>",!e.querySelectorAll||0!==e.querySelectorAll(".TEST").length){for(var n in d=function(e,n,i,s){if(n=n||E,!s&&!d.isXML(n)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);if(o&&(1===n.nodeType||9===n.nodeType)){if(o[1])return b(n.getElementsByTagName(e),i);if(o[2]&&m.find.CLASS&&n.getElementsByClassName)return b(n.getElementsByClassName(o[2]),i)}if(9===n.nodeType){if("body"===e&&n.body)return b([n.body],i);if(o&&o[3]){var r=n.getElementById(o[3]);if(!r||!r.parentNode)return b([],i);if(r.id===o[3])return b([r],i)}try{return b(n.querySelectorAll(e),i)}catch(t){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var a=n,l=n.getAttribute("id"),c=l||"__sizzle__",u=n.parentNode,h=/^\s*[+~]/.test(e);l?c=c.replace(/'/g,"\\$&"):n.setAttribute("id",c),h&&u&&(n=n.parentNode);try{if(!h||u)return b(n.querySelectorAll("[id='"+c+"'] "+e),i)}catch(t){}finally{l||a.removeAttribute("id")}}}return t(e,n,i,s)},t)d[n]=t[n];e=null}}(),function(){var t=E.documentElement,e=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector;if(e){var n=!e.call(E.createElement("div"),"div"),i=!1;try{e.call(E.documentElement,"[test!='']:sizzle")}catch(t){i=!0}d.matchesSelector=function(t,s){if(s=s.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!d.isXML(t))try{if(i||!m.match.PSEUDO.test(s)&&!/!=/.test(s)){var o=e.call(t,s);if(o||!n||t.document&&11!==t.document.nodeType)return o}}catch(t){}return d(s,null,null,[t]).length>0}}}(),function(){var t=E.createElement("div");if(t.innerHTML="<div class='test e'></div><div class='test'></div>",t.getElementsByClassName&&0!==t.getElementsByClassName("e").length){if(t.lastChild.className="e",1===t.getElementsByClassName("e").length)return;m.order.splice(1,0,"CLASS"),m.find.CLASS=function(t,e,n){if(void 0!==e.getElementsByClassName&&!n)return e.getElementsByClassName(t[1])},t=null}}(),E.documentElement.contains?d.contains=function(t,e){return t!==e&&(!t.contains||t.contains(e))}:E.documentElement.compareDocumentPosition?d.contains=function(t,e){return!!(16&t.compareDocumentPosition(e))}:d.contains=function(){return!1},d.isXML=function(t){var e=(t?t.ownerDocument||t:0).documentElement;return!!e&&"HTML"!==e.nodeName};var x=function(t,e,n){for(var i,s=[],o="",r=e.nodeType?[e]:e;i=m.match.PSEUDO.exec(t);)o+=i[0],t=t.replace(m.match.PSEUDO,"");t=m.relative[t]?t+"*":t;for(var a=0,l=r.length;a<l;a++)d(t,r[a],s,n);return d.filter(o,s)};d.attr=A.attr,d.selectors.attrMap={},A.find=d,A.expr=d.selectors,A.expr[":"]=A.expr.filters,A.unique=d.uniqueSort,A.text=d.getText,A.isXMLDoc=d.isXML,A.contains=d.contains}();var it=/Until$/,st=/^(?:parents|prevUntil|prevAll)/,ot=/,/,rt=/^.[^:#\[\.,]*$/,at=Array.prototype.slice,lt=A.expr.match.globalPOS,ct={children:!0,contents:!0,next:!0,prev:!0};A.fn.extend({find:function(t){var e,n,i=this;if("string"!=typeof t)return A(t).filter((function(){for(e=0,n=i.length;e<n;e++)if(A.contains(i[e],this))return!0}));var s,o,r,a=this.pushStack("","find",t);for(e=0,n=this.length;e<n;e++)if(s=a.length,A.find(t,this[e],a),e>0)for(o=s;o<a.length;o++)for(r=0;r<s;r++)if(a[r]===a[o]){a.splice(o--,1);break}return a},has:function(t){var e=A(t);return this.filter((function(){for(var t=0,n=e.length;t<n;t++)if(A.contains(this,e[t]))return!0}))},not:function(t){return this.pushStack(x(this,t,!1),"not",t)},filter:function(t){return this.pushStack(x(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?lt.test(t)?A(t,this.context).index(this[0])>=0:A.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){var n,i,s=[],o=this[0];if(A.isArray(t)){for(var r=1;o&&o.ownerDocument&&o!==e;){for(n=0;n<t.length;n++)A(o).is(t[n])&&s.push({selector:t[n],elem:o,level:r});o=o.parentNode,r++}return s}var a=lt.test(t)||"string"!=typeof t?A(t,e||this.context):0;for(n=0,i=this.length;n<i;n++)for(o=this[n];o;){if(a?a.index(o)>-1:A.find.matchesSelector(o,t)){s.push(o);break}if(!(o=o.parentNode)||!o.ownerDocument||o===e||11===o.nodeType)break}return s=s.length>1?A.unique(s):s,this.pushStack(s,"closest",t)},index:function(t){return t?"string"==typeof t?A.inArray(this[0],A(t)):A.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var n="string"==typeof t?A(t,e):A.makeArray(t&&t.nodeType?[t]:t),i=A.merge(this.get(),n);return this.pushStack(w(n[0])||w(i[0])?i:A.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),A.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A.dir(t,"parentNode")},parentsUntil:function(t,e,n){return A.dir(t,"parentNode",n)},next:function(t){return A.nth(t,2,"nextSibling")},prev:function(t){return A.nth(t,2,"previousSibling")},nextAll:function(t){return A.dir(t,"nextSibling")},prevAll:function(t){return A.dir(t,"previousSibling")},nextUntil:function(t,e,n){return A.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return A.dir(t,"previousSibling",n)}
6,siblings:function(t){return A.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return A.sibling(t.firstChild)},contents:function(t){return A.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:A.makeArray(t.childNodes)}},(function(t,e){A.fn[t]=function(n,i){var s=A.map(this,e,n);return it.test(t)||(i=n),i&&"string"==typeof i&&(s=A.filter(i,s)),s=this.length>1&&!ct[t]?A.unique(s):s,(this.length>1||ot.test(i))&&st.test(t)&&(s=s.reverse()),this.pushStack(s,t,at.call(arguments).join(","))}})),A.extend({filter:function(t,e,n){return n&&(t=":not("+t+")"),1===e.length?A.find.matchesSelector(e[0],t)?[e[0]]:[]:A.find.matches(t,e)},dir:function(t,n,i){for(var s=[],o=t[n];o&&9!==o.nodeType&&(i===e||1!==o.nodeType||!A(o).is(i));)1===o.nodeType&&s.push(o),o=o[n];return s},nth:function(t,e,n,i){e=e||1;for(var s=0;t&&(1!==t.nodeType||++s!==e);t=t[n]);return t},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var ut="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:\d+|null)"/g,dt=/^\s+/,pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,mt=/<([\w:]+)/,ft=/<tbody/i,_t=/<|&#?\w+;/,gt=/<(?:script|style)/i,vt=/<(?:script|object|embed|option|style)/i,yt=new RegExp("<(?:"+ut+")[\\s/>]","i"),bt=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,wt=/^\s*<!(?:\[CDATA\[|\-\-)/,Lt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},kt=b(E);Lt.optgroup=Lt.option,Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead,Lt.th=Lt.td,A.support.htmlSerialize||(Lt._default=[1,"div<div>","</div>"]),A.fn.extend({text:function(t){return A.access(this,(function(t){return t===e?A.text(this):this.empty().append((this[0]&&this[0].ownerDocument||E).createTextNode(t))}),null,t,arguments.length)},wrapAll:function(t){if(A.isFunction(t))return this.each((function(e){A(this).wrapAll(t.call(this,e))}));if(this[0]){var e=A(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return A.isFunction(t)?this.each((function(e){A(this).wrapInner(t.call(this,e))})):this.each((function(){var e=A(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=A.isFunction(t);return this.each((function(n){A(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){A.nodeName(this,"body")||A(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(t){1===this.nodeType&&this.appendChild(t)}))},prepend:function(){return this.domManip(arguments,!0,(function(t){1===this.nodeType&&this.insertBefore(t,this.firstChild)}))},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(t){this.parentNode.insertBefore(t,this)}));if(arguments.length){var t=A.clean(arguments);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(t){this.parentNode.insertBefore(t,this.nextSibling)}));if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,A.clean(arguments)),t}},remove:function(t,e){for(var n,i=0;null!=(n=this[i]);i++)t&&!A.filter(t,[n]).length||(!e&&1===n.nodeType&&(A.cleanData(n.getElementsByTagName("*")),A.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&A.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return A.clone(this,t,e)}))},html:function(t){return A.access(this,(function(t){var n=this[0]||{},i=0,s=this.length;if(t===e)return 1===n.nodeType?n.innerHTML.replace(ht,""):null;if("string"==typeof t&&!gt.test(t)&&(A.support.leadingWhitespace||!dt.test(t))&&!Lt[(mt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(pt,"<$1></$2>");try{for(;i<s;i++)1===(n=this[i]||{}).nodeType&&(A.cleanData(n.getElementsByTagName("*")),n.innerHTML=t);n=0}catch(t){}}n&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(t){return this[0]&&this[0].parentNode?A.isFunction(t)?this.each((function(e){var n=A(this),i=n.html();n.replaceWith(t.call(this,e,i))})):("string"!=typeof t&&(t=A(t).detach()),this.each((function(){var e=this.nextSibling,n=this.parentNode;A(this).remove(),e?A(e).before(t):A(n).append(t)}))):this.length?this.pushStack(A(A.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,n,i){var s,o,r,a,l=t[0],c=[];if(!A.support.checkClone&&3===arguments.length&&"string"==typeof l&&bt.test(l))return this.each((function(){A(this).domManip(t,n,i,!0)}));if(A.isFunction(l))return this.each((function(s){var o=A(this);t[0]=l.call(this,s,n?o.html():e),o.domManip(t,n,i)}));if(this[0]){if(a=l&&l.parentNode,o=1===(r=(s=A.support.parentNode&&a&&11===a.nodeType&&a.childNodes.length===this.length?{fragment:a}:A.buildFragment(t,this,c)).fragment).childNodes.length?r=r.firstChild:r.firstChild){n=n&&A.nodeName(o,"tr");for(var u=0,h=this.length,d=h-1;u<h;u++)i.call(n?y(this[u]):this[u],s.cacheable||h>1&&u<d?A.clone(r,!0,!0):r)}c.length&&A.each(c,(function(t,e){e.src?A.ajax({type:"GET",global:!1,url:e.src,async:!1,dataType:"script"}):A.globalEval((e.text||e.textContent||e.innerHTML||"").replace(wt,"/*$0*/")),e.parentNode&&e.parentNode.removeChild(e)}))}return this}}),A.buildFragment=function(t,e,n){var i,s,o,r,a=t[0];return e&&e[0]&&(r=e[0].ownerDocument||e[0]),r.createDocumentFragment||(r=E),1===t.length&&"string"==typeof a&&a.length<512&&r===E&&"<"===a.charAt(0)&&!vt.test(a)&&(A.support.checkClone||!bt.test(a))&&(A.support.html5Clone||!yt.test(a))&&(s=!0,(o=A.fragments[a])&&1!==o&&(i=o)
vendor: 16,594 bytes, line 6
6),i||(i=r.createDocumentFragment(),A.clean(t,r,i,n)),s&&(A.fragments[a]=o?i:1),{fragment:i,cacheable:s}},A.fragments={},A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){A.fn[t]=function(n){var i=[],s=A(n),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===s.length)return s[e](this[0]),this;for(var r=0,a=s.length;r<a;r++){var l=(r>0?this.clone(!0):this).get();A(s[r])[e](l),i=i.concat(l)}return this.pushStack(i,t,s.selector)}})),A.extend({clone:function(t,e,n){var i,s,o,r=A.support.html5Clone||A.isXMLDoc(t)||!yt.test("<"+t.nodeName+">")?t.cloneNode(!0):p(t);if(!(A.support.noCloneEvent&&A.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||A.isXMLDoc(t)))for(g(t,r),i=_(t),s=_(r),o=0;i[o];++o)s[o]&&g(i[o],s[o]);if(e&&(v(t,r),n))for(i=_(t),s=_(r),o=0;i[o];++o)v(i[o],s[o]);return i=s=null,r},clean:function(t,e,n,i){var s,o,r,a=[];void 0===(e=e||E).createElement&&(e=e.ownerDocument||e[0]&&e[0].ownerDocument||E);for(var l,c=0;null!=(l=t[c]);c++)if("number"==typeof l&&(l+=""),l){if("string"==typeof l)if(_t.test(l)){l=l.replace(pt,"<$1></$2>");var u,h=(mt.exec(l)||["",""])[1].toLowerCase(),d=Lt[h]||Lt._default,p=d[0],f=e.createElement("div"),_=kt.childNodes;for(e===E?kt.appendChild(f):b(e).appendChild(f),f.innerHTML=d[1]+l+d[2];p--;)f=f.lastChild;if(!A.support.tbody){var g=ft.test(l),v="table"!==h||g?"<table>"!==d[1]||g?[]:f.childNodes:f.firstChild&&f.firstChild.childNodes;for(r=v.length-1;r>=0;--r)A.nodeName(v[r],"tbody")&&!v[r].childNodes.length&&v[r].parentNode.removeChild(v[r])}!A.support.leadingWhitespace&&dt.test(l)&&f.insertBefore(e.createTextNode(dt.exec(l)[0]),f.firstChild),l=f.childNodes,f&&(f.parentNode.removeChild(f),_.length>0&&((u=_[_.length-1])&&u.parentNode&&u.parentNode.removeChild(u)))}else l=e.createTextNode(l);var y;if(!A.support.appendChecked)if(l[0]&&"number"==typeof(y=l.length))for(r=0;r<y;r++)m(l[r]);else m(l);l.nodeType?a.push(l):a=A.merge(a,l)}if(n)for(s=function(t){return!t.type||xt.test(t.type)},c=0;a[c];c++)if(o=a[c],i&&A.nodeName(o,"script")&&(!o.type||xt.test(o.type)))i.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var x=A.grep(o.getElementsByTagName("script"),s);a.splice.apply(a,[c+1,0].concat(x))}n.appendChild(o)}return a},cleanData:function(t){for(var e,n,i,s=A.cache,o=A.event.special,r=A.support.deleteExpando,a=0;null!=(i=t[a]);a++)if((!i.nodeName||!A.noData[i.nodeName.toLowerCase()])&&(n=i[A.expando])){if((e=s[n])&&e.events){for(var l in e.events)o[l]?A.event.remove(i,l):A.removeEvent(i,l,e.handle);e.handle&&(e.handle.elem=null)}r?delete i[A.expando]:i.removeAttribute&&i.removeAttribute(A.expando),delete s[n]}}});var Tt,Ct,St,Et=/alpha\([^)]*\)/i,Mt=/opacity=([^)]*)/,Pt=/([A-Z]|^ms)/g,At=/^[\-+]?(?:\d*\.)?\d+$/i,It=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Bt=/^([\-+])=([\-+.\de]+)/,zt=/^margin/,Dt={position:"absolute",visibility:"hidden",display:"block"},Nt=["Top","Right","Bottom","Left"];A.fn.css=function(t,n){return A.access(this,(function(t,n,i){return i!==e?A.style(t,n,i):A.css(t,n)}),t,n,arguments.length>1)},A.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Tt(t,"opacity");return""===n?"1":n}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:A.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a=A.camelCase(n),l=t.style,c=A.cssHooks[a];if(n=A.cssProps[a]||a,i===e)return c&&"get"in c&&(o=c.get(t,!1,s))!==e?o:l[n];if("string"===(r=typeof i)&&(o=Bt.exec(i))&&(i=+(o[1]+1)*+o[2]+parseFloat(A.css(t,n)),r="number"),null==i||"number"===r&&isNaN(i))return;if("number"===r&&!A.cssNumber[a]&&(i+="px"),!c||!("set"in c)||(i=c.set(t,i))!==e)try{l[n]=i}catch(t){}}},css:function(t,n,i){var s,o;return n=A.camelCase(n),o=A.cssHooks[n],"cssFloat"===(n=A.cssProps[n]||n)&&(n="float"),o&&"get"in o&&(s=o.get(t,!0,i))!==e?s:Tt?Tt(t,n):void 0},swap:function(t,e,n){var i,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];for(s in i=n.call(t),e)t.style[s]=o[s];return i}}),A.curCSS=A.css,E.defaultView&&E.defaultView.getComputedStyle&&(Ct=function(t,e){var n,i,s,o,r=t.style;return e=e.replace(Pt,"-$1").toLowerCase(),(i=t.ownerDocument.defaultView)&&(s=i.getComputedStyle(t,null))&&(""===(n=s.getPropertyValue(e))&&!A.contains(t.ownerDocument.documentElement,t)&&(n=A.style(t,e))),!A.support.pixelMargin&&s&&zt.test(e)&&It.test(n)&&(o=r.width,r.width=n,n=s.width,r.width=o),n}),E.documentElement.currentStyle&&(St=function(t,e){var n,i,s,o=t.currentStyle&&t.currentStyle[e],r=t.style;return null==o&&r&&(s=r[e])&&(o=s),It.test(o)&&(n=r.left,(i=t.runtimeStyle&&t.runtimeStyle.left)&&(t.runtimeStyle.left=t.currentStyle.left),r.left="fontSize"===e?"1em":o,o=r.pixelLeft+"px",r.left=n,i&&(t.runtimeStyle.left=i)),""===o?"auto":o}),Tt=Ct||St,A.each(["height","width"],(function(t,e){A.cssHooks[e]={get:function(t,n,i){if(n)return 0!==t.offsetWidth?d(t,e,i):A.swap(t,Dt,(function(){return d(t,e,i)}))},set:function(t,e){return At.test(e)?e+"px":e}}})),A.support.opacity||(A.cssHooks.opacity={get:function(t,e){return Mt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,s=A.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,e>=1&&""===A.trim(o.replace(Et,""))&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=Et.test(o)?o.replace(Et,s):o+" "+s)}}),A((function(){A.support.reliableMarginRight||(A.cssHooks.marginRight={get:function(t,e){return A.swap(t,{display:"inline-block"},(function(){return e?Tt(t,"margin-right"):t.style.marginRight}))}})})),A.expr&&A.expr.filters&&(A.expr.filters.hidden=function(t){var e=t.offsetWidth,n=t.offsetHeight;return 0===e&&0===n||!A.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||A.css(t,"display"))},A.expr.filters.visible=function(t){return!A.expr.filters.hidden(t)}),A.each({margin:"",padding:"",border:"Width"},(function(t,e){A.cssHooks[t+e]={expand:function(n){var i,s="string"==typeof n?n.split(" "):[n],o={};for(i=0;i<4;i++)o[t+Nt[i]+e]=s[i]||s[i-2]||s[0];return o}}}));var Ot,jt,Ht=/%20/g,Zt=/\[\]$/,Ft=/\r?\n/g,$t=/#.*$/,Wt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Rt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qt=/^(?:GET|HEAD)$/,Gt=/^\/\//,Vt=/\?/,Ut=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Yt=/^(?:select|textarea)/i,Qt=/\s+/,Jt=/([?&])_=[^&]*/,Xt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Kt=A.fn.load,te={},ee={},ne=["*/"]+["*"];try{Ot=P.href}catch(t){(Ot=E.createElement("a")).href="",Ot=Ot.href}jt=Xt.exec(Ot.toLowerCase())||[],A.fn.extend({load:function(t,n,i){if("string"!=typeof t&&Kt)return Kt.apply(this,arguments);if(!this.length)return this;var s=t.indexOf(" ");if(s>=0){var o=t.slice(s,t.length);t=t.slice(0,s)}var r="GET";n&&(A.isFunction(n)?(i=n,n=e):"object"==typeof n&&(n=A.param(n,A.ajaxSettings.traditional),r="POST"));var a=this;return A.ajax({url:t,type:r,dataType:"html",data:n,complete:function(t,e,n){n=t.responseText,t.isResolved()&&(t.done((function(t){n=t})),a.html(o?A("<div>").append(n.replace(Ut,"")).find(o):n)),i&&a.each(i,[n,e,t])}}),this},serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?A.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Yt.test(this.nodeName)||Rt.test(this.type))})).map((function(t,e){var n=A(this).val();return null==n?null:A.isArray(n)?A.map(n,(function(t,n){return{name:e.name,value:t.replace(Ft,"\r\n")}})):{name:e.name,value:n.replace(Ft,"\r\n")}})).get()}}),A.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(t,e){A.fn[e]=function(t){return this.on(e,t)}})),A.each(["get","post"],(function(t,n){A[n]=function(t,i,s,o){return A.isFunction(i)&&(o=o||s,s=i,i=e),A.ajax({type:n,url:t,data:i,success:s,dataType:o})}})),A.extend({getScript:function(t,n){return A.get(t,e,n,"script")},getJSON:function(t,e,n){return A.get(t,e,n,"json")},ajaxSetup:function(t,e){return e?c(t,A.ajaxSettings):(e=t,t=A.ajaxSettings),c(t,e),t},ajaxSettings:{url:Ot,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(jt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":ne},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":t.String,"text html":!0,"text json":A.parseJSON,"text xml":A.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:h(te),ajaxTransport:h(ee),ajax:function(t,n){function i(t,n,i,r){if(2!==x){x=2,l&&clearTimeout(l),a=e,o=r||"",w.readyState=t>0?4:0;var c,u,d,y,b,L=n,k=i?function(t,n,i){var s,o,r,a,l=t.contents,c=t.dataTypes,u=t.responseFields;for(o in u)o in i&&(n[u[o]]=i[o]);for(;"*"===c[0];)c.shift(),s===e&&(s=t.mimeType||n.getResponseHeader("content-type"));if(s)for(o in l)if(l[o]&&l[o].test(s)){c.unshift(o);break}if(c[0]in i)r=c[0];else{for(o in i){if(!c[0]||t.converters[o+" "+c[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==c[0]&&c.unshift(r),i[r]}(p,w,i):e;if(t>=200&&t<300||304===t)if(p.ifModified&&((y=w.getResponseHeader("Last-Modified"))&&(A.lastModified[s]=y),(b=w.getResponseHeader("Etag"))&&(A.etag[s]=b)),304===t)L="notmodified",c=!0;else try{u=function(t,n){t.dataFilter&&(n=t.dataFilter(n,t.dataType));var i,s,o,r,a,l,c,u,h=t.dataTypes,d={},p=h.length,m=h[0];for(i=1;i<p;i++){if(1===i)for(s in t.converters)"string"==typeof s&&(d[s.toLowerCase()]=t.converters[s]);if(r=m,"*"===(m=h[i]))m=r;else if("*"!==r&&r!==m){if(!(l=d[a=r+" "+m]||d["* "+m]))for(c in u=e,d)if(((o=c.split(" "))[0]===r||"*"===o[0])&&(u=d[o[1]+" "+m])){!0===(c=d[c])?l=u:!0===u&&(l=c);break}!l&&!u&&A.error("No conversion from "+a.replace(" "," to ")),!0!==l&&(n=l?l(n):u(c(n)))}}return n}(p,k),L="success",c=!0}catch(t){L="parsererror",d=t}else d=L,L&&!t||(L="error",t<0&&(t=0));w.status=t,w.statusText=""+(n||L),c?_.resolveWith(m,[u,L,w]):_.rejectWith(m,[w,L,d]),w.statusCode(v),v=e,h&&f.trigger("ajax"+(c?"Success":"Error"),[w,p,c?u:d]),g.fireWith(m,[w,L]),h&&(f.trigger("ajaxComplete",[w,p]),--A.active||A.event.trigger("ajaxStop"))}}"object"==typeof t&&(n=t,t=e),n=n||{};var s,o,r,a,l,c,h,d,p=A.ajaxSetup({},n),m=p.context||p,f=m!==p&&(m.nodeType||m instanceof A)?A(m):A.event,_=A.Deferred(),g=A.Callbacks("once memory"),v=p.statusCode||{},y={},b={},x=0,w={readyState:0,setRequestHeader:function(t,e){if(!x){var n=t.toLowerCase();t=b[n]=b[n]||t,y[t]=e}return this},getAllResponseHeaders:function(){return 2===x?o:null},getResponseHeader:function(t){var n;if(2===x){if(!r)for(r={};n=Wt.exec(o);)r[n[1].toLowerCase()]=n[2];n=r[t.toLowerCase()]}return n===e?null:n},overrideMimeType:function(t){return x||(p.mimeType=t),this},abort:function(t){return t=t||"abort",a&&a.abort(t),i(0,t),this}};if(_.promise(w),w.success=w.done,w.error=w.fail,w.complete=g.add,w.statusCode=function(t){var e;if(t)if(x<2)for(e in t)v[e]=[v[e],t[e]];else e=t[w.status],w.then(e,e);return this},p.url=((t||p.url)+"").replace($t,"").replace(Gt,jt[1]+"//"),p.dataTypes=A.trim(p.dataType||"*").toLowerCase().split(Qt),null==p.crossDomain&&(c=Xt.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]==jt[1]&&c[2]==jt[2]&&(c[3]||("http:"===c[1]?80:443))==(jt[3]||("http:"===jt[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=A.param(p.data,p.traditional)),u(te,p,n,w),2===x)return!1;if(h=p.global,p.type=p.type.toUpperCase(),p.hasContent=!qt.test(p.type),h&&0===A.active++&&A.event.trigger("ajaxStart"),!p.hasContent&&(p.data&&(p.url+=(Vt.test(p.url)?"&":"?")+p.data,delete p.data),s=p.url,!1===p.cache)){var L=A.now(),k=p.url.replace(Jt,"$1_="+L);p.url=k+(k===p.url?(Vt.test(p.url)?"&":"?")+"_="+L:"")}for(d in(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),p.ifModified&&(s=s||p.url,A.lastModified[s]&&w.setRequestHeader("If-Modified-Since",A.lastModified[s]),A.etag[s]&&w.setRequestHeader("If-None-Match",A.etag[s])),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+ne+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(m,w,p)||2===x))return w.abort(),!1;for(d in{success:1,error:1,complete:1})w[d](p[d]);if(a=u(ee,p,n,w)){w.readyState=1,h&&f.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(l=setTimeout((function(){w.abort("timeout")}),p.timeout));try{x=1,a.send(y,i)}catch(t){if(!(x<2))throw t;i(-1,t)}}else i(-1,"No Transport");return w},param:function(t,n){var i=[],s=function(t,e){e=A.isFunction(e)?e():e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=A.ajaxSettings.traditional),A.isArray(t)||t.jquery&&!A.isPlainObject(t))A.each(t,(function(){s(this.name,this.value)}));else for(var o in t)l(o,t[o],n,s);return i.join("&").replace(Ht,"+")}}),A.extend({active:0,lastModified:{},etag:{}});var ie=A.now(),se=/(\=)\?(&|$)|\?\?/i;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return A.expando+"_"+ie++}}),A.ajaxPrefilter("json jsonp",(function(e,n,i){var s="string"==typeof e.data&&/^application\/x\-www\-form\-urlencoded/.test(e.contentType);if("jsonp"===e.dataTypes[0]||!1!==e.jsonp&&(se.test(e.url)||s&&se.test(e.data))){var o,r=e.jsonpCallback=A.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a=t[r],l=e.url,c=e.data,u="$1"+r+"$2";return!1!==e.jsonp&&(l=l.replace(se,u),e.url===l&&(s&&(c=c.replace(se,u)),e.data===c&&(l+=(/\?/.test(l)?"&":"?")+e.jsonp+"="+r))),e.url=l,e.data=c,t[r]=function(t){o=[t]},i.always((function(){t[r]=a,o&&A.isFunction(a)&&t[r](o[0])})),e.converters["script json"]=function(){return o||A.error(r+" was not called"),o[0]},e.dataTypes[0]="json","script"}})),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return A.globalEval(t),t}}}),A.ajaxPrefilter("script",(function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),A.ajaxTransport("script",(function(t){if(t.crossDomain){var n,i=E.head||E.getElementsByTagName("head")[0]||E.documentElement;return{send:function(s,o){(n=E.createElement("script")).async="async",t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,s){(s||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=e,s||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}}));var oe,re=!!t.ActiveXObject&&function(){for(var t in oe)oe[t](0,1)},ae=0;A.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&a()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:a,function(t){A.extend(A.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(A.ajaxSettings.xhr()),A.support.ajax&&A.ajaxTransport((function(n){var i;if(!n.crossDomain||A.support.cors)return{send:function(s,o){var r,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),!n.crossDomain&&!s["X-Requested-With"]&&(s["X-Requested-With"]="XMLHttpRequest");try{for(a in s)l.setRequestHeader(a,s[a])}catch(t){}l.send(n.hasContent&&n.data||null),i=function(t,s){var a,c,u,h,d;try{if(i&&(s||4===l.readyState))if(i=e,r&&(l.onreadystatechange=A.noop,re&&delete oe[r]),s)4!==l.readyState&&l.abort();else{a=l.status,u=l.getAllResponseHeaders(),h={},(d=l.responseXML)&&d.documentElement&&(h.xml=d);try{h.text=l.responseText}catch(t){}try{c=l.statusText}catch(t){c=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=h.text?200:404}}catch(t){s||o(-1,t)}h&&o(a,c,h,u)},n.async&&4!==l.readyState?(r=++ae,re&&(oe||(oe={},A(t).unload(re)),oe[r]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}));var le,ce,ue,he,de={},pe=/^(?:toggle|show|hide)$/,me=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,fe=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["o
6pacity"]];A.fn.extend({show:function(t,e,n){var o,r;if(t||0===t)return this.animate(s("show",3),t,e,n);for(var a=0,l=this.length;a<l;a++)(o=this[a]).style&&(r=o.style.display,!A._data(o,"olddisplay")&&"none"===r&&(r=o.style.display=""),(""===r&&"none"===A.css(o,"display")||!A.contains(o.ownerDocument.documentElement,o))&&A._data(o,"olddisplay",i(o.nodeName)));for(a=0;a<l;a++)(o=this[a]).style&&(""!==(r=o.style.display)&&"none"!==r||(o.style.display=A._data(o,"olddisplay")||""));return this},hide:function(t,e,n){if(t||0===t)return this.animate(s("hide",3),t,e,n);for(var i,o,r=0,a=this.length;r<a;r++)(i=this[r]).style&&("none"!==(o=A.css(i,"display"))&&!A._data(i,"olddisplay")&&A._data(i,"olddisplay",o));for(r=0;r<a;r++)this[r].style&&(this[r].style.display="none");return this},_toggle:A.fn.toggle,toggle:function(t,e,n){var i="boolean"==typeof t;return A.isFunction(t)&&A.isFunction(e)?this._toggle.apply(this,arguments):null==t||i?this.each((function(){var e=i?t:A(this).is(":hidden");A(this)[e?"show":"hide"]()})):this.animate(s("toggle",3),t,e,n),this},fadeTo:function(t,e,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,s){function o(){!1===r.queue&&A._mark(this);var e,n,s,o,a,l,c,u,h,d,p,m=A.extend({},r),f=1===this.nodeType,_=f&&A(this).is(":hidden");for(s in m.animatedProperties={},t)if(s!==(e=A.camelCase(s))&&(t[e]=t[s],delete t[s]),(a=A.cssHooks[e])&&"expand"in a)for(s in l=a.expand(t[e]),delete t[e],l)s in t||(t[s]=l[s]);for(e in t){if(n=t[e],A.isArray(n)?(m.animatedProperties[e]=n[1],n=t[e]=n[0]):m.animatedProperties[e]=m.specialEasing&&m.specialEasing[e]||m.easing||"swing","hide"===n&&_||"show"===n&&!_)return m.complete.call(this);f&&("height"===e||"width"===e)&&(m.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===A.css(this,"display")&&"none"===A.css(this,"float")&&(A.support.inlineBlockNeedsLayout&&"inline"!==i(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(s in null!=m.overflow&&(this.style.overflow="hidden"),t)o=new A.fx(this,m,s),n=t[s],pe.test(n)?(p=A._data(this,"toggle"+s)||("toggle"===n?_?"show":"hide":0))?(A._data(this,"toggle"+s,"show"===p?"hide":"show"),o[p]()):o[n]():(c=me.exec(n),u=o.cur(),c?(h=parseFloat(c[2]),"px"!==(d=c[3]||(A.cssNumber[s]?"":"px"))&&(A.style(this,s,(h||1)+d),u=(h||1)/o.cur()*u,A.style(this,s,u+d)),c[1]&&(h=("-="===c[1]?-1:1)*h+u),o.custom(u,h,d)):o.custom(u,n,""));return!0}var r=A.speed(e,n,s);return A.isEmptyObject(t)?this.each(r.complete,[!1]):(t=A.extend({},t),!1===r.queue?this.each(o):this.queue(r.queue,o))},stop:function(t,n,i){return"string"!=typeof t&&(i=n,n=t,t=e),n&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){function e(t,e,n){var s=e[n];A.removeData(t,n,!0),s.stop(i)}var n,s=!1,o=A.timers,r=A._data(this);if(i||A._unmark(!0,this),null==t)for(n in r)r[n]&&r[n].stop&&n.indexOf(".run")===n.length-4&&e(this,r,n);else r[n=t+".run"]&&r[n].stop&&e(this,r,n);for(n=o.length;n--;)o[n].elem===this&&(null==t||o[n].queue===t)&&(i?o[n](!0):o[n].saveState(),s=!0,o.splice(n,1));(!i||!s)&&A.dequeue(this,t)}))}}),A.each({slideDown:s("show",1),slideUp:s("hide",1),slideToggle:s("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){A.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),A.extend({speed:function(t,e,n){var i=t&&"object"==typeof t?A.extend({},t):{complete:n||!n&&e||A.isFunction(t)&&t,duration:t,easing:n&&e||e&&!A.isFunction(e)&&e};return i.duration=A.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in A.fx.speeds?A.fx.speeds[i.duration]:A.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(t){A.isFunction(i.old)&&i.old.call(this),i.queue?A.dequeue(this,i.queue):!1!==t&&A._unmark(this)},i},easing:{linear:function(t){return t},swing:function(t){return-Math.cos(t*Math.PI)/2+.5}},timers:[],fx:function(t,e,n){this.options=e,this.elem=t,this.prop=n,e.orig=e.orig||{}}}),A.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(A.fx.step[this.prop]||A.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var t,e=A.css(this.elem,this.prop);return isNaN(t=parseFloat(e))?e&&"auto"!==e?e:0:t},custom:function(t,n,i){function s(t){return o.step(t)}var o=this,a=A.fx;this.startTime=he||r(),this.end=n,this.now=this.start=t,this.pos=this.state=0,this.unit=i||this.unit||(A.cssNumber[this.prop]?"":"px"),s.queue=this.options.queue,s.elem=this.elem,s.saveState=function(){A._data(o.elem,"fxshow"+o.prop)===e&&(o.options.hide?A._data(o.elem,"fxshow"+o.prop,o.start):o.options.show&&A._data(o.elem,"fxshow"+o.prop,o.end))},s()&&A.timers.push(s)&&!ue&&(ue=setInterval(a.tick,a.interval))},show:function(){var t=A._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||A.style(this.elem,this.prop),this.options.show=!0,t!==e?this.custom(this.cur(),t):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),A(this.elem).show()},hide:function(){this.options.orig[this.prop]=A._data(this.elem,"fxshow"+this.prop)||A.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var e,n,i,s=he||r(),o=!0,a=this.elem,l=this.options;if(t||s>=l.duration+this.startTime){for(e in this.now=this.end,this.pos=this.state=1,this.update(),l.animatedProperties[this.prop]=!0,l.animatedProperties)!0!==l.animatedProperties[e]&&(o=!1);if(o){if(null!=l.overflow&&!A.support.shrinkWrapBlocks&&A.each(["","X","Y"],(function(t,e){a.style["overflow"+e]=l.overflow[t]})),l.hide&&A(a).hide(),l.hide||l.show)for(e in l.animatedProperties)A.style(a,e,l.orig[e]),A.removeData(a,"fxshow"+e,!0),A.removeData(a,"toggle"+e,!0);(i=l.complete)&&(l.complete=!1,i.call(a))}return!1}return l.duration==1/0?this.now=s:(n=s-this.startTime,this.state=n/l.duration,this.pos=A.easing[l.animatedProperties[this.prop]](this.state,n,0,1,l.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},A.extend(A.fx,{tick:function(){for(var t,e=A.timers,n=0;n<e.length;n++)!(t=e[n])()&&e[n]===t&&e.splice(n--,1);e.length||A.fx.stop()},interval:13,stop:function(){clearInterval(ue),ue=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){A.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&null!=t.elem.style[t.prop]?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),A.each(fe.concat.apply([],fe),(function(t,e){e.indexOf("margin")&&(A.fx.step[e]=function(t){A.style(t.elem,e,Math.max(0,t.now)+t.unit)})})),A.expr&&A.expr.filters&&(A.expr.filters.animated=function(t){return A.grep(A.timers,(function(e){return t===e.elem})).length});var _e,ge=/^t(?:able|d|h)$/i,ve=/^(?:body|html)$/i;
6_e="getBoundingClientRect"in E.documentElement?function(t,e,i,s){try{s=t.getBoundingClientRect()}catch(t){}if(!s||!A.contains(i,t))return s?{top:s.top,left:s.left}:{top:0,left:0};var o=e.body,r=n(e),a=i.clientTop||o.clientTop||0,l=i.clientLeft||o.clientLeft||0,c=r.pageYOffset||A.support.boxModel&&i.scrollTop||o.scrollTop,u=r.pageXOffset||A.support.boxModel&&i.scrollLeft||o.scrollLeft;return{top:s.top+c-a,left:s.left+u-l}}:function(t,e,n){for(var i,s=t.offsetParent,o=e.body,r=e.defaultView,a=r?r.getComputedStyle(t,null):t.currentStyle,l=t.offsetTop,c=t.offsetLeft;(t=t.parentNode)&&t!==o&&t!==n&&(!A.support.fixedPosition||"fixed"!==a.position);)i=r?r.getComputedStyle(t,null):t.currentStyle,l-=t.scrollTop,c-=t.scrollLeft,t===s&&(l+=t.offsetTop,c+=t.offsetLeft,A.support.doesNotAddBorder&&(!A.support.doesAddBorderForTableAndCells||!ge.test(t.nodeName))&&(l+=parseFloat(i.borderTopWidth)||0,c+=parseFloat(i.borderLeftWidth)||0),s=t.offsetParent),A.support.subtractsBorderForOverflowNotVisible&&"visible"!==i.overflow&&(l+=parseFloat(i.borderTopWidth)||0,c+=parseFloat(i.borderLeftWidth)||0),a=i;return"relative"!==a.position&&"static"!==a.position||(l+=o.offsetTop,c+=o.offsetLeft),A.support.fixedPosition&&"fixed"===a.position&&(l+=Math.max(n.scrollTop,o.scrollTop),c+=Math.max(n.scrollLeft,o.scrollLeft)),{top:l,left:c}},A.fn.offset=function(t){if(arguments.length)return t===e?this:this.each((function(e){A.offset.setOffset(this,t,e)}));var n=this[0],i=n&&n.ownerDocument;return i?n===i.body?A.offset.bodyOffset(n):_e(n,i,i.documentElement):null},A.offset={bodyOffset:function(t){var e=t.offsetTop,n=t.offsetLeft;return A.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(A.css(t,"marginTop"))||0,n+=parseFloat(A.css(t,"marginLeft"))||0),{top:e,left:n}},setOffset:function(t,e,n){var i=A.css(t,"position");"static"===i&&(t.style.position="relative");var s,o,r=A(t),a=r.offset(),l=A.css(t,"top"),c=A.css(t,"left"),u={},h={};("absolute"===i||"fixed"===i)&&A.inArray("auto",[l,c])>-1?(s=(h=r.position()).top,o=h.left):(s=parseFloat(l)||0,o=parseFloat(c)||0),A.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):r.css(u)}},A.fn.extend({position:function(){if(!this[0])return null;var t=this[0],e=this.offsetParent(),n=this.offset(),i=ve.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(A.css(t,"marginTop"))||0,n.left-=parseFloat(A.css(t,"marginLeft"))||0,i.top+=parseFloat(A.css(e[0],"borderTopWidth"))||0,i.left+=parseFloat(A.css(e[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||E.body;t&&!ve.test(t.nodeName)&&"static"===A.css(t,"position");)t=t.offsetParent;return t}))}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,i){var s=/Y/.test(i);A.fn[t]=function(o){return A.access(this,(function(t,o,r){var a=n(t);if(r===e)return a?i in a?a[i]:A.support.boxModel&&a.document.documentElement[o]||a.document.body[o]:t[o];a?a.scrollTo(s?A(a).scrollLeft():r,s?r:A(a).scrollTop()):t[o]=r}),t,o,arguments.length,null)}})),A.each({Height:"height",Width:"width"},(function(t,n){var i="client"+t,s="scroll"+t,o="offset"+t;A.fn["inner"+t]=function(){var t=this[0];return t?t.style?parseFloat(A.css(t,n,"padding")):this[n]():null},A.fn["outer"+t]=function(t){var e=this[0];return e?e.style?parseFloat(A.css(e,n,t?"margin":"border")):this[n]():null},A.fn[n]=function(t){return A.access(this,(function(t,n,r){var a,l,c,u;return A.isWindow(t)?(l=(a=t.document).documentElement[i],A.support.boxModel&&l||a.body&&a.body[i]||l):9===t.nodeType?(a=t.documentElement)[i]>=a[s]?a[i]:Math.max(t.body[s],a[s],t.body[o],a[o]):r===e?(c=A.css(t,n),u=parseFloat(c),A.isNumeric(u)?u:c):void A(t).css(n,r)}),n,t,arguments.length,null)}})),t.jQuery=t.$=A,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return A}))}(window),jQuery.event.special.touchstart={setup:function(t,e,n){this.addEventListener("touchstart",n,{passive:!e.includes("noPreventDefault")})}},jQuery.event.special.touchmove={setup:function(t,e,n){this.addEventListener("touchmove",n,{passive:!e.includes("noPreventDefault")})}},jQuery.event.special.wheel={setup:function(t,e,n){this.addEventListener("wheel",n,{passive:!0})}},jQuery.event.special.mousewheel={setup:function(t,e,n){this.addEventListener("mousewheel",n,{passive:!0})}},function(t){"use strict";function e(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function n(t,n,i,s,o,r){return e(function(t,e){return t<<e|t>>>32-e}(e(e(n,t),e(s,r)),o),i)}function i(t,e,i,s,o,r,a){return n(e&i|~e&s,t,e,o,r,a)}function s(t,e,i,s,o,r,a){return n(e&s|i&~s,t,e,o,r,a)}function o(t,e,i,s,o,r,a){return n(e^i^s,t,e,o,r,a)}function r(t,e,i,s,o,r,a){return n(i^(e|~s),t,e,o,r,a)}function a(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;var a,l,c,u,h,d=1732584193,p=-271733879,m=-1732584194,f=271733878;for(a=0;a<t.length;
6a+=16)l=d,c=p,u=m,h=f,p=r(p=r(p=r(p=r(p=o(p=o(p=o(p=o(p=s(p=s(p=s(p=s(p=i(p=i(p=i(p=i(p,m=i(m,f=i(f,d=i(d,p,m,f,t[a],7,-680876936),p,m,t[a+1],12,-389564586),d,p,t[a+2],17,606105819),f,d,t[a+3],22,-1044525330),m=i(m,f=i(f,d=i(d,p,m,f,t[a+4],7,-176418897),p,m,t[a+5],12,1200080426),d,p,t[a+6],17,-1473231341),f,d,t[a+7],22,-45705983),m=i(m,f=i(f,d=i(d,p,m,f,t[a+8],7,1770035416),p,m,t[a+9],12,-1958414417),d,p,t[a+10],17,-42063),f,d,t[a+11],22,-1990404162),m=i(m,f=i(f,d=i(d,p,m,f,t[a+12],7,1804603682),p,m,t[a+13],12,-40341101),d,p,t[a+14],17,-1502002290),f,d,t[a+15],22,1236535329),m=s(m,f=s(f,d=s(d,p,m,f,t[a+1],5,-165796510),p,m,t[a+6],9,-1069501632),d,p,t[a+11],14,643717713),f,d,t[a],20,-373897302),m=s(m,f=s(f,d=s(d,p,m,f,t[a+5],5,-701558691),p,m,t[a+10],9,38016083),d,p,t[a+15],14,-660478335),f,d,t[a+4],20,-405537848),m=s(m,f=s(f,d=s(d,p,m,f,t[a+9],5,568446438),p,m,t[a+14],9,-1019803690),d,p,t[a+3],14,-187363961),f,d,t[a+8],20,1163531501),m=s(m,f=s(f,d=s(d,p,m,f,t[a+13],5,-1444681467),p,m,t[a+2],9,-51403784),d,p,t[a+7],14,1735328473),f,d,t[a+12],20,-1926607734),m=o(m,f=o(f,d=o(d,p,m,f,t[a+5],4,-378558),p,m,t[a+8],11,-2022574463),d,p,t[a+11],16,1839030562),f,d,t[a+14],23,-35309556),m=o(m,f=o(f,d=o(d,p,m,f,t[a+1],4,-1530992060),p,m,t[a+4],11,1272893353),d,p,t[a+7],16,-155497632),f,d,t[a+10],23,-1094730640),m=o(m,f=o(f,d=o(d,p,m,f,t[a+13],4,681279174),p,m,t[a],11,-358537222),d,p,t[a+3],16,-722521979),f,d,t[a+6],23,76029189),m=o(m,f=o(f,d=o(d,p,m,f,t[a+9],4,-640364487),p,m,t[a+12],11,-421815835),d,p,t[a+15],16,530742520),f,d,t[a+2],23,-995338651),m=r(m,f=r(f,d=r(d,p,m,f,t[a],6,-198630844),p,m,t[a+7],10,1126891415),d,p,t[a+14],15,-1416354905),f,d,t[a+5],21,-57434055),m=r(m,f=r(f,d=r(d,p,m,f,t[a+12],6,1700485571),p,m,t[a+3],10,-1894986606),d,p,t[a+10],15,-1051523),f,d,t[a+1],21,-2054922799),m=r(m,f=r(f,d=r(d,p,m,f,t[a+8],6,1873313359),p,m,t[a+15],10,-30611744),d,p,t[a+6],15,-1560198380),f,d,t[a+13],21,1309151649),m=r(m,f=r(f,d=r(d,p,m,f,t[a+4],6,-145523070),p,m,t[a+11],10,-1120210379),d,p,t[a+2],15,718787259),f,d,t[a+9],21,-343485551),d=e(d,l),p=e(p,c),m=e(m,u),f=e(f,h);return[d,p,m,f]}function l(t){var e,n="",i=32*t.length;for(e=0;e<i;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function c(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var i=8*t.length;for(e=0;e<i;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function u(t){var e,n,i="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return i}function h(t){return unescape(encodeURIComponent(t))}function d(t){return function(t){return l(a(c(t),8*t.length))}(h(t))}function p(t,e){return function(t,e){var n,i,s=c(t),o=[],r=[];for(o[15]=r[15]=void 0,s.length>16&&(s=a(s,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^s[n],r[n]=1549556828^s[n];return i=a(o.concat(c(e)),512+8*e.length),l(a(r.concat(i),640))}(h(t),h(e))}function m(t,e,n){return e?n?p(e,t):function(t,e){return u(p(t,e))}(e,t):n?d(t):function(t){return u(d(t))}(t)}"function"==typeof define&&define.amd?define((function(){return m})):"object"==typeof module&&module.exports?module.exports=m:t.md5=m}(window),window.format_price=function(t,e){var n=t,i=(e=e||{}).mask||"###&nbsp;##0,00";currency_grouping_separator&&(i=i.replace(",",currency_grouping_separator)),currency_decimal_separator&&(i=i.replace(".",currency_decimal_separator));var s=e.currency||"",o=e.currency_space?" ":"",r=!!e.currency_before_price;if(!i||isNaN(+n))return n;var a=(n="-"==i.charAt(0)?-n:+n)<0?n=-n:0,l=i.match(/[^\d\-\+#]/g),c=l&&l[l.length-1]||".",u=l&&l[1]&&l[0]||",";i=i.split(c);n=+(n=n.toFixed(i[1]&&i[1].length))+"";var h=i[1]&&i[1].lastIndexOf("0"),d=n.split(".");(!d[1]||d[1]&&d[1].length<=h)&&(n=(+n).toFixed(h+1));var p=i[0].split(u);i[0]=p.join("");var m=i[0]&&i[0].indexOf("0");if(m>-1)for(;d[0].length<i[0].length-m;)d[0]="0"+d[0];else 0==+d[0]&&(d[0]="");(n=n.split("."))[0]=d[0];var f=p[1]&&p[p.length-1].length;if(f){for(var _=n[0],g="",v=_.length%f,y=0,b=_.length;y<b;y++)g+=_.charAt(y),!((y-v+1)%f)&&y<b-f&&(g+=u);n[0]=g}n[1]=i[1]&&n[1]?c+n[1]:"";t=(a?"-":"")+n[0]+n[1];return t=r?s+o+t:t+o+s},app_shop.fn.fontCallback=()=>{void 0!==app_shop.fn.fontCallbackMenu&&app_shop.fn.fontCallbackMenu()};var google_map_style_array=[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]}
6,{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}];app_shop.run((function(){document.documentElement.classList.remove("_mobile")}),[2,3,4],"body",!0),app_shop.run((function(){document.documentElement.classList.add("_mobile")}),1,"body",!0),app_shop.run((()=>{document.querySelectorAll(".cm img.rwd-src").forEach((t=>{t.setAttribute("src",app_shop.fn.getRwdSrc(t))}))}),[1,2,3,4],".cm img.rwd-src"),app_shop.run((function(){document.querySelectorAll("img.b-lazy").forEach((t=>{t.closest("a")?.classList.add("loading")})),app_shop.vars.bLazy=new Blazy({breakpoints:[{width:420,src:"data-src-small"}],success:function(t){t.closest(".loading")?.classList.remove("loading")}}),app_shop.fn.addFocusEventListeners();const t=document.querySelectorAll(".form-group .form-control, .f-group .f-control");setTimeout((()=>{t.forEach((t=>app_shop.fn.addFocused.call(t)))}),500),app_shop.fn.setupFileInputListeners(),app_shop.fn.backTop({txt:'<i class="icon-angle-up"></i>'});let e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`),window.addEventListener("resize",(()=>{e=.01*window.innerHeight,document.documentElement.style.setProperty("--vh",`${e}px`)}))}),"all"),app_shop.fn.fixed_scroll=(t,e)=>{let n=window.scrollY;const i=window;window.addEventListener("scroll",(function(s){i.scrollY>n&&i.scrollY>0?!t.classList.contains(e)&&t.classList.add(e):t.classList.contains(e)&&t.classList.remove(e),n=i.scrollY}))},app_shop.fn.isIos=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,app_shop.vars.isIos=app_shop.fn.isIos(),app_shop.fn.isSafari=()=>isSafari=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS"),app_shop.vars.isSafari=app_shop.fn.isSafari(),app_shop.run((function(){app_shop.fn.fixed_scroll(document.documentElement,"scroll"),app_shop.vars.isIos&&document.documentElement.classList.add("--ios"),app_shop.vars.isSafari&&document.documentElement.classList.add("--safari")}),[1,2],"#container"),app_shop.run((function(){document.querySelectorAll(".moreInfo__show").forEach((t=>{t.addEventListener("click",(function(){this.parentElement.classList.toggle("--hover"),this.parentElement.querySelector(".moreInfo")?.classList.toggle("--hover")}))}))}),"all",".moreInfo__show"),app_shop.txt.txt_77752_1="Nie można wgrać pliku %s, ponieważ przekracza maksymalny dozwolony rozmiar %dMB.",app_shop.txt.txt_77752_2="Nie można wgrać pliku %s, ponieważ załączanie plików tego typu jest niedozwolone.",app_shop.txt.txt_77752_3="Dopuszczalne formaty zdjęć: .jpg.",app_shop.txt.txt_77752_4="Maksymalny rozmiar zdjęcia to: %spx.";var hotspotAjaxWrapType="";app_shop.txt.txt_validation1="Minimalna liczba znaków dla tego pola to ",app_shop.txt.txt_validation2="Maksymalna liczba znaków dla tego pola to ",app_shop.txt.txt_validation3="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected].",app_shop.txt.txt_validation4="Te pole jest obowiązkowe.",app_shop.txt.txt_validation5="Format numeru konta bankowego jest niepoprawny ",app_shop.txt.txt_validation6="Numer telefonu powinien zawierać minimum 9 znaków ",app_shop.txt.hotspot_prev="Poprzedni z tej kategorii",app_shop.txt.hotspot_next="Następny z tej kategorii";const Alertek={alert_cover:"",cloudID:"",alert_timer:null,fadeIn:()=>{Alertek.cloudID.style.display="block",Alertek.cloudID.style.transition="opacity 0.5s",Alertek.cloudID.style.opacity=0,setTimeout((()=>{Alertek.cloudID.style.opacity=1}),0)},fadeOut:()=>{Alertek.cloudID.style.opacity=0,setTimeout((()=>{Alertek.cloudID.style.display="none"}),500)},Start:(t,e,n=4e3)=>{clearTimeout(Alertek.alert_timer),document.querySelector("#alert_cover")?.remove();const i=document.createElement("div");i.className="alertek"+(e?` ${e}`:""),i.id="alert_cover",i.style.display="none",i.onclick=Alertek.hide_alert,i.setAttribute("role","alert"),document.body.appendChild(i),e||i.classList.add("menu_messages_message"),Alertek.cloudID=i,t&&(Alertek.cloudID.innerHTML=t,Alertek.fadeIn(),Alertek.alert_timer=setTimeout(Alertek.End,n))},End:()=>{Alertek.fadeOut()},Info:(t,e)=>{Alertek.Start(t,"--info",e)},Warning:(t,e)=>{Alertek.Start(t,"--warning",e)},Error:(t,e)=>{Alertek.Start(t,"--error",e)},Success:(t,e)=>{Alertek.Start(t,"--success",e)},show_alert:(t,e)=>{Alertek.Start(t,!1,e)},hide_alert:()=>{Alertek.End()},SrOnly:(t,e)=>{Alertek.Start(t,"sr-only",e)}};document.documentElement.classList.remove("_mobile"),app_shop.fn.addFocused=function(t,e){if("number"==typeof e)return;const{target:n}=t||{};let i=n?[n]:[this];e instanceof HTMLElement?i=[e]:e&&(i=document.querySelectorAll(e)),i.forEac
6h((t=>{const e=t.nextElementSibling;e&&["control-label","f-label"].some((t=>e.classList.contains(t)))&&t.classList.toggle("focused",""!==t.value)}))},app_shop.fn.addFocusEventListeners=function(t=".form-group .form-control, .f-group .f-control"){["change","input","focus","blur"].forEach((e=>{document.addEventListener(e,(e=>{const{target:n}=e;n.closest&&n?.closest(t)&&app_shop.fn.addFocused(e)}),!0)}))},app_shop.fn.setupFileInputListeners=()=>{document.addEventListener("change",(t=>{const{target:e}=t;e?.closest('input[type="file"]')&&(t=>{if(!(window.File&&window.FileReader&&window.FileList&&window.Blob))return;(t=>{const{target:e}=t,n=e.nextElementSibling;if(n?.classList.contains("f-label")){if(e.value.length)return n.classList.add("--file"),n.getAttribute("data-label")||n.setAttribute("data-label",n.textContent),void(n.textContent=e.value.split("\\").pop());n.classList.remove("--file"),n.textContent=n.getAttribute("data-label")||""}})(t);const{files:e}=t.target;if(0===e.length)return;const{name:n="",size:i,type:s}=e[0],[o]=n.split(".").reverse();if(app_shop.vars.blacklist_mime?.includes(s)&&app_shop.txt.txt_77752_2)return t.target.value="",void Alertek.Start(app_shop.txt.txt_77752_2.replace("%s",n));if(app_shop.vars.blacklist_extension?.includes(o)&&app_shop.txt.txt_77752_2)return t.target.value="",void Alertek.Start(app_shop.txt.txt_77752_2.replace("%s",n));const{max_filesize:r}=t.target.dataset;r&&i>+r&&app_shop.txt.txt_77752_1&&(t.target.value="",Alertek.Start(app_shop.txt.txt_77752_1.replace("%s",n).replace("%d",(+r/1048576).toFixed(2))))})(t)}),!0)},app_shop.fn.backTop=({txt:t='<i class="icon-chevron-up"></i>'})=>{const e=()=>{const t=window.innerWidth,e=document.getElementById("container")?.offsetWidth,i=.5*(t-e)-20;return i>=(n.offsetWidth||50)?i-(n.offsetWidth||50)+"px":"10px"},n=document.createElement("a");n.id="backTop",n.innerHTML=t,n.style.right=e(),document.body.appendChild(n),n.addEventListener("click",(()=>{window.scrollTo({top:0,behavior:"smooth"})})),window.addEventListener("scroll",(()=>{window.scrollY>2*window.innerHeight?n.style.display="block":n.style.display="none"})),window.addEventListener("resize",(()=>{n.style.right=e()}))},function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.Blazy=e()}(this,(function(){function t(t){var n=t._util;n.elements=function(t){for(var e=[],n=(t=t.root.querySelectorAll(t.selector)).length;n--;e.unshift(t[n]));return e}(t.options),n.count=n.elements.length,n.destroyed&&(n.destroyed=!1,t.options.container&&h(t.options.container,(function(t){c(t,"scroll",n.validateT)})),c(window,"resize",n.saveViewportOffsetT),c(window,"resize",n.validateT),c(window,"scroll",n.validateT)),e(t)}function e(t){for(var e=t._util,i=0;i<e.count;i++){var s,o=e.elements[i],a=o;s=t.options;var l=a.getBoundingClientRect();s.container&&_&&(a=a.closest(s.containerClass))?s=!!n(a=a.getBoundingClientRect(),m)&&n(l,{top:a.top-s.offset,right:a.right+s.offset,bottom:a.bottom+s.offset,left:a.left-s.offset}):s=n(l,m),(s||r(o,t.options.successClass))&&(t.load(o),e.elements.splice(i,1),e.count--,i--)}0===e.count&&t.destroy()}function n(t,e){return t.right>=e.left&&t.bottom>=e.top&&t.left<=e.right&&t.top<=e.bottom}function i(t,e,n){if(!r(t,n.successClass)&&(e||n.loadInvisible||0<t.offsetWidth&&0<t.offsetHeight))if(e=t.getAttribute(p)||t.getAttribute(n.src)){var i=(e=e.split(n.separator))[f&&1<e.length?1:0],l=t.getAttribute(n.srcset),d="img"===t.nodeName.toLowerCase(),m=(e=t.parentNode)&&"picture"===e.nodeName.toLowerCase();if(d||void 0===t.src){var _=new Image,g=function(){n.error&&n.error(t,"invalid"),a(t,n.errorClass),u(_,"error",g),u(_,"load",v)},v=function(){d?m||o(t,i,l):t.style.backgroundImage='url("'+i+'")',s(t,n),u(_,"load",v),u(_,"error",g)};m&&(_=t,h(e.getElementsByTagName("source"),(function(t){var e=n.srcset,i=t.getAttribute(e);i&&(t.setAttribute("srcset",i),t.removeAttribute(e))}))),c(_,"error",g),c(_,"load",v),o(_,i,l)}else t.src=i,s(t,n)}else"video"===t.nodeName.toLowerCase()?(h(t.getElementsByTagName("source"),(function(t){var e=n.src,i=t.getAttribute(e);
6i&&(t.setAttribute("src",i),t.removeAttribute(e))})),t.load(),s(t,n)):(n.error&&n.error(t,"missing"),a(t,n.errorClass))}function s(t,e){a(t,e.successClass),e.success&&e.success(t),t.removeAttribute(e.src),t.removeAttribute(e.srcset),h(e.breakpoints,(function(e){t.removeAttribute(e.src)}))}function o(t,e,n){n&&t.setAttribute("srcset",n),t.src=e}function r(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function a(t,e){r(t,e)||(t.className+=" "+e)}function l(t){m.bottom=(window.innerHeight||document.documentElement.clientHeight)+t,m.right=(window.innerWidth||document.documentElement.clientWidth)+t}function c(t,e,n){t.attachEvent?t.attachEvent&&t.attachEvent("on"+e,n):t.addEventListener(e,n,{capture:!1,passive:!0})}function u(t,e,n){t.detachEvent?t.detachEvent&&t.detachEvent("on"+e,n):t.removeEventListener(e,n,{capture:!1,passive:!0})}function h(t,e){if(t&&e)for(var n=t.length,i=0;i<n&&!1!==e(t[i],i);i++);}function d(t,e,n){var i=0;return function(){var s=+new Date;s-i<e||(i=s,t.apply(n,arguments))}}var p,m,f,_;return function(n){if(!document.querySelectorAll){var s=document.createStyleSheet();document.querySelectorAll=function(t,e,n,i,o){for(o=document.all,e=[],n=(t=t.replace(/\[for\b/gi,"[htmlFor").split(",")).length;n--;){for(s.addRule(t[n],"k:v"),i=o.length;i--;)o[i].currentStyle.k&&e.push(o[i]);s.removeRule(0)}return e}}var o=this,r=o._util={};r.elements=[],r.destroyed=!0,o.options=n||{},o.options.error=o.options.error||!1,o.options.offset=o.options.offset||100,o.options.root=o.options.root||document,o.options.success=o.options.success||!1,o.options.selector=o.options.selector||".b-lazy",o.options.separator=o.options.separator||"|",o.options.containerClass=o.options.container,o.options.container=!!o.options.containerClass&&document.querySelectorAll(o.options.containerClass),o.options.errorClass=o.options.errorClass||"b-error",o.options.breakpoints=o.options.breakpoints||!1,o.options.loadInvisible=o.options.loadInvisible||!1,o.options.successClass=o.options.successClass||"b-loaded",o.options.validateDelay=o.options.validateDelay||25,o.options.saveViewportOffsetDelay=o.options.saveViewportOffsetDelay||50,o.options.srcset=o.options.srcset||"data-srcset",o.options.src=p=o.options.src||"data-src",_=Element.prototype.closest,f=1<window.devicePixelRatio,(m={}).top=0-o.options.offset,m.left=0-o.options.offset,o.revalidate=function(){t(this)},o.load=function(t,e){var n=this.options;void 0===t.length?i(t,e,n):h(t,(function(t){i(t,e,n)}))},o.destroy=function(){var t=this._util;this.options.container&&h(this.options.container,(function(e){u(e,"scroll",t.validateT)})),u(window,"scroll",t.validateT),u(window,"resize",t.validateT),u(window,"resize",t.saveViewportOffsetT),t.count=0,t.elements.length=0,t.destroyed=!0},r.validateT=d((function(){e(o)}),o.options.validateDelay,o),r.saveViewportOffsetT=d((function(){l(o.options.offset)}),o.options.saveViewportOffsetDelay,o),l(o.options.offset),h(o.options.breakpoints,(function(t){if(t.width>=window.screen.width)return p=t.src,!1})),setTimeout((function(){t(o)}))}}));const SelectToDropdown=function(t){return this.params=t,this.init=()=>{const{direction:t="down",selector:e,generateDropdownCallback:n,clickDropdownCallback:i,afterClickDropdownCallback:s,disableMobileView:o}=this.params;if(this.selects=document.querySelectorAll(e),this.direction=t,this.generateDropdownCallback=n,this.clickDropdownCallback=i,this.afterClickDropdownCallback=s,this.disableMobileView=o,this.selects.length){if(this.generateDropdown(),app_shop.vars.selectToDropdownEventsAdded)return;document.addEventListener("click",this.closeDropdown),document.addEventListener("focusin",this.closeDropdown),app_shop.vars.selectToDropdownEventsAdded=!0}},this.transformOptionListByDirection=t=>"top"===this.direction?t.reverse().join(""):t.join(""),this.generateDropdown=()=>{this.selects.forEach((t=>{t.selectedIndex<0&&(t.selectedIndex=0);const e=[...t.querySelectorAll("option")].map(((t,e)=>`\n        <li class="f-dropdown-li${t.hasAttribute("class")?` ${t.getAttribute("class")}`:""}${t.disabled?" --disabled":""}">\n          <a class="f-dropdown-item${t.selected?" --selected":""}" href="#${t.getAttribute("value")}" data-index="${e}" data-value="${t.getAttribute("value")}" ${[...t.attributes].filter((t=>t.name.startsWith("data-"))).map((t=>`${t.name}="${t.value}"`)).join(" ")}>${t.innerHTML}</a>\n        </li>\n      `)),n=`<div class="f-dropdown f-group ${t.getAttribute("class")} ${this.disableMobileView?"--disable-mobile-view":""}" data-direction="${this.direction}">\n        <button type="button" class="f-control f-dropdown-toggle${t.disabled?" --disabled":""}${t.hasAttribute("readonly")?" --readonly":""}" data-indexcurrent="${t.options[t.selectedIndex].index}" aria-expanded="false">\n          ${!t.hasAttribute("data-label")&&t.hasAttribute("aria-label")?`<span class="sr-only">${t.getAttribute("aria-label")}</span>`:""}\n          ${t.hasAttribute("data-label")?`<strong class="f-dropdown-label">${t.getAttribute("data-label")}</strong>`:""}
6\n          <span class="f-dropdown-button">${t.options[t.selectedIndex].text}</span>\n        </button>\n        <ul class="f-dropdown-menu">\n          ${this.transformOptionListByDirection(e)}\n        </ul>\n      </div>`,i=document.createElement("div");i.innerHTML=n;const s=i.firstChild;t.insertAdjacentElement("afterend",s),s.insertBefore(t,s.firstChild),Object.values(t.classList).forEach((e=>t.classList.replace(e,`${e}-select`))),this.openDropdown(s),this.clickDropdown(s),this.disableMobileView||this.mobileView(s),this.generateDropdownCallback&&this.generateDropdownCallback(s)}))},this.mobileView=t=>{t.querySelector("select").addEventListener("change",(function(){const e=this.selectedIndex;t.querySelectorAll(".f-dropdown-li").forEach((t=>{parseInt(t.querySelector(".f-dropdown-item").getAttribute("data-index"),10)===e&&t.click()}))}))},this.openDropdown=t=>{t.querySelector("button.f-dropdown-toggle").addEventListener("click",(function(t){if(t.preventDefault(),this.classList.contains("--disabled"))return!1;this.parentNode.classList.toggle("--open"),this.setAttribute("aria-expanded",this.parentNode.classList.contains("--open")?"true":"false"),document.documentElement.classList.toggle("--dropdown-open",this.parentNode.classList.contains("--open"))}))},this.closeDropdown=t=>{document.querySelectorAll(".f-dropdown").forEach((e=>!!e.classList.contains("--open")&&((!t||"click"!==t.type&&"focusin"!==t.type||e===t||!e.contains(t.target))&&(e.classList.remove("--open"),e.querySelector("button.f-dropdown-toggle")?.setAttribute("aria-expanded","false"),void document.documentElement.classList.remove("--dropdown-open")))))},this.clickDropdown=t=>{if(this.clickDropdownCallback)this.clickDropdownCallback(t);else{const e=this.afterClickDropdownCallback;t.querySelectorAll(".f-dropdown-li").forEach((n=>{n.addEventListener("click",(function(n){n.preventDefault();const i=this.querySelector(".f-dropdown-item"),s=t.querySelectorAll(".f-dropdown-item"),o=i.getAttribute("data-index"),r=i.innerHTML,a=t.querySelector("select"),l=t.querySelector("button.f-dropdown-toggle"),c=l.querySelector(".f-dropdown-button"),u=t.querySelector(".f-dropdown-item.--selected");s.forEach((t=>t.classList.remove("--selected","--prev"))),u.classList.add("--prev"),i.classList.add("--selected"),a.selectedIndex=o,c.innerHTML=r,l.setAttribute("data-indexcurrent",i.getAttribute("data-index")),t.classList.remove("--open"),l.setAttribute("aria-expanded","false"),document.documentElement.classList.remove("--dropdown-open"),e&&e(this)}))}))}},this.destroy=()=>{this.selects.forEach((t=>{const e=t.closest(".f-dropdown");e&&(e.insertAdjacentElement("afterend",t),e.remove(),t.classList.forEach((e=>t.classList.replace(e,e.slice(0,-7)))))}))},this.reInit=()=>{this.destroy(),this.init()},this.init()};function FixedElement(t="element",e="--fixed",n="spacerClass",i="top",s=()=>{}){const o=this;let r=!1;const a=document.querySelector(t),l={elH:a.getBoundingClientRect().height,elOffset:a.getBoundingClientRect().top+a.ownerDocument.defaultView.pageYOffset};this.revalidate=()=>{l.elH=a.getBoundingClientRect().height;const t=document.querySelector(`.${n}`);l.elOffset=t?t.getBoundingClientRect().top+t.ownerDocument.defaultView.pageYOffset:a.getBoundingClientRect().top+a.ownerDocument.defaultView.pageYOffset,r=!0},this.modifyElement=()=>{("top"===i?window.scrollY>l.elOffset:"bottom"===i?window.scrollY-l.elH+window.screen.height<l.elOffset:void 0)?!a.classList.contains(e)&&(a.classList.add(e),(t=>{let e=document.createElement("div");e.className=n,e.style.paddingTop=`${t}px`,a.after(e)})(l.elH),s(!0)):a.classList.contains(e)&&(a.classList.remove(e),(()=>{const t=document.querySelector(`.${n}`);t&&t.parentNode.removeChild(t)})(),s(!1))},this.init=()=>{if(null===a)return!1;window.addEventListener("scroll",(()=>{r=!0})),scroll=setInterval((function(){r&&(r=!1,o.modifyElement())}),30),o.modifyElement()},this.clear=()=>{clearInterval(scroll)}}app_shop.fn.changeLiteral=(t,e,n)=>{const i=t%10,s=t%100,o=[];return!0!==n&&o.push(t),1===t&&e[1]?o.push(e[1]):(0===t||i>=0&&i<=1||i>=5&&i<=9||s>10&&s<20)&&e[0]?o.push(e[0]):(s<10||s>20)&&i>=2&&i<=4&&e[2]&&o.push(e[2]),o.join(" ")},Modal=function(t){const e=this;if(this.params=t||{},this.viewportElement=document.querySelector('head meta[name="viewport"]'),this.viewportContentCopy=app_shop.vars?.meta?.viewportContent,this.txt={"Zamknij modal":"Zamknij modal"},this.changeViewport=()=>{const{viewportContent:t}=this.params;if(!this.viewportElement&&!this.changeViewportFlag)return;const e="string"==typeof t&&t||"user-scalable=no, initial-scale=1, maximum-scale=1, width=device-width, viewport-fit=cover";this.viewportElement.setAttribute("content",e)},this.restoreViewport=()=>{(this.viewportElement||this.changeViewportFlag)&&this.viewportContentCopy&&this.viewportElement.setAttribute("content",this.viewportContentCopy)},this.closeModal=()=>{const t=document.getElementById("modal");this.beforeClose&&this.beforeClose(t);const e=document.getElementById("modal_placeholder");if(e){const n=t.querySelector(".modal__content > *");e.insertAdjacentElement("afterend",n),e.parentNode.removeChild(e)}t?.parentNode?.removeChild(t),document.documentElement.classList.remove("--modal"),document.removeEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),this.enableTabIndexes&&document.removeEventListener("keyup",this.events.tabFocusClick),this.afterClose&&this.afterClose(t,this),this.changeViewportFlag&&this.restoreViewport(),this.lastFocusedElement&&this.lastFocusedElement.focus()},this.createElement=t=>{const{element:e,classes:n,id:i,href:s,attributes:o}=t,r=document.createElement(e);return void 0!==n&&(r.className=n),void 0!==i&&(r.id=i),void 0!==s&&(r.href=s),void 0!==o&&Array.isArray(o)&&o.forEach((({name:t,value:e})=>{r.setAttribute(t,e)})),r},this.injectionElement=(t,e)=>{if(this.element||this.html)if(this.html)t.innerHTML=this.html;else if(this.element&&(!("function"==typeof jQuery&&this.element instanceof jQuery)||this.element.length)){if("function"==typeof jQuery&&this.element instanceof jQuery)return document.body.contains(this.element[0])&&this.element[0].insertAdjacentElement("afterend",e),void t.appendChild(this.element[0]);document.body.contains(this.element)&&this.element.insertAdjacentElement("afterend",e),t.appendChild(this.element)}},this.createModal=()=>{document.getElementById("modal")&&this.closeModal();const t=this.createElement({element:"div",classes:this.classList?`modal ${this.classList}`:"modal",id:"modal",attributes:[{name:"role",value:"dialog"}]}),e=this.createElement({element:"div",classes:"modal__wrapper"}),n=this.createElement({element:"div",id:"modal_placeholder"}),i=this.createElement({element:"a",classes:"modal__close",href:"#modalClose",attributes:[{name:"aria-label",value:this.txt["Zamknij modal"]}]}),s=this.createElement({element:"div",classes:"modal__content"});this.injectionElement(s,n),e.appendChild(i),e.appendChild(s),t.appendChild(e),document.documentElement.classList.add("--modal"),this.initEvents(),this.changeViewportFlag&&this.restoreViewport(),this.changeViewportFlag&&this.changeViewport(),this.beforeShow&&this.beforeShow(t,this),document.body.appendChild(t),this.classList&&this.classList.includes("--absolute")&&window.scrollTo(0,0),app_shop?.vars?.bLazy?.revalidate(),this.afterShow&&this.afterShow(t,this),this.enableTabIndexes&&(this.assignTabIndexes(),this.setFocusOnFirstElement&&this.focusFirstElement())},this.assignTabIndexes=()=>{const t=document.querySelector('#modal[role="dialog"]');if(!t)return;let e=1;const n=t=>{t.matches(this.allowedElementsForTabIndex)&&"-1"!==t.getAttribute("tabindex")&&t.setAttribute("tabindex",e++),[...t.children].forEac
6h((t=>{n(t)}))};n(t)},this.focusFirstElement=(t=!1)=>{const e=document.querySelector('#modal[role="dialog"]');e&&(t?e.querySelector("[tabindex]")?.focus?.():e.querySelector("[tabindex]:not(.modal__close)")?.focus?.())},this.getFocusableElements=()=>{const t=document.querySelector('#modal[role="dialog"]');return t?[...t.querySelectorAll("[tabindex]")]:[]},this.restoreModalFocus=(t=()=>{},n=!1)=>{const i=e.getFocusableElements(),s=document.activeElement;i.includes(s)||(t(),e.focusFirstElement(n))},this.events={eventDelegation:t=>{const n=document.getElementById("modal"),i=!(!document.getElementById("topLayerBackDrop")||"none"===document.getElementById("topLayerBackDrop").style.display),s=!(!document.querySelector(".iai_cookie")||document.querySelector(".iai_cookie").classList.contains("d-none"));for(const e of this.notCloseSelectors)if(t.target.closest(e))return!1;const o=document.activeElement.closest(".cop_pickup_map__wrapper"),r=document.activeElement.closest(".pickup_points_oscop__wrapper"),a=document.activeElement.closest(".product_stocks__wrapper");return(!n||n.querySelector(".modal__wrapper").contains(t.target)||i||s||"INPUT"===document.activeElement.tagName||"TEXTAREA"===document.activeElement.tagName||r||a||o)&&!t.target.closest(".modal__close")||(t.preventDefault(),e.closeModal()),!1},escClick:t=>{"Escape"===t.key&&e.closeModal()},onFocus:t=>{e.restoreModalFocus((()=>{t.preventDefault()}))},tabFocusClick:t=>{const{key:n}=t,i="Tab"===n,s="ArrowLeft"===n,o="ArrowRight"===n;if(e.enableTabIndexes&&(i||s||o)){const n=e.getFocusableElements(),i=document.activeElement;e.restoreModalFocus((()=>{t.preventDefault()}),!0),(s||o)&&n.forEach(((t,e,n)=>{if(t===i){if(s){const t=e>=1?e-1:n.length-1;n[t]?.focus?.()}if(o){const t=e<=n.length-2?e+1:0;n[t]?.focus?.()}}}))}}},this.initEvents=()=>{document.removeEventListener("click",this.events.eventDelegation,!0),document.addEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),document.addEventListener("keydown",this.events.escClick),this.enableTabIndexes&&(document.removeEventListener("keyup",this.events.tabFocusClick),document.addEventListener("keyup",this.events.tabFocusClick))},this.init=()=>{const{element:t,html:e,classList:n,beforeShow:i,afterShow:s,beforeClose:o,afterClose:r,notCloseSelectors:a,changeViewport:l,enableTabIndexes:c,setFocusOnFirstElement:u,allowedElementsForTabIndex:h}=this.params;this.element=t||!1,this.html=e||!1,this.beforeShow=i||!1,this.afterShow=s||!1,this.beforeClose=o||!1,this.afterClose=r||!1,this.classList=n||!1,this.notCloseSelectors=a||[],this.changeViewportFlag=l??!0,this.enableTabIndexes=c??!0,this.setFocusOnFirstElement=u??!1,this.allowedElementsForTabIndex=h??"a, button, input, textarea",this.lastFocusedElement=document.activeElement,this.createModal()},!this.params.notInit)return this.init()},app_shop.run((function(){document.querySelectorAll("form:not(.is-validated)").forEach((t=>{t.addEventListener("submit",(t=>{t.target.classList.add("--submitting"),t.target.addEventListener("submit",(t=>(t.preventDefault(),!1)))}))}))}),"all","form"),app_shop.run((function(){document.querySelectorAll("[data-change-literal-days]").forEach((t=>{const e=+t.getAttribute("data-change-literal-days");t.textContent=app_shop.fn.changeLiteral(e,["dni","dzień","dni"],!1)}))}),"all","[data-change-literal-days]",!0),app_shop.run((function(){document.querySelectorAll("[data-change-literal-days-up-to]").forEach((t=>{const e=+t.getAttribute("data-change-literal-days-up-to");t.textContent=app_shop.fn.changeLiteral(e,["dni","dnia","dni"],!1)}))}),"all","[data-change-literal-days-up-to]",!0),app_shop.run((function(){document.addEventListener("click",(t=>{const{target:e}=t;if(e.closest(".l_welcome__element.--logout")||e.closest(".logout_link"))for(let t=0;t<sessionStorage.length;){const e=sessionStorage.key(t);e.startsWith("expchck")?sessionStorage.removeItem(e):t+=1}}))}),"all",".l_welcome__element.--logout, .logout_link"),RegionForced=function(t){this.params=t||{},this.txt={label:"Twój wybrany kraj dostawy to ",labelZipcode:"Twój wybrany region dostawy to ",currency:"Ceny wyświetlane w walucie: ",timeAndCosts:"Czasy i koszty dostawy wyświetlane dla kraju: ",timeAndCostsZipcode:"Czasy i koszty dostawy wyświetlane dla regionu: ",andRegion:" i regionu: ",continue:"Kontynuuj",restoreDefault:"Przywróć domyślny kraj dostawy: ",restoreDefaultZipcode:"Przywróć domyślny region dostawy: "},this.events={unsetRegion:t=>(t.preventDefault(),this.unsetTemporaryRegion(),!1),unsetZipcode:t=>(t.preventDefault(),this.unsetTemporaryZipcode(),!1),unsetRegionAndZipcode:t=>(t.preventDefault(),this.unsetTemporaryRegionAndZipcode(),!1),continue:t=>(t.preventDefault(),this.modifyCookie(),this.modal.closeModal(),!1)},this.queries={unsetRegion:()=>JSON.stringify({query:"mutation {\n        unsetTemporaryRegion {\n          status\n          error {\n            code\n            message\n          }\n        }\n      }"}),unsetZipcode:()=>JSON.stringify({query:"mutation {\n        unsetTemporaryZipcode {\n          status\n          error {\n            code\n            message\n          }\n        }\n      }"}),unsetRegionAndZipcode:()=>JSON.stringify({query:"mutation {\n        unsetTemporaryRegion {\n          status\n          error {\n            code\n            message\n          }\n        }\n        unsetTemporaryZipcode {\n          status\n          error {\n            code\n            message\n          }\n        }\n      }"})},this.fetchData=async(t={})=>{const{data:e,link:n,linkParameter:i=""}=t;if(!e)return!1;try{const t=await fetch(`${n||app_shop.urls.graphql||"/graphql/v1"}${i}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});return await t.json()}catch(t){return!1}},this.unsetTemporaryRegion=async()=>{const t=document.querySelector(".modal");t&&t.classList.add("--loading");const e=await this.fetchData({data:this.queries.unsetRegion(),linkParameter:"?mutation=unsetRegion"}),{status:n}=e?.data?.unsetTemporaryRegion;t&&t.classList.add("--remove"),"success"===n&&(document.cookie="setRegion
6Forced=; path=/; Max-Age=-99999999;",window.location.reload())},this.unsetTemporaryZipcode=async()=>{const t=document.querySelector(".modal");t&&t.classList.add("--loading");const e=await this.fetchData({data:this.queries.unsetZipcode(),linkParameter:"?mutation=unsetZipcode"}),{status:n}=e?.data?.unsetTemporaryZipcode;t&&t.classList.add("--remove"),"success"===n&&(document.cookie="setZipcodeForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.unsetTemporaryRegionAndZipcode=async()=>{const t=document.querySelector(".modal");t&&t.classList.add("--loading");const e=await this.fetchData({data:this.queries.unsetRegionAndZipcode(),linkParameter:"?mutation=unsetRegionAndZipcode"}),{status:n}=e?.data?.unsetTemporaryRegion;t&&t.classList.add("--remove"),"success"===n&&(document.cookie="setRegionForced=; path=/; Max-Age=-99999999;",document.cookie="setZipcodeForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.getCookieByName=t=>{const e=`; ${document.cookie}`.split(`; ${t}=`);return 2===e.length&&e.pop().split(";").shift()},this.create=({currentCountry:t,defaultCountry:e,currentZipcode:n,defaultZipcode:i})=>{const s=!t&&n,o=!s&&n,r=document.createElement("div");r.classList.add("region_forced"),r.innerHTML=`<div class="region_forced__label">
6\n      <span class="region_forced__label_text">${s?this.txt.labelZipcode:this.txt.label}</span>\n      <strong class="region_forced__label_value">${s?n:t}</strong>\n    </div>\n    <div class="region_forced__body">\n      <div class="region_forced__item --currency">\n        <span classs="region_forced__item_text">${this.txt.currency}</span>\n        <strong class="region_forced__item_value">${app_shop?.vars?.currency?.id}</strong>\n      </div>\n      <div class="region_forced__item --delivery">\n        <span classs="region_forced__item_text">${s?this.txt.timeAndCostsZipcode:this.txt.timeAndCosts}</span>\n        <strong class="region_forced__item_value">${s?n:t}</strong>\n        ${o?`<span class="region_forced__and_region">${this.txt.andRegion}<strong>${n}</strong></span>`:""}\n      </div>\n    </div>\n    <div class="region_forced__buttons">\n      <button class="region_forced__continue btn --solid --large" type="button">${this.txt.continue}</button>\n      <a href="#unsetTemporaryRegion" class="region_forced__unset">${s?this.txt.restoreDefaultZipcode:this.txt.restoreDefault}<strong>${s?i:e}</strong></a>\n    </div>`,this.modal=new Modal({element:r,classList:"--region-forced"});let a="region";s&&(a="zipcode"),o&&(a="regionAndZipcode"),this.initEvents({type:a})},this.modifyCookie=()=>{const t=this.getCookieByName("setRegionForced"),e=this.getCookieByName("setZipcodeForced"),n=JSON.parse(t),i=JSON.parse(e);n&&(n.showModal=!1,document.cookie=`setRegionForced=${JSON.stringify(n)}; path=/;`),i&&(i.showModal=!1,document.cookie=`setZipcodeForced=${JSON.stringify(i)}; path=/;`)},this.initEvents=({type:t})=>{const e=document.querySelector(".region_forced__unset");e&&("region"===t&&e.addEventListener("click",this.events.unsetRegion),"zipcode"===t&&e.addEventListener("click",this.events.unsetZipcode),"regionAndZipcode"===t&&e.addEventListener("click",this.events.unsetRegionAndZipcode));const n=document.querySelector(".region_forced__continue");n&&n.addEventListener("click",this.events.continue)},this.init=()=>{const t=this.getCookieByName("setRegionForced"),e=this.getCookieByName("setZipcodeForced");if(!t&&!e)return;const n=JSON.parse(t),i=JSON.parse(e),{currentCountry:s,defaultCountry:o,showModal:r}=n||{},{currentZipcode:a,defaultZipcode:l,showModal:c}=i||{};(r||c)&&this.create({currentCountry:s,defaultCountry:o,currentZipcode:a,defaultZipcode:l})}},app_shop.fn.regionForced=new RegionForced,app_shop.run((function(){app_shop.fn.regionForced.init()}),"all","#container:not(.place-order_page):not(.prepaid_page):not(.order1_page):not(.order2_page)"),app_shop.txt||(app_shop.txt={}),app_shop.txt.errorCode||(app_shop.txt.errorCode={}),app_shop.txt.errorCode.birth_date="Wpisz poprawną datę urodzenia w formacie RRRR-MM-DD",app_shop.txt.errorCode.illegal_characters_client_city="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_firm="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_firstname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_lastname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_nip="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_phone="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_phone2="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_street="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_additional="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_city="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_firstname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_lastname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_phone="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_street="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.incorect_delivery_region="Wybierz kraj odbiorcy przesyłki.",app_shop.txt.errorCode.incorect_delivery_zipcode="Wpisz ko
6d pocztowy odbiorcy przesyłki.",app_shop.txt.errorCode.incorect_email="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected]",app_shop.txt.errorCode.incorect_invoice_phone="Wpisz telefon klienta.",app_shop.txt.errorCode.incorect_invoice_zipcode="Wpisz kod pocztowy klienta.",app_shop.txt.errorCode.incorect_login="Błędnie wpisany login. Login musi mieć minimum 3, a maksimum 40 znaków. Możesz użyć liter i cyfr oraz symboli @ . - _.",app_shop.txt.errorCode.incorect_nip="Błędnie wpisany NIP. Prawidłowy NIP ma 10 cyfr.",app_shop.txt.errorCode.incorect_phone="Wpisz swój telefon.",app_shop.txt.errorCode.incorect_shops="Wybierz sklep z listy.",app_shop.txt.errorCode.incorect_zipcode="Błędnie wpisany kod pocztowy.",app_shop.txt.errorCode.incorrect_region="Błędnie wybrany region.",app_shop.txt.errorCode.invalid_format="Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę.",app_shop.txt.errorCode.login_equals_password="Hasło jest takie samo jak login. Wpisz inne hasło.",app_shop.txt.errorCode.login_taken="Podany login jest już zajęty.",app_shop.txt.errorCode.login_taken_login_propose="Podany login jest już zajęty.<br/><br/>Proponowany login: ",app_shop.txt.errorCode.no_city="Wpisz w to pole nazwę miasta.",app_shop.txt.errorCode.no_delivery_city="Wpisz miejscowość odbiorcy przesyłki.",app_shop.txt.errorCode.no_delivery_firstname="Wpisz imię odbiorcy przesyłki.",app_shop.txt.errorCode.no_delivery_lastname="Wpisz nazwisko odbiorcy przesyłki.",app_shop.txt.errorCode.no_delivery_street="Wpisz ulicę i numer domu odbiorcy przesyłki.",app_shop.txt.errorCode.no_firmname="Błędnie wpisana nazwa firmy.",app_shop.txt.errorCode.no_firstname="Wpisz w to pole swoje imię.",app_shop.txt.errorCode.no_invoice_city="Wpisz miejscowość klienta.",app_shop.txt.errorCode.no_invoice_firmname="Wpisz nazwę firmy klienta.",app_shop.txt.errorCode.no_invoice_firstname="Wpisz imię klienta.",app_shop.txt.errorCode.no_invoice_lastname="Wpisz nazwisko klienta.",app_shop.txt.errorCode.no_invoice_street="Wpisz ulicę i numer domu klienta.",app_shop.txt.errorCode.no_invoice_street_number="Wpisz ulicę i numer domu klienta.",app_shop.txt.errorCode.no_login="Wpisz w to pole swój login.",app_shop.txt.errorCode.no_name="Wpisz w to pole swoje nazwisko.",app_shop.txt.errorCode.no_password="Wpisz w to pole swoje hasło.",app_shop.txt.errorCode.no_street="Wpisz nazwę ulicy lub miejscowości.",app_shop.txt.errorCode.no_street_number="Podaj nr domu.",app_shop.txt.errorCode.no_street_number_uk="Brakuje numeru domu.",app_shop.txt.errorCode.not_equal_passwords="Wpisane hasła nie są takie same. Wpisz ponownie hasło i potwierdzenie.",app_shop.txt.errorCode.password_to_long="Za długie hasło. Wpisz krótsze hasło (maksimum.",app_shop.txt.errorCode.password_to_short="Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum.",app_shop.txt.errorCode.used_login="Podany login jest już zajęty.",app_shop.txt.errorCode.incorrect_iban="Format numeru konta bankowego jest niepoprawny",app_shop.txt.formValidation||(app_shop.txt.formValidation={}),app_shop.txt.formValidation.mandatoryField="Proszę wypełnić to pole.",app_shop.txt.formValidation.zipcodeFormat="Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",app_shop.txt.formValidation.characters="znaków).",app_shop.txt.formValidation.minimalCharacters="Minimalna liczba znaków dla tego pola to ",app_shop.txt.formValidation.maximumCharacters="Maksymalna liczba znaków dla tego pola to ",app_shop.txt.formValidation.noOptionSelected="Proszę wybrać opcję.";const omnibusDetailsTxt={"Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki":"Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki","Cena regularna":"Cena regularna","Cena bez kodu":"Cena bez kodu","Cena nadchodząca od":"Cena nadchodząca od",Promocja:"Promocja",Okazja:"Okazja","Kod rabatowy":"Kod rabatowy"};function Bars(){this.calculatePosition=(t,e)=>t.reduce(((t,n,i)=>i<e?t+n.offsetHeight:t),0),this.setPosition=()=>{const t=[...document.querySelectorAll(".bars_top .bars__item[data-fixed]")];t.forEach(((e,n)=>{e.style.setProperty("--position",this.calculatePosition(t,n))}
6));const e=[...document.querySelectorAll(".bars_bottom .bars__item[data-fixed]")].reverse();e.forEach(((t,n)=>{t.style.setProperty("--position",this.calculatePosition(e,n))}))},this.fixed=()=>{const t=document.querySelectorAll(".bars__item[data-fixed]");let e=0,n=0;t.forEach((t=>{const i=+getComputedStyle(t).getPropertyValue("--position"),s=t.getBoundingClientRect().top-i,o=t.getBoundingClientRect().bottom+i-window.innerHeight;s<0||o>=0?(t.style.setProperty("min-height",`${t.offsetHeight}px`),t.classList.add("--fixed"),t.closest(".bars_top")?e+=t.offsetHeight:n+=t.offsetHeight):(t.classList.remove("--fixed"),t.style.removeProperty("min-height"))})),document.documentElement.style.setProperty("--top-fixed-bars-height",`${e}px`),document.documentElement.style.setProperty("--bottom-fixed-bars-height",`${n}px`)},this.closeBarClick=t=>{const{target:e}=t;if(e.closest(".bars__close")){t.preventDefault();const n=e.closest(".bars__item");n.parentNode.removeChild(n),this.saveClosing(n),this.reset()}},this.removeClosedBars=()=>{(JSON.parse(localStorage.getItem("closedBars"))||[]).forEach((t=>{const e=document.getElementById(t);e&&e.parentNode.removeChild(e)})),this.checkEmptyBars()},this.checkEmptyBars=()=>{const t=document.querySelector(".bars_top");0===t?.childNodes.length&&t.parentNode.removeChild(t);const e=document.querySelector(".bars_bottom");0===e?.childNodes.length&&e.parentNode.removeChild(e)},this.saveClosing=t=>{const{id:e}=t,n=JSON.parse(localStorage.getItem("closedBars"))||[];n.push(e),localStorage.setItem("closedBars",JSON.stringify(n))},this.setBarsHeight=()=>{if(document.documentElement.classList.contains("--scroll-down"))return!1;const t=document.querySelector(".bars_top")?.offsetHeight;return document.documentElement.style.setProperty("--bars-height",`${t}px`),!0},this.clearAll=()=>{document.querySelectorAll(".bars__item[data-fixed]").forEach((t=>{t.classList.remove("--fixed"),t.style.removeProperty("--position"),t.style.removeProperty("min-height")}))},this.destroy=()=>{document.removeEventListener("scroll",this.fixed),document.removeEventListener("click",this.closeBarClick),window.removeEventListener("resize",this.setBarsHeight),this.clearAll()},this.reset=()=>{this.destroy(),this.init()},this.init=()=>{this.removeClosedBars(),document.addEventListener("click",this.closeBarClick),app_shop.vars.view<3&&(this.setBarsHeight(),window.addEventListener("resize",this.setBarsHeight)),app_shop.vars.view>2&&(this.setPosition(),this.fixed(),document.addEventListener("scroll",this.fixed))}}app_shop.fn.getOmnibusDetails=t=>{const{productData:e,sizeId:n,priceType:i=app_shop.vars.priceType}=t||{};if(!e)return!1;const s=e.sizes.find((t=>t.id===n))||e;if(!s?.price)return!1;const o={add:[],remove:["--omnibus","--omnibus-short","--omnibus-code","--omnibus-code-short","--omnibus-new-price","--omnibus-higher"]},r={},a=s.price?.omnibusPriceDetails?.unit?.[i]?.formatted||s.price.omnibusPrice[i]?.formatted;if(!a)return{classes:o};o.add.push("--omnibus"),o.remove=o.remove.filter((t=>"--omnibus"!==t));const l=e?.unit?.sellBy,c=!(!s?.price?.unit?.[i]?.formatted||!s.price.max?.[i]?.value)&&format_price(parseFloat(s.price.max?.[i]?.value)*parseFloat(l),{mask:app_shop.vars.currency_format,currency:app_shop.vars?.currency?.symbol,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})||s.price.max?.[i]?.formatted;c&&c!==a||(o.add.push("--omnibus-short"),o.remove=o.remove.filter((t=>"--omnibus-short"!==t))),app_shop.vars.omnibus?.rebateCodeActivate&&s.price?.rebateCodeActive&&(o.add.push("--omnibus-code"),r.rebateCodeActive=`<span class="label --code --omnibus">${omnibusDetailsTxt?.["Kod rabatowy"]}</span>`,o.remove=o.remove.filter((t=>"--omnibus-code"!==t)));const u=s.price.beforeRebateDetails?.unit?.[i]?.formatted||s.price.beforeRebate[i]?.formatted;app_shop.vars.omnibus?.rebateCodeActivate&&u===a&&s.price?.rebateCodeActive&&(o.add.push("--omnibus-code-short"),o.remove=o.remove.filter((t=>"--omnibus-code-short"!==t)));const h=s.price.omnibusPriceDetails?.newPriceEffectiveUntil?.formatted;h&&c&&(o.add.push("--omnibus-new-price"),o.remove=o.remove.filter((t=>"--omnibus-new-price"!==t)));const d=s.price.omnibusPriceDetails?.omnibusPriceIsHigherThanSellingPrice;d&&(o.add.push("--omnibus-higher"),o.remove=o.remove.filter((t=>"--omnibus-higher"!==t))),d&&!h||r?.rebateCodeActive||(r.bargain=`<span class="label --bargain --omnibus">
6${omnibusDetailsTxt?.Okazja}</span>`),0===Object.keys(r)?.length&&(r.bargain=`<span class="label --promo --omnibus">${omnibusDetailsTxt?.Promocja}</span>`);let p="";d?p="-":0!==s.price.omnibusPriceDetails?.youSavePercent&&(p="+");const m=`${p}${s.price.omnibusPriceDetails?.youSavePercent}%`,f={price:a,visible:!0,percent:m,html:`<span class="omnibus_price__text">${omnibusDetailsTxt["Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki"]}: </span><del class="omnibus_price__value">${a}</del><span class="price_percent">${m}</span>`},_=c?{max:{price:c,visible:!0,percent:`-${s.price.youSavePercent}%`,html:`<span class="omnibus_label">${omnibusDetailsTxt["Cena regularna"]}: </span>\n        <del>${c}</del><span class="price_percent">-${s.price.youSavePercent}%</span>`}}:{},g=u?{beforeRebate:{price:u,visible:!!o.add.includes("--omnibus-code"),percent:`-${s.price.beforeRebateDetails?.youSavePercent}%`,html:`<span class="omnibus_label">${omnibusDetailsTxt["Cena bez kodu"]}: </span>\n        <del>${u}</del>\n        <span class="price_percent">-${s.price.beforeRebateDetails?.youSavePercent}%</span>`}}:{},v=h?{newPriceEffectiveUntil:{date:h,price:c,visible:!!o.add.includes("--omnibus-new-price"),html:`<span class="omnibus_label">${omnibusDetailsTxt["Cena nadchodząca od"]} </span>\n        <span class="new_price__date">${h}: </span>\n        <span class="new_price__value">${c}</span>`}}:{};return{classes:o,omnibus:f,..._,...g,...v,...{omnibusLabel:{name:Object.keys(r)?.[0]||"",html:r[Object.keys(r)?.[0]]}}}},document.addEventListener("click",(t=>{const{target:e}=t;e?.closest(".menu_skip__link")&&document.documentElement.classList.add("--skiped")})),app_shop.run((function(){app_shop.fn.bars=new Bars,app_shop.fn.bars.init()}),"all","html:not(.order_process)"),app_shop.run((function(){app_shop.fn.bars.reset()}),[1,2,3,4],"html:not(.order_process)"),app_shop.run((()=>{const t=document.getElementById("rabateCode");if(!t)return void document.documentElement.classList.remove("--rabateCode");if(app_shop.fn.cookie.get("rabateCode_clicked"))return t.remove(),void document.documentElement.classList.remove("--rabateCode");document.documentElement.classList.add("--rabateCode");const e=document.querySelector("#rabateCode .rabateCode__close");e&&e.addEventListener("click",(e=>{e.preventDefault(),app_shop.fn.cookie.set("rabateCode_clicked",!0,1),t.remove(),document.documentElement.classList.remove("--rabateCode")}))}),"all",".--rabateCode"),app_shop.run((function(){app_shop.fn.searchResults=new SearchResults({resultsLimit:6,inputLengthToStartSearching:2})}),"all","#menu_search");const searchTxt={categories:"Kategorie",cms:"Informacje",beforeProducer:"Producent: ",beforeSeries:"Seria: ",separator:" / ",buttonAllText:"Pokaż wszystkie",telPrice:"Cena na telefon"};SearchResults=function(t){const e=this;return this.params=t||{},this.vars={typingTimer:"",doneTypingInterval:500,searchResultQuery:"/graphql/v1/"},this.fetchData=async()=>{const t=this.searchInput.value;if(t.length<this.inputLengthToStartSearching)return!1;if(sessionStorage.getItem(`search_${t}`))return JSON.parse(sessionStorage.getItem(`search_${t}`));const e=JSON.stringify({query:`query {\n        productsTextSearch(searchInput: {\n            text: "${t}",\n            limit: ${this.resultsLimit}\n          }) {\n            products {\n              name, link, iconSmall, iconSmallSecond,\n              price {\n                  price {\n                      gross {\n                        value\n                        formatted\n                      }\n                      net {\n                        value\n                        formatted\n                      }\n                  }\n              }\n            }\n            series {\n                name, link\n            }\n            producers {\n                name, link\n            }\n            menuNodes {\n                name, link\n            }\n            cms {\n                name, link\n            }\n            searchQueries {\n                name, link\n            }\n          }\n        }`});try{const n=await fetch(this.vars.searchResultQuery,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e}),i=(await n.json()).data.productsTextSearch;return sessionStorage.setItem(`search_${t}`,JSON.stringify(i)),i}catch(t){return!1}},this.openResults=()=>{this.searchInput.closest("form").classList.add("--open"),this.resultsWrapper.scrollTop=0,document.documentElement.classList.add("--results-open"),document.querySelector("#container.main_page")&&document.documentElement.classList.add("--results-main-open")},this.closeResults=()=>{this.searchInput.closest("form").classList.remove("--open"),document.documentElement.classList.remove("--results-open"),document.querySelector("#container.main_page")&&document.documentElement.classList.remove("--results-main-open")},this.buildResult=async()=>{this.searchInput.closest("form").classList.add("--loading");const t=await this.fetchData();if(this.searchInput.closest("form").classList.remove("--loading"),this.resultsWrapper.innerHTML="",t){if(!Object.values(t).filter((t=>t?t.length:"")).length)return this.closeResults(),!1;if(this.openResults(),t.searchQueries&&t.searchQueries.length){const e=this.searchInput.value,n=new RegExp(e,"i");this.resultsWrapper.innerHTML+=`\n          <div class="search_result__block --queries">\n            ${t.searchQueries.map((t=>`<a class="search_result__item --query" href="${t.link}">${t.name.replace(n,"<b>$&</b>")}</a>`)).join("")}\n          </div>\n        `}Object.keys(t).filter((t=>"searchQueries"!==t)).some((e=>t[e]?t[e].length:""))&&(this.resultsWrapper.innerHTML+='<div class="search_result__block --others"></div>',t.products&&t.products.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --products">\n              ${t.products.map((t=>`\n                <a class="search_result__item --product" href="${t.link}">
6\n                  <span class="search_result__icon">${void 0!==t.iconSmallSecond?`<picture>\n                      <source type="image/webp" srcset="${t.iconSmall}"/>\n                      <img src="${t.iconSmallSecond}" alt="${t.name}">\n                    </picture>`:`<img src="${t.iconSmall}" alt="${t.name}" />`}</span>\n                  <span class="search_result__name_wrapper">\n                    <span class="search_result__name">${t.name}</span>\n                    <span class="search_result__price">${e.netPrice?0!==t.price.price.net.value?t.price.price.net.formatted:searchTxt.telPrice:0!==t.price.price.gross.value?t.price.price.gross.formatted:searchTxt.telPrice}</span>\n                  </span>\n                </a>\n              `)).join("")}\n              <button type="submit" class="search_result__item --button-all${e.buttonAllClass}">${searchTxt.buttonAllText}</button>\n            </div>\n          `),(t.producers&&t.producers.length||t.series&&t.series.length||t.menuNodes&&t.menuNodes.length)&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --categories">\n              <strong class="search_result__label">${searchTxt.categories}</strong>\n              <div class="search_result__items">\n                ${t.producers?t.producers.map((t=>`\n                  <a class="search_result__item --producer" href="${t.link}">\n                    <span class="search_result__name_label">${searchTxt.beforeProducer}</span><span class="search_result__name">${t.name}</span>\n                  </a>\n                `)).join(""):""}\n\n                ${t.series?t.series.map((t=>`\n                  <a class="search_result__item --series" href="${t.link}">\n                    <span class="search_result__name_label">${searchTxt.beforeSeries}</span><span class="search_result__name">${t.name}</span>\n                  </a>\n                `)).join(""):""}\n\n                ${t.menuNodes?t.menuNodes.map((t=>`\n                  <a class="search_result__item --menu" href="${t.link}">\n                    <span class="search_result__name">${t.bc?t.bc.item.map((t=>t.title)).join(searchTxt.separator):t.name}</span>\n                  </a>\n                `)).join(""):""}\n              </div>\n            </div>\n          `),t.cms&&t.cms.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --cms">\n              <strong class="search_result__label">${searchTxt.cms}</strong>\n              <div class="search_result__items">\n                ${t.cms.map((t=>`\n                  <a class="search_result__item --cms" href="${t.link}">\n                    <span class="search_result__name">${t.name}</span>\n                  </a>\n                `)).join("")}\n              </div>\n            </div>\n          `))}else this.closeResults();return this.afterBuildResult&&this.afterBuildResult(t),!0},this.updateSearchInput=()=>{const t=e.resultsWrapper.querySelector(".search_result__item.--active .search_result__name")?e.resultsWrapper.querySelector(".search_result__item.--active .search_result__name").textContent:e.resultsWrapper.querySelector(".search_result__item.--active").textContent;e.searchInput.value=t},this.updateFocusElement=t=>{this.resultsWrapper.querySelectorAll(".search_result__item").forEach((t=>t.classList.remove("--active"))),"null"!=typeof t&&t.classList.add("--active"),"null"!=typeof t&&t.focus(),this.updateSearchInput()},this.initEvents=()=>{const t=document.getElementById("menu_search");t&&t.addEventListener("submit",(function(){const t=e.searchInput.getAttribute("data-value");t&&(e.searchInput.value=t)})),document.addEventListener("focusin",(e=>{const{target:n}=e;n?.closest("#menu_search")||(t.classList.remove("--focus"),document.documentElement.classList.remove("--search-open"))})),this.searchInput.addEventListener("keyup",(function(t){const n=t.which||t.keyCode||0;37!==n&&38!==n&&39!==n&&40!==n&&(e.searchInput.setAttribute("data-value",this.value),
6clearTimeout(e.vars.typingTimer),e.vars.typingTimer=setTimeout(e.buildResult,e.vars.doneTypingInterval),document.querySelector("html._mobile:not(.sidebar_open):not(.--search-open) .main_page")&&window.scrollTo(0,0))})),this.searchInput.addEventListener("keydown",(function(t){const n=t.which||t.keyCode||0;return 37===n||38===n||39===n||40===n||(e.searchInput.setAttribute("data-value",this.value),clearTimeout(e.vars.typingTimer),e.searchInput.closest("form").classList.add("--focus"),!document.querySelector(".--search-open")||13!==n)||(t.preventDefault(),this.closest("form").submit(),!1)})),this.searchInput.addEventListener("focus",(function(){window.screen.width<768&&!document.documentElement.classList.contains("--search-open")&&!document.documentElement.classList.contains("sidebar_open")&&(document.documentElement.classList.add("--search-open"),document.documentElement.scrollIntoView()),this.closest("form").classList.add("--focus")})),document.addEventListener("scroll",(function(t){window.scrollY>0?document.documentElement.classList.add("--scroll-down"):document.documentElement.classList.contains("sidebar_open")||document.documentElement.classList.contains("filters_open")||document.documentElement.classList.remove("--scroll-down")})),document.querySelector(".search_result, .search_result__block").addEventListener("scroll",(function(){app_shop.vars.view<3&&document.activeElement.blur()})),document.addEventListener("keydown",(t=>{const{key:n}=t;"Escape"===n&&(e.searchInput.closest("form").classList.remove("--focus"),document.documentElement.classList.remove("--search-open"))})),document.addEventListener("click",(function(t){return t.target.closest(".menu_search__mobile")&&(t.preventDefault(),document.documentElement.classList.toggle("--search-open"),e.searchInput.closest("form").classList.toggle("--focus"),e.searchInput.focus()),t.target.closest(".--search-open .menu_search__submit")&&(t.preventDefault(),document.documentElement.classList.remove("--search-open","--results-main-open"),e.searchInput.closest("form").classList.remove("--focus")),t.target.closest("header .navbar-toggler")&&document.documentElement.classList.remove("--results-main-open"),e.searchInput.closest("form").classList.contains("--focus")&&!e.searchInput.closest("form").contains(t.target)&&(e.searchInput.closest("form").classList.remove("--focus"),document.documentElement.classList.remove("--search-open")),!1}))},this.init=()=>{const{searchInput:t,resultsWrapper:e,resultsLimit:n,inputLengthToStartSearching:i,afterBuildResult:s,buttonAllClass:o}=this.params;this.searchInput=t?document.querySelector(t):document.querySelector(".menu_search__input"),this.resultsWrapper=e?document.querySelector(e):document.querySelector(".search_result"),this.resultsLimit=n||"",this.inputLengthToStartSearching=i||4,this.netPrice="net"===app_shop.vars.priceType,this.afterBuildResult=s||!1,this.buttonAllClass=o||" btn --outline",this.initEvents()},this.init()};const menuBasketCacheLiterals={"Wartość koszyka":"Wartość koszyka",PKT:"PKT"};app_shop.fn.customBasket=t=>`\n  <div class="topBasket__row">\n    <a class="topBasket__item --photo" href="${t.link}">\n      ${void 0!==t.icon_second?`<picture>\n          <source type="image/webp" srcset="${t.icon}"/>\n          <img src="${t.icon_second}" alt="${t.name}">\n        </picture>`:`<img src="${t.icon}" alt="${t.name}">`}\n    </a>\n    <a class="topBasket__item --name" href="${t.link}">
6\n      <span class="topBasket__name">${t.name}</span>\n      ${"uniw"!==t.size?`<span class="topBasket__size">${t.size_name}</span>`:""}\n      ${t.product_version_name?`<span class="topBasket__version">${t.product_version_name}</span>`:""}\n    </a>\n    <span class="topBasket__item --sum">\n      <span class="value">${t.count}</span>\n      <span class="unit">${t.worth_unit}</span>\n    </span>\n    <span class="topBasket__item --prices">${"net"===app_shop.vars.priceType?t.prices.worth_net_formatted:t.prices.worth_gros_formatted}</span>\n  </div>\n`,app_shop.fn.menu_basket_cache=function(){const t=document.getElementById("menu_basket");if(!t)return;iaiGet?.data?.Basket&&iaiGet.reInit?iaiGet.reInit(["Basket"]):iaiGet.basket((e=>{t.classList.remove("--skeleton");const{Basket:{response:{basket:n}={}}={}}=e||{};if(!n)return;app_shop.vars.basket=n;const{products:i=[],user:s={}}=n;app_shop.vars.user=s,t.classList.toggle("--hide",!i.length||i.length>22),t.classList.toggle("--list",i.length>10);const o=t.querySelector(".topBasket__sub"),r=t.querySelector(".topBasket__price");if(r){const{worth_net_formatted:t,worth_formatted:e}=n,i="net"===app_shop.vars.priceType?t:e;r.innerHTML=i,o?.setAttribute?.("aria-label",`${menuBasketCacheLiterals["Wartość koszyka"]}: ${i}`)}const a=t.querySelector(".badge");if(a){const{productsCounter:t=0}=n;a.innerHTML=t>0?t:""}const l=t.querySelector("#shipppingCost");if(l){const{shippingCost_net_formatted:t,shippingCost_formatted:e}=n;l.innerHTML="net"===app_shop.vars.priceType?t:e}const c=document.getElementById("freeShipping");if(c){const{toShippingFree:t}=n;c.classList.toggle("--active",0===+t)}if(!i.length)return void("function"==typeof app_shop.fn.afterBasketCallback&&app_shop.fn.afterBasketCallback(n));let u="";i.forEach((t=>{u+=app_shop.fn.customBasket(t)}));const h=t.querySelector(".topBasket__block.--products");h&&(h.innerHTML=u);const d=i.find((t=>""===t.name||"0"!==t.subscription_period));t.classList.toggle("--oneclick-hide",!!d);document.querySelectorAll(".topBasket__details").forEach((t=>{t.removeAttribute("style")})),"function"==typeof app_shop.fn.afterBasketCallback&&app_shop.fn.afterBasketCallback(n)}))};const menu_basket_cache=app_shop.fn.menu_basket_cache;app_shop.run((()=>{app_shop.fn.menu_basket_cache()}),"all","#menu_basket");var submenuWidth="200",dlmenu_showmore="1",dlmenu_shownumber="10",dlmenu_columnHeight="320",dlmenu_columnConcat="1",dlmenu_padding="30",dlmenu_columns="5",dlmenu_wide="true";app_shop.fn.isTouchEnabled=()=>!window.matchMedia("(pointer:fine)").matches,document.documentElement.classList.toggle("no-touch",!app_shop.fn.isTouchEnabled()),document.documentElement.classList.toggle("touch",app_shop.fn.isTouchEnabled()),app_shop.fn.checkOverflow=()=>{if(document.querySelectorAll(".nvabar-nav .--overflow").forEach((t=>t.classList.remove("--overflow"))),app_shop.vars.view<3)return;const t=document.documentElement.clientWidth;document.querySelectorAll(".navbar-nav > .nav-item").forEach((e=>{const n=t-e.getBoundingClientRect().left+window.scrollX;if(n<parseInt(submenuWidth,10)&&e.classList.add("--overflow"),n<2*parseInt(submenuWidth,10)){const t=e.querySelector(".navbar-subnav");if(!t)return;t.classList.add("--overflow")}}))},app_shop.fn.desktopTouchMenu=t=>{const{target:e}=t,n=e.closest(".nav-link");if(!n)return;const i=n.closest(".nav-item")?.querySelector(":scope > ul");if(!i)return;document.querySelectorAll(".nav-item ul").forEach((t=>{t!==i&&t.classList.remove("active")}));document.querySelector("#menu_categories.wide")&&!i.classList.contains("navbar-subnav")||i.classList.contains("active")||(dlmenu_wide&&(app_shop.fn.concatColumns(i),app_shop.fn.setPositionMenu(i)),i.classList.add("active"),t.preventDefault())},app_shop.fn.mobileMenuNav=t=>{const{target:e}=t;if(app_shop.vars.view>
62&&e.closest(".noevent"))return;const n=e.closest(".nav-link");if(!n)return;if(n.closest(".nav-header"))return;const i=n.closest(".nav-item")?.querySelector(":scope > ul");if(!i)return;const s=n.closest(".nav-item");s&&(t.preventDefault(),s.classList.toggle("nav-open"),s.classList.contains("nav-open")?i.querySelector("a")?.focus():n.focus())},app_shop.fn.mobileMenuBack=t=>{t.preventDefault();const{target:e}=t,n=e.closest(".nav-open");n&&(n.classList.remove("nav-open"),n.querySelector(".nav-link")?.focus())},app_shop.fn.moveSearchToAsideMenu=()=>{const t=document.getElementById("menu_search");if(!t)return;const e=document.querySelector('aside .setMobileGrid[data-item="#menu_navbar"]');if(!e)return;if(document.documentElement.classList.contains("sidebar_open")){const n=document.createElement("del");return n.classList.add("handler"),n.dataset.item="#menu_search",n.style.display="none",t.before(n),void e.before(t)}const n=document.querySelector('header .handler[data-item="#menu_search"]');n&&(n.before(t),n.remove())},app_shop.fn.setInertAside=()=>{app_shop.vars.view>2||document.documentElement.classList.contains("sidebar_open")||document.documentElement.classList.contains("filters_open")?document.querySelector("aside").removeAttribute("inert"):document.querySelector("aside").setAttribute("inert","")},app_shop.fn.showHideAsideMenu=()=>{app_shop.vars.view>2||(document.documentElement.classList.contains("filters_open")||document.documentElement.classList.toggle("sidebar_open"),document.documentElement.classList.remove("filters_open"),app_shop.fn.setMobileCategories?.(),app_shop.fn.moveSearchToAsideMenu(),document.querySelectorAll(".nav-open").forEach((t=>t.classList.remove("nav-open"))),app_shop.fn.setInertAside(),document.documentElement.classList.contains("sidebar_open")&&document.querySelector(".mobileCategories__link.--active")?.focus())},app_shop.fn.focusinAside=t=>{t.closest("aside")||app_shop.fn.showHideAsideMenu()},app_shop.fn.focusinNav=t=>{document.querySelector("#menu_navbar .nav-open")&&(t.closest(".
6nav-item")?.classList.contains("nav-open")||t.closest("ul")?.querySelector(".nav-open")?.classList.remove("nav-open"))},app_shop.fn.focusinShoppinglists=t=>{document.querySelector(".slm_lists.--active")&&(t.closest(".slm_lists.--active")||document.querySelector(".slm_lists.--active")?.classList.remove("--active"))},document.addEventListener("focusin",(t=>{if(!document.documentElement.classList.contains("sidebar_open"))return;const{target:e}=t;app_shop.fn.focusinAside(e),app_shop.fn.focusinNav(e),app_shop.fn.focusinShoppinglists(e)})),app_shop.fn.extendNavItems=t=>{t.preventDefault();const{target:e}=t,n=e.closest(".nav-link");if(!n)return;const i=n.textContent;n.textContent=n.getAttribute("txt_alt"),n.setAttribute("txt_alt",i);const s=n.closest("ul");s?.classList.toggle("show");const o=n.closest(".navbar-subnav");o?.classList.add("active")},app_shop.fn.concatColumns=t=>{if(!dlmenu_columnConcat)return;let e=document.createElement("li");e.classList.add("nav-item","nav-merge");let n=parseInt(dlmenu_columnHeight,10);t.querySelectorAll("& > .nav-item").forEach((t=>{const{nextElementSibling:i}=t,s=t.offsetHeight,o=i?.offsetHeight;if(t.classList.contains("--all")&&(n=0),s<n&&o+s<n)return t.after(e),e.append(t),void(n-=s);s<n&&(t.after(e),e.append(t),n=parseInt(dlmenu_columnHeight,10),e=document.createElement("li"),e.classList.add("nav-item","nav-merge"))}))},app_shop.fn.setPositionMenu=t=>{const e=document.querySelector("#menu_categories");if(!e)return;const n=e.offsetWidth-dlmenu_padding,i=t.querySelectorAll("& > .nav-item:not(.--all)").length;if(t.classList.add(`--cols${i}`),i<dlmenu_columns&&window.screen.width>=1200||i<dlmenu_columns-1&&window.screen.width<1200){const e=t.offsetWidth,{offsetLeft:i}=t.parentElement,s=i<0?0:i,o=n-(e+s);let r=s- -1*o;r=o>0?s:r,t.style.setProperty("left",`${r}px`)}},app_shop.run((()=>{document.addEventListener("click",(t=>{const{target:e}=t;
6e.closest(".navbar-toggler")?app_shop.fn.showHideAsideMenu():e.closest("aside .navbar-collapse .nav-link")?app_shop.fn.mobileMenuNav(t):e.closest("aside .nav-header__backLink")?app_shop.fn.mobileMenuBack(t):e.closest("#menu_categories .nav-item.--extend")?app_shop.fn.extendNavItems(t):!document.documentElement.classList.contains("sidebar_open")&&!document.documentElement.classList.contains("filters_open")||e.closest("aside")?!e.classList.contains("nav-link")&&document.querySelector("html.touch")&&document.querySelectorAll(".nav-item ul").forEach((function(t){t.classList.remove("active")})):app_shop.fn.showHideAsideMenu()}));const t=app_shop?.vars?.isIos?"touchstart":"click";document.addEventListener(t,(t=>{const{target:e}=t;e.closest(".touch header .navbar-collapse .nav-link")&&app_shop.fn.desktopTouchMenu(t)})),document.querySelectorAll(".navbar-subnav").forEach((t=>{t.addEventListener("mouseover",(()=>{document.querySelectorAll(".navbar-subnav").forEach((t=>{t.classList.remove("active")}))}))})),document.querySelectorAll(".no-touch .navbar-nav .nav-link.--l1").forEach((t=>{t.addEventListener("mouseover",(t=>{const{target:e}=t;app_shop.fn.initWideMenu(e)}))}))}),"all","#menu_categories"),app_shop.fn.initWideMenu=t=>{if(!dlmenu_wide)return;
6const e=t.closest(".nav-item")?.querySelector(":scope > ul"),{visited:n}=t.dataset;e&&e?.classList.contains("navbar-subnav")&&(n||(app_shop.fn.concatColumns(e),app_shop.fn.setPositionMenu(e)),t.dataset.visited=!0)},app_shop.run((()=>{document.documentElement.addEventListener("click",(t=>{const{target:e}=t;e.closest(".nav-link-expand")&&(e.closest(".nav-item")?.classList.toggle("--hover"),app_shop.fn.initWideMenu(e))})),document.querySelectorAll(".nav-link, .nav-link-expand").forEach((t=>{t.addEventListener("focus",(t=>{const{target:e}=t;e.closest("ul")?.querySelectorAll(":scope > .nav-item.--hover")?.forEach((t=>t.classList.remove("--hover")))})),t.addEventListener("mouseover",(()=>{document.querySelectorAll(".nav-item.--hover").forEach((t=>t.classList.remove("--hover")))}))}))}),"all",".nav-link-expand"),app_shop.run((()=>{app_shop.vars.view>2&&(document.documentElement.classList.remove("sidebar_open","filters_open"),app_shop.fn.moveSearchToAsideMenu()),app_shop.fn.setInertAside(),dlmenu_wide||app_shop.fn.checkOverflow()}),[1,2,3,4],"#menu_categories"),app_shop.run((function(){document.querySelectorAll("#menu_categories .nav-gfx.nav-hover").forEach((t=>{t.addEventListener("mouseover",(()=>{const e=`${t.offsetHeight}px`;t.style.width=`${t.offsetWidth}px`,t.style.height=e,t.classList.add("--hover")})),t.closest(".nav-item")?.addEventListener?.("mouseleave",(()=>{t.style.width="",t.style.height="",t.classList.remove("--hover")}))}))}),"all","#menu_categories .nav-gfx.nav-hover"),app_shop.run((function(){document.querySelectorAll("#menu_categories .nav-gfx.nav-hover").forEach((t=>{t.style.width="",t.style.height=""}))}),[1,2,3,4],"#menu_categories .nav-gfx.nav-hover"),app_shop.run((()=>{const t=document.querySelector(".slm_lists");if(!t)return;document.querySelectorAll(".slm_lists__label").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),t.classList.toggle("--active")}))}))}),"all",".slm_lists__label");const excludeFromMove=["#menu_contact"];function simple_tooltip(t,e,n){return this.tipHandle="",this.pushSelectors=()=>{app_shop.vars.simpleTooltipOptions.push({targetItems:t,tooltipId:e,onLeft:n})},this.getTooltipOptions=t=>app_shop.vars.simpleTooltipOptions.find((e=>t.closest(e.targetItems))),this.removeAllTooltips=()=>{app_shop.vars.simpleTooltipOptions.forEach((t=>{const e=document.getElementById(t.tooltipId);e&&e.remove()}))},this.getTooltipContent=(t,e)=>{if(!t.closest(e))return!1;const n=t.closest(e);if(n.nextElementSibling?.classList.contains("tooltipContent"))return n.nextElementSibling.innerHTML.trim();if(n.title){const{title:t}=n;return n.dataset.title=t,n.removeAttribute("title"),t.trim()}return!!n.dataset.title&&n.dataset.title.trim()},this.createTooltip=(t,e)=>{document.getElementById(t)&&document.getElementById(t).remove();const n=document.createElement("div");return n.style.display="block",n.className=t,n.id=t,n.innerHTML=`<p>${e}</p>`,n.addEventListener("mouseenter",(()=>clearTimeout(this.tipHandle))),n.addEventListener("mouseleave",(()=>n.remove())),document.body.appendChild(n),n},this.setTooltipPosition=(t,e)=>{const i=window.scrollY,s=window.innerWidth,o=15,r=n||!1;let a=0,l=0;const c=t?.getBoundingClientRect?.(),u=t instanceof MouseEvent?t.pageX:c.left+window.scrollX,h=t instanceof MouseEvent?t.pageY:c.top+window.scrollY;r?(a=u-e.offsetWidth-o<=0?u+o:u-o-e.offsetWidth,l=i+30>=h-e.offsetHeight?i+o:h-e.offsetHeight-o):(a=s-30>=e.offsetWidth+u?u+o:s-e.offsetWidth-o,l=i+30>=h-e.offsetHeight?i+o:h-e.offsetHeight-o),e.style.left=`${a}px`,e.style.top=`${l}px`},this.onMouseMove=t=>{const{target:e}=t,n=this.getTooltipOptions(e);if(!n)return;const i=this.getTooltipContent(e,n.targetItems);if(!i)return;const s=this.createTooltip(n.tooltipId,i);this.setTooltipPosition(t,s)},this.onMouseOut=t=>{const{target:e}=t,n=this.getTooltipOptions(e);if(!n)return;const i=document.getElementById(n.tooltipId);i&&(this.tipHandle=setTimeout((()=>{i.remove()}),500))},this.onTouchStart=t=>{const{target:e}=t;this.getTooltipOptions(e)||app_shop.vars.simpleTooltipOptions.forEach((t=>{const n=document.getElementById(t.tooltipId);n&&(e.closest(`#${t.tooltipId}`)||n.remove())}
6))},this.onFocusinStart=t=>{const{target:e}=t;this.removeAllTooltips();const n=this.getTooltipOptions(e);if(!n)return;const i=this.getTooltipContent(e,n.targetItems);if(!i)return;const s=this.createTooltip(n.tooltipId,i);s.setAttribute("role","alert"),this.setTooltipPosition(e,s)},this.initEvents=()=>{document.documentElement.classList.contains("--tooltip-initiated")||(document.documentElement.classList.add("--tooltip-initiated"),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseout",this.onMouseOut),document.addEventListener("touchstart",this.onTouchStart),document.addEventListener("focusin",this.onFocusinStart))},this.init=()=>{this.pushSelectors(),this.initEvents()},this.init()}function calculate_instalments(params){let{minPrice:minPrice,maxPrice:maxPrice,totalPrice:totalPrice,link:link,instalmentName:instalmentName,priceType:priceType}=params;"object"!=typeof params&&null!==params&&([minPrice,maxPrice,totalPrice,,link,,instalmentName,,priceType]=arguments),minPrice=parseFloat(minPrice,10)||!1;const minPriceFormat=!!minPrice&&`${format_price(minPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;maxPrice=parseFloat(maxPrice,10)||!1;const maxPriceFormat=!!maxPrice&&`${format_price(maxPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;totalPrice=parseFloat(totalPrice,10)||!1,link=link||!1,instalmentName=instalmentName||!1,priceType=priceType||!1;let productsPrice="";productsPrice=priceType&&"net"===priceType?document.getElementById("projector_number")?instalmentData.priceNet*document.getElementById("projector_number").value:instalmentData.priceNet:document.getElementById("projector_number")?instalmentData.price*document.getElementById("projector_number").value:instalmentData.price;const productsPriceFormat=`${format_price(productsPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;if(link&&-1!==link.indexOf("{calculate_price}")&&(link=link.replace("{calculate_price}","XXX")),0===productsPrice)return eval(link),!1;if(0===instalmentData.basketCount&&(!minPrice&&!maxPrice||minPrice&&productsPrice>=minPrice&&maxPrice&&productsPrice<=maxPrice))return eval(link.replace("XXX",productsPrice)),!1;let infoHTML="";minPrice&&productsPrice<minPrice?infoHTML=`\n      <div class='menu_messages_message'>\n        <div class='menu_messages_message_sub'>\n          <p>${app_shop.txt.instalmentLabelMin}${instalmentName}${app_shop.txt.instalmentLabelTo}${minPriceFormat}</p>\n        </div>\n      </div>\n    `:maxPrice&&productsPrice>maxPrice&&(infoHTML=`\n      <div class='menu_messages_message'>\n        <div class='menu_messages_message_sub'>\n          <p>${app_shop.txt.instalmentLabelMax}${instalmentName}${app_shop.txt.instalmentLabelTo}${maxPriceFormat}</p>\n        </div>\n      </div>\n    `);let sumPrice=0;sumPrice=totalPrice?(totalPrice+productsPrice).toFixed(2):((priceType&&"net"===priceType?instalmentData.basketCostNet:instalmentData.basketCost)+productsPrice).toFixed(2);const sumPriceFormat=`${format_price(sumPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;let buttonHTML="";if(document.querySelector("#container.projector_page")&&(buttonHTML=`\n      <button class="instalment_calculator__button ${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?"":` onclick="${link.replace("XXX",productsPrice)}"`}>
6\n        <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentSingleProduct}</span>\n        <span class="instalment_calculator__button_price">${productsPriceFormat}</span>\n        ${minPrice&&productsPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMin}</span>`:""}\n        ${maxPrice&&productsPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMax}</span>`:""}\n      </button>\n    `,0!==instalmentData.basketCount&&(buttonHTML+=`\n        <button class="instalment_calculator__button ${minPrice&&sumPrice<minPrice||maxPrice&&sumPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&sumPrice<minPrice||maxPrice&&sumPrice>maxPrice?"":` onclick="${link.replace("XXX",sumPrice)}"`}>\n          <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentBasketProduct}</span>\n          <span class="instalment_calculator__button_price">${sumPriceFormat}</span>\n          ${minPrice&&sumPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMinBasket}</span>`:""}\n          ${maxPrice&&sumPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMaxBasket}</span>`:""}\n        </button>\n      `)),document.querySelector("#container.basketedit_page")){if(minPrice&&productsPrice>=minPrice&&maxPrice&&productsPrice<=maxPrice)return eval(link.replace("XXX",productsPrice)),!1;buttonHTML=`\n      <button class="instalment_calculator__button ${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?"":` onclick="${link.replace("XXX",productsPrice)}"`}>\n        <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentMultiProduct}</span>\n        <span class="instalment_calculator__button_price">${productsPriceFormat}</span>\n        ${minPrice&&productsPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMinB}</span>`:""}\n        ${maxPrice&&productsPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMaxB}</span>`:""}\n      </button>\n    `}Modal({html:infoHTML+buttonHTML,classList:"instalment_calculator"})}app_shop.fn.setGrid=()=>{switch(app_shop.vars.view){case 4:case 3:document.querySelectorAll(".domHandler").forEach((t=>{const e=t.dataset.item,n=document.querySelector(e);n&&(excludeFromMove.includes(e)?n.classList.contains("--clone")&&n.remove():t.after(n),t.remove())}));break;case 2:case 1:if(document.querySelector(".domHandler"))return;document.querySelectorAll(".setMobileGrid").forEach((t=>{const e=t.dataset.item,n=document.querySelector(e);if(!n||t.querySelectorAll(e).length>0)return;const i=document.createElement("del");if(i.classList.add("domHandler"),i.dataset.item=e,i.style.display="none",n.before(i),excludeFromMove.includes(e)){const e=n.cloneNode(!0);e.classList.add("--clone"),t.append(e)}else t.append(n)}))}},app_shop.fn.setMobileCategories=function(){const t=document.querySelector("#mobileCategories");t&&(t.classList.contains("--inited")||(t.classList.add("--inited"),(()=>{const t=document.querySelector("#mobileCategories");document.querySelector("aside")?.prepend(t),t.addEventListener("click",(t=>{const{target:e}=t;e.closest(".mobileCategories__link")&&(t.preventDefault(),(()=>{const t=document.querySelector("aside");document.querySelectorAll(".mobileCategories__link").forEach((e=>{e.classList.remove("--active"),t?.querySelectorAll(e.dataset.ids.split(",")).forEach((t=>{t.style.display="none",t.classList.remove("--active")}))}))})(),(t=>{const e=document.querySelector("aside");t.classList.add("--active"),e?.querySelectorAll(t.dataset.ids.split(",")).forEach((t=>{t.style.display="",t.classList.add("--active")}))})(e.closest(".mobileCategories__link")))}))})()),t.querySelector(".mobileCategories__link")?.click())},app_shop.run((()=>{document.querySelectorAll('.footer_links_sub a[data-gfx-enabled="true"]').forEach((t=>{t.addEventListener("mouseover",(t=>{const e=t.target.closest('a[data-gfx-enabled="true"]').querySelector("img");if(!e)return;const{onmouseover:n}=e.dataset;n&&(e.dataset.tmp=e.src,e.src=n)})),t.addEventListener("mouseout",(t=>{const e=t.target.closest('a[data-gfx-enabled="true"]').querySelector("img");if(!e)return;const{tmp:n}=e.dataset;n&&(e.src=n,delete e.dataset.tmp)}))}))}),"all",'.footer_links_sub a[data-gfx-enabled="true"]'),app_shop.run((()=>{document.querySelectorAll(".footer_tab__header").forEach((t=>{t.addEventListener("click",(e=>{if("true"===t.getAttribute("data-hide-arrow"))return;const n=t.getAttribute("aria-expanded"),i=t.getAttribute("aria-controls"),s=document.getElementById(i),o="true"===n;app_shop.vars.view<2&&(e.preventDefault(),n&&t.setAttribute("aria-expanded",!o),t.setAttribute("data-previous-state",!o),s.setAttribute("aria-hidden",o))}))}))}),"all",".footer_tab__header, .footer_links_sub"),app_shop.run((()=>{document.querySelectorAll("#footer_links [aria-hidden]").forEach((t=>{if(1===app_shop.vars.view&&!t.hasAttribute("data-previous-state")){const e=t.getAttribute("aria-hidden");t.setAttribute("data-previous-state",e)}const e=t.getAttribute("data-previous-state");t.setAttribute("aria-hidden",e??!1)}))}),[1,2,3,4],".footer_tab__header, .footer_links_sub"),app_shop.run((()=>{const t=document.querySelector("#manageCookies");t?.addEventListener("click",(()=>{"function"==typeof prepareCookiesConfiguration&&prepareCookiesConfiguration()}))}),"all","#manageCookies"),app_shop.run((()=>{simple_tooltip(".showTip","n59581_tooltip_dictionary"),simple_tooltip("#contentcolumn_order1 .showTip_order1","n59581_tooltip"),simple_tooltip("#basketedit_gifts .showTip_gift","n59581_tooltip"),simple_tooltip("#basketedit_productslist .showTip_basket","n59581_tooltip"),simple_tooltip("span.btn_note","n59581_instalment_note")}),"all","body"),app_shop.vars.simpleTooltipOptions=[],app_shop.txt.instalmentLabel="",app_shop.txt.instalmentSingleProduct="Oblicz raty tylko dla tego produktu",app_shop.txt.instalmentMultiProduct="Oblicz raty produktów w koszyku",app_shop.txt.instalmentBasketProduct="Oblicz raty łącznie z wartością koszyka",app_shop.txt.instalmentNoTall="Nie wszystkie umieszczone w koszyku produkty umożliwią zakup tym systemem ratalnym. Przejdź do szczegółów każdego z produktów aby dowiedzieć się które z nich umożliwiają taki zakup. Jeżeli zdecydujesz się na zakup na raty, opłata za te produkty będzie musiała być wniesiona odrębnie pozostałymi sposobami płatności.",app_shop.txt.instalmentTooMany="W koszyku znajduje się zbyt duża ilość produktów aby móc opłacić zamówienie tym systemem ratalnym. Zmniejsz ilość produktów do ",app_shop.txt.instalmentTooMany2=" aby móc skorzystać z systemu rat. Ilość sztuk jednego produktu nie jest limitowana.",app_shop.txt.instalmentLabelTo=" to ",app_shop.txt.instalmentLabelMinBasket="Nie możesz uruchomić symulacji rat dla całego koszyka, ponieważ minimalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentTextMin="Zwiększ ilość sztuk produktu, aby uruchomić kalkulator rat.",app_shop.txt.instalmentTextMinBasket="Zwiększ ilość sztuk tego produktu, lub wrzuć do koszyka dodatkowe produkty.",app_shop.txt.instalmentTextMinB="Zwiększ ilość produktów w koszyku, aby uruchomić kalkulator rat.",app_shop.txt.instalmentLabelMax="Maksymalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentLabelMaxBasket="Nie możesz uruchomić symulacji rat dla całego koszyka, ponieważ maksymalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentTextMax="Zmniejsz ilość sztuk produktu, aby uruchomić kalkulator rat.",app_shop.txt.instalmentTextMaxBasket="Zmniejsz ilość sztuk tego produktu, lub usuń z koszyka niektóre produkty.",app_shop.txt.instalmentTextMaxB="Zmniejsz ilość produktów w koszyku, aby uruchomić kalkulator rat.",app_shop.txt.instalmentLabelMin="Minimalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentButtonClassDialog="btn --solid --medium",app_shop.txt.instalmentButtonDisableClassDialog="btn --solid --secondary --medium --disabled",app_shop.txt.instalmentNet=" netto",app_shop.run((function(){Modal({element:document.getElementById("menu_notice")})}),"all","#menu_notice"),app_shop.run((()=>{iaiGet.snippets((t=>{const{Snippets:{response:{items:e={}}={}}={}}=t||{};e&&Object.values(e).forEach((t=>{const{region:e,content:n}=t||{};if(!e||!n)return;const i=document.createElement("div");i.innerHTML=n;const s=[...i.childNodes];switch(e){case"head":s.forEach((t=>{if("SCRIPT"===t.tagName){const e=document.createElement("script");e.text=t.innerHTML,document.head.append(e)}else document.head.append(t)}));break;
6case"body_top":s.forEach((t=>{if("SCRIPT"===t.tagName){const e=document.createElement("script");e.text=t.innerHTML,document.body?.prepend(e)}else document.body?.prepend(t)}));break;default:s.forEach((t=>{if("SCRIPT"===t.tagName){const e=document.createElement("script");e.text=t.innerHTML,document.body?.append(e)}else document.body?.append(t)}))}}))}),{mobile:1===app_shop.vars.view,tablet:2===app_shop.vars.view,pc:app_shop.vars.view>2,request_uri:app_shop.vars.requestUri,additional_ajax:app_shop.vars.additionalAjax}),iaiGet.toplayersAndWidgets((t=>{const{ToplayersAndWidgets:{response:{items:e={}}={}}={}}=t||{};e&&Object.entries(e).forEach((([t,e])=>{if("script"===t){const t=document.createElement("script");return t.text=e,void document.body?.append(t)}const{content:n}=e||{};if(!n)return;const i=document.createElement("div");i.innerHTML=n;const s=[...i.getElementsByTagName("script")];s.forEach((t=>t.remove())),document.body?.append(...i.childNodes),s.forEach((t=>{const e=document.createElement("script");t.src?e.src=t.src:e.textContent=t.textContent,document.body?.append(e)}))}))}),{mobile:1===app_shop.vars.view,tablet:2===app_shop.vars.view,pc:app_shop.vars.view>2,request_uri:app_shop.vars.requestUri,additional_ajax:app_shop.vars.additionalAjax})}),"all","body"),appModules.installModule("Slider","/gfx/pol/menu_slider_core.js.gzip?r=1774616656"),app_shop.vars.sliderConfig={debugSlider:app_shop?.vars?.customSliderConfig?.debugSlider??!1,sliderList:[]},app_shop.vars.utils={debugFlag:app_shop.vars.sliderConfig.debugSlider,debug(t,e,...n){if(!app_shop.vars.utils.debugFlag)return;const[,,i,s,...o]=(new Error)?.stack?.match(/(:[\d]+)/gim)??[];if(!i||!s)return;i.replace(":",""),s.replace(":","")}},appModules.installModule("SwiperCore","/gfx/pol/menu_slider_modules_1.js.gzip?r=1774616656"),appModules.installModule("SwiperControlls","/gfx/pol/menu_slider_modules_2.js.gzip?r=1774616656"),appModules.installModule("SwiperEffects","/gfx/pol/menu_slider_modules_3.js.gzip?r=1774616656"),appModules.installModule("SwiperNavigation","/gfx/pol/menu_slider_modules_4.js.gzip?r=1774616656"),appModules.installModule("SwiperUtils","/gfx/pol/menu_slider_modules_5.js.gzip?r=1774616656");const priceQuery="price {\n      rebateCodeActive\n      price {\n        gross {\n          value\n          formatted\n        }\n      }\n      omnibusPrice {\n        gross {\n          value\n          formatted\n        }\n      }\n      omnibusPriceDetails {\n        unit {\n          gross {\n            value\n            formatted\n          }\n        }\n        youSavePercent\n        omnibusPriceIsHigherThanSellingPrice\n        newPriceEffectiveUntil {\n          formatted\n        }\n      }\n      max {\n        gross {\n          value\n          formatted\n        }\n      }\n      unit {\n        gross {\n          value\n          formatted\n        }\n      }\n      unitConvertedPrice {\n        gross {\n          value\n          formatted\n        }\n      }\n      youSavePercent\n      beforeRebate {\n        gross {\n          value\n          formatted\n        }\n      }\n      beforeRebateDetails {\n        youSavePercent\n        unit {\n          gross {\n            value\n            formatted\n          }\n        }\n      }\n      advancePrice {\n        gross {\n          value\n          formatted\n        }\n      }\n      suggested {\n        gross {\n          value\n          formatted\n        }\n      }\n      rebateNumber {\n        number\n        gross {\n          value\n          formatted\n        }\n      }\n    }",productQuery=`id\n      type\n      name\n      zones\n      icon\n      iconSecond\n      iconSmall\n      iconSmallSecond\n      link\n      zones\n      producer{\n        name\n      }\n      category{\n        name\n      }\n      sizes{\n        id\n        amount\n        name\n        ${priceQuery}\n      }\n      group{\n        id\n        name\n        link\n        versions{\n          id\n          name\n          icon\n          iconSecond\n          iconSmall\n          iconSmallSecond\n        }\n      }\n      awardedParameters {\n        name\n        id\n        description\n        values {\n          name\n          id\n        }\n      }\n      enclosuresImages {\n        position\n        url\n      }\n    points\n    unit{\n      id, name, singular, plural, fraction, sellBy, precision, unitConvertedFormat\n    }\n      ${priceQuery}`,IDM_PRODUCTS_GQL=t=>JSON.stringify({query:`{\n      products(${t}){\n      took\n          products{\n          ${productQuery}\n      }\n    }\n}`}),IDM_HOTSPOTS_GQL=t=>JSON.stringify({query:`{\n        hotspots(${t}){\n        took\n            products{\n            ${productQuery}\n        }\n    }\n}`}),IDM_PRODUCT_GQL=t=>JSON.stringify({query:`{\n          product(${t}){\n            product{\n            ${productQuery}\n        }\n      }\n    }`}),IDM_HOTSPOT_ADD_TO_BASKET=(t,e,n)=>JSON.stringify({query:`mutation {\n      addProductsToBasket(ProductInput: {id: ${t}, size: "${e}", quantity: ${n}}) {\n        status\n        results {\n          status\n          error {\n            code\n            message\n          }
6\n          productCode\n          productId\n          sizeId\n          quantity\n          quantityAvailable\n        }\n        clientDetailsInBasket {\n          id\n          login\n          firstname\n          lastname\n          participationPartnerProgram\n          usesVat\n          email\n          isWholesaler\n          isWholesalerOrder\n          clientIdUpc\n        }\n      }\n    }`}),idmHotspotTextObject={"Kod rabatowy":"Kod rabatowy",Okazja:"Okazja",Promocja:"Promocja",Bestseller:"Bestseller","Nowość":"Nowość","Ilość":"Ilość","Zwiększ ilość":"Zwiększ ilość","Zmniejsz ilość":"Zmniejsz ilość","Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki":"Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki","Cena regularna":"Cena regularna","Cena bez kodu":"Cena bez kodu","Cena nadchodząca od":"Cena nadchodząca od","Coś poszło nie tak podczas dodawania do koszyka. Spróbuj ponownie lub odśwież stronę":"Coś poszło nie tak podczas dodawania do koszyka. Spróbuj ponownie lub odśwież stronę","Nie znaleziono produktów":"Nie znaleziono produktów","Błąd przy pobieraniu danych":"Błąd przy pobieraniu danych","Kliknij, by przejść do formularza kontaktu":"Kliknij, by przejść do formularza kontaktu","Cena na telefon":"Cena na telefon",Dodany:"Dodany","Wystąpił błąd":"Wystąpił błąd","Do koszyka":"Do koszyka","Maksymalna liczba sztuk tego towaru które możesz dodać do koszyka to:":"Maksymalna liczba sztuk tego towaru które możesz dodać do koszyka to:","Minimalna liczba sztuk tego towaru które możesz dodać do koszyka to:":"Minimalna liczba sztuk tego towaru które możesz dodać do koszyka to:","Wystąpił błąd z inicjalizacją. Proszę odśwież stronę":"Wystąpił błąd z inicjalizacją. Proszę odśwież stronę","Nie znaleziono kontenera":"Nie znaleziono kontenera","Nie znaleziono metody graphql":"Nie znaleziono metody graphql"};async function idmHandleAddToBasket(t){const e=t.target.closest("form.add_to_basket");if(e)try{e.classList.add("--loading");const n=e.querySelector(".add_to_basket__button");t.preventDefault();const i=e.querySelector("input[name='product']")?.value,s=e.querySelector("input[type='hidden'][name='size']")?.value,o=e.querySelector("input[name='number']")?.value,r=await fetch("/graphql/v1/",{method:"POST",headers:{"Content-Type":"application/json"},body:IDM_HOTSPOT_ADD_TO_BASKET(i,s,o)}),a=await r.json();
6if("success"!==a?.data?.addProductsToBasket?.status)throw new Error(a);app_shop.graphql.trackingEvents(r),n.classList.add("--success"),n.innerHTML=`<span>${n.dataset.success}</span>`,setTimeout((()=>{n.innerHTML=`<span>${n.dataset.text}</span>`,app_shop.fn?.menu_basket_cache?.(),n.classList.remove("--success")}),3e3)}catch(t){Alertek.Error(idmHotspotTextObject["Coś poszło nie tak podczas dodawania do koszyka. Spróbuj ponownie lub odśwież stronę"]),buttonEl.innerHTML=`<span>${buttonEl.dataset.error}</span>`,buttonEl.classList.add("--error"),setTimeout((()=>{buttonEl.classList.remove("--error"),buttonEl.innerHTML=`<span>${buttonEl.dataset.text}</span>`}),3e3)}finally{e.classList.remove("--loading")}}app_shop.fn.idmGetOmnibusDetails=t=>{const{productData:e,sizeId:n,priceType:i=app_shop.vars.priceType}=t||{};if(!e)return!1;const s=e.sizes.find((t=>t.id===n))||e;if(!s?.price)return!1;const o={add:[],remove:["--omnibus","--omnibus-short","--omnibus-code","--omnibus-code-short","--omnibus-new-price","--omnibus-higher"]},r={},a=s.price?.omnibusPriceDetails?.unit?.[i]?.formatted||s.price.omnibusPrice[i]?.formatted;if(!a)return{classes:o};o.add.push("--omnibus"),o.remove=o.remove.filter((t=>"--omnibus"!==t));const l=e?.unit?.sellBy,c=!(!s?.price?.unit?.[i]?.formatted||!s.price.max?.[i]?.value)&&format_price(parseFloat(s.price.max?.[i]?.value)*parseFloat(l),{mask:app_shop.vars.currency_format,currency:app_shop.vars?.currency?.symbol,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})||s.price.max?.[i]?.formatted;c&&c!==a||(o.add.push("--omnibus-short"),o.remove=o.remove.filter((t=>"--omnibus-short"!==t))),app_shop.vars.omnibus?.rebateCodeActivate&&s.price?.rebateCodeActive&&(o.add.push("--omnibus-code"),r.rebateCodeActive=`<span class="label --code --omnibus">${idmHotspotTextObject["Kod rabatowy"]}</span>`,o.remove=o.remove.filter((t=>"--omnibus-code"!==t)));const u=s.price.beforeRebateDetails?.unit?.[i]?.formatted||s.price.beforeRebate[i]?.formatted;app_shop.vars.omnibus?.rebateCodeActivate&&u===a&&s.price?.rebateCodeActive&&(o.add.push("--omnibus-code-short"),o.remove=o.remove.filter((t=>"--omnibus-code-short"!==t)));const h=s.price.omnibusPriceDetails?.newPriceEffectiveUntil?.formatted;h&&c&&(o.add.push("--omnibus-new-price"),o.remove=o.remove.filter((t=>"--omnibus-new-price"!==t)));const d=s.price.omnibusPriceDetails?.omnibusPriceIsHigherThanSellingPrice;d&&(o.add.push("--omnibus-higher"),o.remove=o.remove.filter((t=>"--omnibus-higher"!==t))),d&&!h||r?.rebateCodeActive||(r.bargain=`<span class="label --bargain --omnibus">${idmHotspotTextObject.Okazja}</span>`),0===Object.keys(r)?.length&&(r.bargain=`<span class="label --promo --omnibus">${idmHotspotTextObject.Promocja}</span>`),e.zones.find((t=>"bestseller"===t))&&(r.bestseller=`<span class="label --bestseller --omnibus">${idmHotspotTextObject.Bestseller}</span>`),e.zones.find((t=>"news"===t))&&(r.news=`<span class="label --news --omnibus">${idmHotspotTextObject["Nowość"]}</span>`);let p="";d?p="-":0!==s.price.omnibusPriceDetails?.youSavePercent&&(p="+");const m=`${p}${s.price.omnibusPriceDetails?.youSavePercent}%`,f={price:a,visible:!0,percent:m,html:`<span class="omnibus_price__text">${idmHotspotTextObject["Najniższa cena produktu w okresie 30 dni przed wprowadzeniem obniżki"]}: </span><del class="omnibus_price__value">${a}</del><span class="price_percent">${m}</span>`},_=c?{max:{price:c,visible:!0,percent:`-${s.price.youSavePercent}%`,html:`<span class="omnibus_label">${idmHotspotTextObject["Cena regularna"]}: </span>\n        <del>${c}</del><span class="price_percent">-${s.price.youSavePercent}%</span>`}}:{},g=u?{beforeRebate:{price:u,visible:!!o.add.includes("--omnibus-code"),percent:`-${s.price.beforeRebateDetails?.youSavePercent}%`,html:`<span class="omnibus_label">${idmHotspotTextObject["Cena bez kodu"]}: </span>\n        <del>${u}</del>\n        <span class="price_percent">-${s.price.beforeRebateDetails?.youSavePercent}%</span>`}}:{},v=h?{newPriceEffectiveUntil:{date:h,price:c,visible:!!o.add.includes("--omnibus-new-price"),html:`<span class="omnibus_label">${idmHotspotTextObject["Cena nadchodząca od"]} </span>
6\n        <span class="new_price__date">${h}: </span>\n        <span class="new_price__value">${c}</span>`}}:{};return{classes:o,omnibus:f,..._,...g,...v,activeLabel:r}};const idmRangeMaxAlert=t=>Alertek.Error(`${idmHotspotTextObject["Maksymalna liczba sztuk tego towaru które możesz dodać do koszyka to:"]} ${t}`),idmRangeMinAlert=t=>Alertek.Error(`${idmHotspotTextObject["Minimalna liczba sztuk tego towaru które możesz dodać do koszyka to:"]} ${t}`);function idmQuantityButtonClick(t){if(t.target.classList.contains("idm-products-banner__qty-input"))return t.target.select();const e=t.target.closest(".idm-products-banner__qty"),n=e.querySelector(".idm-products-banner__qty-input"),i=parseFloat(e.dataset.sellBy||"1"),s=parseInt(e.dataset.precision||"0"),o=parseFloat(e.dataset.max||"999999");let r=parseFloat(n.value)||0;t.target.classList.contains("idm-products-banner__qty-increase")?(r+=i,r>o&&(r=o,idmRangeMaxAlert(o))):t.target.classList.contains("idm-products-banner__qty-decrease")&&(r-=i,r<i&&(r=i,idmRangeMinAlert(i))),n.value=r.toFixed(s)}function idmQuantityInputChange(t){t.target.value>+t.target.max&&(idmRangeMaxAlert(t.target.max),t.target.value=+t.target.max),t.target.value<+t.target.min&&(idmRangeMinAlert(t.target.min),t.target.value=+t.target.min)}async function idmGetHotspotData(t,e){try{const n=await fetch("/graphql/v1/",{method:"POST",headers:{"Content-Type":"application/json"},body:e?e(t):IDM_PRODUCTS_GQL(t)}),i=await n.json(),s=i[e===IDM_HOTSPOTS_GQL?"hotspots":"data"]?.products?.products;if(!s)throw new Error(idmHotspotTextObject["Nie znaleziono produktów"]);return s}catch(t){return null}}function idmGetQueryData({productsID:t,productsMenu:e,hotspotsType:n}){let i,s;return t?(i=IDM_PRODUCTS_GQL,s=`searchInput: {productsId: [${t}]}`):e?(i=IDM_PRODUCTS_GQL,s=`searchInput: {navigation: ${e}}`):n&&(i=IDM_HOTSPOTS_GQL,s=`searchInput: {hotspot: ${n}, limit: 16}`),{graphFn:i,query:s}}function idmObserveOnce(t,e,n={root:null,rootMargin:"0px",threshold:.1}){if(!t)return;new IntersectionObserver(((t,n)=>{t.forEach((t=>{t.isIntersecting&&(e(t),n.disconnect())}))}),n).observe(t)}function idmPrepareProductsMarkup(t,e){let n="";return t.forEach((t=>{n+=idmPrepareSingleProductMarkup(t,e)})),n}function idmPrepareSingleProductMarkup(t,e){const n=app_shop.fn?.idmGetOmnibusDetails({productData:t});let i="";"object"==typeof n.activeLabel&&Object.entries(n.activeLabel).forEach((([t,e])=>{i+=e}));let s="";return s+=`\n      <div class="product hotspot__product swiper-slide d-flex flex-column ${0===t.price.price[idmPriceType].value?"--phone":""}" data-id="${t.id}">\n          <div class="product__yousave --hidden">\n              <span class="product__yousave --label"></span>\n              <span class="product__yousave --value"></span>\n          </div>\n          <div class="product__right">\n            <a class="product__icon d-flex justify-content-center align-items-center" tabindex="-1" href="${t.link}">\n                ${idmPrepareHotspotImgMarkup(t)}\n                <strong class="label_icons">\n                    ${i}\n                </strong>\n            </a>\n            <div class="product__content_wrapper">\n                <a class="product__name" tabindex="0" href="${t.link}" title="${t.name}">${t.name}</a>\n                <div class="product__prices mb-auto ${n?.classes?.add?.reduce(((t,e)=>t+" "+e),"")}">\n                    ${idmPrepareHotspotPriceMarkup(t,n)}\n                </div>\n            </div>\n          </div>\n          ${idmPrepareHotspotAddToBasketMarkup(t,e)}\n      </div>`,s}function idmPrepareHotspotImgMarkup(t){let e="";return void 0!==t.iconSmallSecond&&void 0!==t.iconSecond?e+=`<picture>\n    <source media="(min-width: 421px)" type="image/webp" srcset="${t.icon}"/>\n    <source media="(min-width: 421px)" type="image/jpeg" srcset="${t.iconSecond}"/>\n    <source media="(max-width: 420px)" type="image/webp" srcset="${t.iconSmall}"/>\n    <source media="(max-width: 420px)" type="image/jpeg" srcset="${t.iconSmallSecond}"/>\n    <img src="${t.iconSecond}" loading="lazy" alt="${t.name}">\n    </picture>`:e+=void 0!==t?.iconSmall?`<picture>\n    <source media="(min-width: 421px)" srcset="${t.icon}"/>\n    <source media="(max-width: 420px)" srcset="${t.iconSmall}"/>\n    <img src="${t.iconSecond}" loading="lazy" alt="${t.name}">\n    </picture>`:`<img src="${t.icon}" loading="lazy" alt="${t.name}">`,e}function idmPrepareHotspotPriceMarkup(t,e){const n=t.price.price[idmPriceType],i=t.unit,s=t?.points,o=t.price?.unitConvertedPrice?.[idmPriceType]?.formatted;return`\n        <strong class="price --normal --main ${0===n.value?"--hidden":""}">
6\n            <span class="price__sub">${n.formatted}</span>\n            <span class="price_sellby">\n                <span class="price_sellby__sep">/</span>\n                <span class="price_sellby__sellby" data-sellby="${i?.sellBy}">${i?.sellBy}</span>\n                <span class="price_sellby__unit">${i?.sellBy>1?i?.plural:i?.singular}</span>\n            </span>\n            ${o?`<span class="price --convert">${o}</span>`:""}\n        </strong>\n        ${s?`<span class="price --points">${s} pkt.</span>`:""}\n        ${0===n.value?`<a class="price --phone" href="/contact.php" tabindex="-1" title="${idmHotspotTextObject["Kliknij, by przejść do formularza kontaktu"]}">${idmHotspotTextObject["Cena na telefon"]}</a>`:""}\n        ${e?.beforeRebate?.visible?`<span class="price --before-rebate">${e?.beforeRebate?.html}</span>`:""}\n        ${e?.newPriceEffectiveUntil?.visible?`<span class="price --new-price new_price">${e?.newPriceEffectiveUntil?.html}</span>`:""}\n        ${e?.omnibus?.visible?`<span class="price --omnibus omnibus_price">${e?.omnibus?.html}</span>`:""}\n        ${e?.max?.visible?`<span class="price --max">${e?.max?.html}</span>`:""}\n    `}function idmPrepareHotspotAddToBasketMarkup(t,e){let n="";return!e&&void 0!==e||void 0===e&&"object"==typeof idmGeneralHotspotObjData&&!idmGeneralHotspotObjData?.options?.addToBasket||!e&&void 0===idmGeneralHotspotObjData||(n="product"!==t.type?`<a class="btn --solid --medium add_to_basket__link" href="${t.href}">Zobacz produkt</a>`:"range"===e||void 0===e&&"object"==typeof idmGeneralHotspotObjData&&"range"===idmGeneralHotspotObjData?.options?.addToBasket?`<form class="add_to_basket --range" action="/basketchange.php" type="post" onsubmit="idmHandleAddToBasket(event)">\n                        <input name="mode" type="hidden" value="1">\n                        <input name="product" type="hidden" value="${t.id}">\n                        <input name="size" type="hidden" value="${t.sizes[0].id}">\n                        <div class="idm-products-banner__qty"\n                            data-sell-by="${t.unit?.sellBy}"\n                            data-precision="${t.unit?.precision}"\n                            data-max="${-1===t.sizes[0].amount?999999:t.sizes[0].amount}"\n                            onclick="idmQuantityButtonClick(event)"\n                            >\n                          <button type="button" class="idm-products-banner__qty-decrease" aria-label="${idmHotspotTextObject["Zmniejsz ilość"]}">−</button>\n\n                          <input type="number"\n                                name="number"\n                                class="idm-products-banner__qty-input"\n                                value="${t.unit?.sellBy}"\n                                step="${t.unit?.sellBy}"\n                                min="${t.unit?.sellBy}"\n                                max="${-1===t.sizes[0].amount?999999:t.sizes[0].amount}" \n                                aria-label="${idmHotspotTextObject["Ilość"]}"\n                                oninput="idmQuantityInputChange(event)"\n                            >\n\n                          <button type="button" class="idm-products-banner__qty-increase" aria-label="${idmHotspotTextObject["Zwiększ ilość"]}">+</button>\n                        </div>\n\n                        <button type="submit" class="btn --solid --medium add_to_basket__button" tabindex="0" data-success="${idmHotspotTextObject.Dodany}" data-error="${idmHotspotTextObject["Wystąpił błąd"]}" data-text="${idmHotspotTextObject["Do koszyka"]}">\n                            <span>${idmHotspotTextObject["Do koszyka"]}</span>\n                        </button>\n                    </form>`:`\n    <form class="add_to_basket" action="/basketchange.php" type="post" onsubmit="idmHandleAddToBasket(event)">\n                        <input name="mode" type="hidden" value="1">\n                        <input name="product" type="hidden" value="${t.id}">\n                        <input name="size" type="hidden" value="${t.sizes[0].id}">\n                        <input name="number" type="hidden" value="${t.unit?.sellBy}">\n                        <button type="submit" class="btn --solid --medium add_to_basket__button" tabindex="0" data-success="${idmHotspotTextObject.Dodany}" data-error="${idmHotspotTextObject["Wystąpił błąd"]}" data-text="${idmHotspotTextObject["Do koszyka"]}">
6\n                            <span>${idmHotspotTextObject["Do koszyka"]}</span>\n                        </button>\n                    </form>`),n}const idmPriceType=app_shop?.vars?.priceType||"gross",idmGeneralHotspotObjData={options:{lazy:!0,addToBasket:!0,swiper:{loop:!1,autoHeight:!1,spaceBetween:16,slidesPerView:1.4,centeredSlides:!0,centeredSlidesBounds:!0,breakpoints:{550:{slidesPerView:2,centeredSlides:!0,centeredSlidesBounds:!0},768:{slidesPerView:3,centeredSlides:!1},979:{slidesPerView:4,centeredSlides:!1}}}}};async function idmHotspotInit(t,e={}){try{if(!document.getElementById(t))throw new Error("Nie znaleziono elementu");if(e?.swiper||void 0===e?.swiper&&"object"==typeof idmGeneralHotspotObjData&&idmGeneralHotspotObjData?.options?.swiper){let n="object"==typeof e.swiper?e.swiper:"";"object"==typeof e.swiper?n=e.swiper:"object"==typeof idmGeneralHotspotObjData&&"object"==typeof idmGeneralHotspotObjData?.options?.swiper?(n=idmGeneralHotspotObjData?.options?.swiper,n.navigation={nextEl:`#${t} .idm-button-next`,prevEl:`#${t} .idm-button-prev`}):n={loop:!1,autoHeight:!1,spaceBetween:16,slidesPerView:1.4,centeredSlides:!0,centeredSlidesBounds:!0,breakpoints:{550:{slidesPerView:3,centeredSlides:!0,centeredSlidesBounds:!0},979:{slidesPerView:4,centeredSlides:!1}},navigation:{nextEl:`#${t} .idm-button-next`,prevEl:`#${t} .idm-button-prev`}};const i=new HotspotSlider({selector:`#${t} .swiper`,hotspotName:`${t}`,options:n});await i.init()}"function"==typeof e?.callbackFn&&e?.callbackFn(),document.querySelectorAll(".idm_hotspot_projector_page .product").forEach((t=>{const e=t.querySelector(".omnibus_price");e&&t&&t.appendChild(e)}))}catch(t){}}async function idmInsertHotspotElement(t){t.classList.add("--init");const{graphFn:e,query:n}=idmGetQueryData({productsID:t?.dataset?.productsId,productsMenu:t?.dataset?.productsMenu,hotspotsType:t.dataset.hotspotsType});if(!e||!n)return t.remove();const i=async()=>{try{const i=await idmGetHotspotData(n,e);if(!i)throw new Error(idmHotspotTextObject["Nie znaleziono produktów"]);const s=t.querySelector(".hotspot");s?s.innerHTML+=`<div class="products__wrapper swiper">\n          <div class="products hotspot__products swiper-wrapper">\n              ${idmPrepareProductsMarkup(i,!0)}\n          </div>\n          </div>\n          <div class="swiper-button-prev --rounded --edge idm-button-prev"><i class="icon-angle-left"></i></div>\n          <div class="swiper-button-next --rounded --edge idm-button-next"><i class="icon-angle-right"></i></div>\n          <div class="swiper-pagination"></div>`:t.innerHTML=`<div class="hotspot --initialized"><div class="products__wrapper swiper">\n          <div class="products hotspot__products swiper-wrapper">\n              ${idmPrepareProductsMarkup(i,!0)}\n          </div>\n          </div>\n          <div class="swiper-button-prev --rounded --edge idm-button-prev"><i class="icon-angle-left"></i></div>\n          <div class="swiper-button-next --rounded --edge idm-button-next"><i class="icon-angle-right"></i></div>\n          <div class="swiper-pagination"></div></div>`,t.classList.remove("idm-loading"),idmHotspotInit(t.id)}catch(e){t.remove()}};t.dataset?.lazy||!t.dataset?.lazy&&"object"==typeof idmGeneralHotspotObjData&&idmGeneralHotspotObjData?.options?.lazy?idmObserveOnce(t,i):i()}async function idmInsertAllHTMLHotspots(){try{const t=[];document.querySelectorAll(".idm__hotspot:not(.--init):not(.--lazy-hotspot)").forEach((e=>{t.push(idmInsertHotspotElement(e))})),await Promise.all(t)}catch(t){}}async function idmInsertHotspotObject(t){const e=document.querySelector(t?.placement.selector);if(!e)throw new Error(idmHotspotTextObject["Nie znaleziono kontenera"]);e.insertAdjacentHTML(t.placement.insert||"afterend",`<section id="${t.id}" class="hotspot__wrapper idm__hotspot --init idm-loading ${t?.classes}">\n            <div class="hotspot --initialized">\n                ${t?.title?`\n                    <h3 class="hotspot__name headline__wrapper">\n                        <span class="headline"><span class="headline__name" aria-label="${t.title}">${t.title}</span></span>\n                    </h3>\n                `:""}\n                <div class="products__wrapper swiper">\n                    <div class="products hotspot__products swiper-wrapper">\n                        \n                    </div>\n                </div>\n                <div class="swiper-button-prev --rounded --edge idm-button-prev"><i class="icon-angle-left"></i></div>\n                <div class="swiper-button-next --rounded --edge idm-button-next"><i class="icon-angle-right"></i></div>\n                <div class="swiper-pagination"></div>\n            </div>\n        </section>`);const n=document.getElementById(t.id);if(!n)throw new Error(idmHotspotTextObject["Nie znaleziono kontenera"]);const i=async()=>{try{let{graphFn:e,query:i}=idmGetQueryData({productsID:t?.source?.productsId,productsMenu:t?.source?.productsMenu,hotspotsType:t.source.hotspotsType});t?.query?.graphFn&&t?.query?.string&&(e=t.query.graphFn,i=t.query.string);const s=await idmGetHotspotData(i,e);if(!s)throw new Error(idmHotspotTextObject["Nie znaleziono produktów"]);const o=`${idmPrepareProductsMarkup(s,t?.options?.addToBasket)}`;n.querySelector(".products.hotspot__products")?.insertAdjacentHTML("beforeend",o),n.classList.remove("idm-loading"),idmHotspotInit(t.id,t?.options)}catch(t){n.remove()}};t?.options?.lazy||void 0===t?.options?.lazy&&"object"==typeof idmGeneralHotspotObjData&&idmGeneralHotspotObjData?.options?.lazy?idmObserveOnce(n,i):i()}async function idmInsertAllObjectHotspots(t){try{const e=[];t.forEach((t=>{e.push(idmInsertHotspotObject(t))})),await Promise.all(e)}catch(t){}}idmInsertAllHTMLHotspots(),app_shop.run((()=>{const t=document.querySelector("header");if(!t)return;const e=document.querySelector(".breadcrumbs");t.append(e)}),[3,4],".breadcrumbs"),app_shop.run((()=>{const t=document.getElementById("layout");if(!t)return;const e=document.querySelector(".breadcrumbs");t.prepend(e)}),[1,2],".breadcrumbs"),app_shop.run((()=>{document.querySelector(".breadcrumbs #back_button").addEventListener("click",(t=>{if(t.preventDefault(),window.location.href===document.referrer)return window.history.go(-2),!1;window.history.back()}))}),"all",".breadcrumbs #back_button"),app_shop.run((function(){simple_tooltip(".order_process_security.show_tip","n59581_tooltip")}),"all",".order_process_security.show_tip"),app_shop.fn.switchSigninView=function(t){document.querySelectorAll("#signin-form_box_left .signin-form_box_sub").forEach((t=>{t.style.display="none"}));const e=t.getAttribute("value"),n=document.getElementById(e);n&&(n.style.display="block",n.querySelector("input.form-control")?.focus())},app_shop.run((function(){document.querySelectorAll("a.password_reminder_signin, a.password_back_signin").forEach((t=>{t.addEventListener("click",(function(t){t.preventDefault();const e=this.getAttribute("href"),n=document.querySelector(e);n&&app_shop.fn.switchSigninView(n)}))}));const t=document.querySelector(".cookie_login_social_more_social");t&&t.addEventListener("click",(function(t){t.preventDefault();const e=document.getElementById("cookie_login_social_more");e&&(e.style.display=""),this.remove()}))}),"all","#signin-form");

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.