PageSourceSearch

https://www.arizonagrandresort.com/wp-content/cache/min/1/wp-conte…/dist/app-7eb0280f20.js?ver=1788963580

js arizonagrandresort.com collected 2026-10-03 21:21:53 UTC 1,229,901 bytes, 1 lines download raw bytes

1!function(){return function t(e,i,n){function r(a,s){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[a]={exports:{}};e[a][0].call(c.exports,function(t){return r(e[a][1][t]||t)},c,c.exports,t,e,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}}()({1:[function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.blockType=e,this.page=i,this.cont=n,this.init(),this.initEvents()}var e,i,r;return e=t,(i=[{key:"init",value:function(){}},{key:"destroy",value:function(){this.destroyEvents()}},{key:"initEvents",value:function(){}},{key:"destroyEvents",value:function(){}}])&&n(e.prototype,i),r&&n(e,r),t}();i.default=r},{}],2:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./../factories/class-factory"))&&n.__esModule?n:{default:n},o=t("./../utils/throttle"),a=l(t("./../utils/globals")),s=l(t("./../utils/utils"));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.pageType=i,this.classFactory=new r.default,this.cont=e,this.blocks=[],this.blocksObj=[],this.onResize=this.onResize.bind(this),this.onResizeDebounce=(0,o.throttle)(this.onResize,100,!1),this.createBlocks(),this.init()}var e,i,n;return e=t,(i=[{key:"init",value:function(){s.setAttribute(a.body,"load",!0)}},{key:"destroy",value:function(){if(this.destroyEvents(),null!==this.blocks)for(var t=0;t<this.blockLength;t++)this.blocksObj[t].destroy()}},{key:"initEvents",value:function(){window.addEventListener("resize",this.onResizeDebounce)}},{key:"destroyEvents",value:function(){window.removeEventListener("resize",this.onResizeDebounce)}},{key:"onResize",value:function(){}},{key:"createBlocks",value:function(){var t=this.cont.querySelectorAll(".js-block");this.blockLength=t.length;for(var e=0;e<this.blockLength;e++)this.blocks.push(t[e]),this.initSingleBlock(t[e])}},{key:"initSingleBlock",value:function(t){var e=t.getAttribute("data-block"),i=this.classFactory.getBlockInstance(e,this,t);this.blocksObj.push(i)}}])&&u(e.prototype,i),n&&u(e,n),t}();i.default=c},{"./../factories/class-factory":31,"./../utils/globals":43,"./../utils/throttle":44,"./../utils/utils":45}],3:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./../_abstract/abstract-block"))&&n.__esModule?n:{default:n};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,i){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
1function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,u(e).apply(this,arguments))}var i,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){l(u(e.prototype),"init",this).call(this)}},{key:"initEvents",value:function(){l(u(e.prototype),"initEvents",this).call(this)}},{key:"destroyEvents",value:function(){l(u(e.prototype),"destroyEvents",this).call(this)}}])&&a(i.prototype,n),o&&a(i,o),e}();i.default=h},{"./../_abstract/abstract-block":1}],4:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}(t("./../utils/utils"));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,i){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
1function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,c(e).apply(this,arguments))}var i,n,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){u(c(e.prototype),"init",this).call(this),this.currentItem=-1,this.triggers=this.cont.querySelectorAll(".accordion__row"),this.hiddens=this.cont.querySelectorAll(".accordion__hidden"),this.inners=this.cont.querySelectorAll(".accordion__inner"),this.innerHeights=[];for(var t=0;t<this.inners.length;t++)this.innerHeights.push(this.inners[t].offsetHeight)}},{key:"initEvents",value:function(){u(c(e.prototype),"initEvents",this).call(this),this.setHiddenHeightsBound=this.setHiddenHeights.bind(this),this.setHiddenHeightsBound(),this.setActiveRowEvents=[];for(var t=0;t<this.triggers.length;t++)this.setActiveRowEvents.push(this.setActiveRow.bind(this,t));for(t=0;t<this.triggers.length;t++)this.triggers[t].addEventListener("click",this.setActiveRowEvents[t])}},{key:"destroyEvents",value:function(){u(c(e.prototype),"destroyEvents",this).call(this);for(var t=0;t<this.triggers.length;t++)this.triggers[t].removeEventListener("click",this.setActiveRowEvents[t])}},{key:"setHiddenHeights",value:function(){for(var t=0;t<this.hiddens.length;t++)this.hiddens[t].style.maxHeight=this.innerHeights[t]+"px"}},{key:"setActiveRow",value:function(t){t===this.currentItem?(o.setAttribute(this.cont,"active",0),this.currentItem=-1):(o.setAttribute(this.cont,"active",t+1),this.currentItem=t),o.fireEvent(window,"resize")}}])&&s(i.prototype,n),a&&s(i,a),e}();i.default=p},{"./../utils/utils":45,"./_default-block":3}],5:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=(a(t("./../utils/globals")),a(t("./../utils/utils")));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,i){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,h(e).apply(this,arguments))}var i,n,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){c(h(e.prototype),"init",this).call(this)}},{key:"initEvents",value:function(){c(h(e.prototype),"initEvents",this).call(this),this.active=!1,this.queueLeave=!1,this.setActiveBound=this.setActive.bind(this),this.buttonActiveBound=this.buttonActive.bind(this),this.queueLeaveEventBound=this.queueLeaveEvent.bind(this),this.endActiveBound=this.endActive.bind(this),this.clearStateBound=this.clearState.bind(this),this.cont.addEventListener("mousemove",this.setActiveBound)}},{key:"destroyEvents",value:function(){c(h(e.prototype),"destroyEvents",this).call(this)}},{key:"setActive",value:function(){return this.queueLeave?(this.queueLeave=!1,!1):!this.active&&(this.active=!0,this.cont.removeEventListener("mousemove",this.setActiveBound),o.setAttribute(this.cont,"state","hover"),this.cont.addEventListener("mouseenter",this.setActiveBound),this.cont.addEventListener("mouseleave",this.queueLeaveEventBound),void setTimeout(this.buttonActiveBound,500))}},{key:"queueLeaveEvent",value:function(){this.queueLeave=!0}},{key:"buttonActive",value:function(){this.queueLeave?this.endActiveBound():(this.cont.removeEventListener("mouseenter",this.setActiveBound),this.cont.removeEventListener("mouseleave",this.queueLeaveEventBound),this.cont.addEventListener("mouseleave",this.endActiveBound))}},{key:"endActive",value:function(){if(!this.active)return!1;this.cont.removeEventListener("mouseenter",this.setActiveBound),this.cont.removeEventListener("mouseleave",this.queueLeaveEventBound),this.cont.removeEventListener("mouseleave",this.endActiveBound),o.setAttribute(this.cont,"state","leave"),setTimeout(this.clearStateBound,700)}},{key:"clearState",value:function(){this.active=!1,this.cont.addEventListener("mousemove",this.setActiveBound),o.setAttribute(this.cont,"state","")}}])&&l(i.prototype,n),a&&l(i,a),e}();i.default=f},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}
1],6:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=u(t("./_default-block")),r=l(t("./../utils/globals")),o=l(t("./../utils/utils")),a=u(t("jquery")),s=t("./../utils/auto-init/scroll");function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e,i){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,d(e).apply(this,arguments))}var i,l,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,n.default),i=e,(l=[{key:"init",value:function(){f(d(e.prototype),"init",this).call(this),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php",this.today=new Date,this.currentDay=this.today.getDate(),this.currentMonth=this.today.getMonth(),this.currentYear=this.today.getFullYear(),this.currentDateString=this.yyyymmddString(this.currentYear,this.currentMonth,this.currentDay),this.currentDateInt=parseInt(this.currentDateString),this.prevBtn=this.cont.querySelector(".event-calendar__btn--prev"),this.nextBtn=this.cont.querySelector(".event-calendar__btn--next"),this.monthAndYear=this.cont.querySelector(".event-calendar__header"),this.table=this.cont.querySelector(".event-calendar__table"),this.tableBody=this.table.querySelector(".event-calendar__table-body"),this.calendarContent=r.doc.querySelector(".js-event-calendar-content"),this.calendarData=o.getAttribute(this.table,"json"),this.events=JSON.parse(this.calendarData),this.eventsL=this.events.length,this.activeMonth=this.currentMonth,this.activeYear=this.currentYear,this.activeDateString=this.yyyymmString(this.activeYear,this.activeMonth),this.eventsByDate=[],this.eventsByDateL=0,this.rearrangeEventData(),this.eventCountByMonth=[],this.countEventsPerMonth(),this.currentMonthIndex=0,this.months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.prev=this.prev.bind(this),this.next=this.next.bind(this),this.showCalendar(this.activeMonth,this.activeYear)}},{key:"initEvents",value:function(){f(d(e.prototype),"initEvents",this).call(this),this.prevBtn.addEventListener("click",this.prev),this.nextBtn.addEventListener("click",this.next)}},{key:"destroyEvents",value:function(){f(d(e.prototype),"destroyEvents",this).call(this),this.prevBtn.removeEventListener("click",this.prev),this.nextBtn.removeEventListener("click",this.next)}},{key:"next",value:function(t){t.pageX>0&&this.nextBtn.blur(),this.currentMonthIndex++,this.activeYear=11===this.activeMonth?this.activeYear+1:this.activeYear,this.activeMonth=(this.activeMonth+1)%12,this.showCalendar(this.activeMonth,this.activeYear)}},{key:"prev",value:function(t){t.pageX>0&&this.prevBtn.blur(),this.currentYear===this.activeYear&&this.currentMonth===this.activeMonth||(this.currentMonthIndex--,this.activeYear=0===this.activeMonth?this.activeYear-1:this.activeYear,this.activeMonth=0===this.activeMonth?11:this.activeMonth-1,this.showCalendar(this.activeMonth,this.activeYear))}},{key:"showCalendar",value:function(t,e){for(var i=new Date(e,t).getDay(),n=32-new Date(e,t,32).getDate(),a=this.eventCountByMonth[this.currentMonthIndex],s=0,l=0;l<this.currentMonthIndex;l++)s+=this.eventCountByMonth[l];var u=this.eventsByDate.slice(s,s+a);if(this.tableBody.innerHTML="",o.setAttribute(this.tableBody,"anim",!1),this.monthAndYear.innerHTML=this.months[t]+" "+e,this.updateCalendarDataAttributes(),r.w.width<1240)this.addCalendarContent();else{for(var c=1,h=0,p=e.toFixed(),f=this.numberToTwoIntString(t+1),d=0;d<6;d++){for(var m=document.createElement("tr"),y=0;y<7;y++)if(0===d&&y<i){var v=document.createElement("td");v.innerHTML="",m.appendChild(v)}else{if(c>n)break;var g=document.createElement("td"),_="<span class='event-date'>
1".concat(c,"</span>"),b=p+f+this.numberToTwoIntString(c);if(parseInt(b)<this.currentDateInt&&g.classList.add("past-date"),h<a&&(c===this.today.getDate()&&e===this.today.getFullYear()&&t===this.today.getMonth()&&g.classList.add("today"),b===u[h][0])){var x="event-"+u[h][3];g.classList.add("has-event"),_+="<a href='#".concat(x,"'><span class='event-title'>").concat(u[h][1],"</span>").concat(u[h][2]?"<span class='event-subtitle'>".concat(u[h][2],"</span>"):"","</a>"),h++}if(h<a)for(;b===u[h][0];){var w="event-"+u[h][3];if(_+="<a href='#".concat(w,"'><span class='event-title'>").concat(u[h][1],"</span>").concat(u[h][2]?"<span class='event-subtitle'>".concat(u[h][2],"</span>"):"","</a>"),!u[++h])break}g.innerHTML=_,m.appendChild(g),c++}this.tableBody.appendChild(m)}this.addCalendarContent()}}},{key:"updateCalendarDataAttributes",value:function(){o.setAttribute(this.cont,"current-month",this.currentYear===this.activeYear&&this.currentMonth===this.activeMonth)}},{key:"rearrangeEventData",value:function(){for(var t=parseInt(this.activeDateString),e=0;e<this.eventsL;e++)for(var i=this.events[e][0],n=this.events[e][1],r=this.events[e][2],o=r.length,a=this.events[e][3],s=this.events[e][4],l=0;l<o;l++)if(!(parseInt(r[l].date.substr(0,6))<t)){var u=r[l].description.length>0?r[l].description:n,c=[r[l].date,i,u,a,s];this.eventsByDate.push(c)}this.eventsByDate.sort(function(t,e){return t[0]!==e[0]?t[0]<e[0]?-1:1:t[4]-e[4]}),this.eventsByDateL=this.eventsByDate.length}},{key:"countEventsPerMonth",value:function(){for(var t=parseInt(this.activeDateString),e=0,i=0;i<this.eventsByDateL;i++){var n=parseInt(this.eventsByDate[i][0].substr(0,6));n>t?(this.eventCountByMonth.push(e),t=n,e=1):e++}this.eventCountByMonth.push(e)}},{key:"yyyymmString",value:function(t,e){var i=e+1;return t.toFixed()+this.numberToTwoIntString(i)}},{key:"yyyymmddString",value:function(t,e,i){var n=e+1;return t.toFixed()+this.numberToTwoIntString(n)+this.numberToTwoIntString(i)}},{key:"numberToTwoIntString",value:function(t){return 1===(t=t.toFixed()).length?"0"+t:t}},{key:"monthOffset",value:function(){var t=this.activeYear-this.currentYear,e=this.activeMonth-this.currentMonth;return 12*t+e}},{key:"addCalendarContent",value:function(){var t=this;setTimeout(function(){o.setAttribute(t.tableBody,"anim",!0)},100),this.calendarContent.innerHTML="<h4 data-anim='true'>Featured Events</h4><div class='event-calendar-content__loader'></div>",a.default.ajax({type:"POST",url:this.ajaxPath,data:{action:"fetchCalendarEvents",month:this.activeMonth,year:this.activeYear},dataType:"html",success:function(e){t.calendarContent.innerHTML=e,t.handleScrollReset()}})}},{key:"handleScrollReset",value:function(){(0,s.clearScroll)(),(0,s.initScroll)()}}])&&h(i.prototype,l),u&&h(i,u),e}();i.default=y},{"./../utils/auto-init/scroll":41,"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,jquery:53}],7:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=u(t("./_default-block")),r=l(t("./../utils/globals")),o=l(t("./../utils/utils")),a=u(t("jquery")),s=t("./../utils/auto-init/scroll");function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return i}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t,e,i){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,
1i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,m(e).apply(this,arguments))}var i,l,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,n.default),i=e,(l=[{key:"init",value:function(){if(d(m(e.prototype),"init",this).call(this),this.isMobile()){this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php";var t=r.doc.querySelector(".event-calendar__table");t&&(this.events=JSON.parse(o.getAttribute(t,"json"))||[],this.today=new Date,this.today.setHours(0,0,0,0),this.eventsByDate=this._buildEventsByDate(),this.weekOffset=0,this.weekList=this.cont.querySelector(".js-mobile-week-list"),this.headerEl=this.cont.querySelector(".js-mobile-header"),this.prevBtn=this.cont.querySelector(".js-mobile-btn--prev"),this.nextBtn=this.cont.querySelector(".js-mobile-btn--next"),this.mobileContent=this.cont.querySelector(".js-mobile-calendar-content"),this.weekList&&this.headerEl&&this.prevBtn&&this.nextBtn&&(this._onPrev=this._onPrev.bind(this),this._onNext=this._onNext.bind(this),this._render()))}}},{key:"initEvents",value:function(){d(m(e.prototype),"initEvents",this).call(this),this.isMobile()&&(this.prevBtn.addEventListener("click",this._onPrev),this.nextBtn.addEventListener("click",this._onNext))}},{key:"destroyEvents",value:function(){d(m(e.prototype),"destroyEvents",this).call(this),this.isMobile()&&(this.prevBtn.removeEventListener("click",this._onPrev),this.nextBtn.removeEventListener("click",this._onNext))}},{key:"_onPrev",value:function(t){t.pageX>0&&this.prevBtn.blur(),this.weekOffset<=0||(this.weekOffset--,this._render())}},{key:"_onNext",value:function(t){t.pageX>0&&this.nextBtn.blur(),this.weekOffset++,this._render()}},{key:"_render",value:function(){var t=this,e=this._getWeekDays(),i=e[0],n=e[6];this.prevBtn.disabled=this.weekOffset<=0,this.prevBtn.setAttribute("aria-disabled",this.weekOffset<=0?"true":"false"),this.headerEl.textContent=this._formatWeekRange(i,n),this.weekList.innerHTML="",e.forEach(function(e){var i=t._buildDayRow(e);t.weekList.appendChild(i)}),this._loadContent(i.getMonth(),i.getFullYear()),requestAnimationFrame(function(){o.setAttribute(t.weekList,"anim",!1),setTimeout(function(){return o.setAttribute(t.weekList,"anim",!0)},60)})}},{key:"_buildDayRow",value:function(t){var e=document.createElement("li");e.classList.add("mobile-day-row");var i=t.getFullYear()===this.today.getFullYear()&&t.getMonth()===this.today.getMonth()&&t.getDate()===this.today.getDate(),n=t<this.today;i&&e.classList.add("mobile-day-row--today"),n&&e.classList.add("mobile-day-row--past");var r=this._toYYYYMMDD(t),o=document.createElement("div");o.classList.add("mobile-day-row__header"),o.innerHTML='\n      <span class="mobile-day-row__day-name">'.concat(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()],'</span>\n      <div class="mobile-day-row__date-num"><span>').concat(t.getDate(),'</span></div>
1\n      <span class="mobile-day-row__month">').concat(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],"</span>\n    "),e.appendChild(o);var a=this.eventsByDate.filter(function(t){return t[0]===r});if(a.length>0){var s=document.createElement("ul");s.classList.add("mobile-day-row__events"),s.setAttribute("data-anim","true"),a.forEach(function(t){var e=h(t,4),i=e[1],n=e[2],r="event-"+e[3],o=document.createElement("li");o.classList.add("mobile-event"),o.innerHTML='\n          <a href="#'.concat(r,'" class="mobile-event__link">\n            <span class="mobile-event__title">').concat(i,"</span>\n            ").concat(n?'<span class="mobile-event__desc">'.concat(n,"</span>"):"","\n          </a>\n        "),s.appendChild(o)}),e.appendChild(s)}else{var l=document.createElement("p");l.classList.add("mobile-day-row__no-events"),l.textContent="No events",e.appendChild(l)}return e}},{key:"_loadContent",value:function(t,e){var i=this;this.mobileContent&&(this.mobileContent.innerHTML="<h4 data-anim='true'>Featured Events</h4><div class='event-calendar-content__loader'></div>",a.default.ajax({type:"POST",url:this.ajaxPath,data:{action:"fetchCalendarEvents",month:t,year:e},dataType:"html",success:function(t){i.mobileContent.innerHTML=t,(0,s.clearScroll)(),(0,s.initScroll)()}}))}},{key:"isMobile",value:function(){return r.w.width<1240}},{key:"_getWeekDays",value:function(){for(var t=[],e=0;e<7;e++){var i=new Date(this.today);i.setDate(this.today.getDate()+7*this.weekOffset+e),t.push(i)}return t}},{key:"_formatWeekRange",value:function(t,e){var i=["January","February","March","April","May","June","July","August","September","October","November","December"],n=t.getMonth()===e.getMonth(),r=t.getFullYear()===e.getFullYear();return n&&r?"".concat(i[t.getMonth()]," ").concat(t.getDate(),"–").concat(e.getDate(),", ").concat(e.getFullYear()):r?"".concat(i[t.getMonth()]," ").concat(t.getDate()," – ").concat(i[e.getMonth()]," ").concat(e.getDate(),", ").concat(e.getFullYear()):"".concat(i[t.getMonth()]," ").concat(t.getDate(),", ").concat(t.getFullYear()," – ").concat(i[e.getMonth()]," ").concat(e.getDate(),", ").concat(e.getFullYear())}},{key:"_toYYYYMMDD",value:function(t){return t.getFullYear().toString()+this._pad(t.getMonth()+1)+this._pad(t.getDate())}},{key:"_pad",value:function(t){return t<10?"0"+t:t.toString()}},{key:"_buildEventsByDate",value:function(){for(var t=[],e=this._toYYYYMMDD(this.today),i=0;i<this.events.length;i++)for(var n=this.events[i][0],r=this.events[i][1],o=this.events[i][2],a=this.events[i][3],s=this.events[i][4],l=0;l<o.length;l++){var u=o[l].date;if(!(u<e)){var c=o[l].description&&o[l].description.length>0?o[l].description:r;t.push([u,n,c,a,s])}}return t.sort(function(t,e){return t[0]!==e[0]?t[0]>e[0]?1:-1:t[4]-e[4]}),t}}])&&p(i.prototype,l),u&&p(i,u),e}();i.default=v},{"./../utils/auto-init/scroll":41,"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,jquery:53}],8:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=s(t("./_default-block")),r=(a(t("./../utils/globals")),a(t("./../utils/utils"))),o=s(t("jquery"));s(t("moment")),s(t("daterangepicker"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,a,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(a=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.input=this.cont.querySelector("input"),this.dateInput=null,this.minInputDate=r.getAttribute(this.input,"minDate"),this.maxInputDate=r.getAttribute(this.input,"maxDate"),this.dateDropdowns=r.getAttribute(this.input,"dateDropdowns")}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.initDateFieldBound=this.initDateField.bind(this),this.initDateFieldBound()}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this)}},{key:"initDateField",value:function(){var t,e=this;this.dateInput=(0,o.default)(this.input).daterangepicker((u(t={autoApply:!0,autoUpdateInput:!0,singleDatePicker:!0,showDropdowns:!1,minDate:!!this.minInputDate&&this.minInputDate,maxDate:!!this.maxInputDate&&this.maxInputDate},"showDropdowns",!!this.dateDropdowns),u(t,"opens","center"),u(t,"parentEl",this.cont),t)),this.dateInput.on("apply.daterangepicker",function(t,i,n){r.fireEvent(e.input,"change"),r.setAttribute(e.cont,"set",!0)})}}])&&c(i.prototype,a),s&&c(i,s),e}();i.default=m},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,daterangepicker:49,jquery:53,moment:57}],9:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=u(t("./_default-block")),r=l(t("./../utils/globals")),o=l(t("./../utils/utils")),a=u(t("jquery")),s=u(t("moment"));u(t("daterangepicker"));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e,i){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,d(e).apply(this,arguments))}var i,l,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,n.default),i=e,(l=[{key:"init",value:function(){f(d(e.prototype),"init",this).call(this),this.input=this.cont.querySelector("input"),this.dateInput=null,this.startDate=null,this.endDate=null,this.startDateFormatted=null,this.endDateFormatted=null,this.startDOM=o.getAttribute(this.cont,"start-
1dom"),this.endDOM=o.getAttribute(this.cont,"end-dom"),this.dateDOM=o.getAttribute(this.cont,"date-dom"),this.dayCountID=o.getAttribute(this.cont,"day-count-id"),this.defaultStartDate=o.getAttribute(this.cont,"default-start-date"),this.defaultEndDate=o.getAttribute(this.cont,"default-end-date"),this.startDOM&&(this.startReference=r.doc.querySelector(this.startDOM)),this.endDOM&&(this.endReference=r.doc.querySelector(this.endDOM)),this.dateDOM&&(this.dateReference=r.doc.querySelector(this.dateDOM)),this.dayCountID&&(this.dayCountInput=r.doc.getElementById(this.dayCountID)),this.domVisible=!1,this.minInputeDate=o.getAttribute(this.input,"minDate")}},{key:"initEvents",value:function(){f(d(e.prototype),"initEvents",this).call(this),this.initDateFieldBound=this.initDateField.bind(this),this.updateDOMBound=this.updateDOM.bind(this),this.clearDOMBound=this.clearDOM.bind(this),this.setDayCountBound=this.setDayCount.bind(this),this.initDateFieldBound()}},{key:"destroyEvents",value:function(){f(d(e.prototype),"destroyEvents",this).call(this)}},{key:"initDateField",value:function(){var t=this;this.dateInput=(0,a.default)(this.input).daterangepicker({autoUpdateInput:!1,autoApply:!0,singleDatePicker:!1,showDropdowns:!1,minDate:this.minInputeDate,opens:"center",parentEl:this.cont,startDate:this.defaultStartDate,endDate:this.defaultEndDate}),this.input.value=this.defaultStartDate+"|"+this.defaultEndDate,o.fireEvent(this.input,"focus"),this.dateInput.on("apply.daterangepicker",function(e,i){if(i.startDate.format("MM/DD/YYYY")===i.endDate.format("MM/DD/YYYY"))return t.clearDOMBound(),t.startDate=null,t.endDate=null,t.input.value=null,void t.setDayCountBound(0);t.startDate=i.startDate.format("MM/DD/YYYY"),t.endDate=i.endDate.format("MM/DD/YYYY"),t.startDateFormatted=i.startDate.format("Do MMM"),t.endDateFormatted=i.endDate.format("Do MMM"),t.input.value=t.startDate+"|"+t.endDate,t.updateDOMBound();var n=(0,s.default)(i.startDate),r=(0,s.default)(i.endDate).diff(n,"days");t.setDayCountBound(r),o.fireEvent(t.input,"change")}),this.dateInput.on("cancel.daterangepicker",function(e,i){t.setDayCountBound(0),t.input.value=null})}},{key:"updateDOM",value:function(){this.startReference&&(this.startReference.innerHTML=this.startDateFormatted),this.endReference&&(this.endReference.innerHTML=this.endDateFormatted),this.domVisible||this.dateReference&&(this.domVisible=!0,o.setAttribute(this.dateReference,"visible",!0))}},{key:"clearDOM",value:function(){this.domVisible&&this.dateReference&&(this.domVisible=!1,o.setAttribute(this.dateReference,"visible",!1)),this.startReference&&(this.startReference.innerHTML=""),this.endReference&&(this.endReference.innerHTML="")}},{key:"setDayCount",value:function(t){this.dayCountInput.value=t}},{key:"showValidation",value:function(){}}])&&h(i.prototype,l),u&&h(i,u),e}();i.default=y},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,daterangepicker:49,jquery:53,moment:57}],10:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=s(t("./../utils/globals")),a=s(t("./../utils/utils"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,
1i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,n,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.enquiryFormInner=this.cont.querySelector(".enquiry-form__inner"),this.enquiryFormMessage=this.cont.querySelector(".enquiry-form__sent"),this.hideFormBound=this.hideForm.bind(this),this.switchActiveBound=this.switchActive.bind(this)}},{key:"initEvents",value:function(){h(p(e.prototype),"initEvents",this).call(this),this.cont.addEventListener("submit",this.hideFormBound)}},{key:"destroyEvents",value:function(){h(p(e.prototype),"destroyEvents",this).call(this)}},{key:"hideForm",value:function(){a.setAttribute(this.cont,"state","sent");var t=this.enquiryFormMessage.offsetHeight;TweenLite.to(o.runner,2,{scrollTo:{y:0},ease:Power3.easeInOut}),TweenLite.set(this.cont,{minHeight:t+"px"}),TweenLite.to(this.enquiryFormInner,2,{height:0,delay:.3,onComplete:this.switchActiveBound})}},{key:"switchActive",value:function(){a.fireEvent(window,"resize"),a.setAttribute(this.cont,"active-block","message")}}])&&u(i.prototype,n),s&&u(i,s),e}();i.default=d},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}],11:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=(a(t("./../utils/globals")),a(t("./../utils/utils")));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,i){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,h(e).apply(this,arguments))}var i,n,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){c(h(e.prototype),"init",this).call(this),this.input=this.cont.querySelector(".field__input"),this.label=this.cont.querySelector(".file__label")}},{key:"initEvents",value:function(){c(h(e.prototype),"initEvents",this).call(this),this.setFocusBound=this.setFocus.bind(this),this.checkFieldBound=this.checkField.bind(this),this.input.addEventListener("focus",this.setFocusBound),this.input.addEventListener("focusout",this.checkFieldBound)}},{key:"destroyEvents",value:function(){c(h(e.prototype),"destroyEvents",this).call(this),this.input.removeEventListener("focus",this.setFocusBound),this.input.removeEventListener("focusout",this.checkFieldBound)}},{key:"setFocus",value:function(){o.setAttribute(this.cont,"active",!0)}},{key:"checkField",value:function(){this.input.value?o.setAttribute(this.cont,"active",!0):o.setAttribute(this.cont,"active",!1)}}])&&l(i.prototype,n),a&&l(i,a),e}();i.default=f},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}
1],12:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=(a(t("./../utils/globals")),a(t("./../utils/utils")));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,i){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,h(e).apply(this,arguments))}var i,n,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){c(h(e.prototype),"init",this).call(this),this.input=this.cont.querySelector('input[type="file"]'),this.label=this.cont.querySelector(".file__label"),this.remove=this.cont.querySelector(".file__remove"),this.fileName=null,this.emptyInputString="Choose File"}},{key:"initEvents",value:function(){c(h(e.prototype),"initEvents",this).call(this),this.checkForSelectedFileBound=this.checkForSelectedFile.bind(this),this.noFileSelectedBound=this.noFileSelected.bind(this),this.fileSelectedBound=this.fileSelected.bind(this),this.removeFileBound=this.removeFile.bind(this),this.input.addEventListener("change",this.checkForSelectedFileBound),this.remove.addEventListener("click",this.removeFileBound)}},{key:"destroyEvents",value:function(){c(h(e.prototype),"destroyEvents",this).call(this),this.input.removeEventListener("change",this.checkForSelectedFileBound),this.remove.removeEventListener("click",this.removeFileBound)}},{key:"checkForSelectedFile",value:function(){this.input.files[0]?(this.fileName=this.input.files[0].name,this.fileSelectedBound()):this.noFileSelectedBound()}},{key:"noFileSelected",value:function(){this.label.innerHTML=this.emptyInputString,o.setAttribute(this.label.parentNode,"value",!1)}},{key:"fileSelected",value:function(){this.label.innerHTML=this.fileName,o.setAttribute(this.label.parentNode,"value",!0)}},{key:"removeFile",value:function(t){t.preventDefault(),this.input.value=null,this.noFileSelectedBound()}}])&&l(i.prototype,n),a&&l(i,a),e}();i.default=f},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}],13:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=s(t("./../utils/globals")),o=s(t("./../utils/utils")),a=l(t("jquery"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,s,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(s=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.enquiryFormHeroParagraphs=document.querySelectorAll(".hero__text-wrapper p"),this.enquiryFormInner=this.cont.querySelector(".enquiry-form__inner"),this.enquiryFormMessage=this.cont.querySelector(".enquiry-form__sent"),this.hideFormBound=this.hideForm.bind(this),this.switchActiveBound=this.switchActive.bind(this),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php"}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.formSubmitBound=this.formSubmit.bind(this),this.cont.addEventListener("submit",this.formSubmitBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this)}},{key:"formSubmit",value:function(t){var e=this;t.preventDefault(),o.setAttribute(this.cont,"state","processing");var i=new FormData(this.cont);i.append("action","contactEmail"),a.default.ajax({type:"POST",url:this.ajaxPath,data:i,processData:!1,contentType:!1,success:function(t){console.log(t),o.setAttribute(e.cont,"state","sent"),e.hideFormBound()},dataType:"json"})}},{key:"hideForm",value:function(){var t=this.enquiryFormMessage.offsetHeight;this.enquiryFormHeroParagraphs&&(this.enquiryFormHeroParagraphs.forEach(function(t){t.style.overflow="hidden"}),TweenLite.to(this.enquiryFormHeroParagraphs,2,{height:0,delay:.3})),TweenLite.to(r.runner,2,{scrollTo:{y:0},ease:Power3.easeInOut}),TweenLite.set(this.cont,{minHeight:t+"px"}),TweenLite.to(this.enquiryFormInner,2,{height:0,delay:.3,onComplete:this.switchActiveBound})}},{key:"switchActive",value:function(){o.fireEvent(window,"resize"),o.setAttribute(this.cont,"active-block","message")}}])&&c(i.prototype,s),l&&c(i,l),e}();i.default=m},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,jquery:53}],14:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=s(t("./../utils/globals")),a=s(t("./../utils/utils"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}
1function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,n,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.animating=!1,this.open=!1,this.reservationTriggers=document.querySelectorAll('.site-header__reservations-link-disabled, [href="https://www.thescottresort.com/make-a-reservation/disabled"]'),this.menuTriggers=document.querySelectorAll(".site-header__menu-btn"),this.menuFocusInTrigger=document.querySelector(".menu-focus-trigger-in"),this.menuFocusOutTrigger=document.querySelector(".menu-focus-trigger-out"),this.menuClickTriggerSkip=document.querySelector(".menu-click-trigger-skip"),this.availabilityModal=document.querySelector(".availability-modal"),this.fixedHeader=document.querySelector(".fixed-header")}},{key:"initEvents",value:function(){h(p(e.prototype),"initEvents",this).call(this),this.preventFocus=this.preventFocus.bind(this),this.openReservation=this.openReservation.bind(this),this.closeReservation=this.closeReservation.bind(this),this.openNav=this.openNav.bind(this),this.closeNav=this.closeNav.bind(this),this.skipNav=this.closeNav.bind(this),this.animationFinished=this.animationFinished.bind(this),this.resetAttributes=this.resetAttributes.bind(this),this.resetCountdown=null,this.fixedHeaderInit=this.fixedHeaderInit.bind(this),setTimeout(this.fixedHeaderInit,750);for(var t=0;t<this.reservationTriggers.length;t++)this.reservationTriggers[t].addEventListener("click",this.openReservation),this.reservationTriggers[t].addEventListener("mousedown",this.preventFocus);for(t=0;t<this.menuTriggers.length;t++)this.menuTriggers[t].addEventListener("click",this.openNav),this.menuTriggers[t].addEventListener("mousedown",this.preventFocus);this.menuFocusInTrigger.addEventListener("focus",this.openNav),this.menuFocusOutTrigger.addEventListener("focus",this.closeNav),this.menuClickTriggerSkip.addEventListener("click",this.skipNav)}},{key:"destroyEvents",value:function(){h(p(e.prototype),"destroyEvents",this).call(this);for(var t=0;t<this.reservationTriggers.length;t++)this.reservationTriggers[t].removeEventListener("click",this.openReservation);for(t=0;t<this.menuTriggers.length;t++)this.menuTriggers[t].removeEventListener("click",this.openReservation),this.menuTriggers[t].removeEventListener("click",this.closeReservation),this.menuTriggers[t].removeEventListener("keyup",this.closeReservation),this.menuTriggers[t].removeEventListener("click",this.openNav),this.menuTriggers[t].removeEventListener("click",this.closeNav);this.menuFocusInTrigger.removeEventListener("focus",this.openNav),this.menuFocusOutTrigger.removeEventListener("focus",this.closeNav),this.menuClickTriggerSkip.removeEventListener("click",this.skipNav)}},{key:"preventFocus",value:function(t){t.preventDefault()}},{key:"fixedHeaderInit",value:function(){a.setAttribute(this.fixedHeader,"init",!0)}},{key:"openReservation",value:function(t){var e=this;if(t.preventDefault(),this.animating)return!1;this.animating=!0;for(var i=0;i<this.menuTriggers.length;i++)this.menuTriggers[i].removeEventListener("click",this.openNav),this.menuTriggers[i].removeEventListener("click",this.closeNav),this.menuTriggers[i].addEventListener("click",this.closeReservation),this.menuTriggers[i].addEventListener("keyup",this.closeReservation);a.setAttribute(o.body,"menu",!1),a.setAttribute(o.body,"reservation",!0),a.setAttribute(this.availabilityModal,"animating",!0),setTimeout(function(){a.setAttribute(e.availabilityModal,"animating",!1)},500);var n=o.w.width<1240?700:1e3;setTimeout(this.animationFinished,n)}},{key:"closeReservation",value:function(t){if(t.preventDefault(),this.animating)return!1;this.animating=!0,clearTimeout(this.resetCountdown);for(var e=0;e<this.menuTriggers.length;e++)this.menuTriggers[e].removeEventListener("click",this.closeReservation),this.menuTriggers[e].removeEventListener("keyup",this.closeReservation),this.menuTriggers[e].addEventListener("click",this.openNav);a.setAttribute(o.body,"reservation",!1),a.setAttribute(o.body,"reservation-closed",!0),this.resetCountdown=setTimeout(this.resetAttributes,700);var i=o.w.width<1240?500:700;setTimeout(this.animationFinished,i)}},{key:"openNav",value:function(t){if(t.preventDefault(),this.animating)return!1;this.animating=!0;for(var e=0;e<this.menuTriggers.length;e++)this.menuTriggers[e].removeEventListener("click",this.openNav),this.menuTriggers[e].addEventListener("click",this.closeNav);a.setAttribute(o.body,"menu",!0);var i=o.w.width<1240?500:1300;setTimeout(this.animationFinished,i)}},{key:"closeNav",value:function(t){if(t.preventDefault(),this.animating)return!1;this.animating=!0,clearTimeout(this.resetCountdown);for(var e=0;e<this.menuTriggers.length;e++)this.menuTriggers[e].addEventListener("click",this.openNav),this.menuTriggers[e].removeEventListener("click",this.closeNav);a.setAttribute(o.body,"menu",!1),a.setAttribute(o.body,"menu-closed",!0),this.resetCountdown=setTimeout(this.resetAttributes,900);var i=o.w.width<1240?500:900;setTimeout(this.animationFinished,i)}},{key:"skipNav",value:function(t){if(t.preventDefault(),this.animating)return!1;this.menuFocusOutTrigger.focus()}},{key:"animationFinished",value:function(){this.animating=!1}},{key:"resetAttributes",value:function(){clearTimeout(this.resetCountdown),a.setAttribute(o.body,"reservation-closed",!1),a.setAttribute(o.body,"menu-closed",!1)}}])&&u(i.prototype,n),s&&u(i,s),e}();i.default=d},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}
1],15:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=s(t("./_default-block")),r=(a(t("./../utils/globals")),a(t("./../utils/utils"))),o=s(t("@vimeo/player"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,a,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,n.default),i=e,(a=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.videoEl=document.querySelector(".home-hero__video-overlay"),this.iframe=this.videoEl.querySelector("iframe"),this.video=new o.default(this.iframe),this.headers=document.querySelectorAll(".site-header, .fixed-header"),this.headersL=this.headers.length,this.openBtn=this.cont.querySelector("a"),this.videoPreview=document.querySelector(".home-hero__imagery-inner"),this.closeBtn=this.videoEl.querySelector(".home-hero__close")}},{key:"initEvents",value:function(){h(p(e.prototype),"initEvents",this).call(this),this.openModalAndPlayVideo=this.openModalAndPlayVideo.bind(this),this.closeModalAndPauseVideo=this.closeModalAndPauseVideo.bind(this),this.openBtn.addEventListener("click",this.openModalAndPlayVideo),this.videoPreview.addEventListener("click",this.openModalAndPlayVideo),this.closeBtn.addEventListener("click",this.closeModalAndPauseVideo)}},{key:"destroyEvents",value:function(){h(p(e.prototype),"destroyEvents",this).call(this),this.openBtn.removeEventListener("click",this.openModalAndPlayVideo),this.videoPreview.removeEventListener("click",this.openModalAndPlayVideo),this.closeBtn.removeEventListener("click",this.closeModalAndPauseVideo)}},{key:"openModalAndPlayVideo",value:function(t){t.preventDefault(),r.setAttribute(this.videoEl,"open",!0),this.video.play();for(var e=0;e<this.headersL;e++)r.setAttribute(this.headers[e],"hidden",!0)}},{key:"closeModalAndPauseVideo",value:function(t){t.preventDefault(),r.setAttribute(this.videoEl,"open",!1),this.video.pause();for(var e=0;e<this.headersL;e++)r.setAttribute(this.headers[e],"hidden",!1)}}])&&u(i.prototype,a),s&&u(i,s),e}();i.default=d},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,"@vimeo/player":48}],16:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=s(t("./../utils/globals")),o=s(t("./../utils/utils")),a=(t("./../utils/auto-init/scroll"),l(t("hammerjs")));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,s,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(s=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.animating=!1,this.galleryLists=this.cont.querySelectorAll(".image-gallery__list"),this.galleryListsDesktop=this.cont.querySelectorAll(".image-gallery__list--desktop"),this.galleryListWrap=this.cont.querySelector(".image-gallery__desktop-lists"),this.galleryCounterDesktop=this.cont.querySelector(".image-gallery__counter-wrapper--desktop .image-gallery__counter--active"),this.galleryTotalDesktop=this.cont.querySelector(".image-gallery__counter-wrapper--desktop .image-gallery__counter--total"),this.galleryCaptions=this.cont.querySelectorAll(".image-gallery__caption-list"),this.gallerySwitchTriggers=this.cont.querySelectorAll(".image-gallery__switcher li"),this.buttons=this.cont.querySelector(".image-gallery__controls--desktop"),this.prevBtn=this.cont.querySelector(".image-gallery__control--desktop-prev"),this.nextBtn=this.cont.querySelector(".image-gallery__control--desktop-next"),this.currentActiveDesktopItem=0,this.currentActiveGallery=0,this.isOpen=!1,this.siteHeader=r.doc.querySelector("header"),this.switcherOptions=this.cont.querySelector(".image-gallery__switcher-options"),this.switcherBar=this.cont.querySelector(".image-gallery__switcher-bar"),this.progressBar=this.cont.querySelector(".image-gallery__switcher-bar-progress"),this.switcherFade=this.cont.querySelector(".image-gallery__switcher-options-fade"),this.lazyImages=[],this.lazyImagesTracker=[];for(var t=0;t<this.galleryLists.length;t++){var i=this.galleryLists[t].querySelectorAll(".gallerylazyload");this.lazyImages.push(i);for(var n=[],o=0;o<i.length;o++)n.push(!1);this.lazyImagesTracker.push(n)}this.hammerDesktop=new a.default(this.galleryListWrap)}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.initialSetupBound=this.initialSetup.bind(this),this.galleryChangeUpdatesBound=this.galleryChangeUpdates.bind(this),this.reenableControlsBound=this.reenableControls.bind(this),this.initialSetupBound(),this.initialLazyLoadBound=this.initialLazyLoad.bind(this),this.loadImageBound=this.loadImage.bind(this),this.initialLazyLoadBound(),this.prevDesktopItemBound=this.prevDesktopItem.bind(this),this.nextDesktopItemBound=this.nextDesktopItem.bind(this),this.keyDownEventBound=this.keyDownEvent.bind(this),r.win.addEventListener("keydown",this.keyDownEventBound),this.updateDesktopItemBound=this.updateDesktopItem.bind(this),this.updateDesktopGalleryCounterBound=this.updateDesktopGalleryCounter.bind(this),this.updateDesktopControlsBound=this.updateDesktopControls.bind(this),this.switchGalleryBoundEvents=[];for(var t=0;t<this.gallerySwitchTriggers.length;t++)this.switchGalleryBoundEvents.push(this.switchGallery.bind(this,t));for(t=0;t<this.gallerySwitchTriggers.length;t++)this.gallerySwitchTriggers[t].addEventListener("click",this.switchGalleryBoundEvents[t]);this.hammerDesktop.on("swiperight",this.prevDesktopItemBound),this.hammerDesktop.on("swipeleft",this.nextDesktopItemBound),this.prevBtn.addEventListener("click",this.prevDesktopItemBound),this.nextBtn.addEventListener("click",this.nextDesktopItemBound),this.trackScrollBound=this.trackScroll.bind(this),this.trackScrollResizeBound=this.trackScrollResize.bind(this),this.checkMaxScrollBound=this.checkMaxScroll.bind(this),this.checkMaxScrollBound(),this.switcherOptions&&this.switcherOptions.addEventListener("scroll",this.trackScrollBound),r.win.addEventListener("resize",this.trackScrollResizeBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this);for(var t=0;t<this.gallerySwitchTriggers.length;t++)this.gallerySwitchTriggers.removeEventListener("click",this.switchGalleryBoundEvents[t]);this.hammerDesktop.off("swiperight",this.prevDesktopItemBound),this.hammerDesktop.off("swipeleft",this.nextDesktopItemBound),this.prevBtn.removeEventListener("click",this.prevDesktopItemBound),this.nextBtn.removeEventListener("click",this.nextDesktopItemBound),this.switcherOptions.removeEventListener("click",this.trackScrollBound),r.win.removeEventListener("resize",this.trackScrollResizeBound)}},{key:"initialSetup",value:function(){this.desktopItemCount=this.galleryListsDesktop[this.currentActiveGallery].querySelectorAll(".image-gallery__list > ul > li").length,this.galleryTotalDesktop.innerHTML=this.desktopItemCount}},{key:"initialLazyLoad",value:function(){for(var t=0;t<this.lazyImages.length;t++)this.loadImageBound(t,0),this.loadImageBound(t,1)}},{key:"loadImage",value:function(t,e){if(!this.lazyImagesTracker[t]||this.lazyImagesTracker[t][e]||!this.lazyImages[t]||!this.lazyImages[t][e])return!1;o.addClass(this.lazyImages[t][e],"lazyload"),this.lazyImagesTracker[t][e]=!0}},{key:"galleryChangeUpdates",value:function(){this.desktopItemCount=this.galleryListsDesktop[this.currentActiveGallery].querySelectorAll(".image-gallery__list > ul > li").length,this.galleryTotalDesktop.innerHTML=this.desktopItemCount}},{key:"reenableControls",value:function(){this.animating=!1}},{key:"keyDownEvent",value:function(t){var e=t.keyCode;37===e?this.prevDesktopItemBound():39===e&&this.nextDesktopItemBound()}},{key:"prevDesktopItem",value:function(){0===this.currentActiveDesktopItem||this.animating||(this.currentActiveDesktopItem=this.currentActiveDesktopItem-1,this.updateDesktopItemBound())}},{key:"nextDesktopItem",value:function(){this.currentActiveDesktopItem===this.desktopItemCount-1||this.animating||(this.currentActiveDesktopItem=this.currentActiveDesktopItem+1,this.updateDesktopItemBound(),this.loadImageBound(this.currentActiveGallery,this.currentActiveDesktopItem+1))}},{key:"updateDesktopItem",value:function(){this.animating=!0,o.setAttribute(this.galleryListsDesktop[this.currentActiveGallery],"active-item",this.currentActiveDesktopItem+1),o.setAttribute(this.galleryCaptions[this.currentActiveGallery],"active-item",this.currentActiveDesktopItem+1),this.updateDesktopGalleryCounterBound(),this.updateDesktopControl
1sBound(),setTimeout(this.reenableControlsBound,800)}},{key:"updateDesktopGalleryCounter",value:function(){this.galleryCounterDesktop.innerHTML=this.currentActiveDesktopItem+1}},{key:"updateDesktopControls",value:function(){0===this.currentActiveDesktopItem?o.setAttribute(this.buttons,"first",!0):o.setAttribute(this.buttons,"first",!1),this.currentActiveDesktopItem===this.desktopItemCount-1?o.setAttribute(this.buttons,"last",!0):o.setAttribute(this.buttons,"last",!1)}},{key:"switchGallery",value:function(t){var e=this,i=this.currentActiveGallery;this.currentActiveDesktopItem=0,this.currentActiveGallery=t,o.setAttribute(this.cont,"active-gallery",this.currentActiveGallery+1),this.loadImageBound(this.currentActiveGallery+1,1),setTimeout(function(){o.setAttribute(e.galleryListsDesktop[i],"active-item",1)},500),this.updateDesktopItemBound(),this.galleryChangeUpdatesBound()}},{key:"trackScroll",value:function(){if(this.switcherOptions){var t=this.switcherOptions.scrollLeft/(this.switcherOptions.scrollWidth-this.switcherOptions.getBoundingClientRect().width);this.progressBar.style.transform="scaleX(".concat(Math.min(.75*Math.max(t,0)+.25,1),")")}}},{key:"trackScrollResize",value:function(){this.switcherOptions&&(this.switcherOptions.scrollWidth-this.switcherOptions.getBoundingClientRect().width<=0?(this.progressBar.style.opacity="0",this.switcherBar.style.opacity="0",this.switcherFade.style.opacity="0"):(this.progressBar.style.opacity="1",this.switcherBar.style.opacity="0.4",this.switcherFade.style.opacity="1"))}},{key:"checkMaxScroll",value:function(){this.switcherOptions&&(this.switcherOptions.scrollWidth-this.switcherOptions.getBoundingClientRect().width<=0?(this.progressBar.style.opacity="0",this.switcherBar.style.opacity="0",this.switcherFade.style.opacity="0"):(this.progressBar.style.opacity="1",this.switcherBar.style.opacity="0.4",this.switcherFade.style.opacity="1"))}}])&&c(i.prototype,s),l&&c(i,l),e}();i.default=m},{"./../utils/auto-init/scroll":41,"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,hammerjs:52}],17:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=s(t("./_default-block")),r=a(t("./../utils/globals")),o=a(t("./../utils/utils"));s(t("hammerjs"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,a,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,n.default),i=e,(a=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.triggers=this.cont.querySelectorAll(".text-carousel-cols__image-titles li"),this.triggersL=this.triggers.length,this.images=this.cont.querySelectorAll(".text-image-cols__fig-wrapper ul"),this.galleries=this.cont.querySelector(".text-instagram-cols__galleries"),this.activeIndex=0}},{key:"initEvents",value:function(){h(p(e.prototype),"initEvents",this).call(this),this.setItemEvents=[];for(var t=0;t<this.triggersL;t++)this.setItemEvents.push(this.setItem.bind(this,t));for(t=0;t<this.triggersL;t++)this.triggers[t].addEventListener("click",this.setItemEvents[t])}},{key:"destroyEvents",value:function(){h(p(e.prototype),"destroyEvents",this).call(this);for(var t=0;t<this.triggersL;t++)this.triggers[t].removeEventListener("click",this.setItemEvents[t])}},{key:"setItem",value:function(t){if(t!==this.activeIndex){this.activeIndex=t,o.setAttribute(this.cont,"active-item",this.activeIndex+1);var e=this.galleries.getBoundingClientRect().top+(r.autoInitSwitches.isSmoothActive?r.smoothScroll.vars.current:r.runner.scrollTop)-102;r.w.width<1024&&TweenLite.to(r.runner,1,{scrollTo:{y:e},ease:Power3.easeInOut})}}}])&&u(i.prototype,a),s&&u(i,s),e}();i.default=d},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,hammerjs:52}
1],18:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=s(t("./../utils/globals")),o=s(t("./../utils/utils")),a=l(t("hammerjs"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,s,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(s=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.wrapper=r.doc.querySelector(".text-instagram-cols__galleries"),this.images=this.cont.querySelectorAll(".instagram-gallery__single"),this.count=this.images.length,this.hammer=new a.default(this.cont),this.activeIndex=0}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.setHeightBound=this.setHeight.bind(this),this.onSwipeBound=this.onSwipe.bind(this),this.setHeightBound(),this.hammer.on("swipeleft",this.onSwipeBound.bind(this)),this.hammer.on("swiperight",this.onSwipeBound.bind(this))}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this),this.hammer.off("swipeleft",this.onClickBound.bind(this)),this.hammer.off("swiperight",this.onClickBound.bind(this))}},{key:"setHeight",value:function(){for(var t=0;t<this.images.length;t++)this.images[t].offsetHeight>this.wrapper.offsetHeight&&(this.wrapper.style.minHeight=this.images[t].offsetHeight+"px")}},{key:"onSwipe",value:function(t){"swipeleft"===t.type?this.activeIndex<this.count-1&&(this.activeIndex++,o.setAttribute(this.cont,"active",this.activeIndex)):this.activeIndex>0&&(this.activeIndex--,o.setAttribute(this.cont,"active",this.activeIndex))}}])&&c(i.prototype,s),l&&c(i,l),e}();i.default=m},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,hammerjs:52}],19:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a(t("./_default-block")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}(t("./../utils/utils")),o=a(t("mapbox-gl"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,i){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,
1i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,h(e).apply(this,arguments))}var i,a,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,n.default),i=e,(a=[{key:"init",value:function(){c(h(e.prototype),"init",this).call(this),this.map=null,this.mapCenter=[-111.971048,33.375458],this.mapScaled=!1,this.mapboxAccessCode="pk.eyJ1IjoiYnJhZGFybmV0dCIsImEiOiJjajRxcmp4cGYybDYwMndzZWo2NncwYmk5In0.UvuMmCava_DOEBrgfs2AJg",this.mapboxStyleURL="mapbox://styles/bradarnett/cjmw57toq0dqm2smqehnbows7",this.mapAnimating=!1,this.markers=this.cont.querySelectorAll(".map__marker-point"),this.markersData=[];for(var t=0;t<this.markers.length;t++){var i={lat:r.getAttribute(this.markers[t],"lat"),lng:r.getAttribute(this.markers[t],"lng"),icon:r.getAttribute(this.markers[t],"type")};this.markersData.push(i)}this.shuttleTrigger=this.cont.querySelector(".js-map-shuttle-distance"),this.walkingTrigger=this.cont.querySelector(".js-map-walking-distance"),this.filters=this.cont.querySelectorAll(".map__switcher .checkbox"),this.filterNames=[],this.filterStates=[];for(t=0;t<this.filters.length;t++){var n=r.getAttribute(this.filters[t],"filter"),o="true"==r.getAttribute(this.cont,n);this.filterNames.push(n),this.filterStates.push(o)}this.activePanel=void 0,this.panelWrap=this.cont.querySelectorAll(".map__panels"),this.panels=this.cont.querySelectorAll(".map__panel"),this.panelCloses=this.cont.querySelectorAll(".map__panel-close")}},{key:"initEvents",value:function(){c(h(e.prototype),"initEvents",this).call(this),this.initMapBound=this.initMap.bind(this),this.mapLoadedBound=this.mapLoaded.bind(this),this.addMarkerBound=this.addMarker.bind(this),this.addCircleBound=this.addCircle.bind(this),this.zoomToShuttleCircle=this.flyZoom.bind(this,12.5),this.zoomToWalkingCircle=this.flyZoom.bind(this,14.8),this.mapStoppedZoomBound=this.mapStoppedZoom.bind(this),this.shuttleTrigger.addEventListener("click",this.zoomToShuttleCircle),this.walkingTrigger.addEventListener("click",this.zoomToWalkingCircle),this.initMapBound(),this.toggleFilterFuncs=[];for(var t=0;t<this.filters.length;t++)this.toggleFilterFuncs.push(this.toggleFilter.bind(this,t)),this.filters[t].addEventListener("click",this.toggleFilterFuncs[t]);this.openPanelFuncs=[];for(t=0;t<this.markers.length;t++)this.openPanelFuncs.push(this.openPanel.bind(this,t));this.closePanelBound=this.closePanel.bind(this);for(t=0;t<this.panelCloses.length;t++)this.panelCloses[t].addEventListener("click",this.closePanelBound)}},{key:"destroyEvents",value:function(){c(h(e.prototype),"destroyEvents",this).call(this);for(var t=0;t<this.filters.length;t++)this.filters[t].removeEventListener("click",this.toggleFilterFuncs[t]);for(t=0;t<this.panelCloses.length;t++)this.panelCloses[t].removeEventListener("click",this.closePanelBound)}},{key:"initMap",value:function(){o.default.accessToken=this.mapboxAccessCode,this.map=new o.default.Map({container:"mapCanvas",style:this.mapboxStyleURL,center:this.mapCenter,zoom:12}),this.map.scrollZoom.disable();var t=new o.default.NavigationControl,e=new o.default.GeolocateControl({positionOptions:{enableHighAccuracy:!0},trackUserLocation:!0});this.map.addControl(t,"top-left"),this.map.addControl(e),this.map.on("load",this.mapLoadedBound),this.map.once("zoomend",this.mapStoppedZoomBound)}},{key:"mapLoaded",value:function(){var t=this;this.addMarkerBound("scott",this.mapCenter),this.markersData.forEach(function(e,i){t.addMarkerBound(e.icon,[e.lng,e.lat],i)}),this.addCircleBound("km-distance",this.mapCenter,4.82,4,"#d39364"),this.addCircleBound("walk-distance",this.mapCenter,.85,3,"#243A55")}},{key:"mapStoppedZoom",value:function(){this.mapAnimating=!1,this.map.once("zoomend",this.mapStoppedZoomBound),this.map.style.z<12.75&&!this.mapScaled?(r.setAttribute(this.cont,"scaled-down",!0),this.mapScaled=!0):this.map.style.z>12.75&&this.mapScaled&&(r.setAttribute(this.cont,"scaled-down",!1),this.mapScaled=!1)}},{key:"addMarker",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=document.createElement("div");n.className="map__marker map__marker--"+t,void 0!==i&&n.addEventListener("click",this.openPanelFuncs[i]),new o.default.Marker(n).setLngLat(e).addTo(this.map)}}
1,{key:"addCircle",value:function(t,e,i,n,r){this.map.addSource(t,this.createGeoCircle(e,i)),this.map.addLayer({id:t,type:"line",source:t,layout:{},paint:{"line-width":n,"line-color":r}})}},{key:"createGeoCircle",value:function(t,e,i){i||(i=64);for(var n,r,o,a=t[1],s=t[0],l=e,u=[],c=l/(111.32*Math.cos(a*Math.PI/180)),h=l/110.574,p=0;p<i;p++)n=p/i*(2*Math.PI),r=c*Math.cos(n),o=h*Math.sin(n),u.push([s+r,a+o]);return u.push(u[0]),{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[u]}}]}}}},{key:"flyZoom",value:function(t){return!this.mapAnimating&&(!(t+.25>this.map.style.z&&t-.25<this.map.style.z)&&(this.mapAnimating=!0,void this.map.flyTo({center:this.mapCenter,zoom:t,bearing:0,speed:1,curve:1.42})))}},{key:"toggleFilter",value:function(t){this.filterStates[t]?(this.filterStates[t]=!1,r.setAttribute(this.cont,this.filterNames[t],!1)):(this.filterStates[t]=!0,r.setAttribute(this.cont,this.filterNames[t],!0))}},{key:"openPanel",value:function(t){void 0!==this.activePanel&&r.setAttribute(this.panels[this.activePanel],"open",!1),this.activePanel=t,r.setAttribute(this.panels[this.activePanel],"open",!0)}},{key:"closePanel",value:function(){if(void 0===this.activePanel)return!1;r.setAttribute(this.panels[this.activePanel],"open",!1),this.activePanel=void 0}}])&&l(i.prototype,a),s&&l(i,s),e}();i.default=f},{"./../utils/utils":45,"./_default-block":3,"mapbox-gl":56}],20:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=(s(t("./../utils/globals")),s(t("./../utils/utils"))),o=l(t("jquery")),a=l(t("./../blocks/field-block"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,s,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(s=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.arrivalDate=null,this.departureDate=null,this.newArrivalDate=null,this.newDepartureDate=null,this.tempsHidden=!1,this.arrivalDateInput=this.cont.querySelector("#arrival-date"),this.departureDateInput=this.cont.querySelector("#departure-date"),this.roomListTitle=this.cont.querySelector(".enquiry-form__room-date-title"),this.spaceListTitle=this.cont.querySelector(".enquiry-form__space-date-title"),this.roomList=this.cont.querySelector(".js-dates__rooms-per-day"),this.spaceList=this.cont.querySelector(".js-dates__space-per-day"),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php"}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.setArrivalDateBound=this.setArrivalDate.bind(this),this.setDepartureDateBound=this.setDepartureDate.bind(this),this.injectTestBound=this.injectTest.bind(this),this.injectDatesBound=this.injectDates.bind(this),this.arrivalDateInput.addEventListener("change",this.setArrivalDateBound),this.departureDateInput.addEventListener("change",this.setDepartureDateBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this)}},{key:"setArrivalDate",value:function(){this.newArrivalDate=this.arrivalDateInput.value,this.injectTestBound()}},{key:"setDepartureDate",value:function(){this.newDepartureDate=this.departureDateInput.value,this.injectTestBound()}},{key:"injectTest",value:function(){return this.newArrivalDate||(this.newArrivalDate=this.arrivalDateInput.value),!!this.newDepartureDate&&((this.arrivalDate!==this.newArrivalDate||this.departureDate!==this.newDepartureDate)&&(this.arrivalDate=this.newArrivalDate,this.departureDate=this.newDepartureDate,this.roomList.innerHTML="",this.spaceList.innerHTML="",r.setAttribute(this.roomListTitle,"state","loading"),r.setAttribute(this.spaceListTitle,"state","loading"),void this.injectDatesBound()))}},{key:"injectDates",value:function(){var t=this;o.default.get(this.ajaxPath,{action:"includeRepeatingDateFields","date-from":this.arrivalDate,"date-to":this.departureDate,prefix:"rooms"},function(e){t.roomList.innerHTML=e,r.setAttribute(t.roomListTitle,"state","loaded");for(var i=t.roomList.querySelectorAll(".js-block"),n=0;n<i.length;n++)new a.default("field-block","temp",i[n])}),o.default.get(this.ajaxPath,{action:"includeRepeatingDateFields","date-from":this.arrivalDate,"date-to":this.departureDate,prefix:"meeting-rooms"},function(e){t.spaceList.innerHTML=e,r.setAttribute(t.spaceListTitle,"state","loaded");for(var i=t.spaceList.querySelectorAll(".js-block"),n=0;n<i.length;n++)new a.default("field-block","temp",i[n])})}}])&&c(i.prototype,s),l&&c(i,l),e}();i.default=m},{"./../blocks/field-block":11,"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,jquery:53}
1],21:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=s(t("./../utils/globals")),o=s(t("./../utils/utils")),a=l(t("jquery"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,s,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(s=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.open=!1,this.heading=this.cont.querySelector(".site-newsletter-banner__title h3"),this.closeIcon=this.cont.querySelector(".site-newsletter-banner__close"),this.inner=this.cont.querySelector(".site-newsletter-banner__inner"),this.form=this.cont.querySelector(".enquiry-form"),this.showFormBound=this.showForm.bind(this),this.hideFormBound=this.hideForm.bind(this),this.setHeightBound=this.setHeight.bind(this),this.formSubmitBound=this.formSubmit.bind(this),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php"}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.formSubmitBound=this.formSubmit.bind(this),this.heading.addEventListener("click",this.showFormBound),this.closeIcon.addEventListener("click",this.hideFormBound),this.form.addEventListener("submit",this.formSubmitBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this),this.heading.removeEventListener("click",this.showFormBound),this.closeIcon.removeEventListener("click",this.hideFormBound),this.form.removeEventListener("submit",this.formSubmitBound)}},{key:"showForm",value:function(){if(this.open)return!1;this.open=!0,o.setAttribute(this.cont,"open",!0),this.setHeightBound(),r.win.addEventListener("resize",this.setHeightBound)}},{key:"hideForm",value:function(){if(!this.open)return!1;r.win.removeEventListener("resize",this.setHeightBound),TweenLite.set(this.inner,{clearProps:"all"}),this.open=!1,o.setAttribute(this.cont,"open",!1)}},{key:"setHeight",value:function(){var t=this.form.offsetHeight;TweenLite.set(this.inner,{maxHeight:t})}},{key:"formSubmit",value:function(t){var e=this;t.preventDefault(),o.setAttribute(this.cont,"state","processing");var i=new FormData(this.form);i.append("action","signUpForm"),a.default.ajax({type:"POST",url:this.ajaxPath,data:i,processData:!1,contentType:!1,success:function(t){o.setAttribute(e.cont,"state","sent")},dataType:"json"})}}])&&c(i.prototype,s),l&&c(i,l),e}();i.default=m},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,jquery:53}
1],22:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=c(t("./_default-block")),r=u(t("./../utils/globals")),o=u(t("./../utils/utils")),a=t("./../utils/throttle"),s=c(t("hammerjs")),l=t("./../utils/auto-init/scroll");function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function c(t){return t&&t.__esModule?t:{default:t}}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t,e,i){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,m(e).apply(this,arguments))}var i,u,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,n.default),i=e,(u=[{key:"init",value:function(){d(m(e.prototype),"init",this).call(this),this.itemList=this.cont.querySelector(".listing-blocks__list"),this.items=this.cont.querySelectorAll(".listing-blocks__item"),this.itemsL=this.items.length,this.prevBtn=this.cont.querySelector(".event-calendar__nav-btn--prev"),this.nextBtn=this.cont.querySelector(".event-calendar__nav-btn--next"),this.active=1,this.currentH=0,this.animating=!1,this.prev=this.prev.bind(this),this.next=this.next.bind(this),this.reenableControls=this.reenableControls.bind(this),this.setHeights=this.setHeights.bind(this),this.setHeightsThrottled=(0,a.throttle)(this.setHeights,2e3),this.hammerEvents=new s.default(this.cont),setTimeout(this.setHeights,1e3)}},{key:"initEvents",value:function(){d(m(e.prototype),"initEvents",this).call(this),this.hammerEvents.on("swiperight",this.prev),this.hammerEvents.on("swipeleft",this.next),this.prevBtn.addEventListener("click",this.prev),this.nextBtn.addEventListener("click",this.next),r.win.addEventListener("resize",this.setHeightsThrottled)}},{key:"destroyEvents",value:function(){d(m(e.prototype),"destroyEvents",this).call(this),this.hammerEvents.off("swiperight",this.prev),this.hammerEvents.off("swipeleft",this.next),this.prevBtn.removeEventListener("click",this.prev),this.nextBtn.removeEventListener("click",this.next),r.win.removeEventListener("resize",this.setHeightsThrottled)}},{key:"setHeights",value:function(){var t=this,e=r.win.getComputedStyle(this.items[this.active-1]).getPropertyValue("margin-bottom"),i=parseInt(e),n=this.items[this.active-1].getBoundingClientRect().height,o=n<this.currentH?500:0;this.currentH=n,setTimeout(function(){t.itemList.style.maxHeight=n+i+"px",setTimeout(function(){(0,l.clearScroll)(),(0,l.initScroll)()},500)},o)}},{key:"reenableControls",value:function(){this.animating=!1}},{key:"prev",value:function(t){t.pageX>0&&this.prevBtn.blur(),this.animating||this.active-1<1||(this.active--,this.updateItem())}},{key:"next",value:function(t){t.pageX>0&&this.nextBtn.blur(),this.animating||this.active+1>this.itemsL||(this.active++,this.updateItem())}},{key:"updateItem",value:function(){this.setHeights(),this.animating=!0,o.setAttribute(this.cont,"active",this.active),o.setAttribute(this.cont,"end",this.active===this.itemsL),setTimeout(this.reenableControls,800)}}])&&p(i.prototype,u),c&&p(i,c),e}();i.default=v},{"./../utils/auto-init/scroll":41,"./../utils/globals":43,"./../utils/throttle":44,"./../utils/utils":45,"./_default-block":3,hammerjs:52}
1],23:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=s(t("./../utils/globals")),a=s(t("./../utils/utils"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,n,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.open=!1,this.trigger=this.cont.querySelector(".select__trigger"),this.optionList=this.cont.querySelector(".select__options"),this.items=this.cont.querySelectorAll(".select__options li"),this.autoCloseCount=null,this.selectClose=a.getAttribute(this.cont,"selectclose"),this.replaceTitle=a.getAttribute(this.cont,"replacetitle"),this.prefix=a.getAttribute(this.cont,"prefix"),this.selectClose="true"==this.selectClose,this.replaceTitle="true"==this.replaceTitle,this.selectInput=this.cont.querySelector("select"),this.previousSelectValue=-1,this.currentSelectValue=null,this.selectPlaceholderVisible=!0,this.titles=[],this.triggerTitle=this.trigger.querySelector("span");for(var t=0;t<this.items.length;t++)this.titles.push(this.items[t].innerHTML)}},{key:"initEvents",value:function(){if(h(p(e.prototype),"initEvents",this).call(this),this.cont.addEventListener("click",this.stopClickProp),this.toggleStateBound=this.toggleState.bind(this),this.trigger.addEventListener("click",this.toggleStateBound),this.startAutoCloseCountBound=this.startAutoCloseCount.bind(this),this.stopAutoCloseCountBound=this.stopAutoCloseCount.bind(this),this.autoCloseBound=this.autoClose.bind(this),this.selectClose)for(var t=0;t<this.items.length;t++)this.items[t].addEventListener("click",this.toggleStateBound);if(this.setNewTitleBoundEvents=[],this.replaceTitle){for(t=0;t<this.items.length;t++)this.setNewTitleBoundEvents.push(this.setNewTitle.bind(this,t));for(t=0;t<this.items.length;t++)this.items[t].addEventListener("click",this.setNewTitleBoundEvents[t])}if(this.setActiveItemBoundEvents=[],this.setChangeBound=this.setChange.bind(this),this.selectInput){this.selectInput.addEventListener("change",this.setChangeBound);for(t=0;t<this.items.length;t++)this.setActiveItemBoundEvents.push(this.setActiveItem.bind(this,t));for(t=0;t<this.items.length;t++)this.items[t].addEventListener("click",this.setActiveItemBoundEvents[t])}this.setDefaultItemBound=this.setDefaultItem.bind(this),this.selectInput&&this.setDefaultItemBound()}},{key:"destroyEvents",value:function(){if(h(p(e.prototype),"destroyEvents",this).call(this),this.cont.removeEventListener("click",this.stopClickProp),this.trigger.removeEventListener("click",this.toggleStateBound),this.trigger.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.optionList.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.trigger.removeEventListener("mouseleave",this.startAutoCloseCountBound),this.optionList.removeEventListener("mouseleave",this.startAutoCloseCountBound),this.selectClose)for(var t=0;t<this.items.length;t++)this.items[t].removeEventListener("click",this.toggleStateBound);if(this.selectInput){this.selectInput.removeEventListener("change",this.setChangeBound);for(t=0;t<this.items.length;t++)this.items[t].removeEventListener("click",this.setActiveItemBoundEvents[t])}if(this.replaceTitle)for(t=0;t<this.items.length;t++)this.items[t].removeEventListener("click",this.setNewTitleBoundEvents[t])}},{key:"stopClickProp",value:function(t){t.stopPropagation()}},{key:"toggleState",value:function(){this.open?(this.open=!1,a.setAttribute(this.cont,"open",!1),this.trigger.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.optionList.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.trigger.removeEventListener("mouseleave",this.startAutoCloseCountBound),this.optionList.removeEventListener("mouseleave",this.startAutoCloseCountBound)):(this.open=!0,a.setAttribute(this.cont,"open",!0),o.win.addEventListener("click",this.autoCloseBound),this.trigger.addEventListener("mouseleave",this.startAutoCloseCountBound),this.optionList.addEventListener("mouseleave",this.startAutoCloseCountBound))}},{key:"startAutoCloseCount",value:function(){clearTimeout(this.autoCloseCount),this.autoCloseCount=setTimeout(this.autoCloseBound,3e3),this.trigger.removeEventListener("mouseleave",this.startAutoCloseCountBound),this.optionList.removeEventListener("mouseleave",this.startAutoCloseCountBound),this.trigger.addEventListener("mouseenter",this.stopAutoCloseCountBound),this.optionList.addEventListener("mouseenter",this.stopAutoCloseCountBound)}},{key:"stopAutoCloseCount",value:function(){clearTimeout(this.autoCloseCount),this.trigger.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.optionList.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.trigger.addEventListener("mouseleave",this.startAutoCloseCountBound),this.optionList.addEventListener("mouseleave",this.startAutoCloseCountBound)}},{key:"autoClose",value:function(){clearTimeout(this.autoCloseCount),this.open=!1,a.setAttribute(this.cont,"open",!1),o.win.removeEventListener("click",this.autoCloseBound),this.trigger.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.optionList.removeEventListener("mouseenter",this.stopAutoCloseCountBound),this.trigger.removeEventListener("mouseleave",this.startAutoCloseCountBound),this.optionList.removeEventListener("mouseleave",this.startAutoCloseCountBound)}},{key:"setDefaultItem",value:function(){var t=this.selectInput.selectedIndex-1;t>=0?(this.setNewTitleBoundEvents[t](),a.setAttribute(this.items[t],"active",!0),this.previousSelectValue=t,this.selectPlaceholderVisible&&(a.setAttribute(this.cont,"placeholder",!1),this.selectPlaceholderVisible=!1)):this.triggerTitle.
1innerHTML=this.selectInput.options[this.selectInput.selectedIndex].innerHTML}},{key:"setActiveItem",value:function(t){this.selectInput.selectedIndex=t+1,this.currentSelectValue=t,this.selectPlaceholderVisible&&(a.setAttribute(this.cont,"placeholder",!1),this.selectPlaceholderVisible=!1),this.previousSelectValue>=0&&a.setAttribute(this.items[this.previousSelectValue],"active",!1),a.setAttribute(this.items[this.currentSelectValue],"active",!0),this.previousSelectValue=this.currentSelectValue,a.fireEvent(this.selectInput,"change")}},{key:"setChange",value:function(t){var e=this.selectInput.selectedIndex-1;this.previousSelectValue!==e&&(this.setNewTitleBoundEvents[e](),a.setAttribute(this.items[e],"active",!0),this.previousSelectValue=e,this.selectPlaceholderVisible&&(a.setAttribute(this.cont,"placeholder",!1),this.selectPlaceholderVisible=!1))}},{key:"setNewTitle",value:function(t){this.triggerTitle.innerHTML=(this.prefix?this.prefix:"")+this.titles[t]}}])&&u(i.prototype,n),s&&u(i,s),e}();i.default=d},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}],24:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=s(t("./../utils/globals")),o=s(t("./../utils/utils")),a=l(t("jquery"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,s,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(s=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.enquiryFormInner=this.cont.querySelector(".sign-up-form__inner"),this.enquiryFormMessage=this.cont.querySelector(".sign-up-form__sent"),this.hideFormBound=this.hideForm.bind(this),this.switchActiveBound=this.switchActive.bind(this),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php"}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.formSubmitBound=this.formSubmit.bind(this),this.cont.addEventListener("submit",this.formSubmitBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this)}},{key:"formSubmit",value:function(t){var e=this;t.preventDefault(),o.setAttribute(this.cont,"state","processing");var i=new FormData(this.cont);i.append("action","signUpForm"),a.default.ajax({type:"POST",url:this.ajaxPath,data:i,processData:!1,contentType:!1,success:function(t){o.setAttribute(e.cont,"state","sent"),e.hideFormBound()},dataType:"json"})}},{key:"hideForm",value:function(){var t=this.enquiryFormMessage.offsetHeight;TweenLite.to(r.runner,2,{scrollTo:{y:0},ease:Power3.easeInOut}),TweenLite.set(this.cont,{minHeight:t+"px"}),TweenLite.to(this.enquiryFormInner,2,{height:0,delay:.3,onComplete:this.switchActiveBound})}},{key:"switchActive",value:function(){o.fireEvent(window,"resize"),o.setAttribute(this.cont,"active-block","message")}}])&&c(i.prototype,s),l&&c(i,l),e}();i.default=m},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,jquery:53}
1],25:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=u(t("./_default-block")),r=l(t("./../utils/globals")),o=l(t("./../utils/utils")),a=u(t("hammerjs")),s=t("./../utils/debounce");function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e,i){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,d(e).apply(this,arguments))}var i,l,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,n.default),i=e,(l=[{key:"init",value:function(){f(d(e.prototype),"init",this).call(this),this.wrapper=this.cont.querySelector(".social-block__cols"),this.btnLeft=this.cont.querySelector(".social-block__control--prev"),this.btnRight=this.cont.querySelector(".social-block__control--next"),this.items=this.cont.querySelectorAll(".social-block__single"),this.length=this.items.length,this.currentActive=0,this.direction,this.delayOffset=.08,this.hammer=new a.default(this.wrapper),this.onResize()}},{key:"initEvents",value:function(){f(d(e.prototype),"initEvents",this).call(this),this.onClickBound=this.onClick.bind(this),this.btnLeft.addEventListener("click",this.onClickBound),this.btnRight.addEventListener("click",this.onClickBound),this.hammer.on("swipeleft",this.onClickBound.bind(this)),this.hammer.on("swiperight",this.onClickBound.bind(this)),this.onResizeBound=(0,s.debounce)(this.onResize.bind(this),200),r.win.addEventListener("resize",this.onResizeBound)}},{key:"destroyEvents",value:function(){f(d(e.prototype),"destroyEvents",this).call(this),this.btnLeft.removeEventListener("click",this.onClickBound),this.btnRight.removeEventListener("click",this.onClickBound),this.hammer.off("swipeleft",this.onClickBound.bind(this)),this.hammer.off("swiperight",this.onClickBound.bind(this)),r.win.removeEventListener("resize",this.onResizeBound)}},{key:"onClick",value:function(t){if("click"===t.type?this.direction=t.currentTarget.getAttribute("data-dir"):"swipeleft"===t.type?this.direction="next":this.direction="prev","prev"===this.direction){if(0==this.currentActive)return;this.currentActive<0&&this.currentActive++}else{if(this.currentActive==1-this.activeItems)return;this.currentActive<=0&&this.currentActive--}Math.abs(this.currentActive)>0?this.btnLeft.setAttribute("data-disabled",!1):0==Math.abs(this.currentActive)&&this.btnLeft.setAttribute("data-disabled",!0),Math.abs(this.currentActive)==this.activeItems-1?this.btnRight.setAttribute("data-disabled",!0):Math.abs(this.currentActive)<this.activeItems&&this.btnRight.setAttribute("data-disabled",!1),this.applyDelays()}},{key:"applyDelays",value:function(){"prev"==this.direction?o.setAttribute(this.cont,"direction","prev"):o.setAttribute(this.cont,"direction","next"),this.wrapper.setAttribute("data-active",Math.abs(this.currentActive))}},{key:"onResize",value:function(){r.w.width>=1240?this.activeItems=this.length-1:this.activeItems=this.length}}])&&h(i.prototype,l),u&&h(i,u),e}();i.default=y},{"./../utils/debounce":42,"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,hammerjs:52}
1],26:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=t("gsap"),o=l(t("jquery")),a=l(t("./../blocks/date-block")),s=l(t("./../blocks/field-block"));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,l,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(l=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.count=1,this.guestWrapper=this.cont.querySelector(".js-spa-reservation-date-times"),this.guestWrapperParent=this.guestWrapper.parentNode,this.addBtn=this.cont.querySelector(".js-spa-reservation-date-add"),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php"}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.injectDateBound=this.injectDate.bind(this),this.removeDateBound=this.removeDate.bind(this),this.addBtn.addEventListener("click",this.injectDateBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this)}},{key:"removeDate",value:function(t){var e=this;t.preventDefault();var i=t.target.parentNode.parentNode;i&&r.TweenLite.to(i,.5,{opacity:0,ease:Power3.easeInOut,onComplete:function(){return e.resetSpace(i)}})}},{key:"resetSpace",value:function(t){t.style.minHeight=t.offsetHeight+"px",t.innerHTML="",r.TweenLite.to(t,.5,{minHeight:0,ease:Power3.easeInOut})}},{key:"injectDate",value:function(t){var e=this;t.preventDefault(),this.count++,console.log(this.count),o.default.get(this.ajaxPath,{action:"includeSpaDateField",id:this.count},function(t){var i=document.createElement("div");i.classList="cols cols--form",i.style="z-index: ".concat(100-e.count),i.innerHTML=t,e.guestWrapperParent.insertBefore(i,e.guestWrapper);for(var n=i.querySelectorAll(".js-block"),r=i.querySelector(".js-remove"),o=0;o<n.length;o++){"date-block"===n[o].getAttribute("data-block")?new a.default("field-block","temp",n[o]):new s.default("field-block","temp",n[o])}r.addEventListener("click",e.removeDateBound)})}}])&&c(i.prototype,l),u&&c(i,u),e}();i.default=m},{"./../blocks/date-block":8,"./../blocks/field-block":11,"./_default-block":3,gsap:50,jquery:53}],27:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=l(t("./_default-block")),r=t("gsap"),o=l(t("jquery")),a=l(t("./../blocks/date-block")),s=l(t("./../blocks/field-block"));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
1function p(t,e,i){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,f(e).apply(this,arguments))}var i,l,u;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,n.default),i=e,(l=[{key:"init",value:function(){p(f(e.prototype),"init",this).call(this),this.count=1,this.guestWrapper=this.cont.querySelector(".js-spa-reservation-guests"),this.guestWrapperParent=this.guestWrapper.parentNode,this.addBtn=this.cont.querySelector(".js-spa-reservation-guest-add"),this.ajaxPath=document.location.protocol+"//"+document.location.hostname+"/wp-admin/admin-ajax.php"}},{key:"initEvents",value:function(){p(f(e.prototype),"initEvents",this).call(this),this.injectGuestBound=this.injectGuest.bind(this),this.removeGuestBound=this.removeGuest.bind(this),this.addBtn.addEventListener("click",this.injectGuestBound)}},{key:"destroyEvents",value:function(){p(f(e.prototype),"destroyEvents",this).call(this)}},{key:"removeGuest",value:function(t){var e=this;t.preventDefault();var i=t.target.parentNode.parentNode;i&&r.TweenLite.to(i,.5,{opacity:0,ease:Power3.easeInOut,onComplete:function(){return e.resetSpace(i)}})}},{key:"resetSpace",value:function(t){t.style.minHeight=t.offsetHeight+"px",t.innerHTML="",r.TweenLite.to(t,.5,{minHeight:0,ease:Power3.easeInOut})}},{key:"injectGuest",value:function(t){var e=this;t.preventDefault(),this.count++,o.default.get(this.ajaxPath,{action:"includeSpaGuestField",id:this.count},function(t){var i=document.createElement("div");i.classList="cols cols--form",i.style="z-index: ".concat(100-e.count),i.innerHTML=t,e.guestWrapperParent.insertBefore(i,e.guestWrapper);for(var n=i.querySelectorAll(".js-block"),r=i.querySelector(".js-remove"),o=0;o<n.length;o++){"date-block"===n[o].getAttribute("data-block")?new a.default("field-block","temp",n[o]):new s.default("field-block","temp",n[o])}r.addEventListener("click",e.removeGuestBound)})}}])&&c(i.prototype,l),u&&c(i,u),e}();i.default=m},{"./../blocks/date-block":8,"./../blocks/field-block":11,"./_default-block":3,gsap:50,jquery:53}],28:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=a(t("./_default-block")),r=(o(t("./../utils/globals")),o(t("./../utils/utils")));a(t("hammerjs"));function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,i){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}
1function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,h(e).apply(this,arguments))}var i,o,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,n.default),i=e,(o=[{key:"init",value:function(){c(h(e.prototype),"init",this).call(this),this.triggers=this.cont.querySelectorAll(".text-carousel-cols__image-titles li"),this.images=this.cont.querySelectorAll(".text-carousel-cols__images figure"),this.activeIndex=null,this.animating=!1}},{key:"initEvents",value:function(){c(h(e.prototype),"initEvents",this).call(this),this.disableEventsBound=this.disableEvents.bind(this),this.enableEventsBound=this.enableEvents.bind(this),this.setItemEvents=[];for(var t=0;t<this.triggers.length;t++)this.setItemEvents.push(this.setItem.bind(this,t));for(t=0;t<this.triggers.length;t++)this.triggers[t].addEventListener("click",this.setItemEvents[t])}},{key:"destroyEvents",value:function(){c(h(e.prototype),"destroyEvents",this).call(this);for(var t=0;t<this.triggers.length;t++)this.triggers[t].removeEventListener("click",this.setItemEvents[t])}},{key:"setItem",value:function(t){this.animating||t===this.activeIndex||(this.activeIndex=t,r.setAttribute(this.cont,"active-item",this.activeIndex+1),this.triggers.forEach(function(t){t.classList.remove("active-item")}),this.triggers[t].classList.add("active-item"),this.disableEventsBound(),setTimeout(this.enableEventsBound,800))}},{key:"disableEvents",value:function(){this.animating=!0}},{key:"enableEvents",value:function(){this.animating=!1}}])&&l(i.prototype,o),a&&l(i,a),e}();i.default=f},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,hammerjs:52}],29:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-block"))&&n.__esModule?n:{default:n},o=s(t("./../utils/globals")),a=(s(t("./../utils/utils")),t("./../utils/debounce"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,n,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.fig=this.cont.querySelector(".js-fig-wrapper"),this.text=this.cont.querySelector(".js-text-wrapper"),this.onResize()}},{key:"initEvents",value:function(){h(p(e.prototype),"initEvents",this).call(this),this.onResizeBound=(0,a.debounce)(this.onResize.bind(this),300),o.win.addEventListener("resize",this.onResizeBound)}},{key:"destroyEvents",value:function(){h(p(e.prototype),"destroyEvents",this).call(this),o.win.removeEventListener("resize",this.onResizeBound)}},{key:"onResize",value:function(){o.w.width>=1024&&this.text.getBoundingClientRect().height>this.fig.getBoundingClientRect().height&&this.cont.setAttribute("data-sticky",!0)}}])&&u(i.prototype,n),s&&u(i,s),e}();i.default=d},{"./../utils/debounce":42,"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3}
1],30:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=s(t("./_default-block")),r=(a(t("./../utils/globals")),a(t("./../utils/utils"))),o=s(t("@vimeo/player"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,p(e).apply(this,arguments))}var i,a,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,n.default),i=e,(a=[{key:"init",value:function(){h(p(e.prototype),"init",this).call(this),this.iframe=this.cont.querySelector("iframe"),this.video=new o.default(this.iframe)}},{key:"initEvents",value:function(){var t=this;h(p(e.prototype),"initEvents",this).call(this),this.onReadyBound=this.onReady.bind(this),this.video.ready().then(function(){setTimeout(t.onReadyBound,2e3)})}},{key:"destroyEvents",value:function(){h(p(e.prototype),"destroyEvents",this).call(this)}},{key:"onReady",value:function(){r.setAttribute(this.cont,"ready",!0)}}])&&u(i.prototype,a),s&&u(i,s),e}();i.default=d},{"./../utils/globals":43,"./../utils/utils":45,"./_default-block":3,"@vimeo/player":48}],31:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=M(t("./../pages/_default-page")),r=M(t("./../pages/home-page")),o=M(t("./../blocks/_default-block")),a=M(t("./../blocks/button-block")),s=M(t("./../blocks/accordion-block")),l=M(t("./../blocks/calendar-block")),u=M(t("./../blocks/calendar-mobile-block")),c=M(t("./../blocks/image-gallery-block")),h=M(t("./../blocks/recurring-events-block")),p=M(t("./../blocks/map-block")),f=M(t("./../blocks/field-block")),d=M(t("./../blocks/form-block")),m=M(t("./../blocks/denizen-form-block")),y=M(t("./../blocks/select-block")),v=M(t("./../blocks/date-block")),g=M(t("./../blocks/date-range-block")),_=M(t("./../blocks/file-block")),b=M(t("./../blocks/text-image-cols-block")),x=M(t("./../blocks/newsletter-block")),w=M(t("./../blocks/text-carousel-cols-block")),T=M(t("./../blocks/instagram-gallery-block")),k=M(t("./../blocks/instagram-mobile-gallery")),S=M(t("./../blocks/social-block")),E=M(t("./../blocks/meetings-enquiry-block")),P=M(t("./../blocks/spa-enquiry-block")),A=M(t("./../blocks/spa-guest-block")),C=M(t("./../blocks/vimeo-block")),D=M(t("./../blocks/home-hero-video-block")),O=M(t("./../blocks/sign-up-form-block"));function M(t){return t&&t.__esModule?t:{default:t}}function I(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var z=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,M;return e=t,(i=[{key:"getPageInstance",value:function(t,e){switch(e){case"home":return new r.default(t,e);default:return new n.default(t,e)}}}
1,{key:"getBlockInstance",value:function(t,e,i){switch(t){case"instagram-gallery-block":return new T.default(t,e,i);case"instagram-mobile-gallery":return new k.default(t,e,i);case"social-block":return new S.default(t,e,i);case"button-block":return new a.default(t,e,i);case"map-block":return new p.default(t,e,i);case"text-image-cols-block":return new b.default(t,e,i);case"newsletter-block":return new x.default(t,e,i);case"text-carousel-cols-block":return new w.default(t,e,i);case"image-gallery-block":return new c.default(t,e,i);case"accordion-block":return new s.default(t,e,i);case"field-block":return new f.default(t,e,i);case"form-block":return new d.default(t,e,i);case"denizen-form-block":return new m.default(t,e,i);case"select-block":return new y.default(t,e,i);case"date-block":return new v.default(t,e,i);case"date-range-block":return new g.default(t,e,i);case"file-block":return new _.default(t,e,i);case"meetings-enquiry-block":return new E.default(t,e,i);case"spa-enquiry-block":return new P.default(t,e,i);case"spa-enquiry-guest-block":return new A.default(t,e,i);case"vimeo-block":return new C.default(t,e,i);case"home-hero-video-block":return new D.default(t,e,i);case"sign-up-form-block":return new O.default(t,e,i);case"calendar-block":return new l.default(t,e,i);case"calendar-mobile-block":return new u.default(t,e,i);default:return new o.default(t,e,i);case"recurring-events-block":return new h.default(t,e,i)}}}])&&I(e.prototype,i),M&&I(e,M),t}();i.default=z},{"./../blocks/_default-block":3,"./../blocks/accordion-block":4,"./../blocks/button-block":5,"./../blocks/calendar-block":6,"./../blocks/calendar-mobile-block":7,"./../blocks/date-block":8,"./../blocks/date-range-block":9,"./../blocks/denizen-form-block":10,"./../blocks/field-block":11,"./../blocks/file-block":12,"./../blocks/form-block":13,"./../blocks/home-hero-video-block":15,"./../blocks/image-gallery-block":16,"./../blocks/instagram-gallery-block":17,"./../blocks/instagram-mobile-gallery":18,"./../blocks/map-block":19,"./../blocks/meetings-enquiry-block":20,"./../blocks/newsletter-block":21,"./../blocks/recurring-events-block":22,"./../blocks/select-block":23,"./../blocks/sign-up-form-block":24,"./../blocks/social-block":25,"./../blocks/spa-enquiry-block":26,"./../blocks/spa-guest-block":27,"./../blocks/text-carousel-cols-block":28,"./../blocks/text-image-cols-block":29,"./../blocks/vimeo-block":30,"./../pages/_default-page":33,"./../pages/home-page":34}],32:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.buildPage=h,i.Header=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}(t("./utils/globals")),r=s(t("./blocks/header-block")),o=(t("./utils/auto-init/index"),s(t("./utils/auto-init/autoInitSwitch"))),a=s(t("./factories/class-factory"));function s(t){return t&&t.__esModule?t:{default:t}}var l=n.doc.getElementsByClassName("js-header")[0],u=new r.default("header-block","all",l);i.Header=u,new o.default(n.autoInitSwitches).init();var c=new a.default;function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===t&&(t=document.getElementsByClassName("js-ajax-container")[0]);var e=t.getAttribute("data-namespace");c.getPageInstance(t,e)}h()},{"./blocks/header-block":14,"./factories/class-factory":31,"./utils/auto-init/autoInitSwitch":36,"./utils/auto-init/index":39,"./utils/globals":43}],33:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=r(t("./../_abstract/abstract-page"));(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}e.default=t})(t("./../utils/globals")),r(t("picturefill"));t("lazysizes/plugins/blur-up/ls.blur-up.min");r(t("lazysizes")),r(t("objectFitPolyfill"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,i){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,
1i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,u(e).apply(this,arguments))}var i,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,n.default),i=e,(r=[{key:"init",value:function(){l(u(e.prototype),"init",this).call(this)}},{key:"destroy",value:function(){l(u(e.prototype),"destroy",this).call(this)}},{key:"initEvents",value:function(){l(u(e.prototype),"initEvents",this).call(this)}},{key:"destroyEvents",value:function(){l(u(e.prototype),"destroyEvents",this).call(this)}}])&&a(i.prototype,r),o&&a(i,o),e}();i.default=h},{"./../_abstract/abstract-page":2,"./../utils/globals":43,lazysizes:54,"lazysizes/plugins/blur-up/ls.blur-up.min":55,objectFitPolyfill:58,picturefill:59}],34:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=(n=t("./_default-page"))&&n.__esModule?n:{default:n};!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}e.default=t}(t("./../utils/globals"));function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,i){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,u(e).apply(this,arguments))}var i,n,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,r.default),i=e,(n=[{key:"init",value:function(){l(u(e.prototype),"init",this).call(this),this.initEvents()}},{key:"destroy",value:function(){l(u(e.prototype),"destroy",this).call(this)}},{key:"initEvents",value:function(){l(u(e.prototype),"initEvents",this).call(this)}},{key:"destroyEvents",value:function(){l(u(e.prototype),"destroyEvents",this).call(this)}}])&&a(i.prototype,n),o&&a(i,o),e}();i.default=h},{"./../utils/globals":43,"./_default-page":33}],35:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=r(t("./../globals"));r(t("./../utils"));function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}var e,i,r;return e=t,(i=[{key:"init",value:function(){n.doc.addEventListener("keyup",this.checkKeyEvent)}},{key:"checkKeyEvent",value:function(t){9!==t.keyCode||n.access||(console.log("turn it on"),n.access=!0,n.body.classList.add("accessibility-enhance"))}}
1])&&o(e.prototype,i),r&&o(e,r),t}();i.default=a},{"./../globals":43,"./../utils":45}],36:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,r=t("./scroll"),o=(n=t("./accessibility"))&&n.__esModule?n:{default:n};function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e}var e,i,n;return e=t,(i=[{key:"init",value:function(){new o.default,this.options.isScrollActive&&(0,r.initScroll)()}}])&&a(e.prototype,i),n&&a(e,n),t}();i.default=s},{"./accessibility":35,"./scroll":41}],37:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.backToTop=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.doc,e=t.querySelectorAll(".js-to-top"),i=function(){var t=r.runner.scrollTop/r.w.height*.5;t=t<2.5?t:2.5,o.TweenLite.to(r.runner,t,{scrollTo:{y:0},ease:Power3.easeInOut})},n=0;n<e.length;n++)e[n].style.cursor="pointer",e[n].addEventListener("click",i)};var n,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}(t("./../globals")),o=t("gsap");(n=t("./../../vendors/ScrollToPlugin"))&&n.__esModule},{"./../../vendors/ScrollToPlugin":46,"./../globals":43,gsap:50}],38:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.breakText=function(){for(var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll("[data-break]"),e=[],i=[],n=0;n<t.length;n++){e.push(t[n].innerHTML);var s=r.getAttribute(t[n],"break"),l=new a.default(t[n],{type:s});i.push(l)}window.addEventListener("resize",(0,o.debounce)(function(){for(var n=0;n<t.length;n++){t[n].innerHTML=e[n],i=[];var o=r.getAttribute(t[n],"break"),s=new a.default(t[n],{type:o});i.push(s)}},500))};s(t("./../globals"));var n,r=s(t("./../utils")),o=t("./../debounce"),a=(n=t("./../../vendors/SplitText"))&&n.__esModule?n:{default:n};function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}},{"./../../vendors/SplitText":47,"./../debounce":42,"./../globals":43,"./../utils":45}],39:[function(t,e,i){"use strict";var n=t("./backToTop"),r=t("./polyfills"),o=t("./breakText");(0,n.backToTop)(),(0,r.polyfills)(),(0,o.breakText)()},{"./backToTop":37,"./breakText":38,"./polyfills":40}],40:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.polyfills=function(){window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},window.cancelAnimFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){window.clearTimeout(t)}}},{}],41:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.clearScroll=function(){n.win.cancelAnimationFrame(n.scrollAnim)},i.initScroll=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=t.querySelectorAll("[data-anim]"),i=(t.querySelector(".page-content").childNodes[1],n.win.innerHeight/2),o=!1;return function(){var t=[],a=[],s=function(){a=[];for(var i=n.autoInitSwitches.isSmoothActive?n.smoothScroll.vars.current:n.runner.scrollTop,r=0;r<e.length;r++)a.push(i+e[r].getBoundingClientRect().top+n.w.height*t[r])};(function(){var i=n.autoInitSwitches.isSmoothActive?n.smoothScroll.vars.current:n.runner.scrollTop;i;for(var r=0;r<e.length;r++){var o=null!==e[r].getAttribute("data-anim-offset")?parseInt(e[r].getAttribute("data-anim-offset")):15,s=o/100;t.push(s),a.push(i+e[r].getBoundingClientRect().top+n.w.height*s)}})(),setTimeout(s,1e3),window.addEventListener("resize",(0,r.debounce)(s,500));for(var l=[],u=0;u<e.length;u++)l.push(0);var c,h,p=Date.now();n.scrollAnim=requestAnimationFrame(function t(){if(c=Date.now(),(h=c-p)>166.66666666666666){var r=n.autoInitSwitches.isSmoothActive?n.smoothScroll.vars.current:n.runner.scrollTop,s=r+n.w.height;r>i&&!o?(o=!0,n.body.setAttribute("data-scrolled",!0)):r<=i&&o&&(o=!1,n.body.setAttribute("data-scrolled",!1));for(var u=0;u<l.length;u++)1!==l[u]&&s>=a[u]&&(l[u]=1,e[u].setAttribute("data-anim",!0));p=c-h%166.66666666666666}n.scrollAnim=requestAnimationFrame(t)})}()},i.resetScrollElements=function(){for(var t=document.querySelectorAll("[data-anim]"),e=t.length,i=0;i<e;i++)t[i].setAttribute("data-anim",!1)},i.disableScroll=function(){window.addEventListener&&window.addEventListener("DOMMouseScroll",a,!1);window.onwheel=a,window.onmousewheel=document.onmousewheel=a,document.onkeydown=s},i.enableScroll=function(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",a,!1);window.onmousewheel=document.onmousewheel=null,window.onwheel=null,document.onkeydown=null};var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};n.get||n.set?Object.defineProperty(e,i,n):e[i]=t[i]}return e.default=t,e}(t("./../globals")),r=t("./../debounce");var o={37:1,38:1,39:1,40:1}
1;function a(t){(t=t||window.event).preventDefault&&t.preventDefault(),t.returnValue=!1}function s(t){if(o[t.keyCode])return a(t),!1}},{"./../debounce":42,"./../globals":43}],42:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.debounce=function(t){var e,i=this,n=arguments,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2?arguments[2]:void 0;return function(){var a=i,s=n,l=o&&!e;clearTimeout(e),e=setTimeout(function(){e=null,o||t.apply(a,s)},r),l&&t.apply(a,s)}}},{}],43:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.access=i.autoInitSwitches=i.smoothScroll=i.scrollAnim=i.namespace=i.w=i.runner=i.body=i.win=i.doc=void 0;var n=document;i.doc=n;var r=window;i.win=r;var o=n.body;i.body=o;var a=document.getElementsByClassName("scroll")[0];i.runner=a;var s={width:r.innerWidth,height:r.innerHeight};i.w=s;i.namespace="";i.smoothScroll=null,i.scrollAnim=null;i.autoInitSwitches={isAjaxActive:!1,isScrollActive:!0,isSmoothActive:!1};i.access=!1;r.addEventListener("resize",function(){s.width=r.innerWidth,s.height=r.innerHeight})},{}],44:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.throttle=function(t){var e,i,n,r=this,o=arguments,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,s=arguments.length>2?arguments[2]:void 0,l=null,u=0;s||(s={});var c=function(){u=!1===s.leading?0:Date.now(),l=null,n=t.apply(e,i),l||(e=i=null)};return function(){var h=Date.now();u||!1!==s.leading||(u=h);var p=a-(h-u);if(e=r,i=o,p<=0||p>a)return l&&(clearTimeout(l),l=null),u=h,n=t.apply(e,i),l?l||!1===s.trailing||(l=setTimeout(c,p)):e=i=null,n}}},{}],45:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.hasClass=function(t,e){return t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},i.addClass=function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},i.removeClass=function(t,e){if(t.classList)t.classList.remove(e);else{t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi"),"");var i=t.className.length-1;" "===t.className[i]&&(t.className=t.className.substring(0,i))}0===t.classList.length&&t.removeAttribute("class")},i.getAttribute=function(t,e){return t.getAttribute("data-"+e)},i.setAttribute=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.getAttribute("data-"+e)!=i&&t.setAttribute("data-"+e,i)},i.toggleAttribute=function(t,e){"true"===t.getAttribute("data-"+e)?t.setAttribute("data-"+e,"false"):t.setAttribute("data-"+e,"true")},i.isRetina=function(){return window.devicePixelRatio>1||!(!window.matchMedia||!window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5),          (min--moz-device-pixel-ratio: 1.5),          (-o-min-device-pixel-ratio: 3/2),          (min-resolution: 1.5dppx)").matches)},i.fireEvent=function(t,e){if("createEvent"in document){var i=document.createEvent("HTMLEvents");i.initEvent(e,!1,!0),t.dispatchEvent(i)}else{var n="on"+e;t.fireEvent(n)}}},{}],46:[function(t,e,i){(function(i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r,o=void 0!==e&&e.exports&&void 0!==i?i:window;(o._gsQueue||(o._gsQueue=[])).push(function(){var t=(o.document||{}).documentElement,e=o,i=function(i,n){var r="x"===n?"Width":"Height",o="scroll"+r,a="client"+r,s=document.body;return i===e||i===t||i===s?Math.max(t[o],s[o])-(e["inner"+r]||t[a]||s[a]):i[o]-i["offset"+r]},r=function(i,n){var r="scroll"+("x"===n?"Left":"Top");return i===e&&(null!=i.pageXOffset?r="page"+n.toUpperCase()+"Offset":i=null!=t[r]?t:document.body),function(){return i[r]}},a=function(i,n){var o,a=(o=i,"string"==typeof o&&(o=TweenLite.selector(o)),o.length&&o!==e&&o[0]&&o[0].style&&!o.nodeType&&(o=o[0]),o===e||o.nodeType&&o.style?o:null).getBoundingClientRect(),s=!n||n===e||n===document.body,l=(s?t:n).getBoundingClientRect(),u={x:a.left-l.left,y:a.top-l.top};
1return!s&&n&&(u.x+=r(n,"x")(),u.y+=r(n,"y")()),u},s=function(t,e,r){var o=n(t);return isNaN(t)?"number"===o||"string"===o&&"="===t.charAt(1)?t:"max"===t?i(e,r):Math.min(i(e,r),a(t,e)[r]):parseFloat(t)},l=o._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.0",init:function(t,i,o){return this._wdw=t===e,this._target=t,this._tween=o,"object"!==n(i)?"string"==typeof(i={y:i}).y&&"max"!==i.y&&"="!==i.y.charAt(1)&&(i.x=i.y):i.nodeType&&(i={y:i,x:i}),this.vars=i,this._autoKill=!1!==i.autoKill,this.getX=r(t,"x"),this.getY=r(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=i.x?(this._addTween(this,"x",this.x,s(i.x,t,"x")-(i.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=i.y?(this._addTween(this,"y",this.y,s(i.y,t,"y")-(i.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var n=this._wdw||!this.skipX?this.getX():this.xPrev,r=this._wdw||!this.skipY?this.getY():this.yPrev,o=r-this.yPrev,a=n-this.xPrev,s=l.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(a>s||a<-s)&&n<i(this._target,"x")&&(this.skipX=!0),!this.skipY&&(o>s||o<-s)&&r<i(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?e.scrollTo(this.skipX?n:this.x,this.skipY?r:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),u=l.prototype;l.max=i,l.getOffset=a,l.buildGetter=r,l.autoKillThreshold=7,u._kill=function(t){return t.scrollTo_x&&(this.skipX=!0),t.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,t)}}),o._gsDefine&&o._gsQueue.pop()(),r=function(){return(o.GreenSockGlobals||o).ScrollToPlugin},void 0!==e&&e.exports?(t("./../../../node_modules/gsap/src/uncompressed/TweenLite.js"),e.exports=r()):"function"==typeof define&&define.amd&&define(["TweenLite"],r)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../../../node_modules/gsap/src/uncompressed/TweenLite.js":51}],47:[function(t,e,i){(function(t){"use strict";var i,n=void 0!==e&&e.exports&&void 0!==t?t:window;!function(t){var e=t.GreenSockGlobals||t,i=function(t){var i,n=t.split("."),r=e;for(i=0;i<n.length;i++)r[n[i]]=r=r[n[i]]||{};return r}("com.greensock.utils"),n=document,r=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,a=function(t,e,i,n){var a;return(i=i||r(t,null))?a=(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()))||i.length?t:i[e]:t.currentStyle&&(a=(i=t.currentStyle)[e]),n?a:parseInt(a,10)||0},s=function(t){return!!(t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},l=function(t,e){for(var i,n=e.length;--n>-1;)if(i=e[n],t.substr(0,i.length)===i)return i.length},u=/(?:\r|\n|\t\t)/g,c=/(?:\s\s+)/g,h=function(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536},p=" style='position:relative;display:inline-block;"+(n.all&&!n.addEventListener?"*display:inline;*zoom:1;'":"'"),f=function(t,e){var i=-1!==(t=t||"").indexOf("++"),n=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+p+(t?" class='"+t+(i?n++:"")+"'>":">")}},d=i.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=s(t)?function(t){var e,i,n,r=[],o=t.length;for(e=0;e<o;e++)if(i=t[e],s(i))for(n=i.length,n=0;n<i.length;n++)r.push(i[n]);else r.push(i);return r}(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},m=function t(e,i,n){var r=e.nodeType;if(1===r||9===r||11===r)for(e=e.firstChild;e;e=e.nextSibling)t(e,i,n);else 3!==r&&4!==r||(e.nodeValue=e.nodeValue.split(i).join(n))},y=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},v=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},g=function(t,e,i){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===i;t=t.parentNode||t._parent}return!1},_=function t(e){var i,n,r=v(e.childNodes),o=r.length;for(i=0;i<o;i++)(n=r[i])._isSplit?t(n):(i&&3===n.previousSibling.nodeType?n.previousSibling.nodeValue+=3===n.nodeType?n.nodeValue:n.firstChild.nodeValue:3!==n.nodeType&&e.insertBefore(n.firstChild,n),e.removeChild(n))}
vendor: 4,265 bytes, line 1
1,b=function(t,e,i,o,s,l,u){var c,h,p,f,d,v,b,x,w,T,k,S,E=r(t),P=a(t,"paddingLeft",E),A=-999,C=a(t,"borderBottomWidth",E)+a(t,"borderTopWidth",E),D=a(t,"borderLeftWidth",E)+a(t,"borderRightWidth",E),O=a(t,"paddingTop",E)+a(t,"paddingBottom",E),M=a(t,"paddingLeft",E)+a(t,"paddingRight",E),I=.2*a(t,"fontSize"),z=a(t,"textAlign",E,!0),L=[],R=[],B=[],j=e.wordDelimiter||" ",F=e.span?"span":"div",N=e.type||e.split||"chars,words,lines",V=s&&-1!==N.indexOf("lines")?[]:null,U=-1!==N.indexOf("words"),q=-1!==N.indexOf("chars"),Y="absolute"===e.position||!0===e.absolute,H=e.linesClass,W=-1!==(H||"").indexOf("++"),G=[];for(W&&(H=H.split("++").join("")),p=(h=t.getElementsByTagName("*")).length,d=[],c=0;c<p;c++)d[c]=h[c];if(V||Y)for(c=0;c<p;c++)((v=(f=d[c]).parentNode===t)||Y||q&&!U)&&(S=f.offsetTop,V&&v&&Math.abs(S-A)>I&&("BR"!==f.nodeName||0===c)&&(b=[],V.push(b),A=S),Y&&(f._x=f.offsetLeft,f._y=S,f._w=f.offsetWidth,f._h=f.offsetHeight),V&&((f._isSplit&&v||!q&&v||U&&v||!U&&f.parentNode.parentNode===t&&!f.parentNode._isSplit)&&(b.push(f),f._x-=P,g(f,t,j)&&(f._wordEnd=!0)),"BR"===f.nodeName&&(f.nextSibling&&"BR"===f.nextSibling.nodeName||0===c)&&V.push([])));for(c=0;c<p;c++)v=(f=d[c]).parentNode===t,"BR"!==f.nodeName?(Y&&(w=f.style,U||v||(f._x+=f.parentNode._x,f._y+=f.parentNode._y),w.left=f._x+"px",w.top=f._y+"px",w.position="absolute",w.display="block",w.width=f._w+1+"px",w.height=f._h+"px"),!U&&q?f._isSplit?(f._next=f.nextSibling,f.parentNode.appendChild(f)):f.parentNode._isSplit?(f._parent=f.parentNode,!f.previousSibling&&f.firstChild&&(f.firstChild._isFirst=!0),f.nextSibling&&" "===f.nextSibling.textContent&&!f.nextSibling.nextSibling&&G.push(f.nextSibling),f._next=f.nextSibling&&f.nextSibling._isFirst?null:f.nextSibling,f.parentNode.removeChild(f),d.splice(c--,1),p--):v||(S=!f.nextSibling&&g(f.parentNode,t,j),f.parentNode._parent&&f.parentNode._parent.appendChild(f),S&&f.parentNode.appendChild(n.createTextNode(" ")),e.span&&(f.style.display="inline"),L.push(f)):f.parentNode._isSplit&&!f._isSplit&&""!==f.innerHTML?R.push(f):q&&!f._isSplit&&(e.span&&(f.style.display="inline"),L.push(f))):V||Y?(f.parentNode&&f.parentNode.removeChild(f),d.splice(c--,1),p--):U||t.appendChild(f);for(c=G.length;--c>-1;)G[c].parentNode.removeChild(G[c]);if(V){for(Y&&(T=n.createElement(F),t.appendChild(T),k=T.offsetWidth+"px",S=T.offsetParent===t?0:t.offsetLeft,t.removeChild(T)),w=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(x=" "===j&&(!Y||!U&&!q),c=0;c<V.length;c++){for(b=V[c],(T=n.createElement(F)).style.cssText="display:block;text-align:"+z+";position:"+(Y?"absolute;":"relative;"),H&&(T.className=H+(W?c+1:"")),B.push(T),p=b.length,h=0;h<p;h++)"BR"!==b[h].nodeName&&(f=b[h],T.appendChild(f),x&&f._wordEnd&&T.appendChild(n.createTextNode(" ")),Y&&(0===h&&(T.style.top=f._y+"px",T.style.left=P+S+"px"),f.style.top="0px",S&&(f.style.left=f._x-S+"px")));0===p?T.innerHTML="&nbsp;":U||q||(_(T),m(T,String.fromCharCode(160)," ")),Y&&(T.style.width=k,T.style.height=f._h+"px"),t.appendChild(T)}t.style.cssText=w}Y&&(u>t.clientHeight&&(t.style.height=u-O+"px",t.clientHeight<u&&(t.style.height=u+C+"px")),l>t.clientWidth&&(t.style.width=l-M+"px",t.clientWidth<l&&(t.style.width=l+D+"px"))),y(i,L),U&&y(o,R),y(s,B)},x=function t(e,i,r,o){var s,p,f=v(e.childNodes),d=f.length,y="absolute"===i.position||!0===i.absolute;if(3!==e.nodeType||d>1){for(i.absolute=!1,s=0;s<d;s++)(3!==(p=f[s]).nodeType||/\S+/.test(p.nodeValue))&&(y&&3!==p.nodeType&&"inline"===a(p,"display",null,!0)&&(p.style.display="inline-block",p.style.position="relative"),p._isSplit=!0,t(p,i,r,o));return i.absolute=y,void(e._isSplit=!0)}!function(t,e,i,r){var o,a,s,p,f,d,y,v,g,_,b=e.span?"span":"div",x=-1!==(e.type||e.split||"chars,words,lines").indexOf("chars"),w="absolute"===e.position||!0===e.absolute,T=e.wordDelimiter||" ",k=" "!==T?"":w?"&#173; ":" ",S=e.span?"</span>":"</div>",E=!0,P=e.specialChars?"function"==typeof e.specialChars?e.specialChars:l:null,A=n.createElement("div"),C=t.parentNode;for(C.insertBefore(A,t),A.textContent=t.nodeValue,C.removeChild(t),y=-1!==(o=function t(e){var i=e.nodeType,n="";if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=t(e)}
1else if(3===i||4===i)return e.nodeValue;return n}(t=A)).indexOf("<"),!1!==e.reduceWhiteSpace&&(o=o.replace(c," ").replace(u,"")),y&&(o=o.split("<").join("{{LT}}")),f=o.length,a=(" "===o.charAt(0)?k:"")+i(),s=0;s<f;s++)if(d=o.charAt(s),P&&(_=P(o.substr(s),e.specialChars)))d=o.substr(s,_||1),a+=x&&" "!==d?r()+d+"</"+b+">":d,s+=_-1;else if(d===T&&o.charAt(s-1)!==T&&s){for(a+=E?S:"",E=!1;o.charAt(s+1)===T;)a+=k,s++;s===f-1?a+=k:")"!==o.charAt(s+1)&&(a+=k+i(),E=!0)}else"{"===d&&"{{LT}}"===o.substr(s,6)?(a+=x?r()+"{{LT}}</"+b+">":"{{LT}}",s+=5):d.charCodeAt(0)>=55296&&d.charCodeAt(0)<=56319||o.charCodeAt(s+1)>=65024&&o.charCodeAt(s+1)<=65039?(v=h(o.substr(s,2)),g=h(o.substr(s+2,2)),p=v>=127462&&v<=127487&&g>=127462&&g<=127487||g>=127995&&g<=127999?4:2,a+=x&&" "!==d?r()+o.substr(s,p)+"</"+b+">":o.substr(s,p),s+=p-1):a+=x&&" "!==d?r()+d+"</"+b+">":d;t.outerHTML=a+(E?S:""),y&&m(C,"{{LT}}","<")}(e,i,r,o)},w=d.prototype;w.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,i,n,r=this.elements.length,o=t.span?"span":"div",a=f(t.wordsClass,o),s=f(t.charsClass,o);--r>-1;)n=this.elements[r],this._originals[r]=n.innerHTML,e=n.clientHeight,i=n.clientWidth,x(n,t,a,s),b(n,t,this.chars,this.words,this.lines,i,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},w.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},d.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},d.version="0.6.1"}(n),i=function(){return(n.GreenSockGlobals||n).SplitText},void 0!==e&&e.exports?e.exports=i():"function"==typeof define&&define.amd&&define([],i)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],48:[function(t,e,i){(function(t,n){!function(t,n){"object"==typeof i&&void 0!==e?e.exports=n():"function"==typeof define&&define.amd?define(n):((t=t||self).Vimeo=t.Vimeo||{},t.Vimeo.Player=n())}(this,function(){"use strict";function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=void 0!==t&&"[object global]"==={}.toString.call(t);function r(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function o(t){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(t)}function a(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.id,n=e.url,r=i||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=r,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(r);if(o(r))return r.replace("http:","https:");if(i)throw new TypeError("“".concat(i,"” is not a valid video id."));throw new TypeError("“".concat(r,"” is not a vimeo.com url."))}var s=void 0!==Array.prototype.indexOf,l="undefined"!=typeof window&&void 0!==window.postMessage;if(!(i||s&&l))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var u="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,i=function(t,e,i){Object.defineProperty?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:i}):t[e]=i};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id","_WeakMap"+"_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function r(t,i){if(!n(t)||!e.call(t,"_id"))throw new TypeError(i+" method called on incompatible receiver "+typeof t)}function o(){return Math.random().toString().substring(2)}return i(t.prototype,"delete",function(t){if(r(this,"delete"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)&&(delete t[this._id],!0)}),i(t.prototype,"get",function(t){if(r(this,"get"),n(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}}),i(t.prototype,"has",function(t){if(r(this,"has"),!n(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)}),i(t.prototype,"set",function(t,e){if(r(this,"set"),!n(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=e,this):(i(t,this._id,[t,e]),this)}),i(t,"_polyfill",!0),t}()}function n(t){return Object(t)===t}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:u);var c,h=(function(t){var e,i,r;r=function(){var t,e,i,r=Object.prototype.toString,o=void 0!==n?function(t){return n(t)}:setTimeout;try{Object.defineProperty({},"x",{}
vendor: 4,876 bytes, line 1
1),t=function(t,e,i,n){return Object.defineProperty(t,e,{value:i,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,i){return t[e]=i,t}}function a(t,n){i.add(t,n),e||(e=o(i.drain))}function s(t){var e,i=typeof t;return null==t||"object"!=i&&"function"!=i||(e=t.then),"function"==typeof e&&e}function l(){for(var t=0;t<this.chain.length;t++)u(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function u(t,e,i){var n,r;try{!1===e?i.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=s(n))?r.call(n,i.resolve,i.reject):i.resolve(n)}catch(t){i.reject(t)}}function c(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&a(l,e))}function h(t,e,i,n){for(var r=0;r<e.length;r++)!function(r){t.resolve(e[r]).then(function(t){i(r,t)},n)}(r)}function p(t){this.def=t,this.triggered=!1}function f(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function d(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new f(this);this.then=function(t,i){var n={success:"function"!=typeof t||t,failure:"function"==typeof i&&i};return n.promise=new this.constructor(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");n.resolve=t,n.reject=e}),e.chain.push(n),0!==e.state&&a(l,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,function(t){(function t(e){var i,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(i=s(e))?a(function(){var r=new p(n);try{i.call(e,function(){t.apply(r,arguments)},function(){c.apply(r,arguments)})}catch(t){c.call(r,t)}}):(n.msg=e,n.state=1,n.chain.length>0&&a(l,n))}catch(t){c.call(new p(n),t)}}}).call(e,t)},function(t){c.call(e,t)})}catch(t){c.call(e,t)}}i=function(){var t,i,n;function r(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,o){n=new r(e,o),i?i.next=n:t=n,i=n,n=void 0},drain:function(){var n=t;for(t=i=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var m=t({},"constructor",d,!1);return d.prototype=m,t(m,"__NPO__",0,!1),t(d,"resolve",function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this(function(e,i){if("function"!=typeof e||"function"!=typeof i)throw TypeError("Not a function");e(t)})}),t(d,"reject",function(t){return new this(function(e,i){if("function"!=typeof e||"function"!=typeof i)throw TypeError("Not a function");i(t)})}),t(d,"all",function(t){var e=this;return"[object Array]"!=r.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e(function(i,n){if("function"!=typeof i||"function"!=typeof n)throw TypeError("Not a function");var r=t.length,o=Array(r),a=0;h(e,t,function(t,e){o[t]=e,++a===r&&i(o)},n)})}),t(d,"race",function(t){var e=this;return"[object Array]"!=r.call(t)?e.reject(TypeError("Not an array")):new e(function(i,n){if("function"!=typeof i||"function"!=typeof n)throw TypeError("Not a function");h(e,t,function(t,e){i(e)},n)})}),d},(i=u)[e="Promise"]=i[e]||r(),t.exports&&(t.exports=i[e])}(c={exports:{}},c.exports),c.exports),p=new WeakMap;function f(t,e,i){var n=p.get(t.element)||{};e in n||(n[e]=[]),n[e].push(i),p.set(t.element,n)}function d(t,e){return(p.get(t.element)||{})[e]||[]}function m(t,e,i){var n=p.get(t.element)||{};if(!n[e])return!0;if(!i)return n[e]=[],p.set(t.element,n),!0;var r=n[e].indexOf(i);return-1!==r&&n[e].splice(r,1),p.set(t.element,n),n[e]&&0===n[e].length}var y=["autopause","autoplay","background","byline","color","controls","dnt","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y.reduce(function(e,i){var n=t.getAttribute("data-vimeo-".concat(i));return(n||""===n)&&(e[i]=""===n?1:n),e},e)}function g(t,e){var i=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=i,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,r){if(!o(t))throw new TypeError("“".concat(t,"” is not a vimeo.com url."));var a="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(t));for(var s in e)e.hasOwnProperty(s)&&(a+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",a,!0),l.onload=function(){if(404!==l.status)if(403!==l.status)try{var e=JSON.parse(l.responseText);
vendor: 7,510 bytes, line 1
1if(403===e.domain_status_code)return g(e,i),void r(new Error("“".concat(t,"” is not embeddable.")));n(e)}catch(t){r(t)}else r(new Error("“".concat(t,"” is not embeddable.")));else r(new Error("“".concat(t,"” was not found.")))},l.onerror=function(){var t=l.status?" (".concat(l.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},l.send()})}function b(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.warn(t),{}}return t}function x(t,e,i){if(t.element.contentWindow&&t.element.contentWindow.postMessage){var n={method:e};void 0!==i&&(n.value=i);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(n=JSON.stringify(n)),t.element.contentWindow.postMessage(n,t.origin)}}function w(t,e){var i,n=[];if((e=b(e)).event){if("error"===e.event)d(t,e.data.method).forEach(function(i){var n=new Error(e.data.message);n.name=e.data.name,i.reject(n),m(t,e.data.method,i)});n=d(t,"event:".concat(e.event)),i=e.data}else if(e.method){var r=function(t,e){var i=d(t,e);if(i.length<1)return!1;var n=i.shift();return m(t,e,n),n}(t,e.method);r&&(n.push(r),i=e.value)}n.forEach(function(e){try{if("function"==typeof e)return void e.call(t,i);e.resolve(i)}catch(t){}})}var T=new WeakMap,k=new WeakMap,S=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(t){return Boolean(t&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");var r=e.ownerDocument.defaultView;if("IFRAME"!==e.nodeName){var s=e.querySelector("iframe");s&&(e=s)}if("IFRAME"===e.nodeName&&!o(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(T.has(e))return T.get(e);this.element=e,this.origin="*";var l=new h(function(t,s){var l=function(e){if(o(e.origin)&&i.element.contentWindow===e.source){"*"===i.origin&&(i.origin=e.origin);var n=b(e.data);if(n&&"error"===n.event&&n.data&&"ready"===n.data.method){var r=new Error(n.data.message);return r.name=n.data.name,void s(r)}var a=n&&"ready"===n.event,l=n&&"ping"===n.method;if(a||l)return i.element.setAttribute("data-ready","true"),void t();w(i,n)}};if(r.addEventListener?r.addEventListener("message",l,!1):r.attachEvent&&r.attachEvent("onmessage",l),"IFRAME"!==i.element.nodeName){var u=v(e,n);_(a(u),u,e).then(function(t){var n,r,o,a=g(t,e);return i.element=a,i._originalElement=e,n=e,r=a,o=p.get(n),p.set(r,o),p.delete(n),T.set(i.element,i),t}).catch(s)}});return k.set(this,l),T.set(this.element,this),"IFRAME"===this.element.nodeName&&x(this,"ping"),this}var i,n,s;return i=t,(n=[{key:"callMethod",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new h(function(n,r){return e.ready().then(function(){f(e,t,{resolve:n,reject:r}),x(e,t,i)}).catch(r)})}},{key:"get",value:function(t){var e=this;return new h(function(i,n){return t=r(t,"get"),e.ready().then(function(){f(e,t,{resolve:i,reject:n}),x(e,t)}).catch(n)})}},{key:"set",value:function(t,e){var i=this;return new h(function(n,o){if(t=r(t,"set"),null==e)throw new TypeError("There must be a value to set.");return i.ready().then(function(){f(i,t,{resolve:n,reject:o}),x(i,t,e)}).catch(o)})}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===d(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch(function(){}),f(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");m(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch(function(t){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=k.get(this)||new h(function(t,e){e(new Error("Unknown player. Probably unloaded."))});return h.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new h(function(e){k.delete(t),T.delete(t.element),t._originalElement&&(T.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&t.element.parentNode.removeChild(t.element),e()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}}])&&e(i.prototype,n),s&&e(i,s),t}();
1return i||(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),i=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=v(t);_(a(e),e,t).then(function(e){return g(e,t)}).catch(i)}catch(t){i(t)}})}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(e){if(o(e.origin)&&e.data&&"spacechange"===e.data.event)for(var i=t.querySelectorAll("iframe"),n=0;n<i.length;n++)if(i[n].contentWindow===e.source){i[n].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}};window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent&&window.attachEvent("onmessage",e)}}()),S})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("timers").setImmediate)},{timers:61}],49:[function(t,e,i){!function(i,n){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(t,e){return e.fn||(e.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),n(t,e)});else if("object"==typeof e&&e.exports){var r="undefined"!=typeof window?window.jQuery:void 0;r||(r=t("jquery")).fn||(r.fn={});var o="undefined"!=typeof window&&void 0!==window.moment?window.moment:t("moment");e.exports=n(o,r)}else i.daterangepicker=n(i.moment,i.jQuery)}(this,function(t,e){var i=function(i,n,r){if(this.parentEl="body",this.element=e(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof n&&null!==n||(n={}),"string"==typeof(n=e.extend(this.element.data(),n)).template||n.template instanceof e||(n.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=n.parentEl&&e(n.parentEl).length?e(n.parentEl):e(this.parentEl),this.container=e(n.template).appendTo(this.parentEl),"object"==typeof n.locale&&("string"==typeof n.locale.direction&&(this.locale.direction=n.locale.direction),"string"==typeof n.locale.format&&(this.locale.format=n.locale.format),"string"==typeof n.locale.separator&&(this.locale.separator=n.locale.separator),"object"==typeof n.locale.daysOfWeek&&(this.locale.daysOfWeek=n.locale.daysOfWeek.slice()),"object"==typeof n.locale.monthNames&&(this.locale.monthNames=n.locale.monthNames.slice()),"number"==typeof n.locale.firstDay&&(this.locale.firstDay=n.locale.firstDay),"string"==typeof n.locale.applyLabel&&(this.locale.applyLabel=n.locale.applyLabel),"string"==typeof n.locale.cancelLabel&&(this.locale.cancelLabel=n.locale.cancelLabel),"string"==typeof n.locale.weekLabel&&(this.locale.weekLabel=n.locale.weekLabel),"string"==typeof n.locale.customRangeLabel)){(f=document.createElement("textarea")).innerHTML=n.locale.customRangeLabel;var o=f.value;this.locale.customRangeLabel=o}if(this.container.addClass(this.locale.direction),"string"==typeof n.startDate&&(this.startDate=t(n.startDate,this.locale.format)),"string"==typeof n.endDate&&(this.endDate=t(n.endDate,this.locale.format)),"string"==typeof n.minDate&&(this.minDate=t(n.minDate,this.locale.format)),"string"==typeof n.maxDate&&(this.maxDate=t(n.maxDate,this.locale.format)),"object"==typeof n.startDate&&(this.startDate=t(n.startDate)),"object"==typeof n.endDate&&(this.endDate=t(n.endDate)),"object"==typeof n.minDate&&(this.minDate=t(n.minDate)),"object"==typeof n.maxDate&&(this.maxDate=t(n.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof n.applyButtonClasse
1s&&(this.applyButtonClasses=n.applyButtonClasses),"string"==typeof n.applyClass&&(this.applyButtonClasses=n.applyClass),"string"==typeof n.cancelButtonClasses&&(this.cancelButtonClasses=n.cancelButtonClasses),"string"==typeof n.cancelClass&&(this.cancelButtonClasses=n.cancelClass),"object"==typeof n.maxSpan&&(this.maxSpan=n.maxSpan),"object"==typeof n.dateLimit&&(this.maxSpan=n.dateLimit),"string"==typeof n.opens&&(this.opens=n.opens),"string"==typeof n.drops&&(this.drops=n.drops),"boolean"==typeof n.showWeekNumbers&&(this.showWeekNumbers=n.showWeekNumbers),"boolean"==typeof n.showISOWeekNumbers&&(this.showISOWeekNumbers=n.showISOWeekNumbers),"string"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses),"object"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses.join(" ")),"boolean"==typeof n.showDropdowns&&(this.showDropdowns=n.showDropdowns),"number"==typeof n.minYear&&(this.minYear=n.minYear),"number"==typeof n.maxYear&&(this.maxYear=n.maxYear),"boolean"==typeof n.showCustomRangeLabel&&(this.showCustomRangeLabel=n.showCustomRangeLabel),"boolean"==typeof n.singleDatePicker&&(this.singleDatePicker=n.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof n.timePicker&&(this.timePicker=n.timePicker),"boolean"==typeof n.timePickerSeconds&&(this.timePickerSeconds=n.timePickerSeconds),"number"==typeof n.timePickerIncrement&&(this.timePickerIncrement=n.timePickerIncrement),"boolean"==typeof n.timePicker24Hour&&(this.timePicker24Hour=n.timePicker24Hour),"boolean"==typeof n.autoApply&&(this.autoApply=n.autoApply),"boolean"==typeof n.autoUpdateInput&&(this.autoUpdateInput=n.autoUpdateInput),"boolean"==typeof n.linkedCalendars&&(this.linkedCalendars=n.linkedCalendars),"function"==typeof n.isInvalidDate&&(this.isInvalidDate=n.isInvalidDate),"function"==typeof n.isCustomDate&&(this.isCustomDate=n.isCustomDate),"boolean"==typeof n.alwaysShowCalendars&&(this.alwaysShowCalendars=n.alwaysShowCalendars),0!=this.locale.firstDay)for(var a=this.locale.firstDay;a>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),a--;var s,l,u;if(void 0===n.startDate&&void 0===n.endDate&&e(this.element).is(":text")){var c=e(this.element).val(),h=c.split(this.locale.separator);s=l=null,2==h.length?(s=t(h[0],this.locale.format),l=t(h[1],this.locale.format)):this.singleDatePicker&&""!==c&&(s=t(c,this.locale.format),l=t(c,this.locale.format)),null!==s&&null!==l&&(this.setStartDate(s),this.setEndDate(l))}if("object"==typeof n.ranges){for(u in n.ranges){s="string"==typeof n.ranges[u][0]?t(n.ranges[u][0],this.locale.format):t(n.ranges[u][0]),l="string"==typeof n.ranges[u][1]?t(n.ranges[u][1],this.locale.format):t(n.ranges[u][1]),this.minDate&&s.isBefore(this.minDate)&&(s=this.minDate.clone());var p=this.maxDate;if(this.maxSpan&&p&&s.clone().add(this.maxSpan).isAfter(p)&&(p=s.clone().add(this.maxSpan)),p&&l.isAfter(p)&&(l=p.clone()),!(this.minDate&&l.isBefore(this.minDate,this.timepicker?"minute":"day")||p&&s.isAfter(p,this.timepicker?"minute":"day"))){var f;(f=document.createElement("textarea")).innerHTML=u;o=f.value;this.ranges[o]=[s,l]}}var d="<ul>";for(u in this.ranges)d+='<li data-range-key="'+u+'">'+u+"</li>";this.showCustomRangeLabel&&(d+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),d+="</ul>",this.container.find(".ranges").prepend(d)}"function"==typeof r&&(this.callback=r),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof n.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===n.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasse
1s),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,i,n;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(i),this.rightCalendar.month.hour(t).minute(e).second(i)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(i){var n,r=(n="left"==i?this.leftCalendar:this.rightCalendar).month.month(),o=n.month.year(),a=n.month.hour(),s=n.month.minute(),l=n.month.second(),u=t([o,r]).daysInMonth(),c=t([o,r,1]),h=t([o,r,u]),p=t(c).subtract(1,"month").month(),f=t(c).subtract(1,"month").year(),d=t([f,p]).daysInMonth(),m=c.day();(n=[]).firstDay=c,n.lastDay=h;for(var y=0;y<6;y++)n[y]=[];var v=d-m+this.locale.firstDay+1;v>d&&(v-=7),m==this.locale.firstDay&&(v=d-6);for(var g=t([f,p,v,12,s,l]),_=(y=0,0),b=0;y<42;y++,_++,g=t(g).add(24,"hour"))y>0&&_%7==0&&(_=0,b++),n[b][_]=g.clone().hour(a).minute(s).second(l),g.hour(12),this.minDate&&n[b][_].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&n[b][_].isBefore(this.minDate)&&"left"==i&&(n[b][_]=this.minDate.clone()),this.maxDate&&n[b][_].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&n[b][_].isAfter(this.maxDate)&&"right"==i&&(n[b][_]=this.maxDate.clone());"left"==i?this.leftCalendar.calendar=n:this.rightCalendar.calendar=n;var x="left"==i?this.minDate:this.startDate,w=this.maxDate,T=("left"==i?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');T+="<thead>",T+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(T+="<th></th>"),x&&!x.isBefore(n.firstDay)||this.linkedCalendars&&"left"!=i?T+="<th></th>":T+='<th class="prev available"><span></span></th>';var k=this.locale.monthNames[n[1][1].month()]+n[1][1].format(" YYYY");if(this.showDropdowns){for(var S=n[1][1].month(),E=n[1][1].year(),P=w&&w.year()||this.maxYear,A=x&&x.year()||this.minYear,C=E==A,D=E==P,O='<select class="monthselect">',M=0;M<12;M++)(!C||x&&M>=x.month())&&(!D||w&&M<=w.month())?O+="<option value='"+M+"'"+(M===S?" selected='selected'":"")+">"+this.locale.monthNames[M]+"</option>":O+="<option value='"+M+"'"+(M===S?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[M]+"</option>";O+="</select>";
1for(var I='<select class="yearselect">',z=A;z<=P;z++)I+='<option value="'+z+'"'+(z===E?' selected="selected"':"")+">"+z+"</option>";k=O+(I+="</select>")}if(T+='<th colspan="5" class="month">'+k+"</th>",w&&!w.isAfter(n.lastDay)||this.linkedCalendars&&"right"!=i&&!this.singleDatePicker?T+="<th></th>":T+='<th class="next available"><span></span></th>',T+="</tr>",T+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(T+='<th class="week">'+this.locale.weekLabel+"</th>"),e.each(this.locale.daysOfWeek,function(t,e){T+="<th>"+e+"</th>"}),T+="</tr>",T+="</thead>",T+="<tbody>",null==this.endDate&&this.maxSpan){var L=this.startDate.clone().add(this.maxSpan).endOf("day");w&&!L.isBefore(w)||(w=L)}for(b=0;b<6;b++){T+="<tr>",this.showWeekNumbers?T+='<td class="week">'+n[b][0].week()+"</td>":this.showISOWeekNumbers&&(T+='<td class="week">'+n[b][0].isoWeek()+"</td>");for(_=0;_<7;_++){var R=[];n[b][_].isSame(new Date,"day")&&R.push("today"),n[b][_].isoWeekday()>5&&R.push("weekend"),n[b][_].month()!=n[1][1].month()&&R.push("off","ends"),this.minDate&&n[b][_].isBefore(this.minDate,"day")&&R.push("off","disabled"),w&&n[b][_].isAfter(w,"day")&&R.push("off","disabled"),this.isInvalidDate(n[b][_])&&R.push("off","disabled"),n[b][_].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&R.push("active","start-date"),null!=this.endDate&&n[b][_].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&R.push("active","end-date"),null!=this.endDate&&n[b][_]>this.startDate&&n[b][_]<this.endDate&&R.push("in-range");var B=this.isCustomDate(n[b][_]);!1!==B&&("string"==typeof B?R.push(B):Array.prototype.push.apply(R,B));var j="",F=!1;for(y=0;y<R.length;y++)j+=R[y]+" ","disabled"==R[y]&&(F=!0);F||(j+="available"),T+='<td class="'+j.replace(/^\s+|\s+$/g,"")+'" data-title="r'+b+"c"+_+'">'+n[b][_].date()+"</td>"}T+="</tr>"}T+="</tbody>",T+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(T)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,i,n,r=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(r=this.startDate.clone().add(this.maxSpan)),"left"==t)i=this.startDate.clone(),n=this.minDate;else if("right"==t){i=this.endDate.clone(),n=this.startDate;var o=this.container.find(".drp-calendar.right .calendar-time");if(""!=o.html()&&(i.hour(isNaN(i.hour())?o.find(".hourselect option:selected").val():i.hour()),i.minute(isNaN(i.minute())?o.find(".minuteselect option:selected").val():i.minute()),i.second(isNaN(i.second())?o.find(".secondselect option:selected").val():i.second()),!this.timePicker24Hour)){var a=o.find(".ampmselect option:selected").val();"PM"===a&&i.hour()<12&&i.hour(i.hour()+12),"AM"===a&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),r&&i.isAfter(r)&&(i=r.clone())}e='<select class="hourselect">';for(var s=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,u=s;u<=l;u++){var c=u;this.timePicker24Hour||(c=i.hour()>=12?12==u?12:u+12:12==u?0:u);var h=i.clone().hour(c),p=!1;n&&h.minute(59).isBefore(n)&&(p=!0),r&&h.minute(0).isAfter(r)&&(p=!0),c!=i.hour()||p?e+=p?'<option value="'+u+'" disabled="disabled" class="disabled">'+u+"</option>":'<option value="'+u+'">'+u+"</option>":e+='<option value="'+u+'" selected="selected">'+u+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(u=0;
1u<60;u+=this.timePickerIncrement){var f=u<10?"0"+u:u;h=i.clone().minute(u),p=!1;n&&h.second(59).isBefore(n)&&(p=!0),r&&h.second(0).isAfter(r)&&(p=!0),i.minute()!=u||p?e+=p?'<option value="'+u+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+u+'">'+f+"</option>":e+='<option value="'+u+'" selected="selected">'+f+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(u=0;u<60;u++){f=u<10?"0"+u:u,h=i.clone().second(u),p=!1;n&&h.isBefore(n)&&(p=!0),r&&h.isAfter(r)&&(p=!0),i.second()!=u||p?e+=p?'<option value="'+u+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+u+'">'+f+"</option>":e+='<option value="'+u+'" selected="selected">'+f+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var d="",m="";n&&i.clone().hour(12).minute(0).second(0).isBefore(n)&&(d=' disabled="disabled" class="disabled"'),r&&i.clone().hour(0).minute(0).second(0).isAfter(r)&&(m=' disabled="disabled" class="disabled"'),i.hour()>=12?e+='<option value="AM"'+d+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":e+='<option value="AM" selected="selected"'+d+'>AM</option><option value="PM"'+m+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,i={top:0,left:0},n=this.drops,r=e(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},r=this.parentEl[0].clientWidth+this.parentEl.offset().left),n){case"auto":(t=this.element.offset().top+this.element.outerHeight()-i.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-i.top,n="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-i.top;break;default:t=this.element.offset().top+this.element.outerHeight()-i.top}this.container.css({top:0,left:0,right:"auto"});var o=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==n),"left"==this.opens){var a=r-this.element.offset().left-this.element.outerWidth();o+a>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:a,left:"auto"})}else if("center"==this.opens){(s=this.element.offset().left-i.left+this.element.outerWidth()/2-o/2)<0?this.container.css({top:t,right:"auto",left:9}):s+o>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:s,right:"auto"})}else{var s;(s=this.element.offset().left-i.left)+o>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:s,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy(function(t){this.outsideClick(t)},this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var i=e(t.target);"focusin"==t.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),r=i.substr(3,1),o=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][r]:this.rightCalendar.calendar[n][r],a=this.leftCalendar,s=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,i){if(!e(i).hasClass("week")){var n=e(i).attr("data-title"),r=n.substr(1,1),u=n.substr(3,1),c=e(i).parents(".drp-calendar").hasClass("left")?a.calendar[r][u]:s.calendar[r][u];c.isAfter(l)&&c.isBefore(o)||c.isSame(o,"day")?e(i).addClass("in-range"):e(i).removeClass("in-range")}})}},clickDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),r=i.substr(3,1),o=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][r]:this.rightCalendar.calendar[n][r];if(this.endDate||o.isBefore(this.startDate,"day")){if(this.timePicker){var a=parseInt(this.container.find(".left .hourselect").val(),10);
1if(!this.timePicker24Hour)"PM"===(u=this.container.find(".left .ampmselect").val())&&a<12&&(a+=12),"AM"===u&&12===a&&(a=0);var s=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;o=o.clone().hour(a).minute(s).second(l)}this.endDate=null,this.setStartDate(o.clone())}else if(!this.endDate&&o.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var u;a=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(u=this.container.find(".right .ampmselect").val())&&a<12&&(a+=12),"AM"===u&&12===a&&(a=0);s=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".right .minuteselect option:last").val(),10));l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;o=o.clone().hour(a).minute(s).second(l)}this.setEndDate(o.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var i in this.ranges){if(this.timePicker){var n=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(n)==this.ranges[i][0].format(n)&&this.endDate.format(n)==this.ranges[i][1].format(n)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var i=e(t.target).closest(".drp-calendar").hasClass("left"),n=i?"left":"right",r=this.container.find(".drp-calendar."+n),o=parseInt(r.find(".monthselect").val(),10),a=r.find(".yearselect").val();i||(a<this.startDate.year()||a==this.startDate.year()&&o<this.startDate.month())&&(o=this.startDate.month(),a=this.startDate.year()),this.minDate&&(a<this.minDate.year()||a==this.minDate.year()&&o<this.minDate.month())&&(o=this.minDate.month(),a=this.minDate.year()),this.maxDate&&(a>this.maxDate.year()||a==this.maxDate.year()&&o>this.maxDate.month())&&(o=this.maxDate.month(),a=this.maxDate.year()),i?(this.leftCalendar.month.month(o).year
1(a),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(o).year(a),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var i=e(t.target).closest(".drp-calendar"),n=i.hasClass("left"),r=parseInt(i.find(".hourselect").val(),10),o=parseInt(i.find(".minuteselect").val(),10);isNaN(o)&&(o=parseInt(i.find(".minuteselect option:last").val(),10));var a=this.timePickerSeconds?parseInt(i.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var s=i.find(".ampmselect").val();"PM"===s&&r<12&&(r+=12),"AM"===s&&12===r&&(r=0)}if(n){var l=this.startDate.clone();l.hour(r),l.minute(o),l.second(a),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var u=this.endDate.clone();u.hour(r),u.minute(o),u.second(a),this.setEndDate(u)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),i=null,n=null;2===e.length&&(i=t(e[0],this.locale.format),n=t(e[1],this.locale.format)),(this.singleDatePicker||null===i||null===n)&&(n=i=t(this.element.val(),this.locale.format)),i.isValid()&&n.isValid()&&(this.setStartDate(i),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,n){var r=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,r,n))}),this},i})},{jquery:53,moment:57}],50:[function(t,e,i){(function(t){var i=void 0!==e&&e.exports&&void 0!==t?t:this||window;(i._gsQueue||(i._gsQueue=[])).push(function(){"use strict";var t,e,n,r,o,a,s,l,u,c,h,p,f,d;i._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,i){var n,r,o=t.cycle;for(n in o)r=o[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},o=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=o.prototype.render},a=i._internals,s=a.isSelector,l=a.isArray,u=o.prototype=i.to({},.1,{}),c=[];o.version="1.20.5",u.constructor=o,u.kill()._gc=!1,o.killTweensOf=o.killDelayedCallsTo=i.killTweensOf,o.getTweensOf=i.getTweensOf,o.lagSmoothing=i.lagSmoothing,o.ticker=i.ticker,o.render=i.render,u.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var n,r=this.ratio,o=this.vars.immediateRender||t.immediateRender;for(n in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[n]=t[n];if(this._initted||o)if(e)this._initted=!1,o&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||o)for(var s,l=1/(1-r),u=this._firstPT;u;
1)s=u.s+u.c,u.c*=l,u.s=s-u.c,u=u._next;return this},u.render=function(t,e,n){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,o,s,l,u,c,h,p,f,d=this._dirty?this.totalDuration():this._totalDuration,m=this._time,y=this._totalTime,v=this._cycle,g=this._duration,_=this._rawPrevTime;if(t>=d-1e-7&&t>=0?(this._totalTime=d,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,o="onComplete",n=n||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(_<0||t<=0&&t>=-1e-7||1e-10===_&&"isPause"!==this.data)&&_!==t&&(n=!0,_>1e-10&&(o="onReverseComplete")),this._rawPrevTime=p=!e||t||_===t?t:1e-10)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==y||0===g&&_>0)&&(o="onReverseComplete",r=this._reversed),t<0&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||n)&&(_>=0&&(n=!0),this._rawPrevTime=p=!e||t||_===t?t:1e-10)),this._initted||(n=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=g+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&y<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time,(f=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==f||this._initted?this._yoyoEase=f=!0===f?this._ease:f instanceof Ease?f:Ease.map[f]:(f=this.vars.ease,this._yoyoEase=f=f?f instanceof Ease?f:"function"==typeof f?new Ease(f,this.vars.easeParams):Ease.map[f]||i.defaultEase:i.defaultEase)),this.ratio=f?1-f.getRatio((g-this._time)/g):0)),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType&&!f?(u=this._time/g,(1===(c=this._easeType)||3===c&&u>=.5)&&(u=1-u),3===c&&(u*=2),1===(h=this._easePower)?u*=u:2===h?u*=u*u:3===h?u*=u*u*u:4===h&&(u*=u*u*u*u),1===c?this.ratio=1-u:2===c?this.ratio=u:this._time/g<.5?this.ratio=u/2:this.ratio=1-u/2):f||(this.ratio=this._ease.getRatio(this._time/g))),m!==this._time||n||v!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=m,this._totalTime=y,this._rawPrevTime=_,this._cycle=v,a.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||r||f?r&&this._ease._calcEnd&&!f&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/g)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==m&&t>=0&&(this._active=!0),0===y&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,!0,n):o||(o="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==g||e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,n),e||(this._totalTime!==y||o)&&this._callback("onUpdate")),this._cycle!==v&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),o&&(this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o),0===g&&1e-10===this._rawPrevTime&&1e-10!==p&&(this._rawPrevTime=0)))}else y!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new o(t,e,i)},o.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new o(t,e,n)},o.staggerTo=o.allTo=function(t,e,a,u,h,p,f){u=u||0;var d,m,y,v,g=0,_=[],b=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope||this,arguments),h.apply(f||a.callbackScope||this,p||c)},x=a.cycle,w=a.startAt&&a.startAt.cycle;for(l(t)||("string"==typeof t&&(t=i.selector(t)||t),s(t)&&(t=n(t))),t=t||[],u<0&&((t=n(t)).reverse(),u*=-1),d=t.length-1,y=0;y<=d;y++){for(v in m={},a)m[v]=a[v];if(x&&(r(m,t,y),null!=m.duration&&(e=m.duration,delete m.duration)),w){for(v in w=m.startAt={},a.startAt)w[v]=a.startAt[v];r(m.startAt,t,y)}m.delay=g+(m.delay||0),y===d&&h&&(m.onComplete=b),_[y]=new o(t[y],e,m),g+=u}return _}
vendor: 4,388 bytes, line 1
1,o.staggerFrom=o.allFrom=function(t,e,i,n,r,a,s){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,o.staggerTo(t,e,i,n,r,a,s)},o.staggerFromTo=o.allFromTo=function(t,e,i,n,r,a,s,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,o.staggerTo(t,e,n,r,a,s,l)},o.delayedCall=function(t,e,i,n,r){return new o(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:r,overwrite:0})},o.set=function(t,e){return new o(t,0,e)},o.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var h=function(t,e){for(var n=[],r=0,o=t._first;o;)o instanceof i?n[r++]=o:(e&&(n[r++]=o),r=(n=n.concat(h(o,e))).length),o=o._next;return n},p=o.getAllTweens=function(e){return h(t._rootTimeline,e).concat(h(t._rootFramesTimeline,e))};o.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var o,a,s,l=p(0!=r),u=l.length,c=i&&n&&r;for(s=0;s<u;s++)a=l[s],(c||a instanceof e||(o=a.target===a.vars.onComplete)&&n||i&&!o)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},o.killChildTweensOf=function(t,e){if(null!=t){var r,u,c,h,p,f=a.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),s(t)&&(t=n(t)),l(t))for(h=t.length;--h>-1;)o.killChildTweensOf(t[h],e);else{for(c in r=[],f)for(u=f[c].target.parentNode;u;)u===t&&(r=r.concat(f[c].tweens)),u=u.parentNode;for(p=r.length,h=0;h<p;h++)e&&r[h].totalTime(r[h].totalDuration()),r[h]._enabled(!1,!1)}}};var f=function(t,i,n,r){i=!1!==i,n=!1!==n;for(var o,a,s=p(r=!1!==r),l=i&&n&&r,u=s.length;--u>-1;)a=s[u],(l||a instanceof e||(o=a.target===a.vars.onComplete)&&n||i&&!o)&&a.paused(t)};return o.pauseAll=function(t,e,i){f(!0,t,e,i)},o.resumeAll=function(t,e,i){f(!1,t,e,i)},o.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||1e-10,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},o},!0),i._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,n){var r=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},o=n._internals,a=r._internals={},s=o.isSelector,l=o.isArray,u=o.lazyTweens,c=o.lazyRender,h=i._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,o=t.cycle;for(n in o)r=o[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},d=a.pauseCallback=function(){},m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},y=r.prototype=new e;return r.version="1.20.4",y.constructor=r,y.kill()._gc=y._forcingPlayhead=y._hasPause=!1,y.to=function(t,e,
vendor: 9,022 bytes, line 1
1i,r){var o=i.repeat&&h.TweenMax||n;return e?this.add(new o(t,e,i),r):this.set(t,i,r)},y.from=function(t,e,i,r){return this.add((i.repeat&&h.TweenMax||n).from(t,e,i),r)},y.fromTo=function(t,e,i,r,o){var a=r.repeat&&h.TweenMax||n;return e?this.add(a.fromTo(t,e,i,r),o):this.set(t,r,o)},y.staggerTo=function(t,e,i,o,a,l,u,c){var h,d,y=new r({onComplete:l,onCompleteParams:u,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),v=i.cycle;for("string"==typeof t&&(t=n.selector(t)||t),s(t=t||[])&&(t=m(t)),(o=o||0)<0&&((t=m(t)).reverse(),o*=-1),d=0;d<t.length;d++)(h=p(i)).startAt&&(h.startAt=p(h.startAt),h.startAt.cycle&&f(h.startAt,t,d)),v&&(f(h,t,d),null!=h.duration&&(e=h.duration,delete h.duration)),y.to(t[d],e,h,d*o);return this.add(y,a)},y.staggerFrom=function(t,e,i,n,r,o,a,s){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,o,a,s)},y.staggerFromTo=function(t,e,i,n,r,o,a,s,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,o,a,s,l)},y.call=function(t,e,i,r){return this.add(n.delayedCall(0,t,e,i),r)},y.set=function(t,e,i){return i=this._parseTimeOrLabel(i,0,!0),null==e.immediateRender&&(e.immediateRender=i===this._time&&!this._paused),this.add(new n(t,0,e),i)},r.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,o,a,s,l=new r(t),u=l._timeline;for(null==e&&(e=!0),u._remove(l,!0),l._startTime=0,l._rawPrevTime=l._time=l._totalTime=u._time,a=u._first;a;)s=a._next,e&&a instanceof n&&a.target===a.vars.onComplete||((o=a._startTime-a._delay)<0&&(i=1),l.add(a,o)),a=s;return u.add(l,0),i&&l.totalDuration(),l},y.add=function(i,o,a,s){var u,c,h,p,f,d;if("number"!=typeof o&&(o=this._parseTimeOrLabel(o,0,!0,i)),!(i instanceof t)){if(i instanceof Array||i&&i.push&&l(i)){for(a=a||"normal",s=s||0,u=o,c=i.length,h=0;h<c;h++)l(p=i[h])&&(p=new r({tweens:p})),this.add(p,u),"string"!=typeof p&&"function"!=typeof p&&("sequence"===a?u=p._startTime+p.totalDuration()/p._timeScale:"start"===a&&(p._startTime-=p.delay())),u+=s;return this._uncache(!0)}if("string"==typeof i)return this.addLabel(i,o);if("function"!=typeof i)throw"Cannot add "+i+" into the timeline; it is not a tween, timeline, function, or string.";i=n.delayedCall(0,i)}if(e.prototype.add.call(this,i,o),i._time&&i.render((this.rawTime()-i._startTime)*i._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(d=(f=this).rawTime()>i._startTime;f._timeline;)d&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},y.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},y._remove=function(t,i){return e.prototype._remove.call(this,t,i),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},y.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},y.insert=y.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},y.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},y.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},y.addPause=function(t,e,i,r){var o=n.delayedCall(0,d,i,r||this);return o.vars.onComplete=o.vars.onReverseComplete=e,o.data="isPause",this._hasPause=!0,this.add(o,t)},y.removeLabel=function(t){return delete this._labels[t],this},y.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},y._parseTimeOrLabel=function(e,i,n,r){var o,a;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(a=r.length;--a>-1;)r[a]instanceof t&&r[a].timeline===this&&this.remove(r[a]);if(o="number"!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-o:0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=o);else{if(-1===(a=e.indexOf("=")))return null==this._labels[e]?n?this._labels[e]=o+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=a>1?this._parseTimeOrLabel(e.substr(0,a-1),0,n):o}return Number(e)+i},y.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},y.stop=function(){return this.paused(!0)},y.gotoAndPlay=function(t,e){return this.play(t,e)},y.gotoAndStop=function(t,e){return this.pause(t,e)},y.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,r,o,a,s,l,h,p=this._time,f=this._dirty?this.totalDuration():this._totalDuration,d=this._startTime,m=this._timeScale,y=this._paused;if(p!==this._time&&(t+=this._time-p),t>=f-1e-7&&t>=0)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(r=!0,a="onComplete",s=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||this._rawPrevTime<0||1e-10===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(s=!0,this._rawPrevTime>1e-10&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,t=f+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&1e-10!==this._rawPrevTime&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(a="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(s=r=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(s=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&r)for(n=this._first;n&&0===n._startTime;)n._duration||(r=!1),n=n._next;t=0,this._initted||(s=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!l;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(l=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!l;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(l=n),n=n._prev;l&&(this._time=t=l._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||s||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),(h=this._time)>=p)for(n=this._first;n&&(o=n._next,h===this._time&&(!this._paused||y));)(n._active||n._startTime<=h&&!n._paused&&!n._gc)&&(l===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;else for(n=this._last;n&&(o=n._prev,h===this._time&&(!this._paused||y));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(l===n){for(l=n._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=o}this._onUpdate&&(e||(u.length&&c(),this._callback("onUpdate"))),a&&(this._gc||d!==this._startTime&&m===this._timeScale||(0===this._time||f>=this.totalDuration())&&(r&&(u.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},y._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},y.getChildren=function(t,e,i,r){r=r||-9999999999;for(var o=[],a=this._first,s=0;a;)a._startTime<r||(a instanceof n?!1!==e&&(o[s++]=a):(!1!==i&&(o[s++]=a),!1!==t&&(s=(o=o.concat(a.getChildren(!0,e,i))).length))),a=a._next;return o},y.getTweensOf=function(t,e){var i,r,o=this._gc,a=[],s=0;for(o&&this._enabled(!0,!0),r=(i=n.getTweensOf(t)).length;--r>-1;)(i[r].timeline===this||e&&this._contains(i[r]))&&(a[s++]=i[r]);return o&&this._enabled(!1,!0),a},y.recent=function(){return this._recent},y._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},y.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,o=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in o)o[n]>=i&&(o[n]+=t);return this._uncache(!0)},y._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},y.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;
1)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},y.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},y._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},y.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},y.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},y.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,o=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>o&&this._sortChildren&&!r._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(r,r._startTime-r._delay),this._calculatingDuration=0):o=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale,this._time-=r._startTime,this._totalTime-=r._startTime,this._rawPrevTime-=r._startTime),this.shiftChildren(-r._startTime,!1,-9999999999),o=0),(i=r._startTime+r._totalDuration/r._timeScale)>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},y.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},y.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},y.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},r},!0),i._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,n){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},o=e._internals,a=o.lazyTweens,s=o.lazyRender,l=i._gsDefine.globals,u=new n(null,null,1,0),c=r.prototype=new t;return c.constructor=r,c.kill()._gc=!1,r.version="1.20.4",c.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},c.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},c.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},c.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},c.tweenTo=function(t,i){i=i||{};var n,r,o,a={ease:u,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},s=i.repeat&&l.TweenMax||e;for(r in i)a[r]=i[r];return a.time=this._parseTimeOrLabel(t),n=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,o=new s(this,n,a),a.onStart=function(){o.target.paused(!0),o.vars.time===o.target.time()||n!==o.duration()||o.isFromTo||o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale).render(o.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||o,i.onStartParams||[])},o},c.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var n=this.tweenTo(e,i);return n.isFromTo=1,n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},c.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,r,o,l,u,c,h,p,f=this._time,d=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,y=this._totalTime,v=this._startTime,g=this._timeScale,_=this._rawPrevTime,b=this._paused,x=this._cycle;if(f!==this._time&&(t+=this._time-f),t>=d-1e-7&&t>=0)this._locked||(this._totalTime=d,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(r=!0,l="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||_<0||1e-10===_)&&_!==t&&this._first&&(u=!0,_>1e-10&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:(this._time=m,t
vendor: 5,536 bytes, line 1
1=m+1e-4);else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==f||0===m&&1e-10!==_&&(_>0||t<0&&_>=0)&&!this._locked)&&(l="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=r=!0,l="onReverseComplete"):_>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=m||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&r)for(n=this._first;n&&0===n._startTime;)n._duration||(r=!1),n=n._next;t=0,this._initted||(u=!0)}else if(0===m&&_<0&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=m+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&y<=t&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,t=m+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if((t=this._time)>=f||this._repeat&&x!==this._cycle)for(n=this._first;n&&n._startTime<=t&&!h;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(h=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!h;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(h=n),n=n._prev;h&&h._startTime<m&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==x&&!this._locked){var w=this._yoyo&&0!=(1&x),T=w===(this._yoyo&&0!=(1&this._cycle)),k=this._totalTime,S=this._cycle,E=this._rawPrevTime,P=this._time;if(this._totalTime=x*m,this._cycle<x?w=!w:this._totalTime+=m,this._time=f,this._rawPrevTime=0===m?_-1e-4:_,this._cycle=x,this._locked=!0,f=w?0:m,this.render(f,e,0===m),e||this._gc||this.vars.onRepeat&&(this._cycle=S,this._locked=!1,this._callback("onRepeat")),f!==this._time)return;if(T&&(this._cycle=x,this._locked=!0,f=w?m+1e-4:-1e-4,this.render(f,!0,!1)),this._locked=!1,this._paused&&!b)return;this._time=P,this._totalTime=k,this._cycle=S,this._rawPrevTime=E}if(this._time!==f&&this._first||i||u||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==y&&t>0&&(this._active=!0),0===y&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),(p=this._time)>=f)for(n=this._first;n&&(o=n._next,p===this._time&&(!this._paused||b));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(h===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;else for(n=this._last;n&&(o=n._prev,p===this._time&&(!this._paused||b));){if(n._active||n._startTime<=f&&!n._paused&&!n._gc){if(h===n){for(h=n._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=o}this._onUpdate&&(e||(a.length&&s(),this._callback("onUpdate"))),l&&(this._locked||this._gc||v!==this._startTime&&g===this._timeScale||(0===this._time||d>=this.totalDuration())&&(r&&(a.length&&s(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[l]&&this._callback(l)))}else y!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},c.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,o=[],a=this.getChildren(t,e,i),s=0,l=a.length;for(n=0;n<l;n++)(r=a[n]).isActive()&&(o[s++]=r);return o},c.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;e<n;e++)if(i[e].time>t)return i[e].name;return null},c.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},c.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},c.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},c.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},c.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},c.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},r},!0),t=180/Math.PI,e=[],n=[],r=[],o={}
1,a=i._gsDefine.globals,s=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},l=function(t,e,i,n){var r={a:t},o={},a={},s={c:n},l=(t+e)/2,u=(e+i)/2,c=(i+n)/2,h=(l+u)/2,p=(u+c)/2,f=(p-h)/8;return r.b=l+(t-l)/4,o.b=h+f,r.c=o.a=(r.b+o.b)/2,o.c=a.a=(h+p)/2,a.b=p-f,s.b=c+(n-c)/4,a.c=s.a=(a.b+s.b)/2,[r,o,a,s]},u=function(t,i,o,a,s){var u,c,h,p,f,d,m,y,v,g,_,b,x,w=t.length-1,T=0,k=t[0].a;for(u=0;u<w;u++)c=(f=t[T]).a,h=f.d,p=t[T+1].d,s?(_=e[u],x=((b=n[u])+_)*i*.25/(a?.5:r[u]||.5),y=h-((d=h-(h-c)*(a?.5*i:0!==_?x/_:0))+(((m=h+(p-h)*(a?.5*i:0!==b?x/b:0))-d)*(3*_/(_+b)+.5)/4||0))):y=h-((d=h-(h-c)*i*.5)+(m=h+(p-h)*i*.5))/2,d+=y,m+=y,f.c=v=d,f.b=0!==u?k:k=f.a+.6*(f.c-f.a),f.da=h-c,f.ca=v-c,f.ba=k-c,o?(g=l(c,k,v,h),t.splice(T,1,g[0],g[1],g[2],g[3]),T+=4):T++,k=m;(f=t[T]).b=k,f.c=k+.4*(f.d-k),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=k-f.a,o&&(g=l(f.a,k,f.c,f.d),t.splice(T,1,g[0],g[1],g[2],g[3]))},c=function(t,i,r,o){var a,l,u,c,h,p,f=[];if(o)for(l=(t=[o].concat(t)).length;--l>-1;)"string"==typeof(p=t[l][i])&&"="===p.charAt(1)&&(t[l][i]=o[i]+Number(p.charAt(0)+p.substr(2)));if((a=t.length-2)<0)return f[0]=new s(t[0][i],0,0,t[0][i]),f;for(l=0;l<a;l++)u=t[l][i],c=t[l+1][i],f[l]=new s(u,0,0,c),r&&(h=t[l+2][i],e[l]=(e[l]||0)+(c-u)*(c-u),n[l]=(n[l]||0)+(h-c)*(h-c));return f[l]=new s(t[l][i],0,0,t[l+1][i]),f},h=function(t,i,a,s,l,h){var p,f,d,m,y,v,g,_,b={},x=[],w=h||t[0];for(f in l="string"==typeof l?","+l+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==i&&(i=1),t[0])x.push(f);if(t.length>1){for(_=t[t.length-1],g=!0,p=x.length;--p>-1;)if(f=x[p],Math.abs(w[f]-_[f])>.05){g=!1;break}g&&(t=t.concat(),h&&t.unshift(h),t.push(t[1]),h=t[t.length-3])}for(e.length=n.length=r.length=0,p=x.length;--p>-1;)f=x[p],o[f]=-1!==l.indexOf(","+f+","),b[f]=c(t,f,o[f],h);for(p=e.length;--p>-1;)e[p]=Math.sqrt(e[p]),n[p]=Math.sqrt(n[p]);if(!s){for(p=x.length;--p>-1;)if(o[f])for(v=(d=b[x[p]]).length-1,m=0;m<v;m++)y=d[m+1].da/n[m]+d[m].da/e[m]||0,r[m]=(r[m]||0)+y*y;for(p=r.length;--p>-1;)r[p]=Math.sqrt(r[p])}for(p=x.length,m=a?4:1;--p>-1;)d=b[f=x[p]],u(d,i,a,s,o[f]),g&&(d.splice(0,m),d.splice(d.length-m,m));return b},p=function(t,e,i){for(var n,r,o,a,s,l,u,c,h,p,f,d=1/i,m=t.length;--m>-1;)for(o=(p=t[m]).a,a=p.d-o,s=p.c-o,l=p.b-o,n=r=0,c=1;c<=i;c++)n=r-(r=((u=d*c)*u*a+3*(h=1-u)*(u*s+h*l))*u),e[f=m*i+c-1]=(e[f]||0)+n*n},f=i._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,o,a,l,u=e.values||[],c={},f=u[0],d=e.autoRotate||i.vars.orientToBezier;for(n in this._autoRotate=d?d instanceof Array?d:[["x","y","rotation",!0===d?0:Number(d)||0]]:null,f)this._props.push(n);for(o=this._props.length;--o>-1;)n=this._props[o],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],c[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),l||c[n]!==u[0][n]&&(l=c);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?h(u,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,l):function(t,e,i){var n,r,o,a,l,u,c,h,p,f,d,m={},y="cubic"===(e=e||"soft")?3:2,v="soft"===e,g=[];if(v&&i&&(t=[i].concat(t)),null==t||t.length<y+1)throw"invalid Bezier data";for(p in t[0])g.push(p);for(u=g.length;--u>-1;){for(m[p=g[u]]=l=[],f=0,h=t.length,c=0;c<h;c++)n=null==i?t[c][p]:"string"==typeof(d=t[c][p])&&"="===d.charAt(1)?i[p]+Number(d.charAt(0)+d.substr(2)):Number(d),v&&c>1&&c<h-1&&(l[f++]=(n+l[f-2])/2),l[f++]=n;for(h=f-y+1,f=0,c=0;c<h;c+=y)n=l[c],r=l[c+1],o=l[c+2],a=2===y?0:l[c+3],l[f++]=d=3===y?new s(n,r,o,a):new s(n,(2*r+n)/3,(2*r+o)/3,o);l.length=f}return m}(u,e.type,c),this._segCount=this._beziers[n].length,this._timeRes){var m=function(t,e){var i,n,r,o,a=[],s=[],l=0,u=0,c=(e=e>>0||6)-1,h=[],f=[];for(i in t)p(t[i],a,e);for(r=a.length,n=0;n<r;n++)l+=Math.sqrt(a[n]),f[o=n%e]=l,o===c&&(u+=l,h[o=n/e>>0]=f,s[o]=u,l=0,f=[]);return{length:u,lengths:s,segments:h}}(this._beziers,this._timeRes);this._length=m.length,this._lengths=m.lengths,this._segments=m.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(d=this._autoRotate)for(this._initialRotations=[],d[0]instanceof Array||(this._autoRotate=d=[d]),o=d.length;--o>-1;){for(a=0;a<3;a++)n=d[o][a],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=d[o][2],this._initialRotations[o]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,o,a,s,l,u,c,h,p=this._segCount,f=this._func,d=this._target,m=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,h=this._curSeg,e*=this._length,r=this._li,e>this._l2&&r<p-1){for(u=p-1;r<u&&(this._l2=c[++r])<=e;);this._l1=c[r-1],this._li=r,this._curSeg=h=this._segments[r],this._s2=h[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=c[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=c[r],this._li=r,this._curSeg=h=this._segments[r],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<h.length-1){for(u=h.length-1;r<u&&(this._s2=h[++r])<=e;);this._s1=h[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=h[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=h[r],this._si=r}s=(r+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else s=(e-(i=e<0?0:e>=1?p-1:p*e>>0)*(1/p))*p;for(n=1-s,r=this._props.length;--r>-1;)o=this._props[r],l=(s*s*(a=this._beziers[o][i]).da+3*n*(s*a.ca+n*a.ba))*s+a.a,this._mod[o]&&(l=this._mod[o](l,d)),f[o]?d[o](l):d[o]=l;if(this._autoRotate){var y,v,g,_,b,x,w,T=this._autoRotate;for(r=T.length;--r>-1;)o=T[r][2],x=T[r][3]||0,w=!0===T[r][4]?1:t,a=this._beziers[T[r][0]],y=this._beziers[T[r][1]],a&&y&&(a=a[i],y=y[i],v=a.a+(a.b-a.a)*s,v+=((_=a.b+(a.c-a.b)*s)-v)*s,_+=(a.c+(a.d-a.c)*s-_)*s,g=y.a+(y.b
vendor: 5,230 bytes, line 1
1-y.a)*s,g+=((b=y.b+(y.c-y.b)*s)-g)*s,b+=(y.c+(y.d-y.c)*s-b)*s,l=m?Math.atan2(b-g,_-v)*w+x:this._initialRotations[r],this._mod[o]&&(l=this._mod[o](l,d)),f[o]?d[o](l):d[o]=l)}}}),d=f.prototype,f.bezierThrough=h,f.cubicToQuadratic=l,f._autoCSS=!0,f.quadraticToCubic=function(t,e,i){return new s(t,(2*e+t)/3,(2*e+i)/3,i)},f._cssRegister=function(){var t=a.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,a,s,l){e instanceof Array&&(e={values:e}),l=new f;var u,c,h,p=e.values,d=p.length-1,m=[],y={};if(d<0)return s;for(u=0;u<=d;u++)h=i(t,p[u],a,s,l,d!==u),m[u]=h.end;for(c in e)y[c]=e[c];return y.values=m,(s=new r(t,"bezier",0,0,h.pt,2)).data=h,s.plugin=l,s.setRatio=n,0===y.autoRotate&&(y.autoRotate=!0),!y.autoRotate||y.autoRotate instanceof Array||(u=!0===y.autoRotate?0:Number(y.autoRotate),y.autoRotate=null!=h.end.left?[["left","top","rotation",u,!1]]:null!=h.end.x&&[["x","y","rotation",u,!1]]),y.autoRotate&&(a._transform||a._enableTransforms(!1),h.autoRotate=a._target._gsTransform,h.proxy.rotation=h.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(h.proxy,y,a._tween),s}})}},d._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)(e=t[i[n]])&&"function"==typeof e&&(this._mod[i[n]]=e)},d._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)},i._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var n,r,o,a,s=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=s.prototype.setRatio},l=i._gsDefine.globals,u={},c=s.prototype=new t("css");c.constructor=s,s.version="1.20.5",s.API=2,s.defaultTransformPerspective=0,s.defaultSkewType="compensated",s.defaultSmoothOrigin=!0,c="px",s.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c,lineHeight:""};var h,p,f,d,m,y,v,g,_=/(?:\-|\.|\b)(\d|\.|e\-)+/g,b=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,x=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,w=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,T=/(?:\d|\-|\+|=|#|\.)*/g,k=/opacity *= *([^)]*)/i,S=/opacity:([^;]*)/i,E=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,A=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(t,e){return e.toUpperCase()},M=/(?:Left|Right|Width)/i,I=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,z=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,R=/[\s,\(]/i,B=Math.PI/180,j=180/Math.PI,F={},N={style:{}},V=i.document||{createElement:function(){return N}},U=function(t,e){return V.createElementNS?V.createElementNS(e||"http://www.w3.org/1999/xhtml",t):V.createElement(t)},q=U("div"),Y=U("img"),H=s._internals={_specialProps:u},W=(i.navigator||{}).userAgent||"",G=function(){var t=W.indexOf("Android"),e=U("a");return f=-1!==W.indexOf("Safari")&&-1===W.indexOf("Chrome")&&(-1===t||parseFloat(W.substr(t+8,2))>3),m=f&&parseFloat(W.substr(W.indexOf("Version/")+8,2))<6,d=-1!==W.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(W)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(W))&&(y=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),Z=function(t){return k.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},X=function(t){i.console&&console.log(t)},K="",J="",$=function(t,e){var i,n,r=(e=e||q).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(K="-"+(J=3===n?"ms":i[n]).toLowerCase()+"-",J+t):null},Q=("undefined"!=typeof window?window:V.defaultView||{getComputedStyle:function(){}}).getComputedStyle,tt=s.getStyle=function(t,e,i,n,r){var o;return G||"opacity"!==e?(!n&&t.style[e]?o=t.style[e]:(i=i||Q(t))?o=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(A,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==r||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:r):Z(t)},et=H.convertToPixels=function(t,i,n,r,o){if("px"===r||!r&&"lineHeight"!==i)return n;if("auto"===r||!n)return 0;var a,l,u,c=M.test(i),h=t,p=q.style,f=n<0,d=1===n;if(f&&(n=-n),d&&(n*=100),"lineHeight"!==i||r)if("%"===r&&-1!==i.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+tt(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)p[c?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(h=t.parentNode||V.body,-1!==tt(h,"display").indexOf("flex")&&(p.position="absolute"),l=h._gsCache,u=e.ticker.frame,l&&c&&l.time===u)return l.width*n/100;p[c?"width":"height"]=n+r}h.appendChild(q),a=parseFloat(q[c?"offsetWidth":"offsetHeight"]),h.removeChild(q),c&&"%"===r&&!1!==s.cacheWidths&&((l=h._gsCache=h._gsCache||{}).time=u,l.width=a/n*100),0!==a||o||(a=et(t,i,n,r,!0))}else l=Q(t).lineHeight,t.style.lineHeight=n,a=parseFloat(Q(t).lineHeight),t.style.lineHeight=l;return d&&(a/=100),f?-a:a}
1,it=H.calculateOffset=function(t,e,i){if("absolute"!==tt(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=tt(t,"margin"+n,i);return t["offset"+n]-(et(t,e,parseFloat(r),r.replace(T,""))||0)},nt=function(t,e){var i,n,r,o={};if(e=e||Q(t,null))if(i=e.length)for(;--i>-1;)-1!==(r=e[i]).indexOf("-transform")&&zt!==r||(o[r.replace(C,O)]=e.getPropertyValue(r));else for(i in e)-1!==i.indexOf("Transform")&&It!==i||(o[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===o[i]&&(o[i.replace(C,O)]=e[i]);return G||(o.opacity=Z(t)),n=Gt(t,e,!1),o.rotation=n.rotation,o.skewX=n.skewX,o.scaleX=n.scaleX,o.scaleY=n.scaleY,o.x=n.x,o.y=n.y,Rt&&(o.z=n.z,o.rotationX=n.rotationX,o.rotationY=n.rotationY,o.scaleZ=n.scaleZ),o.filters&&delete o.filters,o},rt=function(t,e,i,n,r){var o,a,s,l={},u=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(o=i[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(l[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[a]||""===e[a].replace(w,"")?o:0:it(t,a),void 0!==u[a]&&(s=new _t(u,a,u[a],s))));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:s}},ot={width:["Left","Right"],height:["Top","Bottom"]},at=["marginLeft","marginRight","marginTop","marginBottom"],st=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Q(t))[e]||0;if(t.getCTM&&Yt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=ot[e],o=r.length;for(i=i||Q(t,null);--o>-1;)n-=parseFloat(tt(t,"padding"+r[o],i,!0))||0,n-=parseFloat(tt(t,"border"+r[o]+"Width",i,!0))||0;return n},lt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,n=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(lt(n[i]));return t.join(",")}return null==o?o="center"===r?"50%":"0":"center"===o&&(o="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+o+(n.length>2?" "+n[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(r.replace(w,"")),e.oy=parseFloat(o.replace(w,"")),e.v=t),e||t},ut=function(t,e){return"function"==typeof t&&(t=t(g,v)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ct=function(t,e){return"function"==typeof t&&(t=t(g,v)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ht=function(t,e,i,n){var r,o,a,s;return"function"==typeof t&&(t=t(g,v)),null==t?a=e:"number"==typeof t?a=t:(360,r=t.split("_"),o=((s="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:j)-(s?0:e),r.length&&(n&&(n[i]=e+o),-1!==t.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==t.indexOf("ccw")&&o>0&&(o=(o-3599999999640)%360-360*(o/360|0))),a=e+o),a<1e-6&&a>-1e-6&&(a=0),a},pt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ft=function(t,e,i){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},dt=s.parseColor=function(t,e){var i,n,r,o,a,s,l,u,c,h,p;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),pt[t])i=pt[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+n+n+r+r+o+o),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=p=t.match(_),e){if(-1!==t.indexOf("="))return t.match(b)}else a=Number(i[0])%360/360,s=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(r=l<=.5?l*(s+1):l+s-l*s),i.length>3&&(i[3]=Number(i[3])),i[0]=ft(a+1/3,n,r),i[1]=ft(a,n,r),i[2]=ft(a-1/3,n,r);else i=t.match(_)||pt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=pt.black;return e&&!p&&(n=i[0]/255,r=i[1]/255,o=i[2]/255,l=((u=Math.max(n,r,o))+(c=Math.min(n,r,o))
vendor: 5,330 bytes, line 1
1)/2,u===c?a=s=0:(h=u-c,s=l>.5?h/(2-u-c):h/(u+c),a=u===n?(r-o)/h+(r<o?6:0):u===r?(o-n)/h+2:(n-r)/h+4,a*=60),i[0]=a+.5|0,i[1]=100*s+.5|0,i[2]=100*l+.5|0),i},mt=function(t,e){var i,n,r,o=t.match(yt)||[],a=0,s="";if(!o.length)return t;for(i=0;i<o.length;i++)n=o[i],a+=(r=t.substr(a,t.indexOf(n,a)-a)).length+n.length,3===(n=dt(n,e)).length&&n.push(1),s+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return s+t.substr(a)},yt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(c in pt)yt+="|"+c+"\\b";yt=new RegExp(yt+")","gi"),s.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];yt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=mt(t[0],e),t[1]=mt(t[1],e)),yt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=s.colorStringFilter);var vt=function(t,e,i,n){if(null==t)return function(t){return t};var r,o=e?(t.match(yt)||[""])[0]:"",a=t.split(o).join("").match(x)||[],s=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",c=a.length,h=c>0?a[0].replace(_,""):"";return c?r=e?function(t){var e,p,f,d;if("number"==typeof t)t+=h;else if(n&&L.test(t)){for(d=t.replace(L,"|").split("|"),f=0;f<d.length;f++)d[f]=r(d[f]);return d.join(",")}if(e=(t.match(yt)||[o])[0],f=(p=t.split(e).join("").match(x)||[]).length,c>f--)for(;++f<c;)p[f]=i?p[(f-1)/2|0]:a[f];return s+p.join(u)+u+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,o,p;if("number"==typeof t)t+=h;else if(n&&L.test(t)){for(o=t.replace(L,"|").split("|"),p=0;p<o.length;p++)o[p]=r(o[p]);return o.join(",")}if(p=(e=t.match(x)||[]).length,c>p--)for(;++p<c;)e[p]=i?e[(p-1)/2|0]:a[p];return s+e.join(u)+l}:function(t){return t}},gt=function(t){return t=t.split(","),function(e,i,n,r,o,a,s){var l,u=(i+"").split(" ");for(s={},l=0;l<4;l++)s[t[l]]=u[l]=u[l]||u[(l-1)/2>>0];return r.parse(e,s,o,a)}},_t=(H._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,o,a=this.data,s=a.proxy,l=a.firstMPT;l;)e=s[l.v],l.r?e=l.r(e):e<1e-6&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(l=a.firstMPT,o=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[o]=r}}else i[o]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),bt=(H._parseToProxy=function(t,e,i,n,r,o){var a,s,l,u,c,h=n,p={},f={},d=i._transform,m=F;for(i._transform=null,F=e,n=c=i.parse(t,e,n,r),F=m,o&&(i._transform=d,h&&(h._prev=null,h._prev&&(h._prev._next=null)));n&&n!==h;){if(n.type<=1&&(f[s=n.p]=n.s+n.c,p[s]=n.s,o||(u=new _t(n,"s",s,u,n.r),n.c=0),1===n.type))for(a=n.l;--a>0;)l="xn"+a,f[s=n.p+"_"+l]=n.data[l],p[s]=n[l],o||(u=new _t(n,l,s,u,n.rxp[l]));n=n._next}return{proxy:p,end:f,firstMPT:u,pt:c}},H.CSSPropTween=function(t,e,i,r,o,s,l,u,c,h,p){this.t=t,this.p=e,this.s=i,this.c=r,this.n=l||e,t instanceof bt||a.push(this.n),this.r=u?"function"==typeof u?u:Math.round:u,this.type=s||0,c&&(this.pr=c,n=!0),this.b=void 0===h?i:h,this.e=void 0===p?i+r:p,o&&(this._next=o,o._prev=this)}),xt=function(t,e,i,n,r,o){var a=new bt(t,e,i,n-i,r,-1,o);return a.b=i,a.e=a.xs0=n,a},wt=s.parseComplex=function(t,e,i,n,r,o,a,l,u,c){i=i||o||"","function"==typeof n&&(n=n(g,v)),a=new bt(t,e,0,0,a,c?2:1,null,!1,l,i,n),n+="",r&&yt.test(n+i)&&(n=[i,n],s.colorStringFilter(n),i=n[0],n=n[1]);var p,f,d,m,y,x,w,T,k,S,E,P,A,C=i.split(", ").join(",").split(" "),D=n.split(", ").join(",").split(" "),O=C.length,M=!1!==h;for(-1===n.indexOf(",")&&-1===i.indexOf(",")||(-1!==(n+i).indexOf("rgb")||-1!==(n+i).indexOf("hsl")?(C=C.join(" ").replace(L,", ").split(" "),D=D.join(" ").replace(L,", ").split(" ")):(C=C.join(" ").split(",").join(", ").split(" "),D=D.join(" ").split(",").join(", ").split(" ")),O=C.length),O!==D.length&&(O=(C=(o||"").split(" ")).length),a.plugin=u,a.setRatio=c,yt.lastIndex=0,p=0;p<O;p++)if(m=C[p],y=D[p]+"",(T=parseFloat(m))||0===T)a.appendXtra("",T,ut(y,T),y.replace(b,""),!(!M||-1===y.indexOf("px"))&&Math.round,!0);else if(r&&yt.test(m))P=")"+((P=y.indexOf(")")+1)?y.substr(P):""),A=-1!==y.indexOf("hsl")&&G,S=y,m=dt(m,A),y=dt(y,A),(k=m.length+y.length>6)&&!G&&0===y[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(D[p]).join("transparent")):(G||(k=!1),A?a.appendXtra(S.substr(0,S.indexOf("hsl"))+(k?"hsla(":"hsl("),m[0],ut(y[0],m[0]),",",!1,!0).appendXtra("",m[1],ut(y[1],m[1]),"%,",!1).appendXtra("",m[2],ut(y[2],m[2]),k?"%,":"%"+P,!1):a.appendXtra(S.substr(0,S.indexOf("rgb"))+(k?"rgba(":"rgb("),m[0],y[0]-m[0],",",Math.round,!0).appendXtra("",m[1],y[1]-m[1],",",Math.round).appendXtra("",m[2],y[2]-m[2],k?",":P,Math.round),k&&(m=m.length<4?1:m[3],a.appendXtra("",m,(y.length<4?1:y[3])-m,P,!1))),yt.lastIndex=0;else if(x=m.match(_)){if(!(w=y.match(b))||w.length!==x.length)return a;for(d=0,f=0;f<x.length;f++)E=x[f],S=m.indexOf(E,d),a.appendXtra(m.substr(d,S-d),Number(E),ut(w[f],E),"",!(!M||"px"!==m.substr(S+E.length,2))&&Math.round,0===f),d=S+E.length;a["xs"+a.l]+=m.substr(d)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+y:y;if(-1!==n.indexOf("=")&&a.data){for(P=a.xs0+a.data.s,p=1;p<a.l;p++)P+=a["xs"+p]+a.data["xn"+p];a.e=P+a["xs"+p]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Tt=9;for((c=bt.prototype).l=c.pr=0;--Tt>0;
1)c["xn"+Tt]=0,c["xs"+Tt]="";c.xs0="",c._next=c._prev=c.xfirst=c.data=c.plugin=c.setRatio=c.rxp=null,c.appendXtra=function(t,e,i,n,r,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+t:t||"",i||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",s>0?(a.data["xn"+s]=e+i,a.rxp["xn"+s]=r,a["xn"+s]=e,a.plugin||(a.xfirst=new bt(a,"xn"+s,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+s]+=e+(n||""),a)};var kt=function(t,e){e=e||{},this.p=e.prefix&&$(t)||t,u[t]=u[this.p]=this,this.format=e.formatter||vt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},St=H._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r=t.split(","),o=e.defaultValue;for(i=i||[o],n=0;n<r.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||o,new kt(r[n],e)},Et=H._registerPluginProp=function(t){if(!u[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";St(t,{parser:function(t,i,n,r,o,a,s){var c=l.com.greensock.plugins[e];return c?(c._cssRegister(),u[n].parse(t,i,n,r,o,a,s)):(X("Error: "+e+" js file not loaded."),o)}})}};(c=kt.prototype).parseComplex=function(t,e,i,n,r,o){var a,s,l,u,c,h,p=this.keyword;if(this.multi&&(L.test(i)||L.test(e)?(s=e.replace(L,"|").split("|"),l=i.replace(L,"|").split("|")):p&&(s=[e],l=[i])),l){for(u=l.length>s.length?l.length:s.length,a=0;a<u;a++)e=s[a]=s[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(c=e.indexOf(p))!==(h=i.indexOf(p))&&(-1===h?s[a]=s[a].split(p).join(""):-1===c&&(s[a]+=" "+p));e=s.join(", "),i=l.join(", ")}return wt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,o)},c.parse=function(t,e,i,n,r,a,s){return this.parseComplex(t.style,this.format(tt(t,this.p,o,!1,this.dflt)),this.format(e),r,a)},s.registerSpecialProp=function(t,e,i){St(t,{parser:function(t,n,r,o,a,s,l){var u=new bt(t,r,0,0,a,2,r,!1,i);return u.plugin=s,u.setRatio=e(t,n,o._tween,r),u},priority:i})},s.useSVGTransformAttr=!0;var Pt,At,Ct,Dt,Ot,Mt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),It=$("transform"),zt=K+"transform",Lt=$("transformOrigin"),Rt=null!==$("perspective"),Bt=H.Transform=function(){this.perspective=parseFloat(s.defaultTransformPerspective)||0,this.force3D=!(!1===s.defaultForce3D||!Rt)&&(s.defaultForce3D||"auto")},jt=i.SVGElement,Ft=function(t,e,i){var n,r=V.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(o,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},Nt=V.documentElement||{},Vt=(Ot=y||/Android/i.test(W)&&!i.chrome,V.createElementNS&&!Ot&&(At=Ft("svg",Nt),Dt=(Ct=Ft("rect",At,{width:100,height:50,x:100})).getBoundingClientRect().width,Ct.style[Lt]="50% 50%",Ct.style[It]="scaleX(0.5)",Ot=Dt===Ct.getBoundingClientRect().width&&!(d&&Rt),Nt.removeChild(At)),Ot),Ut=function(t,e,i,n,r,o){var a,l,u,c,h,p,f,d,m,y,v,g,_,b,x=t._gsTransform,w=Wt(t,!0);x&&(_=x.xOrigin,b=x.yOrigin),(!n||(a=n.split(" ")).length<2)&&(0===(f=t.getBBox()).x&&0===f.y&&f.width+f.height===0&&(f={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(e=lt(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=c=parseFloat(a[0]),i.yOrigin=h=parseFloat(a[1]),n&&w!==Ht&&(p=w[0],f=w[1],d=w[2],m=w[3],y=w[4],v=w[5],(g=p*m-f*d)&&(l=c*(m/g)+h*(-d/g)+(d*v-m*y)/g,u=c*(-f/g)+h*(p/g)-(p*v-f*y)/g,c=i.xOrigin=a[0]=l,h=i.yOrigin=a[1]=u)),x&&(o&&
1(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),r||!1!==r&&!1!==s.defaultSmoothOrigin?(l=c-_,u=h-b,x.xOffset+=l*w[0]+u*w[2]-l,x.yOffset+=l*w[1]+u*w[3]-u):x.xOffset=x.yOffset=0),o||t.setAttribute("data-svg-origin",a.join(" "))},qt=function(t){var e,i=U("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,r=this.nextSibling,o=this.style.cssText;if(Nt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=qt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return r?n.insertBefore(this,r):n.appendChild(this),Nt.removeChild(i),this.style.cssText=o,e},Yt=function(t){return!(!jt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return qt.call(t,!0)}}(t))},Ht=[1,0,0,1,0,0],Wt=function(t,e){var i,n,r,o,a,s,l=t._gsTransform||new Bt,u=t.style;if(It?n=tt(t,zt,null,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(I))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,!It||!(s=!Q(t)||"none"===Q(t).display)&&t.parentNode||(s&&(o=u.display,u.display="block"),t.parentNode||(a=1,Nt.appendChild(t)),i=!(n=tt(t,zt,null,!0))||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,o?u.display=o:s&&Jt(u,"display"),a&&Nt.removeChild(t)),(l.svg||t.getCTM&&Yt(t))&&(i&&-1!==(u[It]+"").indexOf("matrix")&&(n=u[It],i=0),r=t.getAttribute("transform"),i&&r&&(n="matrix("+(r=t.transform.baseVal.consolidate().matrix).a+","+r.b+","+r.c+","+r.d+","+r.e+","+r.f+")",i=0)),i)return Ht;for(r=(n||"").match(_)||[],Tt=r.length;--Tt>-1;)o=Number(r[Tt]),r[Tt]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},Gt=H.getTransform=function(t,i,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var o,a,l,u,c,h,p=n&&t._gsTransform||new Bt,f=p.scaleX<0,d=Rt&&(parseFloat(tt(t,Lt,i,!1,"0 0 0").split(" ")[2])||p.zOrigin)||0,m=parseFloat(s.defaultTransformPerspective)||0;if(p.svg=!(!t.getCTM||!Yt(t)),p.svg&&(Ut(t,tt(t,Lt,i,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),Pt=s.useSVGTransformAttr||Vt),(o=Wt(t))!==Ht){if(16===o.length){var y,v,g,_,b,x=o[0],w=o[1],T=o[2],k=o[3],S=o[4],E=o[5],P=o[6],A=o[7],C=o[8],D=o[9],O=o[10],M=o[12],I=o[13],z=o[14],L=o[11],R=Math.atan2(P,O);p.zOrigin&&(M=C*(z=-p.zOrigin)-o[12],I=D*z-o[13],z=O*z+p.zOrigin-o[14]),p.rotationX=R*j,R&&(y=S*(_=Math.cos(-R))+C*(b=Math.sin(-R)),v=E*_+D*b,g=P*_+O*b,C=S*-b+C*_,D=E*-b+D*_,O=P*-b+O*_,L=A*-b+L*_,S=y,E=v,P=g),R=Math.atan2(-T,O),p.rotationY=R*j,R&&(v=w*(_=Math.cos(-R))-D*(b=Math.sin(-R)),g=T*_-O*b,D=w*b+D*_,O=T*b+O*_,L=k*b+L*_,x=y=x*_-C*b,w=v,T=g),R=Math.atan2(w,x),p.rotation=R*j,R&&(y=x*(_=Math.cos(R))+w*(b=Math.sin(R)),v=S*_+E*b,g=C*_+D*b,w=w*_-x*b,E=E*_-S*b,D=D*_-C*b,x=y,S=v,C=g),p.rotationX&&Math.abs(p.rotationX)+Math.abs(p.rotation)>359.9&&(p.rotationX=p.rotation=0,p.rotationY=180-p.rotationY),R=Math.atan2(S,E),p.scaleX=(1e5*Math.sqrt(x*x+w*w+T*T)+.5|0)/1e5,p.scaleY=(1e5*Math.sqrt(E*E+P*P)+.5|0)/1e5,p.scaleZ=(1e5*Math.sqrt(C*C+D*D+O*O)+.5|0)/1e5,x/=p.scaleX,S/=p.scaleY,w/=p.scaleX,E/=p.scaleY,Math.abs(R)>2e-5?(p.skewX=R*j,S=0,"simple"!==p.skewType&&(p.scaleY*=1/Math.cos(R))):p.skewX=0,p.perspective=L?1/(L<0?-L:L):0,p.x=M,p.y=I,p.z=z,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*x-p.yOrigin*S),p.y-=p.yOrigin-(p.yOrigin*w-p.xOrigin*E))}else if(!Rt||r||!o.length||p.x!==o[4]||p.y!==o[5]||!p.rotationX&&!p.rotationY){var B=o.length>=6,F=B?o[0]:1,N=o[1]||0,V=o[2]||0,U=B?o[3]:1;p.x=o[4]||0,p.y=o[5]||0,l=Math.sqrt(F*F+N*N),u=Math.sqrt(U*U+V*V),c=F||N?Math.atan2(N,F)*j:p.rotation||0,h=V||U?Math.atan2(V,U)*j+c:p.skewX||0,p.scaleX=l,p.scaleY=u,p.rotation=c,p.skewX=
1h,Rt&&(p.rotationX=p.rotationY=p.z=0,p.perspective=m,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*F+p.yOrigin*V),p.y-=p.yOrigin-(p.xOrigin*N+p.yOrigin*U))}for(a in Math.abs(p.skewX)>90&&Math.abs(p.skewX)<270&&(f?(p.scaleX*=-1,p.skewX+=p.rotation<=0?180:-180,p.rotation+=p.rotation<=0?180:-180):(p.scaleY*=-1,p.skewX+=p.skewX<=0?180:-180)),p.zOrigin=d,p)p[a]<2e-5&&p[a]>-2e-5&&(p[a]=0)}return n&&(t._gsTransform=p,p.svg&&(Pt&&t.style[It]?e.delayedCall(.001,function(){Jt(t.style,It)}):!Pt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),p},Zt=function(t){var e,i,n=this.data,r=-n.rotation*B,o=r+n.skewX*B,a=(Math.cos(r)*n.scaleX*1e5|0)/1e5,s=(Math.sin(r)*n.scaleX*1e5|0)/1e5,l=(Math.sin(o)*-n.scaleY*1e5|0)/1e5,u=(Math.cos(o)*n.scaleY*1e5|0)/1e5,c=this.t.style,h=this.t.currentStyle;if(h){i=s,s=-l,l=-i,e=h.filter,c.filter="";var p,f,d=this.t.offsetWidth,m=this.t.offsetHeight,v="absolute"!==h.position,g="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+s+", M21="+l+", M22="+u,_=n.x+d*n.xPercent/100,b=n.y+m*n.yPercent/100;if(null!=n.ox&&(_+=(p=(n.oxp?d*n.ox*.01:n.ox)-d/2)-(p*a+(f=(n.oyp?m*n.oy*.01:n.oy)-m/2)*s),b+=f-(p*l+f*u)),g+=v?", Dx="+((p=d/2)-(p*a+(f=m/2)*s)+_)+", Dy="+(f-(p*l+f*u)+b)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=e.replace(z,g):c.filter=g+" "+e,0!==t&&1!==t||1===a&&0===s&&0===l&&1===u&&(v&&-1===g.indexOf("Dx=0, Dy=0")||k.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!v){var x,w,S,E=y<8?1:-1;for(p=n.ieOffsetX||0,f=n.ieOffsetY||0,n.ieOffsetX=Math.round((d-((a<0?-a:a)*d+(s<0?-s:s)*m))/2+_),n.ieOffsetY=Math.round((m-((u<0?-u:u)*m+(l<0?-l:l)*d))/2+b),Tt=0;Tt<4;Tt++)S=(i=-1!==(x=h[w=at[Tt]]).indexOf("px")?parseFloat(x):et(this.t,w,parseFloat(x),x.replace(T,""))||0)!==n[w]?Tt<2?-n.ieOffsetX:-n.ieOffsetY:Tt<2?p-n.ieOffsetX:f-n.ieOffsetY,c[w]=(n[w]=Math.round(i-S*(0===Tt||2===Tt?1:E)))+"px"}}},Xt=H.set3DTransformRatio=H.setTransformRatio=function(t){var e,i,n,r,o,a,s,l,u,c,h,p,f,m,y,v,g,_,b,x,w=this.data,T=this.t.style,k=w.rotation,S=w.rotationX,E=w.rotationY,P=w.scaleX,A=w.scaleY,C=w.scaleZ,D=w.x,O=w.y,M=w.z,I=w.svg,z=w.perspective,L=w.force3D,R=w.skewY,j=w.skewX;if(R&&(j+=R,k+=R),!((1!==t&&0!==t||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||M||z||E||S||1!==C)||Pt&&I||!Rt)k||j||I?(k*=B,x=j*B,1e5,i=Math.cos(k)*P,o=Math.sin(k)*P,n=Math.sin(k-x)*-A,a=Math.cos(k-x)*A,x&&"simple"===w.skewType&&(e=Math.tan(x-R*B),n*=e=Math.sqrt(1+e*e),a*=e,R&&(e=Math.tan(R*B),i*=e=Math.sqrt(1+e*e),o*=e)),I&&(D+=w.xOrigin-(w.xOrigin*i+w.yOrigin*n)+w.xOffset,O+=w.yOrigin-(w.xOrigin*o+w.yOrigin*a)+w.yOffset,Pt&&(w.xPercent||w.yPercent)&&(y=this.t.getBBox(),D+=.01*w.xPercent*y.width,O+=.01*w.yPercent*y.height),D<(y=1e-6)&&D>-y&&(D=0),O<y&&O>-y&&(O=0)),b=(1e5*i|0)/1e5+","+(1e5*o|0)/1e5+","+(1e5*n|0)/1e5+","+(1e5*a|0)/1e5+","+D+","+O+")",I&&Pt?this.t.setAttribute("transform","matrix("+b):T[It]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix(":"matrix(")+b):T[It]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix(":"matrix(")+P+",0,0,"+A+","+D+","+O+")";else{if(d&&(P<(y=1e-4)&&P>-y&&(P=C=2e-5),A<y&&A>-y&&(A=C=2e-5),!z||w.z||w.rotationX||w.rotationY||(z=0)),k||j)k*=B,v=i=Math.cos(k),g=o=Math.sin(k),j&&(k-=j*B,v=Math.cos(k),g=Math.sin(k),"simple"===w.skewType&&(e=Math.tan((j-R)*B),v*=e=Math.sqrt(1+e*e),g*=e,w.skewY&&(e=Math.tan(R*B),i*=e=Math.sqrt(1+e*e),o*=e))),n=-g,a=v;else{if(!(E||S||1!==C||z||I))return void(T[It]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+O+"px,"+M+"px)"+(1!==P||1!==A?" scale("+P+","+A+")":""));i=a=1,n=o=0}c=1,r=s=l=u=h=p=0,f=z?-1/z:0,m=w.zOrigin,y=1e-6,",","0",(k=E*B)&&(v=Math.cos(k),l=-(g=Math.sin(k)),h=f*-g,r=i*g,s=o*g,c=v,f*=v,i*=v,o*=v),(k=S*B)&&(e=n*(v=Math.cos(k))+r*(g=Math.sin(k)),_=a*v+s*g,u=c*g,p=f*g,r=n*-g+r*v,s=a*-g+s*v,c*=v,f*=v,n=e,a=_),1!==C&&(r*=C,s*=C,c*=C,f*=C),1!==A&&(n*=A,a*=A,u*=A,p*=A),1!==P&&(i*=P,o*=P,l*=P,h*=P),(m||I)&&(m&&(D+=r*-m,O+=s*-m,M+=c*-m+m),I&&(D+=w.xOrigin-(w.xOrigin*i+w.yOrigin*n)+w.xOffset,O+=w.yOrigin-(w.xOrigin*o+w.yOrigin*a)+w.yOffset),D<y&&D>-y&&(D="0"),O<y&&O>-y&&(O="0"),M<y&&M>-y&&(M=0)),b=w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix3d(":"matrix3d(",b+=(i<y&&i>-y?"0":i)+","+(o<y&&o>-y?"0":o)+","+(l<y&&l>-y?"0":l),b+=","+(h<y&&h>-y?"0":h)+","+(n<y&&n>-y?"0":n)+","+(a<y&&a>-y?"0":a),S||E||1!==C?(b+=","+(u<y&&u>-y?"0":u)+","+(p<y&&p>-y?"0":p)+","+(r<y&&r>-y?"0":r),b+=","+(s<y&&s>-y?"0":s)+","+(c<y&&c>-y?"0":c)+","+(f<y&&f>
1-y?"0":f)+","):b+=",0,0,0,0,1,0,",b+=D+","+O+","+M+","+(z?1+-M/z:1)+")",T[It]=b}};(c=Bt.prototype).x=c.y=c.z=c.skewX=c.skewY=c.rotation=c.rotationX=c.rotationY=c.zOrigin=c.xPercent=c.yPercent=c.xOffset=c.yOffset=0,c.scaleX=c.scaleY=c.scaleZ=1,St("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,r,a,l){if(n._lastParsedTransform===l)return r;n._lastParsedTransform=l;var u,c=l.scale&&"function"==typeof l.scale?l.scale:0;"function"==typeof l[i]&&(u=l[i],l[i]=e),c&&(l.scale=c(g,t));var h,p,f,d,m,y,_,b,x,w=t._gsTransform,T=t.style,k=Mt.length,S=l,E={},P=Gt(t,o,!0,S.parseTransform),A=S.transform&&("function"==typeof S.transform?S.transform(g,v):S.transform);if(P.skewType=S.skewType||P.skewType||s.defaultSkewType,n._transform=P,A&&"string"==typeof A&&It)(p=q.style)[It]=A,p.display="block",p.position="absolute",-1!==A.indexOf("%")&&(p.width=tt(t,"width"),p.height=tt(t,"height")),V.body.appendChild(q),h=Gt(q,null,!1),"simple"===P.skewType&&(h.scaleY*=Math.cos(h.skewX*B)),P.svg&&(y=P.xOrigin,_=P.yOrigin,h.x-=P.xOffset,h.y-=P.yOffset,(S.transformOrigin||S.svgOrigin)&&(A={},Ut(t,lt(S.transformOrigin),A,S.svgOrigin,S.smoothOrigin,!0),y=A.xOrigin,_=A.yOrigin,h.x-=A.xOffset-P.xOffset,h.y-=A.yOffset-P.yOffset),(y||_)&&(b=Wt(q,!0),h.x-=y-(y*b[0]+_*b[2]),h.y-=_-(y*b[1]+_*b[3]))),V.body.removeChild(q),h.perspective||(h.perspective=P.perspective),null!=S.xPercent&&(h.xPercent=ct(S.xPercent,P.xPercent)),null!=S.yPercent&&(h.yPercent=ct(S.yPercent,P.yPercent));else if("object"==typeof S){if(h={scaleX:ct(null!=S.scaleX?S.scaleX:S.scale,P.scaleX),scaleY:ct(null!=S.scaleY?S.scaleY:S.scale,P.scaleY),scaleZ:ct(S.scaleZ,P.scaleZ),x:ct(S.x,P.x),y:ct(S.y,P.y),z:ct(S.z,P.z),xPercent:ct(S.xPercent,P.xPercent),yPercent:ct(S.yPercent,P.yPercent),perspective:ct(S.transformPerspective,P.perspective)},null!=(m=S.directionalRotation))if("object"==typeof m)for(p in m)S[p]=m[p];else S.rotation=m;"string"==typeof S.x&&-1!==S.x.indexOf("%")&&(h.x=0,h.xPercent=ct(S.x,P.xPercent)),"string"==typeof S.y&&-1!==S.y.indexOf("%")&&(h.y=0,h.yPercent=ct(S.y,P.yPercent)),h.rotation=ht("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:P.rotation,P.rotation,"rotation",E),Rt&&(h.rotationX=ht("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":P.rotationX||0,P.rotationX,"rotationX",E),h.rotationY=ht("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":P.rotationY||0,P.rotationY,"rotationY",E)),h.skewX=ht(S.skewX,P.skewX),h.skewY=ht(S.skewY,P.skewY)}for(Rt&&null!=S.force3D&&(P.force3D=S.force3D,d=!0),(f=P.force3D||P.z||P.rotationX||P.rotationY||h.z||h.rotationX||h.rotationY||h.perspective)||null==S.scale||(h.scaleZ=1);--k>-1;)((A=h[x=Mt[k]]-P[x])>1e-6||A<-1e-6||null!=S[x]||null!=F[x])&&(d=!0,r=new bt(P,x,P[x],A,r),x in E&&(r.e=E[x]),r.xs0=0,r.plugin=a,n._overwriteProps.push(r.n));return A=S.transformOrigin,P.svg&&(A||S.svgOrigin)&&(y=P.xOffset,_=P.yOffset,Ut(t,lt(A),h,S.svgOrigin,S.smoothOrigin),r=xt(P,"xOrigin",(w?P:h).xOrigin,h.xOrigin,r,"transformOrigin"),r=xt(P,"yOrigin",(w?P:h).yOrigin,h.yOrigin,r,"transformOrigin"),y===P.xOffset&&_===P.yOffset||(r=xt(P,"xOffset",w?y:P.xOffset,P.xOffset,r,"transformOrigin"),r=xt(P,"yOffset",w?_:P.yOffset,P.yOffset,r,"transformOrigin")),A="0px 0px"),(A||Rt&&f&&P.zOrigin)&&(It?(d=!0,x=Lt,A=(A||tt(t,x,o,!1,"50% 50%"))+"",(r=new bt(T,x,0,0,r,-1,"transformOrigin")).b=T[x],r.plugin=a,Rt?(p=P.zOrigin,A=A.split(" "),P.zOrigin=(A.length>2&&(0===p||"0px"!==A[2])?parseFloat(A[2]):p)||0,r.xs0=r.e=A[0]+" "+(A[1]||"50%")+" 0px",(r=new bt(P,"zOrigin",0,0,r,-1,r.n)).b=p,r.xs0=r.e=P.zOrigin):r.xs0=r.e=A):lt(A+"",P)),d&&(n._transformType=P.svg&&Pt||!f&&3!==this._transformType?2:3),u&&(l[i]=u),c&&(l.scale=c),r},prefix:!0}),St("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}
vendor: 4,127 bytes, line 1
1),St("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,a,s){e=this.format(e);var l,u,c,h,p,f,d,m,y,v,g,_,b,x,w,T,k=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(y=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),u=0;u<k.length;u++)this.p.indexOf("border")&&(k[u]=$(k[u])),-1!==(p=h=tt(t,k[u],o,!1,"0px")).indexOf(" ")&&(h=p.split(" "),p=h[0],h=h[1]),f=c=l[u],d=parseFloat(p),_=p.substr((d+"").length),(b="="===f.charAt(1))?(m=parseInt(f.charAt(0)+"1",10),f=f.substr(2),m*=parseFloat(f),g=f.substr((m+"").length-(m<0?1:0))||""):(m=parseFloat(f),g=f.substr((m+"").length)),""===g&&(g=r[i]||_),g!==_&&(x=et(t,"borderLeft",d,_),w=et(t,"borderTop",d,_),"%"===g?(p=x/y*100+"%",h=w/v*100+"%"):"em"===g?(p=x/(T=et(t,"borderLeft",1,"em"))+"em",h=w/T+"em"):(p=x+"px",h=w+"px"),b&&(f=parseFloat(p)+m+g,c=parseFloat(h)+m+g)),a=wt(S,k[u],p+" "+h,f+" "+c,!1,"0px",a);return a},prefix:!0,formatter:vt("0px 0px 0px 0px",!1,!0)}),St("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,r,a){return wt(t.style,i,this.format(tt(t,i,o,!1,"0px 0px")),this.format(e),!1,"0px",r)},prefix:!0,formatter:vt("0px 0px",!1,!0)}),St("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,r,a){var s,l,u,c,h,p,f="background-position",d=o||Q(t,null),m=this.format((d?y?d.getPropertyValue(f+"-x")+" "+d.getPropertyValue(f+"-y"):d.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==m.indexOf("%")!=(-1!==v.indexOf("%"))&&v.split(",").length<2&&(p=tt(t,"backgroundImage").replace(D,""))&&"none"!==p){for(s=m.split(" "),l=v.split(" "),Y.setAttribute("src",p),u=2;--u>-1;)(c=-1!==(m=s[u]).indexOf("%"))!==(-1!==l[u].indexOf("%"))&&(h=0===u?t.offsetWidth-Y.width:t.offsetHeight-Y.height,s[u]=c?parseFloat(m)/100*h+"px":parseFloat(m)/h*100+"%");m=s.join(" ")}return this.parseComplex(t.style,m,v,r,a)},formatter:lt}),St("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:lt(-1===t.indexOf(" ")?t+" "+t:t)}}),St("perspective",{defaultValue:"0px",prefix:!0}),St("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),St("transformStyle",{prefix:!0}),St("backfaceVisibility",{prefix:!0}),St("userSelect",{prefix:!0}),St("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),St("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),St("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,r,a){var s,l,u;return y<9?(l=t.currentStyle,u=y<8?" ":",",s="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(s=this.format(tt(t,this.p,o,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,s,e,r,a)}}),St("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),St("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),St("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,r,a){var s=tt(t,"borderTopWidth",o,!1,"0px"),l=this.format(e).split(" "),u=l[0].replace(T,"");return"px"!==u&&(s=parseFloat(s)/et(t,"borderTopWidth",1,u)+u),this.parseComplex(t.style,this.format(s+" "+tt(t,"borderTopStyle",o,!1,"solid")+" "+tt(t,"borderTopColor",o,!1,"#000")),l.join(" "),r,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(yt)||["#000"])[0]}}),St("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),St("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,o){var a=t.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new bt(a,s,0,0,r,-1,i,!1,0,a[s],e)}});var Kt=function(t){var e,i=this.t,n=i.filter||tt(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!tt(this.data,"filter")):(i.filter=n.replace(E,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alph
1a(opacity="+r+")"):i.filter=n.replace(k,"opacity="+r))};St("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,r,a){var s=parseFloat(tt(t,"opacity",o,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+s),u&&1===s&&"hidden"===tt(t,"visibility",o)&&0!==e&&(s=0),G?r=new bt(l,"opacity",s,e-s,r):((r=new bt(l,"opacity",100*s,100*(e-s),r)).xn1=u?1:0,l.zoom=1,r.type=2,r.b="alpha(opacity="+r.s+")",r.e="alpha(opacity="+(r.s+r.c)+")",r.data=t,r.plugin=a,r.setRatio=Kt),u&&((r=new bt(l,"visibility",0,0,r,-1,null,!1,0,0!==s?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(r.n),n._overwriteProps.push(i)),r}});var Jt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(A,"-$1").toLowerCase())):t.removeAttribute(e))},$t=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Jt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};St("className",{parser:function(t,e,i,r,a,s,l){var u,c,h,p,f,d=t.getAttribute("class")||"",m=t.style.cssText;if((a=r._classNamePT=new bt(t,i,0,0,a,2)).setRatio=$t,a.pr=-11,n=!0,a.b=d,c=nt(t,o),h=t._gsClassPT){for(p={},f=h.data;f;)p[f.p]=1,f=f._next;h.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:d.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),u=rt(t,c,nt(t),l,p),t.setAttribute("class",d),a.data=u.firstMPT,t.style.cssText=m,a=a.xfirst=r.parse(t,u.difs,a,s)}});var Qt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,o,a=this.t.style,s=u.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(n=(e=this.e.split(" ").join("").split(",")).length;--n>-1;)i=e[n],u[i]&&(u[i].parse===s?r=!0:i="transformOrigin"===i?Lt:u[i].p),Jt(a,i);r&&(Jt(a,It),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(St("clearProps",{parser:function(t,e,i,r,o){return(o=new bt(t,i,0,0,o,2)).setRatio=Qt,o.e=e,o.pr=-10,o.data=r._tween,n=!0,o}}),c="bezier,throwProps,physicsProps,physics2D".split(","),Tt=c.length;Tt--;)Et(c[Tt]);(c=s.prototype)._firstPT=c._lastParsedTransform=c._transform=null,c._onInitTween=function(t,e,i,l){if(!t.nodeType)return!1;this._target=v=t,this._tween=i,this._vars=e,g=l,h=e.autoRound,n=!1,r=e.suffixMap||s.suffixMap,o=Q(t,""),a=this._overwriteProps;var c,d,y,_,b,x,w,T,k,E=t.style;if(p&&""===E.zIndex&&("auto"!==(c=tt(t,"zIndex",o))&&""!==c||this._addLazySet(E,"zIndex",0)),"string"==typeof e&&(_=E.cssText,c=nt(t,o),E.cssText=_+";"+e,c=rt(t,c,nt(t)).difs,!G&&S.test(e)&&(c.opacity=parseFloat(RegExp.$1)),e=c,E.cssText=_),e.className?this._firstPT=d=u.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=d=this.parse(t,e,null),this._transformType){for(k=3===this._transformType,It?f&&(p=!0,""===E.zIndex&&("auto"!==(w=tt(t,"zIndex",o))&&""!==w||this._addLazySet(E,"zIndex",0)),m&&this._addLazySet(E,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(k?"visible":"hidden"))):E.zoom=1,y=d;y&&y._next;)y=y._next;T=new bt(t,"transform",0,0,null,2),this._linkCSSP(T,null,y),T.setRatio=It?Xt:Zt,T.data=this._transform||Gt(t,o,!0),T.tween=i,T.pr=-1,a.pop()}if(n){for(;d;){for(x=d._next,y=_;y&&y.pr>d.pr;)y=y._next;(d._prev=y?y._prev:b)?d._prev._next=d:_=d,(d._next=y)?y._prev=d:b=d,d=x}this._firstPT=_}return!0},c.parse=function(t,e,i,n){var a,s,l,c,p,f,d,m,y,_,b=t.style;for(a in e){if("function"==typeof(f=e[a])&&(f=f(g,v)),s=u[a])i=s.parse(t,f,a,this,i,n,e);else{if("--"===a.substr(0,2)){this._tween._propLookup[a]=this._addTween.call(this._tween,t.style,"setProperty",Q(t).getPropertyValue(a)+"",f+"",a,!1,a);continue}p=tt(t,a,o)+"",y="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||y&&P.test(f)?(y||(f=((f=dt(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),i=wt(b,a,p,f,!0,"transparent",i,0,n)):y&&R.test(f)?i=wt(b,a,p,f,!0,null,i,0,n):(d=(l=parseFloat(p))||0===l?p.substr((l+"").length):"",""!==p&&"auto"!==p||("width"===a||"height"===a?(l=st(t,a,o),d="px"):"left"===a||"top"===a?(l=it(t,a,o),d="px"):(l="opacity"!==a?0:1,d="")),(_=y&&"="===f.charAt(1))?(c=parseInt(f.charAt(0)+"1",10),f=f.substr(2),c*=parseFloat(f),m=f.replace(T,"")):(c=parseFloat(f),m=y?f.replace(T,""):""),""===m&&(m=a in r?r[a]:d),f=c||0===c?(_?c+l:c)+m:e[a],d!==m&&(""===m&&"lineHeight"!==a||(c||0===c)&&l&&(l=et(t,a,l,d),"%"===m?(l/=et(t,a,100,"%")/100,!0!==e.strictUnits&&(p=l+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?l/=et(t,a,1,m):"px"!==m&&(c=et(t,a,c,m),m="px"),_&&(c||
vendor: 11,172 bytes, line 1
10===c)&&(f=c+l+m))),_&&(c+=l),!l&&0!==l||!c&&0!==c?void 0!==b[a]&&(f||f+""!="NaN"&&null!=f)?(i=new bt(b,a,c||l||0,0,i,-1,a,!1,0,p,f)).xs0="none"!==f||"display"!==a&&-1===a.indexOf("Style")?f:p:X("invalid "+a+" tween value: "+e[a]):(i=new bt(b,a,l,c-l,i,0,a,!1!==h&&("px"===m||"zIndex"===a),0,p,f)).xs0=m)}n&&i&&!i.plugin&&(i.plugin=n)}return i},c.setRatio=function(t){var e,i,n,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=r.r(e):e<1e-6&&e>-1e-6&&(e=0),r.type)if(1===r.type)if(2===(n=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=r.r(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},c._enableTransforms=function(t){this._transform=this._transform||Gt(this._target,o,!0),this._transformType=this._transform.svg&&Pt||!t&&3!==this._transformType?2:3};var te=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};c._addLazySet=function(t,e,i){var n=this._firstPT=new bt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=te,n.data=this},c._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},c._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},c._kill=function(e){var i,n,r,o=e;if(e.autoAlpha||e.alpha){for(n in o={},e)o[n]=e[n];o.opacity=1,o.autoAlpha&&(o.visibility=1)}for(e.className&&(i=this._classNamePT)&&((r=i.xfirst)&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,o)};var ee=function(t,e,i){var n,r,o,a;if(t.slice)for(r=t.length;--r>-1;)ee(t[r],e,i);else for(r=(n=t.childNodes).length;--r>-1;)a=(o=n[r]).type,o.style&&(e.push(nt(o)),i&&i.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||ee(o,e,i)};return s.cascadeTo=function(t,i,n){var r,o,a,s,l=e.to(t,i,n),u=[l],c=[],h=[],p=[],f=e._internals.reservedProps;for(t=l._targets||l.target,ee(t,c,p),l.render(i,!0,!0),ee(t,h),l.render(0,!0,!0),l._enabled(!0),r=p.length;--r>-1;)if((o=rt(p[r],c[r],h[r])).firstMPT){for(a in o=o.difs,n)f[a]&&(o[a]=n[a]);for(a in s={},o)s[a]=c[r][a];u.push(e.fromTo(p[r],i,s,o))}return u},t.activate([s]),s},!0),function(){var t=i._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}},n=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},r=t.prototype;r._onInitAllProps=function(){var t,i,r,o,a=this._tween,s=a.vars.roundProps,l={},u=a._propLookup.roundProps;if("object"!=typeof s||s.push)for("string"==typeof s&&(s=s.split(",")),r=s.length;--r>-1;)l[s[r]]=Math.round;else for(o in s)l[o]=e(s[o]);for(o in l)for(t=a._firstPT;t;)i=t._next,t.pg?t.t._mod(l):t.n===o&&(2===t.f&&t.t?n(t.t._firstPT,l[o]):(this._add(t.t,o,t.s,t.c,l[o]),i&&(i._prev=t._prev),t._prev?t._prev._next=i:a._firstPT===t&&(a._firstPT=i),t._next=t._prev=null,a._propLookup[o]=u)),t=i;return!1},r._add=function(t,e,i,n,r){this._addTween(t,e,i,i+n,e,r||Math.round),this._overwriteProps.push(e)}}(),i._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,n){var r,o;if("function"!=typeof t.setAttribute)return!1;for(r in e)"function"==typeof(o=e[r])&&(o=o(n,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",o+"",r,!1,r),this._overwriteProps.push(r);return!0}}),i._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,o,a,s,l,u,c=!0===e.useRadians?2*Math.PI:360;for(r in e)"useRadians"!==r&&("function"==typeof(s=e[r])&&(s=s(n,t)),o=(u=(s+"").split("_"))[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),l=(s=this.finals[r]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,u.length&&(-1!==(o=u.join("_")).indexOf("short")&&(l%=c)!==l%(c/2)&&(l=l<0?l+c:l-c),-1!==o.indexOf("_cw")&&l<0?l=(l+9999999999*c)%c-(l/c|0)*c:-1!==o.indexOf("ccw")&&l>0&&(l=(l-9999999999*c)%c-(l/c|0)*c)),(l>1e-6||l<-1e-6)&&(this._addTween(t,r,a,a+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,i._gsDefine("easing.Back",["easing.Ease"],function(t){var e,n,r,o,a=i.GreenSockGlobals||i,s=a.com.greensock,l=2*Math.PI,u=Math.PI/2,c=s._class,h=function(e,i){var n=c("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},p=t.register||function(){},f=function(t,e,i,n,r){var o=c("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return p(o,t),o},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},m=function(e,i){var n=c("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},y=f("Back",m("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),m("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),m("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),v=c("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),g=v.prototype=new t;return g.constructor=v,g.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},v.ease=new v(.7,.7),g.config=v.config=function(t,e,i){return new v(t,e,i)},(g=(e=c("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new t).constructor=e,g.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},g.config=e.config=function(t,i){return new e(t,i)},(g=(n=c("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new t).constructor=n,g.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},g.config=n.config=function(t,e,i){return new n(t,e,i)},(g=(r=c("easing.RoughEase",function(e){for(var i,n,r,o,a,s,l=(e=e||{}).taper||"none",u=[],c=0,h=0|(e.points||20),p=h,f=!1!==e.randomize,m=!0===e.clamp,y=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/h*p,n=y?y.getRatio(i):i,r="none"===l?v:"out"===l?(o=1-i)*o*v:"in"===l?i*i*v:i<.5?(o=2*i)*o*.5*v:(o=2*(1-i))*o*.5*v,f?n+=Math.random()*r-.5*r:p%2?n+=.5*r:n-=.5*r,m&&(n>1?n=1:n<0&&(n=0)),u[c++]={x:i,y:n};for(u.sort(function(t,e){return t.x-e.x}),s=new d(1,1,null),p=h;--p>-1;)a=u[p],s=new d(a.x,a.y,s);this._prev=new d(0,0,0!==s.t?s:s.next)},!0)).prototype=new t).constructor=r,g.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new r(t)},r.ease=new r,f("Bounce",h("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),h("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),h("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),f("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),f("Elastic",(o=function(e,i,n){var r=c("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(t<1?t:1),this._p3=this._p2/l*(Math.asin(1/this._p1)||0),this._p2=l/this._p2},!0),o=r.prototype=new t;return o.constructor=r,o.getRatio=i,o.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),o("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),o("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),f("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),f("Sine",h("SineOut",function(t){return Math.sin(t*u)}),h("SineIn",function(t){return 1-Math.cos(t*u)}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),c("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),p(a.SlowMo,"SlowMo","ease,"),p(r,"RoughEase","ease,"),p(e,"SteppedEase","ease,"),y},!0)}),i._gsDefine&&i._gsQueue.pop()(),function(t,i){"use strict";var n={},r=t.document,o=t.GreenSockGlobals=t.GreenSockGlobals||t;if(o.TweenLite)return o.TweenLite;var a,s,l,u,c,h,p,f=function(t){var e,i=t.split("."),n=o;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},d=f("com.greensock"),m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},y=function(){},v=(h=Object.prototype.toString,p=h.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&h.call(t)===p)}),g={},_=function(i,r,a,s){this.sc=g[i]?g[i].sc:[],g[i]=this,this.gsClass=null,this.func=a;var l=[];this.check=function(u){for(var c,h,p,d,m=r.length,y=m;--m>-1;)(c=g[r[m]]||new _(r[m],[])).gsClass?(l[m]=c.gsClass,y--):u&&c.sc.push(this);
1if(0===y&&a){if(p=(h=("com.greensock."+i).split(".")).pop(),d=f(h.join("."))[p]=this.gsClass=a.apply(a,l),s)if(o[p]=n[p]=d,void 0!==e&&e.exports)if("TweenMax"===i)for(m in e.exports=n.TweenMax=d,n)d[m]=n[m];else n.TweenMax&&(n.TweenMax[p]=d);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return d});for(m=0;m<this.sc.length;m++)this.sc[m].check()}},this.check(!0)},b=t._gsDefine=function(t,e,i,n){return new _(t,e,i,n)},x=d._class=function(t,e,i){return e=e||function(){},b(t,[],function(){return e},i),e};b.globals=o;var w=[0,0,1,1],T=x("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?w.concat(e):w},!0),k=T.map={},S=T.register=function(t,e,i,n){for(var r,o,a,s,l=e.split(","),u=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(o=l[u],r=n?x("easing."+o,null,!0):d.easing[o]||{},a=c.length;--a>-1;)s=c[a],k[o+"."+s]=k[s+o]=r[s]=t.getRatio?t:t[s]||new t};for((l=T.prototype)._calcEnd=!1,l.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:t<.5?n/2:1-n/2},s=(a=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--s>-1;)l=a[s]+",Power"+s,S(new T(null,null,1,s),l,"easeOut",!0),S(new T(null,null,2,s),l,"easeIn"+(0===s?",easeNone":"")),S(new T(null,null,3,s),l,"easeInOut");k.linear=d.easing.Linear.easeIn,k.swing=d.easing.Quad.easeInOut;var E=x("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(l=E.prototype).addEventListener=function(t,e,i,n,r){r=r||0;var o,a,s=this._listeners[t],l=0;for(this!==u||c||u.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;--a>-1;)(o=s[a]).c===e&&o.s===i?s.splice(a,1):0===l&&o.pr<r&&(l=a+1);s.splice(l,0,{c:e,s:i,up:n,pr:r})},l.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},l.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)(n=r[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var P=t.requestAnimationFrame,A=t.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},D=C();for(s=(a=["ms","moz","webkit","o"]).length;--s>-1&&!P;)P=t[a[s]+"RequestAnimationFrame"],A=t[a[s]+"CancelAnimationFrame"]||t[a[s]+"CancelRequestAnimationFrame"];x("Ticker",function(t,e){var i,n,o,a,s,l=this,h=C(),p=!(!1===e||!P)&&"auto",f=500,d=33,m=function(t){var e,r,u=C()-D;u>f&&(h+=u-d),D+=u,l.time=(D-h)/1e3,e=l.time-s,(!i||e>0||!0===t)&&(l.frame++,s+=e+(e>=a?.004:a-e),r=!0),!0!==t&&(o=n(m)),r&&l.dispatchEvent("tick")};E.call(l),l.time=l.frame=0,l.tick=function(){m(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return f<1e10;f=t||1e10,d=Math.min(e,f,0)},l.sleep=function(){null!=o&&(p&&A?A(o):clearTimeout(o),n=y,o=null,l===u&&(c=!1))},l.wake=function(t){null!==o?l.sleep():t?h+=-D+(D=C()):l.frame>10&&(D=C()-f+5),n=0===i?y:p&&P?P:function(t){return setTimeout(t,1e3*(s-l.time)+1|0)},l===u&&(c=!0),m(2)},l.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),s=this.time+a,l.wake()},l.useRAF=function(t){if(!arguments.length)return p;l.sleep(),p=t,l.fps(i)},l.fps(t),setTimeout(function(){"auto"===p&&l.frame<5&&"hidden"!==(r||{}).visibilityState&&l.useRAF(!1)},1500)}),(l=d.Ticker.prototype=new d.events.EventDispatcher).constructor=d.Ticker;var O=x("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,K){c||u.wake();var i=this.vars.useFrames?X:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});u=O.ticker=new d.Ticker,(l=O.prototype)._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;var M=function(){c&&C()-D>2e3&&("hidden"!==(r||{}).visibilityState||!u.lagSmoothing())&&u.wake();
vendor: 9,267 bytes, line 1
1var t=setTimeout(M,2e3);t.unref&&t.unref()};M(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},l.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-1e-7},l._enabled=function(t,e){return c||u.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},l._kill=function(t,e){return this._enabled(!1,!1)},l.kill=function(t,e){return this._kill(t,e),this},l._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},l._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},l._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(n?n.length:0){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},l.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=v(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},l.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},l.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},l.totalTime=function(t,e,i){if(c||u.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(R.length&&$(),this.render(t,e,!1),R.length&&$())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},l.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},l.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||1e-10,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},l.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},l.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(c||t||u.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var I=x("core.SimpleTimeline",function(t){O.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(l=I.prototype=new O).constructor=I,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,n){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},l._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},l.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},l.rawTime=function(){return c||u.wake(),this._totalTime};var z=x("TweenLite",function(e,i,n){if(O.call(this,i,n),this.render=z.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:z.selector(e)||e;var r,o,a,s=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Z[z.defaultOverwrite]:"number"==typeof l?l>>0:Z[l],(s||e instanceof Array||e.push&&v(e))&&"number"!=typeof e[0])for(this._targets=a=m(e),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)(o=a[r])?"string"!=typeof o?o.length&&o!==t&&o[0]&&(o[0]===t||o[0].nodeType&&o[0].style&&!o.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(m(o))):(this._siblings[r]=Q(o,this,!1),1===l&&this._siblings[r].length>1&&et(o,this,null,1,this._siblings[r])):"string"==typeof(o=a[r--]=z.selector(o))&&a.splice(r+1,1):a.splice(r--,1);else this._propLookup={},this._siblings=Q(e,this,!1),1===l&&this._siblings.length>1&&et(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(l=z.prototype=new O).constructor=z,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,z.version="1.20.5",z.defaultEase=l._ease=new T(null,null,1,1),z.defaultOverwrite="auto",z.ticker=u,z.autoSleep=120,z.lagSmoothing=function(t,e){u.lagSmoothing(t,e)},z.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(z.selector=i,i(e)):(r||(r=t.document),r?r.querySelectorAll?r.querySelectorAll(e):r.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var R=[],B={},j=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F=/[\+-]=-?[\.\d]/,N=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&e>-1e-6&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},V=function(t,e,i,n){var r,o,a,s,l,u,c,h=[],p=0,f="",d=0;for(h.start=t,h.end=e,t=h[0]=t+"",e=h[1]=e+"",i&&(i(h),t=h[0],e=h[1]),h.length=0,r=t.match(j)||[],o=e.match(j)||[],n&&(n._next=null,n.blob=1,h._firstPT=h._applyPT=n),l=o.length,s=0;s<l;s++)c=o[s],f+=(u=e.substr(p,e.indexOf(c,p)-p))||!s?u:",",p+=u.length,d?d=(d+1)%5:"rgba("===u.substr(-5)&&(d=1),c===r[s]||r.length<=s?f+=c:(f&&(h.push(f),f=""),a=parseFloat(r[s]),h.push(a),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:a,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-a)||0,f:0,m:d&&d<4?Math.round:0}),p+=c.length;return(f+=e.substr(p))&&h.push(f),h.setRatio=N,F.test(e)&&(h.end=null),h},U=function(t,e,i,n,r,o,a,s,l){"function"==typeof n&&(n=n(l||0,t));var u=typeof t[e],c="function"!==u?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),h="get"!==i?i:c?a?t[c](a):t[c]():t[e],p="str
1ing"==typeof n&&"="===n.charAt(1),f={t:t,p:e,s:h,f:"function"===u,pg:0,n:r||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:p?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-h||0};if(("number"!=typeof h||"number"!=typeof n&&!p)&&(a||isNaN(h)||!p&&isNaN(n)||"boolean"==typeof h||"boolean"==typeof n?(f.fp=a,f={t:V(h,p?parseFloat(f.s)+f.c+(f.s+"").replace(/[0-9\-\.]/g,""):n,s||z.defaultStringFilter,f),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):(f.s=parseFloat(h),p||(f.c=parseFloat(n)-f.s||0))),f.c)return(f._next=this._firstPT)&&(f._next._prev=f),this._firstPT=f,f},q=z._internals={isArray:v,isSelector:L,lazyTweens:R,blobDif:V},Y=z._plugins={},H=q.tweenLookup={},W=0,G=q.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},Z={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},X=O._rootFramesTimeline=new I,K=O._rootTimeline=new I,J=30,$=q.lazyRender=function(){var t,e=R.length;for(B={};--e>-1;)(t=R[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};K._startTime=u.time,X._startTime=u.frame,K._active=X._active=!0,setTimeout($,1),O._updateRoot=z.render=function(){var t,e,i;if(R.length&&$(),K.render((u.time-K._startTime)*K._timeScale,!1,!1),X.render((u.frame-X._startTime)*X._timeScale,!1,!1),R.length&&$(),u.frame>=J){for(i in J=u.frame+(parseInt(z.autoSleep,10)||120),H){for(t=(e=H[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if((!(i=K._first)||i._paused)&&z.autoSleep&&!X._first&&1===u._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||u.sleep()}}},u.addEventListener("tick",O._updateRoot);var Q=function(t,e,i){var n,r,o=t._gsTweenID;if(H[o||(t._gsTweenID=o="t"+W++)]||(H[o]={target:t,tweens:[]}),e&&((n=H[o].tweens)[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return H[o].tweens},tt=function(t,e,i,n){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,n)),(a=z.onOverwrite)&&(o=a(t,e,i,n)),!1!==r&&!1!==o},et=function(t,e,i,n,r){var o,a,s,l;if(1===n||n>=4){for(l=r.length,o=0;o<l;o++)if((s=r[o])!==e)s._gc||s._kill(null,t,e)&&(a=!0);else if(5===n)break;return a}var u,c=e._startTime+1e-10,h=[],p=0,f=0===e._duration;for(o=r.length;--o>-1;)(s=r[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(u=u||it(e,0,f),0===it(s,u,f)&&(h[p++]=s)):s._startTime<=c&&s._startTime+s.totalDuration()/s._timeScale>c&&((f||!s._initted)&&c-s._startTime<=2e-10||(h[p++]=s)));for(o=p;--o>-1;)if(s=h[o],2===n&&s._kill(i,t,e)&&(a=!0),2!==n||!s._firstPT&&s._initted){if(2!==n&&!tt(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},it=function(t,e,i){for(var n=t._timeline,r=n._timeScale,o=t._startTime;n._timeline;){if(o+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return(o/=r)>e?o-e:i&&o===e||!t._initted&&o-e<2e-10?1e-10:(o+=t.totalDuration()/t._timeScale/r)>e+1e-10?0:o-e-1e-10};l._init=function(){var t,e,i,n,r,o,a=this.vars,s=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,c=a.ease;if(a.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},a.startAt)r[n]=a.startAt[n];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=u&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=z.to(this.target||{},0,r),u)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(u=!1),i={},a)G[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&!1!==a.lazy,i.immediateRender=u,this._startAt=z.to(this.target,0,i),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof T?c:"function"==typeof c?new T(c,a.easeParams):k[c]||z.defaultEase:z.defaultEase,a.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&z._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0}
vendor: 4,897 bytes, line 1
1,l._initProps=function(e,i,n,r,o){var a,s,l,u,c,h;if(null==e)return!1;for(a in B[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==t&&e.nodeType&&Y.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!Y[i]||Y[i]&&Y[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,e),this.vars)if(h=this.vars[a],G[a])h&&(h instanceof Array||h.push&&v(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[a]=h=this._swapSelfInParams(h,this));else if(Y[a]&&(u=new Y[a])._onInitTween(e,this.vars[a],this,o)){for(this._firstPT=c={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:u._priority,m:0},s=u._overwriteProps.length;--s>-1;)i[u._overwriteProps[s]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[a]=U.call(this,e,a,"get",h,a,0,null,this.vars.stringFilter,o);return r&&this._kill(r,e)?this._initProps(e,i,n,r,o):this._overwrite>1&&this._firstPT&&n.length>1&&et(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(B[e._gsTweenID]=!0),l)},l.render=function(t,e,i){var n,r,o,a,s=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(u<0||t<=0&&t>=-1e-7||1e-10===u&&"isPause"!==this.data)&&u!==t&&(i=!0,u>1e-10&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||u===t?t:1e-10);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===l&&u>0)&&(r="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(1e-10!==u||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||u===t?t:1e-10)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,h=this._easeType,p=this._easePower;(1===h||3===h&&c>=.5)&&(c=1-c),3===h&&(c*=2),1===p?c*=c:2===p?c*=c*c:3===p?c*=c*c*c:4===p&&(c*=c*c*c*c),this.ratio=1===h?1-c:2===h?c:t/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==s||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=u,R.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,i):r||(r="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==s||n||i)&&this._callback("onUpdate")),r&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&1e-10===this._rawPrevTime&&1e-10!==a&&(this._rawPrevTime=0)))}},l._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:z.selector(e)||e;var n,r,o,a,s,l,u,c,h,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((v(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){s=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(u=t||s,c=t!==r&&"all"!==r&&t!==s&&("object"!=typeof t||!t._tempKill),i&&(z.onOverwrite||this.vars.onOverwrite)){for(o in u)s[o]&&(h||(h=[]),h.push(o));if((h||!t)&&!tt(this,i,e,h))return!1}for(o in u)(a=s[o])&&(p&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(u)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),c&&(r[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l}
vendor: 1,284 bytes, line 1
1,l.invalidate=function(){return this._notifyPluginsOfEnabled&&z._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],O.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},l._enabled=function(t,e){if(c||u.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Q(n[i],this,!0);else this._siblings=Q(this.target,this,!0)}return O.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?"_onEnable":"_onDisable",this)},z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new z(t,e,n)},z.delayedCall=function(t,e,i,n,r){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];var i,n,r,o;
vendor: 4,968 bytes, line 1
1if(t="string"!=typeof t?t:z.selector(t)||t,(v(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(z.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(o=n[i],r=i;--r>-1;)o===n[r]&&n.splice(i,1)}else if(t._gsTweenID)for(i=(n=Q(t).concat()).length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n||[]},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=z.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var nt=x("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(l=nt.prototype,nt.version="1.19.0",nt.API=2,l._firstPT=null,l._addTween=U,l.setRatio=N,l._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},l._mod=l._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},z._onPluginEvent=function(t,e){var i,n,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,n=r;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:o)?s._prev._next=s:r=s,(s._next=n)?n._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(i=!0),s=s._next;return i},nt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===nt.API&&(Y[(new t[e])._propName]=t[e]);return!0},b.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=x("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){nt.call(this,i,n),this._overwriteProps=r||[]},!0===t.global),s=a.prototype=new nt(i);for(e in s.constructor=a,a.API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},a=t._gsQueue){for(s=0;s<a.length;s++)a[s]();for(l in g)g[l].func||t.console.log("GSAP encountered missing dependency: "+l)}c=!1}(void 0!==e&&e.exports&&void 0!==t?t:this||window)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(t,e,i){(function(t){!function(t,i){"use strict";var n={},r=t.document,o=t.GreenSockGlobals=t.GreenSockGlobals||t;if(o.TweenLite)return o.TweenLite;var a,s,l,u,c,h,p,f=function(t){var e,i=t.split("."),n=o;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},d=f("com.greensock"),m=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},y=function(){},v=(h=Object.prototype.toString,p=h.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&h.call(t)===p)}),g={},_=function(i,r,a,s){this.sc=g[i]?g[i].sc:[],g[i]=this,this.gsClass=null,this.func=a;var l=[];this.check=function(u){for(var c,h,p,d,m=r.length,y=m;--m>-1;)(c=g[r[m]]||new _(r[m],[])).gsClass?(l[m]=c.gsClass,y--):u&&c.sc.push(this);if(0===y&&a){if(p=(h=("com.greensock."+i).split(".")).pop(),d=f(h.join("."))[p]=this.gsClass=a.apply(a,l),s)if(o[p]=n[p]=d,void 0!==e&&e.exports)if("TweenLite"===i)for(m in e.exports=n.TweenLite=d,n)d[m]=n[m];else n.TweenLite&&(n.TweenLite[p]=d);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return d});for(m=0;m<this.sc.length;m++)this.sc[m].check()}},this.check(!0)},b=t._gsDefine=function(t,e,i,n){return new _(t,e,i,n)},x=d._class=function(t,e,i){return e=e||function(){},b(t,[],function(){return e},i),e};b.globals=o;var w=[0,0,1,1],T=x("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?w.concat(e):w},!0),k=T.map={},S=T.register=function(t,e,i,n){for(var r,o,a,s,l=e.split(","),u=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(o=l[u],r=n?x("easing."+o,null,!0):d.easing[o]||{},a=c.length;--a>-1;)s=c[a],k[o+"."+s]=k[s+o]=r[s]=t.getRatio?t:t[s]||new t};for((l=T.prototype)._calcEnd=!1,l.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:t<.5?n/2:1-n/2},s=(a=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--s>-1;)l=a[s]+",Power"+s,S(new T(null,null,1,s),l,"easeOut",!0),S(new T(null,null,2,s),l,"easeIn"+(0===s?",easeNone":"")),S(new T(null,null,3,s),l,"easeInOut");k.linear=d.easing.Linear.easeIn,k.swing=d.easing.Quad.easeInOut;var E=x("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});
1(l=E.prototype).addEventListener=function(t,e,i,n,r){r=r||0;var o,a,s=this._listeners[t],l=0;for(this!==u||c||u.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;--a>-1;)(o=s[a]).c===e&&o.s===i?s.splice(a,1):0===l&&o.pr<r&&(l=a+1);s.splice(l,0,{c:e,s:i,up:n,pr:r})},l.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},l.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for((e=r.length)>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)(n=r[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var P=t.requestAnimationFrame,A=t.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},D=C();for(s=(a=["ms","moz","webkit","o"]).length;--s>-1&&!P;)P=t[a[s]+"RequestAnimationFrame"],A=t[a[s]+"CancelAnimationFrame"]||t[a[s]+"CancelRequestAnimationFrame"];x("Ticker",function(t,e){var i,n,o,a,s,l=this,h=C(),p=!(!1===e||!P)&&"auto",f=500,d=33,m=function(t){var e,r,u=C()-D;u>f&&(h+=u-d),D+=u,l.time=(D-h)/1e3,e=l.time-s,(!i||e>0||!0===t)&&(l.frame++,s+=e+(e>=a?.004:a-e),r=!0),!0!==t&&(o=n(m)),r&&l.dispatchEvent("tick")};E.call(l),l.time=l.frame=0,l.tick=function(){m(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return f<1e10;f=t||1e10,d=Math.min(e,f,0)},l.sleep=function(){null!=o&&(p&&A?A(o):clearTimeout(o),n=y,o=null,l===u&&(c=!1))},l.wake=function(t){null!==o?l.sleep():t?h+=-D+(D=C()):l.frame>10&&(D=C()-f+5),n=0===i?y:p&&P?P:function(t){return setTimeout(t,1e3*(s-l.time)+1|0)},l===u&&(c=!0),m(2)},l.fps=function(t){if(!arguments.length)return i;a=1/((i=t)||60),s=this.time+a,l.wake()},l.useRAF=function(t){if(!arguments.length)return p;l.sleep(),p=t,l.fps(i)},l.fps(t),setTimeout(function(){"auto"===p&&l.frame<5&&"hidden"!==(r||{}).visibilityState&&l.useRAF(!1)},1500)}),(l=d.Ticker.prototype=new d.events.EventDispatcher).constructor=d.Ticker;var O=x("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,K){c||u.wake();var i=this.vars.useFrames?X:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});u=O.ticker=new d.Ticker,(l=O.prototype)._dirty=l._gc=l._initted=l._paused=!1,l._totalTime=l._time=0,l._rawPrevTime=-1,l._next=l._last=l._onUpdate=l._timeline=l.timeline=null,l._paused=!1;var M=function(){c&&C()-D>2e3&&("hidden"!==(r||{}).visibilityState||!u.lagSmoothing())&&u.wake();var t=setTimeout(M,2e3);t.unref&&t.unref()};M(),l.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},l.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},l.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},l.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},l.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},l.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},l.render=function(t,e,i){},l.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},l.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-1e-7},l._enabled=function(t,e){return c||u.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},l._kill=function(t,e){return this._enabled(!1,!1)},l.kill=function(t,e){return this._kill(t,e),this},l._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},l._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},l._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(n?n.length:0){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}}
vendor: 13,822 bytes, line 1
1,l.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=v(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},l.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},l.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},l.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},l.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},l.totalTime=function(t,e,i){if(c||u.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(R.length&&$(),this.render(t,e,!1),R.length&&$())}return this},l.progress=l.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},l.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},l.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},l.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||1e-10,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},l.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},l.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(c||t||u.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var I=x("core.SimpleTimeline",function(t){O.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(l=I.prototype=new O).constructor=I,l.kill()._gc=!1,l._first=l._last=l._recent=null,l._sortChildren=!1,l.add=l.insert=function(t,e,i,n){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},l._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},l.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},l.rawTime=function(){return c||u.wake(),this._totalTime};var z=x("TweenLite",function(e,i,n){if(O.call(this,i,n),this.render=z.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:z.selector(e)||e;var r,o,a,s=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Z[z.defaultOverwrite]:"number"==typeof l?l>>0:Z[l],(s||e instanceof Array||e.push&&v(e))&&"number"!=typeof e[0])for(this._targets=a=m(e),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)(o=a[r])?"string"!=typeof o?o.length&&o!==t&&o[0]&&(o[0]===t||o[0].nodeType&&o[0].style&&!o.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(m(o))):(this._siblings[r]=Q(o,this,!1),1===l&&this._siblings[r].length>1&&et(o,this,null,1,this._siblings[r])):"string"==typeof(o=a[r--]=z.selector(o))&&a.splice(r+1,1):a.splice(r--,1);else this._propLookup={},this._siblings=Q(e,this,!1),1===l&&this._siblings.length>1&&et(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)};(l=z.prototype=new O).constructor=z,l.kill()._gc=!1,l.ratio=0,l._firstPT=l._targets=l._overwrittenProps=l._startAt=null,l._notifyPluginsOfEnabled=l._lazy=!1,z.version="1.20.5",z.defaultEase=l._ease=new T(null,null,1,1),z.defaultOverwrite="auto",z.ticker=u,z.autoSleep=120,z.lagSmoothing=function(t,e){u.lagSmoothing(t,e)},z.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(z.selector=i,i(e)):(r||(r=t.document),r?r.querySelectorAll?r.querySelectorAll(e):r.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var R=[],B={},j=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F=/[\+-]=-?[\.\d]/,N=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&e>-1e-6&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},V=function(t,e,i,n){var r,o,a,s,l,u,c,h=[],p=0,f="",d=0;for(h.start=t,h.end=e,t=h[0]=t+"",e=h[1]=e+"",i&&(i(h),t=h[0],e=h[1]),h.length=0,r=t.match(j)||[],o=e.match(j)||[],n&&(n._next=null,n.blob=1,h._firstPT=h._applyPT=n),l=o.length,s=0;s<l;s++)c=o[s],f+=(u=e.substr(p,e.indexOf(c,p)-p))||!s?u:",",p+=u.length,d?d=(d+1)%5:"rgba("===u.substr(-5)&&(d=1),c===r[s]||r.length<=s?f+=c:(f&&(h.push(f),f=""),a=parseFloat(r[s]),h.push(a),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:a,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-a)||0,f:0,m:d&&d<4?Math.round:0}),p+=c.length;return(f+=e.substr(p))&&h.push(f),h.setRatio=N,F.test(e)&&(h.end=null),h},U=function(t,e,i,n,r,o,a,s,l){"function"==typeof n&&(n=n(l||0,t));var u=typeof t[e],c="function"!==u?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),h="get"!==i?i:c?a?t[c](a):t[c]():t[e],p="string"==typeof n&&"="===n.charAt(1),f={t:t,p:e,s:h,f:"function"===u,pg:0,n:r||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:p?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-h||0};if(("number"!=typeof h||"number"!=typeof n&&!p)&&(a||isNaN(h)||!p&&isNaN(n)||"boolean"==typeof h||"boolean"==typeof n?(f.fp=a,f={t:V(h,p?parseFloat(f.s)+f.c+(f.s+"").replace(/[0-9\-\.]/g,""):n,s||z.defaultStringFilter,f),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):(f.s=parseFloat(h),p||(f.c=parseFloat(n)-f.s||0))),f.c)return(f._next=this._firstPT)&&(f._next._prev=f),this._firstPT=f,f},q=z._internals={isArray:v,isSelector:L,lazyTweens:R,blobDif:V},Y=z._plugins={},H=q.tweenLookup={},W=0,G=q.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},Z={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},X=O._rootFramesTimeline=new I,K=O._rootTimeline=new I,J=30,$=q.lazyRender=function(){var t,e=R.length;for(B={};--e>-1;)(t=R[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};K._startTime=u.time,X._startTime=u.frame,K._active=X._active=!0,setTimeout($,1),O._updateRoot=z.render=function(){var t,e,i;if(R.length&&$(),K.render((u.time-K._startTime)*K._timeScale,!1,!1),X.render((u.frame-X._startTime)*X._timeScale,!1,!1),R.length&&$(),u.frame>=J){for(i in J=u.frame+(parseInt(z.autoSleep,10)||120),H){for(t=(e=H[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if((!(i=K._first)||i._paused)&&z.autoSleep&&!X._first&&1===u._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||u.sleep()}}},u.addEventListener("tick",O._updateRoot);var Q=function(t,e,i){var n,r,o=t._gsTweenID;if(H[o||(t._gsTweenID=o="t"+W++)]||(H[o]={target:t,tweens:[]}),e&&((n=H[o].tweens)[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return H[o].tweens},tt=function(t,e,i,n){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,n)),(a=z.onOverwrite)&&(o=a(t,e,i,n)),!1!==r&&!1!==o},et=function(t,e,i,n,r){var o,a,s,l;if(1===n||n>=4){for(l=r.length,o=0;o<l;o++)if((s=r[o])!==e)s._gc||s._kill(null,t,e)&&(a=!0);else if(5===n)break;return a}var u,c=e._startTime+1e-10,h=[],p=0,f=0===e._duration;for(o=r.length;--o>-1;)(s=r[o])===e||s._gc||s._paused||(s._timeline!==e._timeline?(u=u||it(e,0,f),0===it(s,u,f)&&(h[p++]=s)):s._startTime<=c&&s._startTime+s.totalDuration()/s._timeScale>c&&((f||!s._initted)&&c-s._startTime<=2e-10||(h[p++]=s)));for(o=p;--o>-1;)if(s=h[o],2===n&&s._kill(i,t,e)&&(a=!0),2!==n||!s._firstPT&&s._initted){if(2!==n&&!tt(s,e))continue;s._enabled(!1,!1)&&(a=!0)}return a},it=function(t,e,i){for(var n=t._timeline,r=n._timeScale,o=t._startTime;n._timeline;){if(o+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return(o/=r)>e?o-e:i&&o===e||!t._initted&&o-e<2e-10?1e-10:(o+=t.totalDuration()/t._timeScale/r)>e+1e-10?0:o-e-1e-10};l._init=function(){var t,e,i,n,r,o,a=this.vars,s=this._overwrittenProps,l=this._duration,u=!!a.immediateRender,c=a.ease;if(a.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},a.startAt)r[n]=a.startAt[n];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=u&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=z.to(this.target||{},0,r),u)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(u=!1),i={},a)G[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&!1!==a.lazy,i.immediateRender=u,this._startAt=z.to(this.target,0,i),u){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof T?c:"function"==typeof c?new T(c,a.easeParams):k[c]||z.defaultEase:z.defaultEase,a.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&z._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},l._initProps=function(e,i,n,r,o){var a,s,l,u,c,h;if(null==e)return!1;for(a in B[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==t&&e.nodeType&&Y.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!Y[i]||Y[i]&&Y[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,e),this.vars)if(h=this.vars[a],G[a])h&&(h instanceof Array||h.push&&v(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[a]=h=this._swapSelfInParams(h,this));else if(Y[a]&&(u=new Y[a])._onInitTween(e,this.vars[a],this,o)){for(this._firstPT=c={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:u._priority,m:0},s=u._overwriteProps.length;--s>-1;)i[u._overwriteProps[s]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[a]=U.call(this,e,a,"get",h,a,0,null,this.vars.stringFilter,o);return r&&this._kill(r,e)?this._initProps(e,i,n,r,o):this._overwrite>1&&this._firstPT&&n.length>1&&et(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,o)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&
vendor: 4,377 bytes, line 1
1!this._duration)&&(B[e._gsTweenID]=!0),l)},l.render=function(t,e,i){var n,r,o,a,s=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(u<0||t<=0&&t>=-1e-7||1e-10===u&&"isPause"!==this.data)&&u!==t&&(i=!0,u>1e-10&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||u===t?t:1e-10);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===l&&u>0)&&(r="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(1e-10!==u||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||u===t?t:1e-10)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,h=this._easeType,p=this._easePower;(1===h||3===h&&c>=.5)&&(c=1-c),3===h&&(c*=2),1===p?c*=c:2===p?c*=c*c:3===p?c*=c*c*c:4===p&&(c*=c*c*c*c),this.ratio=1===h?1-c:2===h?c:t/l<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==s||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=u,R.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,i):r||(r="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==s||n||i)&&this._callback("onUpdate")),r&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&1e-10===this._rawPrevTime&&1e-10!==a&&(this._rawPrevTime=0)))}},l._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:z.selector(e)||e;var n,r,o,a,s,l,u,c,h,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((v(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){s=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(u=t||s,c=t!==r&&"all"!==r&&t!==s&&("object"!=typeof t||!t._tempKill),i&&(z.onOverwrite||this.vars.onOverwrite)){for(o in u)s[o]&&(h||(h=[]),h.push(o));if((h||!t)&&!tt(this,i,e,h))return!1}for(o in u)(a=s[o])&&(p&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(u)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),c&&(r[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},l.invalidate=function(){return this._notifyPluginsOfEnabled&&z._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],O.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},l._enabled=function(t,e){if(c||u.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Q(n[i],this,!0);else this._siblings=Q(this.target,this,!0)}return O.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?"_onEnable":"_onDisable",this)}
1,z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new z(t,e,n)},z.delayedCall=function(t,e,i,n,r){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];var i,n,r,o;if(t="string"!=typeof t?t:z.selector(t)||t,(v(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(z.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(o=n[i],r=i;--r>-1;)o===n[r]&&n.splice(i,1)}else if(t._gsTweenID)for(i=(n=Q(t).concat()).length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n||[]},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=z.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var nt=x("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(l=nt.prototype,nt.version="1.19.0",nt.API=2,l._firstPT=null,l._addTween=U,l.setRatio=N,l._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},l._mod=l._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},z._onPluginEvent=function(t,e){var i,n,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,n=r;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:o)?s._prev._next=s:r=s,(s._next=n)?n._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(i=!0),s=s._next;return i},nt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===nt.API&&(Y[(new t[e])._propName]=t[e]);return!0},b.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=x("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){nt.call(this,i,n),this._overwriteProps=r||[]},!0===t.global),s=a.prototype=new nt(i);for(e in s.constructor=a,a.API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},a=t._gsQueue){for(s=0;s<a.length;s++)a[s]();for(l in g)g[l].func||t.console.log("GSAP encountered missing dependency: "+l)}c=!1}(void 0!==e&&e.exports&&void 0!==t?t:this||window)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],52:[function(t,e,i){!function(t,i,n,r){"use strict";var o,a=["","webkit","Moz","MS","ms","o"],s=i.createElement("div"),l="function",u=Math.round,c=Math.abs,h=Date.now;function p(t,e,i){return setTimeout(_(t,i),e)}function f(t,e,i){return!!Array.isArray(t)&&(d(t,i[e],i),!0)}function d(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==r)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function m(e,i,n){var r="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=new Error("get-stack-trace"),n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,n),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===r||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==r&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;
vendor: 4,501 bytes, line 1
1var y=m(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&t[n[o]]===r)&&(t[n[o]]=e[n[o]]),o++;return t},"extend","Use `assign`."),v=m(function(t,e){return y(t,e,!0)},"merge","Use `assign`.");function g(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&o(n,i)}function _(t,e){return function(){return t.apply(e,arguments)}}function b(t,e){return typeof t==l?t.apply(e&&e[0]||r,e):t}function x(t,e){return t===r?e:t}function w(t,e,i){d(E(e),function(e){t.addEventListener(e,i,!1)})}function T(t,e,i){d(E(e),function(e){t.removeEventListener(e,i,!1)})}function k(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function S(t,e){return t.indexOf(e)>-1}function E(t){return t.trim().split(/\s+/g)}function P(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function A(t){return Array.prototype.slice.call(t,0)}function C(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];P(r,a)<0&&n.push(t[o]),r[o]=a,o++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function D(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),s=0;s<a.length;){if((n=(i=a[s])?i+o:e)in t)return n;s++}return r}var O=1;function M(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}var I="ontouchstart"in t,z=D(t,"PointerEvent")!==r,L=I&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R=25,B=1,j=2,F=4,N=8,V=1,U=2,q=4,Y=8,H=16,W=U|q,G=Y|H,Z=W|G,X=["x","y"],K=["clientX","clientY"];function J(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){b(t.options.enable,[t])&&i.handler(e)},this.init()}function $(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,a=e&B&&n-o==0,s=e&(F|N)&&n-o==0;i.isFirst=!!a,i.isFinal=!!s,a&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Q(e));o>1&&!i.firstMultiple?i.firstMultiple=Q(e):1===o&&(i.firstMultiple=!1);var a=i.firstInput,s=i.firstMultiple,l=s?s.center:a.center,u=e.center=tt(n);e.timeStamp=h(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=rt(l,u),e.distance=nt(l,u),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==B&&o.eventType!==F||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=it(e.deltaX,e.deltaY);var p=et(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=c(p.x)>c(p.y)?p.x:p.y,e.scale=s?(f=s.pointers,d=n,nt(d[0],d[1],K)/nt(f[0],f[1],K)):1,e.rotation=s?function(t,e){return rt(e[1],e[0],K)+rt(t[1],t[0],K)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,a,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=N&&(l>R||s.velocity===r)){var u=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,p=et(l,u,h);n=p.x,o=p.y,i=c(p.x)>c(p.y)?p.x:p.y,a=it(u,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,a=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=a}(i,e);var f,d;var m=t.element;k(e.srcEvent.target,m)&&(m=e.srcEvent.target);e.target=m}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function Q(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:u(t.pointers[i].clientX),clientY:u(t.pointers[i].clientY)},i++;return{timeStamp:h(),pointers:e,center:tt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function tt(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:u(i/e),y:u(n/e)}}function et(t,e,i){return{x:e/t||0,y:i/t||0}}function it(t,e){return t===e?V:c(t)>=c(e)?t<0?U:q:e<0?Y:H}function nt(t,e,i){i||(i=X);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function rt(t,e,i){i||(i=X);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(M(this.element),this.evWin,this.domHandler)}};
1var ot={mousedown:B,mousemove:j,mouseup:F},at="mousedown",st="mousemove mouseup";function lt(){this.evEl=at,this.evWin=st,this.pressed=!1,J.apply(this,arguments)}g(lt,J,{handler:function(t){var e=ot[t.type];e&B&&0===t.button&&(this.pressed=!0),e&j&&1!==t.which&&(e=F),this.pressed&&(e&F&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ut={pointerdown:B,pointermove:j,pointerup:F,pointercancel:N,pointerout:N},ct={2:"touch",3:"pen",4:"mouse",5:"kinect"},ht="pointerdown",pt="pointermove pointerup pointercancel";function ft(){this.evEl=ht,this.evWin=pt,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ht="MSPointerDown",pt="MSPointerMove MSPointerUp MSPointerCancel"),g(ft,J,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=ut[n],o=ct[t.pointerType]||t.pointerType,a="touch"==o,s=P(e,t.pointerId,"pointerId");r&B&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(F|N)&&(i=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))}});var dt={touchstart:B,touchmove:j,touchend:F,touchcancel:N},mt="touchstart",yt="touchstart touchmove touchend touchcancel";function vt(){this.evTarget=mt,this.evWin=yt,this.started=!1,J.apply(this,arguments)}g(vt,J,{handler:function(t){var e=dt[t.type];if(e===B&&(this.started=!0),this.started){var i=function(t,e){var i=A(t.touches),n=A(t.changedTouches);e&(F|N)&&(i=C(i.concat(n),"identifier",!0));return[i,n]}.call(this,t,e);e&(F|N)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}}});var gt={touchstart:B,touchmove:j,touchend:F,touchcancel:N},_t="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=_t,this.targetIds={},J.apply(this,arguments)}g(bt,J,{handler:function(t){var e=gt[t.type],i=function(t,e){var i=A(t.touches),n=this.targetIds;if(e&(B|j)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,a=A(t.changedTouches),s=[],l=this.target;if(o=i.filter(function(t){return k(t.target,l)}),e===B)for(r=0;r<o.length;)n[o[r].identifier]=!0,r++;r=0;for(;r<a.length;)n[a[r].identifier]&&s.push(a[r]),e&(F|N)&&delete n[a[r].identifier],r++;if(!s.length)return;return[C(o.concat(s),"identifier",!0),s]}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}});var xt=2500,wt=25;function Tt(){J.apply(this,arguments);var t=_(this.handler,this);this.touch=new bt(this.manager,t),this.mouse=new lt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function kt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},xt)}}g(Tt,J,{handler:function(t,e,i){var n="touch"==i.pointerType,r="mouse"==i.pointerType;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)(function(t,e){t&B?(this.primaryTouch=e.changedPointers[0].identifier,kt.call(this,e)):t&(F|N)&&kt.call(this,e)}).call(this,e,i);else if(r&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),a=Math.abs(i-r.y);if(o<=wt&&a<=wt)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var St=D(s.style,"touchAction"),Et=St!==r,Pt="auto",At="manipulation",Ct="none",Dt="pan-x",Ot="pan-y",Mt=function(){if(!Et)return!1;var e={},i=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!i||t.CSS.supports("touch-action",n)}),e}();function It(t,e){this.manager=t,this.set(e)}It.prototype={set:function(t){"compute"==t&&(t=this.compute()),Et&&this.manager.element.style&&Mt[t]&&(this.manager.element.style[St]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return d(this.manager.recognizers,function(e){b(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(S(t,Ct))return Ct;var e=S(t,Dt),i=S(t,Ot);if(e&&i)return Ct;if(e||i)return e?Dt:Ot;if(S(t,At))return At;return Pt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=S(n,Ct)&&!Mt[Ct],o=S(n,Ot)&&!Mt[Ot],a=S(n,Dt)&&!Mt[Dt];if(r){var s=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;
vendor: 10,053 bytes, line 1
1if(s&&l&&u)return}if(!a||!o)return r||o&&i&W||a&&i&G?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var zt=1,Lt=2,Rt=4,Bt=8,jt=Bt,Ft=16;function Nt(t){this.options=o({},this.defaults,t||{}),this.id=O++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=zt,this.simultaneous={},this.requireFail=[]}function Vt(t){return t&Ft?"cancel":t&Bt?"end":t&Rt?"move":t&Lt?"start":""}function Ut(t){return t==H?"down":t==Y?"up":t==U?"left":t==q?"right":""}function qt(t,e){var i=e.manager;return i?i.get(t):t}function Yt(){Nt.apply(this,arguments)}function Ht(){Yt.apply(this,arguments),this.pX=null,this.pY=null}function Wt(){Yt.apply(this,arguments)}function Gt(){Nt.apply(this,arguments),this._timer=null,this._input=null}function Zt(){Yt.apply(this,arguments)}function Xt(){Yt.apply(this,arguments)}function Kt(){Nt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Jt(t,e){return(e=e||{}).recognizers=x(e.recognizers,Jt.defaults.preset),new $t(t,e)}Nt.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=qt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)?this:(t=qt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===P(e,t=qt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=qt(t,this);var e=P(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<Bt&&n(e.options.event+Vt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=Bt&&n(e.options.event+Vt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|zt)))return!1;t++}return!0},recognize:function(t){var e=o({},t);if(!b(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(jt|Ft|32)&&(this.state=zt),this.state=this.process(e),this.state&(Lt|Rt|Bt|Ft)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},g(Yt,Nt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(Lt|Rt),r=this.attrTest(t);return n&&(i&N||!r)?e|Ft:n||r?i&F?e|Bt:e&Lt?e|Rt:Lt:32}}),g(Ht,Yt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var t=this.options.direction,e=[];return t&W&&e.push(Ot),t&G&&e.push(Dt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&W?(r=0===o?V:o<0?U:q,i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===a?V:a<0?Y:H,i=a!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return Yt.prototype.attrTest.call(this,t)&&(this.state&Lt||!(this.state&Lt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(Wt,Yt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Lt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Gt,Nt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Pt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(F|N)&&!r)this.reset();else if(t.eventType&B)this.reset(),this._timer=p(function(){this.state=jt,this.tryEmit()},e.time,this);else if(t.eventType&F)return jt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===jt&&(t&&t.eventType&F?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),g(Zt,Yt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Lt)}}),g(Xt,Yt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:W|G,pointers:1},getTouchAction:function(){return Ht.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(W|G)?e=t.overallVelocity:i&W?e=t.overallVelocityX:i&G&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(e)>this.options.velocity&&t.eventType&F},emit:function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(Kt,Nt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[At]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&B&&0===this.count)return this.failTimeout();if(n&&r&&i){if(t.eventType!=F)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||nt(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=p(function(){this.state=jt,this.tryEmit()},e.interval,this),Lt):jt}return 32},failTimeout:function(){return this._timer=p(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==jt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Jt.VERSION="2.0.7",Jt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Zt,{enable:!1}],[Wt,{enable:!1},["rotate"]],[Xt,{direction:W}],[Ht,{direction:W},["swipe"]],[Kt],[Kt,{event:"doubletap",taps:2},["tap"]],[Gt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function $t(t,e){var i;this.options=o({},Jt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(z?ft:L?bt:I?Tt:lt))(i,$),this.touchAction=new It(this,this.options.touchAction),Qt(this,!0),d(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Qt(t,e){var i,n=t.element;n.style&&(d(t.options.cssProps,function(r,o){i=D(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={}))}$t.prototype={set:function(t){return o(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&jt)&&(r=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(Lt|Rt|Bt)&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof Nt)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=P(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==r&&e!==r){var i=this.handlers;return d(E(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==r){var i=this.handlers;return d(E(t),function(t){e?i[t]&&i[t].splice(P(i[t],e),1):delete i[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Qt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Jt,{INPUT_START:B,INPUT_MOVE:j,INPUT_END:F,INPUT_CANCEL:N,STATE_POSSIBLE:zt,STATE_BEGAN:Lt,STATE_CHANGED:Rt,STATE_ENDED:Bt,STATE_RECOGNIZED:jt,STATE_CANCELLED:Ft,STATE_FAILED:32,DIRECTION_NONE:V,DIRECTION_LEFT:U,DIRECTION_RIGHT:q,DIRECTION_UP:Y,DIRECTION_DOWN:H,DIRECTION_HORIZONTAL:W,DIRECTION_VERTICAL:G,DIRECTION_ALL:Z,Manager:$t,Input:J,TouchAction:It,TouchInput:bt,MouseInput:lt,PointerEventInput:ft,TouchMouseInput:Tt,SingleTouchInput:vt,Recognizer:Nt,AttrRecognizer:Yt,Tap:Kt,Pan:Ht,Swipe:Xt,Pinch:Wt,Rotate:Zt,Press:Gt,on:w,off:T,each:d,merge:v,extend:y,assign:o,inherit:g,bindFn:_,prefixed:D}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Jt,"function"==typeof define&&define.amd?define(function(){return Jt}):void 0!==e&&e.exports?e.exports=Jt:t.Hammer=Jt}(window,document)},{}
vendor: 4,247 bytes, line 1
1],53:[function(t,e,i){!function(t,i){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var i=[],n=Object.getPrototypeOf,r=i.slice,o=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},a=i.push,s=i.indexOf,l={},u=l.toString,c=l.hasOwnProperty,h=c.toString,p=h.call(Object),f={},d=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},y=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function g(t,e,i){var n,r,o=(i=i||y).createElement("script");if(o.text=t,e)for(n in v)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t}var b=/HTML$/i,x=function(t,e){return new x.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,i=_(t);return!d(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}x.fn=x.prototype={jquery:"3.7.1",constructor:x,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var t,e,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||d(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&a!==n&&(u&&n&&(x.isPlainObject(n)||(r=Array.isArray(n)))?(i=a[e],o=r&&!Array.isArray(i)?[]:r||x.isPlainObject(i)?i:{},r=!1,a[e]=x.extend(u,o,n)):void 0!==n&&(a[e]=n));return a},x.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==u.call(t))&&(!(e=n(t))||"function"==typeof(i=c.call(e,"constructor")&&e.constructor)&&h.call(i)===p)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){g(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(w(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,r=t.nodeType;if(!r)for(;e=t[n++];)i+=x.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:i},makeArray:function(t,e){var i=e||[];return null!=t&&(w(Object(t))?x.merge(i,"string"==typeof t?[t]:t):a.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:s.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!b.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,a=!i;r<o;r++)!e(t[r],r)!==a&&n.push(t[r]);return n},map:function(t,e,i){var n,r,a=0,s=[];if(w(t))for(n=t.length;a<n;a++)null!=(r=e(t[a],a,i))&&s.push(r);else for(a in t)null!=(r=e(t[a],a,i))&&s.push(r);return o(s)},guid:1,support:f}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){l["[object "+e+"]"]=e.toLowerCase()});
vendor: 11,539 bytes, line 1
1var k=i.pop,S=i.sort,E=i.splice,P="[\\x20\\t\\r\\n\\f]",A=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");x.contains=function(t,e){var i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))};var C=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}x.escapeSelector=function(t){return(t+"").replace(C,D)};var O=y,M=a;!function(){var e,n,o,a,l,u,h,p,d,m,y=M,v=x.expando,g=0,_=0,b=tt(),w=tt(),C=tt(),D=tt(),I=function(t,e){return t===e&&(l=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",B=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",j=new RegExp(P+"+","g"),F=new RegExp("^"+P+"*,"+P+"*"),N=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=new RegExp(P+"|>"),U=new RegExp(B),q=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},J=function(){lt()},$=pt(function(t){return!0===t.disabled&&T(t,"fieldset")},{dir:"parentNode",next:"legend"});try{y.apply(i=r.call(O.childNodes),O.childNodes),i[O.childNodes.length].nodeType}catch(t){y={apply:function(t,e){M.apply(t,r.call(e))},call:function(t){M.apply(t,r.call(arguments,1))}}}function Q(t,e,i,n){var r,o,a,s,l,c,h,m=e&&e.ownerDocument,g=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return i;if(!n&&(lt(e),e=e||u,p)){if(11!==g&&(l=G.exec(t)))if(r=l[1]){if(9===g){if(!(a=e.getElementById(r)))return i;if(a.id===r)return y.call(i,a),i}else if(m&&(a=m.getElementById(r))&&Q.contains(e,a)&&a.id===r)return y.call(i,a),i}else{if(l[2])return y.apply(i,e.getElementsByTagName(t)),i;if((r=l[3])&&e.getElementsByClassName)return y.apply(i,e.getElementsByClassName(r)),i}if(!(D[t+" "]||d&&d.test(t))){if(h=t,m=e,1===g&&(V.test(t)||N.test(t))){for((m=Z.test(t)&&st(e.parentNode)||e)==e&&f.scope||((s=e.getAttribute("id"))?s=x.escapeSelector(s):e.setAttribute("id",s=v)),o=(c=ct(t)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+ht(c[o]);h=c.join(",")}try{return y.apply(i,m.querySelectorAll(h)),i}catch(e){D(t,!0)}finally{s===v&&e.removeAttribute("id")}}}return gt(t.replace(A,"$1"),e,i,n)}function tt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function et(t){return t[v]=!0,t}function it(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return T(e,"input")&&e.type===t}}function rt(t){return function(e){return(T(e,"input")||T(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&$(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et(function(e){return e=+e,et(function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))})})}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var e,i=t?t.ownerDocument||t:O;return i!=u&&9===i.nodeType&&i.documentElement?(h=(u=i).documentElement,p=!x.isXMLDoc(u),m=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&O!=u&&(e=u.defaultView)&&e.top!==e&&e.addEventListener("unload",J),f.getById=it(function(t){return h.appendChild(t).id=x.expando,!u.getElementsByName||!u.getElementsByName(x.expando).length}),f.disconnectedMatch=it(function(t){return m.call(t,"*")}),f.scope=it(function(){return u.querySelectorAll(":scope")}),f.cssHas=it(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),f.getById?(n.filter.ID=function(t){var e=t.replace(X,K);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(X,K);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},n.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&p)return e.getElementsByClassName(t)},d=[],it(function(t){var e;h.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+P+"*(?:value|"+z+")"),t.querySelectorAll("[id~="+v+"-]").length||d.push("~="),t.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")}),f.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),I=function(t,e){if(t===e)return l=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===u||t.ownerDocument==O&&Q.contains(O,t)?-1:e===u||e.ownerDocument==O&&Q.contains(O,e)?1:a?s.call(a,t)-s.call(a,e):0:4&i?-1:1)},u):u}for(e in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(lt(t),p&&!D[e+" "]&&(!d||!d.test(e)))try{var i=m.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){D(e,!0)}return Q(e,u,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=u&&lt(t),x.contains(t,e)},Q.attr=function(t,e){(t.ownerDocument||t)!=u&&lt(t);var i=n.attrHandle[e.toLowerCase()],r=i&&c.call(n.attrHandle,e.toLowerCase())?i(t,e,!p):void 0;return void 0!==r?r:t.getAttribute(e)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},x.uniqueSort=function(t){var e,i=[],n=0,o=0;if(l=!f.sortStable,a=!f.sortStable&&r.call(t,0),S.call(t,I),l){for(;e=t[o++];)e===t[o]&&(n=i.push(o));for(;n--;)E.call(t,i[n],1)}return a=null,t},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(r.apply(this)))},(n=x.expr={cacheLength:50,createPseudo:et,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(X,K),t[3]=(t[3]||t[4]||t[5]||"").replace(X,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&U.test(i)&&(e=ct(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(X,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return T(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&b(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var r=Q.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(j," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,p,f,d=o!==a?"nextSibling":"previousSibling",m=e.parentNode,y=s&&e.nodeName.toLowerCase(),_=!l&&!s,b=!1;if(m){if(o){for(;d;){for(h=e;h=h[d];)if(s?T(h,y):1===h.nodeType)return!1;f=d="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&_){for(b=(p=(u=(c=m[v]||(m[v]={}))[t]||[])[0]===g&&u[1])&&u[2],h=p&&m.childNodes[p];h=++p&&h&&h[d]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[g,p,b];break}}else if(_&&(b=p=(u=(c=e[v]||(e[v]={}))[t]||[])[0]===g&&u[1]),!1===b)for(;(h=++p&&h&&h[d]||(b=p=0)||f.pop())&&((s?!T(h,y):1!==h.nodeType)||!++b||(_&&((c=h[v]||(h[v]={}))[t]=[g,b]),h!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return r[v]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,i){for(var n,o=r(t,e),a=o.length;a--;)t[n=s.call(t,o[a])]=!(i[n]=o[a])}):function(t){return r(t,0,i)}):r}},pseudos:{not:et(function(t){var e=[],i=[],n=vt(t.replace(A,"$1"));return n[v]?et(function(t,e,i,r){for(var o,a=n(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:et(function(t){return function(e){return Q(t,e).length>0}}),contains:et(function(t){return t=t.replace(X,K),function(e){return(e.textContent||x.text(e)).indexOf(t)>-1}}),lang:et(function(t){return q.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace(X,K).toLowerCase(),function(e){var i;do{if(i=p?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return T(t,"input")&&!!t.checked||T(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)}
vendor: 2,300 bytes, line 1
1,header:function(t){return W.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return T(t,"input")&&"button"===t.type||T(t,"button")},text:function(t){var e;return T(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at(function(){return[0]}),last:at(function(t,e){return[e-1]}),eq:at(function(t,e,i){return[i<0?i+e:i]}),even:at(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:at(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:at(function(t,e,i){var n;for(n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t}),gt:at(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=nt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=rt(e);function ut(){}function ct(t,e){var i,r,o,a,s,l,u,c=w[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=n.preFilter;s;){for(a in i&&!(r=F.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=N.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(A," ")}),s=s.slice(i.length)),n.filter)!(r=Y[a].exec(s))||u[a]&&!(r=u[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return e?s.length:s?Q.error(t):w(t,l).slice(0)}function ht(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function pt(t,e,i){var n=e.dir,r=e.next,o=r||n,a=i&&"parentNode"===o,s=_++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||a)return t(e,i,r);return!1}:function(e,i,l){var u,c,h=[g,s];if(l){for(;e=e[n];)if((1===e.nodeType||a)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||a)if(c=e[v]||(e[v]={}),r&&T(e,r))e=e[n]||e;else{if((u=c[o])&&u[0]===g&&u[1]===s)return h[2]=u[2];if(c[o]=h,h[2]=t(e,i,l))return!0}return!1}}function ft(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function dt(t,e,i,n,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,n,r)||(a.push(o),u&&e.push(s)));return a}function mt(t,e,i,n,r,o){return n&&!n[v]&&(n=mt(n)),r&&!r[v]&&(r=mt(r,o)),et(function(o,a,l,u){var c,h,p,f,d=[],m=[],v=a.length,g=o||function(t,e,i){for(var n=0,r=e.length;n<r;n++)Q(t,e[n],i);return i}(e||"*",l.nodeType?[l]:l,[]),_=!t||!o&&e?g:dt(g,d,t,l,u);
vendor: 8,765 bytes, line 1
1if(i?i(_,f=r||(o?t:v||n)?[]:a,l,u):f=_,n)for(c=dt(f,m),n(c,[],l,u),h=c.length;h--;)(p=c[h])&&(f[m[h]]=!(_[m[h]]=p));if(o){if(r||t){if(r){for(c=[],h=f.length;h--;)(p=f[h])&&c.push(_[h]=p);r(null,f=[],c,u)}for(h=f.length;h--;)(p=f[h])&&(c=r?s.call(o,p):d[h])>-1&&(o[c]=!(a[c]=p))}}else f=dt(f===a?f.splice(v,f.length):f),r?r(null,a,f,u):y.apply(a,f)})}function yt(t){for(var e,i,r,a=t.length,l=n.relative[t[0].type],u=l||n.relative[" "],c=l?1:0,h=pt(function(t){return t===e},u,!0),p=pt(function(t){return s.call(e,t)>-1},u,!0),f=[function(t,i,n){var r=!l&&(n||i!=o)||((e=i).nodeType?h(t,i,n):p(t,i,n));return e=null,r}];c<a;c++)if(i=n.relative[t[c].type])f=[pt(ft(f),i)];else{if((i=n.filter[t[c].type].apply(null,t[c].matches))[v]){for(r=++c;r<a&&!n.relative[t[r].type];r++);return mt(c>1&&ft(f),c>1&&ht(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(A,"$1"),i,c<r&&yt(t.slice(c,r)),r<a&&yt(t=t.slice(r)),r<a&&ht(t))}f.push(i)}return ft(f)}function vt(t,e){var i,r=[],a=[],s=C[t+" "];if(!s){for(e||(e=ct(t)),i=e.length;i--;)(s=yt(e[i]))[v]?r.push(s):a.push(s);(s=C(t,function(t,e){var i=e.length>0,r=t.length>0,a=function(a,s,l,c,h){var f,d,m,v=0,_="0",b=a&&[],w=[],T=o,S=a||r&&n.find.TAG("*",h),E=g+=null==T?1:Math.random()||.1,P=S.length;for(h&&(o=s==u||s||h);_!==P&&null!=(f=S[_]);_++){if(r&&f){for(d=0,s||f.ownerDocument==u||(lt(f),l=!p);m=t[d++];)if(m(f,s||u,l)){y.call(c,f);break}h&&(g=E)}i&&((f=!m&&f)&&v--,a&&b.push(f))}if(v+=_,i&&_!==v){for(d=0;m=e[d++];)m(b,w,s,l);if(a){if(v>0)for(;_--;)b[_]||w[_]||(w[_]=k.call(c));w=dt(w)}y.apply(c,w),h&&!a&&w.length>0&&v+e.length>1&&x.uniqueSort(c)}return h&&(g=E,o=T),b};return i?et(a):a}(a,r))).selector=t}return s}function gt(t,e,i,r){var o,a,s,l,u,c="function"==typeof t&&t,h=!r&&ct(t=c.selector||t);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===e.nodeType&&p&&n.relative[a[1].type]){if(!(e=(n.find.ID(s.matches[0].replace(X,K),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(o=Y.needsContext.test(t)?0:a.length;o--&&(s=a[o],!n.relative[l=s.type]);)if((u=n.find[l])&&(r=u(s.matches[0].replace(X,K),Z.test(a[0].type)&&st(e.parentNode)||e))){if(a.splice(o,1),!(t=r.length&&ht(a)))return y.apply(i,r),i;break}}return(c||vt(t,h))(r,e,!p,i,!e||Z.test(t)&&st(e.parentNode)||e),i}ut.prototype=n.filters=n.pseudos,n.setFilters=new ut,f.sortStable=v.split("").sort(I).join("")===v,lt(),f.sortDetached=it(function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))}),x.find=Q,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Q.compile=vt,Q.select=gt,Q.setDocument=lt,Q.tokenize=ct,Q.escape=x.escapeSelector,Q.getText=x.text,Q.isXML=x.isXMLDoc,Q.selectors=x.expr,Q.support=x.support,Q.uniqueSort=x.uniqueSort}();var I=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(i))break;n.push(t)}return n},z=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},L=x.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,i){return d(e)?x.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?x.grep(t,function(t){return t===e!==i}):"string"!=typeof e?x.grep(t,function(t){return s.call(e,t)>-1!==i}):x.filter(e,t,i)}x.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?x.find.matchesSelector(n,t)?[n]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e<n;e++)if(x.contains(r[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)x.find(t,r[e],i);return n>1?x.uniqueSort(i):i},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&L.test(t)?x(t):t||[],!1).length}});var j,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||j,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:F.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),R.test(n[1])&&x.isPlainObject(e))for(n in e)d(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=y.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):d(t)?void 0!==i.ready?i.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,j=x(y);var N=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(x.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,r=this.length,o=[],a="string"!=typeof t&&x(t);if(!L.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&x.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(x(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return I(t,"parentNode")},parentsUntil:function(t,e,i){return I(t,"parentNode",i)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,i){return I(t,"nextSibling",i)},prevUntil:function(t,e,i){return I(t,"previousSibling",i)},siblings:function(t){return z((t.parentNode||{}).firstChild,t)},children:function(t){return z(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},function(t,e){x.fn[t]=function(i,n){var r=x.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=x.filter(n,r)),this.length>1&&(V[t]||x.uniqueSort(r),N.test(t)&&r.reverse()),this.pushStack(r)}});var q=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function H(t){throw t}function W(t,e,i,n){var r;try{t&&d(r=t.promise)?r.call(t).done(e).fail(i):t&&d(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(q)||[],function(t,i){e[i]=!0}),e}(t):x.extend({},t);var e,i,n,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,n=e=!0;a.length;s=-1)for(i=a.shift();++s<o.length;)!1===o[s].apply(i[0],i[1])&&t.stopOnFalse&&(s=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},u={add:function(){return o&&(i&&!e&&(s=o.length-1,a.push(i)),function e(i){x.each(i,function(i,n){d(n)?t.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==_(n)&&e(n)})}(arguments),i&&!e&&l()),this},remove:function(){return x.each(arguments,function(t,e){for(var i;(i=x.inArray(e,o,i))>-1;)o.splice(i,1),i<=s&&s--}),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=a=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],a.push(i),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},x.extend({Deferred:function(e){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred(function(e){x.each(i,function(i,n){var r=d(t[n[4]])&&t[n[4]];o[n[1]](function(){var t=r&&r.apply(this,arguments);t&&d(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,n,r){var o=0;function a(e,i,n,r){return function(){var s=this,l=arguments,u=function(){var t,u;if(!(e<o)){if((t=n.apply(s,l))===i.promise())throw new TypeError("Thenable self
1-resolution");u=t&&("object"==typeof t||"function"==typeof t)&&t.then,d(u)?r?u.call(t,a(o,i,Y,r),a(o,i,H,r)):(o++,u.call(t,a(o,i,Y,r),a(o,i,H,r),a(o,i,Y,i.notifyWith))):(n!==Y&&(s=void 0,l=[t]),(r||i.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,c.error),e+1>=o&&(n!==H&&(s=void 0,l=[t]),i.rejectWith(s,l))}};e?c():(x.Deferred.getErrorHook?c.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(c.error=x.Deferred.getStackHook()),t.setTimeout(c))}}return x.Deferred(function(t){i[0][3].add(a(0,t,d(r)?r:Y,t.notifyWith)),i[1][3].add(a(0,t,d(e)?e:Y)),i[2][3].add(a(0,t,d(n)?n:H))}).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(i,function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add(function(){n=s},i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),o=r.call(arguments),a=x.Deferred(),s=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?r.call(arguments):i,--e||a.resolveWith(n,o)}};if(e<=1&&(W(t,a.done(s(i)).resolve,a.reject,!e),"pending"===a.state()||d(o[i]&&o[i].then)))return a.then();for(;i--;)W(o[i],s(i),a.reject);return a.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&G.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},x.readyException=function(e){t.setTimeout(function(){throw e})};var Z=x.Deferred();function X(){y.removeEventListener("DOMContentLoaded",X),t.removeEventListener("load",X),x.ready()}x.fn.ready=function(t){return Z.then(t).catch(function(t){x.readyException(t)}),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||Z.resolveWith(y,[x]))}}),x.ready.then=Z.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?t.setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",X),t.addEventListener("load",X));var K=function(t,e,i,n,r,o,a){var s=0,l=t.length,u=null==i;if("object"===_(i))for(s in r=!0,i)K(t,e,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,d(n)||(a=!0),u&&(a?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(x(t),i)})),e))for(;s<l;s++)e(t[s],i,a?n:n.call(t[s],s,e(t[s],i)));return r?t:u?e.call(t):l?e(t[0],i):o},J=/^-ms-/,$=/-([a-z])/g;function Q(t,e){return e.toUpperCase()}function tt(t){return t.replace(J,"ms-").replace($,Q)}var et=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function it(){this.expando=x.expando+it.uid++}it.uid=1,it.prototype={cache:function(t){var e=t[this.expando];return e||(e={},et(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[tt(e)]=i;else for(n in e)r[tt(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][tt(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(tt):(e=tt(e))in n?[e]:e.match(q)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 4,567 bytes, line 1
1(void 0===e||x.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var nt=new it,rt=new it,ot=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,at=/[A-Z]/g;function st(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(at,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ot.test(t)?JSON.parse(t):t)}(i)}catch(t){}rt.set(t,e,i)}else i=void 0;return i}x.extend({hasData:function(t){return rt.hasData(t)||nt.hasData(t)},data:function(t,e,i){return rt.access(t,e,i)},removeData:function(t,e){rt.remove(t,e)},_data:function(t,e,i){return nt.access(t,e,i)},_removeData:function(t,e){nt.remove(t,e)}}),x.fn.extend({data:function(t,e){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=rt.get(o),1===o.nodeType&&!nt.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=tt(n.slice(5)),st(o,n,r[n]));nt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){rt.set(this,t)}):K(this,function(e){var i;if(o&&void 0===e)return void 0!==(i=rt.get(o,t))?i:void 0!==(i=st(o,t))?i:void 0;this.each(function(){rt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){rt.remove(this,t)})}}),x.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=nt.get(t,e),i&&(!n||Array.isArray(i)?n=nt.access(t,e,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=x.queue(t,e),n=i.length,r=i.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,function(){x.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return nt.get(t,i)||nt.access(t,i,{empty:x.Callbacks("once memory").add(function(){nt.remove(t,[e+"queue",i])})})}}),x.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?x.queue(this[0],t):void 0===e?this:this.each(function(){var i=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&x.dequeue(this,t)})},dequeue:function(t){return this.each(function(){x.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=x.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=nt.get(o[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(e)}});var lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ut=new RegExp("^(?:([+-])=|)("+lt+")([a-z%]*)$","i"),ct=["Top","Right","Bottom","Left"],ht=y.documentElement,pt=function(t){return x.contains(t.ownerDocument,t)},ft={composed:!0};ht.getRootNode&&(pt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(ft)===t.ownerDocument});var dt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&pt(t)&&"none"===x.css(t,"display")};function mt(t,e,i,n){var r,o,a=20,s=n?function(){return n.cur()}:function(){return x.css(t,e,"")},l=s(),u=i&&i[3]||(x.cssNumber[e]?"":"px"),c=t.nodeType&&(x.cssNumber[e]||"px"!==u&&+l)&&ut.exec(x.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)x.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,x.style(t,e,c+u),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=r)),r}var yt={};function vt(t){var e,i=t.ownerDocument,n=t.nodeName,r=yt[n];return r||(e=i.body.appendChild(i.createElement(n)),r=x.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),yt[n]=r,r)}function gt(t,e){for(var i,n,r=[],o=0,a=t.length;o<a;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=nt.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&dt(n)&&(r[o]=vt(n))):"none"!==i&&(r[o]="none",nt.set(n,"display",i)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}x.fn.extend({show:function(){return gt(this,!0)},hide:function(){return gt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){dt(this)?x(this).show():x(this).hide()})}});var _t,bt,xt=/^(?:checkbox|radio)$/i,wt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Tt=/^$|^module$|\/(?:java|ecma)script/i;_t=y.createDocumentFragment().appendChild(y.createElement("div")),(bt=y.createElement("input")).setAttribute("type","radio"),bt.setAttribute("checked","checked"),bt.setAttribute("name","t"),_t.appendChild(bt),f.checkClone
vendor: 5,247 bytes, line 1
1=_t.cloneNode(!0).cloneNode(!0).lastChild.checked,_t.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!_t.cloneNode(!0).lastChild.defaultValue,_t.innerHTML="<option></option>",f.option=!!_t.lastChild;var kt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function St(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?x.merge([t],i):i}function Et(t,e){for(var i=0,n=t.length;i<n;i++)nt.set(t[i],"globalEval",!e||nt.get(e[i],"globalEval"))}kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td,f.option||(kt.optgroup=kt.option=[1,"<select multiple='multiple'>","</select>"]);var Pt=/<|&#?\w+;/;function At(t,e,i,n,r){for(var o,a,s,l,u,c,h=e.createDocumentFragment(),p=[],f=0,d=t.length;f<d;f++)if((o=t[f])||0===o)if("object"===_(o))x.merge(p,o.nodeType?[o]:o);else if(Pt.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(wt.exec(o)||["",""])[1].toLowerCase(),l=kt[s]||kt._default,a.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;x.merge(p,a.childNodes),(a=h.firstChild).textContent=""}else p.push(e.createTextNode(o));for(h.textContent="",f=0;o=p[f++];)if(n&&x.inArray(o,n)>-1)r&&r.push(o);else if(u=pt(o),a=St(h.appendChild(o),"script"),u&&Et(a),i)for(c=0;o=a[c++];)Tt.test(o.type||"")&&i.push(o);return h}var Ct=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Ot(){return!1}function Mt(t,e,i,n,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)Mt(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Ot;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return x().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),t.each(function(){x.event.add(this,e,r,n,i)})}function It(t,e,i){i?(nt.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var i,n=nt.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=r.call(arguments),nt.set(this,e,n),this[e](),i=nt.get(this,e),nt.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(nt.set(this,e,x.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===nt.get(t,e)&&x.event.add(t,e,Dt)}x.event={global:{},add:function(t,e,i,n,r){var o,a,s,l,u,c,h,p,f,d,m,y=nt.get(t);if(et(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&x.find.matchesSelector(ht,r),i.guid||(i.guid=x.guid++),(l=y.events)||(l=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(q)||[""]).length;u--;)f=m=(s=Ct.exec(e[u])||[])[1],d=(s[2]||"").split(".").sort(),f&&(h=x.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=x.event.special[f]||{},c=x.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:d.join(".")},o),(p=l[f])||((p=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,d,a)||t.addEventListener&&t.addEventListener(f,a)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),x.event.global[f]=!0)},remove:function(t,e,i,n,r){var o,a,s,l,u,c,h,p,f,d,m,y=nt.hasData(t)&&nt.get(t);if(y&&(l=y.events)){for(u=(e=(e||"").match(q)||[""]).length;u--;)if(f=m=(s=Ct.exec(e[u])||[])[1],d=(s[2]||"").split(".").sort(),f){for(h=x.event.special[f]||{},p=l[f=(n?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!r&&m!==c.origType||i&&i.guid!==c.guid||s&&!s.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(t,c));a&&!p.length&&(h.teardown&&!1!==h.teardown.call(t,d,y.handle)||x.removeEvent(t,f,y.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[u],i,n,!0);x.isEmptyObject(l)&&nt.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=new Array(arguments.length),l=x.event.fix(t),u=(nt.get(this,"events")||Object.create(null))[l.type]||[],c=x.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=x.event.handlers.call(this,l,u),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},i=0;i<l;
vendor: 13,083 bytes, line 1
1i++)void 0===a[r=(n=e[i]).selector+" "]&&(a[r]=n.needsContext?x(r,this).index(u)>-1:x.find(r,this,null,[u]).length),a[r]&&o.push(n);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:d(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return xt.test(e.type)&&e.click&&T(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return xt.test(e.type)&&e.click&&T(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return xt.test(e.type)&&e.click&&T(e,"input")&&nt.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Ot,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ot,isPropagationStopped:Ot,isImmediatePropagationStopped:Ot,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(t,e){function i(t){if(y.documentMode){var i=nt.get(this,"handle"),n=x.event.fix(t);n.type="focusin"===t.type?"focus":"blur",n.isSimulated=!0,i(t),n.target===n.currentTarget&&i(n)}else x.event.simulate(e,t.target,x.event.fix(t))}x.event.special[t]={setup:function(){var n;if(It(this,t,!0),!y.documentMode)return!1;(n=nt.get(this,e))||this.addEventListener(e,i),nt.set(this,e,(n||0)+1)},trigger:function(){return It(this,t),!0},teardown:function(){var t;if(!y.documentMode)return!1;(t=nt.get(this,e)-1)?nt.set(this,e,t):(this.removeEventListener(e,i),nt.remove(this,e))},_default:function(e){return nt.get(e.target,t)},delegateType:e},x.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=y.documentMode?this:n,o=nt.get(r,e);o||(y.documentMode?this.addEventListener(e,i):n.addEventListener(t,i,!0)),nt.set(r,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=y.documentMode?this:n,o=nt.get(r,e)-1;o?nt.set(r,e,o):(y.documentMode?this.removeEventListener(e,i):n.removeEventListener(t,i,!0),nt.remove(r,e))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||x.contains(this,n))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}}),x.fn.extend({on:function(t,e,i,n){return Mt(this,t,e,i,n)},one:function(t,e,i,n){return Mt(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,x(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Ot),this.each(function(){x.event.remove(this,t,i,e)})}});var zt=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var i,n,r,o,a,s;if(1===e.nodeType){if(nt.hasData(t)&&(s=nt.get(t).events))for(r in nt.remove(e,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)x.event.add(e,r,s[r][i]);rt.hasData(t)&&(o=rt.access(t),a=x.extend({},o),rt.set(e,a))}}function Vt(t,e,i,n){e=o(e);var r,a,s,l,u,c,h=0,p=t.length,m=p-1,y=e[0],v=d(y);if(v||p>1&&"string"==typeof y&&!f.checkClone&&Lt.test(y))return t.each(function(r){var o=t.eq(r);v&&(e[0]=y.call(this,r,o.html())),Vt(o,e,i,n)});if(p&&(a=(r=At(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=a),a||n)){for(l=(s=x.map(St(r,"script"),jt)).length;h<p;h++)u=r,h!==m&&(u=x.clone(u,!0,!0),l&&x.merge(s,St(u,"script"))),i.call(t[h],u,h);if(l)for(c=s[s.length-1].ownerDocument,x.map(s,Ft),h=0;h<l;h++)u=s[h],Tt.test(u.type||"")&&!nt.access(u,"globalEval")&&x.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&!u.noModule&&x._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):g(u.textContent.replace(Rt,""),u,c))}return t}function Ut(t,e,i){for(var n,r=e?x.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||x.cleanData(St(n)),n.parentNode&&(i&&pt(n)&&Et(St(n,"script")),n.parentNode.removeChild(n));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,a,s,l,u,c=t.cloneNode(!0),h=pt(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=St(c),n=0,r=(o=St(t)).length;n<r;n++)s=o[n],l=a[n],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&xt.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(e)if(i)for(o=o||St(t),a=a||St(c),n=0,r=o.length;n<r;n++)Nt(o[n],a[n]);else Nt(t,c);return(a=St(c,"script")).length>0&&Et(a,!h&&St(t,"script")),c},cleanData:function(t){for(var e,i,n,r=x.event.special,o=0;void 0!==(i=t[o]);o++)if(et(i)){if(e=i[nt.expando]){if(e.events)for(n in e.events)r[n]?x.event.remove(i,n):x.removeEvent(i,n,e.handle);i[nt.expando]=void 0}i[rt.expando]&&(i[rt.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Ut(this,t,!0)},remove:function(t){return Ut(this,t)},text:function(t){return K(this,function(t){return void 0===t?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Vt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)})},prepend:function(){return Vt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Vt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Vt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(St(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return K(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!zt.test(t)&&!kt[(wt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(x.cleanData(St(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Vt(this,arguments,function(e){var i=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(St(this)),i&&i.replaceChild(e,this))},t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){x.fn[t]=function(t){for(var i,n=[],r=x(t),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),x(r[s])[e](i),a.apply(n,i.get());return this.pushStack(n)}});var qt=new RegExp("^("+lt+")(?!px)[a-z%]+$","i"),Yt=/^--/,Ht=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Wt=function(t,e,i){var n,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=o[r];return n},Gt=new RegExp(ct.join("|"),"i");function Zt(t,e,i){var n,r,o,a,s=Yt.test(e),l=t.style;return(i=i||Ht(t))&&(a=i.getPropertyValue(e)||i[e],s&&a&&(a=a.replace(A,"$1")||void 0),""!==a||pt(t)||(a=x.style(t,e)),!f.pixelBoxStyles()&&qt.test(a)&&Gt.test(e)&&(n=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=i.width,l.width=n,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function Xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ht.appendChild(u).appendChild(c);var e=t.getComputedStyle(c);n="1%"!==e.top,l=12===i(e.marginLeft),c.style.right="60%",a=36===i(e.right),r=36===i(e.width),c.style.position="absolute",o=12===i(c.offsetWidth/3),ht.removeChild(u),c=null}}function i(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,u=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(f,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,i,n,r;return null==s&&(e=y.createElement("table"),i=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="box-sizing:content-box;border:1px solid",i.style.height="1px",n.style.height="9px",n.style.display="block",ht.appendChild(e).appendChild(i).appendChild(n),r=t.getComputedStyle(i),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===i.offsetHeight,ht.removeChild(e)),s}}))}();var Kt=["Webkit","Moz","ms"],Jt=y.createElement("div").style,$t={};function Qt(t){var e=x.cssProps[t]||$t[t];return e||(t in Jt?t:$t[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Kt.length;i--;)if((t=Kt[i]+e)in Jt)return t}(t)||t)}var te=/^(none|table(?!-c[ea]).+)/,ee={position:"absolute",visibility:"hidden",display:"block"},ie={letterSpacing:"0",fontWeight:"400"};function ne(t,e,i){var n=ut.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function re(t,e,i,n,r,o){var a="width"===e?1:0,s=0,l=0,u=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(u+=x.css(t,i+ct[a],!0,r)),n?("content"===i&&(l-=x.css(t,"padding"+ct[a],!0,r)),"margin"!==i&&(l-=x.css(t,"border"+ct[a]+"Width",!0,r))):(l+=x.css(t,"padding"+ct[a],!0,r),"padding"!==i?l+=x.css(t,"border"+ct[a]+"Width",!0,r):s+=x.css(t,"border"+ct[a]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+u}function oe(t,e,i){var n=Ht(t),r=(!f.boxSizingReliable()||i)&&"border-box"===x.css(t,"boxSizing",!1,n),o=r,a=Zt(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(a)){if(!i)return a;a="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&T(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===x.css(t,"boxSizing",!1,n),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+re(t,e,i||(r?"border":"content"),o,n,a)+"px"}function ae(t,e,i,n,r){return new ae.prototype.init(t,e,i,n,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Zt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{}
vendor: 5,663 bytes, line 1
1,style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=tt(e),l=Yt.test(e),u=t.style;if(l||(e=Qt(s)),a=x.cssHooks[e]||x.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:u[e];"string"===(o=typeof i)&&(r=ut.exec(i))&&r[1]&&(i=mt(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(x.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==i||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?u.setProperty(e,i):u[e]=i))}},css:function(t,e,i,n){var r,o,a,s=tt(e);return Yt.test(e)||(e=Qt(s)),(a=x.cssHooks[e]||x.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,i)),void 0===r&&(r=Zt(t,e,n)),"normal"===r&&e in ie&&(r=ie[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),x.each(["height","width"],function(t,e){x.cssHooks[e]={get:function(t,i,n){if(i)return!te.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,e,n):Wt(t,ee,function(){return oe(t,e,n)})},set:function(t,i,n){var r,o=Ht(t),a=!f.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===x.css(t,"boxSizing",!1,o),l=n?re(t,e,n,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-re(t,e,"border",!1,o)-.5)),l&&(r=ut.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=x.css(t,e)),ne(0,i,l)}}}),x.cssHooks.marginLeft=Xt(f.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(t,e){x.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+ct[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=ne)}),x.fn.extend({css:function(t,e){return K(this,function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=Ht(t),r=e.length;a<r;a++)o[e[a]]=x.css(t,e[a],!1,n);return o}return void 0!==i?x.style(t,e,i):x.css(t,e)},t,e,arguments.length>1)}}),x.Tween=ae,ae.prototype={constructor:ae,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(x.cssNumber[i]?"":"px")},cur:function(){var t=ae.propHooks[this.prop];return t&&t.get?t.get(this):ae.propHooks._default.get(this)},run:function(t){var e,i=ae.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ae.propHooks._default.set(this),this}},ae.prototype.init.prototype=ae.prototype,ae.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Qt(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},ae.propHooks.scrollTop=ae.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=ae.prototype.init,x.fx.step={};var se,le,ue=/^(?:toggle|show|hide)$/,ce=/queueHooks$/;function he(){le&&(!1===y.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(he):t.setTimeout(he,x.fx.interval),x.fx.tick())}function pe(){return t.setTimeout(function(){se=void 0}),se=Date.now()}function fe(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=ct[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function de(t,e,i){for(var n,r=(me.tweeners[e]||[]).concat(me.tweeners["*"]),o=0,a=r.length;o<a;o++)if(n=r[o].call(i,e,t))return n}function me(t,e,i){var n,r,o=0,a=me.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=se||pe(),i=Math.max(0,u.startTime+u.duration-e),n=1-(i/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(n);return s.notifyWith(t,[u,n,i]),n<1&&a?i:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:e,originalOptions:i,startTime:se||pe(),duration:i.duration,tweens:[],createTween:function(e,i){var n=x.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)u.tweens[i].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var i,n,r,o,a;for(i in t)if(r=e[n=tt(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=x.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}(c,u.opts.specialEasing);o<a;o++)if(n=me.prefilters[o].call(u,t,c,u.opts))return d(n.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return x.map(c,de,u),d(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(me,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return mt(i.elem,t,ut.exec(e),i),i}]},tweener:function(t,e){d(t)?(e=t,t=["*"]):t=t.match(q);for(var i,n=0,r=t.length;n<r;n++)i=t[n],me.tweeners[i]=me.tweeners[i]||[],me.tweeners[i].unshift(e)}
vendor: 4,396 bytes, line 1
1,prefilters:[function(t,e,i){var n,r,o,a,s,l,u,c,h="width"in e||"height"in e,p=this,f={},d=t.style,m=t.nodeType&&dt(t),y=nt.get(t,"fxshow");for(n in i.queue||(null==(a=x._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,x.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[n],ue.test(r)){if(delete e[n],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!y||void 0===y[n])continue;m=!0}f[n]=y&&y[n]||x.style(t,n)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(f))for(n in h&&1===t.nodeType&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=y&&y.display)&&(u=nt.get(t,"display")),"none"===(c=x.css(t,"display"))&&(u?c=u:(gt([t],!0),u=t.style.display||u,c=x.css(t,"display"),gt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===x.css(t,"float")&&(l||(p.done(function(){d.display=u}),null==u&&(c=d.display,u="none"===c?"":c)),d.display="inline-block")),i.overflow&&(d.overflow="hidden",p.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]})),l=!1,f)l||(y?"hidden"in y&&(m=y.hidden):y=nt.access(t,"fxshow",{display:u}),o&&(y.hidden=!m),m&&gt([t],!0),p.done(function(){for(n in m||gt([t]),nt.remove(t,"fxshow"),f)x.style(t,n,f[n])})),l=de(m?y[n]:0,n,p),n in y||(y[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?me.prefilters.unshift(t):me.prefilters.push(t)}}),x.speed=function(t,e,i){var n=t&&"object"==typeof t?x.extend({},t):{complete:i||!i&&e||d(t)&&t,duration:t,easing:i&&e||e&&!d(e)&&e};return x.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in x.fx.speeds?n.duration=x.fx.speeds[n.duration]:n.duration=x.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){d(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(t,e,i,n){return this.filter(dt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=x.isEmptyObject(t),o=x.speed(e,i,n),a=function(){var e=me(this,x.extend({},t),o);(r||nt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=x.timers,a=nt.get(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&ce.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||x.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=nt.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=x.timers,a=n?n.length:0;for(i.finish=!0,x.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),x.each(["toggle","show","hide"],function(t,e){var i=x.fn[e];x.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(fe(e,!0),t,n,r)}}),x.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){x.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),x.timers=[],x.fx.tick=function(){var t,e=0,i=x.timers;for(se=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||x.fx.stop(),se=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){le||(le=!0,he())},x.fx.stop=function(){le=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,i){return e=x.fx&&x.fx.speeds[e]||e,i=i||"fx",this.queue(i,function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}})},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var ye,ve=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return K(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}
vendor: 18,582 bytes, line 1
1),x.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,i):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?ye:void 0)),void 0!==i?null===i?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=x.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&T(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(q);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),ye={set:function(t,e,i){return!1===e?x.removeAttr(t,i):t.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ve[e]||x.find.attr;ve[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=ve[a],ve[a]=r,r=null!=i(t,e,n)?a:null,ve[a]=o),r}});var ge=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function be(t){return(t.match(q)||[]).join(" ")}function xe(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(q)||[]}x.fn.extend({prop:function(t,e){return K(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,r=x.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,i,n,r,o,a;return d(t)?this.each(function(e){x(this).addClass(t.call(this,e,xe(this)))}):(e=we(t)).length?this.each(function(){if(n=xe(this),i=1===this.nodeType&&" "+be(n)+" "){for(o=0;o<e.length;o++)r=e[o],i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=be(i),n!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,i,n,r,o,a;return d(t)?this.each(function(e){x(this).removeClass(t.call(this,e,xe(this)))}):arguments.length?(e=we(t)).length?this.each(function(){if(n=xe(this),i=1===this.nodeType&&" "+be(n)+" "){for(o=0;o<e.length;o++)for(r=e[o];i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a=be(i),n!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,e){var i,n,r,o,a=typeof t,s="string"===a||Array.isArray(t);return d(t)?this.each(function(i){x(this).toggleClass(t.call(this,i,xe(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(i=we(t),this.each(function(){if(s)for(o=x(this),r=0;r<i.length;r++)n=i[r],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==a||((n=xe(this))&&nt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":nt.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+be(xe(i))+" ").indexOf(e)>-1)return!0;return!1}});var Te=/\r/g;x.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=d(t),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,function(t){return null==t?"":t+""})),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(Te,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:be(x.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(n=o<0?l:a?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(e=x(i).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=x.makeArray(e),a=r.length;a--;)((n=r[a]).selected=x.inArray(x.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},f.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke=t.location,Se={guid:Date.now()},Ee=/\?/;x.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,function(t){return t.textContent}).join("\n"):e)),i};var Pe=/^(?:focusinfocus|focusoutblur)$/,Ae=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,i,n,r){var o,a,s,l,u,h,p,f,v=[n||y],g=c.call(e,"type")?e.type:e,_=c.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Pe.test(g+x.event.triggered)&&(g.indexOf(".")>-1&&(_=g.split("."),g=_.shift(),_.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[x.expando]?e:new x.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:x.makeArray(i,[e]),p=x.event.special[g]||{},r||!p.trigger||!1!==p.trigger.apply(n,i))){if(!r&&!p.noBubble&&!m(n)){for(l=p.delegateType||g,Pe.test(l+g)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(n.ownerDocument||y)&&v.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=v[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:p.bindType||g,(h=(nt.get(a,"events")||Object.create(null))[e.type]&&nt.get(a,"handle"))&&h.apply(a,i),(h=u&&a[u])&&h.apply&&et(a)&&(e.result=h.apply(a,i),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),i)||!et(n)||u&&d(n[g])&&!m(n)&&((s=n[u])&&(n[u]=null),x.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,Ae),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,Ae),x.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(t,e,i){var n=x.extend(new x.Event,i,{type:t,isSimulated:!0});x.event.trigger(n,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return x.event.trigger(t,e,i,!0)}});var Ce=/\[\]$/,De=/\r?\n/g,Oe=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,i,n){var r;if(Array.isArray(e))x.each(e,function(e,r){i||Ce.test(t)?n(t,r):Ie(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==_(e))n(t,e);else for(r in e)Ie(t+"["+r+"]",e[r],i,n)}x.param=function(t,e){var i,n=[],r=function(t,e){var i=d(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){r(this.name,this.value)});else for(i in t)Ie(i,t[i],e,r);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Me.test(this.nodeName)&&!Oe.test(t)&&(this.checked||!xt.test(t))}).map(function(t,e){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:i.replace(De,"\r\n")}}).get()}});var ze=/%20/g,Le=/#.*$/,Re=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Fe=/^\/\//,Ne={},Ve={},Ue="*/".concat("*"),qe=y.createElement("a");function Ye(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(q)||[];if(d(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function He(t,e,i,n){var r={},o=t===Ve;function a(s){var l;return r[s]=!0,x.each(t[s]||[],function(t,s){var u=s(e,i,n);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function We(t,e){var i,n,r=x.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&x.extend(!0,t,n),t}qe.href=ke.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?We(We(t,x.ajaxSettings),e):We(x.ajaxSettings,t)},ajaxPrefilter:Ye(Ne),ajaxTransport:Ye(Ve),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var n,r,o,a,s,l,u,c,h,p,f=x.ajaxSetup({},i),d=f.context||f,m=f.context&&(d.nodeType||d.jquery)?x(d):x.event,v=x.Deferred(),g=x.Callbacks("once memory"),_=f.statusCode||{},b={},w={},T="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Be.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)k.always(t[k.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||T;return n&&n.abort(e),S(0,e),this}};if(v.promise(k),f.url=((e||f.url||ke.href)+"").replace(Fe,ke.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(q)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=qe.protocol+"//"+qe.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),He(Ne,f,i,k),u)return k;for(h in(c=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!je.test(f.type),r=f.url.replace(Le,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(ze,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Ee.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Re,"$1"),p=(Ee.test(r)?"&":"?")+"_="+Se.guid+++p),f.url=r+p),f.ifModified&&(x.lastModified[r]&&k.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&k.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ue+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(d,k,f)||u))return k.abort();if(T="abort",g.add(f.complete),k.done(f.success),k.fail(f.error),n=He(Ve,f,i,k)){if(k.readyState=1,c&&m.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(s=t.setTimeout(function(){k.abort("timeout")},f.timeout));try{u=!1,n.send(b,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(e,i,a,l){var h,p,y,b,w,T=i;u||(u=!0,s&&t.clearTimeout(s),n=void 0,o=l||"",k.readyState=e>0?4:0,h=e>=200&&e<300||304===e,a&&(b=function(t,e,i){for(var n,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,k,a)),!h&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,i,n){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,b,k,h),h?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(x.etag[r]=w)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=b.state,p=b.data,h=!(y=b.error))):(y=T,!e&&T||(T="error",e<0&&(e=0))),k.status=e,k.statusText=(i||T)+"",h?v.resolveWith(d,[p,T,k]):v.rejectWith(d,[k,T,y]),k.statusCode(_),_=void 0,c&&m.trigger(h?"ajaxSuccess":"ajaxError",[k,f,h?p:y]),g.fireWith(d,[k,T]),c&&(m.trigger("ajaxComplete",[k,f]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,i){return x.get(t,e,i,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,e){x[e]=function(t,i,n,r){return d(i)&&(r=r||n,n=i,i=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:i,success:n},x.isPlainObject(t)&&t))}}),x.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),x._evalUrl=function(t,e,i){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,i)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(d(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return d(t)?this.each(function(e){x(this).wrapInner(t.call(this,e))}):this.each(function(){var e=x(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=d(t);return this.each(function(i){x(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ge={0:200,1223:204},Ze=x.ajaxSettings.xhr();f.cors=!!Ze&&"withCredentials"in Ze,f.ajax=Ze=!!Ze,x.ajaxTransport(function(e){var i,n;if(f.cors||Ze&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);i=function(t){return function(){i&&(i=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ge[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),n=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}}),x.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),x.ajaxTransport("script",function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){i&&i()}}});var Xe,Ke=[],Je=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ke.pop()||x.expando+"_"+Se.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",function(e,i,n){var r,o,a,s=!1!==e.jsonp&&(Je.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=d(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Je,"$1"+r):!1!==e.jsonp&&(e.url+=(Ee.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||x.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},n.always(function(){void 0===o?x(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,Ke.push(r)),a&&d(o)&&o(a[0]),a=o=void 0}),"script"}),f.createHTMLDocument=((Xe=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
1",2===Xe.childNodes.length),x.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(f.createHTMLDocument?((n=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(n)):e=y),o=!i&&[],(r=R.exec(t))?[e.createElement(r[1])]:(r=At([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var n,r,o},x.fn.load=function(t,e,i){var n,r,o,a=this,s=t.indexOf(" ");return s>-1&&(n=be(t.slice(s)),t=t.slice(0,s)),d(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&x.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(n?x("<div>").append(x.parseHTML(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(t,e,i){var n,r,o,a,s,l,u=x.css(t,"position"),c=x(t),h={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=x.css(t,"top"),l=x.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(n=c.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),d(e)&&(e=e.call(t,i,x.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):c.css(h)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===x.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),r.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-x.css(n,"marginTop",!0),left:e.left-r.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||ht})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;x.fn[t]=function(n){return K(this,function(t,n,r){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r},t,n,arguments.length)}}),x.each(["top","left"],function(t,e){x.cssHooks[e]=Xt(f.pixelPosition,function(t,i){if(i)return i=Zt(t,e),qt.test(i)?x(t).position()[e]+"px":i})}),x.each({Height:"height",Width:"width"},function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){x.fn[n]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(!0===r||!0===o?"margin":"border");return K(this,function(e,i,r){var o;return m(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?x.css(e,i,s):x.style(e,i,r,s)},e,a?r:void 0,a)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){x.fn[e]=function(t){return this.on(e,t)}}),x.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){x.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}});var $e=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),d(t))return n=r.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(r.call(arguments)))}).guid=t.guid=t.guid||x.guid++,o},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=T,x.isFunction=d,x.isWindow=m,x.camelCase=tt,x.type=_,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace($e,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var Qe=t.jQuery,ti=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=ti),e&&t.jQuery===x&&(t.jQuery=Qe),x},void 0===e&&(t.jQuery=t.$=x),x})},{}
1],54:[function(t,e,i){!function(t,i){var n=function(t,e){"use strict";if(!e.getElementsByClassName)return;var i,n,r=e.documentElement,o=t.Date,a=t.HTMLPictureElement,s=t.addEventListener,l=t.setTimeout,u=t.requestAnimationFrame||l,c=t.requestIdleCallback,h=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],f={},d=Array.prototype.forEach,m=function(t,e){return f[e]||(f[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),f[e].test(t.getAttribute("class")||"")&&f[e]},y=function(t,e){m(t,e)||t.setAttribute("class",(t.getAttribute("class")||"").trim()+" "+e)},v=function(t,e){var i;(i=m(t,e))&&t.setAttribute("class",(t.getAttribute("class")||"").replace(i," "))},g=function(t,e,i){var n=i?"addEventListener":"removeEventListener";i&&g(t,e),p.forEach(function(i){t[n](i,e)})},_=function(t,n,r,o,a){var s=e.createEvent("Event");return r||(r={}),r.instance=i,s.initEvent(n,!o,!a),s.detail=r,t.dispatchEvent(s),s},b=function(e,i){var r;!a&&(r=t.picturefill||n.pf)?(i&&i.src&&!e.getAttribute("srcset")&&e.setAttribute("srcset",i.src),r({reevaluate:!0,elements:[e]})):i&&i.src&&(e.src=i.src)},x=function(t,e){return(getComputedStyle(t,null)||{})[e]},w=function(t,e,i){for(i=i||t.offsetWidth;i<n.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},T=(A=[],C=[],D=A,O=function(){var t=D;for(D=A.length?C:A,E=!0,P=!1;t.length;)t.shift()();E=!1},M=function(t,i){E&&!i?t.apply(this,arguments):(D.push(t),P||(P=!0,(e.hidden?l:u)(O)))},M._lsFlush=O,M),k=function(t,e){return e?function(){T(t)}:function(){var e=this,i=arguments;T(function(){t.apply(e,i)})}},S=function(t){var e,i,n=function(){e=null,t()},r=function(){var t=o.now()-i;t<99?l(r,99-t):(c||n)(n)};return function(){i=o.now(),e||(e=l(r,99))}};var E,P,A,C,D,O,M;!function(){var e,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in n=t.lazySizesConfig||t.lazysizesConfig||{},i)e in n||(n[e]=i[e]);t.lazySizesConfig=n,l(function(){n.init&&L()})}();var I=function(){var a,u,p,f,w,E,P,A,C,D,O,M,I,L,R,B,j,F,N,V=/^img$/i,U=/^iframe$/i,q="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),Y=0,H=0,W=-1,G=function(t){H--,(!t||H<0||!t.target)&&(H=0)},Z=function(t){return null==M&&(M="hidden"==x(e.body,"visibility")),M||"hidden"!=x(t.parentNode,"visibility")&&"hidden"!=x(t,"visibility")},X=function(t,i){var n,o=t,a=Z(t);for(A-=i,O+=i,C-=i,D+=i;a&&(o=o.offsetParent)&&o!=e.body&&o!=r;)(a=(x(o,"opacity")||1)>0)&&"visible"!=x(o,"overflow")&&(n=o.getBoundingClientRect(),a=D>n.left&&C<n.right&&O>n.top-1&&A<n.bottom+1);return a},K=function(){var t,o,s,l,c,h,p,d,m,y,v,g,_=i.elements;if((f=n.loadMode)&&H<8&&(t=_.length)){for(o=0,W++,y=!n.expand||n.expand<1?r.clientHeight>500&&r.clientWidth>500?500:370:n.expand,i._defEx=y,v=y*n.expFactor,g=n.hFac,M=null,Y<v&&H<1&&W>2&&f>2&&!e.hidden?(Y=v,W=0):Y=f>1&&W>1&&H<6?y:0;o<t;o++)if(_[o]&&!_[o]._lazyRace)if(q)if((d=_[o].getAttribute("data-expand"))&&(h=1*d)||(h=Y),m!==h&&(E=innerWidth+h*g,P=innerHeight+h,p=-1*h,m=h),s=_[o].getBoundingClientRect(),(O=s.bottom)>=p&&(A=s.top)<=P&&(D=s.right)>=p*g&&(C=s.left)<=E&&(O||D||C||A)&&(n.loadHidden||Z(_[o]))&&(u&&H<3&&!d&&(f<3||W<4)||X(_[o],h))){if(nt(_[o]),c=!0,H>9)break}else!c&&u&&!l&&H<4&&W<4&&f>2&&(a[0]||n.preloadAfterLoad)&&(a[0]||!d&&(O||D||C||A||"auto"!=_[o].getAttribute(n.sizesAttr)))&&(l=a[0]||_[o]);else nt(_[o]);l&&!c&&nt(l)}},J=(I=K,R=0,B=n.throttleDelay,j=n.ricTimeout,F=function(){L=!1,R=o.now(),I()},N=c&&j>49?function(){c(F,{timeout:j}),j!==n.ricTimeout&&(j=n.ricTimeout)}:k(function(){l(F)},!0),function(t){var e;(t=!0===t)&&(j=33),L||(L=!0,(e=B-(o.now()-R))<0&&(e=0),t||e<9?N():l(N,e))}),$=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(G(t),y(e,n.loadedClass),v(e,n.loadingClass),g(e,tt),_(e,"lazyloaded"))},Q=k($),tt=function(t){Q({target:t.target})},et=function(t){var e,i=t.getAttribute(n.srcsetAttr);(e=n.customMedia[t.getAttribute("data-media")||t.getAttribute("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)}
1,it=k(function(t,e,i,r,o){var a,s,u,c,f,m;(f=_(t,"lazybeforeunveil",e)).defaultPrevented||(r&&(i?y(t,n.autosizesClass):t.setAttribute("sizes",r)),s=t.getAttribute(n.srcsetAttr),a=t.getAttribute(n.srcAttr),o&&(u=t.parentNode,c=u&&h.test(u.nodeName||"")),m=e.firesLoad||"src"in t&&(s||a||c),f={target:t},y(t,n.loadingClass),m&&(clearTimeout(p),p=l(G,2500),g(t,tt,!0)),c&&d.call(u.getElementsByTagName("source"),et),s?t.setAttribute("srcset",s):a&&!c&&(U.test(t.nodeName)?function(t,e){try{t.contentWindow.location.replace(e)}catch(i){t.src=e}}(t,a):t.src=a),o&&(s||c)&&b(t,{src:a})),t._lazyRace&&delete t._lazyRace,v(t,n.lazyClass),T(function(){var e=t.complete&&t.naturalWidth>1;m&&!e||(e&&y(t,"ls-is-cached"),$(f),t._lazyCache=!0,l(function(){"_lazyCache"in t&&delete t._lazyCache},9))},!0)}),nt=function(t){var e,i=V.test(t.nodeName),r=i&&(t.getAttribute(n.sizesAttr)||t.getAttribute("sizes")),o="auto"==r;(!o&&u||!i||!t.getAttribute("src")&&!t.srcset||t.complete||m(t,n.errorClass)||!m(t,n.lazyClass))&&(e=_(t,"lazyunveilread").detail,o&&z.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,H++,it(t,e,o,r,i))},rt=function(){if(!u)if(o.now()-w<999)l(rt,999);else{var t=S(function(){n.loadMode=3,J()});u=!0,n.loadMode=3,J(),s("scroll",function(){3==n.loadMode&&(n.loadMode=2),t()},!0)}};return{_:function(){w=o.now(),i.elements=e.getElementsByClassName(n.lazyClass),a=e.getElementsByClassName(n.lazyClass+" "+n.preloadClass),s("scroll",J,!0),s("resize",J,!0),t.MutationObserver?new MutationObserver(J).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r.addEventListener("DOMNodeInserted",J,!0),r.addEventListener("DOMAttrModified",J,!0),setInterval(J,999)),s("hashchange",J,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(t){e.addEventListener(t,J,!0)}),/d$|^c/.test(e.readyState)?rt():(s("load",rt),e.addEventListener("DOMContentLoaded",J),l(rt,2e4)),i.elements.length?(K(),T._lsFlush()):J()},checkElems:J,unveil:nt}}(),z=(B=k(function(t,e,i,n){var r,o,a;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),h.test(e.nodeName||""))for(r=e.getElementsByTagName("source"),o=0,a=r.length;o<a;o++)r[o].setAttribute("sizes",n);i.detail.dataAttr||b(t,i.detail)}),j=function(t,e,i){var n,r=t.parentNode;r&&(i=w(t,r,i),(n=_(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=n.detail.width)&&i!==t._lazysizesWidth&&B(t,r,n,i))},F=S(function(){var t,e=R.length;if(e)for(t=0;t<e;t++)j(R[t])}),{_:function(){R=e.getElementsByClassName(n.autosizesClass),s("resize",F)},checkElems:F,updateElem:j}),L=function(){L.i||(L.i=!0,z._(),I._())};var R,B,j,F;return i={cfg:n,autoSizer:z,loader:I,init:L,uP:b,aC:y,rC:v,hC:m,fire:_,gW:w,rAF:T}}(t,t.document);t.lazySizes=n,"object"==typeof e&&e.exports&&(e.exports=n)}(window)},{}],55:[function(t,e,i){var n,r,o;n=window,r=function(t,e,i){"use strict";var n=[].slice,r=/blur-up["']*\s*:\s*["']*(always|auto)/,o=/image\/(jpeg|png|gif|svg\+xml)/,a=function(e){var n=e.getAttribute("data-media")||e.getAttribute("media"),r=e.getAttribute("type");return(!r||o.test(r))&&(!n||t.matchMedia(i.cfg.customMedia[n]||n).matches)},s=function(t,e){var i;return(t?n.call(t.querySelectorAll("source, img")):[e]).forEach(function(t){if(!i){var e=t.getAttribute("data-lowsrc");e&&a(t)&&(i=e)}}),i},l=function(t,n,r,o){var a,s=!1,l=!1,u="always"==o?0:Date.now(),c=0,h=(t||n).parentNode,p=function(){a&&i.rAF(function(){try{a.parentNode.removeChild(a)}catch(t){}a=null})},f=function(t){c++,l=t||l,t?p():c>1&&setTimeout(p,5e3)},d=function(){n.removeEventListener("load",d),n.removeEventListener("error",d),a&&i.rAF(function(){i.aC(a,"ls-original-loaded")}),!s||Date.now()-u<66?f(!0):f()};(function(){if(r){var u=function(){s=!0,a&&(i.rAF(function(){a&&i.aC(a,"ls-blur-up-loaded")}),a.removeEventListener("load",u),a.removeEventListener("error",u))};(a=e.createElement("img")).addEventListener("load",u),a.addEventListener("error",u),a.className="ls-blur-up-img",a.src=r,a.alt="",a.setAttribute("aria-hidden","true"),a.className+=" ls-inview",h.insertBefore(a,(t||n).nextSibling),"always"!=o&&(a.style.visibility="hidden",setTimeout(function(){i.rAF(function(){l||(a.style.visibility="")})},20))}})(),n.addEventListener("load",d),n.addEventListener("error",d);var m=function(t){h==t.target&&(i.aC(a||n,"ls-inview"),f(),h.removeEventListener("lazybeforeunveil",m))};h.getAttribute("data-expand")||h.setAttribute("data-expand",-1),h.addEventListener("lazybeforeunveil",m),i.aC(h,i.cfg.lazyClass)};t.addEventListener("lazybeforeunveil",function(t){var e=t.detail;if(e.instance==i&&e.blurUp){var n=t.target,r=n.parentNode;"PICTURE"!=r.nodeName&&(r=null),l(r,n,s(r,n)||"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",e.blurUp)}}),t.addEventListener("lazyunveilread",function(t){var e=t.detail;if(e.instance==i){var n=t.target,o=(getComputedStyle(n,null)||{fontFamily:""}).fontFamily.match(r);(o||n.getAttribute("data-lowsrc"))&&(e.blurUp=o&&o[1]||i.cfg.blurupMode||"always")}})},o=function(){r(n.lazySizes),n.removeEventListener("lazyunveilread",o,!0)},r=r.bind(null,n,n.document),"object"==typeof e&&e.exports?r(t("lazysizes")):n.lazySizes?o():n.addEventListener("lazyunveilread",o,!0)},{lazysizes:54}
vendor: 7,419 bytes, line 1
1],56:[function(t,e,i){var n,r;n=this,r=function(){"use strict";var t,e,i;function n(n,r){if(t)if(e){var o="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",a={};t(a),(i=r(a)).workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"}))}else e=r;else t=r}return n(0,function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var i=n;function n(t,e,i,n){this.cx=3*t,this.bx=3*(i-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=i,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var i,n,r,o,a;for(void 0===e&&(e=1e-6),r=t,a=0;a<8;a++){if(o=this.sampleCurveX(r)-t,Math.abs(o)<e)return r;var s=this.sampleCurveDerivativeX(r);if(Math.abs(s)<1e-6)break;r-=o/s}if((r=t)<(i=0))return i;if(r>(n=1))return n;for(;i<n;){if(o=this.sampleCurveX(r),Math.abs(o-t)<e)return r;t>o?i=r:n=r,r=.5*(n-i)+i}return r},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var r=function(t,e,i){this.column=t,this.row=e,this.zoom=i};r.prototype.clone=function(){return new r(this.column,this.row,this.zoom)},r.prototype.zoomTo=function(t){return this.clone()._zoomTo(t)},r.prototype.sub=function(t){return this.clone()._sub(t)},r.prototype._zoomTo=function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this},r.prototype._sub=function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this};var o=a;function a(t,e){this.x=t,this.y=e}function s(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!s(t[i],e[i]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==e){if("object"!=typeof e)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!s(t[n],e[n]))return!1;return!0}return t===e}function l(t,e,n,r){var o=new i(t,e,n,r);return function(t){return o.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,i=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=i,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),i=Math.sin(t),n=e*this.x-i*this.y,r=i*this.x+e*this.y;return this.x=n,this.y=r,this},_rotateAround:function(t,e){var i=Math.cos(t),n=Math.sin(t),r=e.x+i*(this.x-e.x)-n*(this.y-e.y),o=e.y+n*(this.x-e.x)+i*(this.y-e.y);return this.x=r,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var u=l(.25,.1,.25,1);function c(t,e,i){return Math.min(i,Math.max(e,t))}function h(t){for(var e=[],i=arguments.length-1;i-->0;)e[i]=arguments[i+1];for(var n=0,r=e;n<r.length;n+=1){var o=r[n];for(var a in o)t[a]=o[a]}return t}var p=1;function f(){return p++}function d(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function y(t,e,i){var n={};for(var r in t)n[r]=e.call(i||this,t[r],r,t);return n}function v(t,e,i){var n={};for(var r in t)e.call(i||this,t[r],r,t)&&(n[r]=t[r]);return n}function g(t){return Array.isArray(t)?t.map(g):"object"==typeof t&&t?y(t,g):t}var _={};function b(t){_[t]||("undefined"!=typeof console&&console.warn(t),_[t]=!0)}function x(t,e,i){return(i.y-t.y)*(e.x-t.x)>(e.y-t.y)*(i.x-t.x)}function w(t){for(var e=0,i=0,n=t.length,r=n-1,o=void 0,a=void 0;i<n;r=i++)o=t[i],e+=((a=t[r]).x-o.x)*(o.y+a.y);return e}var T=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),k=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,S=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,E={now:T,frame:function(t){var e=k(t);return{cancel:function(){return S(e)}}},getImageData:function(t){var e=self.document.createElement("canvas"),i=e.getContext("2d");if(!i)throw new Error("failed to create canvas 2d context");return e.width=t.width,e.height=t.height,i.drawImage(t,0,0,t.width,t.height),i.getImageData(0,0,t.width,t.height)},resolveURL:function(t){var e=self.document.createElement("a");return e.href=t,e.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},supportsWebp:!1};if(self.document){var P=self.document.createElement("img");P.onload=function(){E.supportsWebp=!0},P.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="}var A={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(A);var C=function(t){function e(e,i,n){t.call(this,e),this.status=i,this.url=n,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error);function D(t){var e=new self.XMLHttpRequest;for(var i in e.open(t.method||"GET",t.url,!0),t.headers)e.setRequestHeader(i,t.headers[i]);return e.withCredentials="include"===t.credentials,e}var O=function(t,e){var i=D(t);return i.responseType="arraybuffer",i.onerror=function(){e(new Error(i.statusText))},i.onload=function(){var n=i.response;if(0===n.byteLength&&200===i.status)return e(new Error("http status 200 returned without content."));(i.status>=200&&i.status<300||0===i.status)&&i.response?e(null,{data:n,cacheControl:i.getResponseHeader("C
1ache-Control"),expires:i.getResponseHeader("Expires")}):e(new C(i.statusText,i.status,t.url))},i.send(),{cancel:function(){return i.abort()}}};function M(t,e,i){i[t]&&-1!==i[t].indexOf(e)||(i[t]=i[t]||[],i[t].push(e))}function I(t,e,i){if(i&&i[t]){var n=i[t].indexOf(e);-1!==n&&i[t].splice(n,1)}}var z=function(t,e){void 0===e&&(e={}),h(this,e),this.type=t},L=function(t){function e(e,i){void 0===i&&(i={}),t.call(this,"error",h({error:e},i))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(z),R=function(){};R.prototype.on=function(t,e){return this._listeners=this._listeners||{},M(t,e,this._listeners),this},R.prototype.off=function(t,e){return I(t,e,this._listeners),I(t,e,this._oneTimeListeners),this},R.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},M(t,e,this._oneTimeListeners),this},R.prototype.fire=function(t){"string"==typeof t&&(t=new z(t,arguments[1]||{}));var e=t.type;if(this.listens(e)){t.target=this;for(var i=0,n=this._listeners&&this._listeners[e]?this._listeners[e].slice():[];i<n.length;i+=1)n[i].call(this,t);for(var r=0,o=this._oneTimeListeners&&this._oneTimeListeners[e]?this._oneTimeListeners[e].slice():[];r<o.length;r+=1){var a=o[r];I(e,a,this._oneTimeListeners),a.call(this,t)}var s=this._eventedParent;s&&(h(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(t))}else t instanceof L&&console.error(t.error);return this},R.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},R.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var B={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{}
vendor: 6,021 bytes, line 1
1,miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-z-order":{type:"enum",values:{"viewport-y":{},source:{}},default:"viewport-y",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 7,374 bytes, line 1
1,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Heatmap"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}
vendor: 6,712 bytes, line 1
1,"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 5,087 bytes, line 1
1,"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}}}
vendor: 15,842 bytes, line 1
1,j=function(t,e,i,n){this.message=(t?t+": ":"")+i,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__)};function F(t){var e=t.key,i=t.value;return i?[new j(e,i,"constants have been deprecated as of v8")]:[]}function N(t){for(var e=[],i=arguments.length-1;i-->0;)e[i]=arguments[i+1];for(var n=0,r=e;n<r.length;n+=1){var o=r[n];for(var a in o)t[a]=o[a]}return t}function V(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function U(t){return Array.isArray(t)?t.map(U):V(t)}var q=function(t){function e(e,i){t.call(this,i),this.message=i,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),Y=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var i=0,n=e;i<n.length;i+=1){var r=n[i],o=r[0],a=r[1];this.bindings[o]=a}};Y.prototype.concat=function(t){return new Y(this,t)},Y.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},Y.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var H={kind:"null"},W={kind:"number"},G={kind:"string"},Z={kind:"boolean"},X={kind:"color"},K={kind:"object"},J={kind:"value"},$={kind:"collator"},Q={kind:"formatted"};function tt(t,e){return{kind:"array",itemType:t,N:e}}function et(t){if("array"===t.kind){var e=et(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var it=[H,W,G,Z,X,Q,K,tt(J)];function nt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!nt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var i=0,n=it;i<n.length;i+=1)if(!nt(n[i],e))return null}return"Expected "+et(t)+" but found "+et(e)+" instead."}var rt=e(function(t,e){var i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))<0?0:t>255?255:t}function r(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function a(t){return"%"===t[t.length-1]?r(parseFloat(t)/100):r(parseFloat(t))}function s(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}try{e.parseCSSColor=function(t){var e,r=t.replace(/ /g,"").toLowerCase();if(r in i)return i[r].slice();if("#"===r[0])return 4===r.length?(e=parseInt(r.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===r.length&&(e=parseInt(r.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=r.indexOf("("),u=r.indexOf(")");if(-1!==l&&u+1===r.length){var c=r.substr(0,l),h=r.substr(l+1,u-(l+1)).split(","),p=1;switch(c){case"rgba":if(4!==h.length)return null;p=a(h.pop());case"rgb":return 3!==h.length?null:[o(h[0]),o(h[1]),o(h[2]),p];case"hsla":if(4!==h.length)return null;p=a(h.pop());case"hsl":if(3!==h.length)return null;var f=(parseFloat(h[0])%360+360)%360/360,d=a(h[1]),m=a(h[2]),y=m<=.5?m*(d+1):m+d-m*d,v=2*m-y;return[n(255*s(v,y,f+1/3)),n(255*s(v,y,f)),n(255*s(v,y,f-1/3)),p];default:return null}}return null}}catch(t){}}).parseCSSColor,ot=function(t,e,i,n){void 0===n&&(n=1),this.r=t,this.g=e,this.b=i,this.a=n};ot.parse=function(t){if(t){if(t instanceof ot)return t;if("string"==typeof t){var e=rt(t);if(e)return new ot(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},ot.prototype.toString=function(){var t=this.toArray(),e=t[0],i=t[1],n=t[2],r=t[3];return"rgba("+Math.round(e)+","+Math.round(i)+","+Math.round(n)+","+r+")"},ot.prototype.toArray=function(){var t=this.r,e=this.g,i=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*i/n,n]},ot.black=new ot(0,0,0,1),ot.white=new ot(1,1,1,1),ot.transparent=new ot(0,0,0,0),ot.red=new ot(1,0,0,1);var at=function(t,e,i){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};at.prototype.compare=function(t,e){return this.collator.compare(t,e)},at.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var st=function(t,e,i){this.text=t,this.scale=e,this.fontStack=i},lt=function(t){this.sections=t};function ut(t,e,i,n){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[t,e,i,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[t,e,i,n]:[t,e,i]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ct(t){if(null===t)return H;if("string"==typeof t)return G;if("boolean"==typeof t)return Z;if("number"==typeof t)return W;if(t instanceof ot)return X;if(t instanceof at)return $;if(t instanceof lt)return Q;if(Array.isArray(t)){for(var e,i=t.length,n=0,r=t;n<r.length;n+=1){var o=ct(r[n]);if(e){if(e===o)continue;e=J;break}e=o}return tt(e||J,i)}return K}function ht(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof ot||t instanceof lt?t.toString():JSON.stringify(t)}lt.fromString=function(t){return new lt([new st(t,null,null)])},lt.prototype.toString=function(){return this.sections.map(function(t){return t.text}).join("")},lt.prototype.serialize=function(){for(var t=["format"],e=0,i=this.sections;e<i.length;e+=1){var n=i[e];t.push(n.text);var r={};n.fontStack&&(r["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(r["font-scale"]=n.scale),t.push(r)}return t};var pt=function(t,e){this.type=t,this.value=e};pt.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!function t(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof ot)return!0;if(e instanceof at)return!0;if(e instanceof lt)return!0;if(Array.isArray(e)){for(var i=0,n=e;i<n.length;i+=1)if(!t(n[i]))return!1;return!0}if("object"==typeof e){for(var r in e)if(!t(e[r]))return!1;return!0}return!1}(t[1]))return e.error("invalid value");var i=t[1],n=ct(i),r=e.expectedType;return"array"!==n.kind||0!==n.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(n=r),new pt(n,i)},pt.prototype.evaluate=function(){return this.value},pt.prototype.eachChild=function(){},pt.prototype.possibleOutputs=function(){return[this.value]},pt.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ot?["rgba"].concat(this.value.toArray()):this.value instanceof lt?this.value.serialize():this.value};var ft=function(t){this.name="ExpressionEvaluationError",this.message=t};ft.prototype.toJSON=function(){return this.message};var dt={string:G,number:W,boolean:Z,object:K},mt=function(t,e){this.type=t,this.args=e};mt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i,n=1,r=t[0];if("array"===r){var o,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in dt)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=dt[s],n++}else o=J;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],n++}i=tt(o,a)}else i=dt[r];for(var l=[];n<t.length;n++){var u=e.parse(t[n],n,J);if(!u)return null;l.push(u)}return new mt(i,l)},mt.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var i=this.args[e].evaluate(t);if(!nt(this.type,ct(i)))return i;if(e===this.args.length-1)throw new ft("Expected value to be of type "+et(this.type)+", but found "+et(ct(i))+" instead.")}return null},mt.prototype.eachChild=function(t){this.args.forEach(t)},mt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},mt.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var i=t.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){e.push(i.kind);var n=t.N;("number"==typeof n||this.args.length>1)&&e.push(n)}}return e.concat(this.args.map(function(t){return t.serialize()}))};var yt=function(t){this.type=Q,this.sections=t};yt.parse=function(t,e){if(t.length<3)return e.error("Expected at least two arguments.");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");for(var i=[],n=1;n<t.length-1;n+=2){var r=e.parse(t[n],1,J);if(!r)return null;var o=r.type.kind;if("string"!==o&&"value"!==o&&"null"!==o)return e.error("Formatted text type must be 'string', 'value', or 'null'.");var a=t[n+1];if("object"!=typeof a||Array.isArray(a))return e.error("Format options argument must be an object.");var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,W)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,tt(G))))return null;i.push({text:r,scale:s,font:l})}return new yt(i)},yt.prototype.evaluate=function(t){return new lt(this.sections.map(function(e){return new st(ht(e.text.evaluate(t)),e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null)}))},yt.prototype.eachChild=function(t){for(var e=0,i=this.sections;e<i.length;e+=1){var n=i[e];t(n.text),n.scale&&t(n.scale),n.font&&t(n.font)}},yt.prototype.possibleOutputs=function(){return[void 0]},yt.prototype.serialize=function(){for(var t=["format"],e=0,i=this.sections;e<i.length;e+=1){var n=i[e];t.push(n.text.serialize());var r={};n.scale&&(r["font-scale"]=n.scale.serialize()),n.font&&(r["text-font"]=n.font.serialize()),t.push(r)}return t};var vt={"to-boolean":Z,"to-color":X,"to-number":W,"to-string":G},gt=function(t,e){this.type=t,this.args=e};gt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var i=t[0];if(("to-boolean"===i||"to-string"===i)&&2!==t.length)return e.error("Expected one argument.");for(var n=vt[i],r=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,J);if(!a)return null;r.push(a)}return new gt(n,r)},gt.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,i,n=0,r=this.args;n<r.length;n+=1){if(i=null,(e=r[n].evaluate(t))instanceof ot)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(i=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":ut(e[0],e[1],e[2],e[3])))return new ot(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ft(i||"Could not parse color from value '"+("string"==typeof e?e:JSON.stringify(e))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new ft("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?lt.fromString(ht(this.args[0].evaluate(t))):ht(this.args[0].evaluate(t))},gt.prototype.eachChild=function(t){this.args.forEach(t)},gt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},gt.prototype.serialize=function(){if("formatted"===this.type.kind)return new yt([{text:this.args[0],scale:null,font:null}]).serialize();var t=["to-"+this.type.kind];return this.eachChild(function(e){t.push(e.serialize())}),t};var _t=["Unknown","Point","LineString","Polygon"],bt=function(){this.globals=null,this.feature=null,this.featureState=null,this._parseColorCache={}};bt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},bt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?_t[this.feature.type]:this.feature.type:null},bt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},bt.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=ot.parse(t)),e};
vendor: 29,633 bytes, line 1
1var xt=function(t,e,i,n){this.name=t,this.type=e,this._evaluate=i,this.args=n};xt.prototype.evaluate=function(t){return this._evaluate(t,this.args)},xt.prototype.eachChild=function(t){this.args.forEach(t)},xt.prototype.possibleOutputs=function(){return[void 0]},xt.prototype.serialize=function(){return[this.name].concat(this.args.map(function(t){return t.serialize()}))},xt.parse=function(t,e){var i=t[0],n=xt.definitions[i];if(!n)return e.error('Unknown expression "'+i+'". If you wanted a literal array, use ["literal", [...]].',0);for(var r=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,a=o.filter(function(e){var i=e[0];return!Array.isArray(i)||i.length===t.length-1}),s=null,l=0,u=a;l<u.length;l+=1){var c=u[l],h=c[0],p=c[1];s=new Pt(e.registry,e.path,null,e.scope);for(var f=[],d=!1,m=1;m<t.length;m++){var y=t[m],v=Array.isArray(h)?h[m-1]:h.type,g=s.parse(y,1+f.length,v);if(!g){d=!0;break}f.push(g)}if(!d)if(Array.isArray(h)&&h.length!==f.length)s.error("Expected "+h.length+" arguments, but found "+f.length+" instead.");else{for(var _=0;_<f.length;_++){var b=Array.isArray(h)?h[_]:h.type,x=f[_];s.concat(_+1).checkSubtype(b,x.type)}if(0===s.errors.length)return new xt(i,r,p,f)}}if(1===a.length)e.errors.push.apply(e.errors,s.errors);else{for(var w=(a.length?a:o).map(function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(et).join(", ")+")":"("+et(e.type)+"...)"}).join(" | "),T=[],k=1;k<t.length;k++){var S=e.parse(t[k],1+T.length);if(!S)return null;T.push(et(S.type))}e.error("Expected arguments of type "+w+", but found ("+T.join(", ")+") instead.")}return null},xt.register=function(t,e){for(var i in xt.definitions=e,e)t[i]=xt};var wt=function(t,e,i){this.type=$,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=e};function Tt(t){if(t instanceof xt){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}var e=!0;return t.eachChild(function(t){e&&!Tt(t)&&(e=!1)}),e}function kt(t){if(t instanceof xt&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild(function(t){e&&!kt(t)&&(e=!1)}),e}function St(t,e){if(t instanceof xt&&e.indexOf(t.name)>=0)return!1;var i=!0;return t.eachChild(function(t){i&&!St(t,e)&&(i=!1)}),i}wt.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var i=t[1];if("object"!=typeof i||Array.isArray(i))return e.error("Collator options argument must be an object.");var n=e.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,Z);if(!n)return null;var r=e.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,Z);if(!r)return null;var o=null;return i.locale&&!(o=e.parse(i.locale,1,G))?null:new wt(n,r,o)},wt.prototype.evaluate=function(t){return new at(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},wt.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},wt.prototype.possibleOutputs=function(){return[void 0]},wt.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var Et=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Et.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var i=t[1];return e.scope.has(i)?new Et(i,e.scope.get(i)):e.error('Unknown variable "'+i+'". Make sure "'+i+'" has been bound in an enclosing "let" expression before using it.',1)},Et.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Et.prototype.eachChild=function(){},Et.prototype.possibleOutputs=function(){return[void 0]},Et.prototype.serialize=function(){return["var",this.name]};var Pt=function(t,e,i,n,r){void 0===e&&(e=[]),void 0===n&&(n=new Y),void 0===r&&(r=[]),this.registry=t,this.path=e,this.key=e.map(function(t){return"["+t+"]"}).join(""),this.scope=n,this.errors=r,this.expectedType=i};function At(t,e){for(var i,n,r=0,o=t.length-1,a=0;r<=o;){if(i=t[a=Math.floor((r+o)/2)],n=t[a+1],e===i||e>i&&e<n)return a;if(i<e)r=a+1;else{if(!(i>e))throw new ft("Input is not a number.");o=a-1}}return Math.max(a-1,0)}Pt.prototype.parse=function(t,e,i,n,r){return void 0===r&&(r={}),e?this.concat(e,i,n)._parse(t,r):this._parse(t,r)},Pt.prototype._parse=function(t,e){function i(t,e,i){return"assert"===i?new mt(e,[t]):"coerce"===i?new gt(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=t[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var r=this.registry[n];if(r){var o=r.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=i(o,a,e.typeAnnotation||"coerce");else o=i(o,a,e.typeAnnotation||"assert")}if(!(o instanceof pt)&&function t(e){if(e instanceof Et)return t(e.boundExpression);if(e instanceof xt&&"error"===e.name)return!1;if(e instanceof wt)return!1;var i=e instanceof gt||e instanceof mt,n=!0;return e.eachChild(function(e){n=i?n&&t(e):n&&e instanceof pt}),!!n&&(Tt(e)&&St(e,["zoom","heatmap-density","line-progress","is-supported-script"]))}(o)){var l=new bt;try{o=new pt(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},Pt.prototype.concat=function(t,e,i){var n="number"==typeof t?this.path.concat(t):this.path,r=i?this.scope.concat(i):this.scope;return new Pt(this.registry,n,e||null,r,this.errors)},Pt.prototype.error=function(t){for(var e=[],i=arguments.length-1;i-->0;)e[i]=arguments[i+1];var n=""+this.key+e.map(function(t){return"["+t+"]"}).join("");this.errors.push(new q(n,t))},Pt.prototype.checkSubtype=function(t,e){var i=nt(t,e);return i&&this.error(i),i};var Ct=function(t,e,i){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,r=i;n<r.length;n+=1){var o=r[n],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};function Dt(t,e,i){return t*(1-i)+e*i}Ct.parse=function(t,e){var i=t[1],n=t.slice(2);if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,1,W)))return null;var r=[],o=null;e.expectedType&&"value"!==e.expectedType.kind&&(o=e.expectedType),n.unshift(-1/0);for(var a=0;a<n.length;a+=2){var s=n[a],l=n[a+1],u=a+1,c=a+2;if("number"!=typeof s)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',u);if(r.length&&r[r.length-1][0]>=s)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var h=e.parse(l,c,o);if(!h)return null;o=o||h.type,r.push([s,h])}return new Ct(o,i,r)},Ct.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return i[0].evaluate(t);var r=e.length;return n>=e[r-1]?i[r-1].evaluate(t):i[At(e,n)].evaluate(t)},Ct.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e<i.length;e+=1)t(i[e])},Ct.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},Ct.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ot=Object.freeze({number:Dt,color:function(t,e,i){return new ot(Dt(t.r,e.r,i),Dt(t.g,e.g,i),Dt(t.b,e.b,i),Dt(t.a,e.a,i))},array:function(t,e,i){return t.map(function(t,n){return Dt(t,e[n],i)})}}),Mt=.95047,It=1,zt=1.08883,Lt=4/29,Rt=6/29,Bt=3*Rt*Rt,jt=Rt*Rt*Rt,Ft=Math.PI/180,Nt=180/Math.PI;function Vt(t){return t>jt?Math.pow(t,1/3):t/Bt+Lt}function Ut(t){return t>Rt?t*t*t:Bt*(t-Lt)}function qt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Yt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ht(t){var e=Yt(t.r),i=Yt(t.g),n=Yt(t.b),r=Vt((.4124564*e+.3575761*i+.1804375*n)/Mt),o=Vt((.2126729*e+.7151522*i+.072175*n)/It);return{l:116*o-16,a:500*(r-o),b:200*(o-Vt((.0193339*e+.119192*i+.9503041*n)/zt)),alpha:t.a}}function Wt(t){var e=(t.l+16)/116,i=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=It*Ut(e),i=Mt*Ut(i),n=zt*Ut(n),new ot(qt(3.2404542*i-1.5371385*e-.4985314*n),qt(-.969266*i+1.8760108*e+.041556*n),qt(.0556434*i-.2040259*e+1.0572252*n),t.alpha)}var Gt={forward:Ht,reverse:Wt,interpolate:function(t,e,i){return{l:Dt(t.l,e.l,i),a:Dt(t.a,e.a,i),b:Dt(t.b,e.b,i),alpha:Dt(t.alpha,e.alpha,i)}}},Zt={forward:function(t){var e=Ht(t),i=e.l,n=e.a,r=e.b,o=Math.atan2(r,n)*Nt;return{h:o<0?o+360:o,c:Math.sqrt(n*n+r*r),l:i,alpha:t.a}},reverse:function(t){var e=t.h*Ft,i=t.c;return Wt({l:t.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:t.alpha})},interpolate:function(t,e,i){return{h:function(t,e,i){var n=e-t;return t+i*(n>180||n<-180?n-360*Math.round(n/360):n)}(t.h,e.h,i),c:Dt(t.c,e.c,i),l:Dt(t.l,e.l,i),alpha:Dt(t.alpha,e.alpha,i)}}},Xt=Object.freeze({lab:Gt,hcl:Zt}),Kt=function(t,e,i,n,r){this.type=t,this.operator=e,this.interpolation=i,this.input=n,this.labels=[],this.outputs=[];for(var o=0,a=r;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function Jt(t,e,i,n){var r=n-i,o=t-i;return 0===r?0:1===e?o/r:(Math.pow(e,o)-1)/(Math.pow(e,r)-1)}Kt.interpolationFactor=function(t,e,n,r){var o=0;if("exponential"===t.name)o=Jt(e,t.base,n,r);else if("linear"===t.name)o=Jt(e,1,n,r);else if("cubic-bezier"===t.name){var a=t.controlPoints;o=new i(a[0],a[1],a[2],a[3]).solve(Jt(e,1,n,r))}return o},Kt.parse=function(t,e){var i=t[0],n=t[1],r=t[2],o=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return e.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some(function(t){return"number"!=typeof t||t<0||t>1}))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(r=e.parse(r,2,W)))return null;var l=[],u=null;"interpolate-hcl"===i||"interpolate-lab"===i?u=X:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],p=o[c+1],f=c+3,d=c+4;if("number"!=typeof h)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',f);if(l.length&&l[l.length-1][0]>=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var m=e.parse(p,d,u);if(!m)return null;u=u||m.type,l.push([h,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Kt(u,i,n,r,l):e.error("Type "+et(u)+" is not interpolatable.")},Kt.prototype.evaluate=function(t){var e=this.labels,i=this.outputs;if(1===e.length)return i[0].evaluate(t);var n=this.input.evaluate(t);if(n<=e[0])return i[0].evaluate(t);var r=e.length;if(n>=e[r-1])return i[r-1].evaluate(t);var o=At(e,n),a=e[o],s=e[o+1],l=Kt.interpolationFactor(this.interpolation,n,a,s),u=i[o].evaluate(t),c=i[o+1].evaluate(t);return"interpolate"===this.operator?Ot[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?Zt.reverse(Zt.interpolate(Zt.forward(u),Zt.forward(c),l)):Gt.reverse(Gt.interpolate(Gt.forward(u),Gt.forward(c),l))},Kt.prototype.eachChild=function(t){t(this.input);for(var e=0,i=this.outputs;e<i.length;e+=1)t(i[e])},Kt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},Kt.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],i=0;i<this.labels.length;i++)e.push(this.labels[i],this.outputs[i].serialize());return e};var $t=function(t,e){this.type=t,this.args=e};$t.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var i=null,n=e.expectedType;n&&"value"!==n.kind&&(i=n);for(var r=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],l=e.parse(s,1+r.length,i,void 0,{typeAnnotation:"omit"});if(!l)return null;i=i||l.type,r.push(l)}var u=n&&r.some(function(t){return nt(n,t.type)});return new $t(u?J:i,r)},$t.prototype.evaluate=function(t){for(var e=null,i=0,n=this.args;i<n.length&&null===(e=n[i].evaluate(t));i+=1);return e},$t.prototype.eachChild=function(t){this.args.forEach(t)},$t.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},$t.prototype.serialize=function(){var t=["coalesce"];return this.eachChild(function(e){t.push(e.serialize())}),t};var Qt=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};Qt.prototype.evaluate=function(t){return this.result.evaluate(t)},Qt.prototype.eachChild=function(t){for(var e=0,i=this.bindings;e<i.length;e+=1)t(i[e][1]);t(this.result)},Qt.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var i=[],n=1;n<t.length-1;n+=2){var r=t[n];if("string"!=typeof r)return e.error("Expected string, but found "+typeof r+" instead.",n);if(/[^a-zA-Z0-9_]/.test(r))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);var o=e.parse(t[n+1],n+1);if(!o)return null;i.push([r,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,i);return a?new Qt(i,a):null},Qt.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},Qt.prototype.serialize=function(){for(var t=["let"],e=0,i=this.bindings;e<i.length;e+=1){var n=i[e],r=n[0],o=n[1];t.push(r,o.serialize())}return t.push(this.result.serialize()),t};var te=function(t,e,i){this.type=t,this.index=e,this.input=i};te.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1,W),n=e.parse(t[2],2,tt(e.expectedType||J));if(!i||!n)return null;var r=n.type;return new te(r.itemType,i,n)},te.prototype.evaluate=function(t){var e=this.index.evaluate(t),i=this.input.evaluate(t);if(e<0)throw new ft("Array index out of bounds: "+e+" < 0.");if(e>=i.length)throw new ft("Array index out of bounds: "+e+" > "+(i.length-1)+".");if(e!==Math.floor(e))throw new ft("Array index must be an integer, but found "+e+" instead.");return i[e]},te.prototype.eachChild=function(t){t(this.index),t(this.input)},te.prototype.possibleOutputs=function(){return[void 0]},te.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ee=function(t,e,i,n,r,o){this.inputType=t,this.type=e,this.input=i,this.cases=n,this.outputs=r,this.otherwise=o};ee.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var i,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);for(var r={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var p=h[c];if("number"!=typeof p&&"string"!=typeof p)return u.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return u.error("Numeric branch labels must be integer values.");if(i){if(u.checkSubtype(i,ct(p)))return null}else i=ct(p);if(void 0!==r[String(p)])return u.error("Branch labels must be unique.");r[String(p)]=o.length}var f=e.parse(l,a,n);if(!f)return null;n=n||f.type,o.push(f)}var d=e.parse(t[1],1,J);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,n);return m?"value"!==d.type.kind&&e.concat(1).checkSubtype(i,d.type)?null:new ee(i,n,d,r,o,m):null},ee.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ct(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},ee.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},ee.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},ee.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],i=[],n={},r=0,o=Object.keys(this.cases).sort();r<o.length;r+=1){var a=o[r],s=n[t.cases[a]];void 0===s?(n[t.cases[a]]=i.length,i.push([t.cases[a],[a]])):i[s][1].push(a)}for(var l=function(e){return"number"===t.inputType.kind?Number(e):e},u=0,c=i;u<c.length;u+=1){var h=c[u],p=h[0],f=h[1];1===f.length?e.push(l(f[0])):e.push(f.map(l)),e.push(t.outputs[p].serialize())}return e.push(this.otherwise.serialize()),e};var ie=function(t,e,i){this.type=t,this.branches=e,this.otherwise=i};function ne(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function re(t,e,i,n){return 0===n.compare(e,i)}function oe(t,e,i){var n="=="!==t&&"!="!==t;return function(){function r(t,e,i){this.type=Z,this.lhs=t,this.rhs=e,this.collator=i,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return r.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var i=t[0],o=e.parse(t[1],1,J);if(!o)return null;if(!ne(i,o.type))return e.concat(1).error('"'+i+"\" comparisons are not supported for type '"+et(o.type)+"'.");var a=e.parse(t[2],2,J);if(!a)return null;if(!ne(i,a.type))return e.concat(2).error('"'+i+"\" comparisons are not supported for type '"+et(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+et(o.type)+"' and '"+et(a.type)+"'.");n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new mt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new mt(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,$)))return null}return new r(o,a,s)},r.prototype.evaluate=function(r){var o=this.lhs.evaluate(r),a=this.rhs.evaluate(r);if(n&&this.hasUntypedArgument){var s=ct(o),l=ct(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new ft('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var u=ct(o),c=ct(a);if("string"!==u.kind||"string"!==c.kind)return e(r,o,a)}return this.collator?i(r,o,a,this.collator.evaluate(r)):e(r,o,a)},r.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},r.prototype.possibleOutputs=function(){return[!0,!1]},r.prototype.serialize=function(){var e=[t];return this.eachChild(function(t){e.push(t.serialize())}),e},r}()}ie.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var i;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var n=[],r=1;r<t.length-1;r+=2){var o=e.parse(t[r],r,Z);if(!o)return null;var a=e.parse(t[r+1],r+1,i);if(!a)return null;n.push([o,a]),i=i||a.type}var s=e.parse(t[t.length-1],t.length-1,i);return s?new ie(i,n,s):null},ie.prototype.evaluate=function(t){for(var e=0,i=this.branches;e<i.length;e+=1){var n=i[e],r=n[0],o=n[1];if(r.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},ie.prototype.eachChild=function(t){for(var e=0,i=this.branches;e<i.length;e+=1){var n=i[e],r=n[0],o=n[1];t(r),t(o)}t(this.otherwise)},ie.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.branches.map(function(t){return t[0],t[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},ie.prototype.serialize=function(){var t=["case"];return this.eachChild(function(e){t.push(e.serialize())}),t};var ae=oe("==",function(t,e,i){return e===i},re),se=oe("!=",function(t,e,i){return e!==i},function(t,e,i,n){return!re(0,e,i,n)}),le=oe("<",function(t,e,i){return e<i},function(t,e,i,n){return n.compare(e,i)<0}),ue=oe(">",function(t,e,i){return e>i},function(t,e,i,n){return n.compare(e,i)>0}),ce=oe("<=",function(t,e,i){return e<=i},function(t,e,i,n){return n.compare(e,i)<=0}),he=oe(">=",function(t,e,i){return e>=i},function(t,e,i,n){return n.compare(e,i)>=0}),pe=function(t){this.type=W,this.input=t};pe.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var i=e.parse(t[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?e.error("Expected argument of type string or array, but found "+et(i.type)+" instead."):new pe(i):null},pe.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ft("Expected value to be of type string or array, but found "+et(ct(e))+" instead.")},pe.prototype.eachChild=function(t){t(this.input)},pe.prototype.possibleOutputs=function(){return[void 0]},pe.prototype.serialize=function(){var t=["length"];return this.eachChild(function(e){t.push(e.serialize())}),t};var fe={"==":ae,"!=":se,">":ue,"<":le,">=":he,"<=":ce,array:mt,at:te,boolean:mt,case:ie,coalesce:$t,collator:wt,format:yt,interpolate:Kt,"interpolate-hcl":Kt,"interpolate-lab":Kt,length:pe,let:Qt,literal:pt,match:ee,number:mt,object:mt,step:Ct,string:mt,"to-boolean":gt,"to-color":gt,"to-number":gt,"to-string":gt,var:Et};function de(t,e){var i=e[0],n=e[1],r=e[2],o=e[3];i=i.evaluate(t),n=n.evaluate(t),r=r.evaluate(t);var a=o?o.evaluate(t):1,s=ut(i,n,r,a);if(s)throw new ft(s);return new ot(i/255*a,n/255*a,r/255*a,a)}function me(t,e){return t in e}function ye(t,e){var i=e[t];return void 0===i?null:i}function ve(t){return{type:t}}function ge(t){return{result:"success",value:t}}function _e(t){return{result:"error",value:t}}function be(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function xe(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function we(t){return!!t.expression&&t.expression.interpolated}function Te(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function ke(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Se(t){return t}function Ee(t,e,i){return void 0!==t?t:void 0!==e?e:void 0!==i?i:void 0}function Pe(t,e,i,n,r){return Ee(typeof i===r?n[i]:void 0,t.default,e.default)}function Ae(t,e,i){if("number"!==Te(i))return Ee(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[n-1][0])return t.stops[n-1][1];var r=Oe(t.stops,i);return t.stops[r][1]}function Ce(t,e,i){var n=void 0!==t.base?t.base:1;if("number"!==Te(i))return Ee(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(i<=t.stops[0][0])return t.stops[0][1];if(i>=t.stops[r-1][0])return t.stops[r-1][1];var o=Oe(t.stops,i),a=function(t,e,i,n){var r=n-i,o=t-i;return 0===r?0:1===e?o/r:(Math.pow(e,o)-1)/(Math.pow(e,r)-1)}(i,n,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],l=t.stops[o+1][1],u=Ot[e.type]||Se;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=Xt[t.colorSpace];u=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==i&&void 0!==n)return u(i,n,a)}}:u(s,l,a)}function De(t,e,i){return"color"===e.type?i=ot.parse(i):"formatted"===e.type?i=lt.fromString(i.toString()):Te(i)===e.type||"enum"===e.type&&e.values[i]||(i=void 0),Ee(i,t.default,e.default)}function Oe(t,e){for(var i,n,r=0,o=t.length-1,a=0;r<=o;){if(i=t[a=Math.floor((r+o)/2)][0],n=t[a+1][0],e===i||e>i&&e<n)return a;i<e?r=a+1:i>e&&(o=a-1)}return Math.max(a-1,0)}xt.register(fe,{error:[{kind:"error"},[G],function(t,e){var i=e[0];throw new ft(i.evaluate(t))}],typeof:[G,[J],function(t,e){return et(ct(e[0].evaluate(t)))}],"to-rgba":[tt(W,4),[X],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[X,[W,W,W],de],rgba:[X,[W,W,W,W],de],has:{type:Z,overloads:[[[G],function(t,e){return me(e[0].evaluate(t),t.properties())}],[[G,K],function(t,e){var i=e[0],n=e[1];return me(i.evaluate(t),n.evaluate(t))}]]},get:{type:J,overloads:[[[G],function(t,e){return ye(e[0].evaluate(t),t.properties())}],[[G,K],function(t,e){var i=e[0],n=e[1];return ye(i.evaluate(t),n.evaluate(t))}]]},"feature-state":[J,[G],function(t,e){return ye(e[0].evaluate(t),t.featureState||{})}],properties:[K,[],function(t){return t.properties()}],"geometry-type":[G,[],function(t){return t.geometryType()}],id:[J,[],function(t){return t.id()}],zoom:[W,[],function(t){return t.globals.zoom}],"heatmap-density":[W,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[W,[],function(t){return t.globals.lineProgress||0}],"+":[W,ve(W),function(t,e){for(var i=0,n=0,r=e;n<r.length;n+=1)i+=r[n].evaluate(t);return i}],"*":[W,ve(W),function(t,e){for(var i=1,n=0,r=e;n<r.length;n+=1)i*=r[n].evaluate(t);return i}],"-":{type:W,overloads:[[[W,W],function(t,e){var i=e[0],n=e[1];return i.evaluate(t)-n.evaluate(t)}],[[W],function(t,e){return-e[0].evaluate(t)}]]},"/":[W,[W,W],function(t,e){var i=e[0],n=e[1];return i.evaluate(t)/n.evaluate(t)}],"%":[W,[W,W],function(t,e){var i=e[0],n=e[1];return i.evaluate(t)%n.evaluate(t)}],ln2:[W,[],function(){return Math.LN2}],pi:[W,[],function(){return Math.PI}],e:[W,[],function(){return Math.E}],"^":[W,[W,W],function(t,e){var i=e[0],n=e[1];return Math.pow(i.evaluate(t),n.evaluate(t))}],sqrt:[W,[W],function(t,e){var i=e[0];return Math.sqrt(i.evaluate(t))}],log10:[W,[W],function(t,e){var i=e[0];return Math.log(i.evaluate(t))/Math.LN10}],ln:[W,[W],function(t,e){var i=e[0];return Math.log(i.evaluate(t))}],log2:[W,[W],function(t,e){var i=e[0];return Math.log(i.evaluate(t))/Math.LN2}],sin:[W,[W],function(t,e){var i=e[0];return Math.sin(i.evaluate(t))}],cos:[W,[W],function(t,e){var i=e[0];return Math.cos(i.evaluate(t))}],tan:[W,[W],function(t,e){var i=e[0];return Math.tan(i.evaluate(t))}],asin:[W,[W],function(t,e){var i=e[0];return Math.asin(i.evaluate(t))}],acos:[W,[W],function(t,e){var i=e[0];return Math.acos(i.evaluate(t))}],atan:[W,[W],function(t,e){var i=e[0];return Math.atan(i.evaluate(t))}],min:[W,ve(W),function(t,e){return Math.min.apply(Math,e.map(function(e){return e.evaluate(t)}))}],max:[W,ve(W),function(t,e){return Math.max.apply(Math,e.map(function(e){return e.evaluate(t)}))}],abs:[W,[W],function(t,e){var i=e[0];return Math.abs(i.evaluate(t))}],round:[W,[W],function(t,e){var i=e[0].evaluate(t);return i<0?-Math.round(-i):Math.round(i)}],floor:[W,[W],function(t,e){var i=e[0];return Math.floor(i.evaluate(t))}],ceil:[W,[W],function(t,e){var i=e[0];return Math.ceil(i.evaluate(t))}],"filter-==":[Z,[G,J],function(t,e){var i=e[0],n=e[1];return t.properties()[i.value]===n.value}],"filter-id-==":[Z,[J],function(t,e){var i=e[0];return t.id()===i.value}],"filter-type-==":[Z,[G],function(t,e){var i=e[0];return t.geometryType()===i.value}],"filter-<":[Z,[G,J],function(t,e){var i=e[0],n=e[1],r=t.properties()[i.value],o=n.value;return typeof r==typeof o&&r<o}],"filter-id-<":[Z,[J],function(t,e){var i=e[0],n=t.id(),r=i.value;return typeof n==typeof r&&n<r}],"filter->":[Z,[G,J],function(t,e){var i=e[0],n=e[1],r=t.properties()[i.value],o=n.value;return typeof r==typeof o&&r>o}],"filter-id->":[Z,[J],function(t,e){var i=e[0],n=t.id(),r=i.value;return typeof n==typeof r&&n>r}
vendor: 5,102 bytes, line 1
1],"filter-<=":[Z,[G,J],function(t,e){var i=e[0],n=e[1],r=t.properties()[i.value],o=n.value;return typeof r==typeof o&&r<=o}],"filter-id-<=":[Z,[J],function(t,e){var i=e[0],n=t.id(),r=i.value;return typeof n==typeof r&&n<=r}],"filter->=":[Z,[G,J],function(t,e){var i=e[0],n=e[1],r=t.properties()[i.value],o=n.value;return typeof r==typeof o&&r>=o}],"filter-id->=":[Z,[J],function(t,e){var i=e[0],n=t.id(),r=i.value;return typeof n==typeof r&&n>=r}],"filter-has":[Z,[J],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Z,[],function(t){return null!==t.id()}],"filter-type-in":[Z,[tt(G)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[Z,[tt(J)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[Z,[G,tt(J)],function(t,e){var i=e[0];return e[1].value.indexOf(t.properties()[i.value])>=0}],"filter-in-large":[Z,[G,tt(J)],function(t,e){var i=e[0],n=e[1];return function(t,e,i,n){for(;i<=n;){var r=i+n>>1;if(e[r]===t)return!0;e[r]>t?n=r-1:i=r+1}return!1}(t.properties()[i.value],n.value,0,n.value.length-1)}],all:{type:Z,overloads:[[[Z,Z],function(t,e){var i=e[0],n=e[1];return i.evaluate(t)&&n.evaluate(t)}],[ve(Z),function(t,e){for(var i=0,n=e;i<n.length;i+=1)if(!n[i].evaluate(t))return!1;return!0}]]},any:{type:Z,overloads:[[[Z,Z],function(t,e){var i=e[0],n=e[1];return i.evaluate(t)||n.evaluate(t)}],[ve(Z),function(t,e){for(var i=0,n=e;i<n.length;i+=1)if(n[i].evaluate(t))return!0;return!1}]]},"!":[Z,[Z],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[Z,[G],function(t,e){var i=e[0],n=t.globals&&t.globals.isSupportedScript;return!n||n(i.evaluate(t))}],upcase:[G,[G],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[G,[G],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[G,ve(J),function(t,e){return e.map(function(e){return ht(e.evaluate(t))}).join("")}],"resolved-locale":[G,[$],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Me=function(t,e){var i;this.expression=t,this._warningHistory={},this._evaluator=new bt,this._defaultValue="color"===(i=e).type&&ke(i.default)?new ot(0,0,0,0):"color"===i.type?ot.parse(i.default)||null:void 0===i.default?null:i.default,this._enumValues="enum"===e.type?e.values:null};function Ie(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in fe}function ze(t,e){var i=new Pt(fe,[],function(t){var e={color:X,string:G,number:W,enum:G,boolean:Z,formatted:Q};return"array"===t.type?tt(e[t.value]||J,t.length):e[t.type]}(e)),n=i.parse(t,void 0,void 0,void 0,"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?ge(new Me(n,e)):_e(i.errors)}Me.prototype.evaluateWithoutErrorHandling=function(t,e,i){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=i,this.expression.evaluate(this._evaluator)},Me.prototype.evaluate=function(t,e,i){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=i||null;try{var n=this.expression.evaluate(this._evaluator);if(null==n)return this._defaultValue;if(this._enumValues&&!(n in this._enumValues))throw new ft("Expected value to be one of "+Object.keys(this._enumValues).map(function(t){return JSON.stringify(t)}).join(", ")+", but found "+JSON.stringify(n)+" instead.");return n}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Le=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!kt(e.expression)};Le.prototype.evaluateWithoutErrorHandling=function(t,e,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i)},Le.prototype.evaluate=function(t,e,i){return this._styleExpression.evaluate(t,e,i)};var Re=function(t,e,i){this.kind=t,this.zoomStops=i.labels,this._styleExpression=e,this.isStateDependent="camera"!==t&&!kt(e.expression),i instanceof Kt&&(this._interpolationType=i.interpolation)};function Be(t,e){if("error"===(t=ze(t,e)).result)return t;var i=t.value.expression,n=Tt(i);if(!n&&!be(e))return _e([new q("","data expressions not supported")]);var r=St(i,["zoom"]);if(!r&&!xe(e))return _e([new q("","zoom expressions not supported")]);var o=function t(e){var i=null;if(e instanceof Qt)i=t(e.result);else if(e instanceof $t)for(var n=0,r=e.args;n<r.length;n+=1){var o=r[n];if(i=t(o))break}else(e instanceof Ct||e instanceof Kt)&&e.input instanceof xt&&"zoom"===e.input.name&&(i=e);return i instanceof q?i:(e.eachChild(function(e){var n=t(e);n instanceof q?i=n:!i&&n?i=new q("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):i&&n&&i!==n&&(i=new q("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),i)}(i);return o||r?o instanceof q?_e([o]):o instanceof Kt&&!we(e)?_e([new q("",'"interpolate" expressions cannot be used with this property')]):ge(o?new Re(n?"camera":"composite",t.value,o):new Le(n?"constant":"source",t.value)):_e([new q("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}
vendor: 8,253 bytes, line 1
1Re.prototype.evaluateWithoutErrorHandling=function(t,e,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,i)},Re.prototype.evaluate=function(t,e,i){return this._styleExpression.evaluate(t,e,i)},Re.prototype.interpolationFactor=function(t,e,i){return this._interpolationType?Kt.interpolationFactor(this._interpolationType,t,e,i):0};var je=function(t,e){this._parameters=t,this._specification=e,N(this,function t(e,i){var n,r,o,a="color"===i.type,s=e.stops&&"object"==typeof e.stops[0][0],l=s||void 0!==e.property,u=s||!l,c=e.type||(we(i)?"exponential":"interval");if(a&&((e=N({},e)).stops&&(e.stops=e.stops.map(function(t){return[t[0],ot.parse(t[1])]})),e.default?e.default=ot.parse(e.default):e.default=ot.parse(i.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Xt[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===c)n=Ce;else if("interval"===c)n=Ae;else if("categorical"===c){n=Pe,r=Object.create(null);for(var h=0,p=e.stops;h<p.length;h+=1){var f=p[h];r[f[0]]=f[1]}o=typeof e.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');n=De}if(s){for(var d={},m=[],y=0;y<e.stops.length;y++){var v=e.stops[y],g=v[0].zoom;void 0===d[g]&&(d[g]={zoom:g,type:e.type,property:e.property,default:e.default,stops:[]},m.push(g)),d[g].stops.push([v[0].value,v[1]])}for(var _=[],b=0,x=m;b<x.length;b+=1){var w=x[b];_.push([d[w].zoom,t(d[w],i)])}return{kind:"composite",interpolationFactor:Kt.interpolationFactor.bind(void 0,{name:"linear"}),zoomStops:_.map(function(t){return t[0]}),evaluate:function(t,n){var r=t.zoom;return Ce({stops:_,base:e.base},i,r).evaluate(r,n)}}}return u?{kind:"camera",interpolationFactor:"exponential"===c?Kt.interpolationFactor.bind(void 0,{name:"exponential",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map(function(t){return t[0]}),evaluate:function(t){var a=t.zoom;return n(e,i,a,r,o)}}:{kind:"source",evaluate:function(t,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?Ee(e.default,i.default):n(e,i,s,r,o)}}}(this._parameters,this._specification))};function Fe(t,e){if(ke(t))return new je(t,e);if(Ie(t)){var i=Be(t,e);if("error"===i.result)throw new Error(i.value.map(function(t){return t.key+": "+t.message}).join(", "));return i.value}var n=t;return"string"==typeof t&&"color"===e.type&&(n=ot.parse(t)),{kind:"constant",evaluate:function(){return n}}}function Ne(t){var e=t.key,i=t.value,n=t.valueSpec||{},r=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],l=Te(i);if("object"!==l)return[new j(e,i,"object expected, "+l+" found")];for(var u in i){var c=u.split(".")[0],h=n[c]||n["*"],p=void 0;if(r[c])p=r[c];else if(n[c])p=ci;else if(r["*"])p=r["*"];else{if(!n["*"]){s.push(new j(e,i[u],'unknown property "'+u+'"'));continue}p=ci}s=s.concat(p({key:(e?e+".":e)+u,value:i[u],valueSpec:h,style:o,styleSpec:a,object:i,objectKey:u},i))}for(var f in n)r[f]||n[f].required&&void 0===n[f].default&&void 0===i[f]&&s.push(new j(e,i,'missing required property "'+f+'"'));return s}function Ve(t){var e=t.value,i=t.valueSpec,n=t.style,r=t.styleSpec,o=t.key,a=t.arrayElementValidator||ci;if("array"!==Te(e))return[new j(o,e,"array expected, "+Te(e)+" found")];if(i.length&&e.length!==i.length)return[new j(o,e,"array length "+i.length+" expected, length "+e.length+" found")];if(i["min-length"]&&e.length<i["min-length"])return[new j(o,e,"array length at least "+i["min-length"]+" expected, length "+e.length+" found")];var s={type:i.value};r.$version<7&&(s.function=i.function),"object"===Te(i.value)&&(s=i.value);for(var l=[],u=0;u<e.length;u++)l=l.concat(a({array:e,arrayIndex:u,value:e[u],valueSpec:s,style:n,styleSpec:r,key:o+"["+u+"]"}));return l}function Ue(t){var e=t.key,i=t.value,n=t.valueSpec,r=Te(i);return"number"!==r?[new j(e,i,"number expected, "+r+" found")]:"minimum"in n&&i<n.minimum?[new j(e,i,i+" is less than the minimum value "+n.minimum)]:"maximum"in n&&i>n.maximum?[new j(e,i,i+" is greater than the maximum value "+n.maximum)]:[]}function qe(t){var e,i,n,r=t.valueSpec,o=V(t.value.type),a={},s="categorical"!==o&&void 0===t.value.property,l=!s,u="array"===Te(t.value.stops)&&"array"===Te(t.value.stops[0])&&"object"===Te(t.value.stops[0][0]),c=Ne({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new j(t.key,t.value,'identity function may not have a "stops" property')];var e=[],i=t.value;return e=e.concat(Ve({key:t.key,value:i,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Te(i)&&0===i.length&&e.push(new j(t.key,i,"array must have at least one stop")),e},default:function(t){return ci({key:t.key,value:t.value,valueSpec:r,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&&s&&c.push(new j(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||c.push(new j(t.key,t.value,'missing required property "stops"')),"exponential"===o&&t.valueSpec.expression&&!we(t.valueSpec)&&c.push(new j(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!be(t.valueSpec)?c.push(new j(t.key,t.value,"property functions not supported")):s&&!xe(t.valueSpec)&&c.push(new j(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!u||void 0!==t.value.property||c.push(new j(t.key,t.value,'"property" property is required')),c;function h(t){var e=[],o=t.value,s=t.key;if("array"!==Te(o))return[new j(s,o,"array expected, "+Te(o)+" found")];if(2!==o.length)return[new j(s,o,"array length 2 expected, length "+o.length+" found")];if(u){if("object"!==Te(o[0]))return[new j(s,o,"object expected, "+Te(o[0])+" found")];if(void 0===o[0].zoom)return[new j(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new j(s,o,"object stop key must have value")];if(n&&n>V(o[0].zoom))return[new j(s,o[0].zoom,"stop zoom values must appear in ascending order")];V(o[0].zoom)!==n&&(n=V(o[0].zoom),i=void 0,a={}),e=e.concat(Ne({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Ue,value:p}}))}else e=e.concat(p({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return e.concat(ci({key:s+"[1]",value:o[1],valueSpec:r,style:t.style,styleSpec:t.styleSpec}))}function p(t,n){var s=Te(t.value),l=V(t.value),u=null!==t.value?t.value:n;if(e){if(s!==e)return[new j(t.key,u,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new j(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return be(r)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new j(t.key,u,c)]}return"categorical"!==o||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===s&&void 0!==i&&l<i?[new j(t.key,u,"stop domain values must appear in ascending order")]:(i=l,"categorical"===o&&l in a?[new j(t.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new j(t.key,u,"integer expected, found "+l)]}}function Ye(t){var e=("property"===t.expressionContext?Be:ze)(U(t.value),t.valueSpec);return"error"===e.result?e.value.map(function(e){return new j(""+t.key+e.key,t.value,e.message)}):"property"===t.expressionContext&&"text-font"===t.propertyKey&&-1!==e.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new j(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')]:"property"!==t.expressionContext||"layout"!==t.propertyType||kt(e.value._styleExpression.expression)?[]:[new j(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')]}function He(t){var e=t.key,i=t.value,n=t.valueSpec,r=[];return Array.isArray(n.values)?-1===n.values.indexOf(V(i))&&r.push(new j(e,i,"expected one of ["+n.values.join(", ")+"], "+JSON.stringify(i)+" found")):-1===Object.keys(n.values).indexOf(V(i))&&r.push(new j(e,i,"expected one of ["+Object.keys(n.values).join(", ")+"], "+JSON.stringify(i)+" found")),r}function We(t){if(!0===t||!1===t)return!0;
vendor: 16,330 bytes, line 1
1if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,i=t.slice(1);e<i.length;e+=1){var n=i[e];if(!We(n)&&"boolean"!=typeof n)return!1}return!0;default:return!0}}je.deserialize=function(t){return new je(t._parameters,t._specification)},je.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var Ge={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Ze(t){if(null==t)return function(){return!0};We(t)||(t=Ke(t));var e=ze(t,Ge);if("error"===e.result)throw new Error(e.value.map(function(t){return t.key+": "+t.message}).join(", "));return function(t,i){return e.value.evaluate(t,i)}}function Xe(t,e){return t<e?-1:t>e?1:0}function Ke(t){if(!t)return!0;var e,i=t[0];return t.length<=1?"any"!==i:"=="===i?Je(t[1],t[2],"=="):"!="===i?ti(Je(t[1],t[2],"==")):"<"===i||">"===i||"<="===i||">="===i?Je(t[1],t[2],i):"any"===i?(e=t.slice(1),["any"].concat(e.map(Ke))):"all"===i?["all"].concat(t.slice(1).map(Ke)):"none"===i?["all"].concat(t.slice(1).map(Ke).map(ti)):"in"===i?$e(t[1],t.slice(2)):"!in"===i?ti($e(t[1],t.slice(2))):"has"===i?Qe(t[1]):"!has"!==i||ti(Qe(t[1]))}function Je(t,e,i){switch(t){case"$type":return["filter-type-"+i,e];case"$id":return["filter-id-"+i,e];default:return["filter-"+i,t,e]}}function $e(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(function(t){return typeof t!=typeof e[0]})?["filter-in-large",t,["literal",e.sort(Xe)]]:["filter-in-small",t,["literal",e]]}}function Qe(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function ti(t){return["!",t]}function ei(t){return We(U(t.value))?Ye(N({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var i=e.value,n=e.key;if("array"!==Te(i))return[new j(n,i,"array expected, "+Te(i)+" found")];var r,o=e.styleSpec,a=[];if(i.length<1)return[new j(n,i,"filter array must have at least 1 element")];switch(a=a.concat(He({key:n+"[0]",value:i[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),V(i[0])){case"<":case"<=":case">":case">=":i.length>=2&&"$type"===V(i[1])&&a.push(new j(n,i,'"$type" cannot be use with operator "'+i[0]+'"'));case"==":case"!=":3!==i.length&&a.push(new j(n,i,'filter array for operator "'+i[0]+'" must have 3 elements'));case"in":case"!in":i.length>=2&&"string"!==(r=Te(i[1]))&&a.push(new j(n+"[1]",i[1],"string expected, "+r+" found"));for(var s=2;s<i.length;s++)r=Te(i[s]),"$type"===V(i[1])?a=a.concat(He({key:n+"["+s+"]",value:i[s],valueSpec:o.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==r&&"number"!==r&&"boolean"!==r&&a.push(new j(n+"["+s+"]",i[s],"string, number, or boolean expected, "+r+" found"));break;case"any":case"all":case"none":for(var l=1;l<i.length;l++)a=a.concat(t({key:n+"["+l+"]",value:i[l],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":r=Te(i[1]),2!==i.length?a.push(new j(n,i,'filter array for "'+i[0]+'" operator must have 2 elements')):"string"!==r&&a.push(new j(n+"[1]",i[1],"string expected, "+r+" found"))}return a}(t)}function ii(t,e){var i=t.key,n=t.style,r=t.styleSpec,o=t.value,a=t.objectKey,s=r[e+"_"+t.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===e&&l&&s[l[1]]&&s[l[1]].transition)return ci({key:i,value:o,valueSpec:r.transition,style:n,styleSpec:r});var u,c=t.valueSpec||s[a];if(!c)return[new j(i,o,'unknown property "'+a+'"')];if("string"===Te(o)&&be(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new j(i,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var h=[];return"symbol"===t.layerType&&("text-field"===a&&n&&!n.glyphs&&h.push(new j(i,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&ke(U(o))&&"identity"===V(o.type)&&h.push(new j(i,o,'"text-font" does not support identity functions'))),h.concat(ci({key:t.key,value:o,valueSpec:c,style:n,styleSpec:r,expressionContext:"property",propertyType:e,propertyKey:a}))}function ni(t){return ii(t,"paint")}function ri(t){return ii(t,"layout")}function oi(t){var e=[],i=t.value,n=t.key,r=t.style,o=t.styleSpec;i.type||i.ref||e.push(new j(n,i,'either "type" or "ref" is required'));var a,s=V(i.type),l=V(i.ref);if(i.id)for(var u=V(i.id),c=0;c<t.arrayIndex;c++){var h=r.layers[c];V(h.id)===u&&e.push(new j(n,i.id,'duplicate layer id "'+i.id+'", previously used at line '+h.id.__line__))}if("ref"in i)["type","source","source-layer","filter","layout"].forEach(function(t){t in i&&e.push(new j(n,i[t],'"'+t+'" is prohibited for ref layers'))}),r.layers.forEach(function(t){V(t.id)===l&&(a=t)}),a?a.ref?e.push(new j(n,i.ref,"ref cannot reference another ref layer")):s=V(a.type):e.push(new j(n,i.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(i.source){var p=r.sources&&r.sources[i.source],f=p&&V(p.type);p?"vector"===f&&"raster"===s?e.push(new j(n,i.source,'layer "'+i.id+'" requires a raster source')):"raster"===f&&"raster"!==s?e.push(new j(n,i.source,'layer "'+i.id+'" requires a vector source')):"vector"!==f||i["source-layer"]?"raster-dem"===f&&"hillshade"!==s?e.push(new j(n,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!i.paint||!i.paint["line-gradient"]||"geojson"===f&&p.lineMetrics||e.push(new j(n,i,'layer "'+i.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new j(n,i,'layer "'+i.id+'" must specify a "source-layer"')):e.push(new j(n,i.source,'source "'+i.source+'" not found'))}else e.push(new j(n,i,'missing required property "source"'));return e=e.concat(Ne({key:n,value:i,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return ci({key:n+".type",value:i.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:i,objectKey:"type"})},filter:ei,layout:function(t){return Ne({layer:i,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return ri(N({layerType:s},t))}}})},paint:function(t){return Ne({layer:i,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return ni(N({layerType:s},t))}}})}}}))}function ai(t){var e=t.value,i=t.key,n=t.styleSpec,r=t.style;if(!e.type)return[new j(i,e,'"type" is required')];var o=V(e.type),a=[];switch(o){case"vector":case"raster":case"raster-dem":if(a=a.concat(Ne({key:i,value:e,valueSpec:n["source_"+o.replace("-","_")],style:t.style,styleSpec:n})),"url"in e)for(var s in e)["type","url","tileSize"].indexOf(s)<0&&a.push(new j(i+"."+s,e[s],'a source with a "url" property may not include a "'+s+'" property'));return a;case"geojson":return Ne({key:i,value:e,valueSpec:n.source_geojson,style:r,styleSpec:n});case"video":return Ne({key:i,value:e,valueSpec:n.source_video,style:r,styleSpec:n});case"image":return Ne({key:i,value:e,valueSpec:n.source_image,style:r,styleSpec:n});case"canvas":return a.push(new j(i,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")),a;default:return He({key:i+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:r,styleSpec:n})}}function si(t){var e=t.value,i=t.styleSpec,n=i.light,r=t.style,o=[],a=Te(e);if(void 0===e)return o;if("object"!==a)return o.concat([new j("light",e,"object expected, "+a+" found")]);for(var s in e){var l=s.match(/^(.*)-transition$/);o=l&&n[l[1]]&&n[l[1]].transition?o.concat(ci({key:s,value:e[s],valueSpec:i.transition,style:r,styleSpec:i})):n[s]?o.concat(ci({key:s,value:e[s],valueSpec:n[s],style:r,styleSpec:i})):o.concat([new j(s,e[s],'unknown property "'+s+'"')])}return o}function li(t){var e=t.value,i=t.key,n=Te(e);return"string"!==n?[new j(i,e,"string expected, "+n+" found")]:[]}var ui={"*":function(){return[]},array:Ve,boolean:function(t){var e=t.value,i=t.key,n=Te(e);return"boolean"!==n?[new j(i,e,"boolean expected, "+n+" found")]:[]},number:Ue,color:function(t){var e=t.key,i=t.value,n=Te(i);return"string"!==n?[new j(e,i,"color expected, "+n+" found")]:null===rt(i)?[new j(e,i,'color expected, "'+i+'" found')]:[]},constants:F,enum:He,filter:ei,function:qe,layer:oi,object:Ne,source:ai,light:si,string:li,formatted:function(t){return 0===li(t).length?[]:Ye(t)}};function ci(t){var e=t.value,i=t.valueSpec,n=t.styleSpec;return i.expression&&ke(V(e))?qe(t):i.expression&&Ie(U(e))?Ye(t):i.type&&ui[i.type]?ui[i.type](t):Ne(N({},t,{valueSpec:i.type?n[i.type]:i}))}function hi(t){var e=t.value,i=t.key,n=li(t);return n.length?n:(-1===e.indexOf("{fontstack}")&&n.push(new j(i,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&n.push(new j(i,e,'"glyphs" url must include a "{range}" token')),n)}function pi(t,e){e=e||B;var i=[];return i=i.concat(ci({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:hi,"*":function(){return[]}}})),t.constants&&(i=i.concat(F({key:"constants",value:t.constants,style:t,styleSpec:e}))),fi(i)}function fi(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function di(t){return function(){return fi(t.apply(this,arguments))}}pi.source=di(ai),pi.light=di(si),pi.layer=di(oi),pi.filter=di(ei),pi.paintProperty=di(ni),pi.layoutProperty=di(ri);var mi=pi,yi=pi.light,vi=pi.paintProperty,gi=pi.layoutProperty;function _i(t,e){var i=!1;if(e&&e.length)for(var n=0,r=e;n<r.length;n+=1){var o=r[n];t.fire(new L(new Error(o.message))),i=!0}return i}var bi=wi,xi=3;function wi(t,e,i){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var r=new Int32Array(this.arrayBuffer);t=r[0],e=r[1],i=r[2],this.d=e+2*i;for(var o=0;o<this.d*this.d;o++){var a=r[xi+o],s=r[xi+o+1];n.push(a===s?null:r.subarray(a,s))}var l=r[xi+n.length],u=r[xi+n.length+1];this.keys=r.subarray(l,u),this.bboxes=r.subarray(u),this.insert=this._insertReadonly}else{this.d=e+2*i;for(var c=0;c<this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=i,this.scale=e/t,this.uid=0;var h=i/e*t;this.min=-h,this.max=t+h}wi.prototype.insert=function(t,e,i,n,r){this._forEachCell(e,i,n,r,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r)},wi.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},wi.prototype._insertCell=function(t,e,i,n,r,o){this.cells[r].push(o)},wi.prototype.query=function(t,e,i,n){var r=this.min,o=this.max;if(t<=r&&e<=r&&o<=i&&o<=n)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(t,e,i,n,this._queryCell,a,{}),a},wi.prototype._queryCell=function(t,e,i,n,r,o,a){var s=this.cells[r];if(null!==s)for(var l=this.keys,u=this.bboxes,c=0;c<s.length;c++){var h=s[c];if(void 0===a[h]){var p=4*h;t<=u[p+2]&&e<=u[p+3]&&i>=u[p+0]&&n>=u[p+1]?(a[h]=!0,o.push(l[h])):a[h]=!1}}},wi.prototype._forEachCell=function(t,e,i,n,r,o,a){for(var s=this._convertToCellCoord(t),l=this._convertToCellCoord(e),u=this._convertToCellCoord(i),c=this._convertToCellCoord(n),h=s;h<=u;h++)for(var p=l;p<=c;p++){var f=this.d*p+h;if(r.call(this,t,e,i,n,f,o,a))return}},wi.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},wi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=xi+this.cells.length+1+1,i=0,n=0;n<this.cells.length;n++)i+=this.cells[n].length;var r=new Int32Array(e+i+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;for(var o=e,a=0;a<t.length;a++){var s=t[a];r[xi+a]=o,r.set(s,o),o+=s.length}return r[xi+t.length]=o,r.set(this.keys,o),o+=this.keys.length,r[xi+t.length+1]=o,r.set(this.bboxes,o),o+=this.bboxes.length,r.buffer};var Ti=self.ImageData,ki={};function Si(t,e,i){void 0===i&&(i={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),ki[t]={klass:e,omit:i.omit||[],shallow:i.shallow||[]}}for(var Ei in Si("Object",Object),bi.serialize=function(t,e){var i=t.toArrayBuffer();return e&&e.push(i),{buffer:i}},bi.deserialize=function(t){return new bi(t.buffer)},Si("Grid",bi),Si("Color",ot),Si("Error",Error),Si("StylePropertyFunction",je),Si("StyleExpression",Me,{omit:["_evaluator"]}),Si("ZoomDependentExpression",Re),Si("ZoomConstantExpression",Le),Si("CompoundExpression",xt,{omit:["_evaluate"]}),fe)fe[Ei]._classRegistryKey||Si("Expression_"+Ei,fe[Ei]);function Pi(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(t instanceof ArrayBuffer)return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var i=t;return e&&e.push(i.buffer),i}if(t instanceof Ti)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],r=0,o=t;r<o.length;r+=1){var a=o[r];n.push(Pi(a,e))}return n}if("object"==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var u=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var c in t)if(t.hasOwnProperty(c)&&!(ki[l].omit.indexOf(c)>=0)){var h=t[c];u[c]=ki[l].shallow.indexOf(c)>=0?h:Pi(h,e)}t instanceof Error&&(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(u.$name=l),u}throw new Error("can't serialize object of type "+typeof t)}function Ai(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof Ti)return t;if(Array.isArray(t))return t.map(Ai);if("object"==typeof t){var e=t.$name||"Object",i=ki[e].klass;if(!i)throw new Error("can't deserialize unregistered class "+e);if(i.deserialize)return i.deserialize(t);for(var n=Object.create(i.prototype),r=0,o=Object.keys(t);r<o.length;r+=1){var a=o[r];if("$name"!==a){var s=t[a];n[a]=ki[e].shallow.indexOf(a)>=0?s:Ai(s)}}return n}throw new Error("can't deserialize object of type "+typeof t)}var Ci=function(){this.first=!0};Ci.prototype.update=function(t,e){var i=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=i,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=i,!0):(this.lastFloorZoom>i?(this.lastIntegerZoom=i+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<i&&(this.lastIntegerZoom=i,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=i,!0))};var Di={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287}
1,"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Oi(t){for(var e=0,i=t;e<i.length;e+=1)if(Ii(i[e].charCodeAt(0)))return!0;return!1}function Mi(t){return!(Di.Arabic(t)||Di["Arabic Supplement"](t)||Di["Arabic Extended-A"](t)||Di["Arabic Presentation Forms-A"](t)||Di["Arabic Presentation Forms-B"](t))}function Ii(t){return!!(746===t||747===t||!(t<4352)&&(Di["Bopomofo Extended"](t)||Di.Bopomofo(t)||Di["CJK Compatibility Forms"](t)&&!(t>
vendor: 4,681 bytes, line 1
1=65097&&t<=65103)||Di["CJK Compatibility Ideographs"](t)||Di["CJK Compatibility"](t)||Di["CJK Radicals Supplement"](t)||Di["CJK Strokes"](t)||!(!Di["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Di["CJK Unified Ideographs Extension A"](t)||Di["CJK Unified Ideographs"](t)||Di["Enclosed CJK Letters and Months"](t)||Di["Hangul Compatibility Jamo"](t)||Di["Hangul Jamo Extended-A"](t)||Di["Hangul Jamo Extended-B"](t)||Di["Hangul Jamo"](t)||Di["Hangul Syllables"](t)||Di.Hiragana(t)||Di["Ideographic Description Characters"](t)||Di.Kanbun(t)||Di["Kangxi Radicals"](t)||Di["Katakana Phonetic Extensions"](t)||Di.Katakana(t)&&12540!==t||!(!Di["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Di["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Di["Unified Canadian Aboriginal Syllabics"](t)||Di["Unified Canadian Aboriginal Syllabics Extended"](t)||Di["Vertical Forms"](t)||Di["Yijing Hexagram Symbols"](t)||Di["Yi Syllables"](t)||Di["Yi Radicals"](t)))}function zi(t){return!(Ii(t)||function(t){return!!(Di["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Di["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Di["Letterlike Symbols"](t)||Di["Number Forms"](t)||Di["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Di["Control Pictures"](t)&&9251!==t||Di["Optical Character Recognition"](t)||Di["Enclosed Alphanumerics"](t)||Di["Geometric Shapes"](t)||Di["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Di["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Di["CJK Symbols and Punctuation"](t)||Di.Katakana(t)||Di["Private Use Area"](t)||Di["CJK Compatibility Forms"](t)||Di["Small Form Variants"](t)||Di["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function Li(t,e){return!(!e&&(t>=1424&&t<=2303||Di["Arabic Presentation Forms-A"](t)||Di["Arabic Presentation Forms-B"](t))||t>=2304&&t<=3583||t>=3840&&t<=4255||Di.Khmer(t))}var Ri,Bi=!1,ji=null,Fi=!1,Ni=new R,Vi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Fi||null!=Vi.applyArabicShaping}},Ui=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ci,this.transition={})};Ui.prototype.isSupportedScript=function(t){return function(t,e){for(var i=0,n=t;i<n.length;i+=1)if(!Li(n[i].charCodeAt(0),e))return!1;return!0}(t,Vi.isLoaded())},Ui.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Ui.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),i=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*i}:{fromScale:.5,toScale:1,t:1-(1-i)*e}};var qi=function(t,e){this.property=t,this.value=e,this.expression=Fe(void 0===e?t.specification.default:e,t.specification)};qi.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},qi.prototype.possiblyEvaluate=function(t){return this.property.possiblyEvaluate(this,t)};var Yi=function(t){this.property=t,this.value=new qi(t,void 0)};Yi.prototype.transitioned=function(t,e){return new Wi(this.property,this.value,e,h({},t.transition,this.transition),t.now)},Yi.prototype.untransitioned=function(){return new Wi(this.property,this.value,null,{},0)};var Hi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Hi.prototype.getValue=function(t){return g(this._values[t].value.value)},Hi.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Yi(this._values[t].property)),this._values[t].value=new qi(this._values[t].property,null===e?void 0:g(e))},Hi.prototype.getTransition=function(t){return g(this._values[t].transition)},Hi.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Yi(this._values[t].property)),this._values[t].transition=g(e)||void 0},Hi.prototype.serialize=function(){for(var t={},e=0,i=Object.keys(this._values);
vendor: 12,898 bytes, line 1
1e<i.length;e+=1){var n=i[e],r=this.getValue(n);void 0!==r&&(t[n]=r);var o=this.getTransition(n);void 0!==o&&(t[n+"-transition"]=o)}return t},Hi.prototype.transitioned=function(t,e){for(var i=new Gi(this._properties),n=0,r=Object.keys(this._values);n<r.length;n+=1){var o=r[n];i._values[o]=this._values[o].transitioned(t,e._values[o])}return i},Hi.prototype.untransitioned=function(){for(var t=new Gi(this._properties),e=0,i=Object.keys(this._values);e<i.length;e+=1){var n=i[e];t._values[n]=this._values[n].untransitioned()}return t};var Wi=function(t,e,i,n,r){this.property=t,this.value=e,this.begin=r+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=i)};Wi.prototype.possiblyEvaluate=function(t){var e=t.now||0,i=this.value.possiblyEvaluate(t),n=this.prior;if(n){if(e>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(e<this.begin)return n.possiblyEvaluate(t);var r=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(n.possiblyEvaluate(t),i,function(t){if(r<=0)return 0;if(r>=1)return 1;var e=r*r,i=e*r;return 4*(r<.5?i:3*(r-e)+i-.75)}())}return i};var Gi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Gi.prototype.possiblyEvaluate=function(t){for(var e=new Ki(this._properties),i=0,n=Object.keys(this._values);i<n.length;i+=1){var r=n[i];e._values[r]=this._values[r].possiblyEvaluate(t)}return e},Gi.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1){var i=e[t];if(this._values[i].prior)return!0}return!1};var Zi=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};Zi.prototype.getValue=function(t){return g(this._values[t].value)},Zi.prototype.setValue=function(t,e){this._values[t]=new qi(this._values[t].property,null===e?void 0:g(e))},Zi.prototype.serialize=function(){for(var t={},e=0,i=Object.keys(this._values);e<i.length;e+=1){var n=i[e],r=this.getValue(n);void 0!==r&&(t[n]=r)}return t},Zi.prototype.possiblyEvaluate=function(t){for(var e=new Ki(this._properties),i=0,n=Object.keys(this._values);i<n.length;i+=1){var r=n[i];e._values[r]=this._values[r].possiblyEvaluate(t)}return e};var Xi=function(t,e,i){this.property=t,this.value=e,this.parameters=i};Xi.prototype.isConstant=function(){return"constant"===this.value.kind},Xi.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},Xi.prototype.evaluate=function(t,e){return this.property.evaluate(this.value,this.parameters,t,e)};var Ki=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};Ki.prototype.get=function(t){return this._values[t]};var Ji=function(t){this.specification=t};Ji.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},Ji.prototype.interpolate=function(t,e,i){var n=Ot[this.specification.type];return n?n(t,e,i):t};var $i=function(t){this.specification=t};$i.prototype.possiblyEvaluate=function(t,e){return"constant"===t.expression.kind||"camera"===t.expression.kind?new Xi(this,{kind:"constant",value:t.expression.evaluate(e)},e):new Xi(this,t.expression,e)},$i.prototype.interpolate=function(t,e,i){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Xi(this,{kind:"constant",value:void 0},t.parameters);var n=Ot[this.specification.type];return n?new Xi(this,{kind:"constant",value:n(t.value.value,e.value.value,i)},t.parameters):t},$i.prototype.evaluate=function(t,e,i,n){return"constant"===t.kind?t.value:t.evaluate(e,i,n)};var Qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e){if(void 0===t.value)return new Xi(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var i=t.expression.evaluate(e),n=this._calculate(i,i,i,e);return new Xi(this,{kind:"constant",value:n},e)}if("camera"===t.expression.kind){var r=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new Xi(this,{kind:"constant",value:r},e)}return new Xi(this,t.expression,e)},e.prototype.evaluate=function(t,e,i,n){if("source"===t.kind){var r=t.evaluate(e,i,n);return this._calculate(r,r,r,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},i,n),t.evaluate({zoom:Math.floor(e.zoom)},i,n),t.evaluate({zoom:Math.floor(e.zoom)+1},i,n),e):t.value},e.prototype._calculate=function(t,e,i,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:i,to:e}},e.prototype.interpolate=function(t){return t},e}($i),tn=function(t){this.specification=t};tn.prototype.possiblyEvaluate=function(t,e){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new Ui(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Ui(Math.floor(e.zoom),e)),t.expression.evaluate(new Ui(Math.floor(e.zoom+1),e)),e)}},tn.prototype._calculate=function(t,e,i,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:i,to:e}},tn.prototype.interpolate=function(t){return t};var en=function(t){this.specification=t};en.prototype.possiblyEvaluate=function(t,e){return!!t.expression.evaluate(e)},en.prototype.interpolate=function(){return!1};var nn=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},t){var i=t[e],n=this.defaultPropertyValues[e]=new qi(i,void 0),r=this.defaultTransitionablePropertyValues[e]=new Yi(i);this.defaultTransitioningPropertyValues[e]=r.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Si("DataDrivenProperty",$i),Si("DataConstantProperty",Ji),Si("CrossFadedDataDrivenProperty",Qi),Si("CrossFadedProperty",tn),Si("ColorRampProperty",en);var rn=function(t){function e(e,i){if(t.call(this),this.id=e.id,this.type=e.type,this.visibility="visible",this._featureFilter=function(){return!0},"custom"!==e.type&&(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),i.layout&&(this._unevaluatedLayout=new Zi(i.layout)),i.paint)){for(var n in this._transitionablePaint=new Hi(i.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var r in e.layout)this.setLayoutProperty(r,e.layout[r],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,i){if(null!=e){var n="layers."+this.id+".layout."+t;if(this._validate(gi,n,t,e,i))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility="none"===e?e:"visible"},e.prototype.getPaintProperty=function(t){return m(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,i){if(null!=e){var n="layers."+this.id+".paint."+t;if(this._validate(vi,n,t,e,i))return!1}if(m(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var r=this._transitionablePaint._values[t],o="cross-faded-data-driven"===r.property.specification["property-type"]&&!r.value.value&&e,a=this._transitionablePaint._values[t].value.isDataDriven();this._transitionablePaint.setValue(t,e);var s=this._transitionablePaint._values[t].value.isDataDriven();return this._handleSpecialPaintPropertyUpdate(t),s||a||o},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return"none"===this.visibility&&(t.layout=t.layout||{},t.layout.visibility="none"),v(t,function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)})},e.prototype._validate=function(t,e,i,n,r){return(!r||!1!==r.validate)&&_i(this,t.call(mi,{key:e,layerType:this.type,objectKey:i,value:n,styleSpec:B,style:{glyphs:!0,sprite:!0}}))},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof Xi&&be(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(R),on={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},an=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},sn=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function ln(t,e){void 0===e&&(e=1);var i=0,n=0;return{members:t.map(function(t){var r,o=(r=t.type,on[r].BYTES_PER_ELEMENT),a=i=un(i,Math.max(e,o)),s=t.components||1;return n=Math.max(n,o),i+=o*s,{name:t.name,type:t.type,components:s,offset:a}}),size:un(i,Math.max(n,e)),alignment:e}}function un(t,e){return Math.ceil(t/e)*e}sn.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},sn.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},sn.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},sn.prototype.clear=function(){this.length=0},sn.prototype.resize=function(t){this.reserve(t),this.length=t},sn.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},sn.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;this.resize(i+1);var n=2*i;return this.int16[n+0]=t,this.int16[n+1]=e,i},e.prototype.emplace=function(t,e,i){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=i,t},e}(sn);cn.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",cn);var hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n){var r=this.length;this.resize(r+1);var o=4*r;return this.int16[o+0]=t,this.int16[o+1]=e,this.int16[o+2]=i,this.int16[o+3]=n,r},e.prototype.emplace=function(t,e,i,n,r){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=i,this.int16[o+2]=n,this.int16[o+3]=r,t},e}(sn);hn.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",hn);var pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}
vendor: 24,741 bytes, line 1
1,e.prototype.emplaceBack=function(t,e,i,n,r,o){var a=this.length;this.resize(a+1);var s=6*a;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=r,this.int16[s+5]=o,a},e.prototype.emplace=function(t,e,i,n,r,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(sn);pn.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",pn);var fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o,a,s){var l=this.length;this.resize(l+1);var u=6*l,c=12*l;return this.int16[u+0]=t,this.int16[u+1]=e,this.int16[u+2]=i,this.int16[u+3]=n,this.uint8[c+8]=r,this.uint8[c+9]=o,this.uint8[c+10]=a,this.uint8[c+11]=s,l},e.prototype.emplace=function(t,e,i,n,r,o,a,s,l){var u=6*t,c=12*t;return this.int16[u+0]=e,this.int16[u+1]=i,this.int16[u+2]=n,this.int16[u+3]=r,this.uint8[c+8]=o,this.uint8[c+9]=a,this.uint8[c+10]=s,this.uint8[c+11]=l,t},e}(sn);fn.prototype.bytesPerElement=12,Si("StructArrayLayout4i4ub12",fn);var dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o,a,s){var l=this.length;this.resize(l+1);var u=8*l;return this.uint16[u+0]=t,this.uint16[u+1]=e,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=r,this.uint16[u+5]=o,this.uint16[u+6]=a,this.uint16[u+7]=s,l},e.prototype.emplace=function(t,e,i,n,r,o,a,s,l){var u=8*t;return this.uint16[u+0]=e,this.uint16[u+1]=i,this.uint16[u+2]=n,this.uint16[u+3]=r,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,t},e}(sn);dn.prototype.bytesPerElement=16,Si("StructArrayLayout8ui16",dn);var mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o,a,s){var l=this.length;this.resize(l+1);var u=8*l;return this.int16[u+0]=t,this.int16[u+1]=e,this.int16[u+2]=i,this.int16[u+3]=n,this.uint16[u+4]=r,this.uint16[u+5]=o,this.uint16[u+6]=a,this.uint16[u+7]=s,l},e.prototype.emplace=function(t,e,i,n,r,o,a,s,l){var u=8*t;return this.int16[u+0]=e,this.int16[u+1]=i,this.int16[u+2]=n,this.int16[u+3]=r,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,t},e}(sn);mn.prototype.bytesPerElement=16,Si("StructArrayLayout4i4ui16",mn);var yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var n=this.length;this.resize(n+1);var r=3*n;return this.float32[r+0]=t,this.float32[r+1]=e,this.float32[r+2]=i,n},e.prototype.emplace=function(t,e,i,n){var r=3*t;return this.float32[r+0]=e,this.float32[r+1]=i,this.float32[r+2]=n,t},e}(sn);yn.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",yn);var vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var i=1*e;return this.uint32[i+0]=t,e},e.prototype.emplace=function(t,e){var i=1*t;return this.uint32[i+0]=e,t},e}(sn);vn.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",vn);var gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o,a,s,l,u,c){var h=this.length;this.resize(h+1);var p=12*h,f=6*h;return this.int16[p+0]=t,this.int16[p+1]=e,this.int16[p+2]=i,this.int16[p+3]=n,this.int16[p+4]=r,this.int16[p+5]=o,this.uint32[f+3]=a,this.uint16[p+8]=s,this.uint16[p+9]=l,this.int16[p+10]=u,this.int16[p+11]=c,h},e.prototype.emplace=function(t,e,i,n,r,o,a,s,l,u,c,h){var p=12*t,f=6*t;return this.int16[p+0]=e,this.int16[p+1]=i,this.int16[p+2]=n,this.int16[p+3]=r,this.int16[p+4]=o,this.int16[p+5]=a,this.uint32[f+3]=s,this.uint16[p+8]=l,this.uint16[p+9]=u,this.int16[p+10]=c,this.int16[p+11]=h,t},e}(sn);gn.prototype.bytesPerElement=24,Si("StructArrayLayout6i1ul2ui2i24",gn);var _n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o){var a=this.length;this.resize(a+1);var s=6*a;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=r,this.int16[s+5]=o,a},e.prototype.emplace=function(t,e,i,n,r,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=i,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(sn);_n.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",_n);var bn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;this.resize(i+1);var n=4*i;return this.uint8[n+0]=t,this.uint8[n+1]=e,i},e.prototype.emplace=function(t,e,i){var n=4*t;return this.uint8[n+0]=e,this.uint8[n+1]=i,t},e}(sn);bn.prototype.bytesPerElement=4,Si("StructArrayLayout2ub4",bn);var xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o,a,s,l,u,c,h,p,f){var d=this.length;this.resize(d+1);var m=20*d,y=10*d,v=40*d;return this.int16[m+0]=t,this.int16[m+1]=e,this.uint16[m+2]=i,this.uint16[m+3]=n,this.uint32[y+2]=r,this.uint32[y+3]=o,this.uint32[y+4]=a,this.uint16[m+10]=s,this.uint16[m+11]=l,this.uint16[m+12]=u,this.float32[y+7]=c,this.float32[y+8]=h,this.uint8[v+36]=p,this.uint8[v+37]=f,d},e.prototype.emplace=function(t,e,i,n,r,o,a,s,l,u,c,h,p,f,d){var m=20*t,y=10*t,v=40*t;return this.int16[m+0]=e,this.int16[m+1]=i,this.uint16[m+2]=n,this.uint16[m+3]=r,this.uint32[y+2]=o,this.uint32[y+3]=a,this.uint32[y+4]=s,this.uint16[m+10]=l,this.uint16[m+11]=u,this.uint16[m+12]=c,this.float32[y+7]=h,this.float32[y+8]=p,this.uint8[v+36]=f,this.uint8[v+37]=d,t},e}(sn);xn.prototype.bytesPerElement=40,Si("StructArrayLayout2i2ui3ul3ui2f2ub40",xn);var wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n,r,o,a,s,l,u,c,h,p,f){var d=this.length;this.resize(d+1);var m=16*d,y=8*d;return this.int16[m+0]=t,this.int16[m+1]=e,this.int16[m+2]=i,this.int16[m+3]=n,this.uint16[m+4]=r,this.uint16[m+5]=o,this.uint16[m+6]=a,this.uint16[m+7]=s,this.uint16[m+8]=l,this.uint16[m+9]=u,this.uint16[m+10]=c,this.uint16[m+11]=h,this.uint16[m+12]=p,this.uint32[y+7]=f,d},e.prototype.emplace=function(t,e,i,n,r,o,a,s,l,u,c,h,p,f,d){var m=16*t,y=8*t;return this.int16[m+0]=e,this.int16[m+1]=i,this.int16[m+2]=n,this.int16[m+3]=r,this.uint16[m+4]=o,this.uint16[m+5]=a,this.uint16[m+6]=s,this.uint16[m+7]=l,this.uint16[m+8]=u,this.uint16[m+9]=c,this.uint16[m+10]=h,this.uint16[m+11]=p,this.uint16[m+12]=f,this.uint32[y+7]=d,t},e}(sn);wn.prototype.bytesPerElement=32,Si("StructArrayLayout4i9ui1ul32",wn);var Tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var i=1*e;return this.float32[i+0]=t,e},e.prototype.emplace=function(t,e){var i=1*t;return this.float32[i+0]=e,t},e}(sn);Tn.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Tn);var kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var n=this.length;this.resize(n+1);var r=3*n;return this.int16[r+0]=t,this.int16[r+1]=e,this.int16[r+2]=i,n},e.prototype.emplace=function(t,e,i,n){var r=3*t;return this.int16[r+0]=e,this.int16[r+1]=i,this.int16[r+2]=n,t},e}(sn);kn.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",kn);var Sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var n=this.length;this.resize(n+1);var r=2*n,o=4*n;return this.uint32[r+0]=t,this.uint16[o+2]=e,this.uint16[o+3]=i,n},e.prototype.emplace=function(t,e,i,n){var r=2*t,o=4*t;return this.uint32[r+0]=e,this.uint16[o+2]=i,this.uint16[o+3]=n,t},e}(sn);Sn.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",Sn);var En=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i){var n=this.length;this.resize(n+1);var r=3*n;return this.uint16[r+0]=t,this.uint16[r+1]=e,this.uint16[r+2]=i,n},e.prototype.emplace=function(t,e,i,n){var r=3*t;return this.uint16[r+0]=e,this.uint16[r+1]=i,this.uint16[r+2]=n,t},e}(sn);En.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",En);var Pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;this.resize(i+1);var n=2*i;return this.uint16[n+0]=t,this.uint16[n+1]=e,i},e.prototype.emplace=function(t,e,i){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=i,t},e}(sn);Pn.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Pn);var An=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;this.resize(e+1);var i=1*e;return this.uint16[i+0]=t,e},e.prototype.emplace=function(t,e){var i=1*t;return this.uint16[i+0]=e,t},e}(sn);An.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",An);var Cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var i=this.length;this.resize(i+1);var n=2*i;return this.float32[n+0]=t,this.float32[n+1]=e,i},e.prototype.emplace=function(t,e,i){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=i,t},e}(sn);Cn.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Cn);var Dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,i,n){var r=this.length;this.resize(r+1);var o=4*r;return this.float32[o+0]=t,this.float32[o+1]=e,this.float32[o+2]=i,this.float32[o+3]=n,r},e.prototype.emplace=function(t,e,i,n,r){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=i,this.float32[o+2]=n,this.float32[o+3]=r,t},e}(sn);Dn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Dn);var On=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return i.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorPointX.set=function(t){this._structArray.int16[this._pos2+0]=t},i.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},i.anchorPointY.set=function(t){this._structArray.int16[this._pos2+1]=t},i.x1.get=function(){return this._structArray.int16[this._pos2+2]},i.x1.set=function(t){this._structArray.int16[this._pos2+2]=t},i.y1.get=function(){return this._structArray.int16[this._pos2+3]},i.y1.set=function(t){this._structArray.int16[this._pos2+3]=t},i.x2.get=function(){return this._structArray.int16[this._pos2+4]},i.x2.set=function(t){this._structArray.int16[this._pos2+4]=t},i.y2.get=function(){return this._structArray.int16[this._pos2+5]},i.y2.set=function(t){this._structArray.int16[this._pos2+5]=t},i.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},i.featureIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},i.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},i.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},i.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},i.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},i.radius.get=function(){return this._structArray.int16[this._pos2+10]},i.radius.set=function(t){this._structArray.int16[this._pos2+10]=t},i.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},i.signedDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+11]=t},i.anchorPoint.get=function(){return new o(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,i),e}(an);On.prototype.size=24;var Mn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new On(this,t)},e}(gn);Si("CollisionBoxArray",Mn);var In=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},hidden:{configurable:!0}};return i.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},i.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},i.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},i.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},i.glyphStartIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},i.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},i.numGlyphs.set=function(t){this._structArray.uint16[this._pos2+3]=t},i.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},i.vertexStartIndex.set=function(t){this._structArray.uint32[this._pos4+2]=t},i.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},i.lineStartIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},i.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},i.lineLength.set=function(t){this._structArray.uint32[this._pos4+4]=t},i.segment.get=function(){return this._structArray.uint16[this._pos2+10]},i.segment.set=function(t){this._structArray.uint16[this._pos2+10]=t},i.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},i.lowerSize.set=function(t){this._structArray.uint16[this._pos2+11]=t},i.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},i.upperSize.set=function(t){this._structArray.uint16[this._pos2+12]=t},i.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},i.lineOffsetX.set=function(t){this._structArray.float32[this._pos4+7]=t},i.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},i.lineOffsetY.set=function(t){this._structArray.float32[this._pos4+8]=t},i.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},i.writingMode.set=function(t){this._structArray.uint8[this._pos1+36]=t},i.hidden.get=function(){return this._structArray.uint8[this._pos1+37]},i.hidden.set=function(t){this._structArray.uint8[this._pos1+37]=t},Object.defineProperties(e.prototype,i),e}(an);In.prototype.size=40;var zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new In(this,t)},e}(xn);Si("PlacedSymbolArray",zn);var Ln=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={anchorX:{configurable:!0},anchorY:{configurable:!0},horizontalPlacedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},crossTileID:{configurable:!0}};return i.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},i.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},i.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},i.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},i.horizontalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},i.horizontalPlacedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+2]=t},i.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},i.verticalPlacedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+3]=t},i.key.get=function(){return this._structArray.uint16[this._pos2+4]},i.key.set=function(t){this._structArray.uint16[this._pos2+4]=t},i.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+5]},i.textBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+5]=t},i.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+6]},i.textBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+6]=t},i.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+7]},i.iconBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+7]=t},i.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+8]},i.iconBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},i.featureIndex.get=function(){return this._structArray.uint16[this._pos2+9]},i.featureIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},i.numGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+10]},i.numGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+10]=t},i.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+11]},i.numVerticalGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+11]=t},i.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+12]},i.numIconVertices.set=function(t){this._structArray.uint16[this._pos2+12]=t},i.crossTileID.get=function(){return this._structArray.uint32[this._pos4+7]},i.crossTileID.set=function(t){this._structArray.uint32[this._pos4+7]=t},Object.defineProperties(e.prototype,i),e}(an);Ln.prototype.size=32;var Rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Ln(this,t)},e}(wn);Si("SymbolInstanceArray",Rn);var Bn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={offsetX:{configurable:!0}};return i.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},i.offsetX.set=function(t){this._structArray.float32[this._pos4+0]=t},Object.defineProperties(e.prototype,i),e}(an);Bn.prototype.size=4;var jn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e.prototype.get=function(t){return new Bn(this,t)},e}(Tn);Si("GlyphOffsetArray",jn);var Fn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return i.x.get=function(){return this._structArray.int16[this._pos2+0]},i.x.set=function(t){this._structArray.int16[this._pos2+0]=t},i.y.get=function(){return this._structArray.int16[this._pos2+1]},i.y.set=function(t){this._structArray.int16[this._pos2+1]=t},i.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},i.tileUnitDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+2]=t},Object.defineProperties(e.prototype,i),e}(an);Fn.prototype.size=6;var Nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e.prototype.get=function(t){return new Fn(this,t)},e}(kn);Si("SymbolLineVertexArray",Nn);var Vn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return i.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},i.featureIndex.set=function(t){this._structArray.uint32[this._pos4+0]=t},i.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},i.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},i.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},i.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+3]=t}
vendor: 4,691 bytes, line 1
1,Object.defineProperties(e.prototype,i),e}(an);Vn.prototype.size=8;var Un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Vn(this,t)},e}(Sn);Si("FeatureIndexArray",Un);var qn=ln([{name:"a_pos",components:2,type:"Int16"}],4),Yn=qn.members,Hn=(qn.size,qn.alignment,function(t){void 0===t&&(t=[]),this.segments=t});Hn.prototype.prepareSegment=function(t,e,i){var n=this.segments[this.segments.length-1];return t>Hn.MAX_VERTEX_ARRAY_LENGTH&&b("Max vertices per segment is "+Hn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!n||n.vertexLength+t>Hn.MAX_VERTEX_ARRAY_LENGTH)&&(n={vertexOffset:e.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},this.segments.push(n)),n},Hn.prototype.get=function(){return this.segments},Hn.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var i=e[t];for(var n in i.vaos)i.vaos[n].destroy()}},Hn.simpleSegment=function(t,e,i,n){return new Hn([{vertexOffset:t,primitiveOffset:e,vertexLength:i,primitiveLength:n,vaos:{}}])},Hn.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",Hn);var Wn=function(t,e){return 256*(t=c(Math.floor(t),0,255))+c(Math.floor(e),0,255)},Gn=function(){this.ids=[],this.positions=[],this.indexed=!1};function Zn(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}Gn.prototype.add=function(t,e,i,n){this.ids.push(t),this.positions.push(e,i,n)},Gn.prototype.getPositions=function(t){for(var e=0,i=this.ids.length-1;e<i;){var n=e+i>>1;this.ids[n]>=t?i=n:e=n+1}for(var r=[];this.ids[e]===t;){var o=this.positions[3*e],a=this.positions[3*e+1],s=this.positions[3*e+2];r.push({index:o,start:a,end:s}),e++}return r},Gn.serialize=function(t,e){var i=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,i,n,r){if(!(n>=r)){for(var o=e[n+r>>1],a=n-1,s=r+1;;){do{a++}while(e[a]<o);do{s--}while(e[s]>o);if(a>=s)break;Zn(e,a,s),Zn(i,3*a,3*s),Zn(i,3*a+1,3*s+1),Zn(i,3*a+2,3*s+2)}t(e,i,n,s),t(e,i,s+1,r)}}(i,n,0,i.length-1),e.push(i.buffer,n.buffer),{ids:i,positions:n}},Gn.deserialize=function(t){var e=new Gn;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e},Si("FeaturePositionMap",Gn);var Xn=function(t,e){this.gl=t.gl,this.location=e},Kn=function(t){function e(e,i){t.call(this,e,i),this.current=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},e}(Xn),Jn=function(t){function e(e,i){t.call(this,e,i),this.current=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},e}(Xn),$n=function(t){function e(e,i){t.call(this,e,i),this.current=[0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(Xn),Qn=function(t){function e(e,i){t.call(this,e,i),this.current=[0,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(Xn),tr=function(t){function e(e,i){t.call(this,e,i),this.current=[0,0,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(Xn),er=function(t){function e(e,i){t.call(this,e,i),this.current=ot.transparent}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(Xn),ir=new Float32Array(16),nr=function(t){function e(e,i){t.call(this,e,i),this.current=ir}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(Xn);function rr(t){return[Wn(255*t.r,255*t.g),Wn(255*t.b,255*t.a)]}
1var or=function(t,e,i){this.value=t,this.names=e,this.uniformNames=this.names.map(function(t){return"u_"+t}),this.type=i,this.maxValue=-1/0};or.prototype.defines=function(){return this.names.map(function(t){return"#define HAS_UNIFORM_u_"+t})},or.prototype.setConstantPatternPositions=function(){},or.prototype.populatePaintArray=function(){},or.prototype.updatePaintArray=function(){},or.prototype.upload=function(){},or.prototype.destroy=function(){},or.prototype.setUniforms=function(t,e,i,n){e.set(n.constantOr(this.value))},or.prototype.getBinding=function(t,e){return"color"===this.type?new er(t,e):new Jn(t,e)},or.serialize=function(t){var e=t.value,i=t.names,n=t.type;return{value:Pi(e),names:i,type:n}},or.deserialize=function(t){var e=t.value,i=t.names,n=t.type;return new or(Ai(e),i,n)};var ar=function(t,e,i){this.value=t,this.names=e,this.uniformNames=this.names.map(function(t){return"u_"+t}),this.type=i,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};ar.prototype.defines=function(){return this.names.map(function(t){return"#define HAS_UNIFORM_u_"+t})},ar.prototype.populatePaintArray=function(){},ar.prototype.updatePaintArray=function(){},ar.prototype.upload=function(){},ar.prototype.destroy=function(){},ar.prototype.setConstantPatternPositions=function(t,e){this.patternPositions.patternTo=t.tlbr,this.patternPositions.patternFrom=e.tlbr},ar.prototype.setUniforms=function(t,e,i,n,r){var o=this.patternPositions;"u_pattern_to"===r&&o.patternTo&&e.set(o.patternTo),"u_pattern_from"===r&&o.patternFrom&&e.set(o.patternFrom)},ar.prototype.getBinding=function(t,e){return new tr(t,e)};var sr=function(t,e,i,n){this.expression=t,this.names=e,this.type=i,this.uniformNames=this.names.map(function(t){return"a_"+t}),this.maxValue=-1/0,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===i?2:1,offset:0}}),this.paintVertexArray=new n};sr.prototype.defines=function(){return[]},sr.prototype.setConstantPatternPositions=function(){},sr.prototype.populatePaintArray=function(t,e){var i=this.paintVertexArray,n=i.length;i.reserve(t);var r=this.expression.evaluate(new Ui(0),e,{});if("color"===this.type)for(var o=rr(r),a=n;a<t;a++)i.emplaceBack(o[0],o[1]);else{for(var s=n;s<t;s++)i.emplaceBack(r);this.maxValue=Math.max(this.maxValue,r)}},sr.prototype.updatePaintArray=function(t,e,i,n){var r=this.paintVertexArray,o=this.expression.evaluate({zoom:0},i,n);if("color"===this.type)for(var a=rr(o),s=t;s<e;s++)r.emplace(s,a[0],a[1]);else{for(var l=t;l<e;l++)r.emplace(l,o);this.maxValue=Math.max(this.maxValue,o)}},sr.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},sr.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},sr.prototype.setUniforms=function(t,e){e.set(0)},sr.prototype.getBinding=function(t,e){return new Jn(t,e)};var lr=function(t,e,i,n,r,o){this.expression=t,this.names=e,this.uniformNames=this.names.map(function(t){return"a_"+t+"_t"}),this.type=i,this.useIntegerZoom=n,this.zoom=r,this.maxValue=-1/0;var a=o;this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===i?4:2,offset:0}}),this.paintVertexArray=new a};lr.prototype.defines=function(){return[]},lr.prototype.setConstantPatternPositions=function(){},lr.prototype.populatePaintArray=function(t,e){var i=this.paintVertexArray,n=i.length;i.reserve(t);var r=this.expression.evaluate(new Ui(this.zoom),e,{}),o=this.expression.evaluate(new Ui(this.zoom+1),e,{});if("color"===this.type)for(var a=rr(r),s=rr(o),l=n;l<t;l++)i.emplaceBack(a[0],a[1],s[0],s[1]);else{for(var u=n;u<t;u++)i.emplaceBack(r,o);this.maxValue=Math.max(this.maxValue,r,o)}},lr.prototype.updatePaintArray=function(t,e,i,n){var r=this.paintVertexArray,o=this.expression.evaluate({zoom:this.zoom},i,n),a=this.expression.evaluate({zoom:this.zoom+1},i,n);if("color"===this.type)for(var s=rr(o),l=rr(a),u=t;u<e;u++)r.emplace(u,s[0],s[1],l[0],l[1]);else{for(var c=t;c<e;c++)r.emplace(c,o,a);this.maxValue=Math.max(this.maxValue,o,a)}},lr.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},lr.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},lr.prototype.interpolationFactor=function(t){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(t),this.zoom,this.zoom+1):this.expression.interpolationFactor(t,this.zoom,this.zoom+1)}
vendor: 4,329 bytes, line 1
1,lr.prototype.setUniforms=function(t,e,i){e.set(this.interpolationFactor(i.zoom))},lr.prototype.getBinding=function(t,e){return new Jn(t,e)};var ur=function(t,e,i,n,r,o,a){this.expression=t,this.names=e,this.type=i,this.uniformNames=this.names.map(function(t){return"a_"+t+"_t"}),this.useIntegerZoom=n,this.zoom=r,this.maxValue=-1/0,this.layerId=a,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Uint16",components:4,offset:0}}),this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};ur.prototype.defines=function(){return[]},ur.prototype.setConstantPatternPositions=function(){},ur.prototype.populatePaintArray=function(t,e,i){var n=this.zoomInPaintVertexArray,r=this.zoomOutPaintVertexArray,o=this.layerId,a=n.length;if(n.reserve(t),r.reserve(t),i&&e.patterns&&e.patterns[o]){var s=e.patterns[o],l=s.min,u=s.mid,c=s.max,h=i[l],p=i[u],f=i[c];if(!h||!p||!f)return;for(var d=a;d<t;d++)n.emplaceBack(p.tl[0],p.tl[1],p.br[0],p.br[1],h.tl[0],h.tl[1],h.br[0],h.br[1]),r.emplaceBack(p.tl[0],p.tl[1],p.br[0],p.br[1],f.tl[0],f.tl[1],f.br[0],f.br[1])}},ur.prototype.updatePaintArray=function(t,e,i,n,r){var o=this.zoomInPaintVertexArray,a=this.zoomOutPaintVertexArray,s=this.layerId;if(r&&i.patterns&&i.patterns[s]){var l=i.patterns[s],u=l.min,c=l.mid,h=l.max,p=r[u],f=r[c],d=r[h];if(!p||!f||!d)return;for(var m=t;m<e;m++)o.emplace(m,f.tl[0],f.tl[1],f.br[0],f.br[1],p.tl[0],p.tl[1],p.br[0],p.br[1]),a.emplace(m,f.tl[0],f.tl[1],f.br[0],f.br[1],d.tl[0],d.tl[1],d.br[0],d.br[1])}},ur.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},ur.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()},ur.prototype.setUniforms=function(t,e){e.set(0)},ur.prototype.getBinding=function(t,e){return new Jn(t,e)};var cr=function(){this.binders={},this.cacheKey="",this._buffers=[],this._featureMap=new Gn,this._bufferOffset=0};cr.createDynamic=function(t,e,i){var n=new cr,r=[];for(var o in t.paint._values)if(i(o)){var a=t.paint.get(o);if(a instanceof Xi&&be(a.property.specification)){var s=pr(o,t.type),l=a.property.specification.type,u=a.property.useIntegerZoom;if("cross-faded"===a.property.specification["property-type"]||"cross-faded-data-driven"===a.property.specification["property-type"])if("constant"===a.value.kind)n.binders[o]=new ar(a.value.value,s,l),r.push("/u_"+o);else{var c=fr(o,l,"source");n.binders[o]=new ur(a.value,s,l,u,e,c,t.id),r.push("/a_"+o)}else if("constant"===a.value.kind)n.binders[o]=new or(a.value.value,s,l),r.push("/u_"+o);else if("source"===a.value.kind){var h=fr(o,l,"source");n.binders[o]=new sr(a.value,s,l,h),r.push("/a_"+o)}else{var p=fr(o,l,"composite");n.binders[o]=new lr(a.value,s,l,u,e,p),r.push("/z_"+o)}}}return n.cacheKey=r.sort().join(""),n},cr.prototype.populatePaintArrays=function(t,e,i,n){for(var r in this.binders)this.binders[r].populatePaintArray(t,e,n);void 0!==e.id&&this._featureMap.add(+e.id,i,this._bufferOffset,t),this._bufferOffset=t},cr.prototype.setConstantPatternPositions=function(t,e){for(var i in this.binders)this.binders[i].setConstantPatternPositions(t,e)},cr.prototype.updatePaintArrays=function(t,e,i,n){var r=!1;for(var o in t)for(var a=0,s=this._featureMap.getPositions(+o);a<s.length;a+=1){var l=s[a],u=e.feature(l.index);for(var c in this.binders){var h=this.binders[c];if(!(h instanceof or||h instanceof ar)&&!0===h.expression.isStateDependent){var p=i.paint.get(c);h.expression=p.value,h.updatePaintArray(l.start,l.end,u,t[o],n),r=!0}}}return r},cr.prototype.defines=function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t},cr.prototype.getPaintVertexBuffers=function(){return this._buffers},cr.prototype.getUniforms=function(t,e){var i={};for(var n in this.binders)for(var r=this.binders[n],o=0,a=r.uniformNames;o<a.length;o+=1){var s=a[o];i[s]=r.getBinding(t,e[s])}return i}
1,cr.prototype.setUniforms=function(t,e,i,n){for(var r in this.binders)for(var o=this.binders[r],a=0,s=o.uniformNames;a<s.length;a+=1){var l=s[a];o.setUniforms(t,e[l],n,i.get(r),l)}},cr.prototype.updatePatternPaintBuffers=function(t){var e=[];for(var i in this.binders){var n=this.binders[i];if(n instanceof ur){var r=2===t.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&e.push(r)}else(n instanceof sr||n instanceof lr)&&n.paintVertexBuffer&&e.push(n.paintVertexBuffer)}this._buffers=e},cr.prototype.upload=function(t){for(var e in this.binders)this.binders[e].upload(t);var i=[];for(var n in this.binders){var r=this.binders[n];(r instanceof sr||r instanceof lr)&&r.paintVertexBuffer&&i.push(r.paintVertexBuffer)}this._buffers=i},cr.prototype.destroy=function(){for(var t in this.binders)this.binders[t].destroy()};var hr=function(t,e,i,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var r=0,o=e;r<o.length;r+=1){var a=o[r];this.programConfigurations[a.id]=cr.createDynamic(a,i,n),this.programConfigurations[a.id].layoutAttributes=t}this.needsUpload=!1};function pr(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from"],"fill-pattern":["pattern_to","pattern_from"],"fill-extrusion-pattern":["pattern_to","pattern_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function fr(t,e,i){var n={color:{source:Cn,composite:Dn},number:{source:Tn,composite:Cn}},r=function(t){return{"line-pattern":{source:dn,composite:dn},"fill-pattern":{source:dn,composite:dn},"fill-extrusion-pattern":{source:dn,composite:dn}}[t]}(t);return r&&r[i]||n[e][i]}hr.prototype.populatePaintArrays=function(t,e,i,n){for(var r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(t,e,i,n);this.needsUpload=!0},hr.prototype.updatePaintArrays=function(t,e,i,n){for(var r=0,o=i;r<o.length;r+=1){var a=o[r];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,e,a,n)||this.needsUpload}},hr.prototype.get=function(t){return this.programConfigurations[t]},hr.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},hr.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Si("ConstantBinder",or),Si("CrossFadedConstantBinder",ar),Si("SourceExpressionBinder",sr),Si("CrossFadedCompositeBinder",ur),Si("CompositeExpressionBinder",lr),Si("ProgramConfiguration",cr,{omit:["_buffers"]}),Si("ProgramConfigurationSet",hr);var dr=8192,mr=(16,{min:-1*Math.pow(2,15),max:Math.pow(2,15)-1});function yr(t){for(var e=dr/t.extent,i=t.loadGeometry(),n=0;n<i.length;n++)for(var r=i[n],o=0;o<r.length;o++){var a=r[o];a.x=Math.round(a.x*e),a.y=Math.round(a.y*e),(a.x<mr.min||a.x>mr.max||a.y<mr.min||a.y>mr.max)&&b("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return i}function vr(t,e,i,n,r){t.emplaceBack(2*e+(n+1)/2,2*i+(r+1)/2)}var gr=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new cn,this.indexArray=new En,this.segments=new Hn,this.programConfigurations=new hr(Yn,t.layers,t.zoom)};function _r(t,e,i){for(var n=0;n<t.length;n++){var r=t[n];if(Ar(r,e))return!0;if(Sr(e,r,i))return!0}return!1}function br(t,e){if(1===t.length&&1===t[0].length)return Pr(e,t[0][0]);for(var i=0;i<e.length;i++)for(var n=e[i],r=0;r<n.length;r++)if(Pr(t,n[r]))return!0;for(var o=0;o<t.length;o++){for(var a=t[o],s=0;s<a.length;s++)if(Pr(e,a[s]))return!0;for(var l=0;l<e.length;l++)if(Tr(a,e[l]))return!0}return!1}function xr(t,e,i){for(var n=0;n<e.length;n++)for(var r=e[n],o=0;o<t.length;o++){var a=t[o];if(a.length>=3)for(var s=0;s<r.length;s++)if(Ar(a,r[s]))return!0;
vendor: 4,289 bytes, line 1
1if(wr(a,r,i))return!0}return!1}function wr(t,e,i){if(t.length>1){if(Tr(t,e))return!0;for(var n=0;n<e.length;n++)if(Sr(e[n],t,i))return!0}for(var r=0;r<t.length;r++)if(Sr(t[r],e,i))return!0;return!1}function Tr(t,e){if(0===t.length||0===e.length)return!1;for(var i=0;i<t.length-1;i++)for(var n=t[i],r=t[i+1],o=0;o<e.length-1;o++)if(kr(n,r,e[o],e[o+1]))return!0;return!1}function kr(t,e,i,n){return x(t,i,n)!==x(e,i,n)&&x(t,e,i)!==x(t,e,n)}function Sr(t,e,i){var n=i*i;if(1===e.length)return t.distSqr(e[0])<n;for(var r=1;r<e.length;r++)if(Er(t,e[r-1],e[r])<n)return!0;return!1}function Er(t,e,i){var n=e.distSqr(i);if(0===n)return t.distSqr(e);var r=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/n;return r<0?t.distSqr(e):r>1?t.distSqr(i):t.distSqr(i.sub(e)._mult(r)._add(e))}function Pr(t,e){for(var i,n,r,o=!1,a=0;a<t.length;a++)for(var s=0,l=(i=t[a]).length-1;s<i.length;l=s++)n=i[s],r=i[l],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(o=!o);return o}function Ar(t,e){for(var i=!1,n=0,r=t.length-1;n<t.length;r=n++){var o=t[n],a=t[r];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(i=!i)}return i}function Cr(t,e,i){var n=e.paint.get(t).value;return"constant"===n.kind?n.value:i.programConfigurations.get(e.id).binders[t].maxValue}function Dr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Or(t,e,i,n,r){if(!e[0]&&!e[1])return t;var a=o.convert(e);"viewport"===i&&a._rotate(-n);for(var s=[],l=0;l<t.length;l++){for(var u=t[l],c=[],h=0;h<u.length;h++)c.push(u[h].sub(a._mult(r)));s.push(c)}return s}gr.prototype.populate=function(t,e){for(var i=0,n=t;i<n.length;i+=1){var r=n[i],o=r.feature,a=r.index,s=r.sourceLayerIndex;if(this.layers[0]._featureFilter(new Ui(this.zoom),o)){var l=yr(o);this.addFeature(o,l,a),e.featureIndex.insert(o,l,a,s,this.index)}}},gr.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},gr.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},gr.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},gr.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Yn),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},gr.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},gr.prototype.addFeature=function(t,e,i){for(var n=0,r=e;n<r.length;n+=1)for(var o=0,a=r[n];o<a.length;o+=1){var s=a[o],l=s.x,u=s.y;if(!(l<0||l>=dr||u<0||u>=dr)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=c.vertexLength;vr(this.layoutVertexArray,l,u,-1,-1),vr(this.layoutVertexArray,l,u,1,-1),vr(this.layoutVertexArray,l,u,1,1),vr(this.layoutVertexArray,l,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,{})},Si("CircleBucket",gr,{omit:["layers"]});var Mr={paint:new nn({"circle-radius":new $i(B.paint_circle["circle-radius"]),"circle-color":new $i(B.paint_circle["circle-color"]),"circle-blur":new $i(B.paint_circle["circle-blur"]),"circle-opacity":new $i(B.paint_circle["circle-opacity"]),"circle-translate":new Ji(B.paint_circle["circle-translate"]),"circle-translate-anchor":new Ji(B.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ji(B.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ji(B.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new $i(B.paint_circle["circle-stroke-width"]),"circle-stroke-color":new $i(B.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new $i(B.paint_circle["circle-stroke-opacity"])})},Ir="undefined"!=typeof Float32Array?Float32Array:Array;function zr(){var t=new Ir(9);return Ir!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Lr(){var t=new Ir(3);return Ir!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Rr(t){var e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function Br(t,e,i){var n=new Ir(3);return n[0]=t,n[1]=e,n[2]=i,n}Math.PI;
1var jr,Fr=Rr,Nr=(jr=Lr(),function(t,e,i,n,r,o){var a,s=void 0;for(e||(e=3),i||(i=0),a=n?Math.min(n*e+i,t.length):t.length,s=i;s<a;s+=e)jr[0]=t[s],jr[1]=t[s+1],jr[2]=t[s+2],r(jr,jr,o),t[s]=jr[0],t[s+1]=jr[1],t[s+2]=jr[2];return t});function Vr(){var t=new Ir(4);return Ir!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Ur(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=i*i+n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=i*a,t[1]=n*a,t[2]=r*a,t[3]=o*a),t}function qr(t,e,i){var n=e[0],r=e[1],o=e[2],a=e[3];return t[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*a,t[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*a,t[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*a,t[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*a,t}var Yr=function(){var t=Vr();return function(e,i,n,r,o,a){var s,l=void 0;for(i||(i=4),n||(n=0),s=r?Math.min(r*i+n,e.length):e.length,l=n;l<s;l+=i)t[0]=e[l],t[1]=e[l+1],t[2]=e[l+2],t[3]=e[l+3],o(t,t,a),e[l]=t[0],e[l+1]=t[1],e[l+2]=t[2],e[l+3]=t[3];return e}}();function Hr(){var t=new Ir(4);return Ir!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}Lr(),Br(1,0,0),Br(0,1,0),Hr(),Hr(),zr(),function(){var t;t=new Ir(2),Ir!=Float32Array&&(t[0]=0,t[1]=0)}();var Wr=function(t){function e(e){t.call(this,e,Mr)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new gr(t)},e.prototype.queryRadius=function(t){var e=t;return Cr("circle-radius",this,e)+Cr("circle-stroke-width",this,e)+Dr(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,i,n,r,o,a,s){for(var l=Or(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(e,i)+this.paint.get("circle-stroke-width").evaluate(e,i),c="map"===this.paint.get("circle-pitch-alignment"),h=c?l:function(t,e,i){return l.map(function(t){return t.map(function(t){return Gr(t,e,i)})})}(0,s,o),p=c?u*a:u,f=0,d=n;f<d.length;f+=1)for(var m=0,y=d[f];m<y.length;m+=1){var v=y[m],g=c?v:Gr(v,s,o),_=p,b=qr([],[v.x,v.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?_*=b[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(_*=o.cameraToCenterDistance/b[3]),_r(h,g,_))return!0}return!1},e}(rn);function Gr(t,e,i){var n=qr([],[t.x,t.y,0,1],e);return new o((n[0]/n[3]+1)*i.width*.5,(n[1]/n[3]+1)*i.height*.5)}var Zr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(gr);function Xr(t,e,i,n){var r=e.width,o=e.height;if(n){if(n.length!==r*o*i)throw new RangeError("mismatched image size")}else n=new Uint8Array(r*o*i);return t.width=r,t.height=o,t.data=n,t}function Kr(t,e,i){var n=e.width,r=e.height;if(n!==t.width||r!==t.height){var o=Xr({},{width:n,height:r},i);Jr(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,r)},i),t.width=n,t.height=r,t.data=o.data}}function Jr(t,e,i,n,r,o){if(0===r.width||0===r.height)return e;if(r.width>t.width||r.height>t.height||i.x>t.width-r.width||i.y>t.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>e.width||r.height>e.height||n.x>e.width-r.width||n.y>e.height-r.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l<r.height;l++)for(var u=((i.y+l)*t.width+i.x)*o,c=((n.y+l)*e.width+n.x)*o,h=0;h<r.width*o;h++)s[c+h]=a[u+h];return e}Si("HeatmapBucket",Zr,{omit:["layers"]});var $r=function(t,e){Xr(this,t,1,e)};$r.prototype.resize=function(t){Kr(this,t,1)},$r.prototype.clone=function(){return new $r({width:this.width,height:this.height},new Uint8Array(this.data))},$r.copy=function(t,e,i,n,r){Jr(t,e,i,n,r,1)};var Qr=function(t,e){Xr(this,t,4,e)};Qr.prototype.resize=function(t){Kr(this,t,4)},Qr.prototype.clone=function(){return new Qr({width:this.width,height:this.height},new Uint8Array(this.data))},Qr.copy=function(t,e,i,n,r){Jr(t,e,i,n,r,4)},Si("AlphaImage",$r),Si("RGBAImage",Qr);var to={paint:new nn({"heatmap-radius":new $i(B.paint_heatmap["heatmap-radius"]),"heatmap-weight":new $i(B.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ji(B.paint_heatmap["heatmap-intensity"]),"heatmap-color":new en(B.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ji(B.paint_heatmap["heatmap-opacity"])})};function eo(t,e){for(var i=new Uint8Array(1024),n={},r=0,o=0;r<256;r++,o+=4){n[e]=r/255;var a=t.evaluate(n);i[o+0]=Math.floor(255*a.r/a.a),i[o+1]=Math.floor(255*a.g/a.a),i[o+2]=Math.floor(255*a.b/a.a),i[o+3]=Math.floor(255*a.a)}return new Qr({width:256,height:1},i)}var io=function(t){function e(e){t.call(this,e,to),this._updateColorRamp()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Zr(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=eo(t,"heatmapDensity"),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},e}(rn),no={paint:new nn({"hillshade-illumination-direction":new Ji(B.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Ji(B.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Ji(B.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Ji(B.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Ji(B.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Ji(B.paint_hillshade["hillshade-accent-color"])})},ro=function(t){function e(e){t.call(this,e,no)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},e}(rn),oo=ln([{name:"a_pos",components:2,type:"Int16"}],4),ao=oo.members,so=(oo.size,oo.alignment,uo),lo=uo;
vendor: 8,370 bytes, line 1
1function uo(t,e,i){i=i||2;var n,r,o,a,s,l,u,c=e&&e.length,h=c?e[0]*i:t.length,p=co(t,0,h,i,!0),f=[];if(!p)return f;if(c&&(p=function(t,e,i,n){var r,o,a,s=[];for(r=0,o=e.length;r<o;r++)(a=co(t,e[r]*n,r<o-1?e[r+1]*n:t.length,n,!1))===a.next&&(a.steiner=!0),s.push(xo(a));for(s.sort(go),r=0;r<s.length;r++)_o(s[r],i),i=ho(i,i.next);return i}(t,e,p,i)),t.length>80*i){n=o=t[0],r=a=t[1];for(var d=i;d<h;d+=i)(s=t[d])<n&&(n=s),(l=t[d+1])<r&&(r=l),s>o&&(o=s),l>a&&(a=l);u=0!==(u=Math.max(o-n,a-r))?1/u:0}return po(p,f,i,n,r,u),f}function co(t,e,i,n,r){var o,a;if(r===Mo(t,e,i,n)>0)for(o=e;o<i;o+=n)a=Co(o,t[o],t[o+1],a);else for(o=i-n;o>=e;o-=n)a=Co(o,t[o],t[o+1],a);return a&&So(a,a.next)&&(Do(a),a=a.next),a}function ho(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!So(n,n.next)&&0!==ko(n.prev,n,n.next))n=n.next;else{if(Do(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function po(t,e,i,n,r,o,a){if(t){!a&&o&&function(t,e,i,n){var r=t;do{null===r.z&&(r.z=bo(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,i,n,r,o,a,s,l,u=1;do{for(i=t,t=null,o=null,a=0;i;){for(a++,n=i,s=0,e=0;e<u&&(s++,n=n.nextZ);e++);for(l=u;s>0||l>0&&n;)0!==s&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,s--):(r=n,n=n.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=n}o.nextZ=null,u*=2}while(a>1)}(r)}(t,n,r,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?mo(t,n,r,o):fo(t))e.push(s.i/i),e.push(t.i/i),e.push(l.i/i),Do(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?po(t=yo(t,e,i),e,i,n,r,o,2):2===a&&vo(t,e,i,n,r,o):po(ho(t),e,i,n,r,o,1);break}}}function fo(t){var e=t.prev,i=t,n=t.next;if(ko(e,i,n)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(wo(e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y)&&ko(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function mo(t,e,i,n){var r=t.prev,o=t,a=t.next;if(ko(r,o,a)>=0)return!1;for(var s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,l=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,u=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,c=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,h=bo(s,l,e,i,n),p=bo(u,c,e,i,n),f=t.prevZ,d=t.nextZ;f&&f.z>=h&&d&&d.z<=p;){if(f!==t.prev&&f!==t.next&&wo(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ko(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&wo(r.x,r.y,o.x,o.y,a.x,a.y,d.x,d.y)&&ko(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=h;){if(f!==t.prev&&f!==t.next&&wo(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ko(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=p;){if(d!==t.prev&&d!==t.next&&wo(r.x,r.y,o.x,o.y,a.x,a.y,d.x,d.y)&&ko(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function yo(t,e,i){var n=t;do{var r=n.prev,o=n.next.next;!So(r,o)&&Eo(r,n,n.next,o)&&Po(r,o)&&Po(o,r)&&(e.push(r.i/i),e.push(n.i/i),e.push(o.i/i),Do(n),Do(n.next),n=t=o),n=n.next}while(n!==t);return n}function vo(t,e,i,n,r,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&To(a,s)){var l=Ao(a,s);return a=ho(a,a.next),l=ho(l,l.next),po(a,e,i,n,r,o),void po(l,e,i,n,r,o)}s=s.next}a=a.next}while(a!==t)}function go(t,e){return t.x-e.x}function _o(t,e){if(e=function(t,e){var i,n=e,r=t.x,o=t.y,a=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var s=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=r&&s>a){if(a=s,s===r){if(o===n.y)return n;if(o===n.next.y)return n.next}i=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!i)return null;if(r===a)return i.prev;var l,u=i,c=i.x,h=i.y,p=1/0;for(n=i.next;n!==u;)r>=n.x&&n.x>=c&&r!==n.x&&wo(o<h?r:a,o,c,h,o<h?a:r,o,n.x,n.y)&&((l=Math.abs(o-n.y)/(r-n.x))<p||l===p&&n.x>i.x)&&Po(n,t)&&(i=n,p=l),n=n.next;return i}(t,e)){var i=Ao(e,t);ho(i,i.next)}}function bo(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function xo(t){var e=t,i=t;do{e.x<i.x&&(i=e),e=e.next}while(e!==t);return i}function wo(t,e,i,n,r,o,a,s){return(r-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(n-s)-(i-a)*(e-s)>=0&&(i-a)*(o-s)-(r-a)*(n-s)>=0}function To(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&Eo(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&Po(t,e)&&Po(e,t)&&function(t,e){var i=t,n=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&r<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)}function ko(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function So(t,e){return t.x===e.x&&t.y===e.y}function Eo(t,e,i,n){return!!(So(t,e)&&So(i,n)||So(t,n)&&So(i,e))||ko(t,e,i)>0!=ko(t,e,n)>0&&ko(i,n,t)>0!=ko(i,n,e)>0}function Po(t,e){return ko(t.prev,t,t.next)<0?ko(t,e,t.next)>=0&&ko(t,t.prev,e)>=0:ko(t,e,t.prev)<0||ko(t,t.next,e)<0}function Ao(t,e){var i=new Oo(t.i,t.x,t.y),n=new Oo(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,o.next=n,n.prev=o,n}function Co(t,e,i,n){var r=new Oo(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function Do(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Oo(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Mo(t,e,i,n){for(var r=0,o=e,a=i-n;o<i;o+=n)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}uo.deviation=function(t,e,i,n){var r=e&&e.length,o=r?e[0]*i:t.length,a=Math.abs(Mo(t,0,o,i));if(r)for(var s=0,l=e.length;s<l;s++){var u=e[s]*i,c=s<l-1?e[s+1]*i:t.length;a-=Math.abs(Mo(t,u,c,i))}var h=0;for(s=0;s<n.length;s+=3){var p=n[s]*i,f=n[s+1]*i,d=n[s+2]*i;h+=Math.abs((t[p]-t[d])*(t[f+1]-t[p+1])-(t[p]-t[f])*(t[d+1]-t[p+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},uo.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},n=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)i.vertices.push(t[r][o][a]);r>0&&(n+=t[r-1].length,i.holes.push(n))}return i},so.default=lo;var Io=e(function(t,e){t.exports=function(){function t(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function e(t,e){return t<e?-1:t>e?1:0}return function(i,n,r,o,a){!function e(i,n,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=n-r+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(i,n,Math.max(r,Math.floor(n-l*c/s+h)),Math.min(o,Math.floor(n+(s-l)*c/s+h)),a)}var p=i[n],f=r,d=o;for(t(i,r,n),a(i[o],p)>0&&t(i,r,o);f<d;){for(t(i,f,d),f++,d--;a(i[f],p)<0;)f++;for(;a(i[d],p)>0;)d--}0===a(i[r],p)?t(i,r,d):t(i,++d,o),d<=n&&(r=d+1),n<=d&&(o=d-1)}}(i,n,r||0,o||i.length-1,a||e)}}()});function zo(t,e){var i=t.length;if(i<=1)return[t];for(var n,r,o=[],a=0;a<i;a++){var s=w(t[a]);0!==s&&(t[a].area=Math.abs(s),void 0===r&&(r=s<0),r===s<0?(n&&o.push(n),n=[t[a]]):n.push(t[a]))}if(n&&o.push(n),e>1)for(var l=0;l<o.length;l++)o[l].length<=e||(Io(o[l],e,1,o[l].length-1,Lo),o[l]=o[l].slice(0,e));return o}function Lo(t,e){return e.area-t.area}function Ro(t,e,i){for(var n=i.patternDependencies,r=!1,o=0,a=e;o<a.length;o+=1){var s=a[o].paint.get(t+"-pattern");s.isConstant()||(r=!0);var l=s.constantOr(null);l&&(r=!0,n[l.to]=!0,n[l.from]=!0)}return r}function Bo(t,e,i,n,r){for(var o=r.patternDependencies,a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.paint.get(t+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:n-1},i,{}),h=u.evaluate({zoom:n},i,{}),p=u.evaluate({zoom:n+1},i,{});o[c]=!0,o[h]=!0,o[p]=!0,i.patterns[l.id]={min:c,mid:h,max:p}}}return i}var jo=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new cn,this.indexArray=new En,this.indexArray2=new Pn,this.programConfigurations=new hr(ao,t.layers,t.zoom),this.segments=new Hn,this.segments2=new Hn};jo.prototype.populate=function(t,e){this.features=[],this.hasPattern=Ro("fill",this.layers,e);for(var i=0,n=t;i<n.length;i+=1){var r=n[i],o=r.feature,a=r.index,s=r.sourceLayerIndex;if(this.layers[0]._featureFilter(new Ui(this.zoom),o)){var l=yr(o),u={sourceLayerIndex:s,index:a,geometry:l,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(u.id=o.id),this.hasPattern?this.features.push(Bo("fill",this.layers,u,this.zoom,e)):this.addFeature(u,l,a,{}),e.featureIndex.insert(o,l,a,s,this.index)}}}
vendor: 13,966 bytes, line 1
1,jo.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},jo.prototype.addFeatures=function(t,e){for(var i=0,n=this.features;i<n.length;i+=1){var r=n[i],o=r.geometry;this.addFeature(r,o,r.index,e)}},jo.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},jo.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},jo.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ao),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},jo.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},jo.prototype.addFeature=function(t,e,i,n){for(var r=0,o=zo(e,500);r<o.length;r+=1){for(var a=o[r],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),h=c.vertexLength,p=[],f=[],d=0,m=a;d<m.length;d+=1){var y=m[d];if(0!==y.length){y!==a[0]&&f.push(p.length/2);var v=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),g=v.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(g+y.length-1,g),p.push(y[0].x),p.push(y[0].y);for(var _=1;_<y.length;_++)this.layoutVertexArray.emplaceBack(y[_].x,y[_].y),this.indexArray2.emplaceBack(g+_-1,g+_),p.push(y[_].x),p.push(y[_].y);v.vertexLength+=y.length,v.primitiveLength+=y.length}}for(var b=so(p,f),x=0;x<b.length;x+=3)this.indexArray.emplaceBack(h+b[x],h+b[x+1],h+b[x+2]);c.vertexLength+=s,c.primitiveLength+=b.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,n)},Si("FillBucket",jo,{omit:["layers","features"]});var Fo={paint:new nn({"fill-antialias":new Ji(B.paint_fill["fill-antialias"]),"fill-opacity":new $i(B.paint_fill["fill-opacity"]),"fill-color":new $i(B.paint_fill["fill-color"]),"fill-outline-color":new $i(B.paint_fill["fill-outline-color"]),"fill-translate":new Ji(B.paint_fill["fill-translate"]),"fill-translate-anchor":new Ji(B.paint_fill["fill-translate-anchor"]),"fill-pattern":new Qi(B.paint_fill["fill-pattern"])})},No=function(t){function e(e){t.call(this,e,Fo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e);var i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new jo(t)},e.prototype.queryRadius=function(){return Dr(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,i,n,r,o,a){return br(Or(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),n)},e}(rn),Vo=ln([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Uo=Vo.members,qo=(Vo.size,Vo.alignment,Math.pow(2,13));function Yo(t,e,i,n,r,o,a,s){t.emplaceBack(e,i,2*Math.floor(n*qo)+a,r*qo*2,o*qo*2,Math.round(s))}var Ho=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new pn,this.indexArray=new En,this.programConfigurations=new hr(Uo,t.layers,t.zoom),this.segments=new Hn};function Wo(t,e){return t.x===e.x&&(t.x<0||t.x>dr)||t.y===e.y&&(t.y<0||t.y>dr)}function Go(t){return t.every(function(t){return t.x<0})||t.every(function(t){return t.x>dr})||t.every(function(t){return t.y<0})||t.every(function(t){return t.y>dr})}Ho.prototype.populate=function(t,e){this.features=[],this.hasPattern=Ro("fill-extrusion",this.layers,e);for(var i=0,n=t;i<n.length;i+=1){var r=n[i],o=r.feature,a=r.index,s=r.sourceLayerIndex;if(this.layers[0]._featureFilter(new Ui(this.zoom),o)){var l=yr(o),u={sourceLayerIndex:s,index:a,geometry:l,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(u.id=o.id),this.hasPattern?this.features.push(Bo("fill-extrusion",this.layers,u,this.zoom,e)):this.addFeature(u,l,a,{}),e.featureIndex.insert(o,l,a,s,this.index)}}},Ho.prototype.addFeatures=function(t,e){for(var i=0,n=this.features;i<n.length;i+=1){var r=n[i],o=r.geometry;this.addFeature(r,o,r.index,e)}},Ho.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},Ho.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ho.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ho.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Uo),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ho.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ho.prototype.addFeature=function(t,e,i,n){for(var r=0,o=zo(e,500);r<o.length;r+=1){for(var a=o[r],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=a;h<p.length;h+=1){var f=p[h];if(0!==f.length&&!Go(f))for(var d=0,m=0;m<f.length;m++){var y=f[m];if(m>=1){var v=f[m-1];if(!Wo(y,v)){c.vertexLength+4>Hn.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var g=y.sub(v)._perp()._unit(),_=v.dist(y);d+_>32768&&(d=0),Yo(this.layoutVertexArray,y.x,y.y,g.x,g.y,0,0,d),Yo(this.layoutVertexArray,y.x,y.y,g.x,g.y,0,1,d),d+=_,Yo(this.layoutVertexArray,v.x,v.y,g.x,g.y,0,0,d),Yo(this.layoutVertexArray,v.x,v.y,g.x,g.y,0,1,d);var b=c.vertexLength;this.indexArray.emplaceBack(b,b+2,b+1),this.indexArray.emplaceBack(b+1,b+2,b+3),c.vertexLength+=4,c.primitiveLength+=2}}}}c.vertexLength+s>Hn.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray));for(var x=[],w=[],T=c.vertexLength,k=0,S=a;k<S.length;k+=1){var E=S[k];if(0!==E.length){E!==a[0]&&w.push(x.length/2);for(var P=0;P<E.length;P++){var A=E[P];Yo(this.layoutVertexArray,A.x,A.y,0,0,1,1,0),x.push(A.x),x.push(A.y)}}}for(var C=so(x,w),D=0;D<C.length;D+=3)this.indexArray.emplaceBack(T+C[D],T+C[D+2],T+C[D+1]);c.primitiveLength+=C.length/3,c.vertexLength+=s}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,i,n)},Si("FillExtrusionBucket",Ho,{omit:["layers","features"]});var Zo={paint:new nn({"fill-extrusion-opacity":new Ji(B["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new $i(B["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ji(B["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ji(B["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Qi(B["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new $i(B["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new $i(B["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ji(B["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Xo=function(t){function e(e){t.call(this,e,Zo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Ho(t)},e.prototype.queryRadius=function(){return Dr(this.paint.get("fill-extrusion-translate"))},e.prototype.queryIntersectsFeature=function(t,e,i,n,r,o,a){return br(Or(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,a),n)},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("fill-extrusion-opacity")&&"none"!==this.visibility},e.prototype.resize=function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)},e}(rn),Ko=ln([{name:"a_pos_normal",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),Jo=Ko.members,$o=(Ko.size,Ko.alignment,Qo);function Qo(t,e,i,n,r){this.properties={},this.extent=i,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=r,t.readFields(ta,this,e)}function ta(t,e,i){1==t?e.id=i.readVarint():2==t?function(t,e){for(var i=t.readVarint()+t.pos;t.pos<i;){var n=e._keys[t.readVarint()],r=e._values[t.readVarint()];e.properties[n]=r}}(i,e):3==t?e.type=i.readVarint():4==t&&(e._geometry=i.pos)}function ea(t){for(var e,i,n=0,r=0,o=t.length,a=o-1;r<o;a=r++)e=t[r],n+=((i=t[a]).x-e.x)*(e.y+i.y);return n}Qo.types=["Unknown","Point","LineString","Polygon"],Qo.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,i=t.readVarint()+t.pos,n=1,r=0,a=0,s=0,l=[];t.pos<i;){if(r<=0){var u=t.readVarint();n=7&u,r=u>>3}if(r--,1===n||2===n)a+=t.readSVarint(),s+=t.readSVarint(),1===n&&(e&&l.push(e),e=[]),e.push(new o(a,s));else{if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone())}}return e&&l.push(e),l},Qo.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,i=1,n=0,r=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos<e;){if(n<=0){var c=t.readVarint();i=7&c,n=c>>3}if(n--,1===i||2===i)(r+=t.readSVarint())<a&&(a=r),r>s&&(s=r),(o+=t.readSVarint())<l&&(l=o),o>u&&(u=o);else if(7!==i)throw new Error("unknown command "+i)}return[a,l,s,u]},Qo.prototype.toGeoJSON=function(t,e,i){var n,r,o=this.extent*Math.pow(2,i),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=Qo.types[this.type];function c(t){for(var e=0;e<t.length;e++){var i=t[e],n=180-360*(i.y+s)/o;t[e]=[360*(i.x+a)/o-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(n=0;n<l.length;n++)h[n]=l[n][0];c(l=h);break;case 2:for(n=0;n<l.length;n++)c(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return[t];for(var i,n,r=[],o=0;o<e;o++){var a=ea(t[o]);0!==a&&(void 0===n&&(n=a<0),n===a<0?(i&&r.push(i),i=[t[o]]):i.push(t[o]))}return i&&r.push(i),r}(l),n=0;n<l.length;n++)for(r=0;r<l[n].length;r++)c(l[n][r])}1===l.length?l=l[0]:u="Multi"+u;var p={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var ia=na;function na(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ra,this,e),this.length=this._features.length}function ra(t,e,i){15===t?e.version=i.readVarint():1===t?e.name=i.readString():5===t?e.extent=i.readVarint():2===t?e._features.push(i.pos):3===t?e._keys.push(i.readString()):4===t&&e._values.push(function(t){for(var e=null,i=t.readVarint()+t.pos;t.pos<i;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(i))}function oa(t,e,i){if(3===t){var n=new ia(i,i.readVarint()+i.pos);n.length&&(e[n.name]=n)}}na.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new $o(this._pbf,e,this.extent,this._keys,this._values)};var aa={VectorTile:function(t,e){this.layers=t.readFields(oa,{},e)},VectorTileFeature:$o,VectorTileLayer:ia},sa=aa.VectorTileFeature.types,la=63,ua=Math.cos(Math.PI/180*37.5),ca=.5,ha=Math.pow(2,14)/ca;function pa(t,e,i,n,r,o,a){t.emplaceBack(e.x,e.y,n?1:0,r?1:-1,Math.round(la*i.x)+128,Math.round(la*i.y)+128,1+(0===o?0:o<0?-1:1)|(a*ca&63)<<2,a*ca>>6)}var fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.features=[],this.hasPattern=!1,this.layoutVertexArray=new fn,this.indexArray=new En,this.programConfigurations=new hr(Jo,t.layers,t.zoom),this.segments=new Hn};function da(t,e){return(t/e.tileTotal*(e.end-e.start)+e.start)*(ha-1)}fa.prototype.populate=function(t,e){this.features=[],this.hasPattern=Ro("line",this.layers,e);for(var i=0,n=t;i<n.length;i+=1){var r=n[i],o=r.feature,a=r.index,s=r.sourceLayerIndex;if(this.layers[0]._featureFilter(new Ui(this.zoom),o)){var l=yr(o),u={sourceLayerIndex:s,index:a,geometry:l,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(u.id=o.id),this.hasPattern?this.features.push(Bo("line",this.layers,u,this.zoom,e)):this.addFeature(u,l,a,{}),e.featureIndex.insert(o,l,a,s,this.index)}}},fa.prototype.update=function(t,e,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,i)},fa.prototype.addFeatures=function(t,e){for(var i=0,n=this.features;i<n.length;i+=1){var r=n[i],o=r.geometry;this.addFeature(r,o,r.index,e)}},fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Jo),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},fa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},fa.prototype.addFeature=function(t,e,i,n){for(var r=this.layers[0].layout,o=r.get("line-join").evaluate(t,{}),a=r.get("line-cap"),s=r.get("line-miter-limit"),l=r.get("line-round-limit"),u=0,c=e;u<c.length;u+=1){var h=c[u];this.addLine(h,t,o,a,s,l,i,n)}}
1,fa.prototype.addLine=function(t,e,i,n,r,o,a,s){var l=null;e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end")&&(l={start:e.properties.mapbox_clip_start,end:e.properties.mapbox_clip_end,tileTotal:void 0});for(var u="Polygon"===sa[e.type],c=t.length;c>=2&&t[c-1].equals(t[c-2]);)c--;for(var h=0;h<c-1&&t[h].equals(t[h+1]);)h++;if(!(c<(u?3:2))){l&&(l.tileTotal=function(t,e,i){for(var n,r,o=0,a=h;a<i-1;a++)n=t[a],r=t[a+1],o+=n.dist(r);return o}(t,0,c)),"bevel"===i&&(r=1.05);var p=dr/(512*this.overscaling)*15,f=t[h],d=this.segments.prepareSegment(10*c,this.layoutVertexArray,this.indexArray);this.distance=0;var m,y,v,g=n,_=u?"butt":n,b=!0,x=void 0,w=void 0,T=void 0,k=void 0;this.e1=this.e2=this.e3=-1,u&&(m=t[c-2],k=f.sub(m)._unit()._perp());for(var S=h;S<c;S++)if(!(w=u&&S===c-1?t[h+1]:t[S+1])||!t[S].equals(w)){k&&(T=k),m&&(x=m),m=t[S],k=w?w.sub(m)._unit()._perp():T;var E=(T=T||k).add(k);0===E.x&&0===E.y||E._unit();var P=E.x*k.x+E.y*k.y,A=0!==P?1/P:1/0,C=P<ua&&x&&w;if(C&&S>h){var D=m.dist(x);if(D>2*p){var O=m.sub(m.sub(x)._mult(p/D)._round());this.distance+=O.dist(x),this.addCurrentVertex(O,this.distance,T.mult(1),0,0,!1,d,l),x=O}}var M=x&&w,I=M?i:w?g:_;if(M&&"round"===I&&(A<o?I="miter":A<=2&&(I="fakeround")),"miter"===I&&A>r&&(I="bevel"),"bevel"===I&&(A>2&&(I="flipbevel"),A<r&&(I="miter")),x&&(this.distance+=m.dist(x)),"miter"===I)E._mult(A),this.addCurrentVertex(m,this.distance,E,0,0,!1,d,l);else if("flipbevel"===I){if(A>100)E=k.clone().mult(-1);else{var z=T.x*k.y-T.y*k.x>0?-1:1,L=A*T.add(k).mag()/T.sub(k).mag();E._perp()._mult(L*z)}this.addCurrentVertex(m,this.distance,E,0,0,!1,d,l),this.addCurrentVertex(m,this.distance,E.mult(-1),0,0,!1,d,l)}else if("bevel"===I||"fakeround"===I){var R=T.x*k.y-T.y*k.x>0,B=-Math.sqrt(A*A-1);if(R?(v=0,y=B):(y=0,v=B),b||this.addCurrentVertex(m,this.distance,T,y,v,!1,d,l),"fakeround"===I){for(var j=Math.floor(8*(.5-(P-.5))),F=void 0,N=0;N<j;N++)F=k.mult((N+1)/(j+1))._add(T)._unit(),this.addPieSliceVertex(m,this.distance,F,R,d,l);this.addPieSliceVertex(m,this.distance,E,R,d,l);for(var V=j-1;V>=0;V--)F=T.mult((V+1)/(j+1))._add(k)._unit(),this.addPieSliceVertex(m,this.distance,F,R,d,l)}w&&this.addCurrentVertex(m,this.distance,k,-y,-v,!1,d,l)}else"butt"===I?(b||this.addCurrentVertex(m,this.distance,T,0,0,!1,d,l),w&&this.addCurrentVertex(m,this.distance,k,0,0,!1,d,l)):"square"===I?(b||(this.addCurrentVertex(m,this.distance,T,1,1,!1,d,l),this.e1=this.e2=-1),w&&this.addCurrentVertex(m,this.distance,k,-1,-1,!1,d,l)):"round"===I&&(b||(this.addCurrentVertex(m,this.distance,T,0,0,!1,d,l),this.addCurrentVertex(m,this.distance,T,1,1,!0,d,l),this.e1=this.e2=-1),w&&(this.addCurrentVertex(m,this.distance,k,-1,-1,!0,d,l),this.addCurrentVertex(m,this.distance,k,0,0,!1,d,l)));if(C&&S<c-1){var U=m.dist(w);if(U>2*p){var q=m.add(w.sub(m)._mult(p/U)._round());this.distance+=q.dist(m),this.addCurrentVertex(q,this.distance,k.mult(1),0,0,!1,d,l),m=q}}b=!1}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,a,s)}},fa.prototype.addCurrentVertex=function(t,e,i,n,r,o,a,s){var l,u=this.layoutVertexArray,c=this.indexArray;s&&(e=da(e,s)),l=i.clone(),n&&l._sub(i.perp()._mult(n)),pa(u,t,l,o,!1,n,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(c.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,l=i.mult(-1),r&&l._sub(i.perp()._mult(r)),pa(u,t,l,o,!0,-r,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(c.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,e>ha/2&&!s&&(this.distance=0,this.addCurrentVertex(t,this.distance,i,n,r,o,a))},fa.prototype.addPieSliceVertex=function(t,e,i,n,r,o){i=i.mult(n?-1:1);var a=this.layoutVertexArray,s=this.indexArray;o&&(e=da(e,o)),pa(a,t,i,!1,n,0,e),this.e3=r.vertexLength++,this.e1>=0&&this.e2>=0&&(s.emplaceBack(this.e1,this.e2,this.e3),r.primitiveLength++),n?this.e2=this.e3:this.e1=this.e3},Si("LineBucket",fa,{omit:["layers","features"]});var ma=new nn({"line-cap":new Ji(B.layout_line["line-cap"]),"line-join":new $i(B.layout_line["line-join"]),"line-miter-limit":new Ji(B.layout_line["line-miter-limit"]),"line-round-limit":new Ji(B.layout_line["line-round-limit"])}),ya={paint:new nn({"line-opacity":new $i(B.paint_line["line-opacity"]),"line-color":new $i(B.paint_line["line-color"]),"line-translate":new Ji(B.paint_line["line-translate"]),"line-translate-anchor":new Ji(B.paint_line["line-translate-anchor"]),"line-width":new $i(B.paint_line["line-width"]),"line-gap-width":new $i(B.paint_line["line-gap-width"]),"line-offset":new $i(B.paint_line["line-offset"]),"line-blur"
vendor: 7,079 bytes, line 1
1:new $i(B.paint_line["line-blur"]),"line-dasharray":new tn(B.paint_line["line-dasharray"]),"line-pattern":new Qi(B.paint_line["line-pattern"]),"line-gradient":new en(B.paint_line["line-gradient"])}),layout:ma},va=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,i){return i=new Ui(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),t.prototype.possiblyEvaluate.call(this,e,i)},e.prototype.evaluate=function(e,i,n,r){return i=h({},i,{zoom:Math.floor(i.zoom)}),t.prototype.evaluate.call(this,e,i,n,r)},e}($i))(ya.paint.properties["line-width"].specification);va.useIntegerZoom=!0;var ga=function(t){function e(e){t.call(this,e,ya)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=eo(t,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),this.paint._values["line-floorwidth"]=va.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new fa(t)},e.prototype.queryRadius=function(t){var e=t,i=_a(Cr("line-width",this,e),Cr("line-gap-width",this,e)),n=Cr("line-offset",this,e);return i/2+Math.abs(n)+Dr(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,i,n,r,a,s){var l=Or(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=s/2*_a(this.paint.get("line-width").evaluate(e,i),this.paint.get("line-gap-width").evaluate(e,i)),c=this.paint.get("line-offset").evaluate(e,i);return c&&(n=function(t,e){for(var i=[],n=new o(0,0),r=0;r<t.length;r++){for(var a=t[r],s=[],l=0;l<a.length;l++){var u=a[l-1],c=a[l],h=a[l+1],p=0===l?n:c.sub(u)._unit()._perp(),f=l===a.length-1?n:h.sub(c)._unit()._perp(),d=p._add(f)._unit(),m=d.x*f.x+d.y*f.y;d._mult(1/m),s.push(d._mult(e)._add(c))}i.push(s)}return i}(n,c*s)),xr(l,n,u)},e}(rn);function _a(t,e){return e>0?e+2*t:t}var ba=ln([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),xa=ln([{name:"a_projected_pos",components:3,type:"Float32"}],4),wa=(ln([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),ln([{name:"a_placed",components:2,type:"Uint8"}],4)),Ta=(ln([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),ln([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),ka=ln([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function Sa(t,e,i){return t.sections.forEach(function(t){t.text=function(t,e,i){var n=e.layout.get("text-transform").evaluate(i,{});return"uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),Vi.applyArabicShaping&&(t=Vi.applyArabicShaping(t)),t}(t.text,e,i)}),t}ln([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"hidden"}]),ln([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"horizontalPlacedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint32",name:"crossTileID"}]),ln([{type:"Float32",name:"offsetX"}]),ln([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Ea={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Pa=function(t){function e(e,i,n,r){t.call(this,e,i),this.angle=n,void 0!==r&&(this.segment=r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(o);Si("Anchor",Pa);function Aa(t,e){var i=e.expression;if("constant"===i.kind)return{functionType:"constant",layoutSize:i.evaluate(new Ui(t+1))};if("source"===i.kind)return{functionType:"source"};for(var n=i.zoomStops,r=0;r<n.length&&n[r]<=t;)r++;for(var o=r=Math.max(0,r-1);o<n.length&&n[o]<t+1;)o++;o=Math.min(n.length-1,o);var a={min:n[r],max:n[o]};return"composite"===i.kind?{functionType:"composite",zoomRange:a,propertyValue:e.value}:{functionType:"camera",layoutSize:i.evaluate(new Ui(t+1)),zoomRange:a,sizeRange:{min:i.evaluate(new Ui(a.min)),max:i.evaluate(new Ui(a.max))},propertyValue:e.value}}var Ca=aa.VectorTileFeature.types,Da=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Oa(t,e,i,n,r,o,a,s){t.emplaceBack(e,i,Math.round(32*n),Math.round(32*r),o,a,s?s[0]:0,s?s[1]:0)}function Ma(t,e,i){t.emplaceBack(e.x,e.y,i),t.emplaceBack(e.x,e.y,i),t.emplaceBack(e.x,e.y,i),t.emplaceBack(e.x,e.y,i)}var Ia=function(t){this.layoutVertexArray=new mn,this.indexArray=new En,this.programConfigurations=t,this.segments=new Hn,this.dynamicLayoutVertexArray=new yn,this.opacityVertexArray=new vn,this.placedSymbolArray=new zn};
1Ia.prototype.upload=function(t,e,i,n){i&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ba.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,xa.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,Da,!0),this.opacityVertexBuffer.itemSize=1),(i||n)&&this.programConfigurations.upload(t)},Ia.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Si("SymbolBuffers",Ia);var za=function(t,e,i){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new i,this.segments=new Hn,this.collisionVertexArray=new bn};za.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,wa.members,!0)},za.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Si("CollisionBuffers",za);var La=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1;var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Aa(this.zoom,e["text-size"]),this.iconSizeData=Aa(this.zoom,e["icon-size"]);var i=this.layers[0].layout,n="viewport-y"===i.get("symbol-z-order");this.sortFeaturesByY=n&&(i.get("text-allow-overlap")||i.get("icon-allow-overlap")||i.get("text-ignore-placement")||i.get("icon-ignore-placement")),this.sourceID=t.sourceID};La.prototype.createArrays=function(){this.text=new Ia(new hr(ba.members,this.layers,this.zoom,function(t){return/^text/.test(t)})),this.icon=new Ia(new hr(ba.members,this.layers,this.zoom,function(t){return/^icon/.test(t)})),this.collisionBox=new za(_n,Ta.members,Pn),this.collisionCircle=new za(_n,ka.members,En),this.glyphOffsetArray=new jn,this.lineVertexArray=new Nn,this.symbolInstances=new Rn},La.prototype.calculateGlyphDependencies=function(t,e,i,n){for(var r=0;r<t.length;r++)if(e[t.charCodeAt(r)]=!0,i&&n){var o=Ea[t.charAt(r)];o&&(e[o.charCodeAt(0)]=!0)}},La.prototype.populate=function(t,e){var i=this.layers[0],n=i.layout,r=n.get("text-font"),o=n.get("text-field"),a=n.get("icon-image"),s=("constant"!==o.value.kind||o.value.value.toString().length>0)&&("constant"!==r.value.kind||r.value.value.length>0),l="constant"!==a.value.kind||a.value.value&&a.value.value.length>0;if(this.features=[],s||l){for(var u=e.iconDependencies,c=e.glyphDependencies,h=new Ui(this.zoom),p=0,f=t;p<f.length;p+=1){var d=f[p],m=d.feature,y=d.index,v=d.sourceLayerIndex;if(i._featureFilter(h,m)){var g=void 0;if(s){var _=i.getValueAndResolveTokens("text-field",m);g=Sa(_ instanceof lt?_:lt.fromString(_),i,m)}var b=void 0;if(l&&(b=i.getValueAndResolveTokens("icon-image",m)),g||b){var x={text:g,icon:b,index:y,sourceLayerIndex:v,geometry:yr(m),properties:m.properties,type:Ca[m.type]};if(void 0!==m.id&&(x.id=m.id),this.features.push(x),b&&(u[b]=!0),g)for(var w=r.evaluate(m,{}).join(","),T="map"===n.get("text-rotation-alignment")&&"point"!==n.get("symbol-placement"),k=0,S=g.sections;k<S.length;k+=1){var E=S[k],P=Oi(g.toString()),A=E.fontStack||w,C=c[A]=c[A]||{};this.calculateGlyphDependencies(E.text,C,T,P)}}}}"line"===n.get("symbol-placement")&&(this.features=function(t){var e={},i={},n=[],r=0;function o(e){n.push(t[e]),r++}function a(t,e,r){var o=i[t];return delete i[t],i[e]=o,n[o].geometry[0].pop(),n[o].geometry[0]=n[o].geometry[0].concat(r[0]),o}function s(t,i,r){var o=e[i];return delete e[i],e[t]=o,n[o].geometry[0].shift(),n[o].geometry[0]=r[0].concat(n[o].geometry[0]),o}function l(t,e,i){var n=i?e[0][e[0].length-1]:e[0][0];return t+":"+n.x+":"+n.y}for(var u=0;u<t.length;u++){var c=t[u],h=c.geometry,p=c.text?c.text.toString():null;if(p){var f=l(p,h),d=l(p,h,!0);if(f in i&&d in e&&i[f]!==e[d]){var m=s(f,d,h),y=a(f,d,n[m].geometry);delete e[f],delete i[d],i[l(p,n[y].geometry,!0)]=y,n[m].geometry=null}
vendor: 2,125 bytes, line 1
1else f in i?a(f,d,h):d in e?s(f,d,h):(o(u),e[f]=r-1,i[d]=r-1)}else o(u)}return n.filter(function(t){return t.geometry})}(this.features))}},La.prototype.update=function(t,e,i){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,i),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,i))},La.prototype.isEmpty=function(){return 0===this.symbolInstances.length},La.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},La.prototype.upload=function(t){this.uploaded||(this.collisionBox.upload(t),this.collisionCircle.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},La.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()},La.prototype.addToLineVertexArray=function(t,e){var i=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),r=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:n},a<e.length-1&&(n+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:r},s>0&&(r+=e[s-1].dist(e[s]));for(var l=0;l<e.length;l++){var u=o[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}},La.prototype.addSymbols=function(t,e,i,n,r,o,a,s,l,u){for(var c=t.indexArray,h=t.layoutVertexArray,p=t.dynamicLayoutVertexArray,f=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray),d=this.glyphOffsetArray.length,m=f.vertexLength,y=0,v=e;y<v.length;y+=1){var g=v[y],_=g.tl,b=g.tr,x=g.bl,w=g.br,T=g.tex,k=f.vertexLength,S=g.glyphOffset[1];Oa(h,s.x,s.y,_.x,S+_.y,T.x,T.y,i),Oa(h,s.x,s.y,b.x,S+b.y,T.x+T.w,T.y,i),Oa(h,s.x,s.y,x.x,S+x.y,T.x,T.y+T.h,i),Oa(h,s.x,s.y,w.x,S+w.y,T.x+T.w,T.y+T.h,i),Ma(p,s,0
1),c.emplaceBack(k,k+1,k+2),c.emplaceBack(k+1,k+2,k+3),f.vertexLength+=4,f.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(g.glyphOffset[0])}t.placedSymbolArray.emplaceBack(s.x,s.y,d,this.glyphOffsetArray.length-d,m,l,u,s.segment,i?i[0]:0,i?i[1]:0,n[0],n[1],a,!1),t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,o,o.index,{})},La.prototype._addCollisionDebugVertex=function(t,e,i,n,r,o){return e.emplaceBack(0,0),t.emplaceBack(i.x,i.y,n,r,Math.round(o.x),Math.round(o.y))},La.prototype.addCollisionDebugVertices=function(t,e,i,n,r,a,s,l){var u=r.segments.prepareSegment(4,r.layoutVertexArray,r.indexArray),c=u.vertexLength,h=r.layoutVertexArray,p=r.collisionVertexArray,f=s.anchorX,d=s.anchorY;if(this._addCollisionDebugVertex(h,p,a,f,d,new o(t,e)),this._addCollisionDebugVertex(h,p,a,f,d,new o(i,e)),this._addCollisionDebugVertex(h,p,a,f,d,new o(i,n)),this._addCollisionDebugVertex(h,p,a,f,d,new o(t,n)),u.vertexLength+=4,l){var m=r.indexArray;m.emplaceBack(c,c+1,c+2),m.emplaceBack(c,c+2,c+3),u.primitiveLength+=2}else{var y=r.indexArray;y.emplaceBack(c,c+1),y.emplaceBack(c+1,c+2),y.emplaceBack(c+2,c+3),y.emplaceBack(c+3,c),u.primitiveLength+=4}},La.prototype.addDebugCollisionBoxes=function(t,e,i){for(var n=t;n<e;n++){var r=this.collisionBoxArray.get(n),o=r.x1,a=r.y1,s=r.x2,l=r.y2,u=r.radius>0;this.addCollisionDebugVertices(o,a,s,l,u?this.collisionCircle:this.collisionBox,r.anchorPoint,i,u)}},La.prototype.generateCollisionDebugBuffers=function(){for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e)}},La.prototype._deserializeCollisionBoxesForSymbol=function(t,e,i,n,r){for(var o={},a=e;a<i;a++){var s=t.get(a);if(0===s.radius){o.textBox={x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2,anchorPointX:s.anchorPointX,anchorPointY:s.anchorPointY},o.textFeatureIndex=s.featureIndex;break}o.textCircles||(o.textCircles=[],o.textFeatureIndex=s.featureIndex),o.textCircles.push(s.anchorPointX,s.anchorPointY,s.radius,s.signedDistanceFromAnchor,1)}for(var l=n;l<r;l++){var u=t.get(l);if(0===u.radius){o.iconBox={x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,anchorPointX:u.anchorPointX,anchorPointY:u.anchorPointY},o.iconFeatureIndex=u.featureIndex;break}}return o},La.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var i=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,i.textBoxStartIndex,i.textBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex))}},La.prototype.hasTextData=function(){return this.text.segments.get().length>0},La.prototype.hasIconData=function(){return this.icon.segments.get().length>0},La.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},La.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},La.prototype.addIndicesForPlacedTextSymbol=function(t){for(var e=this.text.placedSymbolArray.get(t),i=e.vertexStartIndex+4*e.numGlyphs,n=e.vertexStartIndex;n<i;n+=4)this.text.indexArray.emplaceBack(n,n+1,n+2),this.text.indexArray.emplaceBack(n+1,n+2,n+3)},La.prototype.sortFeatures=function(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&(this.sortedAngle=t,!(this.text.segments.get().length>1||this.icon.segments.get().length>1))){for(var e=[],i=0;i<this.symbolInstances.length;i++)e.push(i);for(var n=Math.sin(t),r=Math.cos(t),o=[],a=[],s=0;s<this.symbolInstances.length;s++){var l=this.symbolInstances.get(s);o.push(0|Math.round(n*l.anchorX+r*l.anchorY)),a.push(l.featureIndex)}e.sort(function(t,e){return o[t]-o[e]||a[e]-a[t]}),this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var u=0,c=e;u<c.length;u+=1){var h=c[u],p=this.symbolInstances.get(h);this.featureSortOrder.push(p.featureIndex),p.horizontalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol(p.horizontalPlacedTextSymbolIndex),p.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol(p.verticalPlacedTextSymbolIndex);var f=this.icon.placedSymbolArray.get(h);
1if(f.numGlyphs){var d=f.vertexStartIndex;this.icon.indexArray.emplaceBack(d,d+1,d+2),this.icon.indexArray.emplaceBack(d+1,d+2,d+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Si("SymbolBucket",La,{omit:["layers","collisionBoxArray","features","compareText"]}),La.MAX_GLYPHS=65535,La.addDynamicAttributes=Ma;var Ra=new nn({"symbol-placement":new Ji(B.layout_symbol["symbol-placement"]),"symbol-spacing":new Ji(B.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ji(B.layout_symbol["symbol-avoid-edges"]),"symbol-z-order":new Ji(B.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ji(B.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ji(B.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ji(B.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ji(B.layout_symbol["icon-rotation-alignment"]),"icon-size":new $i(B.layout_symbol["icon-size"]),"icon-text-fit":new Ji(B.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ji(B.layout_symbol["icon-text-fit-padding"]),"icon-image":new $i(B.layout_symbol["icon-image"]),"icon-rotate":new $i(B.layout_symbol["icon-rotate"]),"icon-padding":new Ji(B.layout_symbol["icon-padding"]),"icon-keep-upright":new Ji(B.layout_symbol["icon-keep-upright"]),"icon-offset":new $i(B.layout_symbol["icon-offset"]),"icon-anchor":new $i(B.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ji(B.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ji(B.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ji(B.layout_symbol["text-rotation-alignment"]),"text-field":new $i(B.layout_symbol["text-field"]),"text-font":new $i(B.layout_symbol["text-font"]),"text-size":new $i(B.layout_symbol["text-size"]),"text-max-width":new $i(B.layout_symbol["text-max-width"]),"text-line-height":new Ji(B.layout_symbol["text-line-height"]),"text-letter-spacing":new $i(B.layout_symbol["text-letter-spacing"]),"text-justify":new $i(B.layout_symbol["text-justify"]),"text-anchor":new $i(B.layout_symbol["text-anchor"]),"text-max-angle":new Ji(B.layout_symbol["text-max-angle"]),"text-rotate":new $i(B.layout_symbol["text-rotate"]),"text-padding":new Ji(B.layout_symbol["text-padding"]),"text-keep-upright":new Ji(B.layout_symbol["text-keep-upright"]),"text-transform":new $i(B.layout_symbol["text-transform"]),"text-offset":new $i(B.layout_symbol["text-offset"]),"text-allow-overlap":new Ji(B.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ji(B.layout_symbol["text-ignore-placement"]),"text-optional":new Ji(B.layout_symbol["text-optional"])}),Ba={paint:new nn({"icon-opacity":new $i(B.paint_symbol["icon-opacity"]),"icon-color":new $i(B.paint_symbol["icon-color"]),"icon-halo-color":new $i(B.paint_symbol["icon-halo-color"]),"icon-halo-width":new $i(B.paint_symbol["icon-halo-width"]),"icon-halo-blur":new $i(B.paint_symbol["icon-halo-blur"]),"icon-translate":new Ji(B.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ji(B.paint_symbol["icon-translate-anchor"]),"text-opacity":new $i(B.paint_symbol["text-opacity"]),"text-color":new $i(B.paint_symbol["text-color"]),"text-halo-color":new $i(B.paint_symbol["text-halo-color"]),"text-halo-width":new $i(B.paint_symbol["text-halo-width"]),"text-halo-blur":new $i(B.paint_symbol["text-halo-blur"]),"text-translate":new Ji(B.paint_symbol["text-translate"]),"text-translate-anchor":new Ji(B.paint_symbol["text-translate-anchor"])}),layout:Ra},ja=function(t){function e(e){t.call(this,e,Ba)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"))},e.prototype.getValueAndResolveTokens=function(t,e){var i,n=this.layout.get(t).evaluate(e,{}),r=this._unevaluatedLayout._values[t];return r.isDataDriven()||Ie(r.value)?n:(i=e.properties,n.replace(/{([^{}]+)}/g,function(t,e){return e in i?String(i[e]):""}))}
vendor: 4,255 bytes, line 1
1,e.prototype.createBucket=function(t){return new La(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e}(rn),Fa={paint:new nn({"background-color":new Ji(B.paint_background["background-color"]),"background-pattern":new tn(B.paint_background["background-pattern"]),"background-opacity":new Ji(B.paint_background["background-opacity"])})},Na=function(t){function e(e){t.call(this,e,Fa)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(rn),Va={paint:new nn({"raster-opacity":new Ji(B.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ji(B.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ji(B.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ji(B.paint_raster["raster-brightness-max"]),"raster-saturation":new Ji(B.paint_raster["raster-saturation"]),"raster-contrast":new Ji(B.paint_raster["raster-contrast"]),"raster-resampling":new Ji(B.paint_raster["raster-resampling"]),"raster-fade-duration":new Ji(B.paint_raster["raster-fade-duration"])})},Ua=function(t){function e(e){t.call(this,e,Va)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(rn),qa=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender||"3d"===this.implementation.renderingMode},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.resize=function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)},e.prototype.onAdd=function(t){this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&&this.implementation.onRemove(t)},e}(rn),Ya={circle:Wr,heatmap:io,hillshade:ro,fill:No,"fill-extrusion":Xo,line:ga,symbol:ja,background:Na,raster:Ua};function Ha(t){for(var e=0,i=0,n=0,r=t;n<r.length;n+=1){var o=r[n];e+=o.w*o.h,i=Math.max(i,o.w)}t.sort(function(t,e){return e.h-t.h});for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),i),h:1/0}],s=0,l=0,u=0,c=t;u<c.length;u+=1)for(var h=c[u],p=a.length-1;p>=0;p--){var f=a[p];if(!(h.w>f.w||h.h>f.h)){if(h.x=f.x,h.y=f.y,l=Math.max(l,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===f.w&&h.h===f.h){var d=a.pop();p<a.length&&(a[p]=d)}else h.h===f.h?(f.x+=h.w,f.w-=h.w):h.w===f.w?(f.y+=h.h,f.h-=h.h):(a.push({x:f.x+h.w,y:f.y,w:f.w-h.w,h:h.h}),f.y+=h.h,f.h-=h.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Wa=function(t,e){var i=e.pixelRatio;this.paddedRect=t,this.pixelRatio=i},Ga={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Ga.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Ga.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Ga.tlbr.get=function(){return this.tl.concat(this.br)},Ga.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Wa.prototype,Ga);var Za=function(t,e){var i={},n={},r=[];for(var o in t){var a=t[o],s={x:0,y:0,w:a.data.width+2,h:a.data.height+2};r.push(s),i[o]=new Wa(s,a)}for(var l in e){var u=e[l],c={x:0,y:0,w:u.data.width+2,h:u.data.height+2};r.push(c),n[l]=new Wa(c,u)}var h=Ha(r),p=h.w,f=h.h,d=new Qr({width:p||1,height:f||1});for(var m in t){var y=t[m],v=i[m].paddedRect;Qr.copy(y.data,d,{x:0,y:0},{x:v.x+1,y:v.y+1},y.data)}for(var g in e){var _=e[g],b=n[g].paddedRect,x=b.x+1,w=b.y+1,T=_.data.width,k=_.data.height;Qr.copy(_.data,d,{x:0,y:0},{x:x,y:w},_.data),Qr.copy(_.data,d,{x:0,y:k-1},{x:x,y:w-1},{width:T,height:1}),Qr.copy(_.data,d,{x:0,y:0},{x:x,y:w+k},{width:T,height:1}),Qr.copy(_.data,d,{x:T-1,y:0},{x:x-1,y:w},{width:1,height:k}),Qr.copy(_.data,d,{x:0,y:0},{x:x+T,y:w},{width:1,height:k})}this.image=d,this.iconPositions=i,this.patternPositions=n};Si("ImagePosition",Wa),Si("ImageAtlas",Za);var Xa=self.HTMLImageElement,Ka=self.HTMLCanvasElement,Ja=self.HTMLVideoElement,$a=self.ImageData,Qa=function(t,e,
vendor: 4,771 bytes, line 1
1i,n){this.context=t,this.format=i,this.texture=t.gl.createTexture(),this.update(e,n)};Qa.prototype.update=function(t,e){var i=t.width,n=t.height,r=!this.size||this.size[0]!==i||this.size[1]!==n,o=this.context,a=o.gl;this.useMipmap=Boolean(e&&e.useMipmap),a.bindTexture(a.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!e||!1!==e.premultiply)),r?(this.size=[i,n],t instanceof Xa||t instanceof Ka||t instanceof Ja||t instanceof $a?a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,a.UNSIGNED_BYTE,t):a.texImage2D(a.TEXTURE_2D,0,this.format,i,n,0,this.format,a.UNSIGNED_BYTE,t.data)):t instanceof Xa||t instanceof Ka||t instanceof Ja||t instanceof $a?a.texSubImage2D(a.TEXTURE_2D,0,0,0,a.RGBA,a.UNSIGNED_BYTE,t):a.texSubImage2D(a.TEXTURE_2D,0,0,0,i,n,a.RGBA,a.UNSIGNED_BYTE,t.data),this.useMipmap&&this.isSizePowerOfTwo()&&a.generateMipmap(a.TEXTURE_2D)},Qa.prototype.bind=function(t,e,i){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),i!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(i=n.LINEAR),t!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,i||t),this.filter=t),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Qa.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Qa.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var ts=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=i?r-1:0,p=i?-1:1,f=t[e+h];for(h+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},es=function(t,e,i,n,r,o){var a,s,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+f]=255&s,f+=d,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;t[i+f]=255&a,f+=d,a/=256,u-=8);t[i+f-d]|=128*m},is=ns;function ns(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}function rs(t){return t.type===ns.Bytes?t.readVarint()+t.pos:t.pos+1}function os(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function as(t,e,i){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));i.realloc(n);for(var r=i.pos-1;r>=t;r--)i.buf[r+n]=i.buf[r]}function ss(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function ls(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function us(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function cs(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function hs(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function ps(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function fs(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function ds(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function ms(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function ys(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function vs(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function gs(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}ns.Varint=0,ns.Fixed64=1,ns.Bytes=2,ns.Fixed32=5,ns.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var n=this.readVarint(),r=n>>3,o=this.pos;this.type=7&n,t(r,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=ys(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=gs(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=ys(this.buf,this.pos)+4294967296*ys(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=ys(this.buf,this.pos)+4294967296*gs(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=ts(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=ts(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,n=this.buf;return e=127&(i=n[this.pos++]),i<128?e:(e|=(127&(i=n[this.pos++]))<<7,i<128?e:(e|=(127&(i=n[this.pos++]))<<14,i<128?e:(e|=(127&(i=n[this.pos++]))<<21,i<128?e:function(t,e,
vendor: 4,522 bytes, line 1
1i){var n,r,o=i.buf;if(n=(112&(r=o[i.pos++]))>>4,r<128)return os(t,n,e);if(n|=(127&(r=o[i.pos++]))<<3,r<128)return os(t,n,e);if(n|=(127&(r=o[i.pos++]))<<10,r<128)return os(t,n,e);if(n|=(127&(r=o[i.pos++]))<<17,r<128)return os(t,n,e);if(n|=(127&(r=o[i.pos++]))<<24,r<128)return os(t,n,e);if(n|=(1&(r=o[i.pos++]))<<31,r<128)return os(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,i){for(var n="",r=e;r<i;){var o,a,s,l=t[r],u=null,c=l>239?4:l>223?3:l>191?2:1;if(r+c>i)break;1===c?l<128&&(u=l):2===c?128==(192&(o=t[r+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),r+=c}return n}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var i=rs(this);for(t=t||[];this.pos<i;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){var e=rs(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===ns.Varint)for(;this.buf[this.pos++]>127;);else if(e===ns.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ns.Fixed32)this.pos+=4;else{if(e!==ns.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),vs(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),vs(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),vs(this.buf,-1&t,this.pos),vs(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),vs(this.buf,-1&t,this.pos),vs(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var i,n;if(t>=0?(i=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(i=~(-t%4294967296))?i=i+1|0:(i=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,i){i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos]=127&t}(i,0,e),function(t,e){var i=(7&t)<<4;e.buf[e.pos++]|=i|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;
1this.pos=function(t,e,i){for(var n,r,o=0;o<e.length;o++){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){n>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):r=n;continue}if(n<56320){t[i++]=239,t[i++]=191,t[i++]=189,r=n;continue}n=r-55296<<10|n-56320|65536,r=null}else r&&(t[i++]=239,t[i++]=191,t[i++]=189,r=null);n<128?t[i++]=n:(n<2048?t[i++]=n>>6|192:(n<65536?t[i++]=n>>12|224:(t[i++]=n>>18|240,t[i++]=n>>12&63|128),t[i++]=n>>6&63|128),t[i++]=63&n|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;i>=128&&as(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),es(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),es(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var n=this.pos-i;n>=128&&as(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,i){this.writeTag(t,ns.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){this.writeMessage(t,ss,e)},writePackedSVarint:function(t,e){this.writeMessage(t,ls,e)},writePackedBoolean:function(t,e){this.writeMessage(t,hs,e)},writePackedFloat:function(t,e){this.writeMessage(t,us,e)},writePackedDouble:function(t,e){this.writeMessage(t,cs,e)},writePackedFixed32:function(t,e){this.writeMessage(t,ps,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,fs,e)},writePackedFixed64:function(t,e){this.writeMessage(t,ds,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,ms,e)},writeBytesField:function(t,e){this.writeTag(t,ns.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ns.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ns.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ns.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ns.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ns.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ns.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ns.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ns.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ns.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var _s=3;function bs(t,e,i){1===t&&i.readMessage(xs,e)}function xs(t,e,i){if(3===t){var n=i.readMessage(ws,{}),r=n.id,o=n.bitmap,a=n.width,s=n.height,l=n.left,u=n.top,c=n.advance;e.push({id:r,bitmap:new $r({width:a+2*_s,height:s+2*_s},o),metrics:{width:a,height:s,left:l,top:u,advance:c}})}}function ws(t,e,i){1===t?e.id=i.readVarint():2===t?e.bitmap=i.readBytes():3===t?e.width=i.readVarint():4===t?e.height=i.readVarint():5===t?e.left=i.readSVarint():6===t?e.top=i.readSVarint():7===t&&(e.advance=i.readVarint())}var Ts=_s,ks=function(t,e,i){this.target=t,this.parent=e,this.mapId=i,this.callbacks={},this.callbackID=0,d(["receive"],this),this.target.addEventListener("message",this.receive,!1)};function Ss(t,e,i){var n=2*Math.PI*6378137/256/Math.pow(2,i);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}ks.prototype.send=function(t,e,i,n){var r=i?this.mapId+":"+this.callbackID++:null;i&&(this.callbacks[r]=i);var o=[];this.target.postMessage({targetMapId:n,sourceMapId:this.mapId,type:t,id:String(r),data:Pi(e,o)},o)},ks.prototype.receive=function(t){var e,i=this,n=t.data,r=n.id;if(!n.targetMapId||this.mapId===n.targetMapId){var o=function(t,e){var n=[];i.target.postMessage({sourceMapId:i.mapId,type:"<response>",id:String(r),error:t?Pi(t):null,data:Pi(e,n)},n)};if("<response>"===n.type)e=this.callbacks[n.id],delete this.callbacks[n.id],e&&n.error?e(Ai(n.error)):e&&e(null,Ai(n.data));else if(void 0!==n.id&&this.parent[n.type])this.parent[n.type](n.sourceMapId,Ai(n.data),o);else if(void 0!==n.id&&this.parent.getWorkerSource){var a=n.type.split("."),s=Ai(n.data);this.parent.getWorkerSource(n.sourceMapId,a[0],s.source)[a[1]](s,o)}else this.parent[n.type](Ai(n.data))}},ks.prototype.remove=function(){this.target.removeEventListener("message",this.receive,!1)};
1var Es=function(t,e,i){this.z=t,this.x=e,this.y=i,this.key=Cs(0,t,e,i)};Es.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Es.prototype.url=function(t,e){var i,n,r,o,a,s=(i=this.x,n=this.y,r=this.z,o=Ss(256*i,256*(n=Math.pow(2,r)-n-1),r),a=Ss(256*(i+1),256*(n+1),r),o[0]+","+o[1]+","+a[0]+","+a[1]),l=function(t,e,i){for(var n,r="",o=t;o>0;o--)r+=(e&(n=1<<o-1)?1:0)+(i&n?2:0);return r}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",s)};var Ps=function(t,e){this.wrap=t,this.canonical=e,this.key=Cs(t,e.z,e.x,e.y)},As=function(t,e,i,n,r){this.overscaledZ=t,this.wrap=e,this.canonical=new Es(i,+n,+r),this.key=Cs(e,t,n,r)};function Cs(t,e,i,n){(t*=2)<0&&(t=-1*t-1);var r=1<<e;return 32*(r*r*t+r*n+i)+e}As.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)},As.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t>this.canonical.z?new As(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new As(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},As.prototype.isChildOf=function(t){var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e},As.prototype.children=function(t){if(this.overscaledZ>=t)return[new As(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,i=2*this.canonical.x,n=2*this.canonical.y;return[new As(e,this.wrap,e,i,n),new As(e,this.wrap,e,i+1,n),new As(e,this.wrap,e,i,n+1),new As(e,this.wrap,e,i+1,n+1)]},As.prototype.isLessThan=function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))},As.prototype.wrapped=function(){return new As(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},As.prototype.unwrapTo=function(t){return new As(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},As.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},As.prototype.toUnwrapped=function(){return new Ps(this.wrap,this.canonical)},As.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},As.prototype.toCoordinate=function(){return new r(this.canonical.x+Math.pow(2,this.wrap),this.canonical.y,this.canonical.z)},Si("CanonicalTileID",Es),Si("OverscaledTileID",As,{omit:["posMatrix"]});var Ds=function(t,e,i){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(i&&"mapbox"!==i&&"terrarium"!==i)return b('"'+i+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');var n=this.dim=e.height;this.border=Math.max(Math.ceil(e.height/2),1),this.stride=this.dim+2*this.border,this.data=new Int32Array(this.stride*this.stride);for(var r=e.data,o="terrarium"===i?this._unpackTerrarium:this._unpackMapbox,a=0;a<n;a++)for(var s=0;s<n;s++){var l=4*(a*n+s);this.set(s,a,o(r[l],r[l+1],r[l+2]))}for(var u=0;u<n;u++)this.set(-1,u,this.get(0,u)),this.set(n,u,this.get(n-1,u)),this.set(u,-1,this.get(u,0)),this.set(u,n,this.get(u,n-1));this.set(-1,-1,this.get(0,0)),this.set(n,-1,this.get(n-1,0)),this.set(-1,n,this.get(0,n-1)),this.set(n,n,this.get(n-1,n-1))};Ds.prototype.set=function(t,e,i){this.data[this._idx(t,e)]=i+65536},Ds.prototype.get=function(t,e){return this.data[this._idx(t,e)]-65536},Ds.prototype._idx=function(t,e){if(t<-this.border||t>=this.dim+this.border||e<-this.border||e>=this.dim+this.border)throw new RangeError("out of range source coordinates for DEM data");return(e+this.border)*this.stride+(t+this.border)},Ds.prototype._unpackMapbox=function(t,e,i){return(256*t*256+256*e+i)/10-1e4}
1,Ds.prototype._unpackTerrarium=function(t,e,i){return 256*t+e+i/256-32768},Ds.prototype.getPixels=function(){return new Qr({width:this.dim+2*this.border,height:this.dim+2*this.border},new Uint8Array(this.data.buffer))},Ds.prototype.backfillBorder=function(t,e,i){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var n=e*this.dim,r=e*this.dim+this.dim,o=i*this.dim,a=i*this.dim+this.dim;switch(e){case-1:n=r-1;break;case 1:r=n+1}switch(i){case-1:o=a-1;break;case 1:a=o+1}for(var s=c(n,-this.border,this.dim+this.border),l=c(r,-this.border,this.dim+this.border),u=c(o,-this.border,this.dim+this.border),h=c(a,-this.border,this.dim+this.border),p=-e*this.dim,f=-i*this.dim,d=u;d<h;d++)for(var m=s;m<l;m++)this.set(m,d,t.get(m+p,d+f))},Si("DEMData",Ds);var Os=ln([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ms=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e<t.length;e++){var i=t[e];this._stringToNumber[i]=e,this._numberToString[e]=i}};Ms.prototype.encode=function(t){return this._stringToNumber[t]},Ms.prototype.decode=function(t){return this._numberToString[t]};var Is=function(t,e,i,n){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=i,t._y=n,this.properties=t.properties,null!=t.id&&(this.id=t.id)},zs={geometry:{configurable:!0}};zs.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},zs.geometry.set=function(t){this._geometry=t},Is.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t},Object.defineProperties(Is.prototype,zs);var Ls=function(){this.state={},this.stateChanges={}};Ls.prototype.updateState=function(t,e,i){var n=String(e);this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},h(this.stateChanges[t][n],i)},Ls.prototype.getState=function(t,e){var i=String(e),n=this.state[t]||{},r=this.stateChanges[t]||{};return h({},n[i],r[i])},Ls.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Ls.prototype.coalesceChanges=function(t,e){var i={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var r={};for(var o in this.stateChanges[n])this.state[n][o]||(this.state[n][o]={}),h(this.state[n][o],this.stateChanges[n][o]),r[o]=this.state[n][o];i[n]=r}if(this.stateChanges={},0!==Object.keys(i).length)for(var a in t)t[a].setFeatureState(i,e)};var Rs=function(t,e,i){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=e||new bi(dr,16,0),this.featureIndexArray=i||new Un};function Bs(t,e){return e-t}Rs.prototype.insert=function(t,e,i,n,r){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,n,r);for(var a=0;a<e.length;a++){for(var s=e[a],l=[1/0,1/0,-1/0,-1/0],u=0;u<s.length;u++){var c=s[u];l[0]=Math.min(l[0],c.x),l[1]=Math.min(l[1],c.y),l[2]=Math.max(l[2],c.x),l[3]=Math.max(l[3],c.y)}l[0]<dr&&l[1]<dr&&l[2]>=0&&l[3]>=0&&this.grid.insert(o,l[0],l[1],l[2],l[3])}},Rs.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new aa.VectorTile(new is(this.rawTileData)).layers,this.sourceLayerCoder=new Ms(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Rs.prototype.query=function(t,e,i){var n=this;this.loadVTLayers();for(var r=t.params||{},o=dr/t.tileSize/t.scale,a=Ze(r.filter),s=t.queryGeometry,l=t.queryPadding*o,u=1/0,c=1/0,h=-1/0,p=-1/0,f=0;f<s.length;f++)for(var d=s[f],m=0;m<d.length;m++){var y=d[m];u=Math.min(u,y.x),c=Math.min(c,y.y),h=Math.max(h,y.x),p=Math.max(p,y.y)}var v=this.grid.query(u-l,c-l,h+l,p+l);v.sort(Bs);for(var g,_={},b=function(l){var u=v[l];if(u!==g){g=u;var c=n.featureIndexArray.get(u),h=null;n.loadMatchingFeature(_,c.bucketIndex,c.sourceLayerIndex,c.featureIndex,a,r.layers,e,function(e,r){h||(h=yr(e));var a={};return e.id&&(a=i.getState(r.sourceLayer||"_geojsonTileLayer",e.id)),r.queryIntersectsFeature(s,e,a,h,n.z,t.transform,o,t.posMatrix)})}},x=0;x<v.length;x++)b(x);return _}
vendor: 4,099 bytes, line 1
1,Rs.prototype.loadMatchingFeature=function(t,e,i,n,r,o,a,s){var l=this.bucketLayerIDs[e];if(!o||function(t,e){for(var i=0;i<t.length;i++)if(e.indexOf(t[i])>=0)return!0;return!1}(o,l)){var u=this.sourceLayerCoder.decode(i),c=this.vtLayers[u].feature(n);if(r(new Ui(this.tileID.overscaledZ),c))for(var h=0;h<l.length;h++){var p=l[h];if(!(o&&o.indexOf(p)<0)){var f=a[p];if(f&&(!s||s(c,f))){var d=new Is(c,this.z,this.x,this.y);d.layer=f.serialize();var m=t[p];void 0===m&&(m=t[p]=[]),m.push({featureIndex:n,feature:d})}}}}},Rs.prototype.lookupSymbolFeatures=function(t,e,i,n,r,o){var a={};this.loadVTLayers();for(var s=Ze(n),l=0,u=t;l<u.length;l+=1){var c=u[l];this.loadMatchingFeature(a,e,i,c,s,r,o)}return a},Rs.prototype.hasLayer=function(t){for(var e=0,i=this.bucketLayerIDs;e<i.length;e+=1)for(var n=0,r=i[e];n<r.length;n+=1)if(t===r[n])return!0;return!1},Si("FeatureIndex",Rs,{omit:["rawTileData","sourceLayerCoder"]});var js=function(t,e){this.tileID=t,this.uid=f(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.expiredRequestCount=0,this.state="loading"};js.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e<E.now()||this.fadeEndTime&&e<this.fadeEndTime||(this.fadeEndTime=e)},js.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},js.prototype.loadVectorData=function(t,e,i){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){for(var n in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var i={};if(!e)return i;for(var n=0,r=t;n<r.length;n+=1){var o=r[n],a=o.layerIds.map(function(t){return e.getLayer(t)}).filter(Boolean);if(0!==a.length){o.layers=a,o.stateDependentLayers=a.filter(function(t){return t.isStateDependent()});for(var s=0,l=a;s<l.length;s+=1)i[l[s].id]=o}}return i}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var r=this.buckets[n];if(r instanceof La){if(this.hasSymbolBuckets=!0,!i)break;r.justReloaded=!0}}for(var o in this.queryPadding=0,this.buckets){var a=this.buckets[o];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(o).queryRadius(a))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Mn},js.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},js.prototype.unloadDEMData=function(){this.dem=null,this.neighboringTiles=null,this.state="unloaded"},js.prototype.getBucket=function(t){return this.buckets[t.id]},js.prototype.upload=function(t){for(var e in this.buckets){var i=this.buckets[e];i.uploadPending()&&i.upload(t)}var n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Qa(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Qa(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},js.prototype.queryRenderedFeatures=function(t,e,i,n,r,o,a,s){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,scale:n,tileSize:this.tileSize,posMatrix:s,transform:o,params:r,queryPadding:this.queryPadding*a},t,e):{}},js.prototype.querySourceFeatures=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData){var i=this.latestFeatureIndex.loadVTLayers(),n=e?e.sourceLayer:"",r=i._geojsonTileLayer||i[n];if(r)for(var o=Ze(e&&e.filter),a=this.tileID.canonical,s=a.z,l=a.x,u=a.y,c={z:s,x:l,y:u},h=0;h<r.length;h++){var p=r.feature(h);if(o(new Ui(this.tileID.overscaledZ),p)){var f=new Is(p,s,l,u);
1f.tile=c,t.push(f)}}}},js.prototype.clearMask=function(){this.segments&&(this.segments.destroy(),delete this.segments),this.maskedBoundsBuffer&&(this.maskedBoundsBuffer.destroy(),delete this.maskedBoundsBuffer),this.maskedIndexBuffer&&(this.maskedIndexBuffer.destroy(),delete this.maskedIndexBuffer)},js.prototype.setMask=function(t,e){if(!s(this.mask,t)&&(this.mask=t,this.clearMask(),!s(t,{0:!0}))){var i=new hn,n=new En;this.segments=new Hn,this.segments.prepareSegment(0,i,n);for(var r=Object.keys(t),a=0;a<r.length;a++){var l=t[r[a]],u=dr>>l.z,c=new o(l.x*u,l.y*u),h=new o(c.x+u,c.y+u),p=this.segments.prepareSegment(4,i,n);i.emplaceBack(c.x,c.y,c.x,c.y),i.emplaceBack(h.x,c.y,h.x,c.y),i.emplaceBack(c.x,h.y,c.x,h.y),i.emplaceBack(h.x,h.y,h.x,h.y);var f=p.vertexLength;n.emplaceBack(f,f+1,f+2),n.emplaceBack(f+1,f+2,f+3),p.vertexLength+=4,p.primitiveLength+=2}this.maskedBoundsBuffer=e.createVertexBuffer(i,Os.members),this.maskedIndexBuffer=e.createIndexBuffer(n)}},js.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},js.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},js.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var i=function(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(t,i,n,r){var o=n||r;return e[i]=!o||o.toLowerCase(),""}),e["max-age"]){var i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}(t.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),r=!1;if(this.expirationTime>n)r=!1;else if(e)if(this.expirationTime<e)r=!0;else{var o=this.expirationTime-e;o?this.expirationTime=n+Math.max(o,3e4):r=!0}else r=!0;r?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},js.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},js.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(t).length){var i=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets){var r=this.buckets[n],o=r.layers[0].sourceLayer||"_geojsonTileLayer",a=i[o],s=t[o];a&&s&&0!==Object.keys(s).length&&(r.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{}),e&&e.style&&(this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(n).queryRadius(r))))}}},js.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},js.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<E.now()},js.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},js.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=E.now()+t};var Fs={horizontal:1,vertical:2,horizontalOnly:3},Ns=function(){this.text="",this.sectionIndex=[],this.sections=[]};Ns.fromFeature=function(t,e){for(var i=new Ns,n=0;n<t.sections.length;n++){var r=t.sections[n];i.sections.push({scale:r.scale||1,fontStack:r.fontStack||e}),i.text+=r.text;for(var o=0;o<r.text.length;o++)i.sectionIndex.push(n)}return i},Ns.prototype.length=function(){return this.text.length},Ns.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Ns.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Ns.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",i=0;i<t.length;i++){var n=t.charCodeAt(i+1)||null,r=t.charCodeAt(i-1)||null;n&&zi(n)&&!Ea[t[i+1]]||r&&zi(r)&&!Ea[t[i-1]]||!Ea[t[i]]?e+=t[i]:e+=Ea[t[i]]}return e}(this.text)},Ns.prototype.trim=function(){for(var t=0,e=0;e<this.text.length&&Vs[this.text.charCodeAt(e)];e++)t++;for(var i=this.text.length,n=this.text.length-1;n>=0&&n>=t&&Vs[this.text.charCodeAt(n)];n--)i--;this.text=this.text.substring(t,i),this.sectionIndex=this.sectionIndex.slice(t,i)},Ns.prototype.substring=function(t,e){var i=new Ns;return i.text=this.text.substring(t,e),i.sectionIndex=this.sectionIndex.slice(t,e),i.sections=this.sections,i},Ns.prototype.toString=function(){return this.text},Ns.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce(function(e,i){return Math.max(e,t.sections[i].scale)}
1,0)};var Vs={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Us={};function qs(t,e,i,n){var r=Math.pow(t-e,2);return n?t<e?r/2:2*r:r+Math.abs(i)*i}function Ys(t,e){var i=0;return 10===t&&(i-=1e4),40!==t&&65288!==t||(i+=50),41!==e&&65289!==e||(i+=50),i}function Hs(t,e,i,n,r,o){for(var a=null,s=qs(e,i,r,o),l=0,u=n;l<u.length;l+=1){var c=u[l],h=qs(e-c.x,i,r,o)+c.badness;h<=s&&(a=c,s=h)}return{index:t,x:e,priorBreak:a,badness:s}}function Ws(t,e,i,n){if(!i)return[];if(!t)return[];for(var r,o=[],a=function(t,e,i,n){for(var r=0,o=0;o<t.length();o++){var a=t.getSection(o),s=n[a.fontStack],l=s&&s[t.getCharCode(o)];l&&(r+=l.metrics.advance*a.scale+e)}return r/Math.max(1,Math.ceil(r/i))}(t,e,i,n),s=0,l=0;l<t.length();l++){var u=t.getSection(l),c=t.getCharCode(l),h=n[u.fontStack],p=h&&h[c];p&&!Vs[c]&&(s+=p.metrics.advance*u.scale+e),l<t.length()-1&&(Us[c]||!((r=c)<11904)&&(Di["Bopomofo Extended"](r)||Di.Bopomofo(r)||Di["CJK Compatibility Forms"](r)||Di["CJK Compatibility Ideographs"](r)||Di["CJK Compatibility"](r)||Di["CJK Radicals Supplement"](r)||Di["CJK Strokes"](r)||Di["CJK Symbols and Punctuation"](r)||Di["CJK Unified Ideographs Extension A"](r)||Di["CJK Unified Ideographs"](r)||Di["Enclosed CJK Letters and Months"](r)||Di["Halfwidth and Fullwidth Forms"](r)||Di.Hiragana(r)||Di["Ideographic Description Characters"](r)||Di["Kangxi Radicals"](r)||Di["Katakana Phonetic Extensions"](r)||Di.Katakana(r)||Di["Vertical Forms"](r)||Di["Yi Radicals"](r)||Di["Yi Syllables"](r)))&&o.push(Hs(l+1,s,a,o,Ys(c,t.getCharCode(l+1)),!1))}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Hs(t.length(),s,a,o,0,!0))}function Gs(t){var e=.5,i=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:e,verticalAlign:i}}function Zs(t,e,i,n,r){if(r){var o=t[n],a=e[o.fontStack],s=a&&a[o.glyph];if(s)for(var l=s.metrics.advance*o.scale,u=(t[n].x+l)*r,c=i;c<=n;c++)t[c].x-=u}}Us[10]=!0,Us[32]=!0,Us[38]=!0,Us[40]=!0,Us[41]=!0,Us[43]=!0,Us[45]=!0,Us[47]=!0,Us[173]=!0,Us[183]=!0,Us[8203]=!0,Us[8208]=!0,Us[8211]=!0,Us[8231]=!0,t.createCommonjsModule=e,t.Point=o,t.window=self,t.browser=E,t.uuid=function(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()},t.validateUuid=function(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)},t.storageAvailable=function(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}},t.warnOnce=b,t.postData=function(t,e,i){var n=D(h(t,{method:"POST"}));return n.onerror=function(){i(new Error(n.statusText))},n.onload=function(){n.status>=200&&n.status<300?i(null,n.response):i(new C(n.statusText,n.status,t.url))},n.send(e),{cancel:function(){return n.abort()}}},t.getJSON=function(t,e){var i=D(t);return i.setRequestHeader("Accept","application/json"),i.onerror=function(){e(new Error(i.statusText))},i.onload=function(){if((i.status>=200&&i.status<300||0===i.status)&&i.response){var n;try{n=JSON.parse(i.response)}catch(t){return e(t)}e(null,n)}else 401===i.status&&t.url.match(/mapbox.com/)?e(new C(i.statusText+": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens",i.status,t.url)):e(new C(i.statusText,i.status,t.url))},i.send(),{cancel:function(){return i.abort()}}},t.getImage=function(t,e){return O(t,function(t,i){if(t)e(t);else if(i){var n=new self.Image,r=self.URL||self.webkitURL;n.onload=function(){e(null,n),r.revokeObjectURL(n.src)},n.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var o=new self.Blob([new Uint8Array(i.data)],{type:"image/png"});n.cacheControl=i.cacheControl,n.expires=i.expires,n.src=i.data.byteLength?r.createObjectURL(o):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}})}
vendor: 4,328 bytes, line 1
1,t.ResourceType=A,t.RGBAImage=Qr,t.potpack=Ha,t.ImagePosition=Wa,t.Texture=Qa,t.getArrayBuffer=O,t.parseGlyphPBF=function(t){return new is(t).readFields(bs,[])},t.isChar=Di,t.asyncAll=function(t,e,i){if(!t.length)return i(null,[]);var n=t.length,r=new Array(t.length),o=null;t.forEach(function(t,a){e(t,function(t,e){t&&(o=t),r[a]=e,0==--n&&i(o,r)})})},t.AlphaImage=$r,t.styleSpec=B,t.endsWith=m,t.extend=h,t.sphericalToCartesian=function(t){var e=t[0],i=t[1],n=t[2];return i+=90,i*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(i)*Math.sin(n),y:e*Math.sin(i)*Math.sin(n),z:e*Math.cos(n)}},t.Evented=R,t.validateStyle=mi,t.validateLight=yi,t.emitValidationErrors=_i,t.Color=ot,t.number=Dt,t.Properties=nn,t.Transitionable=Hi,t.Transitioning=Gi,t.PossiblyEvaluated=Ki,t.DataConstantProperty=Ji,t.uniqueId=f,t.Actor=ks,t.pick=function(t,e){for(var i={},n=0;n<e.length;n++){var r=e[n];r in t&&(i[r]=t[r])}return i},t.wrap=function(t,e,i){var n=i-e,r=((t-e)%n+n)%n+e;return r===e?i:r},t.clamp=c,t.Event=z,t.ErrorEvent=L,t.OverscaledTileID=As,t.EXTENT=dr,t.getCoordinatesCenter=function(t){for(var e=1/0,i=1/0,n=-1/0,o=-1/0,a=0;a<t.length;a++)e=Math.min(e,t[a].column),i=Math.min(i,t[a].row),n=Math.max(n,t[a].column),o=Math.max(o,t[a].row);var s=n-e,l=o-i,u=Math.max(s,l),c=Math.max(0,Math.floor(-Math.log(u)/Math.LN2));return new r((e+n)/2,(i+o)/2,0).zoomTo(c)},t.CanonicalTileID=Es,t.StructArrayLayout4i8=hn,t.rasterBoundsAttributes=Os,t.SegmentVector=Hn,t.getVideo=function(t,e){var i,n,r=self.document.createElement("video");r.muted=!0,r.onloadstart=function(){e(null,r)};for(var o=0;o<t.length;o++){var a=self.document.createElement("source");i=t[o],n=void 0,(n=self.document.createElement("a")).href=i,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&&(r.crossOrigin="Anonymous"),a.src=t[o],r.appendChild(a)}return{cancel:function(){}}},t.ValidationError=j,t.bindAll=d,t.isEqual=s,t.Tile=js,t.Coordinate=r,t.keysDifference=function(t,e){var i=[];for(var n in t)n in e||i.push(n);return i},t.SourceFeatureState=Ls,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.create=function(){var t=new Ir(16);return Ir!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.invert=function(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],f=e[11],d=e[12],m=e[13],y=e[14],v=e[15],g=i*s-n*a,_=i*l-r*a,b=i*u-o*a,x=n*l-r*s,w=n*u-o*s,T=r*u-o*l,k=c*m-h*d,S=c*y-p*d,E=c*v-f*d,P=h*y-p*m,A=h*v-f*m,C=p*v-f*y,D=g*C-_*A+b*P+x*E-w*S+T*k;return D?(D=1/D,t[0]=(s*C-l*A+u*P)*D,t[1]=(r*A-n*C-o*P)*D,t[2]=(m*T-y*w+v*x)*D,t[3]=(p*w-h*T-f*x)*D,t[4]=(l*E-a*C-u*S)*D,t[5]=(i*C-r*E+o*S)*D,t[6]=(y*b-d*T-v*_)*D,t[7]=(c*T-p*b+f*_)*D,t[8]=(a*A-s*E+u*k)*D,t[9]=(n*E-i*A-o*k)*D,t[10]=(d*w-m*b+v*g)*D,t[11]=(h*b-c*w-f*g)*D,t[12]=(s*S-a*P-l*k)*D,t[13]=(i*P-n*S+r*k)*D,t[14]=(m*_-d*x-y*g)*D,t[15]=(c*x-h*_+p*g)*D,t):null},t.multiply=function(t,e,i){var n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=e[9],f=e[10],d=e[11],m=e[12],y=e[13],v=e[14],g=e[15],_=i[0],b=i[1],x=i[2],w=i[3];return t[0]=_*n+b*s+x*h+w*m,t[1]=_*r+b*l+x*p+w*y,t[2]=_*o+b*u+x*f+w*v,t[3]=_*a+b*c+x*d+w*g,_=i[4],b=i[5],x=i[6],w=i[7],t[4]=_*n+b*s+x*h+w*m,t[5]=_*r+b*l+x*p+w*y,t[6]=_*o+b*u+x*f+w*v,t[7]=_*a+b*c+x*d+w*g,_=i[8],b=i[9],x=i[10],w=i[11],t[8]=_*n+b*s+x*h+w*m,t[9]=_*r+b*l+x*p+w*y,t[10]=_*o+b*u+x*f+w*v,t[11]=_*a+b*c+x*d+w*g,_=i[12],b=i[13],x=i[14],w=i[15],t[12]=_*n+b*s+x*h+w*m,t[13]=_*r+b*l+x*p+w*y,t[14]=_*o+b*u+x*f+w*v,t[15]=_*a+b*c+x*d+w*g,t},t.translate=function(t,e,i){var n=i[0],r=i[1],o=i[2],a=void 0,s=void 0,l=void 0,u=void 0,c=void 0,h=void 0,p=void 0,f=void 0,d=void 0,m=void 0,y=void 0,v=void 0;return e===t?(t[12]=e[0]*n+e[4]*r+e[8]*o+e[12],t[13]=e[1]*n+e[5]*r+e[9]*o+e[13],t[14]=e[2]*n+e[6]*r+e[10]*o+e[14],t[15]=e[3]*n+e[7]*r+e[11]*o+e[15]):(a=e[0],s=e[1],l=e[2],u=e[3],c=e[4],h=e[5],p=e[6],f=e[7],d=e[8],m=e[9],y=e[10],v=e[11],t[0]=a,t[1]=s,t[2]=l,t[3]=u,t[4]=c,t[5]=h,t[6]=p,t[7]=f,t[8]=d,t[9]=m,t[10]=y,t[11]=v,t[12]=a*n+c*r+d*o+e[12],t[13]=s*n+h*r+m*o+e[13],t[14]=l*n+p*r+y*o+e[14],t[15]=u*n+f*r+v*o+e[15]),t}
1,t.scale=function(t,e,i){var n=i[0],r=i[1],o=i[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.rotateX=function(t,e,i){var n=Math.sin(i),r=Math.cos(i),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*r+u*n,t[5]=a*r+c*n,t[6]=s*r+h*n,t[7]=l*r+p*n,t[8]=u*r-o*n,t[9]=c*r-a*n,t[10]=h*r-s*n,t[11]=p*r-l*n,t},t.rotateZ=function(t,e,i){var n=Math.sin(i),r=Math.cos(i),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r+u*n,t[1]=a*r+c*n,t[2]=s*r+h*n,t[3]=l*r+p*n,t[4]=u*r-o*n,t[5]=c*r-a*n,t[6]=h*r-s*n,t[7]=p*r-l*n,t},t.perspective=function(t,e,i,n,r){var o=1/Math.tan(e/2),a=void 0;return t[0]=o/i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=r&&r!==1/0?(a=1/(n-r),t[10]=(r+n)*a,t[14]=2*r*n*a):(t[10]=-1,t[14]=-2*n),t},t.ortho=function(t,e,i,n,r,o,a){var s=1/(e-i),l=1/(n-r),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+i)*s,t[13]=(r+n)*l,t[14]=(a+o)*u,t[15]=1,t},t.create$1=Vr,t.normalize=Ur,t.transformMat4=qr,t.forEach=Yr,t.getSizeData=Aa,t.evaluateSizeForFeature=function(t,e,i){var n=e;return"source"===t.functionType?i.lowerSize/256:"composite"===t.functionType?Dt(i.lowerSize/256,i.upperSize/256,n.uSizeT):n.uSize},t.evaluateSizeForZoom=function(t,e,i){if("constant"===t.functionType)return{uSizeT:0,uSize:t.layoutSize};if("source"===t.functionType)return{uSizeT:0,uSize:0};if("camera"===t.functionType){var n=t.propertyValue,r=t.zoomRange,o=t.sizeRange,a=c(Fe(n,i.specification).interpolationFactor(e,r.min,r.max),0,1);return{uSizeT:0,uSize:o.min+a*(o.max-o.min)}}var s=t.propertyValue,l=t.zoomRange;return{uSizeT:c(Fe(s,i.specification).interpolationFactor(e,l.min,l.max),0,1),uSize:0}},t.SIZE_PACK_FACTOR=256,t.addDynamicAttributes=Ma,t.properties=Ba,t.WritingMode=Fs,t.multiPolygonIntersectsBufferedPoint=_r,t.multiPolygonIntersectsMultiPolygon=br,t.multiPolygonIntersectsBufferedMultiLine=xr,t.polygonIntersectsPolygon=function(t,e){for(var i=0;i<t.length;i++)if(Ar(e,t[i]))return!0;for(var n=0;n<e.length;n++)if(Ar(t,e[n]))return!0;return!!Tr(t,e)},t.distToSegmentSquared=Er,t.SymbolInstanceArray=Rn,t.StyleLayer=rn,t.createStyleLayer=function(t){return"custom"===t.type?new qa(t):new Ya[t.type](t)},t.clone=g,t.filterObject=v,t.mapObject=y,t.registerForPluginAvailability=function(t){return ji?t({pluginURL:ji,completionCallback:Ri}):Ni.once("pluginAvailable",t),t},t.evented=Ni,t.ZoomHistory=Ci,t.validateCustomStyleLayer=function(t){var e=[],i=t.id;return void 0===i&&e.push({message:"layers."+i+': missing required property "id"'}),void 0===t.render&&e.push({message:"layers."+i+': missing required method "render"'}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:"layers."+i+': property "renderingMode" must be either "2d" or "3d"'}),e},t.createLayout=ln,t.ProgramConfiguration=cr,t.Uniform1i=Kn,t.Uniform1f=Jn,t.Uniform2f=$n,t.Uniform4f=tr,t.Uniform3f=Qn,t.UniformMatrix4f=nr,t.create$2=zr,t.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.create$3=Lr,t.length=Rr,t.fromValues=Br,t.normalize$1=function(t,e){var i=e[0],n=e[1],r=e[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.cross=function(t,e,i){var n=e[0],r=e[1],o=e[2],a=i[0],s=i[1],l=i[2];return t[0]=r*l-o*s,t[1]=o*a-n*l,t[2]=n*s-r*a,t},t.transformMat3=function(t,e,i){var n=e[0],r=e[1],o=e[2];return t[0]=n*i[0]+r*i[3]+o*i[6],t[1]=n*i[1]+r*i[4]+o*i[7],t[2]=n*i[2]+r*i[5]+o*i[8],t},t.len=Fr,t.forEach$1=Nr,t.UniformColor=er,t.StructArrayLayout2i4=cn,t.StructArrayLayout2ui4=Pn,t.StructArrayLayout3ui6=En,t.StructArrayLayout1ui2=An,t.UnwrappedTileID=Ps,t.create$4=function(){var t=new Ir(4);return Ir!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}
1,t.rotate=function(t,e,i){var n=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(i),l=Math.cos(i);return t[0]=n*l+o*s,t[1]=r*l+a*s,t[2]=n*-s+o*l,t[3]=r*-s+a*l,t},t.ease=u,t.bezier=l,t.EvaluationParameters=Ui,t.setRTLTextPlugin=function(t,e){if(Bi)throw new Error("setRTLTextPlugin cannot be called multiple times.");Bi=!0,ji=E.resolveURL(t),Ri=function(t){t?(Bi=!1,ji=null,e&&e(t)):Fi=!0},Ni.fire(new z("pluginAvailable",{pluginURL:ji,completionCallback:Ri}))},t.values=function(t){var e=[];for(var i in t)e.push(t[i]);return e},t.featureFilter=Ze,t.Anchor=Pa,t.GLYPH_PBF_BORDER=Ts,t.shapeText=function(t,e,i,n,r,o,a,s,l,u,c){var h=Ns.fromFeature(t,i);c===Fs.vertical&&h.verticalizePunctuation();var p,f=[],d={positionedGlyphs:f,text:h,top:l[1],bottom:l[1],left:l[0],right:l[0],writingMode:c},m=Vi.processBidirectionalText,y=Vi.processStyledBidirectionalText;if(m&&1===h.sections.length){p=[];for(var v=0,g=m(h.toString(),Ws(h,s,n,e));v<g.length;v+=1){var _=g[v],b=new Ns;b.text=_,b.sections=h.sections;for(var x=0;x<_.length;x++)b.sectionIndex.push(0);p.push(b)}}else if(y){p=[];for(var w=0,T=y(h.text,h.sectionIndex,Ws(h,s,n,e));w<T.length;w+=1){var k=T[w],S=new Ns;S.text=k[0],S.sectionIndex=k[1],S.sections=h.sections,p.push(S)}}else p=function(t,e){for(var i=[],n=t.text,r=0,o=0,a=e;o<a.length;o+=1){var s=a[o];i.push(t.substring(r,s)),r=s}return r<n.length&&i.push(t.substring(r,n.length)),i}(h,Ws(h,s,n,e));return function(t,e,i,n,r,o,a,s,l){for(var u=0,c=-17,h=0,p=t.positionedGlyphs,f="right"===o?1:"left"===o?0:.5,d=0,m=i;d<m.length;d+=1){var y=m[d];y.trim();var v=y.getMaxScale();if(y.length()){for(var g=p.length,_=0;_<y.length();_++){var b=y.getSection(_),x=y.getCharCode(_),w=24*(v-b.scale),T=e[b.fontStack],k=T&&T[x];k&&(Ii(x)&&a!==Fs.horizontal?(p.push({glyph:x,x:u,y:w,vertical:!0,scale:b.scale,fontStack:b.fontStack}),u+=l*b.scale+s):(p.push({glyph:x,x:u,y:c+w,vertical:!1,scale:b.scale,fontStack:b.fontStack}),u+=k.metrics.advance*b.scale+s))}if(p.length!==g){var S=u-s;h=Math.max(S,h),Zs(p,e,g,p.length-1,f)}u=0,c+=n*v}else c+=n}var E=Gs(r),P=E.horizontalAlign,A=E.verticalAlign;!function(t,e,i,n,r,o,a){for(var s=(e-i)*r,l=(-n*a+.5)*o,u=0;u<t.length;u++)t[u].x+=s,t[u].y+=l}(p,f,P,A,h,n,i.length);var C=c- -17;t.top+=-A*C,t.bottom=t.top+C,t.left+=-P*h,t.right=t.left+h}(d,e,p,r,o,a,c,s,u),!!f.length&&(d.text=d.text.toString(),d)},t.shapeIcon=function(t,e,i){var n=Gs(i),r=n.horizontalAlign,o=n.verticalAlign,a=e[0],s=e[1],l=a-t.displaySize[0]*r,u=l+t.displaySize[0],c=s-t.displaySize[1]*o;return{image:t,top:c,bottom:c+t.displaySize[1],left:l,right:u}},t.allowsVerticalWritingMode=Oi,t.allowsLetterSpacing=function(t){for(var e=0,i=t;e<i.length;e+=1)if(!Mi(i[e].charCodeAt(0)))return!1;return!0},t.classifyRings=zo,t.SymbolBucket=La,t.register=Si,t.FeatureIndex=Rs,t.CollisionBoxArray=Mn,t.DictionaryCoder=Ms,t.LineBucket=fa,t.FillBucket=jo,t.FillExtrusionBucket=Ho,t.ImageAtlas=Za,t.mvt=aa,t.Protobuf=is,t.DEMData=Ds,t.vectorTile=aa,t.Point$1=o,t.pbf=is,t.plugin=Vi}),n(0,function(t){function e(t){var i=typeof t;if("number"===i||"boolean"===i||"string"===i||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n="[",r=0,o=t;r<o.length;r+=1)n+=e(o[r])+",";return n+"]"}for(var a=Object.keys(t).sort(),s="{",l=0;l<a.length;l++)s+=JSON.stringify(a[l])+":"+e(t[a[l]])+",";return s+"}"}function i(i){for(var n="",r=0,o=t.refProperties;r<o.length;r+=1)n+="/"+e(i[o[r]]);return n}var n=function(t){t&&this.replace(t)};function r(t,e,i,n,r){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;s>-i/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;s<i/2;){var c=t[a-1],h=t[a],p=t[a+1];if(!p)return!1;var f=c.angleTo(h)-h.angleTo(p);for(f=Math.abs((f+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:f}),u+=f;s-l[0].distance>n;)u-=l.shift().angleDelta;if(u>r)return!1;a++,s+=h.dist(p)}return!0}function o(t){for(var e=0,i=0;i<t.length-1;i++)e+=t[i].dist(t[i+1]);return e}function a(t,e,i){return t?.6*e*i:0}function s(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function l(e,i,n,l,u,c){for(var h=a(n,u,c),p=s(n,l)*c,f=0,d=o(e)/2,m=0;m<e.length-1;m++){var y=e[m],v=e[m+1],g=y.dist(v);if(f+g>d){var _=(d-f)/g,b=t.number(y.x,v.x,_),x=t.number(y.y,v.y,_),w=new t.Anchor(b,x,v.angleTo(y),m);return w._round(),!h||r(e,w,p,h,i)?w:void 0}f+=g}}function u(e,i,n,l,u,c,h,p,f){var d=a(l,c,h),m=s(l,u),y=m*h,v=0===e[0].x||e[0].x===f||0===e[0].y||e[0].y===f;return i-y<i/4&&(i=y+i/4),function e(i,n,a,s,l,u,c,h,p){for(var f=u/2,d=o(i),m=0,y=n-a,v=[],g=0;g<i.length-1;g++){for(var _=i[g],b=i[g+1],x=_.dist(b),w=b.angleTo(_);y+a<m+x;){var T=((y+=a)-m)/x,k=t.number(_.x,b.x,T),S=t.number(_.y,b.y,T);if(k>=0&&k<p&&S>=0&&S<p&&y-f>=0&&y+f<=d){var E=new t.Anchor(k,S,w,g);E._round(),s&&!r(i,E,u,s,l)||v.push(E)}}m+=x}return h||v.length||c||(v=e(i,m/2,a,s,l,u,c,!0,p)),v}(e,v?i/2*p%i:(m/2+2*c)*h*p%i,i,d,n,y,v,!1,f)}n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var r=this,o=0,a=e;o<a.length;o+=1){var s=a[o];r._layerConfigs[s.id]=s;var l=r._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter)}for(var u=0,c=n;u<c.length;u+=1){var h=c[u];delete r._layerConfigs[h],delete r._layers[h]}this.familiesBySource={};for(var p=0,f=function(t){for(var e={},n=0;n<t.length;n++){var r=i(t[n]),o=e[r];o||(o=e[r]=[]),o.push(t[n])}var a=[];for(var s in e)a.push(e[s]);return a}(t.values(this._layerConfigs));p<f.length;p+=1){var d=f[p].map(function(t){return r._layers[t.id]}),m=d[0];if("none"!==m.visibility){var y=m.source||"",v=r.familiesBySource[y];v||(v=r.familiesBySource[y]={});var g=m.sourceLayer||"_geojsonTileLayer",_=v[g];_||(_=v[g]=[]),_.push(d)}}};var c=function(e,i,n,r,o,a,s,l,u,c,h,p){var f=s.top*l-u,d=s.bottom*l+u,m=s.left*l-u,y=s.right*l+u;if(this.boxStartIndex=e.length,c){var v=d-f,g=y-m;v>0&&(v=Math.max(10*l,v),this._addLineCollisionCircles(e,i,n,n.segment,g,v,r,o,a,h))}else{if(p){var _=new t.Point(m,f),b=new t.Point(y,f),x=new t.Point(m,d),w=new t.Point(y,d),T=p*Math.PI/180;_._rotate(T),b._rotate(T),x._rotate(T),w._rotate(T),m=Math.min(_.x,b.x,x.x,w.x),y=Math.max(_.x,b.x,x.x,w.x),f=Math.min(_.y,b.y,x.y,w.y),d=Math.max(_.y,b.y,x.y,w.y)}e.emplaceBack(n.x,n.y,m,f,y,d,r,o,a,0,0)}this.boxEndIndex=e.length};
vendor: 5,739 bytes, line 1
1c.prototype._addLineCollisionCircles=function(t,e,i,n,r,o,a,s,l,u){var c=o/2,h=Math.floor(r/c)||1,p=1+.4*Math.log(u)/Math.LN2,f=Math.floor(h*p/2),d=-o/2,m=i,y=n+1,v=d,g=-r/2,_=g-r/4;do{if(--y<0){if(v>g)return;y=0;break}v-=e[y].dist(m),m=e[y]}while(v>_);for(var b=e[y].dist(e[y+1]),x=-f;x<h+f;x++){var w=x*c,T=g+w;if(w<0&&(T+=w),w>r&&(T+=w-r),!(T<v)){for(;v+b<T;){if(v+=b,++y+1>=e.length)return;b=e[y].dist(e[y+1])}var k=T-v,S=e[y],E=e[y+1].sub(S)._unit()._mult(k)._add(S)._round(),P=Math.abs(T-d)<c?0:.8*(T-d);t.emplaceBack(E.x,E.y,-o/2,-o/2,o/2,o/2,a,s,l,o/2,P)}}};var h=f,p=f;function f(t,e){if(!(this instanceof f))return new f(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||d,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function d(t,e){return t<e?-1:t>e?1:0}function m(e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,l=e[0],u=0;u<l.length;u++){var c=l[u];(!u||c.x<r)&&(r=c.x),(!u||c.y<o)&&(o=c.y),(!u||c.x>a)&&(a=c.x),(!u||c.y>s)&&(s=c.y)}var p=a-r,f=s-o,d=Math.min(p,f),m=d/2,g=new h(null,y);if(0===d)return new t.Point(r,o);for(var _=r;_<a;_+=d)for(var b=o;b<s;b+=d)g.push(new v(_+m,b+m,m,e));for(var x=function(t){for(var e=0,i=0,n=0,r=t[0],o=0,a=r.length,s=a-1;o<a;s=o++){var l=r[o],u=r[s],c=l.x*u.y-u.x*l.y;i+=(l.x+u.x)*c,n+=(l.y+u.y)*c,e+=3*c}return new v(i/e,n/e,0,t)}(e),w=g.length;g.length;){var T=g.pop();(T.d>x.d||!x.d)&&(x=T,n&&console.log("found best %d after %d probes",Math.round(1e4*T.d)/1e4,w)),T.max-x.d<=i||(m=T.h/2,g.push(new v(T.p.x-m,T.p.y-m,m,e)),g.push(new v(T.p.x+m,T.p.y-m,m,e)),g.push(new v(T.p.x-m,T.p.y+m,m,e)),g.push(new v(T.p.x+m,T.p.y+m,m,e)),w+=4)}return n&&(console.log("num probes: "+w),console.log("best distance: "+x.d)),x.p}function y(t,e){return e.max-t.max}function v(e,i,n,r){this.p=new t.Point(e,i),this.h=n,this.d=function(e,i){for(var n=!1,r=1/0,o=0;o<i.length;o++)for(var a=i[o],s=0,l=a.length,u=l-1;s<l;u=s++){var c=a[s],h=a[u];c.y>e.y!=h.y>e.y&&e.x<(h.x-c.x)*(e.y-c.y)/(h.y-c.y)+c.x&&(n=!n),r=Math.min(r,t.distToSegmentSquared(e,c,h))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}f.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,i=this.compare,n=e[t];t>0;){var r=t-1>>1,o=e[r];if(i(n,o)>=0)break;e[t]=o,t=r}e[t]=n},_down:function(t){for(var e=this.data,i=this.compare,n=this.length>>1,r=e[t];t<n;){var o=1+(t<<1),a=o+1,s=e[o];if(a<this.length&&i(e[a],s)<0&&(o=a,s=e[a]),i(s,r)>=0)break;e[t]=s,t=o}e[t]=r}},h.default=p;var g=t.createCommonjsModule(function(t){t.exports=function(t,e){var i,n,r,o,a,s,l,u;for(i=3&t.length,n=t.length-i,r=e,a=3432918353,s=461845907,u=0;u<n;)l=255&t.charCodeAt(u)|(255&t.charCodeAt(++u))<<8|(255&t.charCodeAt(++u))<<16|(255&t.charCodeAt(++u))<<24,++u,r=27492+(65535&(o=5*(65535&(r=(r^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:r^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return r^=t.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}}),_=g,b=g,x=t.createCommonjsModule(function(t){t.exports=function(t,e){for(var i,n=t.length,r=e^n,o=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}});function w(e,i,n,r,o,a){e.createArrays();var s=512*e.overscaling;e.tilePixelRatio=t.EXTENT/s,e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,c={};if("composite"===e.textSizeData.functionType){var h=e.textSizeData.zoomRange,p=h.min,f=h.max;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new t.EvaluationParameters(p)),u["text-size"].possiblyEvaluate(new t.EvaluationParameters(f))]}if("composite"===e.iconSizeData.functionType){var d=e.iconSizeData.zoomRange,m=d.min,y=d.max;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new t.EvaluationParameters(m)),u["icon-size"].possiblyEvaluate(new t.EvaluationParameters(y))]}c.layoutTextSize=u["text-size"].possiblyEvaluate(new t.EvaluationParameters(e.zoom+1)),c.layoutIconSize=u["icon-size"].possiblyEvaluate(new t.EvaluationParameters(e.zoom+1)),c.textMaxSize=u["text-size"].possiblyEvaluate(new t.EvaluationParameters(18));for(var v=24*l.get("text-line-height"),g="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),_=l.get("text-keep-upright"),b=0,x=e.features;b<x.length;b+=1){var w=x[b],k=l.get("text-font").evaluate(w,{}).join(","),S=n,E={},P=w.text;if(P){var A=P.toString(),C=l.get("text-offset").evaluate(w,{}).map(function(t){return 24*t}),D=24*l.get("text-letter-spacing").evaluate(w,{}),O=t.allowsLetterSpacing(A)?D:0,M=l.get("text-anchor").evaluate(w,{}
1),I=l.get("text-justify").evaluate(w,{}),z="point"===l.get("symbol-placement")?24*l.get("text-max-width").evaluate(w,{}):0;E.horizontal=t.shapeText(P,i,k,z,v,M,I,O,C,24,t.WritingMode.horizontal),t.allowsVerticalWritingMode(A)&&g&&_&&(E.vertical=t.shapeText(P,i,k,z,v,M,I,O,C,24,t.WritingMode.vertical))}var L=void 0;if(w.icon){var R=r[w.icon];R&&(L=t.shapeIcon(o[w.icon],l.get("icon-offset").evaluate(w,{}),l.get("icon-anchor").evaluate(w,{})),void 0===e.sdfIcons?e.sdfIcons=R.sdf:e.sdfIcons!==R.sdf&&t.warnOnce("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),R.pixelRatio!==e.pixelRatio?e.iconsNeedLinear=!0:0!==l.get("icon-rotate").constantOr(1)&&(e.iconsNeedLinear=!0))}(E.horizontal||L)&&T(e,w,E,L,S,c)}a&&e.generateCollisionDebugBuffers()}function T(e,i,n,r,o,a){var s=a.layoutTextSize.evaluate(i,{}),h=a.layoutIconSize.evaluate(i,{}),p=a.textMaxSize.evaluate(i,{});void 0===p&&(p=s);var f=e.layers[0].layout,d=f.get("text-offset").evaluate(i,{}),y=f.get("icon-offset").evaluate(i,{}),v=s/24,g=e.tilePixelRatio*v,b=e.tilePixelRatio*p/24,x=e.tilePixelRatio*h,w=e.tilePixelRatio*f.get("symbol-spacing"),T=f.get("text-padding")*e.tilePixelRatio,P=f.get("icon-padding")*e.tilePixelRatio,A=f.get("text-max-angle")/180*Math.PI,C="map"===f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),D="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),O=f.get("symbol-placement"),M=w/2,I=function(s,l){l.x<0||l.x>=t.EXTENT||l.y<0||l.y>=t.EXTENT||function(e,i,n,r,o,a,s,l,u,h,p,f,d,m,y,v,g,b,x,w,T){var E,P,A=e.addToLineVertexArray(i,n),C=0,D=0,O=0,M=_(r.horizontal?r.horizontal.text:""),I=[];if(r.horizontal){var z=a.layout.get("text-rotate").evaluate(x,{});E=new c(s,n,i,l,u,h,r.horizontal,p,f,d,e.overscaling,z),D+=S(e,i,r.horizontal,a,d,x,m,A,r.vertical?t.WritingMode.horizontal:t.WritingMode.horizontalOnly,I,w,T),r.vertical&&(O+=S(e,i,r.vertical,a,d,x,m,A,t.WritingMode.vertical,I,w,T))}var L=E?E.boxStartIndex:e.collisionBoxArray.length,R=E?E.boxEndIndex:e.collisionBoxArray.length;if(o){var B=function(e,i,n,r,o,a){var s,l,u,c,h=i.image,p=n.layout,f=i.top-1/h.pixelRatio,d=i.left-1/h.pixelRatio,m=i.bottom+1/h.pixelRatio,y=i.right+1/h.pixelRatio;if("none"!==p.get("icon-text-fit")&&o){var v=y-d,g=m-f,_=p.get("text-size").evaluate(a,{})/24,b=o.left*_,x=o.right*_,w=o.top*_,T=x-b,k=o.bottom*_-w,S=p.get("icon-text-fit-padding")[0],E=p.get("icon-text-fit-padding")[1],P=p.get("icon-text-fit-padding")[2],A=p.get("icon-text-fit-padding")[3],C="width"===p.get("icon-text-fit")?.5*(k-g):0,D="height"===p.get("icon-text-fit")?.5*(T-v):0,O="width"===p.get("icon-text-fit")||"both"===p.get("icon-text-fit")?T:v,M="height"===p.get("icon-text-fit")||"both"===p.get("icon-text-fit")?k:g;s=new t.Point(b+D-A,w+C-S),l=new t.Point(b+D+E+O,w+C-S),u=new t.Point(b+D+E+O,w+C+P+M),c=new t.Point(b+D-A,w+C+P+M)}else s=new t.Point(d,f),l=new t.Point(y,f),u=new t.Point(y,m),c=new t.Point(d,m);var I=n.layout.get("icon-rotate").evaluate(a,{})*Math.PI/180;if(I){var z=Math.sin(I),L=Math.cos(I),R=[L,-z,z,L];s._matMult(R),l._matMult(R),c._matMult(R),u._matMult(R)}return[{tl:s,tr:l,bl:c,br:u,tex:h.paddedRect,writingMode:void 0,glyphOffset:[0,0]}]}(0,o,a,0,r.horizontal,x),j=a.layout.get("icon-rotate").evaluate(x,{});P=new c(s,n,i,l,u,h,o,y,v,!1,e.overscaling,j),C=4*B.length;var F=e.iconSizeData,N=null;"source"===F.functionType?(N=[t.SIZE_PACK_FACTOR*a.layout.get("icon-size").evaluate(x,{})])[0]>k&&t.warnOnce(e.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'):"composite"===F.functionType&&((N=[t.SIZE_PACK_FACTOR*T.compositeIconSizes[0].evaluate(x,{}),t.SIZE_PACK_FACTOR*T.compositeIconSizes[1].evaluate(x,{})])[0]>k||N[1]>k)&&t.warnOnce(e.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'),e.addSymbols(e.icon,B,N,b,g,x,!1,i,A.lineStartIndex,A.lineLength)}var V=P?P.boxStartIndex:e.collisionBoxArray.length,U=P?P.boxEndIndex:e.collisionBoxArray.length;e.glyphOffsetArray.length>=t.SymbolBucket.MAX_GLYPHS&&t.warnOnce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),e.symbolInstances.emplaceBack(i.x,i.y,I.length>0?I[0]:-1,I.length>1?I[1]:-1,M,L,R,V,U,l,D,O,C,0)}(e,l,s,n,r,e.layers[0],e.collisionBoxArray,i.index,i.sourceLayerIndex,e.index,g,T,C,d,x,P,D,y,i,o,a)};if("line"===O)for(var z=0,L=function(e,i,n,r,o){for(var a=[],s=0;s<e.length;s++)for(var l=e[s],u=void 0,c=0;c<l.length-1;c++){var h=l[c],p=l[c+1];h.x<0&&p.x<0||(h.x<0?h=new t.Point(0,h.y+(p.y-h.y)*((0-h.x)/(p.x-h.x)))._round():p.x<0&&(p=new t.Point(0,h.y+(p.y-h.y)*((0-h.x)/(p.x-h.x)))._round()),h.y<0&&p.y<0||(h.y<0?h=new t.Point(h.x+(p.x-h.x)*((0-h.y)/(p.y-h.y)),0)._round():p.y<0&&(p=new t.Point(h.x+(p.x-h.x)*((0-h.y)/(p.y-h.y)),0)._round()),h.x>=r&&p.x>=r||(h.x>=r?h=new t.Point(r,h.y+(p.y-h.y)*((r-h.x)/(p.x-h.x)))._round():p.x>=r&&(p=new t.Point(r,h.y+(p.y-h.y)*((r-h.x)/(p.x-h.x)))._round()),h.y>=o&&p.y>=o||(h.y>=o?h=new t.Point(h.x+(p.x-h.x)*((o-h.y)/(p.y-h.y)),o)._round():p.y>=o&&(p=new t.Point(h.x+(p.x-h.x)*((o-h.y)/(p.y-h.y)),o)._round()),u&&h.equals(u[u.length-1])||(u=[h],a.push(u)),u.push(p)))))}return a}(i.geometry,0,0,t.EXTENT,t.EXTENT);z<L.length;z+=1)for(var R=L[z],B=0,j=u(R,w,A,n.vertical||n.horizontal,r,24,b,e.overscaling,t.EXTENT);B<j.length;B+=1){var F=j[B],N=n.horizontal;
1N&&E(e,N.text,M,F)||I(R,F)}else if("line-center"===O)for(var V=0,U=i.geometry;V<U.length;V+=1){var q=U[V];if(q.length>1){var Y=l(q,A,n.vertical||n.horizontal,r,24,b);Y&&I(q,Y)}}else if("Polygon"===i.type)for(var H=0,W=t.classifyRings(i.geometry,0);H<W.length;H+=1){var G=W[H],Z=m(G,16);I(G[0],new t.Anchor(Z.x,Z.y,0))}else if("LineString"===i.type)for(var X=0,K=i.geometry;X<K.length;X+=1){var J=K[X];I(J,new t.Anchor(J[0].x,J[0].y,0))}else if("Point"===i.type)for(var $=0,Q=i.geometry;$<Q.length;$+=1)for(var tt=0,et=Q[$];tt<et.length;tt+=1){var it=et[tt];I([it],new t.Anchor(it.x,it.y,0))}}_.murmur3=b,_.murmur2=x;var k=65535;function S(e,i,n,r,o,a,s,l,u,c,h,p){var f=function(e,i,n,r,o,a){for(var s=n.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,l=n.layout.get("text-offset").evaluate(o,{}).map(function(t){return 24*t}),u=i.positionedGlyphs,c=[],h=0;h<u.length;h++){var p=u[h],f=a[p.fontStack],d=f&&f[p.glyph];if(d){var m=d.rect;if(m){var y=t.GLYPH_PBF_BORDER+1,v=d.metrics.advance*p.scale/2,g=r?[p.x+v,p.y]:[0,0],_=r?[0,0]:[p.x+v+l[0],p.y+l[1]],b=(d.metrics.left-y)*p.scale-v+_[0],x=(-d.metrics.top-y)*p.scale+_[1],w=b+m.w*p.scale,T=x+m.h*p.scale,k=new t.Point(b,x),S=new t.Point(w,x),E=new t.Point(b,T),P=new t.Point(w,T);if(r&&p.vertical){var A=new t.Point(-v,v),C=-Math.PI/2,D=new t.Point(5,0);k._rotateAround(C,A)._add(D),S._rotateAround(C,A)._add(D),E._rotateAround(C,A)._add(D),P._rotateAround(C,A)._add(D)}if(s){var O=Math.sin(s),M=Math.cos(s),I=[M,-O,O,M];k._matMult(I),S._matMult(I),E._matMult(I),P._matMult(I)}c.push({tl:k,tr:S,bl:E,br:P,tex:m,writingMode:i.writingMode,glyphOffset:g})}}}return c}(0,n,r,o,a,h),d=e.textSizeData,m=null;return"source"===d.functionType?(m=[t.SIZE_PACK_FACTOR*r.layout.get("text-size").evaluate(a,{})])[0]>k&&t.warnOnce(e.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'):"composite"===d.functionType&&((m=[t.SIZE_PACK_FACTOR*p.compositeTextSizes[0].evaluate(a,{}),t.SIZE_PACK_FACTOR*p.compositeTextSizes[1].evaluate(a,{})])[0]>k||m[1]>k)&&t.warnOnce(e.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'),e.addSymbols(e.text,f,m,s,o,a,u,i,l.lineStartIndex,l.lineLength),c.push(e.text.placedSymbolArray.length-1),4*f.length}function E(t,e,i,n){var r=t.compareText;if(e in r){for(var o=r[e],a=o.length-1;a>=0;a--)if(n.dist(o[a])<i)return!0}else r[e]=[];return r[e].push(n),!1}var P=function(e){var i={},n=[];for(var r in e){var o=e[r],a=i[r]={};for(var s in o){var l=o[+s];if(l&&0!==l.bitmap.width&&0!==l.bitmap.height){var u={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(u),a[s]={rect:u,metrics:l.metrics}}}}var c=t.potpack(n),h=c.w,p=c.h,f=new t.AlphaImage({width:h||1,height:p||1});for(var d in e){var m=e[d];for(var y in m){var v=m[+y];if(v&&0!==v.bitmap.width&&0!==v.bitmap.height){var g=i[d][y].rect;t.AlphaImage.copy(v.bitmap,f,{x:0,y:0},{x:g.x+1,y:g.y+1},v.bitmap)}}}this.image=f,this.positions=i};t.register("GlyphAtlas",P);var A=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming};function C(e,i){for(var n=new t.EvaluationParameters(i),r=0,o=e;r<o.length;r+=1)o[r].recalculate(n)}A.prototype.parse=function(e,i,n,r){var o=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var a=new t.DictionaryCoder(Object.keys(e.layers).sort()),s=new t.FeatureIndex(this.tileID);s.bucketLayerIDs=[];var l,u,c,h,p={},f={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{}},d=i.familiesBySource[this.source];for(var m in d){var y=e.layers[m];if(y){1===y.version&&t.warnOnce('Vector tile source "'+o.source+'" layer "'+m+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var v=a.encode(m),g=[],_=0;_<y.length;_++){var b=y.feature(_);g.push({feature:b,index:_,sourceLayerIndex:v})}for(var x=0,T=d[m];x<T.length;x+=1){var k=T[x],S=k[0];S.minzoom&&o.zoom<Math.floor(S.minzoom)||S.maxzoom&&o.zoom>=S.maxzoom||"none"!==S.visibility&&(C(k,o.zoom),(p[S.id]=S.createBucket({index:s.bucketLayerIDs.length,layers:k,zoom:o.zoom,pixelRatio:o.pixelRatio,overscaling:o.overscaling,collisionBoxArray:o.collisionBoxArray,sourceLayerIndex:v,sourceID:o.source})).populate(g,f),s.bucketLayerIDs.push(k.map(function(t){return t.id})))}}}var E=t.mapObject(f.glyphDependencies,function(t){return Object.keys(t).map(Number)});Object.keys(E).length?n.send("getGlyphs",{uid:this.uid,stacks:E},function(t,e){l||(l=t,u=e,O.call(o))}):u={};var A=Object.keys(f.iconDependencies);A.length?n.send("getImages",{icons:A},function(t,e){l||(l=t,c=e,O.call(o))}):c={};var D=Object.keys(f.patternDependencies);function O(){if(l)return r(l);if(u&&c&&h){var e=new P(u),i=new t.ImageAtlas(c,h);for(var n in p){var o=p[n];o instanceof t.SymbolBucket?(C(o.layers,this.zoom),w(o,u,e.positions,c,i.iconPositions,this.showCollisionBoxes)):o.hasPattern&&(o instanceof t.LineBucket||o 
1instanceof t.FillBucket||o instanceof t.FillExtrusionBucket)&&(C(o.layers,this.zoom),o.addFeatures(f,i.patternPositions))}this.status="done",r(null,{buckets:t.values(p).filter(function(t){return!t.isEmpty()}),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:i})}}D.length?n.send("getImages",{icons:D},function(t,e){l||(l=t,h=e,O.call(o))}):h={},O.call(this)};var D="undefined"!=typeof performance,O={getEntriesByName:function(t){return!!(D&&performance&&performance.getEntriesByName)&&performance.getEntriesByName(t)},mark:function(t){return!!(D&&performance&&performance.mark)&&performance.mark(t)},measure:function(t,e,i){return!!(D&&performance&&performance.measure)&&performance.measure(t,e,i)},clearMarks:function(t){return!!(D&&performance&&performance.clearMarks)&&performance.clearMarks(t)},clearMeasures:function(t){return!!(D&&performance&&performance.clearMeasures)&&performance.clearMeasures(t)}},M=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},O.mark(this._marks.start)};function I(e,i){var n=t.getArrayBuffer(e.request,function(e,n){e?i(e):n&&i(null,{vectorTile:new t.mvt.VectorTile(new t.Protobuf(n.data)),rawData:n.data,cacheControl:n.cacheControl,expires:n.expires})});return function(){n.cancel(),i()}}M.prototype.finish=function(){O.mark(this._marks.end);var t=O.getEntriesByName(this._marks.measure);return 0===t.length&&(O.measure(this._marks.measure,this._marks.start,this._marks.end),t=O.getEntriesByName(this._marks.measure),O.clearMarks(this._marks.start),O.clearMarks(this._marks.end),O.clearMeasures(this._marks.measure)),t},O.Performance=M;var z=function(t,e,i){this.actor=t,this.layerIndex=e,this.loadVectorData=i||I,this.loading={},this.loaded={}};z.prototype.loadTile=function(e,i){var n=this,r=e.uid;this.loading||(this.loading={});var o=!!(e&&e.request&&e.request.collectResourceTiming)&&new O.Performance(e.request),a=this.loading[r]=new A(e);a.abort=this.loadVectorData(e,function(e,s){if(delete n.loading[r],e||!s)return a.status="done",n.loaded[r]=a,i(e);var l=s.rawData,u={};s.expires&&(u.expires=s.expires),s.cacheControl&&(u.cacheControl=s.cacheControl);var c={};if(o){var h=o.finish();h&&(c.resourceTiming=JSON.parse(JSON.stringify(h)))}a.vectorTile=s.vectorTile,a.parse(s.vectorTile,n.layerIndex,n.actor,function(e,n){if(e||!n)return i(e);i(null,t.extend({rawTileData:l.slice(0)},n,u,c))}),n.loaded=n.loaded||{},n.loaded[r]=a})},z.prototype.reloadTile=function(t,e){var i=this.loaded,n=t.uid,r=this;if(i&&i[n]){var o=i[n];o.showCollisionBoxes=t.showCollisionBoxes;var a=function(t,i){var n=o.reloadCallback;n&&(delete o.reloadCallback,o.parse(o.vectorTile,r.layerIndex,r.actor,n)),e(t,i)};"parsing"===o.status?o.reloadCallback=a:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.actor,a):a())}},z.prototype.abortTile=function(t,e){var i=this.loading,n=t.uid;i&&i[n]&&i[n].abort&&(i[n].abort(),delete i[n]),e()},z.prototype.removeTile=function(t,e){var i=this.loaded,n=t.uid;i&&i[n]&&delete i[n],e()};var L=function(){this.loaded={}};L.prototype.loadTile=function(e,i){var n=e.uid,r=e.encoding,o=e.rawImageData,a=new t.DEMData(n,o,r);this.loaded=this.loaded||{},this.loaded[n]=a,i(null,a)},L.prototype.removeTile=function(t){var e=this.loaded,i=t.uid;e&&e[i]&&delete e[i]};var R={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:6356752.3142};function B(t){var e=0;if(t&&t.length>0){e+=Math.abs(j(t[0]));for(var i=1;i<t.length;i++)e-=Math.abs(j(t[i]))}return e}function j(t){var e,i,n,r,o,a,s=0,l=t.length;if(l>2){for(a=0;a<l;a++)a===l-2?(n=l-2,r=l-1,o=0):a===l-1?(n=l-1,r=0,o=1):(n=a,r=a+1,o=a+2),e=t[n],i=t[r],s+=(F(t[o][0])-F(e[0]))*Math.sin(F(i[1]));s=s*R.RADIUS*R.RADIUS/2}return s}function F(t){return t*Math.PI/180}var N={geometry:function t(e){var i,n=0;switch(e.type){case"Polygon":return B(e.coordinates);case"MultiPolygon":for(i=0;i<e.coordinates.length;i++)n+=B(e.coordinates[i]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(i=0;i<e.geometries.length;i++)n+=t(e.geometries[i]);return n}},ring:j};function V(t,e){return function(i){return t(i,e)}}function U(t,e){e=!!e,t[0]=q(t[0],e);for(var i=1;i<t.length;i++)t[i]=q(t[i],!e);return t}function q(t,e){return function(t){return N.ring(t)>=0}(t)===e?t:t.reverse()}var Y=t.mvt.VectorTileFeature.prototype.toGeoJSON,H=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=p
vendor: 6,229 bytes, line 1
1arseInt(e.id,10))};H.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],i=0,n=this._feature.geometry;i<n.length;i+=1){var r=n[i];e.push([new t.Point(r[0],r[1])])}return e}for(var o=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var l=[],u=0,c=s[a];u<c.length;u+=1){var h=c[u];l.push(new t.Point(h[0],h[1]))}o.push(l)}return o},H.prototype.toGeoJSON=function(t,e,i){return Y.call(this,t,e,i)};var W=function(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e};W.prototype.feature=function(t){return new H(this._features[t])};var G=t.vectorTile.VectorTileFeature,Z=X;function X(t,e){this.options=e||{},this.features=t,this.length=t.length}function K(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}X.prototype.feature=function(t){return new K(this.features[t],this.options.extent)},K.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var i=0;i<e.length;i++){for(var n=e[i],r=[],o=0;o<n.length;o++)r.push(new t.Point$1(n[o][0],n[o][1]));this.geometry.push(r)}return this.geometry},K.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,i=-1/0,n=1/0,r=-1/0,o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.length;s++){var l=a[s];e=Math.min(e,l.x),i=Math.max(i,l.x),n=Math.min(n,l.y),r=Math.max(r,l.y)}return[e,n,i,r]},K.prototype.toGeoJSON=G.prototype.toGeoJSON;var J=tt,$=tt,Q=Z;function tt(e){var i=new t.pbf;return function(t,e){for(var i in t.layers)e.writeMessage(3,et,t.layers[i])}(e,i),i.finish()}function et(t,e){var i;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(i=0;i<t.length;i++)n.feature=t.feature(i),e.writeMessage(2,it,n);var r=n.keys;for(i=0;i<r.length;i++)e.writeStringField(3,r[i]);var o=n.values;for(i=0;i<o.length;i++)e.writeMessage(4,st,o[i])}function it(t,e){var i=t.feature;void 0!==i.id&&e.writeVarintField(1,i.id),e.writeMessage(2,nt,t),e.writeVarintField(3,i.type),e.writeMessage(4,at,i)}function nt(t,e){var i=t.feature,n=t.keys,r=t.values,o=t.keycache,a=t.valuecache;for(var s in i.properties){var l=o[s];void 0===l&&(n.push(s),l=n.length-1,o[s]=l),e.writeVarint(l);var u=i.properties[s],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var h=c+":"+u,p=a[h];void 0===p&&(r.push(u),p=r.length-1,a[h]=p),e.writeVarint(p)}}function rt(t,e){return(e<<3)+(7&t)}function ot(t){return t<<1^t>>31}function at(t,e){for(var i=t.loadGeometry(),n=t.type,r=0,o=0,a=i.length,s=0;s<a;s++){var l=i[s],u=1;1===n&&(u=l.length),e.writeVarint(rt(1,u));for(var c=3===n?l.length-1:l.length,h=0;h<c;h++){1===h&&1!==n&&e.writeVarint(rt(2,c-1));var p=l[h].x-r,f=l[h].y-o;e.writeVarint(ot(p)),e.writeVarint(ot(f)),r+=p,o+=f}3===n&&e.writeVarint(rt(7,1))}}function st(t,e){var i=typeof t;"string"===i?e.writeStringField(1,t):"boolean"===i?e.writeBooleanField(7,t):"number"===i&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function lt(t,e,i,n){ut(t,i,n),ut(e,2*i,2*n),ut(e,2*i+1,2*n+1)}function ut(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function ct(t,e,i,n){var r=t-i,o=e-n;return r*r+o*o}function ht(t,e,i,n,r){return new pt(t,e,i,n,r)}function pt(t,e,i,n,r){e=e||ft,i=i||dt,r=r||Array,this.nodeSize=n||64,this.points=t,this.ids=new r(t.length),this.coords=new r(2*t.length);for(var o=0;o<t.length;o++)this.ids[o]=o,this.coords[2*o]=e(t[o]),this.coords[2*o+1]=i(t[o]);!function t(e,i,n,r,o,a){if(!(o-r<=n)){var s=Math.floor((r+o)/2);!function t(e,i,n,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=n-r+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(e,i,n,Math.max(r,Math.floor(n-l*c/s+h)),Math.min(o,Math.floor(n+(s-l)*c/s+h)),a)}var p=i[2*n+a],f=r,d=o;for(lt(e,i,r,n),i[2*o+a]>p&&lt(e,i,r,o);f<d;){for(lt(e,i,f,d),f++,d--;i[2*f+a]<p;)f++;for(;i[2*d+a]>p;)d--}i[2*r+a]===p?lt(e,i,r,d):lt(e,i,++d,o),d<=n&&(r=d+1),n<=d&&(o=d-1)}}(e,i,s,r,o,a%2),t(e,i,n,r,s-1,a+1),t(e,i,n,s+1,o,a+1)}}(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function ft(t){return t[0]}function dt(t){return t[1]}function mt(t){this.options=xt(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function yt(t,e,i,n,r){return{x:t,y:e,zoom:1/0,id:i,parentId:-1,numPoints:n,properties:r}}function vt(t){return{type:"Feature",id:t.id,properties:gt(t),geometry:{type:"Point",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,i=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(i))/Math.PI-90)]}};var e,i,n}function gt(t){var e=t.numPoints,i=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return xt(xt({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:i})}function _t(t){return t/360+.5}function bt(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:i>1?1:i}function xt(t,e){for(var i in e)t[i]=e[i];return t}function wt(t){return t.x}function Tt(t){return t.y}function kt(t,e,i,n,r,o){var a=r-i,s=o-n;if(0!==a||0!==s){var l=((t-i)*a+(e-n)*s)/(a*a+s*s);l>1?(i=r,n=o):l>0&&(i+=a*l,n+=s*l)}return(a=t-i)*a+(s=e-n)*s}function St(t,e,i,n){var r={id:void 0===t?null:t,type:e,geometry:i,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,i=t.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)Et(t,e);else if("Polygon"===i||"MultiLineString"===i)for(var n=0;n<e.length;n++)Et(t,e[n]);else if("MultiPolygon"===i)for(n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++)Et(t,e[n][r])}(r),r}function Et(t,e){for(var i=0;i<e.length;i+=3)t.minX=Math.min(t.minX,e[i]),t.minY=Math.min(t.minY,e[i+1]),t.maxX=Math.max(t.maxX,e[i]),t.maxY=Math.max(t.maxY,e[i+1])}function Pt(t,e,i,n){if(e.geometry){var r=e.geometry.coordinates,o=e.geometry.type,a=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),s=[],l=e.id;if(i.promoteId?l=e.properties[i.promoteId]:i.generateId&&(l=n||0),"Point"===o)At(r,s);else if("MultiPoint"===o)for(var u=0;u<r.length;u++)At(r[u],s);else if("LineString"===o)Ct(r,s,a,!1);else if("MultiLineString"===o){if(i.lineMetrics){for(u=0;
vendor: 10,358 bytes, line 1
1u<r.length;u++)s=[],Ct(r[u],s,a,!1),t.push(St(l,"LineString",s,e.properties));return}Dt(r,s,a,!1)}else if("Polygon"===o)Dt(r,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(u=0;u<e.geometry.geometries.length;u++)Pt(t,{id:l,geometry:e.geometry.geometries[u],properties:e.properties},i,n);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<r.length;u++){var c=[];Dt(r[u],c,a,!0),s.push(c)}}t.push(St(l,o,s,e.properties))}}function At(t,e){e.push(Ot(t[0])),e.push(Mt(t[1])),e.push(0)}function Ct(t,e,i,n){for(var r,o,a=0,s=0;s<t.length;s++){var l=Ot(t[s][0]),u=Mt(t[s][1]);e.push(l),e.push(u),e.push(0),s>0&&(a+=n?(r*u-l*o)/2:Math.sqrt(Math.pow(l-r,2)+Math.pow(u-o,2))),r=l,o=u}var c=e.length-3;e[2]=1,function t(e,i,n,r){for(var o,a=r,s=n-i>>1,l=n-i,u=e[i],c=e[i+1],h=e[n],p=e[n+1],f=i+3;f<n;f+=3){var d=kt(e[f],e[f+1],u,c,h,p);if(d>a)o=f,a=d;else if(d===a){var m=Math.abs(f-s);m<l&&(o=f,l=m)}}a>r&&(o-i>3&&t(e,i,o,r),e[o+2]=a,n-o>3&&t(e,o,n,r))}(e,0,c,i),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function Dt(t,e,i,n){for(var r=0;r<t.length;r++){var o=[];Ct(t[r],o,i,n),e.push(o)}}function Ot(t){return t/360+.5}function Mt(t){var e=Math.sin(t*Math.PI/180),i=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return i<0?0:i>1?1:i}function It(t,e,i,n,r,o,a,s){if(n/=e,o>=(i/=e)&&a<n)return t;if(a<i||o>=n)return null;for(var l=[],u=0;u<t.length;u++){var c=t[u],h=c.geometry,p=c.type,f=0===r?c.minX:c.minY,d=0===r?c.maxX:c.maxY;if(f>=i&&d<n)l.push(c);else if(!(d<i||f>=n)){var m=[];if("Point"===p||"MultiPoint"===p)zt(h,m,i,n,r);else if("LineString"===p)Lt(h,m,i,n,r,!1,s.lineMetrics);else if("MultiLineString"===p)Bt(h,m,i,n,r,!1);else if("Polygon"===p)Bt(h,m,i,n,r,!0);else if("MultiPolygon"===p)for(var y=0;y<h.length;y++){var v=[];Bt(h[y],v,i,n,r,!0),v.length&&m.push(v)}if(m.length){if(s.lineMetrics&&"LineString"===p){for(y=0;y<m.length;y++)l.push(St(c.id,p,m[y],c.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===m.length?(p="LineString",m=m[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===m.length?"Point":"MultiPoint"),l.push(St(c.id,p,m,c.tags))}}}return l.length?l:null}function zt(t,e,i,n,r){for(var o=0;o<t.length;o+=3){var a=t[o+r];a>=i&&a<=n&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function Lt(t,e,i,n,r,o,a){for(var s,l,u=Rt(t),c=0===r?Ft:Nt,h=t.start,p=0;p<t.length-3;p+=3){var f=t[p],d=t[p+1],m=t[p+2],y=t[p+3],v=t[p+4],g=0===r?f:d,_=0===r?y:v,b=!1;a&&(s=Math.sqrt(Math.pow(f-y,2)+Math.pow(d-v,2))),g<i?_>=i&&(l=c(u,f,d,y,v,i),a&&(u.start=h+s*l)):g>=n?_<n&&(l=c(u,f,d,y,v,n),a&&(u.start=h+s*l)):jt(u,f,d,m),_<i&&g>=i&&(l=c(u,f,d,y,v,i),b=!0),_>n&&g<=n&&(l=c(u,f,d,y,v,n),b=!0),!o&&b&&(a&&(u.end=h+s*l),e.push(u),u=Rt(t)),a&&(h+=s)}var x=t.length-3;f=t[x],d=t[x+1],m=t[x+2],(g=0===r?f:d)>=i&&g<=n&&jt(u,f,d,m),x=u.length-3,o&&x>=3&&(u[x]!==u[0]||u[x+1]!==u[1])&&jt(u,u[0],u[1],u[2]),u.length&&e.push(u)}function Rt(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function Bt(t,e,i,n,r,o){for(var a=0;a<t.length;a++)Lt(t[a],e,i,n,r,o,!1)}function jt(t,e,i,n){t.push(e),t.push(i),t.push(n)}function Ft(t,e,i,n,r,o){var a=(o-e)/(n-e);return t.push(o),t.push(i+(r-i)*a),t.push(1),a}function Nt(t,e,i,n,r,o){var a=(o-i)/(r-i);return t.push(e+(n-e)*a),t.push(o),t.push(1),a}function Vt(t,e){for(var i=[],n=0;n<t.length;n++){var r,o=t[n],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)r=Ut(o.geometry,e);else if("MultiLineString"===a||"Polygon"===a){r=[];for(var s=0;s<o.geometry.length;s++)r.push(Ut(o.geometry[s],e))}else if("MultiPolygon"===a)for(r=[],s=0;s<o.geometry.length;s++){for(var l=[],u=0;u<o.geometry[s].length;u++)l.push(Ut(o.geometry[s][u],e));r.push(l)}i.push(St(o.id,a,r,o.tags))}return i}function Ut(t,e){var i=[];i.size=t.size,void 0!==t.start&&(i.start=t.start,i.end=t.end);for(var n=0;n<t.length;n+=3)i.push(t[n]+e,t[n+1],t[n+2]);return i}function qt(t,e){if(t.transformed)return t;var i,n,r,o=1<<t.z,a=t.x,s=t.y;for(i=0;i<t.features.length;i++){var l=t.features[i],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(n=0;n<u.length;n+=2)l.geometry.push(Yt(u[n],u[n+1],e,o,a,s));else for(n=0;n<u.length;n++){var h=[];for(r=0;r<u[n].length;r+=2)h.push(Yt(u[n][r],u[n][r+1],e,o,a,s));l.geometry.push(h)}}return t.transformed=!0,t}function Yt(t,e,i,n,r,o){return[Math.round(i*(t*n-r)),Math.round(i*(e*n-o))]}function Ht(t,e,i,n,r){for(var o=e===r.maxZoom?0:r.tolerance/((1<<e)*r.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:i,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,Wt(a,t[s],o,r);var l=t[s].minX,u=t[s].minY,c=t[s].maxX,h=t[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),c>a.maxX&&(a.maxX=c),h>a.maxY&&(a.maxY=h)}return a}function Wt(t,e,i,n){var r=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<r.length;s+=3)a.push(r[s]),a.push(r[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)Gt(a,r,t,i,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<r.length;s++)Gt(a,r[s],t,i,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l<r.length;l++){var u=r[l];for(s=0;s<u.length;s++)Gt(a,u[s],t,i,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===o&&n.lineMetrics){for(var h in c={},e.tags)c[h]=e.tags[h];c.mapbox_clip_start=r.start/r.size,c.mapbox_clip_end=r.end/r.size}var p={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&&(p.id=e.id),t.features.push(p)}}function Gt(t,e,i,n,r,o){var a=n*n;if(n>0&&e.size<(r?a:n))i.numPoints+=e.length/3;else{for(var s=[],l=0;l<e.length;l+=3)(0===n||e[l+2]>a)&&(i.numSimplified++,s.push(e[l]),s.push(e[l+1])),i.numPoints++;r&&function(t,e){for(var i=0,n=0,r=t.length,o=r-2;n<r;o=n,n+=2)i+=(t[n]-t[o])*(t[n+1]+t[o+1]);if(i>0===e)for(n=0,r=t.length;n<r/2;n+=2){var a=t[n],s=t[n+1];t[n]=t[r-2-n],t[n+1]=t[r-1-n],t[r-2-n]=a,t[r-1-n]=s}}(s,o),t.push(s)}}function Zt(t,e){var i=(e=this.options=function(t,e){for(var i in e)t[i]=e[i];return t}(Object.create(this.options),e)).debug;if(i&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=function(t,e){var i=[];if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)Pt(i,t.features[n],e,n);else"Feature"===t.type?Pt(i,t,e):Pt(i,{geometry:t},e);return i}(t,e);this.tiles={},this.tileCoords=[],i&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(n=function(t,e){var i=e.buffer/e.extent,n=t,r=It(t,1,-1-i,i,0,-1,2,e),o=It(t,1,1-i,2+i,0,-1,2,e);return(r||o)&&(n=It(t,1,-i,1+i,0,-1,2,e)||[],r&&(n=Vt(r,1).concat(n)),o&&(n=n.concat(Vt(o,-1)))),n}(n,e)).length&&this.splitTile(n,0,0,0),i&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Xt(t,e,i){return 32*((1<<t)*i+e)+t}function Kt(t,e){var i=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(i.z,i.x,i.y);if(!n)return e(null,null);var r=new W(n.features),o=J(r);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{vectorTile:r,rawData:o.buffer})}J.fromVectorTileJs=$,J.fromGeojsonVt=function(t,e){e=e||{};var i={};for(var n in t)i[n]=new Z(t[n].features,e),i[n].name=n,i[n].version=e.version,i[n].extent=e.extent;return tt({layers:i})},J.GeoJSONWrapper=Q,pt.prototype={range:function(t,e,i,n){return function(t,e,i,n,r,o,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var h=u.pop(),p=u.pop(),f=u.pop();if(p-f<=a)for(var d=f;d<=p;d++)s=e[2*d],l=e[2*d+1],s>=i&&s<=r&&l>=n&&l<=o&&c.push(t[d]);else{var m=Math.floor((f+p)/2);s=e[2*m],l=e[2*m+1],s>=i&&s<=r&&l>=n&&l<=o&&c.push(t[m]);var y=(h+1)%2;(0===h?i<=s:n<=l)&&(u.push(f),u.push(m-1),u.push(y)),(0===h?r>=s:o>=l)&&(u.push(m+1),u.push(p),u.push(y))}}return c}(this.ids,this.coords,t,e,i,n,this.nodeSize)},within:function(t,e,i){return function(t,e,i,n,r,o){for(var a=[0,t.length-1,0],s=[],l=r*r;a.length;){var u=a.pop(),c=a.pop(),h=a.pop();if(c-h<=o)for(var p=h;p<=c;p++)ct(e[2*p],e[2*p+1],i,n)<=l&&s.push(t[p]);else{var f=Math.floor((h+c)/2),d=e[2*f],m=e[2*f+1];ct(d,m,i,n)<=l&&s.push(t[f]);var y=(u+1)%2;(0===u?i-r<=d:n-r<=m)&&(a.push(h),a.push(f-1),a.push(y)),(0===u?i+r>=d:n+r>=m)&&(a.push(f+1),a.push(c),a.push(y))}}return s}(this.ids,this.coords,t,e,i,this.nodeSize)}},mt.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time("total time");var i="prepare "+t.length+" points";e&&console.time(i),this.points=t;for(var n,r,o=[],a=0;a<t.length;a++)t[a].geometry&&o.push((n=a,{x:_t((r=t[a].geometry.coordinates)[0]),y:bt(r[1]),zoom:1/0,index:n,parentId:-1}));this.trees[this.options.maxZoom+1]=ht(o,wt,Tt,this.options.nodeSize,Float32Array),e&&console.timeEnd(i);for(var s=this.options.maxZoom;s>=this.options.minZoom;s--){var l=+Date.now();o=this._cluster(o,s),this.trees[s]=ht(o,wt,Tt,this.options.nodeSize,Float32Array),e&&console.log("z%d: %d clusters in %dms",s,o.length,+Date.now()-l)}return e&&console.timeEnd("total time"),this},getClusters:function(t,e){var i=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),r=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)i=-180,r=180;else if(i>r){var a=this.getClusters([i,n,180,o],e),s=this.getClusters([-180,n,r,o],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=l.range(_t(i),bt(o),_t(r),bt(n)),c=[],h=0;h<u.length;h++){var p=l.points[u[h]];c.push(p.numPoints?vt(p):this.points[p.index])}return c},getChildren:function(t){var e=t>>5,i=t%32,n="No cluster with the specified id.",r=this.trees[i];if(!r)throw new Error(n);var o=r.points[e];if(!o)throw new Error(n);for(var a=this.options.radius/(this.options.extent*Math.pow(2,i-1)),s=r.within(o.x,o.y,a),l=[],u=0;u<s.length;u++){var c=r.points[s[u]];c.parentId===t&&l.push(c.numPoints?vt(c):this.points[c.index])}if(0===l.length)throw new Error(n);return l}
1,getLeaves:function(t,e,i){e=e||10,i=i||0;var n=[];return this._appendLeaves(n,t,e,i,0),n},getTile:function(t,e,i){var n=this.trees[this._limitZoom(t)],r=Math.pow(2,t),o=this.options.extent,a=this.options.radius/o,s=(i-a)/r,l=(i+1+a)/r,u={features:[]};return this._addTileFeatures(n.range((e-a)/r,s,(e+1+a)/r,l),n.points,e,i,r,u),0===e&&this._addTileFeatures(n.range(1-a/r,s,1,l),n.points,r,i,r,u),e===r-1&&this._addTileFeatures(n.range(0,s,a/r,l),n.points,-1,i,r,u),u.features.length?u:null},getClusterExpansionZoom:function(t){for(var e=t%32-1;e<this.options.maxZoom;){var i=this.getChildren(t);if(e++,1!==i.length)break;t=i[0].properties.cluster_id}return e},_appendLeaves:function(t,e,i,n,r){for(var o=this.getChildren(e),a=0;a<o.length;a++){var s=o[a].properties;if(s&&s.cluster?r+s.point_count<=n?r+=s.point_count:r=this._appendLeaves(t,s.cluster_id,i,n,r):r<n?r++:t.push(o[a]),t.length===i)break}return r},_addTileFeatures:function(t,e,i,n,r,o){for(var a=0;a<t.length;a++){var s=e[t[a]],l={type:1,geometry:[[Math.round(this.options.extent*(s.x*r-i)),Math.round(this.options.extent*(s.y*r-n))]],tags:s.numPoints?gt(s):this.points[s.index].properties},u=s.numPoints?s.id:this.points[s.index].id;void 0!==u&&(l.id=u),o.features.push(l)}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var i=[],n=this.options.radius/(this.options.extent*Math.pow(2,e)),r=0;r<t.length;r++){var o=t[r];if(!(o.zoom<=e)){o.zoom=e;var a=this.trees[e+1],s=a.within(o.x,o.y,n),l=o.numPoints||1,u=o.x*l,c=o.y*l,h=null;this.options.reduce&&(h=this.options.initial(),this._accumulate(h,o));for(var p=(r<<5)+(e+1),f=0;f<s.length;f++){var d=a.points[s[f]];if(!(d.zoom<=e)){d.zoom=e;var m=d.numPoints||1;u+=d.x*m,c+=d.y*m,l+=m,d.parentId=p,this.options.reduce&&this._accumulate(h,d)}}1===l?i.push(o):(o.parentId=p,i.push(yt(u/l,c/l,p,l,h)))}}return i},_accumulate:function(t,e){var i=e.numPoints?e.properties:this.options.map(this.points[e.index].properties);this.options.reduce(t,i)}},Zt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Zt.prototype.splitTile=function(t,e,i,n,r,o,a){for(var s=[t,e,i,n],l=this.options,u=l.debug;s.length;){n=s.pop(),i=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,h=Xt(e,i,n),p=this.tiles[h];if(!p&&(u>1&&console.time("creation"),p=this.tiles[h]=Ht(t,e,i,n,l),this.tileCoords.push({z:e,x:i,y:n}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,i,n,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var f="z"+e;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(p.source=t,r){if(e===l.maxZoom||e===r)continue;var d=1<<r-e;if(i!==Math.floor(o/d)||n!==Math.floor(a/d))continue}else if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==t.length){u>1&&console.time("clipping");var m,y,v,g,_,b,x=.5*l.buffer/l.extent,w=.5-x,T=.5+x,k=1+x;m=y=v=g=null,_=It(t,c,i-x,i+T,0,p.minX,p.maxX,l),b=It(t,c,i+w,i+k,0,p.minX,p.maxX,l),t=null,_&&(m=It(_,c,n-x,n+T,1,p.minY,p.maxY,l),y=It(_,c,n+w,n+k,1,p.minY,p.maxY,l),_=null),b&&(v=It(b,c,n-x,n+T,1,p.minY,p.maxY,l),g=It(b,c,n+w,n+k,1,p.minY,p.maxY,l),b=null),u>1&&console.timeEnd("clipping"),s.push(m||[],e+1,2*i,2*n),s.push(y||[],e+1,2*i,2*n+1),s.push(v||[],e+1,2*i+1,2*n),s.push(g||[],e+1,2*i+1,2*n+1)}}},Zt.prototype.getTile=function(t,e,i){var n=this.options,r=n.extent,o=n.debug;if(t<0||t>24)return null;var a=1<<t,s=Xt(t,e=(e%a+a)%a,i);if(this.tiles[s])return qt(this.tiles[s],r);o>1&&console.log("drilling down to z%d-%d-%d",t,e,i);for(var l,u=t,c=e,h=i;!l&&u>0;)u--,c=Math.floor(c/2),h=Math.floor(h/2),l=this.tiles[Xt(u,c,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",u,c,h),o>1&&console.time("drilling down"),this.splitTile(l.source,u,c,h,t,e,i),o>1&&console.timeEnd("drilling down"),this.tiles[s]?qt(this.tiles[s],r):null):null};var Jt=function(e){function i(t,i,n){e.call(this,t,i,Kt),n&&(this.loadGeoJSON=n)}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},i.prototype._loadData=function(){var t=this;
1if(this._pendingCallback&&this._pendingLoadDataParams){var e=this._pendingCallback,i=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var n=!!(i&&i.request&&i.request.collectResourceTiming)&&new O.Performance(i.request);this.loadGeoJSON(i,function(r,o){if(r||!o)return e(r);if("object"!=typeof o)return e(new Error("Input data is not a valid GeoJSON object."));!function t(e,i){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.map(V(t,i)),e;case"Feature":return e.geometry=t(e.geometry,i),e;case"Polygon":case"MultiPolygon":return function(t,e){return"Polygon"===t.type?t.coordinates=U(t.coordinates,e):"MultiPolygon"===t.type&&(t.coordinates=t.coordinates.map(V(U,e))),t}(e,i);default:return e}}(o,!0);try{t._geoJSONIndex=i.cluster?(a=i.superclusterOptions,new mt(a)).load(o.features):new Zt(o,i.geojsonVtOptions)}catch(r){return e(r)}t.loaded={};var a,s={};if(n){var l=n.finish();l&&(s.resourceTiming={},s.resourceTiming[i.source]=JSON.parse(JSON.stringify(l)))}e(null,s)})}},i.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},i.prototype.reloadTile=function(t,i){var n=this.loaded,r=t.uid;return n&&n[r]?e.prototype.reloadTile.call(this,t,i):this.loadTile(t,i)},i.prototype.loadGeoJSON=function(e,i){if(e.request)t.getJSON(e.request,i);else{if("string"!=typeof e.data)return i(new Error("Input data is not a valid GeoJSON object."));try{return i(null,JSON.parse(e.data))}catch(t){return i(new Error("Input data is not a valid GeoJSON object."))}}},i.prototype.removeSource=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),e()},i.prototype.getClusterExpansionZoom=function(t,e){e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))},i.prototype.getClusterChildren=function(t,e){e(null,this._geoJSONIndex.getChildren(t.clusterId))},i.prototype.getClusterLeaves=function(t,e){e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))},i}(z),$t=function(e){var i=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.workerSourceTypes={vector:z,geojson:Jt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(i.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');i.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isLoaded())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return $t.prototype.setLayers=function(t,e,i){this.getLayerIndex(t).replace(e),i()},$t.prototype.updateLayers=function(t,e,i){this.getLayerIndex(t).update(e.layers,e.removedIds),i()},$t.prototype.loadTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).loadTile(e,i)},$t.prototype.loadDEMTile=function(t,e,i){this.getDEMWorkerSource(t,e.source).loadTile(e,i)},$t.prototype.reloadTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).reloadTile(e,i)},$t.prototype.abortTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).abortTile(e,i)},$t.prototype.removeTile=function(t,e,i){this.getWorkerSource(t,e.type,e.source).removeTile(e,i)},$t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},$t.prototype.removeSource=function(t,e,i){if(this.workerSources[t]&&this.workerSources[t][e.type]&&this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,i):i()}},$t.prototype.loadWorkerSource=function(t,e,i){try{this.self.importScripts(e.url),i()}catch(t){i(t.toString())}},$t.prototype.loadRTLTextPlugin=function(e,i,n){try{t.plugin.isLoaded()||(this.self.importScripts(i),n(t.plugin.isLoaded()?null:new Error("RTL Text Plugin failed to import scripts from "+i)))}catch(t){n(t.toString())}},$t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e}
1,$t.prototype.getWorkerSource=function(t,e,i){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][i]){var r={send:function(e,i,r){n.actor.send(e,i,r,t)}};this.workerSources[t][e][i]=new this.workerSourceTypes[e](r,this.getLayerIndex(t))}return this.workerSources[t][e][i]},$t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new L),this.demWorkerSources[t][e]},"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&new $t(self),$t}),n(0,function(t){var e=t.createCommonjsModule(function(t){function e(t){return!!("undefined"!=typeof window&&"undefined"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&"JSON"in window&&"parse"in JSON&&"stringify"in JSON&&function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var t,e,i=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(i);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&&e.terminate(),URL.revokeObjectURL(n),t}()&&"Uint8ClampedArray"in window&&ArrayBuffer.isView&&function(t){return void 0===i[t]&&(i[t]=function(t){var i=document.createElement("canvas"),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,i.probablySupportsContext?i.probablySupportsContext("webgl",n)||i.probablySupportsContext("experimental-webgl",n):i.supportsContext?i.supportsContext("webgl",n)||i.supportsContext("experimental-webgl",n):i.getContext("webgl",n)||i.getContext("experimental-webgl",n)}(t)),i[t]}(t&&t.failIfMajorPerformanceCaveat))}t.exports?t.exports=e:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e);var i={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}}),i={create:function(e,i,n){var r=t.window.document.createElement(e);return i&&(r.className=i),n&&n.appendChild(r),r},createNS:function(e,i){return t.window.document.createElementNS(e,i)}},n=t.window.document?t.window.document.documentElement.style:null;function r(t){if(!n)return null;for(var e=0;e<t.length;e++)if(t[e]in n)return t[e];return t[0]}var o,a=r(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);i.disableDrag=function(){n&&a&&(o=n[a],n[a]="none")},i.enableDrag=function(){n&&a&&(n[a]=o)};var s=r(["transform","WebkitTransform"]);i.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var u=Object.defineProperty({},"passive",{get:function(){l=!0}});t.window.addEventListener("test",u,u),t.window.removeEventListener("test",u,u)}catch(t){l=!1}i.addEventListener=function(t,e,i,n){void 0===n&&(n={}),"passive"in n&&l?t.addEventListener(e,i,n):t.addEventListener(e,i,n.capture)},i.removeEventListener=function(t,e,i,n){void 0===n&&(n={}),"passive"in n&&l?t.removeEventListener(e,i,n):t.removeEventListener(e,i,n.capture)};var c=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",c,!0)};i.suppressClick=function(){t.window.addEventListener("click",c,!0),t.window.setTimeout(function(){t.window.removeEventListener("click",c,!0)},0)},i.mousePos=function(e,i){var n=e.getBoundingClientRect();return i=i.touches?i.touches[0]:i,new t.Point(i.clientX-n.left-e.clientLeft,i.clientY-n.top-e.clientTop)},i.touchPos=function(e,i){for(var n=e.getBoundingClientRect(),r=[],o="touchend"===i.type?i.changedTouches:i.touches,a=0;a<o.length;a++)r.push(new t.Point(o[a].clientX-n.left-e.clientLeft,o[a].clientY-n.top-e.clientTop));return r},i.mouseButton=function(e){return void 0!==t.window.InstallTrigger&&2===e.button&&e.ctrlKey&&t.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button},i.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var h={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return 0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":"https://events.mapbox.com/events/v2"},REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null},p="See https://www.mapbox.com/api-documentation/#access-tokens";function f(t,e){var i=b(h.API_URL);if(t.protocol=i.protocol,t.authority=i.authority,"/"!==i.path&&(t.path=""+i.path+t.path),!h.REQUIRE_ACCESS_TOKEN)return x(t);if(!(e=e||h.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+p);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return t.params.push("access_token="+e),x(t)}function d(t){return 0===t.indexOf("mapbox:")}var m=function(t,e){if(!d(t))return t;var i=b(t);return i.path="/v4/"+i.authority+".json",i.params.push("secure"),f(i,e)}
1,y=function(t,e,i,n){var r=b(t);return d(t)?(r.path="/styles/v1"+r.path+"/sprite"+e+i,f(r,n)):(r.path+=""+e+i,x(r))},v=/(\.(png|jpg)\d*)(?=$)/,g=function(e,i,n){if(!i||!d(i))return e;var r=b(e),o=t.browser.devicePixelRatio>=2||512===n?"@2x":"",a=t.browser.supportsWebp?".webp":"$1";return r.path=r.path.replace(v,""+o+a),function(t){for(var e=0;e<t.length;e++)0===t[e].indexOf("access_token=tk.")&&(t[e]="access_token="+(h.ACCESS_TOKEN||""))}(r.params),x(r)},_=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function b(t){var e=t.match(_);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function x(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}var w=function(){this.eventData={anonId:null,lastSuccess:null,accessToken:h.ACCESS_TOKEN},this.queue=[],this.pending=!1,this.pendingRequest=null};w.prototype.postTurnstileEvent=function(t){h.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return/(mapbox\.c)(n|om)/i.test(t)})&&this.queueRequest(Date.now())},w.prototype.queueRequest=function(t){this.queue.push(t),this.processRequests()},w.prototype.processRequests=function(){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var i="mapbox.turnstileEventData:"+(h.ACCESS_TOKEN||""),n=t.storageAvailable("localStorage"),r=!!this.eventData.accessToken&&this.eventData.accessToken!==h.ACCESS_TOKEN;if(r&&(this.eventData.anonId=this.eventData.lastSuccess=null),(!this.eventData.anonId||!this.eventData.lastSuccess)&&n)try{var o=t.window.localStorage.getItem(i);o&&(this.eventData=JSON.parse(o))}catch(e){t.warnOnce("Unable to read from LocalStorage")}t.validateUuid(this.eventData.anonId)||(this.eventData.anonId=t.uuid(),r=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var s=new Date(this.eventData.lastSuccess),l=new Date(a),u=(a-this.eventData.lastSuccess)/864e5;r=r||u>=1||u<-1||s.getDate()!==l.getDate()}if(!r)return this.processRequests();var c=b(h.EVENTS_URL);c.params.push("access_token="+(h.ACCESS_TOKEN||""));var p={url:x(c),headers:{"Content-Type":"text/plain"}},f=JSON.stringify([{event:"appUserTurnstile",created:new Date(a).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"0.50.0","enabled.telemetry":!1,userId:this.eventData.anonId}]);this.pendingRequest=t.postData(p,f,function(r){if(e.pendingRequest=null,!r){if(e.eventData.lastSuccess=a,e.eventData.accessToken=h.ACCESS_TOKEN,n)try{t.window.localStorage.setItem(i,JSON.stringify(e.eventData))}catch(e){t.warnOnce("Unable to write to LocalStorage")}e.processRequests()}})}};var T=new w,k=T.postTurnstileEvent.bind(T),S=function(){this.images={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0};S.prototype.isLoaded=function(){return this.loaded},S.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,i=this.requestors;e<i.length;e+=1){var n=i[e],r=n.ids,o=n.callback;this._notify(r,o)}this.requestors=[]}},S.prototype.getImage=function(t){return this.images[t]},S.prototype.addImage=function(t,e){this.images[t]=e},S.prototype.removeImage=function(t){delete this.images[t],delete this.patterns[t]},S.prototype.listImages=function(){return Object.keys(this.images)},S.prototype.getImages=function(t,e){var i=!0;if(!this.isLoaded())for(var n=0,r=t;n<r.length;n+=1){var o=r[n];this.images[o]||(i=!1)}this.isLoaded()||i?this._notify(t,e):this.requestors.push({ids:t,callback:e})},S.prototype._notify=function(t,e){for(var i={},n=0,r=t;n<r.length;n+=1){var o=r[n],a=this.images[o];a&&(i[o]={data:a.data.clone(),pixelRatio:a.pixelRatio,sdf:a.sdf})}e(null,i)},S.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},S.prototype.getPattern=function(e){var i=this.patterns[e];if(i)return i.position;var n=this.getImage(e);if(!n)return null;var r={w:n.data.width+2,h:n.data.height+2,x:0,y:0},o=new t.ImagePosition(r,n);return this.patterns[e]={bin:r,position:o},this._updatePatternAtlas(),o},S.prototype.bind=function(e){var i=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,i.RGBA),this.atlasTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)},S.prototype._updatePatternAtlas=function(){var e=[];for(var i in this.patterns)e.push(this.patterns[i].bin);var n=t.potpack(e),r=n.w,o=n.h,a=this.atlasImage;for(var s in a.resize({width:r||1,height:o||1}),this.patterns){var l=this.patterns[s].bin,u=l.x+1,c=l.y+1,h=this.images[s].data,p=h.width,f=h.height;t.RGBAImage.copy(h,a,{x:0,y:0},{x:u,y:c},{width:p,height:f}),t.RGBAImage.copy(h,a,{x:0,y:f-1},{x:u,y:c-1},{width:p,height:1}),t.RGBAImage.copy(h,a,{x:0,y:0},{x:u,y:c+f},{width:p,height:1}),t.RGBAImage.copy(h,a,{x:p-1,y:0},{x:u-1,y:c},{width:1,height:f}),t.RGBAImage.copy(h,a,{x:0,y:0},{x:u+p,y:c},{width:1,height:f})}this.dirty=!0};var E=A,P=1e20;function A(t,e,i,n,r,o){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=r||"sans-serif",this.fontWeight=o||"normal",this.radius=i||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function C(t,e,i,n,r,o,a){for(var s=0;s<e;s++){for(var l=0;l<i;l++)n[l]=t[l*e+s];for(D(n,r,o,a,i),l=0;l<i;l++)t[l*e+s]=r[l]}for(l=0;l<i;l++){for(s=0;s<e;s++)n[s]=t[l*e+s];for(D(n,r,o,a,e),s=0;s<e;s++)t[l*e+s]=Math.sqrt(r[s])}}function D(t,e,i,n,r){i[0]=0,n[0]=-P,n[1]=+P;
1for(var o=1,a=0;o<r;o++){for(var s=(t[o]+o*o-(t[i[a]]+i[a]*i[a]))/(2*o-2*i[a]);s<=n[a];)a--,s=(t[o]+o*o-(t[i[a]]+i[a]*i[a]))/(2*o-2*i[a]);i[++a]=o,n[a]=s,n[a+1]=+P}for(o=0,a=0;o<r;o++){for(;n[a+1]<o;)a++;e[o]=(o-i[a])*(o-i[a])+t[i[a]]}}A.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),i=new Uint8ClampedArray(this.size*this.size),n=0;n<this.size*this.size;n++){var r=e.data[4*n+3]/255;this.gridOuter[n]=1===r?0:0===r?P:Math.pow(Math.max(0,.5-r),2),this.gridInner[n]=1===r?P:0===r?0:Math.pow(Math.max(0,r-.5),2)}for(C(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),C(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n<this.size*this.size;n++){var o=this.gridOuter[n]-this.gridInner[n];i[n]=Math.max(0,Math.min(255,Math.round(255-255*(o/this.radius+this.cutoff))))}return i};var O=function(t,e){this.requestTransform=t,this.localIdeographFontFamily=e,this.entries={}};O.prototype.setURL=function(t){this.url=t},O.prototype.getGlyphs=function(e,i){var n=this,r=[];for(var o in e)for(var a=0,s=e[o];a<s.length;a+=1){var l=s[a];r.push({stack:o,id:l})}t.asyncAll(r,function(t,e){var i=t.stack,r=t.id,o=n.entries[i];o||(o=n.entries[i]={glyphs:{},requests:{}});var a=o.glyphs[r];if(void 0===a)if(a=n._tinySDF(o,i,r))e(null,{stack:i,id:r,glyph:a});else{var s=Math.floor(r/256);if(256*s>65535)e(new Error("glyphs > 65535 not supported"));else{var l=o.requests[s];l||(l=o.requests[s]=[],O.loadGlyphRange(i,s,n.url,n.requestTransform,function(t,e){if(e)for(var i in e)o.glyphs[+i]=e[+i];for(var n=0,r=l;n<r.length;n+=1)(0,r[n])(t,e);delete o.requests[s]})),l.push(function(t,n){t?e(t):n&&e(null,{stack:i,id:r,glyph:n[r]||null})})}}else e(null,{stack:i,id:r,glyph:a})},function(t,e){if(t)i(t);else if(e){for(var n={},r=0,o=e;r<o.length;r+=1){var a=o[r],s=a.stack,l=a.id,u=a.glyph;(n[s]||(n[s]={}))[l]=u&&{id:u.id,bitmap:u.bitmap.clone(),metrics:u.metrics}}i(null,n)}})},O.prototype._tinySDF=function(e,i,n){var r=this.localIdeographFontFamily;if(r&&(t.isChar["CJK Unified Ideographs"](n)||t.isChar["Hangul Syllables"](n))){var o=e.tinySDF;if(!o){var a="400";/bold/i.test(i)?a="900":/medium/i.test(i)?a="500":/light/i.test(i)&&(a="200"),o=e.tinySDF=new O.TinySDF(24,3,8,.25,r,a)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},o.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},O.loadGlyphRange=function(e,i,n,r,o){var a=256*i,s=a+255,l=r(function(t,e){if(!d(t))return t;var i=b(t);return i.path="/fonts/v1"+i.path,f(i,e)}(n).replace("{fontstack}",e).replace("{range}",a+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,function(e,i){if(e)o(e);else if(i){for(var n={},r=0,a=t.parseGlyphPBF(i.data);r<a.length;r+=1){var s=a[r];n[s.id]=s}o(null,n)}})},O.TinySDF=E;var M=function(){this.specification=t.styleSpec.light.position};M.prototype.possiblyEvaluate=function(e,i){return t.sphericalToCartesian(e.expression.evaluate(i))},M.prototype.interpolate=function(e,i,n){return{x:t.number(e.x,i.x,n),y:t.number(e.y,i.y,n),z:t.number(e.z,i.z,n)}};var I=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new M,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),z=function(e){function i(i){e.call(this),this._transitionable=new t.Transitionable(I),this.setLight(i),this._transitioning=this._transitionable.untransitioned()}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.getLight=function(){return this._transitionable.serialize()},i.prototype.setLight=function(e){if(!this._validate(t.validateLight,e))for(var i in e){var n=e[i];t.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-"-transition".length),n):this._transitionable.setValue(i,n)}},i.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},i.prototype.hasTransition=function(){return this._transitioning.hasTransition()},i.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},i.prototype._validate=function(e,i){return t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},i}(t.Evented),L=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}};L.prototype.getDash=function(t,e){var i=t.join(",")+String(e);return this.positions[i]||(this.positions[i]=this.addDash(t,e)),this.positions[i]},L.prototype.addDash=function(e,i){var n=i?7:0,r=2*n+1;if(this.nextRow+r>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a<e.length;a++)o+=e[a];for(var s=this.width/o,l=s/2,u=e.length%2==1,c=-n;c<=n;c++)for(var h=this.nextRow+n+c,p=this.width*h,f=u?-e[e.length-1]:0,d=e[0],m=1,y=0;y<this.width;y++){for(;d<y/s;
vendor: 4,239 bytes, line 1
1)f=d,d+=e[m],u&&m===e.length-1&&(d+=e[0]),m++;var v=Math.abs(y-f*s),g=Math.abs(y-d*s),_=Math.min(v,g),b=m%2==1,x=void 0;if(i){var w=n?c/n*(l+1):0;if(b){var T=l-Math.abs(w);x=Math.sqrt(_*_+T*T)}else x=l-Math.sqrt(_*_+w*w)}else x=(b?1:-1)*_;this.data[3+4*(p+y)]=Math.max(0,Math.min(255,x+128))}var k={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:o};return this.nextRow+=r,this.dirty=!0,k},L.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.RGBA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.width,this.height,0,e.RGBA,e.UNSIGNED_BYTE,this.data))};var R=function e(i,n){this.workerPool=i,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var r=this.workerPool.acquire(this.id),o=0;o<r.length;o++){var a=r[o],s=new e.Actor(a,n,this.id);s.name="Worker "+o,this.actors.push(s)}};function B(e,i,n){var r=function(e,i){if(e)return n(e);if(i){var r=t.pick(i,["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds"]);i.vector_layers&&(r.vectorLayers=i.vector_layers,r.vectorLayerIds=r.vectorLayers.map(function(t){return t.id})),n(null,r)}};return e.url?t.getJSON(i(m(e.url),t.ResourceType.Source),r):t.browser.frame(function(){return r(null,e)})}R.prototype.broadcast=function(e,i,n){n=n||function(){},t.asyncAll(this.actors,function(t,n){t.send(e,i,n)},n)},R.prototype.send=function(t,e,i,n){return("number"!=typeof n||isNaN(n))&&(n=this.currentActor=(this.currentActor+1)%this.actors.length),this.actors[n].send(t,e,i),n},R.prototype.remove=function(){this.actors.forEach(function(t){t.remove()}),this.actors=[],this.workerPool.release(this.id)},R.Actor=t.Actor;var j=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};j.prototype.wrap=function(){return new j(t.wrap(this.lng,-180,180),this.lat)},j.prototype.toArray=function(){return[this.lng,this.lat]},j.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},j.prototype.toBounds=function(t){var e=360*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return new F(new j(this.lng-i,this.lat-e),new j(this.lng+i,this.lat+e))},j.convert=function(t){if(t instanceof j)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new j(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new j(Number(t.lng),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var F=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};F.prototype.setNorthEast=function(t){return this._ne=t instanceof j?new j(t.lng,t.lat):j.convert(t),this},F.prototype.setSouthWest=function(t){return this._sw=t instanceof j?new j(t.lng,t.lat):j.convert(t),this},F.prototype.extend=function(t){var e,i,n=this._sw,r=this._ne;if(t instanceof j)e=t,i=t;else{if(!(t instanceof F))return Array.isArray(t)?t.every(Array.isArray)?this.extend(F.convert(t)):this.extend(j.convert(t)):this;if(e=t._sw,i=t._ne,!e||!i)return this}return n||r?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),r.lng=Math.max(i.lng,r.lng),r.lat=Math.max(i.lat,r.lat)):(this._sw=new j(e.lng,e.lat),this._ne=new j(i.lng,i.lat)),this},F.prototype.getCenter=function(){return new j((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},F.prototype.getSouthWest=function(){return this._sw},F.prototype.getNorthEast=function(){return this._ne},F.prototype.getNorthWest=function(){return new j(this.getWest(),this.getNorth())},F.prototype.getSouthEast=function(){return new j(this.getEast(),this.get
1South())},F.prototype.getWest=function(){return this._sw.lng},F.prototype.getSouth=function(){return this._sw.lat},F.prototype.getEast=function(){return this._ne.lng},F.prototype.getNorth=function(){return this._ne.lat},F.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},F.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},F.prototype.isEmpty=function(){return!(this._sw&&this._ne)},F.convert=function(t){return!t||t instanceof F?t:new F(t)};var N=function(t,e,i){this.bounds=F.convert(this.validateBounds(t)),this.minzoom=e||0,this.maxzoom=i||24};N.prototype.validateBounds=function(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},N.prototype.contains=function(t){var e=Math.floor(this.lngX(this.bounds.getWest(),t.z)),i=Math.floor(this.latY(this.bounds.getNorth(),t.z)),n=Math.ceil(this.lngX(this.bounds.getEast(),t.z)),r=Math.ceil(this.latY(this.bounds.getSouth(),t.z));return t.x>=e&&t.x<n&&t.y>=i&&t.y<r},N.prototype.lngX=function(t,e){return(t+180)*(Math.pow(2,e)/360)},N.prototype.latY=function(e,i){var n=t.clamp(Math.sin(Math.PI/180*e),-.9999,.9999),r=Math.pow(2,i)/(2*Math.PI);return Math.pow(2,i-1)+.5*Math.log((1+n)/(1-n))*-r};var V=function(e){function i(i,n,r,o){if(e.call(this),this.id=i,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,t.extend(this,t.pick(n,["url","scheme","tileSize"])),this._options=t.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(o)}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=B(this._options,this.map._transformRequest,function(i,n){e._tileJSONRequest=null,i?e.fire(new t.ErrorEvent(i)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new N(n.bounds,e.minzoom,e.maxzoom)),k(n.tiles),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))})},i.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},i.prototype.onAdd=function(t){this.map=t,this.load()},i.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},i.prototype.serialize=function(){return t.extend({},this._options)},i.prototype.loadTile=function(e,i){var n=g(e.tileID.canonical.url(this.tiles,this.scheme),this.url),r={request:this.map._transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.t
1ype,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};function o(t,n){return e.aborted?i(null):t&&404!==t.status?i(t):(n&&n.resourceTiming&&(e.resourceTiming=n.resourceTiming),this.map._refreshExpiredTiles&&n&&e.setExpiryData(n),e.loadVectorData(n,this.map.painter),i(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}r.request.collectResourceTiming=this._collectResourceTiming,void 0===e.workerID||"expired"===e.state?e.workerID=this.dispatcher.send("loadTile",r,o.bind(this)):"loading"===e.state?e.reloadCallback=i:this.dispatcher.send("reloadTile",r,o.bind(this),e.workerID)},i.prototype.abortTile=function(t){this.dispatcher.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0,t.workerID)},i.prototype.unloadTile=function(t){t.unloadVectorData(),this.dispatcher.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0,t.workerID)},i.prototype.hasTransition=function(){return!1},i}(t.Evented),U=function(e){function i(i,n,r,o){e.call(this),this.id=i,this.dispatcher=r,this.setEventedParent(o),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({},n),t.extend(this,t.pick(n,["url","scheme","tileSize"]))}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=B(this._options,this.map._transformRequest,function(i,n){e._tileJSONRequest=null,i?e.fire(new t.ErrorEvent(i)):n&&(t.extend(e,n),n.bounds&&(e.tileBounds=new N(n.bounds,e.minzoom,e.maxzoom)),k(n.tiles),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))})},i.prototype.onAdd=function(t){this.map=t,this.load()},i.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},i.prototype.serialize=function(){return t.extend({},this._options)},i.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},i.prototype.loadTile=function(e,i){var n=this,r=g(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._transformRequest(r,t.ResourceType.Tile),function(r,o){if(delete e.request,e.aborted)e.state="unloaded",i(null);else if(r)e.state="errored",i(r);else if(o){n.map._refreshExpiredTiles&&e.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=n.map.painter.context,s=a.gl;e.texture=n.map.painter.getTileTexture(o.width),e.texture?e.texture.update(o,{useMipmap:!0}):(e.texture=new t.Texture(a,o,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state="loaded",i(null)}})},i.prototype.abortTile=function(t,e){t.request&&(t.request.cancel(),delete t.request),e()},i.prototype.unloadTile=function(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e()},i.prototype.hasTransition=function(){return!1},i}(t.Evented),q=function(e){function i(i,n,r,o){e.call(this,i,n,r,o),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({},n),this.encoding=n.encoding||"mapbox"}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},i.prototype.loadTile=function(e,i){var n=g(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._transformRequest(n,t.ResourceType.Tile),function(n,r){if(delete e.request,e.aborted)e.state="unloaded",i(null);else if(n)e.state="errored",i(n);else if(r){this.map._refreshExpiredTiles&&e.setExpiryData(r),delete r.cacheControl,delete r.expires;var o=t.browser.getImageData(r),a={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.workerID&&"expired"!==e.state||(e.workerID=this.dispatcher.send("loadDEMTile",a,function(t,n){t&&(e.state="errored",i(t)),n&&(e.dem=n,e.needsHillshadePrepare=!0,e.state="loaded",i(null))}.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},i.prototype._getNeighboringTiles=function(e){var i=e.canonical,n=Math.pow(2,i.z),r=(i.x-1+n)%n,o=0===i.x?e.wrap-1:e.wrap,a=(i.x+1+n)%n,s=i.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,o,i.z,r,i.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,i.z,a,i.y).key]={backfilled:!1},i.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,o,i.z,r,i.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,i.z,a,i.y-1).key]={backfilled:!1}),i.y+1<n&&(l[new t.OverscaledTileID(e.overscaledZ,o,i.z,r,i.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,i.z,a,i.y+1).key]={backfilled:!1}),l},i.prototype.unloadTile=function(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",this.dispatcher.send("removeDEMTile",{uid:t.uid,source:this.id},void 0,t.workerID)},i}(U),Y=function(e){function i(i,n,r,o){e.call(this),this.id=i,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this.dispatcher=r,this.setEventedParent(o),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.t
1ype=n.type),n.attribution&&(this.attribution=n.attribution);var a=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*a,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*a,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*a,log:!1}},n.workerOptions)}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(i){if(i)e.fire(new t.ErrorEvent(i));else{var n={dataType:"source",sourceDataType:"metadata"};e._collectResourceTiming&&e._resourceTiming&&e._resourceTiming.length>0&&(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",n))}})},i.prototype.onAdd=function(t){this.map=t,this.load()},i.prototype.setData=function(e){var i=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(e){if(e)i.fire(new t.ErrorEvent(e));else{var n={dataType:"source",sourceDataType:"content"};i._collectResourceTiming&&i._resourceTiming&&i._resourceTiming.length>0&&(n.resourceTiming=i._resourceTiming,i._resourceTiming=[]),i.fire(new t.Event("data",n))}}),this},i.prototype.getClusterExpansionZoom=function(t,e){return this.dispatcher.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e,this.workerID),this},i.prototype.getClusterChildren=function(t,e){return this.dispatcher.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e,this.workerID),this},i.prototype.getClusterLeaves=function(t,e,i,n){return this.dispatcher.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:i},n,this.workerID),this},i.prototype._updateWorkerData=function(e){var i=this,n=t.extend({},this.workerOptions),r=this._data;"string"==typeof r?(n.request=this.map._transformRequest(t.browser.resolveURL(r),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(r),this.workerID=this.dispatcher.send(this.type+".loadData",n,function(t,r){i._removed||r&&r.abandoned||(i._loaded=!0,r&&r.resourceTiming&&r.resourceTiming[i.id]&&(i._resourceTiming=r.resourceTiming[i.id].slice(0)),i.dispatcher.send(i.type+".coalesce",{source:n.source},null,i.workerID),e(t))},this.workerID)},i.prototype.loadTile=function(e,i){var n=this,r=void 0===e.workerID?"loadTile":"reloadTile",o={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};e.workerID=this.dispatcher.send(r,o,function(t,o){return e.unloadVectorData(),e.aborted?i(null):t?i(t):(e.loadVectorData(o,n.map.painter,"reloadTile"===r),i(null))},this.workerID)},i.prototype.abortTile=function(t){t.aborted=!0},i.prototype.unloadTile=function(t){t.unloadVectorData(),this.dispatcher.send("removeTile",{uid:t.uid,type:this.t
1ype,source:this.id},null,t.workerID)},i.prototype.onRemove=function(){this._removed=!0,this.dispatcher.send("removeSource",{type:this.type,source:this.id},null,this.workerID)},i.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},i.prototype.hasTransition=function(){return!1},i}(t.Evented),H=function(e){function i(t,i,n,r){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this.setEventedParent(r),this.options=i}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.load=function(e,i){var n=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._transformRequest(this.url,t.ResourceType.Image),function(r,o){r?n.fire(new t.ErrorEvent(r)):o&&(n.image=t.browser.getImageData(o),e&&(n.coordinates=e),i&&i(),n._finishLoading())})},i.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,function(){e.texture=null}),this):this},i.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},i.prototype.onAdd=function(t){this.map=t,this.load()},i.prototype.setCoordinates=function(e){this.coordinates=e;var i=this.map,n=e.map(function(t){return i.transform.locationCoordinate(j.convert(t)).zoomTo(0)}),r=this.centerCoord=t.getCoordinatesCenter(n);r.column=Math.floor(r.column),r.row=Math.floor(r.row),this.tileID=new t.CanonicalTileID(r.zoom,r.column,r.row),this.minzoom=this.maxzoom=r.zoom;var o=n.map(function(e){var i=e.zoomTo(r.zoom);return new t.Point(Math.round((i.column-r.column)*t.EXTENT),Math.round((i.row-r.row)*t.EXTENT))});return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(o[0].x,o[0].y,0,0),this._boundsArray.emplaceBack(o[1].x,o[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(o[3].x,o[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(o[2].x,o[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},i.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var e=this.map.painter.context,i=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,t.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this.tiles){var r=this.tiles[n];"loaded"!==r.state&&(r.state="loaded",r.texture=this.texture)}}},i.prototype.loadTile=function(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))},i.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},i.prototype.hasTransition=function(){return!1},i}(t.Evented),W=function(e){function i(t,i,n,r){e.call(this,t,i,n,r),this.roundZoom=!0,this.type="video",this.options=i}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.load=function(){var e=this,i=this.options;this.urls=[];for(var n=0,r=i.urls;n<r.length;n+=1){var o=r[n];e.urls.push(e.map._transformRequest(o,t.ResourceType.Source).url)}t.getVideo(this.urls,function(i,n){i?e.fire(new t.ErrorEvent(i)):n&&(e.video=n,e.video.loop=!0,e.video.addEventListener("playing",function(){e.map.triggerRepaint()}),e.map&&e.video.play(),e._finishLoading())})},i.prototype.getVideo=function(){return this.video},i.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},i.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,i=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,t.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this.tiles){var r=this.tiles[n];"loaded"!==r.state&&(r.state="loaded",r.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this.video&&!this.video.paused},i}
vendor: 4,465 bytes, line 1
1(H),G=function(e){function i(i,n,r,o){e.call(this,i,n,r,o),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(function(t){return!Array.isArray(t)||2!==t.length||t.some(function(t){return"number"!=typeof t})})||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+i,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.load=function(){this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing=!1},this._finishLoading())},i.prototype.getCanvas=function(){return this.canvas},i.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},i.prototype.onRemove=function(){this.pause()},i.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var i=this.map.painter.context,n=i.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=i.createVertexBuffer(this._boundsArray,t.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(i,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[r];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},i.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},i.prototype.hasTransition=function(){return this._playing},i.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t<e.length;t+=1){var i=e[t];if(isNaN(i)||i<=0)return!0}return!1},i}(H),Z={vector:V,raster:U,"raster-dem":q,geojson:Y,video:W,image:H,canvas:G},X=function(e,i,n,r){var o=new Z[i.type](e,i,n,r);if(o.id!==e)throw new Error("Expected Source id to be "+e+" instead of "+o.id);return t.bindAll(["load","abort","unload","serialize","prepare"],o),o};function K(t,e,i,n,r){var o=r.maxPitchScaleFactor(),a=t.tilesIn(i,o);a.sort(J);for(var s=[],l=0,u=a;l<u.length;l+=1){var c=u[l];s.push({wrappedTileID:c.tileID.wrapped().key,queryResults:c.tile.queryRenderedFeatures(e,t._state,c.queryGeometry,c.scale,n,r,o,t.transform.calculatePosMatrix(c.tileID.toUnwrapped()))})}var h=function(t){for(var e={},i={},n=0,r=t;n<r.length;n+=1){var o=r[n],a=o.queryResults,s=o.wrappedTileID,l=i[s]=i[s]||{};for(var u in a)for(var c=a[u],h=l[u]=l[u]||{},p=e[u]=e[u]||[],f=0,d=c;f<d.length;f+=1){var m=d[f];h[m.featureIndex]||(h[m.featureIndex]=!0,p.push(m.feature))}}return e}(s);for(var p in h)h[p].forEach(function(e){var i=t.getFeatureState(e.layer["source-layer"],e.id);e.source=e.layer.source,e.layer["source-layer"]&&(e.sourceLayer=e.layer["source-layer"]),e.state=i});return h}function J(t,e){var i=t.tileID,n=e.tileID;return i.overscaledZ-n.overscaledZ||i.canonical.y-n.canonical.y||i.wrap-n.wrap||i.canonical.x-n.canonical.x}var $=function(t,e){this.max=t,this.onRemove=e,this.reset()};$.prototype.reset=function(){for(var t in this.data)for(var e=0,i=this.data[t];e<i.length;e+=1){var n=i[e];n.timeout&&clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this}
1,$.prototype.add=function(t,e,i){var n=this,r=t.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);var o={value:e,timeout:void 0};if(void 0!==i&&(o.timeout=setTimeout(function(){n.remove(t,o)},i)),this.data[r].push(o),this.order.push(r),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},$.prototype.has=function(t){return t.wrapped().key in this.data},$.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},$.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},$.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},$.prototype.remove=function(t,e){if(!this.has(t))return this;var i=t.wrapped().key,n=void 0===e?0:this.data[i].indexOf(e),r=this.data[i][n];return this.data[i].splice(n,1),r.timeout&&clearTimeout(r.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(r.value),this.order.splice(this.order.indexOf(i),1),this},$.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this};var Q=function(t,e,i){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};Q.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},Q.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},Q.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var tt={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},et=function(t,e,i,n){this.length=e.length,this.attributes=i,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var r=t.gl;this.buffer=r.createBuffer(),t.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};et.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},et.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},et.prototype.enableAttributes=function(t,e){for(var i=0;i<this.attributes.length;i++){var n=this.attributes[i],r=e.attributes[n.name];void 0!==r&&t.enableVertexAttribArray(r)}},et.prototype.setVertexAttribPointers=function(t,e,i){for(var n=0;n<this.attributes.length;n++){var r=this.attributes[n],o=e.attributes[r.name];void 0!==o&&t.vertexAttribPointer(o,r.components,t[tt[r.type]],!1,this.itemSize,r.offset+this.itemSize*(i||0))}},et.prototype.destroy=function(){var t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)};var it=function(e){this.context=e,this.default=t.Color.transparent,this.current=this.default,this.dirty=!1};it.prototype.get=function(){return this.current},it.prototype.setDefault=function(){this.set(this.default)},it.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a&&!0!==this.dirty||(this.context.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)};var nt=function(t){this.context=t,this.default=1,this.current=this.default,this.dirty=!1};nt.prototype.get=function(){return this.current},nt.prototype.setDefault=function(){this.set(this.default)},nt.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.clearDepth(t),this.current=t,this.dirty=!1)};var rt=function(t){this.context=t,this.default=0,this.current=this.default,this.dirty=!1};rt.prototype.get=function(){return this.current},rt.prototype.setDefault=function(){this.set(this.default)},rt.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.clearStencil(t),this.current=t,this.dirty=!1)};var ot=function(t){this.context=t,this.default=[!0,!0,!0,!0],this.current=this.default,this.dirty=!1};ot.prototype.get=function(){return this.current},ot.prototype.setDefault=function(){this.set(this.default)},ot.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&!0!==this.dirty||(this.context.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)};var at=function(t){this.context=t,this.default=!0,this.current=this.default,this.dirty=!1};at.prototype.get=function(){return this.current},at.prototype.setDefault=function(){this.set(this.default)},at.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.depthMask(t),this.current=t,this.dirty=!1)};var st=function(t){this.context=t,this.default=255,this.current=this.default,this.dirty=!1};st.prototype.get=function(){return this.current},st.prototype.setDefault=function(){this.set(this.default)},st.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.stencilMask(t),this.current=t,this.dirty=!1)};var lt=function(t){this.context=t,this.default={func:t.gl.ALWAYS,ref:0,mask:255},this.current=this.default,this.dirty=!1};lt.prototype.get=function(){return this.current},lt.prototype.setDefault=function(){this.set(this.default)},lt.prototype.set=function(t){var e=this.current;t.func===e.func&&t.ref===e.ref&&t.mask===e.mask&&!0!==this.dirty||(this.context.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)};var ut=function(t){this.context=t;var e=this.context.gl;this.default=[e.KEEP,e.KEEP,e.KEEP],this.current=this.default,this.dirty=!1};ut.prototype.get=function(){return this.current},ut.prototype.setDefault=function(){this.set(this.default)},ut.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&!0!==this.dirty||(this.context.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)};var ct=function(t){this.context=t,this.default=!1,this.current=this.default,this.dirty=!1};ct.prototype.get=function(){return this.current},ct.prototype.setDefault=function(){this.set(this.default)},ct.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}};var ht=function(t){this.context=t,this.default=[0,1],this.current=this.default,this.dirty=!1};ht.prototype.get=function(){return this.current},ht.prototype.setDefault=function(){this.set(this.default)},ht.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&!0!==this.dirty||(this.context.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)};var pt=function(t){this.context=t,this.default=!1,this.current=this.default,this.dirty=!1};pt.prototype.get=function(){return this.current},pt.prototype.setDefault=function(){this.set(this.default)},pt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}};var ft=function(t){this.context=t,this.default=t.gl.LESS,this.current=this.default,this.dirty=!1};ft.prototype.get=function(){return this.current},ft.prototype.setDefault=function(){this.set(this.default)},ft.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.depthFunc(t),this.current=t,this.dirty=!1)};var dt=function(t){this.context=t,this.default=!1,this.current=this.default,this.dirty=!1};dt.prototype.get=function(){return this.current},dt.prototype.setDefault=function(){this.set(this.default)},dt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}};var mt=function(t){this.context=t;var e=this.context.gl;this.default=[e.ONE,e.ZERO],this.current=this.default,this.dirty=!1};mt.prototype.get=function(){return this.current},mt.prototype.setDefault=function(){this.set(this.default)},mt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&!0!==this.dirty||(this.context.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)};var yt=function(e){this.context=e,this.default=t.Color.transparent,this.current=this.default,this.dirty=!1};yt.prototype.get=function(){return this.current},yt.prototype.setDefault=function(){this.set(this.default)},yt.prototype.set=function(t){var e=this.current;t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a&&!0!==this.dirty||(this.context.gl.blendColor
1(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)};var vt=function(t){this.context=t,this.default=this.context.gl.FUNC_ADD,this.current=this.default,this.dirty=!1};vt.prototype.get=function(){return this.current},vt.prototype.setDefault=function(){this.set(this.default)},vt.prototype.set=function(t){t===this.current&&!0!==this.dirty||(this.context.gl.blendEquation(t),this.current=t,this.dirty=!1)};var gt=function(t){this.context=t,this.default=!1,this.current=this.default,this.dirty=!1};gt.prototype.get=function(){return this.current},gt.prototype.setDefault=function(){this.set(this.default)},gt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}};var _t=function(t){this.context=t;var e=this.context.gl;this.default=e.BACK,this.current=this.default,this.dirty=!1};_t.prototype.get=function(){return this.current},_t.prototype.setDefault=function(){this.set(this.default)},_t.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.cullFace(t),this.current=t,this.dirty=!1)};var bt=function(t){this.context=t;var e=this.context.gl;this.default=e.CCW,this.current=this.default,this.dirty=!1};bt.prototype.get=function(){return this.current},bt.prototype.setDefault=function(){this.set(this.default)},bt.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.frontFace(t),this.current=t,this.dirty=!1)};var xt=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};xt.prototype.get=function(){return this.current},xt.prototype.setDefault=function(){this.set(this.default)},xt.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.useProgram(t),this.current=t,this.dirty=!1)};var wt=function(t){this.context=t,this.default=t.gl.TEXTURE0,this.current=this.default,this.dirty=!1};wt.prototype.get=function(){return this.current},wt.prototype.setDefault=function(){this.set(this.default)},wt.prototype.set=function(t){this.current===t&&!0!==this.dirty||(this.context.gl.activeTexture(t),this.current=t,this.dirty=!1)};var Tt=function(t){this.context=t;var e=this.context.gl;this.default=[0,0,e.drawingBufferWidth,e.drawingBufferHeight],this.current=this.default,this.dirty=!1};Tt.prototype.get=function(){return this.current},Tt.prototype.setDefault=function(){this.set(this.default)},Tt.prototype.set=function(t){var e=this.current;t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&!0!==this.dirty||(this.context.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)};var kt=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};kt.prototype.get=function(){return this.current},kt.prototype.setDefault=function(){this.set(this.default)},kt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}};var St=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};St.prototype.get=function(){return this.current},St.prototype.setDefault=function(){this.set(this.default)},St.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}};var Et=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};Et.prototype.get=function(){return this.current},Et.prototype.setDefault=function(){this.set(this.default)},Et.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}};var Pt=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};Pt.prototype.get=function(){return this.current},Pt.prototype.setDefault=function(){this.set(this.default)},Pt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}};var At=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};At.prototype.get=function(){return this.current},At.prototype.setDefault=function(){this.set(this.default)},At.prototype.set=function(t){var e=this.context.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1};var Ct=function(t){this.context=t,this.default=null,this.current=this.default,this.dirty=!1};Ct.prototype.get=function(){return this.current},Ct.prototype.setDefault=function(){this.set(this.default)},Ct.prototype.set=function(t){(this.current!==t&&this.context.extVertexArrayObject||!0===this.dirty)&&(this.context.extVertexArrayObject.bindVertexArrayOES(t),this.current=t,this.dirty=!1)};var Dt=function(t){this.context=t,this.default=4,this.current=this.default,this.dirty=!1};Dt.prototype.get=function(){return this.current},Dt.prototype.setDefault=function(){this.set(this.default)},Dt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}};var Ot=function(t){this.context=t,this.default=!1,this.current=this.default,this.dirty=!1};Ot.prototype.get=function(){return this.current},Ot.prototype.setDefault=function(){this.set(this.default)},Ot.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}};var Mt=function(t){this.context=t,this.default=!1,this.current=this.default,this.dirty=!1};Mt.prototype.get=function(){return this.current},Mt.prototype.setDefault=function(){this.set(this.default)},Mt.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}};var It=function(t,e){this.context=t,this.default=null,this.current=this.default,this.dirty=!1,this.parent=e};It.prototype.get=function(){return this.current};var zt=function(t){function e(e,i){t.call(this,e,i),this.dirty=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setDefault=function(){this.set(this.default)},e.prototype.set=function(t){if(this.dirty||this.current!==t){var e=this.context.gl;this.context.bindFramebuffer.set(this.parent),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e.prototype.setDirty=function(){this.dirty=!0},e}(It),Lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setDefault=function(){this.set(this.default)},e.prototype.set=function(t){if(this.current!==t||!0===this.dirty){var e=this.context.gl;this.context.bindFramebuffer.set(this.parent),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}
vendor: 5,690 bytes, line 1
1(It),Rt=function(t,e,i){this.context=t,this.width=e,this.height=i;var n=t.gl,r=this.framebuffer=n.createFramebuffer();this.colorAttachment=new zt(t,r),this.depthAttachment=new Lt(t,r)};Rt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();e&&t.deleteTexture(e);var i=this.depthAttachment.get();i&&t.deleteRenderbuffer(i),t.deleteFramebuffer(this.framebuffer)};var Bt=function(t,e,i){this.func=t,this.mask=e,this.range=i};Bt.ReadOnly=!1,Bt.ReadWrite=!0,Bt.disabled=new Bt(519,Bt.ReadOnly,[0,1]);var jt=function(t,e,i,n,r,o){this.test=t,this.ref=e,this.mask=i,this.fail=n,this.depthFail=r,this.pass=o};jt.disabled=new jt({func:519,mask:0},0,0,7680,7680,7680);var Ft=function(t,e,i){this.blendFunction=t,this.blendColor=e,this.mask=i};Ft.disabled=new Ft(Ft.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),Ft.unblended=new Ft(Ft.Replace,t.Color.transparent,[!0,!0,!0,!0]),Ft.alphaBlended=new Ft([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Nt=function(t,e,i){this.enable=t,this.mode=e,this.frontFace=i};Nt.disabled=new Nt(!1,1029,2305),Nt.backCCW=new Nt(!0,1029,2305);var Vt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new it(this),this.clearDepth=new nt(this),this.clearStencil=new rt(this),this.colorMask=new ot(this),this.depthMask=new at(this),this.stencilMask=new st(this),this.stencilFunc=new lt(this),this.stencilOp=new ut(this),this.stencilTest=new ct(this),this.depthRange=new ht(this),this.depthTest=new pt(this),this.depthFunc=new ft(this),this.blend=new dt(this),this.blendFunc=new mt(this),this.blendColor=new yt(this),this.blendEquation=new vt(this),this.cullFace=new gt(this),this.cullFaceSide=new _t(this),this.frontFace=new bt(this),this.program=new xt(this),this.activeTexture=new wt(this),this.viewport=new Tt(this),this.bindFramebuffer=new kt(this),this.bindRenderbuffer=new St(this),this.bindTexture=new Et(this),this.bindVertexBuffer=new Pt(this),this.bindElementBuffer=new At(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new Ct(this),this.pixelStoreUnpack=new Dt(this),this.pixelStoreUnpackPremultiplyAlpha=new Ot(this),this.pixelStoreUnpackFlipY=new Mt(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&t.getExtension("OES_texture_half_float_linear")};Vt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Vt.prototype.createIndexBuffer=function(t,e){return new Q(this,t,e)},Vt.prototype.createVertexBuffer=function(t,e,i){return new et(this,t,e,i)},Vt.prototype.createRenderbuffer=function(t,e,i){var n=this.gl,r=n.createRenderbuffer();return this.bindRenderbuffer.set(r),n.renderbufferStorage(n.RENDERBUFFER,t,e,i),this.bindRenderbuffer.set(null),r},Vt.prototype.createFramebuffer=function(t,e){return new Rt(this,t,e)},Vt.prototype.clear=function(t){var e=t.color,i=t.depth,n=this.gl,r=0;e&&(r|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==i&&(r|=n.DEPTH_BUFFER_BIT,this.clearDepth.set(i),this.depthMask.set(!0)),n.clear(r)},Vt.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Vt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Vt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Vt.prototype.setColorMode=function(e){t.isEqual(e.blendFunction,Ft.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Vt.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Ut=function(e){function i(i,n,r){var o=this;e.call(this),this.id=i,this.dispatcher=r,this.on("data",function(t){"source"===t.dataType&&"metadata"===t.sourceDataType&&(o._sourceLoaded=!0),o._sourceLoaded&&!o._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(o.reload(),o.transform&&o.update(o.transform))}),this.on("error",function(){o._sourceErrored=!0}),this._source=X(i,n,r,this),this._tiles={},this._cache=new $(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={}
vendor: 9,378 bytes, line 1
1,this._maxTileCacheSize=null,this._coveredTiles={},this._state=new t.SourceFeatureState}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t)},i.prototype.onRemove=function(t){this._source&&this._source.onRemove&&this._source.onRemove(t)},i.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return!1}return!0},i.prototype.getSource=function(){return this._source},i.prototype.pause=function(){this._paused=!0},i.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform)}},i.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},i.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,function(){})},i.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,function(){})},i.prototype.serialize=function(){return this._source.serialize()},i.prototype.prepare=function(t){for(var e in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles)this._tiles[e].upload(t)},i.prototype.getIds=function(){return Object.keys(this._tiles).map(Number).sort(Yt)},i.prototype.getRenderableIds=function(e){var i=this,n=[];for(var r in i._tiles)i._isIdRenderable(+r,e)&&n.push(+r);return e?n.sort(function(e,n){var r=i._tiles[e].tileID,o=i._tiles[n].tileID,a=new t.Point(r.canonical.x,r.canonical.y)._rotate(i.transform.angle),s=new t.Point(o.canonical.x,o.canonical.y)._rotate(i.transform.angle);return r.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.x}):n.sort(Yt)},i.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&&this._isIdRenderable(e.tileID.key)},i.prototype._isIdRenderable=function(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())},i.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading")},i.prototype._reloadTile=function(t,e){var i=this._tiles[t];i&&("loading"!==i.state&&(i.state=e),this._loadTile(i,this._tileLoaded.bind(this,i,t,e)))},i.prototype._tileLoaded=function(e,i,n,r){if(r)return e.state="errored",void(404!==r.status?this._source.fire(new t.ErrorEvent(r,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(i,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}))},i.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),i=0;i<e.length;i++){var n=e[i];if(t.neighboringTiles&&t.neighboringTiles[n]){var r=this.getTileByID(n);o(t,r),o(r,t)}}function o(t,e){t.needsHillshadePrepare=!0;var i=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,r=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===i&&0===n||Math.abs(n)>1||(Math.abs(i)>1&&(1===Math.abs(i+r)?i+=r:1===Math.abs(i-r)&&(i-=r)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,i,n),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},i.prototype.getTile=function(t){return this.getTileByID(t.key)},i.prototype.getTileByID=function(t){return this._tiles[t]},i.prototype.getZoom=function(t){return t.zoom+t.scaleZoom(t.tileSize/this._source.tileSize)},i.prototype._retainLoadedChildren=function(t,e,i,n){for(var r in this._tiles){var o=this._tiles[r];if(!(n[r]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>i)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[a.key]=a;break}}}},i.prototype.findLoadedParent=function(t,e){for(var i=t.overscaledZ-1;i>=e;i--){var n=t.scaledTo(i);if(!n)return;var r=String(n.key),o=this._tiles[r];if(o&&o.hasData())return o;if(this._cache.has(n))return this._cache.get(n)}},i.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=Math.floor(5*e),n="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._cache.setMaxSize(n)},i.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,i=Math.round(e);if(this._prevLng=t,i){var n={};for(var r in this._tiles){var o=this._tiles[r];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+i),n[o.tileID.key]=o}for(var a in this._tiles=n,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},i.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var r;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?r=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)}):(r=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(r=r.filter(function(t){return n._source.hasTile(t)}))):r=[];var o=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(e)),a=Math.max(o-i.maxOverzooming,this._source.minzoom),s=Math.max(o+i.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(r,o);if(Ht(this._source.type)){for(var u={},c={},h=0,p=Object.keys(l);h<p.length;h+=1){var f=p[h],d=l[f],m=n._tiles[f];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=t.browser.now())){var y=n.findLoadedParent(d,a);y&&(n._addTile(y.tileID),u[y.tileID.key]=y.tileID),c[f]=d}}for(var v in this._retainLoadedChildren(c,o,s,l),u)l[v]||(n._coveredTiles[v]=!0,l[v]=u[v])}for(var g in l)n._tiles[g].clearFadeHold();for(var _=0,b=t.keysDifference(this._tiles,l);_<b.length;_+=1){var x=b[_],w=n._tiles[x];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(n.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||n._removeTile(x)}}},i.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)},i.prototype._updateRetainedTiles=function(t,e){for(var n={},r={},o=Math.max(e-i.maxOverzooming,this._source.minzoom),a=Math.max(e+i.maxUnderzooming,this._source.minzoom),s={},l=0,u=t;l<u.length;l+=1){var c=u[l],h=this._addTile(c);n[c.key]=c,h.hasData()||e<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,e,a,n);for(var p=0,f=t;p<f.length;p+=1){var d=f[p],m=this._tiles[d.key];if(!m.hasData()){if(e+1>this._source.maxzoom){var y=d.children(this._source.maxzoom)[0],v=this.getTile(y);if(v&&v.hasData()){n[y.key]=y;continue}}else{var g=d.children(this._source.maxzoom);if(n[g[0].key]&&n[g[1].key]&&n[g[2].key]&&n[g[3].key])continue}for(var _=m.wasRequested(),b=d.overscaledZ-1;b>=o;--b){var x=d.scaledTo(b);if(r[x.key])break;if(r[x.key]=!0,!(m=this.getTile(x))&&_&&(m=this._addTile(x)),m&&(n[x.key]=x,_=m.wasRequested(),m.hasData()))break}}}return n},i.prototype._addTile=function(e){var i=this._tiles[e.key];if(i)return i;(i=this._cache.getAndRemove(e))&&(this._setTileReloadTimer(e.key,i),i.tileID=e,this._state.initializeTileState(i,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,i)));var n=Boolean(i);return n||(i=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(i,this._tileLoaded.bind(this,i,e.key,i.state))),i?(i.uses++,this._tiles[e.key]=i,n||this._source.fire(new t.Event("dataloading",{tile:i,coord:i.tileID,dataType:"source"})),i):null},i.prototype._setTileReloadTimer=function(t,e){var i=this;t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&&(this._timers[t]=setTimeout(function(){i._reloadTile(t,"expired"),delete i._timers[t]},n))},i.prototype._removeTile=function(t){var e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},i.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},i.prototype.tilesIn=function(e,i){for(var n=[],r=this.getIds(),o=1/0,a=1/0,s=-1/0,l=-1/0,u=e[0].zoom,c=0;c<e.length;c++){var h=e[c];o=Math.min(o,h.column),a=Math.min(a,h.row),s=Math.max(s,h.column),l=Math.max(l,h.row)}for(var p=0;p<r.length;p++){var f=this._tiles[r[p]];if(!f.holdingForFade()){var d=f.tileID,m=Math.pow(2,this.transform.zoom-f.tileID.overscaledZ
1),y=i*f.queryPadding*t.EXTENT/f.tileSize/m,v=[qt(d,new t.Coordinate(o,a,u)),qt(d,new t.Coordinate(s,l,u))];if(v[0].x-y<t.EXTENT&&v[0].y-y<t.EXTENT&&v[1].x+y>=0&&v[1].y+y>=0){for(var g=[],_=0;_<e.length;_++)g.push(qt(d,e[_]));n.push({tile:f,tileID:d,queryGeometry:[g],scale:m})}}}return n},i.prototype.getVisibleCoordinates=function(t){for(var e=this,i=this.getRenderableIds(t).map(function(t){return e._tiles[t].tileID}),n=0,r=i;n<r.length;n+=1){var o=r[n];o.posMatrix=e.transform.calculatePosMatrix(o.toUnwrapped())}return i},i.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Ht(this._source.type))for(var e in this._tiles){var i=this._tiles[e];if(void 0!==i.fadeEndTime&&i.fadeEndTime>=t.browser.now())return!0}return!1},i.prototype.setFeatureState=function(t,e,i){t=t||"_geojsonTileLayer",this._state.updateState(t,e,i)},i.prototype.getFeatureState=function(t,e){return t=t||"_geojsonTileLayer",this._state.getState(t,e)},i}(t.Evented);function qt(e,i){var n=i.zoomTo(e.canonical.z);return new t.Point((n.column-(e.canonical.x+e.wrap*Math.pow(2,e.canonical.z)))*t.EXTENT,(n.row-e.canonical.y)*t.EXTENT)}function Yt(t,e){return t%32-e%32||e-t}function Ht(t){return"raster"===t||"image"===t||"video"===t}function Wt(){return new t.window.Worker(Nn.workerUrl)}Ut.maxOverzooming=10,Ut.maxUnderzooming=3;var Gt,Zt=function(){this.active={}};function Xt(e,i){var n={};for(var r in e)"ref"!==r&&(n[r]=e[r]);return t.refProperties.forEach(function(t){t in i&&(n[t]=i[t])}),n}function Kt(t){t=t.slice();for(var e=Object.create(null),i=0;i<t.length;i++)e[t[i].id]=t[i];for(var n=0;n<t.length;n++)"ref"in t[n]&&(t[n]=Xt(t[n],e[t[n].ref]));return t}Zt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length<Zt.workerCount;)this.workers.push(new Wt);return this.active[t]=!0,this.workers.slice()},Zt.prototype.release=function(t){delete this.active[t],0===Object.keys(this.active).length&&(this.workers.forEach(function(t){t.terminate()}),this.workers=null)},Zt.workerCount=Math.max(Math.floor(t.browser.hardwareConcurrency/2),1);var Jt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function $t(t,e,i){i.push({command:Jt.addSource,args:[t,e[t]]})}function Qt(t,e,i){e.push({command:Jt.removeSource,args:[t]}),i[t]=!0}function te(t,e,i,n){Qt(t,i,n),$t(t,e,i)}function ee(e,i,n){var r;for(r in e[n])if(e[n].hasOwnProperty(r)&&"data"!==r&&!t.isEqual(e[n][r],i[n][r]))return!1;for(r in i[n])if(i[n].hasOwnProperty(r)&&"data"!==r&&!t.isEqual(e[n][r],i[n][r]))return!1;return!0}function ie(e,i,n,r,o,a){var s;for(s in i=i||{},e=e||{})e.hasOwnProperty(s)&&(t.isEqual(e[s],i[s])||n.push({command:a,args:[r,s,i[s],o]}));for(s in i)i.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(t.isEqual(e[s],i[s])||n.push({command:a,args:[r,s,i[s],o]}))}function ne(t){return t.id}function re(t,e){return t[e.id]=e,t}var oe=function(t,e,i){var n=this.boxCells=[],r=this.circleCells=[];this.xCellCount=Math.ceil(t/i),this.yCellCount=Math.ceil(e/i);for(var o=0;o<this.xCellCount*this.yCellCount;o++)n.push([]),r.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};oe.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},oe.prototype.insert=function(t,e,i,n,r){this._forEachCell(e,i,n,r,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(n),this.bboxes.push(r)},oe.prototype.insertCircle=function(t,e,i,n){this._forEachCell(e-n,i-n,e+n,i+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(i),this.circles.push(n)}
vendor: 4,810 bytes, line 1
1,oe.prototype._insertBoxCell=function(t,e,i,n,r,o){this.boxCells[r].push(o)},oe.prototype._insertCircleCell=function(t,e,i,n,r,o){this.circleCells[r].push(o)},oe.prototype._query=function(t,e,i,n,r,o){if(i<0||t>this.width||n<0||e>this.height)return!r&&[];var a=[];if(t<=0&&e<=0&&this.width<=i&&this.height<=n){if(r)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],h=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-h,y1:c-h,x2:u+h,y2:c+h})}return o?a.filter(o):a}var p={hitTest:r,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,i,n,this._queryCell,a,p,o),r?a.length>0:a},oe.prototype._queryCircle=function(t,e,i,n,r){var o=t-i,a=t+i,s=e-i,l=e+i;if(a<0||o>this.width||l<0||s>this.height)return!n&&[];var u=[],c={hitTest:n,circle:{x:t,y:e,radius:i},seenUids:{box:{},circle:{}}};return this._forEachCell(o,s,a,l,this._queryCellCircle,u,c,r),n?u.length>0:u},oe.prototype.query=function(t,e,i,n,r){return this._query(t,e,i,n,!1,r)},oe.prototype.hitTest=function(t,e,i,n,r){return this._query(t,e,i,n,!0,r)},oe.prototype.hitTestCircle=function(t,e,i,n){return this._queryCircle(t,e,i,!0,n)},oe.prototype._queryCell=function(t,e,i,n,r,o,a,s){var l=a.seenUids,u=this.boxCells[r];if(null!==u)for(var c=this.bboxes,h=0,p=u;h<p.length;h+=1){var f=p[h];if(!l.box[f]){l.box[f]=!0;var d=4*f;if(t<=c[d+2]&&e<=c[d+3]&&i>=c[d+0]&&n>=c[d+1]&&(!s||s(this.boxKeys[f]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[f],x1:c[d],y1:c[d+1],x2:c[d+2],y2:c[d+3]})}}}var m=this.circleCells[r];if(null!==m)for(var y=this.circles,v=0,g=m;v<g.length;v+=1){var _=g[v];if(!l.circle[_]){l.circle[_]=!0;var b=3*_;if(this._circleAndRectCollide(y[b],y[b+1],y[b+2],t,e,i,n)&&(!s||s(this.circleKeys[_]))){if(a.hitTest)return o.push(!0),!0;var x=y[b],w=y[b+1],T=y[b+2];o.push({key:this.circleKeys[_],x1:x-T,y1:w-T,x2:x+T,y2:w+T})}}}},oe.prototype._queryCellCircle=function(t,e,i,n,r,o,a,s){var l=a.circle,u=a.seenUids,c=this.boxCells[r];if(null!==c)for(var h=this.bboxes,p=0,f=c;p<f.length;p+=1){var d=f[p];if(!u.box[d]){u.box[d]=!0;var m=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,h[m+0],h[m+1],h[m+2],h[m+3])&&(!s||s(this.boxKeys[d])))return o.push(!0),!0}}var y=this.circleCells[r];if(null!==y)for(var v=this.circles,g=0,_=y;g<_.length;g+=1){var b=_[g];if(!u.circle[b]){u.circle[b]=!0;var x=3*b;if(this._circlesCollide(v[x],v[x+1],v[x+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[b])))return o.push(!0),!0}}},oe.prototype._forEachCell=function(t,e,i,n,r,o,a,s){for(var l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),c=this._convertToXCellCoord(i),h=this._convertToYCellCoord(n),p=l;p<=c;p++)for(var f=u;f<=h;f++){var d=this.xCellCount*f+p;if(r.call(this,t,e,i,n,d,o,a,s))return}},oe.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},oe.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},oe.prototype._circlesCollide=function(t,e,i,n,r,o){var a=n-t,s=r-e,l=i+o;return l*l>a*a+s*s},oe.prototype._circleAndRectCollide=function(t,e,i,n,r,o,a){var s=(o-n)/2,l=Math.abs(t-(n+s));if(l>s+i)return!1;var u=(a-r)/2,c=Math.abs(e-(r+u));if(c>u+i)return!1;if(l<=s||c<=u)return!0;var h=l-s,p=c-u;return h*h+p*p<=i*i};var ae=t.properties.layout;function se(e,i,n,r,o){var a=t.identity(new Float32Array(16));return i?(t.identity(a),t.scale(a,a,[1/o,1/o,1]),n||t.rotateZ(a,a,r.angle)):(t.scale(a,a,[r.width/2,-r.height/2,1]),t.translate(a,a,[1,-1,0]),t.multiply(a,a,e)),a}function le(e,i,n,r,o){var a=t.identity(new Float32Array(16));return i?(t.multiply(a,a,e),t.scale(a,a,[o,o,1]),n||t.rotateZ(a,a,-r.angle)):(t.scale(a,a,[1,-1,1]),t.translate(a,a,[-1,-1,0]),t.scale(a,a,[2/r.width,2/r.height,1])),a}function ue(e,i){var n=[e.x,e.y,0,1];_e(n,n,i);var r=n[3];return{point:new t.Point(n[0]/r,n[1]/r),signedDistanceFromCamera:r}}function ce(t,e){var i=t[0]/t[3],n=t[1]/t[3];return i>=-e[0]&&i<=e[0]&&n>=-e[1]&&n<=e[1]}function he(e,i,n,r,o,a,s,l){var u=r?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,n.transform.zoom,ae.properties[r?"text-size":"icon-size"]),h=[256/n.width*2+1,256/n.height*2+1],p=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;p.clear();for(var f=e.lineVertexArray,d=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=n.transform.width/n.transform.height,y=!1,v=0;v<d.length;v++){var g=d.get(v);if(g.hidden||g.writingMode===t.WritingMode.vertical&&!y)ge(g.numGlyphs,p);else{y=!1;var _=[g.anchorX,g.anchorY,0,1];if(t.transformMat4(_,_,i),ce(_,h)){var b=.5+_[3]/n.transform.cameraToCenterDistance*.5,x=t.evaluateSizeForFeature
vendor: 8,398 bytes, line 1
1(u,c,g),w=s?x*b:x/b,T=new t.Point(g.anchorX,g.anchorY),k=ue(T,o).point,S={},E=de(g,w,!1,l,i,o,a,e.glyphOffsetArray,f,p,k,T,S,m);y=E.useVertical,(E.notEnoughRoom||y||E.needsFlipping&&de(g,w,!0,l,i,o,a,e.glyphOffsetArray,f,p,k,T,S,m).notEnoughRoom)&&ge(g.numGlyphs,p)}else ge(g.numGlyphs,p)}}r?e.text.dynamicLayoutVertexBuffer.updateData(p):e.icon.dynamicLayoutVertexBuffer.updateData(p)}function pe(t,e,i,n,r,o,a,s,l,u,c,h){var p=s.glyphStartIndex+s.numGlyphs,f=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,m=e.getoffsetX(s.glyphStartIndex),y=e.getoffsetX(p-1),v=ye(t*m,i,n,r,o,a,s.segment,f,d,l,u,c,h);if(!v)return null;var g=ye(t*y,i,n,r,o,a,s.segment,f,d,l,u,c,h);return g?{first:v,last:g}:null}function fe(e,i,n,r){return e===t.WritingMode.horizontal&&Math.abs(n.y-i.y)>Math.abs(n.x-i.x)*r?{useVertical:!0}:(e===t.WritingMode.vertical?i.y<n.y:i.x>n.x)?{needsFlipping:!0}:null}function de(e,i,n,r,o,a,s,l,u,c,h,p,f,d){var m,y=i/24,v=e.lineOffsetX*i,g=e.lineOffsetY*i;if(e.numGlyphs>1){var _=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,x=e.lineStartIndex+e.lineLength,w=pe(y,l,v,g,n,h,p,e,u,a,f,!1);if(!w)return{notEnoughRoom:!0};var T=ue(w.first.point,s).point,k=ue(w.last.point,s).point;if(r&&!n){var S=fe(e.writingMode,T,k,d);if(S)return S}m=[w.first];for(var E=e.glyphStartIndex+1;E<_-1;E++)m.push(ye(y*l.getoffsetX(E),v,g,n,h,p,e.segment,b,x,u,a,f,!1));m.push(w.last)}else{if(r&&!n){var P=ue(p,o).point,A=e.lineStartIndex+e.segment+1,C=new t.Point(u.getx(A),u.gety(A)),D=ue(C,o),O=D.signedDistanceFromCamera>0?D.point:me(p,C,P,1,o),M=fe(e.writingMode,P,O,d);if(M)return M}var I=ye(y*l.getoffsetX(e.glyphStartIndex),v,g,n,h,p,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,a,f,!1);if(!I)return{notEnoughRoom:!0};m=[I]}for(var z=0,L=m;z<L.length;z+=1){var R=L[z];t.addDynamicAttributes(c,R.point,R.angle)}return{}}function me(t,e,i,n,r){var o=ue(t.add(t.sub(e)._unit()),r).point,a=i.sub(o);return i.add(a._mult(n/a.mag()))}function ye(e,i,n,r,o,a,s,l,u,c,h,p,f){var d=r?e-i:e+i,m=d>0?1:-1,y=0;r&&(m*=-1,y=Math.PI),m<0&&(y+=Math.PI);for(var v=m>0?l+s:l+s+1,g=v,_=o,b=o,x=0,w=0,T=Math.abs(d);x+w<=T;){if((v+=m)<l||v>=u)return null;if(b=_,void 0===(_=p[v])){var k=new t.Point(c.getx(v),c.gety(v)),S=ue(k,h);if(S.signedDistanceFromCamera>0)_=p[v]=S.point;else{var E=v-m;_=me(0===x?a:new t.Point(c.getx(E),c.gety(E)),k,b,T-x+1,h)}}x+=w,w=b.dist(_)}var P=(T-x)/w,A=_.sub(b),C=A.mult(P)._add(b);return C._add(A._unit()._perp()._mult(n*m)),{point:C,angle:y+Math.atan2(_.y-b.y,_.x-b.x),tileDistance:f?{prevTileDistance:v-m===g?0:c.gettileUnitDistanceFromAnchor(v-m),lastSegmentViewportDistance:T-x}:null}}var ve=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ge(t,e){for(var i=0;i<t;i++){var n=e.length;e.resize(n+4),e.float32.set(ve,3*n)}}function _e(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[4]*r+i[12],t[1]=i[1]*n+i[5]*r+i[13],t[3]=i[3]*n+i[7]*r+i[15],t}var be=function(t,e,i){void 0===e&&(e=new oe(t.width+200,t.height+200,25)),void 0===i&&(i=new oe(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=i,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function xe(t,e,i){t[e+4]=i?1:0}function we(e,i,n){return i*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}be.prototype.placeCollisionBox=function(t,e,i,n,r){var o=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),a=i*o.perspectiveRatio,s=t.x1*a+o.point.x,l=t.y1*a+o.point.y,u=t.x2*a+o.point.x,c=t.y2*a+o.point.y;return!this.isInsideGrid(s,l,u,c)||!e&&this.grid.hitTest(s,l,u,c,r)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},be.prototype.approximateTileDistance=function(t,e,i,n,r){var o=r?1:n/this.pitchfactor,a=t.lastSegmentViewportDistance*i;return t.prevTileDistance+a+(o-1)*a*Math.abs(Math.sin(e))},be.prototype.placeCollisionCircles=function(e,i,n,r,o,a,s,l,u,c,h,p,f){var d=[],m=this.projectAnchor(u,o.anchorX,o.anchorY),y=l/24,v=o.lineOffsetX*l,g=o.lineOffsetY*l,_=new t.Point(o.anchorX,o.anchorY),b=pe(y,s,v,g,!1,ue(_,c).point,_,o,a,c,{},!0),x=!1,w=!1,T=!0,k=m.perspectiveRatio*r,S=1/(r*n),E=0,P=0;b&&(E=this.approximateTileDistance(b.first.tileDistance,b.first.angle,S,m.cameraDistance,p),P=this.approximateTileDistance(b.last.tileDistance,b.last.angle,S,m.cameraDistance,p));for(var A=0;A<e.length;A+=5){var C=e[A],D=e[A+1],O=e[A+2],M=e[A+3];if(!b||M<-E||M>P)xe(e,A,!1);else{var I=this.projectPoint(u,C,D),z=O*k;if(d.length>0){var L=I.x-d[d.length-4],R=I.y-d[d.length-3];if(z*z*2>L*L+R*R&&A+8<e.length){var B=e[A+8];if(B>-E&&B<P){xe(e,A,!1);continue}}}var j=A/5;d.push(I.x,I.y,z,j),xe(e,A,!0);var F=I.x-z,N=I.y-z,V=I.x+z,U=I.y+z;if(T=T&&this.isOffscreen(F,N,V,U),w=w||this.isInsideGrid(F,N,V,U),!i&&this.grid.hitTestCircle(I.x,I.y,z,f)){if(!h)return{circles:[],offscreen:!1};x=!0}}}return{circles:x||!w?[]:d,offscreen:T}},be.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var i=[],n=1/0,r=1/0,o=-1/0,a=-1/0,s=0,l=e;s<l.length;s+=1){var u=l[s],c=new t.Point(u.x+100,u.y+100);n=Math.min(n,c.x),r=Math.min(r,c.y),o=Math.max(o,c.x),a=Math.max(a,c.y),i.push(c)}for(var h={},p={},f=0,d=this.grid.query(n,r,o,a).concat(this.ignoredGrid.query(n,r,o,a));f<d.length;f+=1){var m=d[f],y=m.key;if(void 0===h[y.bucketInstanceId]&&(h[y.bucketInstanceId]={}),!h[y.bucketInstanceId][y.featureIndex]){var v=[new t.Point(m.x1,m.y1),new t.Point(m.x2,m.y1),new t.Point(m.x2,m.y2),new t.Point(m.x1,m.y2)];t.polygonIntersectsPolygon(i,v)&&(h[y.bucketInstanceId][y.featureIndex]=!0,void 0===p[y.bucketInstanceId]&&(p[y.bucketInstanceId]=[]),p[y.bucketInstanceId].push(y.featureIndex))}}return p},be.prototype.insertCollisionBox=function(t,e,i,n,r){var o={bucketInstanceId:i,featureIndex:n,collisionGroupID:r};(e?this.ignoredGrid:this.grid).insert(o,t[0],t[1],t[2],t[3])},be.prototype.insertCollisionCircles=function(t,e,i,n,r){for(var o=e?this.ignoredGrid:this.grid,a={bucketInstanceId:i,featureIndex:n,collisionGroupID:r},s=0;s<t.length;s+=4)o.insertCircle(a,t[s],t[s+1],t[s+2])},be.prototype.projectAnchor=function(t,e,i){var n=[e,i,0,1];return _e(n,n,t),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/n[3]*.5,cameraDistance:n[3]}},be.prototype.projectPoint=function(e,i,n){var r=[i,n,0,1];return _e(r,r,e),new t.Point((r[0]/r[3]+1)/2*this.transform.width+100,(-r[1]/r[3]+1)/2*this.transform.height+100)},be.prototype.projectAndGetPerspectiveRatio=function(e,i,n){var r=[i,n,0,1];return _e(r,r,e),{point:new t.Point((r[0]/r[3]+1)/2*this.transform.width+100,(-r[1]/r[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/r[3]*.5}},be.prototype.isOffscreen=function(t,e,i,n){return i<100||t>=this.screenRightBoundary||n<100||e>this.screenBottomBoundary},be.prototype.isInsideGrid=function(t,e,i,n){return i>=0&&t<this.gridRightBoundary&&n>=0&&e<this.gridBottomBoundary};var Te=function(t,e,i,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&&i?1:0,this.placed=i};Te.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var ke=function(t,e,i,n,r){this.text=new Te(t?t.text:null,e,i,r),this.icon=new Te(t?t.icon:null,e,n,r)};ke.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var Se=function(t,e,i){this.text=t,this.icon=e,this.skipFade=i},Ee=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};Ee.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var Pe=function(t,e,i){this.transform=t.clone(),this.collisionIndex=new be(this.transform),this.placements={},this.opacities={},this.stale=!1,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new Ee(i)};function Ae(t,e,i){t.emplaceBack(e?1:0,i?1:0),t.emplaceBack(e?1:0,i?1:0),t.emplaceBack(e?1:0,i?1:0),t.emplaceBack(e?1:0,i?1:0)}Pe.prototype.placeLayerTile=function(e,i,n,r){var o=i.getBucket(e),a=i.latestFeatureIndex;if(o&&a&&e.id===o.layerIds[0]){var s=i.collisionBoxArray,l=o.layers[0].layout,u=Math.pow(2,this.transform.zoom-i.tileID.overscaledZ
1),c=i.tileSize/t.EXTENT,h=this.transform.calculatePosMatrix(i.tileID.toUnwrapped()),p=se(h,"map"===l.get("text-pitch-alignment"),"map"===l.get("text-rotation-alignment"),this.transform,we(i,1,this.transform.zoom)),f=se(h,"map"===l.get("icon-pitch-alignment"),"map"===l.get("icon-rotation-alignment"),this.transform,we(i,1,this.transform.zoom));this.retainedQueryData[o.bucketInstanceId]=new function(t,e,i,n,r){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=i,this.bucketIndex=n,this.tileID=r}(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,i.tileID),this.placeLayerBucket(o,h,p,f,u,c,n,i.holdingForFade(),r,s)}},Pe.prototype.placeLayerBucket=function(e,i,n,r,o,a,s,l,u,c){var h=e.layers[0].layout,p=t.evaluateSizeForZoom(e.textSizeData,this.transform.zoom,t.properties.layout.properties["text-size"]),f=h.get("text-optional"),d=h.get("icon-optional"),m=h.get("text-allow-overlap"),y=h.get("icon-allow-overlap"),v=m&&(y||!e.hasIconData()||d),g=y&&(m||!e.hasTextData()||f),_=this.collisionGroups.get(e.sourceID);!e.collisionArrays&&c&&e.deserializeCollisionBoxes(c);for(var b=0;b<e.symbolInstances.length;b++){var x=e.symbolInstances.get(b);if(!u[x.crossTileID]){if(l){this.placements[x.crossTileID]=new Se(!1,!1,!1);continue}var w=!1,T=!1,k=!0,S=null,E=null,P=null,A=0,C=0,D=e.collisionArrays[b];D.textFeatureIndex&&(A=D.textFeatureIndex),D.textBox&&(w=(S=this.collisionIndex.placeCollisionBox(D.textBox,h.get("text-allow-overlap"),a,i,_.predicate)).box.length>0,k=k&&S.offscreen);var O=D.textCircles;if(O){var M=e.text.placedSymbolArray.get(x.horizontalPlacedTextSymbolIndex),I=t.evaluateSizeForFeature(e.textSizeData,p,M);E=this.collisionIndex.placeCollisionCircles(O,h.get("text-allow-overlap"),o,a,M,e.lineVertexArray,e.glyphOffsetArray,I,i,n,s,"map"===h.get("text-pitch-alignment"),_.predicate),w=h.get("text-allow-overlap")||E.circles.length>0,k=k&&E.offscreen}D.iconFeatureIndex&&(C=D.iconFeatureIndex),D.iconBox&&(T=(P=this.collisionIndex.placeCollisionBox(D.iconBox,h.get("icon-allow-overlap"),a,i,_.predicate)).box.length>0,k=k&&P.offscreen);var z=f||0===x.numGlyphVertices&&0===x.numVerticalGlyphVertices,L=d||0===x.numIconVertices;z||L?L?z||(T=T&&w):w=T&&w:T=w=T&&w,w&&S&&this.collisionIndex.insertCollisionBox(S.box,h.get("text-ignore-placement"),e.bucketInstanceId,A,_.ID),T&&P&&this.collisionIndex.insertCollisionBox(P.box,h.get("icon-ignore-placement"),e.bucketInstanceId,C,_.ID),w&&E&&this.collisionIndex.insertCollisionCircles(E.circles,h.get("text-ignore-placement"),e.bucketInstanceId,A,_.ID),this.placements[x.crossTileID]=new Se(w||v,T||g,k||e.justReloaded),u[x.crossTileID]=!0}}e.justReloaded=!1},Pe.prototype.commit=function(t,e){this.commitTime=e;var i=!1,n=t&&0!==this.fadeDuration?(this.commitTime-t.commitTime)/this.fadeDuration:1,r=t?t.opacities:{};for(var o in this.placements){var a=this.placements[o],s=r[o];s?(this.opacities[o]=new ke(s,n,a.text,a.icon),i=i||a.text!==s.text.placed||a.icon!==s.icon.placed):(this.opacities[o]=new ke(null,n,a.text,a.icon,a.skipFade),i=i||a.text||a.icon)}for(var l in r){var u=r[l];if(!this.opacities[l]){var c=new ke(u,n,!1,!1);c.isHidden()||(this.opacities[l]=c,i=i||u.text.placed||u.icon.placed)}}i?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},Pe.prototype.updateLayerOpacities=function(t,e){for(var i={},n=0,r=e;n<r.length;n+=1){var o=r[n],a=o.getBucket(t);a&&o.latestFeatureIndex&&t.id===a.layerIds[0]&&this.updateBucketOpacities(a,i,o.collisionBoxArray)}},Pe.prototype.updateBucketOpacities=function(t,e,i){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexArray.clear(),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexArray.clear();var n=t.layers[0].layout,r=new ke(null,0,!1,!1,!0),o=n.get("text-allow-overlap"),a=n.get("icon-allow-overlap"),s=new ke(null,0,o&&(a||!t.hasIconData()||n.get("icon-optional")),a&&(o||!t.hasTextData()||n.get("text-optional")),!0);!t.collisionArrays&&i&&(t.hasCollisionBoxData()||t.hasCollisionCircleData())&&t.deserializeCollisionBoxes(i);for(var l=0;l<t.symbolInstances.length;l++){var u=t.symbolInstances.get(l),c=e[u.crossTileID],h=this.opacities[u.crossTileID];c?h=r:h||(h=s,this.opacities[u.crossTileID]=h),e[u.crossTileID]=!0;var p=u.numGlyphVertices>0||u.numVerticalGlyphVertices>0,f=u.numIconVertices>0;if(p){for(var d=Re(h.text),m=(u.numGlyphVertices+u.numVerticalGlyphVertices)/4,y=0;y<m;y++)t.text.opacityVertexArray.emplaceBack(d);t.text.placedSymbolArray.get(u.horizontalPlacedTextSymbolIndex).hidden=h.text.isHidden(),u.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(u.verticalPlacedTextSymbolIndex).hidden=h.text.isHidden())}if(f){for(var v=Re(h.icon),g=0;g<u.numIconVertices/4;g++)t.icon.opacityVertexArray.emplaceBack(v);t.icon.placedSymbolArray.get(l).hidden=h.icon.isHidden()}if(t.hasCollisionBoxData()||t.hasCollisionCircleData()){var _=t.collisionArrays[l];if(_){_.textBox&&Ae(t.collisionBox.collisionVertexArray,h.text.placed,!1),_.iconBox&&Ae(t.collisionBox.collisionVertexArray,h.icon.placed,!1);var b=_.textCircles;if(b&&t.hasCollisionCircleData())for(var x=0;x<b.length;x+=5){var w=c||0===b[x+4];Ae(t.collisionCircle.collisionVertexArray,h.text.placed,w)}}}}t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasCollisionBoxData()&&t.collisionBox.collisionVertexBuffer&&t.collisionBox.collisionVertexBuffer.updateData(t.collisionBox.collisionVertexArray),t.hasCollisionCircleData()&&t.collisionCircle.collisionVertexBuffer&&t.collisionCircle.collisionVertexBuffer.updateData(t.collisionCircle.collisionVertexArray)},Pe.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration},Pe.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration},Pe.prototype.stillRecent=function(t){return"undefined"!==this.commitTime&&this.commitTime+this.fadeDuration>t},Pe.prototype.setStale=function(){this.stale=!0};var Ce=Math.pow(2,25),De=Math.pow(2,24),Oe=Math.pow(2,17),Me=Math.pow(2,16),Ie=Math.pow(2,9),ze=Math.pow(2,8),Le=Math.pow(2,1);function Re(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,i=Math.floor(127*t.opacity);return i*Ce+e*De+i*Oe+e*Me+i*Ie+e*ze+i*Le+e}var Be=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};
vendor: 4,079 bytes, line 1
1Be.prototype.continuePlacement=function(t,e,i,n,r){for(;this._currentTileIndex<t.length;){var o=t[this._currentTileIndex];if(e.placeLayerTile(n,o,i,this._seenCrossTileIDs),this._currentTileIndex++,r())return!0}};var je=function(t,e,i,n,r,o){this.placement=new Pe(t,r,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=n,this._done=!1};je.prototype.isDone=function(){return this._done},je.prototype.continuePlacement=function(e,i,n){for(var r=this,o=t.browser.now(),a=function(){var e=t.browser.now()-o;return!r._forceFullPlacement&&e>2};this._currentPlacementIndex>=0;){var s=i[e[r._currentPlacementIndex]],l=r.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(r._inProgressLayer||(r._inProgressLayer=new Be),r._inProgressLayer.continuePlacement(n[s.source],r.placement,r._showCollisionBoxes,s,a))return;delete r._inProgressLayer}r._currentPlacementIndex--}this._done=!0},je.prototype.commit=function(t,e){return this.placement.commit(t,e),this.placement};var Fe=512/t.EXTENT/2,Ne=function(t,e,i){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=i;for(var n=0;n<e.length;n++){var r=e.get(n),o=r.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:r.crossTileID,coord:this.getScaledCoordinates(r,t)})}};Ne.prototype.getScaledCoordinates=function(e,i){var n=i.canonical.z-this.tileID.canonical.z,r=Fe/Math.pow(2,n);return{x:Math.floor((i.canonical.x*t.EXTENT+e.anchorX)*r),y:Math.floor((i.canonical.y*t.EXTENT+e.anchorY)*r)}},Ne.prototype.findMatches=function(t,e,i){for(var n=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),r=0;r<t.length;r++){var o=t.get(r);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,e),l=0,u=a;l<u.length;l+=1){var c=u[l];if(Math.abs(c.coord.x-s.x)<=n&&Math.abs(c.coord.y-s.y)<=n&&!i[c.crossTileID]){i[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var Ve=function(){this.maxCrossTileID=0};Ve.prototype.generate=function(){return++this.maxCrossTileID};var Ue=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Ue.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var i in this.indexes){var n=this.indexes[i],r={};for(var o in n){var a=n[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),r[a.tileID.key]=a}this.indexes[i]=r}this.lng=t},Ue.prototype.addBucket=function(t,e,i){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n<e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var r=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>t.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,r)}else{var u=a[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,r)}}for(var c=0;c<e.symbolInstances.length;c++){var h=e.symbolInstances.get(c);h.crossTileID||(h.crossTileID=i.generate(),r[h.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Ne(t,e.symbolInstances,e.bucketInstanceId),!0},Ue.prototype.removeBucketCrossTileIDs=function(t,e){for(var i in e.indexedSymbolInstances)for(var n=0,r=e.indexedSymbolInstances[i];n<r.length;n+=1){var o=r[n];delete this.usedCrossTileIDs[t][o.crossTileID]}},Ue.prototype.removeStaleBuckets=function(t){var e=!1;for(var i in this.indexes){var n=this.indexes[i];for(var r in n)t[n[r].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,n[r]),delete n[r],e=!0)}return e};var qe=function(){this.layerIndexes={},this.crossTileIDs=new Ve,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};
1qe.prototype.addLayer=function(t,e,i){var n=this.layerIndexes[t.id];void 0===n&&(n=this.layerIndexes[t.id]=new Ue);var r=!1,o={};n.handleWrapJump(i);for(var a=0,s=e;a<s.length;a+=1){var l=s[a],u=l.getBucket(t);u&&t.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,u,this.crossTileIDs)&&(r=!0),o[u.bucketInstanceId]=!0)}return n.removeStaleBuckets(o)&&(r=!0),r},qe.prototype.pruneUnusedLayers=function(t){var e={};for(var i in t.forEach(function(t){e[t]=!0}),this.layerIndexes)e[i]||delete this.layerIndexes[i]};var Ye=function(e,i){return t.emitValidationErrors(e,i&&i.filter(function(t){return"source.canvas"!==t.identifier}))},He=t.pick(Jt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),We=t.pick(Jt,["setCenter","setZoom","setBearing","setPitch"]),Ge=function(e){function i(n,r){var o=this;void 0===r&&(r={}),e.call(this),this.map=n,this.dispatcher=new R((Gt||(Gt=new Zt),Gt),this),this.imageManager=new S,this.glyphManager=new O(n._transformRequest,r.localIdeographFontFamily),this.lineAtlas=new L(256,512),this.crossTileSymbolIndex=new qe,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._resetUpdates();var a=this;this._rtlTextPluginCallback=i.registerForPluginAvailability(function(t){for(var e in a.dispatcher.broadcast("loadRTLTextPlugin",t.pluginURL,t.completionCallback),a.sourceCaches)a.sourceCaches[e].reload()}),this.on("data",function(t){if("source"===t.dataType&&"metadata"===t.sourceDataType){var e=o.sourceCaches[t.sourceId];if(e){var i=e.getSource();if(i&&i.vectorLayerIds)for(var n in o._layers){var r=o._layers[n];r.source===i.id&&o._validateLayer(r)}}}})}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.loadURL=function(e,i){var n=this;void 0===i&&(i={}),this.fire(new t.Event("dataloading",{dataType:"style"}));var r="boolean"==typeof i.validate?i.validate:!d(e);e=function(t,e){if(!d(t))return t;var i=b(t);return i.path="/styles/v1"+i.path,f(i,e)}(e,i.accessToken);var o=this.map._transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(o,function(e,i){n._request=null,e?n.fire(new t.ErrorEvent(e)):i&&n._load(i,r)})},i.prototype.loadJSON=function(e,i){var n=this;void 0===i&&(i={}),this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.browser.frame(function(){n._request=null,n._load(e,!1!==i.validate)})},i.prototype._load=function(e,i){var n=this;if(!i||!Ye(this,t.validateStyle(e))){for(var r in this._loaded=!0,this.stylesheet=e,e.sources)n.addSource(r,e.sources[r],{validate:!1});e.sprite?this._spriteRequest=function(e,i,n){var r,o,a,s=t.browser.devicePixelRatio>1?"@2x":"",l=t.getJSON(i(y(e,s,".json"),t.ResourceType.SpriteJSON),function(t,e){l=null,a||(a=t,r=e,c())}),u=t.getImage(i(y(e,s,".png"),t.ResourceType.SpriteImage),function(t,e){u=null,a||(a=t,o=e,c())});function c(){if(a)n(a);else if(r&&o){var e=t.browser.getImageData(o),i={};for(var s in r){var l=r[s],u=l.width,c=l.height,h=l.x,p=l.y,f=l.sdf,d=l.pixelRatio,m=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,m,{x:h,y:p},{x:0,y:0},{width:u,height:c}),i[s]={data:m,pixelRatio:d,sdf:f}}n(null,i)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(e.sprite,this.map._transformRequest,function(e,i){if(n._spriteRequest=null,e)n.fire(new t.ErrorEvent(e));else if(i)for(var r in i)n.imageManager.addImage(r,i[r]);n.imageManager.setLoaded(!0),n.fire(new t.Event("data",{dataType:"style"}))}):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var o=Kt(this.stylesheet.layers);this._order=o.map(function(t){return t.id}),this._layers={};for(var a=0,s=o;a<s.length;a+=1){var l=s[a];(l=t.createStyleLayer(l)).setEventedParent(n,{layer:{id:l.id}}),n._layers[l.id]=l}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new z(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}},i.prototype._validateLayer=function(e){var i=this.sourceCaches[e.source];if(i){var n=e.sourceLayer;if(n){var r=i.getSource();("geojson"===r.type||r.vectorLayerIds&&-1===r.vectorLayerIds.indexOf(n))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+n+'" does not exist on source "'+r.id+'" as specified by style layer "'+e.id+'"')))}}},i.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},i.prototype._serializeLayers=function(t){for(var e=[],i=0,n=t;i<n.length;i+=1){var r=n[i],o=this._layers[r];"custom"!==o.type&&e.push(o.serialize())}return e},i.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},i.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},i.prototype.update=function(e){if(this._loaded){if(this._changed){var i=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);for(var r in(i.length||n.length)&&this._updateWorkerLayers(i,n),this._updatedSources){var o=this._updatedSources[r];"reload"===o?this._reloadSource(r):"clear"===o&&this._clearSource(r)}for(var a in this._updatedPaintProps)this._layers[a].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates(),this.fire(new t.Event("data",{dataType:"style"}))}for(var s in this.sourceCaches)this.sourceCaches[s].used=!1;for(var l=0,u=this._order;l<u.length;l+=1){var c=u[l],h=this._layers[c];h.recalculate(e),!h.isHidden(e.zoom)&&h.source&&(this.sourceCaches[h.source].used=!0)}this.light.recalculate(e),this.z=e.zoom}},i.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},i.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={}},i.prototype.setState=function(e){var i=this;if(this._checkLoaded(),Ye(this,t.validateStyle(e)))return!1;
vendor: 4,462 bytes, line 1
1(e=t.clone(e)).layers=Kt(e.layers);var n=function(e,i){if(!e)return[{command:Jt.setStyle,args:[i]}];var n=[];try{if(!t.isEqual(e.version,i.version))return[{command:Jt.setStyle,args:[i]}];t.isEqual(e.center,i.center)||n.push({command:Jt.setCenter,args:[i.center]}),t.isEqual(e.zoom,i.zoom)||n.push({command:Jt.setZoom,args:[i.zoom]}),t.isEqual(e.bearing,i.bearing)||n.push({command:Jt.setBearing,args:[i.bearing]}),t.isEqual(e.pitch,i.pitch)||n.push({command:Jt.setPitch,args:[i.pitch]}),t.isEqual(e.sprite,i.sprite)||n.push({command:Jt.setSprite,args:[i.sprite]}),t.isEqual(e.glyphs,i.glyphs)||n.push({command:Jt.setGlyphs,args:[i.glyphs]}),t.isEqual(e.transition,i.transition)||n.push({command:Jt.setTransition,args:[i.transition]}),t.isEqual(e.light,i.light)||n.push({command:Jt.setLight,args:[i.light]});var r={},o=[];!function(e,i,n,r){var o;for(o in i=i||{},e=e||{})e.hasOwnProperty(o)&&(i.hasOwnProperty(o)||Qt(o,n,r));for(o in i)i.hasOwnProperty(o)&&(e.hasOwnProperty(o)?t.isEqual(e[o],i[o])||("geojson"===e[o].type&&"geojson"===i[o].type&&ee(e,i,o)?n.push({command:Jt.setGeoJSONSourceData,args:[o,i[o].data]}):te(o,i,n,r)):$t(o,i,n))}(e.sources,i.sources,o,r);var a=[];e.layers&&e.layers.forEach(function(t){r[t.source]?n.push({command:Jt.removeLayer,args:[t.id]}):a.push(t)}),n=n.concat(o),function(e,i,n){i=i||[];var r,o,a,s,l,u,c,h=(e=e||[]).map(ne),p=i.map(ne),f=e.reduce(re,{}),d=i.reduce(re,{}),m=h.slice(),y=Object.create(null);for(r=0,o=0;r<h.length;r++)a=h[r],d.hasOwnProperty(a)?o++:(n.push({command:Jt.removeLayer,args:[a]}),m.splice(m.indexOf(a,o),1));for(r=0,o=0;r<p.length;r++)a=p[p.length-1-r],m[m.length-1-r]!==a&&(f.hasOwnProperty(a)?(n.push({command:Jt.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-o),1)):o++,u=m[m.length-r],n.push({command:Jt.addLayer,args:[d[a],u]}),m.splice(m.length-r,0,a),y[a]=!0);for(r=0;r<p.length;r++)if(s=f[a=p[r]],l=d[a],!y[a]&&!t.isEqual(s,l))if(t.isEqual(s.source,l.source)&&t.isEqual(s["source-layer"],l["source-layer"])&&t.isEqual(s.type,l.type)){for(c in ie(s.layout,l.layout,n,a,null,Jt.setLayoutProperty),ie(s.paint,l.paint,n,a,null,Jt.setPaintProperty),t.isEqual(s.filter,l.filter)||n.push({command:Jt.setFilter,args:[a,l.filter]}),t.isEqual(s.minzoom,l.minzoom)&&t.isEqual(s.maxzoom,l.maxzoom)||n.push({command:Jt.setLayerZoomRange,args:[a,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?ie(s[c],l[c],n,a,c.slice(6),Jt.setPaintProperty):t.isEqual(s[c],l[c])||n.push({command:Jt.setLayerProperty,args:[a,c,l[c]]}));for(c in l)l.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?ie(s[c],l[c],n,a,c.slice(6),Jt.setPaintProperty):t.isEqual(s[c],l[c])||n.push({command:Jt.setLayerProperty,args:[a,c,l[c]]}))}else n.push({command:Jt.removeLayer,args:[a]}),u=m[m.lastIndexOf(a)+1],n.push({command:Jt.addLayer,args:[l,u]})}(a,i.layers,n)}catch(t){console.warn("Unable to compute style diff:",t),n=[{command:Jt.setStyle,args:[i]}]}return n}(this.serialize(),e).filter(function(t){return!(t.command in We)});if(0===n.length)return!1;var r=n.filter(function(t){return!(t.command in He)});if(r.length>0)throw new Error("Unimplemented: "+r.map(function(t){return t.command}).join(", ")+".");return n.forEach(function(t){"setTransition"!==t.command&&i[t.command].apply(i,t.args)}),this.stylesheet=e,!0},i.prototype.addImage=function(e,i){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,i),this.fire(new t.Event("data",{dataType:"style"}))},i.prototype.getImage=function(t){return this.imageManager.getImage(t)},i.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this.fire(new t.Event("data",{dataType:"style"}))},i.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},i.prototype.addSource=function(e,i,n){var r=this;if(this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!i.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(i).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(i.type)>
vendor: 1,285 bytes, line 1
1=0&&this._validate(t.validateStyle.source,"sources."+e,i,null,n))){this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);var o=this.sourceCaches[e]=new Ut(e,i,this.dispatcher);o.style=this,o.setEventedParent(this,function(){return{isSourceLoaded:r.loaded(),source:o.serialize(),sourceId:e}}),o.onAdd(this.map),this._changed=!0}},i.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var i in this._layers)if(this._layers[i].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+i+'" is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&&n.onRemove(this.map),this._changed=!0},i.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},i.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},i.prototype.addLayer=function(e,i,n){this._checkLoaded();var r=e.id;if(this.getLayer(r))this.fire(new t.ErrorEvent(new Error('Layer with i
1d "'+r+'" already exists on this map')));else{var o;if("custom"===e.type){if(Ye(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(r,e.source),e=t.clone(e),e=t.extend(e,{source:r})),this._validate(t.validateStyle.layer,"layers."+r,e,{arrayIndex:-1},n))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:r}})}var a=i?this._order.indexOf(i):this._order.length;if(i&&-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" does not exist on this map.')));else{if(this._order.splice(a,0,r),this._layerOrderChanged=!0,this._layers[r]=o,this._removedLayers[r]&&o.source&&"custom"!==o.type){var s=this._removedLayers[r];delete this._removedLayers[r],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},i.prototype.moveLayer=function(e,i){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==i){var n=this._order.indexOf(e);this._order.splice(n,1);var r=i?this._order.indexOf(i):this._order.length;
1i&&-1===r?this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" does not exist on this map.'))):(this._order.splice(r,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},i.prototype.removeLayer=function(e){this._checkLoaded();var i=this._layers[e];if(i){i.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=i,delete this._layers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],i.onRemove&&i.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},i.prototype.getLayer=function(t){return this._layers[t]},i.prototype.setLayerZoomRange=function(e,i,n){this._checkLoaded();var r=this.getLayer(e);r?r.minzoom===i&&r.maxzoom===n||(null!=i&&(r.minzoom=i),null!=n&&(r.maxzoom=n),this._updateLayer(r)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},i.prototype.setFilter=function(e,i){this._checkLoaded();var n=this.getLayer(e);if(n){if(!t.isEqual(n.filter,i))return null==i?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(t.validateStyle.filter,"layers."+n.id+".filter",i)||(n.filter=t.clone(i),this._updateLayer(n)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},i.prototype.getFilter=function(e){return t.clone(this.getLayer(e).filter)},i.prototype.setLayoutProperty=function(e,i,n){this._checkLoaded();var r=this.getLayer(e);r?t.isEqual(r.getLayoutProperty(i),n)||(r.setLayoutProperty(i,n),this._updateLayer(r)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getLayoutProperty=function(t,e){return this.getLayer(t).getLayoutProperty(e)},i.prototype.setPaintProperty=function(e,i,n){this._checkLoaded();var r=this.getLayer(e);r?t.isEqual(r.getPaintProperty(i),n)||(r.setPaintProperty(i,n)&&this._updateLayer(r),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},i.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},i.prototype.setFeatureState=function(e,i){this._checkLoaded();var n=e.source,r=e.sourceLayer,o=this.sourceCaches[n],a=parseInt(e.id,10);void 0!==o?"vector"!==o.getSource().type||r?isNaN(a)||a<0?this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided and non-negative."))):o.setFeatureState(r,a,i):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types."))):this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},i.prototype.getFeatureState=function(e){this._checkLoaded();var i=e.source,n=e.sourceLayer,r=this.sourceCaches[i],o=parseInt(e.id,10);if(void 0!==r)if("vector"!==r.getSource().type||n){if(!(isNaN(o)||o<0))return r.getFeatureState(n,o);this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided and non-negative.")))}else this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));else this.fire(new t.ErrorEvent(new Error("The source '"+i+"' does not exist in the map's style.")))},i.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},i.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,function(t){return t.serialize()}),layers:this._serializeLayers(this._order)},function(t){return void 0!==t})},i.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},i.prototype._flattenRenderedFeatures=function(t){for(var e=[],i=this._order.length-1;i>=0;i--)for(var n=this._order[i],r=0,o=t;r<o.length;r+=1){var a=o[r][n];if(a)for(var s=0,l=a;s<l.length;s+=1){var u=l[s];e.push(u)}}return e},i.prototype.queryRenderedFeatures=function(e,i,n){i&&i.filter&&this._val
vendor: 4,901 bytes, line 1
1idate(t.validateStyle.filter,"queryRenderedFeatures.filter",i.filter);var r={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var o=0,a=i.layers;o<a.length;o+=1){var s=a[o],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];r[l.source]=!0}}var u=[],c=e.map(function(t){return n.pointCoordinate(t)});for(var h in this.sourceCaches)i.layers&&!r[h]||u.push(K(this.sourceCaches[h],this._layers,c,i,n));return this.placement&&u.push(function(t,e,i,n,r,o){for(var a={},s=r.queryRenderedSymbols(i),l=[],u=0,c=Object.keys(s).map(Number);u<c.length;u+=1){var h=c[u];l.push(o[h])}l.sort(J);for(var p=function(){var e=d[f],i=e.featureIndex.lookupSymbolFeatures(s[e.bucketInstanceId],e.bucketIndex,e.sourceLayerIndex,n.filter,n.layers,t);for(var r in i){var o=a[r]=a[r]||[],l=i[r];l.sort(function(t,i){var n=e.featureSortOrder;if(n){var r=n.indexOf(t.featureIndex);return n.indexOf(i.featureIndex)-r}return i.featureIndex-t.featureIndex});for(var u=0,c=l;u<c.length;u+=1){var h=c[u];o.push(h.feature)}}},f=0,d=l;f<d.length;f+=1)p();var m=function(i){a[i].forEach(function(n){var r=t[i],o=e[r.source].getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=o})};for(var y in a)m(y);return a}(this._layers,this.sourceCaches,e,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenRenderedFeatures(u)},i.prototype.querySourceFeatures=function(e,i){i&&i.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",i.filter);var n=this.sourceCaches[e];return n?function(t,e){for(var i=t.getRenderableIds().map(function(e){return t.getTileByID(e)}),n=[],r={},o=0;o<i.length;o++){var a=i[o],s=a.tileID.canonical.key;r[s]||(r[s]=!0,a.querySourceFeatures(n,e))}return n}(n,i):[]},i.prototype.addSourceType=function(t,e,n){return i.getSourceType(t)?n(new Error('A source type called "'+t+'" already exists.')):(i.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},n):n(null,null))},i.prototype.getLight=function(){return this.light.getLight()},i.prototype.setLight=function(e){this._checkLoaded();var i=this.light.getLight(),n=!1;for(var r in e)if(!t.isEqual(e[r],i[r])){n=!0;break}if(n){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e),this.light.updateTransitions(o)}},i.prototype._validate=function(e,i,n,r,o){return(!o||!1!==o.validate)&&Ye(this,e.call(t.validateStyle,t.extend({key:i,style:this.serialize(),value:n,styleSpec:t.styleSpec},r)))},i.prototype._remove=function(){for(var e in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginAvailable",this._rtlTextPluginCallback),this.sourceCaches)this.sourceCaches[e].clearTiles();this.dispatcher.remove()},i.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},i.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},i.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},i.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},i.prototype._updatePlacement=function(e,i,n,r){for(var o=!1,a=!1,s={},l=0,u=this._order;l<u.length;l+=1){var c=u[l],h=this._layers[c];if("symbol"===h.type){if(!s[h.source]){var p=this.sourceCaches[h.source];s[h.source]=p.getRenderableIds(!0).map(function(t){return p.getTileByID(t)}).sort(function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)})}var f=this.crossTileSymbolIndex.addLayer(h,s[h.source],e.center.lng);o=o||f}}this.crossTileSymbolIndex.pruneUnusedLayers(this._order);var d=this._layerOrderChanged;if((d||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.browser.now()))&&(this.pauseablePlacement=new je(e,this._order,d,i,n,r),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(this.placement,t.browser.now()),a=!0),o&&this.pauseablePlacement.placement.setStale()),a||o)for(var m=0,y=this._order;m<y.length;m+=1){var v=y[m],g=this._layers[v];"symbol"===g.type&&this.placement.updateLayerOpacities(g,s[g.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},i.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()}
1,i.prototype.getImages=function(t,e,i){this.imageManager.getImages(e.icons,i)},i.prototype.getGlyphs=function(t,e,i){this.glyphManager.getGlyphs(e.stacks,i)},i}(t.Evented);Ge.getSourceType=function(t){return Z[t]},Ge.setSourceType=function(t,e){Z[t]=e},Ge.registerForPluginAvailability=t.registerForPluginAvailability;var Ze=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),Xe={prelude:{fragmentSource:"#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif\n",vertexSource:"#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif\n\n// Unpack a pair of values that have been packed into a single float.\n// The packed values are assumed to be 8-bit unsigned integers, and are\n// packed like so:\n// packedValue = floor(input[0]) * 256 + input[1],\nvec2 unpack_float(const float packedValue) {\n    int packedIntValue = int(packedValue);\n    int v0 = packedIntValue / 256;\n    return vec2(v0, packedIntValue - v0 * 256);\n}\n\nvec2 unpack_opacity(const float packedOpacity) {\n    int intOpacity = int(packedOpacity) / 2;\n    return vec2(float(intOpacity) / 127.0, mod(packedOpacity, 2.0));\n}\n\n// To minimize the number of attributes needed, we encode a 4-component\n// color into a pair of floats (i.e. a vec2) as follows:\n// [ floor(color.r * 255) * 256 + color.g * 255,\n//   floor(color.b * 255) * 256 + color.g * 255 ]\nvec4 decode_color(const vec2 encodedColor) {\n    return vec4(\n        unpack_float(encodedColor[0]) / 255.0,\n        unpack_float(encodedColor[1]) / 255.0\n    );\n}\n\n// Unpack a pair of paint values and interpolate between them.\nfloat unpack_mix_vec2(const vec2 packedValue, const float t) {\n    return mix(packedValue[0], packedValue[1], t);\n}\n\n// Unpack a pair of paint values and interpolate between them.\nvec4 unpack_mix_color(const vec4 packedColors, const float t) {\n    vec4 minColor = decode_color(vec2(packedColors[0], packedColors[1]));\n    vec4 maxColor = decode_color(vec2(packedColors[2], packedColors[3]));\n    return mix(minColor, maxColor, t);\n}\n\n// The offset depends on how many pixels are between the world origin and the edge of the tile:\n// vec2 offset = mod(pixel_coord, size)\n//\n// At high zoom levels there are a ton of pixels between the world origin and the edge of the tile.\n// The glsl spec only guarantees 16 bits of precision for highp floats. We need more than that.\n//\n// The pixel_coord is passed in as two 16 bit values:\n// pixel_coord_upper = floor(pixel_coord / 2^16)\n// pixel_coord_lower = mod(pixel_coord, 2^16)\n//\n// The offset is calculated in a series of steps that should preserve this precision:\nvec2 get_pattern_pos(const vec2 pixel_coord_upper, const vec2 pixel_coord_lower,\n    const vec2 pattern_size, const float tile_units_to_pixels, const vec2 pos) {\n\n    vec2 offset = mod(mod(mod(pixel_coord_upper, pattern_size) * 256.0, pattern_size) * 256.0 + pixel_coord_lower, pattern_size);\n    return (tile_units_to_pixels * pos + offset) / pattern_size;\n}\n"},background:{fragmentSource:"uniform vec4 u_color;\nuniform float u_opacity;\n\nvoid main() {\n    gl_FragColor = u_color * u_opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"attribute vec2 a_pos;\n\nuniform mat4 u_matrix;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n}\n"},backgroundPattern:{fragmentSource:"uniform vec2 u_pattern_tl_a;\nuniform vec2 u_pattern_br_a;\nuniform vec2 u_pattern_tl_b;\nuniform vec2 u_pattern_br_b;\nuniform vec2 u_texsize;\nuniform float u_mix;\nuniform float u_opacity;\n\nuniform sampler2D u_image;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\n\nvoid main() {\n    vec2 imagecoord = mod(v_pos_a, 1.0);\n    vec2 pos = mix(u_pattern_tl_a / u_texsize, u_pattern_br_a / u_texsize, imagecoord);\n    vec4 color1 = texture2D(u_image, pos);\n\n    vec2 imagecoord_b = mod(v_pos_b, 1.0);\n    vec2 pos2 = mix(u_pattern_tl_b / u_texsize, u_pattern_br_b / u_texsize, imagecoord_b);\n    vec4 color2 = texture2D(u_image, pos2);\n\n    gl_FragColor = mix(color1, color2, u_mix) * u_opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_pattern_size_a;\nuniform vec2 u_pattern_size_b;\nuniform vec2 u_pixel_coord_upper;\nuniform vec2 u_pixel_coord_lower;\nuniform float u_scale_a;\nuniform float u_scale_b;\nuniform float u_tile_units_to_pixels;\n\nattribute vec2 a_pos;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n\n    v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_a * u_pattern_size_a, u_tile_units_to_pixels, a_pos);\n    v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, u_scale_b * u_pattern_size_b, u_tile_units_to_pixels, a_pos);\n}\n"},circle:{fragmentSource:"#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\n\nvarying vec3 v_data;\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize mediump float radius\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize highp vec4 stroke_color\n    #pragma mapbox: initialize mediump float stroke_width\n    #pragma mapbox: initialize lowp float stroke_opacity\n\n    vec2 extrude = v_data.xy;\n    float extrude_length = length(extrude);\n\n    lowp float antialiasblur = v_data.z;\n    float antialiased_blur = -max(blur, antialiasblur);\n\n    float opacity_t = smoothstep(0.0, antialiased_blur, extrude_length - 1.0);\n\n    float color_t = stroke_width < 0.01 ? 0.0 : smoothstep(\n        antialiased_blur,\n        0.0,\n        extrude_length - radiu
1s / (radius + stroke_width)\n    );\n\n    gl_FragColor = opacity_t * mix(color * opacity, stroke_color * stroke_opacity, color_t);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform bool u_scale_with_map;\nuniform bool u_pitch_with_map;\nuniform vec2 u_extrude_scale;\nuniform highp float u_camera_to_center_distance;\n\nattribute vec2 a_pos;\n\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\n\nvarying vec3 v_data;\n\nvoid main(void) {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize mediump float radius\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize highp vec4 stroke_color\n    #pragma mapbox: initialize mediump float stroke_width\n    #pragma mapbox: initialize lowp float stroke_opacity\n\n    // unencode the extrusion vector that we snuck into the a_pos vector\n    vec2 extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);\n\n    // multiply a_pos by 0.5, since we had it * 2 in order to sneak\n    // in extrusion data\n    vec2 circle_center = floor(a_pos * 0.5);\n    if (u_pitch_with_map) {\n        vec2 corner_position = circle_center;\n        if (u_scale_with_map) {\n            corner_position += extrude * (radius + stroke_width) * u_extrude_scale;\n        } else {\n            // Pitching the circle with the map effectively scales it with the map\n            // To counteract the effect for pitch-scale: viewport, we rescale the\n            // whole circle based on the pitch scaling effect at its central point\n            vec4 projected_center = u_matrix * vec4(circle_center, 0, 1);\n            corner_position += extrude * (radius + stroke_width) * u_extrude_scale * (projected_center.w / u_camera_to_center_distance);\n        }\n\n        gl_Position = u_matrix * vec4(corner_position, 0, 1);\n    } else {\n        gl_Position = u_matrix * vec4(circle_center, 0, 1);\n\n        if (u_scale_with_map) {\n            gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * u_camera_to_center_distance;\n        } else {\n            gl_Position.xy += extrude * (radius + stroke_width) * u_extrude_scale * gl_Position.w;\n        }\n    }\n\n    // This is a minimum blur distance that serves as a faux-antialiasing for\n    // the circle. since blur is a ratio of the circle's size and the intent is\n    // to keep the blur at roughly 1px, the two are inversely related.\n    lowp float antialiasblur = 1.0 / DEVICE_PIXEL_RATIO / (radius + stroke_width);\n\n    v_data = vec3(extrude.x, extrude.y, antialiasblur);\n}\n"},clippingMask:{fragmentSource:"void main() {\n    gl_FragColor = vec4(1.0);\n}\n",vertexSource:"attribute vec2 a_pos;\n\nuniform mat4 u_matrix;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n}\n"},heatmap:{fragmentSource:"#pragma mapbox: define highp float weight\n\nuniform highp float u_intensity;\nvarying vec2 v_extrude;\n\n// Gaussian kernel coefficient: 1 / sqrt(2 * PI)\n#define GAUSS_COEF 0.3989422804014327\n\nvoid main() {\n    #pragma mapbox: initialize highp float weight\n\n    // Kernel density estimation with a Gaussian kernel of size 5x5\n    float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude);\n    float val = weight * u_intensity * GAUSS_COEF * exp(d);\n\n    gl_FragColor = vec4(val, 1.0, 1.0, 1.0);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\n\nuniform mat4 u_matrix;\nuniform float u_extrude_scale;\nuniform float u_opacity;\nuniform float u_intensity;\n\nattribute vec2 a_pos;\n\nvarying vec2 v_extrude;\n\n// Effective \"0\" in the kernel density texture to adjust the kernel size to;\n// this empirically chosen number minimizes artifacts on overlapping kernels\n// for typical heatmap cases (assuming clustered source)\nconst highp float ZERO = 1.0 / 255.0 / 16.0;\n\n// Gaussian kernel coefficient: 1 / sqrt(2 * PI)\n#define GAUSS_COEF 0.3989422804014327\n\nvoid main(void) {\n    #pragma mapbox: initialize highp float weight\n    #pragma mapbox: initialize mediump float radius\n\n    // unencode the extrusion vector that we snuck into the a_pos vector\n    vec2 unscaled_extrude = vec2(mod(a_pos, 2.0) * 2.0 - 1.0);
1\n\n    // This 'extrude' comes in ranging from [-1, -1], to [1, 1].  We'll use\n    // it to produce the vertices of a square mesh framing the point feature\n    // we're adding to the kernel density texture.  We'll also pass it as\n    // a varying, so that the fragment shader can determine the distance of\n    // each fragment from the point feature.\n    // Before we do so, we need to scale it up sufficiently so that the\n    // kernel falls effectively to zero at the edge of the mesh.\n    // That is, we want to know S such that\n    // weight * u_intensity * GAUSS_COEF * exp(-0.5 * 3.0^2 * S^2) == ZERO\n    // Which solves to:\n    // S = sqrt(-2.0 * log(ZERO / (weight * u_intensity * GAUSS_COEF))) / 3.0\n    float S = sqrt(-2.0 * log(ZERO / weight / u_intensity / GAUSS_COEF)) / 3.0;\n\n    // Pass the varying in units of radius\n    v_extrude = S * unscaled_extrude;\n\n    // Scale by radius and the zoom-based scale factor to produce actual\n    // mesh position\n    vec2 extrude = v_extrude * radius * u_extrude_scale;\n\n    // multiply a_pos by 0.5, since we had it * 2 in order to sneak\n    // in extrusion data\n    vec4 pos = vec4(floor(a_pos * 0.5) + extrude, 0, 1);\n\n    gl_Position = u_matrix * pos;\n}\n"},heatmapTexture:{fragmentSource:"uniform sampler2D u_image;\nuniform sampler2D u_color_ramp;\nuniform float u_opacity;\nvarying vec2 v_pos;\n\nvoid main() {\n    float t = texture2D(u_image, v_pos).r;\n    vec4 color = texture2D(u_color_ramp, vec2(t, 0.5));\n    gl_FragColor = color * u_opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(0.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_world;\nattribute vec2 a_pos;\nvarying vec2 v_pos;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);\n\n    v_pos.x = a_pos.x;\n    v_pos.y = 1.0 - a_pos.y;\n}\n"},collisionBox:{fragmentSource:"\nvarying float v_placed;\nvarying float v_notUsed;\n\nvoid main() {\n\n    float alpha = 0.5;\n\n    // Red = collision, hide label\n    gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\n\n    // Blue = no collision, label is showing\n    if (v_placed > 0.5) {\n        gl_FragColor = vec4(0.0, 0.0, 1.0, 0.5) * alpha;\n    }\n\n    if (v_notUsed > 0.5) {\n        // This box not used, fade it out\n        gl_FragColor *= .1;\n    }\n}",vertexSource:"attribute vec2 a_pos;\nattribute vec2 a_anchor_pos;\nattribute vec2 a_extrude;\nattribute vec2 a_placed;\n\nuniform mat4 u_matrix;\nuniform vec2 u_extrude_scale;\nuniform float u_camera_to_center_distance;\n\nvarying float v_placed;\nvarying float v_notUsed;\n\nvoid main() {\n    vec4 projectedPoint = u_matrix * vec4(a_anchor_pos, 0, 1);\n    highp float camera_to_anchor_distance = projectedPoint.w;\n    highp float collision_perspective_ratio = clamp(\n        0.5 + 0.5 * (u_camera_to_center_distance / camera_to_anchor_distance),\n        0.0, // Prevents oversized near-field boxes in pitched/overzoomed tiles\n        4.0);\n\n    gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);\n    gl_Position.xy += a_extrude * u_extrude_scale * gl_Position.w * collision_perspective_ratio;\n\n    v_placed = a_placed.x;\n    v_notUsed = a_placed.y;\n}\n"},collisionCircle:{fragmentSource:"uniform float u_overscale_factor;\n\nvarying float v_placed;\nvarying float v_notUsed;\nvarying float v_radius;\nvarying vec2 v_extrude;\nvarying vec2 v_extrude_scale;\n\nvoid main() {\n    float alpha = 0.5;\n\n    // Red = collision, hide label\n    vec4 color = vec4(1.0, 0.0, 0.0, 1.0) * alpha;\n\n    // Blue = no collision, label is showing\n    if (v_placed > 0.5) {\n        color = vec4(0.0, 0.0, 1.0, 0.5) * alpha;\n    }\n\n    if (v_notUsed > 0.5) {\n        // This box not used, fade it out\n        color *= .2;\n    }\n\n    float extrude_scale_length = length(v_extrude_scale);\n    float extrude_length = length(v_extrude) * extrude_scale_length;\n    float stroke_width = 15.0 * extrude_scale_length / u_overscale_factor;\n    float radius = v_radius * extrude_scale_length;\n\n    float distance_to_edge = abs(extrude_length - radius);\n    float opacity_t = smoothstep(-stroke_width, 0.0, -distance_to_edge);\n\n    gl_FragColor = opacity_t * color;\n}\n",vertexSource:"attribute vec2 a_pos;\nattribute vec2 a_anchor_pos;\nattribute vec2 a_extrude;\nattribute vec2 a_placed;\n\nuniform mat4 u_matrix;\nuniform vec2 u_extrude_scale;\nuniform float u_camera_to_center_distance;\n\nvarying float v_placed;\nvarying float v_notUsed;\nvarying float v_radius;\n\nvarying vec2 v_extrude;\nvarying vec2 v_extrude_scale;\n\nvoid main() {\n    vec4 projectedPoint = u_matrix * vec4(a_anchor_pos, 0, 1);\n    highp float camera_to_anchor_distance = projectedPoint.w;\n    highp float collision_perspective_ratio = clamp(\n        0.5 + 0.5 * (u_camera_to_center_distance / camera_to_anchor_distance),\n        0.0, // Prevents oversized near-field circles in pitched/overzoomed tiles\n        4.0);\n\n    gl_Position = u_matrix * vec4(a_pos, 0.0, 1.0);\n\n    highp float padding_factor = 1.2;
1 // Pad the vertices slightly to make room for anti-alias blur\n    gl_Position.xy += a_extrude * u_extrude_scale * padding_factor * gl_Position.w * collision_perspective_ratio;\n\n    v_placed = a_placed.x;\n    v_notUsed = a_placed.y;\n    v_radius = abs(a_extrude.y); // We don't pitch the circles, so both units of the extrusion vector are equal in magnitude to the radius\n\n    v_extrude = a_extrude * padding_factor;\n    v_extrude_scale = u_extrude_scale * u_camera_to_center_distance * collision_perspective_ratio;\n}\n"},debug:{fragmentSource:"uniform highp vec4 u_color;\n\nvoid main() {\n    gl_FragColor = u_color;\n}\n",vertexSource:"attribute vec2 a_pos;\n\nuniform mat4 u_matrix;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n}\n"},fill:{fragmentSource:"#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize lowp float opacity\n\n    gl_FragColor = color * opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"attribute vec2 a_pos;\n\nuniform mat4 u_matrix;\n\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize lowp float opacity\n\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n}\n"},fillOutline:{fragmentSource:"#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\n\nvarying vec2 v_pos;\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 outline_color\n    #pragma mapbox: initialize lowp float opacity\n\n    float dist = length(v_pos - gl_FragCoord.xy);\n    float alpha = 1.0 - smoothstep(0.0, 1.0, dist);\n    gl_FragColor = outline_color * (alpha * opacity);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"attribute vec2 a_pos;\n\nuniform mat4 u_matrix;\nuniform vec2 u_world;\n\nvarying vec2 v_pos;\n\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 outline_color\n    #pragma mapbox: initialize lowp float opacity\n\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n    v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\n}\n"},fillOutlinePattern:{fragmentSource:"\nuniform vec2 u_texsize;\nuniform sampler2D u_image;\nuniform float u_fade;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\nvarying vec2 v_pos;\n\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    vec2 imagecoord = mod(v_pos_a, 1.0);\n    vec2 pos = mix(pattern_tl_a / u_texsize, pattern_br_a / u_texsize, imagecoord);\n    vec4 color1 = texture2D(u_image, pos);\n\n    vec2 imagecoord_b = mod(v_pos_b, 1.0);\n    vec2 pos2 = mix(pattern_tl_b / u_texsize, pattern_br_b / u_texsize, imagecoord_b);\n    vec4 color2 = texture2D(u_image, pos2);\n\n    // find distance to outline for alpha interpolation\n\n    float dist = length(v_pos - gl_FragCoord.xy);\n    float alpha = 1.0 - smoothstep(0.0, 1.0, dist);\n\n\n    gl_FragColor = mix(color1, color2, u_fade) * alpha * opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_world;\nuniform vec2 u_pixel_coord_upper;\nuniform vec2 u_pixel_coord_lower;\nuniform vec4 u_scale;\n\nattribute vec2 a_pos;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\nvarying vec2 v_pos;\n\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    float pixelRatio = u_scale.x;\n    float tileRatio = u_scale.y;\n    float fromScale = u_scale.z;\n    float toScale = u_scale.w;\n\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n\n    vec2 display_size_a = vec2((pattern_br_a.x - pattern_tl_a.x) / pixelRatio, (pattern_br_a.y - pattern_tl_a.y) / pixelRatio);\n    vec2 display_size_b = vec2((pattern_br_b.x - pattern_tl_b.x) / pixelRatio, (pattern_br_b.y - pattern_tl_b.y) / pixelRatio);\n\n    v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, fromScale * display_size_a, tileRatio, a_pos);\n    v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, toScale * display_size_b, tileRatio, a_pos);\n\n    v_pos = (gl_Position.xy / gl_Position.w + 1.0) / 2.0 * u_world;\n}\n"},fillPattern:{fragmentSource:"uniform vec2 u_texsize;\nuniform float u_fade;\n\nuniform sampler2D u_image;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\n\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    vec2 imagecoord = mod(v_pos_a, 1.0);\n    vec2 pos = mix(pattern_tl_a / u_texsize, pattern_br_a / u_texsize, imagecoord);\n    vec4 color1 = texture2D(u_image, pos);\n\n    vec2 imagecoord_b = mod(v_pos_b, 1.0);\n    vec2 pos2 = mix(pattern_tl_b / u_texsize, pattern_br_b / u_texsize, imagecoord_b);\n    vec4 color2 = texture2D(u_image, pos2);\n\n    gl_FragColor = mix(color1, color2, u_fade) * opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_pixel_coord_upper;\nuniform vec2 u_pixel_coord_lower;\nuniform vec4 u_scale;\n\nattribute vec2 a_pos;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\n\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    float pixelRatio = u_scale.x;\n    float tileZoomRatio = u_scale.y;\n    float fromScale = u_scale.z;\n    float toScale = u_scale.w;\n\n    vec2 display_size_a = vec2((pattern_br_a.x - pattern_tl_a.x) / pixelRatio, (pattern_br_a.y - pattern_tl_a.y) / pixelRatio);\n    vec2 display_size_b = vec2((pattern_br_b.x - pattern_tl_b.x) / pixelRatio, (pattern_br_b.y - pattern_tl_b.y) / pixelRatio);\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n\n    v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, fromScale * display_size_a, tileZoomRatio, a_pos);\n    v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, toScale * display_size_b, tileZoomRatio, a_pos);\n}\n"},fillExtrusion:{fragmentSource:"varying vec4 v_color;\n\nvoid main() {\n    gl_FragColor = v_color;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec3 u_lightcolor;\nuniform lowp vec3 u_lightpos;\nuniform lowp float u_lightintensity;\nuniform float u_vertical_gradient;\n\nattribute vec2 a_pos;\nattribute vec4 a_normal_ed;\n\nvarying vec4 v_color;\n\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n\n#pragma mapbox: define highp vec4 color\n\nvoid main() {\n    #pragma mapbox: initialize highp float base\n    #pragma mapbox: initialize highp float height\n    #pragma mapbox: initialize highp vec4 color\n\n    vec3 normal = a_normal_ed.xyz;\n\n    base = max(0.0, base);\n    height = max(0.0, height);\n\n    float t = mod(normal.x, 2.0);\n\n    gl_Position = u_matrix * vec4(a_pos, t >
1 0.0 ? height : base, 1);\n\n    // Relative luminance (how dark/bright is the surface color?)\n    float colorvalue = color.r * 0.2126 + color.g * 0.7152 + color.b * 0.0722;\n\n    v_color = vec4(0.0, 0.0, 0.0, 1.0);\n\n    // Add slight ambient lighting so no extrusions are totally black\n    vec4 ambientlight = vec4(0.03, 0.03, 0.03, 1.0);\n    color += ambientlight;\n\n    // Calculate cos(theta), where theta is the angle between surface normal and diffuse light ray\n    float directional = clamp(dot(normal / 16384.0, u_lightpos), 0.0, 1.0);\n\n    // Adjust directional so that\n    // the range of values for highlight/shading is narrower\n    // with lower light intensity\n    // and with lighter/brighter surface colors\n    directional = mix((1.0 - u_lightintensity), max((1.0 - colorvalue + u_lightintensity), 1.0), directional);\n\n    // Add gradient along z axis of side surfaces\n    if (normal.y != 0.0) {\n        // This avoids another branching statement, but multiplies by a constant of 0.84 if no vertical gradient,\n        // and otherwise calculates the gradient based on base + height\n        directional *= (\n            (1.0 - u_vertical_gradient) +\n            (u_vertical_gradient * clamp((t + base) * pow(height / 150.0, 0.5), mix(0.7, 0.98, 1.0 - u_lightintensity), 1.0)));\n    }\n\n    // Assign final color based on surface + ambient light color, diffuse light directional, and light color\n    // with lower bounds adjusted to hue of light\n    // so that shading is t
1inted with the complementary (opposite) color to the light color\n    v_color.r += clamp(color.r * directional * u_lightcolor.r, mix(0.0, 0.3, 1.0 - u_lightcolor.r), 1.0);\n    v_color.g += clamp(color.g * directional * u_lightcolor.g, mix(0.0, 0.3, 1.0 - u_lightcolor.g), 1.0);\n    v_color.b += clamp(color.b * directional * u_lightcolor.b, mix(0.0, 0.3, 1.0 - u_lightcolor.b), 1.0);\n}\n"},fillExtrusionPattern:{fragmentSource:"uniform vec2 u_texsize;\nuniform float u_fade;\n\nuniform sampler2D u_image;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\nvarying vec4 v_lighting;\n\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float base\n    #pragma mapbox: initialize lowp float height\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    vec2 imagecoord = mod(v_pos_a, 1.0);\n    vec2 pos = mix(pattern_tl_a / u_texsize, pattern_br_a / u_texsize, imagecoord);\n    vec4 color1 = texture2D(u_image, pos);\n\n    vec2 imagecoord_b = mod(v_pos_b, 1.0);\n    vec2 pos2 = mix(pattern_tl_b / u_texsize, pattern_br_b / u_texsize, imagecoord_b);\n    vec4 color2 = texture2D(u_image, pos2);\n\n    vec4 mixedColor = mix(color1, color2, u_fade);\n\n    gl_FragColor = mixedColor * v_lighting;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_pixel_coord_upper;\nuniform vec2 u_pixel_coord_lower;\nuniform float u_height_factor;\nuniform vec4 u_scale;\nuniform float u_vertical_gradient;\n\nuniform vec3 u_lightcolor;\nuniform lowp vec3 u_lightpos;\nuniform lowp float u_lightintensity;\n\nattribute vec2 a_pos;\nattribute vec4 a_normal_ed;\n\nvarying vec2 v_pos_a;\nvarying vec2 v_pos_b;\nvarying vec4 v_lighting;\n\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float base\n    #pragma mapbox: initialize lowp float height\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    float pixelRatio = u_scale.x;\n    float tileRatio = u_scale.y;\n    float fromScale = u_scale.z;\n    float toScale = u_scale.w;\n\n    vec3 normal = a_normal_ed.xyz;\n    float edgedistance = a_normal_ed.w;\n\n    vec2 display_size_a = vec2((pattern_br_a.x - pattern_tl_a.x) / pixelRatio, (pattern_br_a.y - pattern_tl_a.y) / pixelRatio);\n    vec2 display_size_b = vec2((pattern_br_b.x - pattern_tl_b.x) / pixelRatio, (pattern_br_b.y - pattern_tl_b.y) / pixelRatio);\n\n    base = max(0.0, base);\n    height = max(0.0, height);\n\n    float t = mod(normal.x, 2.0);\n    float z = t > 0.0 ? height : base;\n\n    gl_Position = u_matrix * vec4(a_pos, z, 1);\n\n    vec2 pos = normal.x == 1.0 && normal.y == 0.0 && normal.z == 16384.0\n        ? a_pos // extrusion top\n        : vec2(edgedistance, z * u_height_factor); // extrusion side\n\n    v_pos_a = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, fromScale * display_size_a, tileRatio, pos);\n    v_pos_b = get_pattern_pos(u_pixel_coord_upper, u_pixel_coord_lower, toScale * display_size_b, tileRatio, pos);\n\n    v_lighting = vec4(0.0, 0.0, 0.0, 1.0);\n    float directional = clamp(dot(normal / 16383.0, u_lightpos), 0.0, 1.0);\n    directional = mix((1.0 - u_lightintensity), max((0.5 + u_lightintensity), 1.0), directional);\n\n    if (normal.y != 0.0) {\n        // This avoids another branching statement, but multiplies by a constant of 0.84 if no vertical gradient,\n        // and otherwise calculates the gradient based on base + height\n        directional *= (\n            (1.0 - u_vertical_gradient) +\n            (u_vertical_gradient * clamp((t + base) * pow(height / 150.0, 0.5), mix(0.7, 0.98, 1.0 - u_lightintensity), 1.0)));\n    }\n\n    v_lighting.rgb += clamp(directional * u_lightcolor, mix(vec3(0.0), vec3(0.3), 1.0 - u_lightcolor), vec3(1.0));\n}\n"},extrusionTexture:{fragmentSource:"uniform sampler2D u_image;\nuniform float u_opacity;\nvarying vec2 v_pos;\n\nvoid main() {\n    gl_FragColor = texture2D(u_image, v_pos) * u_opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(0.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_world;\nattribute vec2 a_pos;\nvarying vec2 v_pos;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos * u_world, 0, 1);\n\n    v_pos.x = a_pos.x;\n    v_pos.y = 1.0 - a_pos.y;\n}\n"},hillshadePrepare:{fragmentSource:"#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D u_image;\nvarying vec2 v_pos;\nuniform vec2 u_dimension;\nuniform float u_zoom;\nuniform float u_maxzoom;
1\n\nfloat getElevation(vec2 coord, float bias) {\n    // Convert encoded elevation value to meters\n    vec4 data = texture2D(u_image, coord) * 255.0;\n    return (data.r + data.g * 256.0 + data.b * 256.0 * 256.0) / 4.0;\n}\n\nvoid main() {\n    vec2 epsilon = 1.0 / u_dimension;\n\n    // queried pixels:\n    // +-----------+\n    // |   |   |   |\n    // | a | b | c |\n    // |   |   |   |\n    // +-----------+\n    // |   |   |   |\n    // | d | e | f |\n    // |   |   |   |\n    // +-----------+\n    // |   |   |   |\n    // | g | h | i |\n    // |   |   |   |\n    // +-----------+\n\n    float a = getElevation(v_pos + vec2(-epsilon.x, -epsilon.y), 0.0);\n    float b = getElevation(v_pos + vec2(0, -epsilon.y), 0.0);\n    float c = getElevation(v_pos + vec2(epsilon.x, -epsilon.y), 0.0);\n    float d = getElevation(v_pos + vec2(-epsilon.x, 0), 0.0);\n    float e = getElevation(v_pos, 0.0);\n    float f = getElevation(v_pos + vec2(epsilon.x, 0), 0.0);\n    float g = getElevation(v_pos + vec2(-epsilon.x, epsilon.y), 0.0);\n    float h = getElevation(v_pos + vec2(0, epsilon.y), 0.0);\n    float i = getElevation(v_pos + vec2(epsilon.x, epsilon.y), 0.0);\n\n    // here we divide the x and y slopes by 8 * pixel size\n    // where pixel size (aka meters/pixel) is:\n    // circumference of the world / (pixels per tile * number of tiles)\n    // which is equivalent to: 8 * 40075016.6855785 / (512 * pow(2, u_zoom))\n    // which can be reduced to: pow(2, 19.25619978527 - u_zoom)\n    // we want to vertically exaggerate the hillshading though, because otherwise\n    // it is barely noticeable at low zooms. to do this, we multiply this by some\n    // scale factor pow(2, (u_zoom - u_maxzoom) * a) where a is an arbitrary value\n    // Here we use a=0.3 which works out to the expression below. see \n    // nickidlugash's awesome breakdown for more info\n    // https://github.com/mapbox/mapbox-gl-js/pull/5286#discussion_r148419556\n    float exaggeration = u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;\n\n    vec2 deriv = vec2(\n        (c + f + f + i) - (a + d + d + g),\n        (g + h + h + i) - (a + b + b + c)\n    ) /  pow(2.0, (u_zoom - u_maxzoom) * exaggeration + 19.2562 - u_zoom);\n\n    gl_FragColor = clamp(vec4(\n        deriv.x / 2.0 + 0.5,\n        deriv.y / 2.0 + 0.5,\n        1.0,\n        1.0), 0.0, 1.0);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\n\nattribute vec2 a_pos;\nattribute vec2 a_texture_pos;\n\nvarying vec2 v_pos;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n    v_pos = (a_texture_pos / 8192.0) / 2.0 + 0.25;\n}\n"},hillshade:{fragmentSource:"uniform sampler2D u_image;\nvarying vec2 v_pos;\n\nuniform vec2 u_latrange;\nuniform vec2 u_light;\nuniform vec4 u_shadow;\nuniform vec4 u_highlight;\nuniform vec4 u_accent;\n\n#define PI 3.141592653589793\n\nvoid main() {\n    vec4 pixel = texture2D(u_image, v_pos);\n\n    vec2 deriv = ((pixel.rg * 2.0) - 1.0);\n\n    // We divide the slope by a scale factor based on the cosin of the pixel's approximate latitude\n    // to account for mercator projection distortion. see #4807 for details\n    float scaleFactor = cos(radians((u_latrange[0] - u_latrange[1]) * (1.0 - v_pos.y) + u_latrange[1]));\n    // We also multiply the slope by an arbitrary z-factor of 1.25\n    float slope = atan(1.25 * length(deriv) / scaleFactor);\n    float aspect = deriv.x != 0.0 ? atan(deriv.y, -deriv.x) : PI / 2.0 * (deriv.y > 0.0 ? 1.0 : -1.0);\n\n    float intensity = u_light.x;\n    // We add PI to make this property match the global light object, which adds PI/2 to the light's azimuthal\n    // position property to account for 0deg corresponding to north/the top of the viewport in the style spec\n    // and the original shader was written to accept (-illuminationDirection - 90) as the azimuthal.\n    float azimuth = u_light.y + PI;\n\n    // We scale the slope exponentially based on intensity, using a calculation similar to\n    // the exponential interpolation function in the style spec:\n    // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/expression/definitions/interpolate.js#L217-L228\n    // so that higher intensity values create more opaque hillshading.\n    float base = 1.875 - intensity * 1.75;\n    float maxValue = 0.5 * PI;\n    float scaledSlope = intensity != 0.5 ? ((pow(base, slope) - 1.0) / (pow(base, maxValue) - 1.0)) * maxValue : slope;\n\n    // The accent color is calculated with the cosine of the slope while the shade color is calculated with the sine\n    // so that the accent color's rate of change eases in while the shade color's eases out.\n    float accent = cos(scaledSlope);\n    // We multiply both the accent and shade color by a clamped intensity value\n    // so that intensities >= 0.5 do not additionally affect the color values\n    // while intensity values < 0.5 make the overall color more transparent.\n    vec4 accent_color = (1.0 - accent) * u_accent * clamp(intensity * 2.0, 0.0, 1.0);\n    float shade = abs(mod((aspect + azimuth) / PI + 0.5, 2.0) - 1.0);\n    vec4 shade_color = mix(u_shadow, u_highlight, shade) * sin(scaledSlope) * clamp(intensity * 2.0, 0.0, 1.0);\n    gl_FragColor = accent_color * (1.0 - shade_color.a) + shade_color;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\n\nattribute vec2 a_pos;\nattribute vec2 a_texture_pos;\n\nvarying vec2 v_pos;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n    v_pos = a_texture_pos / 8192.0;\n}\n"},line:{fragmentSource:"#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n\nvarying vec2 v_width2;\nvarying vec2 v_normal;\nvarying float v_gamma_scale;\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n\n    // Calculate the distance of the pixel from the line in pixels.\n    float dist = length(v_normal) * v_width2.s;\n\n    // Calculate the antialiasing fade factor. This is either when fading in\n    // the line in case of an offset line (v_width2.t) or when fading out\n    // (v_width2.s)\n    float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\n    float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\n\n    gl_FragColor = color * (alpha * opacity);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"\n\n// the distance over which the line edge fades out.\n// Retina devices need a smaller distance to avoid aliasing.\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\n\n// floor(127 / 2) == 63.0\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\n// there are also \"special\" normals that have a bigger length (of up to 126 in\n// this case).\n// #define scale 63.0\n#define scale 0.015873016\n\nattribute vec4 a_pos_normal;\nattribute vec4 a_data;\n\nuniform mat4 u_matrix;\nuniform mediump float u_ratio;\nuniform vec2 u_gl_units_to_pixels;\n\nvarying vec2 v_normal;\nvarying vec2 v_width2;\nvarying float v_gamma_scale;\nvarying highp float v_linesofar;\n\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump float gapwidth\n    #pragma mapbox: initialize lowp float offset\n    #pragma mapbox: initialize mediump float width\n\n    vec2 a_extrude = a_data.xy - 128.0;\n    float a_direction = mod(a_data.z, 4.0) - 1.0;\n\n    v_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0;\n\n    vec2 pos = a_pos_normal.xy;\n\n    // x is 1 if it's a round cap, 0 otherwise\n    // y is 1 if the normal points up, and -1 if it points down\n    mediump vec2 normal = a_pos_normal.zw;\n    v_normal = normal;\n\n    // these transformations used to be applied in the JS and native code bases.\n    // moved them into the shader for clarity and simplicity.\n    gapwidth = ga
1pwidth / 2.0;\n    float halfwidth = width / 2.0;\n    offset = -1.0 * offset;\n\n    float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\n    float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + (halfwidth == 0.0 ? 0.0 : ANTIALIASING);\n\n    // Scale the extrusion vector down to a normal and then up by the line width\n    // of this vertex.\n    mediump vec2 dist = outset * a_extrude * scale;\n\n    // Calculate the offset when drawing a line that is to the side of the actual line.\n    // We do this by creating a vector that points towards the extrude, but rotate\n    // it when we're drawing round end points (a_direction = -1 or 1) since their\n    // extrude vector points in another direction.\n    mediump float u = 0.5 * a_direction;\n    mediump float t = 1.0 - abs(u);\n    mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\n\n    vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\n    gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\n\n    // calculate how much the perspective view squishes or stretches the extrude\n    float extrude_length_without_perspective = length(dist);\n    float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\n    v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\n\n    v_width2 = vec2(outset, inset);\n}\n"},lineGradient:{fragmentSource:"\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n\nuniform sampler2D u_image;\n\nvarying vec2 v_width2;\nvarying vec2 v_normal;\nvarying float v_gamma_scale;\nvarying highp float v_lineprogress;\n\nvoid main() {\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n\n    // Calculate the distance of the pixel from the line in pixels.\n    float dist = length(v_normal) * v_width2.s;\n\n    // Calculate the antialiasing fade factor. This is either when fading in\n    // the line in case of an offset line (v_width2.t) or when fading out\n    // (v_width2.s)\n    float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\n    float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\n\n    // For gradient lines, v_lineprogress is the ratio along the entire line,\n    // scaled to [0, 2^15), and the gradient ramp is stored in a texture.\n    vec4 color = texture2D(u_image, vec2(v_lineprogress, 0.5));\n\n    gl_FragColor = color * (alpha * opacity);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"\n// the attribute conveying progress along a line is scaled to [0, 2^15)\n#define MAX_LINE_DISTANCE 32767.0\n\n// the distance over which the line edge fades out.\n// Retina devices need a smaller distance to avoid aliasing.\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\n\n// floor(127 / 2) == 63.0\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\n// there are also \"special\" normals that have a bigger length (of up to 126 in\n// this case).\n// #define scale 63.0\n#define scale 0.015873016\n\nattribute vec4 a_pos_normal;\nattribute vec4 a_data;\n\nuniform mat4 u_matrix;\nuniform mediump float u_ratio;\nuniform vec2 u_gl_units_to_pixels;\n\nvarying vec2 v_normal;\nvarying vec2 v_width2;\nvarying float v_gamma_scale;\nvarying highp float v_lineprogress;\n\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n\nvoid main() {\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump float gapwidth\n    #pragma mapbox: initialize lowp float offset\n    #pragma mapbox: initialize mediump float width\n\n    vec2 a_extrude = a_data.xy - 128.0;\n    float a_direction = mod(a_data.z, 4.0) - 1.0;\n\n    v_lineprogress = (floor(a_data.z / 4.0) + a_data.w * 64.0) * 2.0 / MAX_LINE_DISTANCE;\n\n    vec2 pos = a_pos_normal.xy;\n\n    // x is 1 if it's a round cap, 0 otherwise\n    // y is 1 if the normal points up, and -1 if it points down\n    mediump vec2 normal = a_pos_normal.zw;\n    v_normal = normal;\n\n    // these transformations used to be applied in the JS and native code bases.\n    // moved them into the shader for clarity and simplicity.\n    gapwidth = ga
1pwidth / 2.0;\n    float halfwidth = width / 2.0;\n    offset = -1.0 * offset;\n\n    float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\n    float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + (halfwidth == 0.0 ? 0.0 : ANTIALIASING);\n\n    // Scale the extrusion vector down to a normal and then up by the line width\n    // of this vertex.\n    mediump vec2 dist = outset * a_extrude * scale;\n\n    // Calculate the offset when drawing a line that is to the side of the actual line.\n    // We do this by creating a vector that points towards the extrude, but rotate\n    // it when we're drawing round end points (a_direction = -1 or 1) since their\n    // extrude vector points in another direction.\n    mediump float u = 0.5 * a_direction;\n    mediump float t = 1.0 - abs(u);\n    mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\n\n    vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\n    gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\n\n    // calculate how much the perspective view squishes or stretches the extrude\n    float extrude_length_without_perspective = length(dist);\n    float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\n    v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\n\n    v_width2 = vec2(outset, inset);\n}\n"},linePattern:{fragmentSource:"uniform vec2 u_texsize;\nuniform float u_fade;\nuniform mediump vec4 u_scale;\n\nuniform sampler2D u_image;\n\nvarying vec2 v_normal;\nvarying vec2 v_width2;\nvarying float v_linesofar;\nvarying float v_gamma_scale;\n\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n\nvoid main() {\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n\n    vec2 pattern_tl_a = pattern_from.xy;\n    vec2 pattern_br_a = pattern_from.zw;\n    vec2 pattern_tl_b = pattern_to.xy;\n    vec2 pattern_br_b = pattern_to.zw;\n\n    float pixelRatio = u_scale.x;\n    float tileZoomRatio = u_scale.y;\n    float fromScale = u_scale.z;\n    float toScale = u_scale.w;\n\n    vec2 display_size_a = vec2((pattern_br_a.x - pattern_tl_a.x) / pixelRatio, (pattern_br_a.y - pattern_tl_a.y) / pixelRatio);\n    vec2 display_size_b = vec2((pattern_br_b.x - pattern_tl_b.x) / pixelRatio, (pattern_br_b.y - pattern_tl_b.y) / pixelRatio);\n\n    vec2 pattern_size_a = vec2(display_size_a.x * fromScale / tileZoomRatio, display_size_a.y);\n    vec2 pattern_size_b = vec2(display_size_b.x * toScale / tileZoomRatio, display_size_b.y);\n\n    // Calculate the distance of the pixel from the line in pixels.\n    float dist = length(v_normal) * v_width2.s;\n\n    // Calculate the antialiasing fade factor. This is either when fading in\n    // the line in case of an offset line (v_width2.t) or when fading out\n    // (v_width2.s)\n    float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\n    float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\n\n    float x_a = mod(v_linesofar / pattern_size_a.x, 1.0);\n    float x_b = mod(v_linesofar / pattern_size_b.x, 1.0);\n\n    // v_normal.y is 0 at the midpoint of the line, -1 at the lower edge, 1 at the upper edge\n    // we clamp the line width outset to be between 0 and half the pattern height plus padding (2.0)\n    // to ensure we don't sample outside the designated symbol on the sprite sheet.\n    // 0.5 is added to shift the component to be bounded between 0 and 1 for interpolation of\n    // the texture coordinate\n    float y_a = 0.5 + (v_normal.y * clamp(v_width2.s, 0.0, (pattern_size_a.y + 2.0) / 2.0) / pattern_size_a.y);\n    float y_b = 0.5 + (v_normal.y * clamp(v_width2.s, 0.0, (pattern_size_b.y + 2.0) / 2.0) / pattern_size_b.y);\n    vec2 pos_a = mix(pattern_tl_a / u_texsize, pattern_br_a / u_texsize, vec2(x_a, y_a));\n    vec2 pos_b = mix(pattern_tl_b / u_texsize, pattern_br_b / u_texsize, vec2(x_b, y_b));\n\n    vec4 color = mix(texture2D(u_image, pos_a), texture2D(u_image, pos_b), u_fade);\n\n    gl_FragColor = color * alpha * opacity;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"// floor(127 / 2) == 63.0\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\n// there are also \"special\" normals that have a bigger length (of up to 126 in\n// this case).\n// #define scale 63.0\n#define scale 0.015873016\n\n// We scale the distance before adding it to the buffers so that we can store\n// long distances for long segments. Use this value to unscale the distance.\n#define LINE_DISTANCE_SCALE 2.0\n\n// the distance over which the line edge fades out.\n// Retina devices need a smaller distance to avoid aliasing.\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\n\nattribute vec4 a_pos_normal;\nattribute vec4 a_data;\n\nuniform mat4 u_matrix;\nuniform vec2 u_gl_units_to_pixels;\nuniform mediump float u_ratio;\n\nvarying vec2 v_normal;\nvarying vec2 v_width2;\nvarying float v_linesofar;\nvarying float v_gamma_scale;\n\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n\nvoid main() {\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize lowp float offset\n    #pragma mapbox: initialize mediump float gapwidth\n    #pragma mapbox: initialize mediump float width\n    #pragma mapbox: initialize mediump vec4 pattern_from\n    #pragma mapbox: initialize mediump vec4 pattern_to\n\n    vec2 a_extrude = a_data.xy - 128.0;\n    float a_direction = mod(a_data.z, 4.0) - 1.0;\n    float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\n    // float tileRatio = u_scale.y;\n    vec2 pos = a_pos_normal.xy;\n\n    // x is 1 if it's a round cap, 0 otherwise\n    // y is 1 if the normal points up, and -1 if it points down\n    mediump vec2 normal = a_pos_normal.zw;\n    v_normal = normal;\n\n    // these transformations used to be applied in the JS and native code bases.\n    // moved them into the shader for clarity and simplicity.\n    gapwidth = ga
1pwidth / 2.0;\n    float halfwidth = width / 2.0;\n    offset = -1.0 * offset;\n\n    float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\n    float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + (halfwidth == 0.0 ? 0.0 : ANTIALIASING);\n\n    // Scale the extrusion vector down to a normal and then up by the line width\n    // of this vertex.\n    mediump vec2 dist = outset * a_extrude * scale;\n\n    // Calculate the offset when drawing a line that is to the side of the actual line.\n    // We do this by creating a vector that points towards the extrude, but rotate\n    // it when we're drawing round end points (a_direction = -1 or 1) since their\n    // extrude vector points in another direction.\n    mediump float u = 0.5 * a_direction;\n    mediump float t = 1.0 - abs(u);\n    mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\n\n    vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\n    gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\n\n    // calculate how much the perspective view squishes or stretches the extrude\n    float extrude_length_without_perspective = length(dist);\n    float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\n    v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\n\n    v_linesofar = a_linesofar;\n    v_width2 = vec2(outset, inset);\n}\n"},lineSDF:{fragmentSource:"\nuniform sampler2D u_image;\nuniform float u_sdfgamma;\nuniform float u_mix;\n\nvarying vec2 v_normal;\nvarying vec2 v_width2;\nvarying vec2 v_tex_a;\nvarying vec2 v_tex_b;\nvarying float v_gamma_scale;\n\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump float width\n    #pragma mapbox: initialize lowp float floorwidth\n\n    // Calculate the distance of the pixel from the line in pixels.\n    float dist = length(v_normal) * v_width2.s;\n\n    // Calculate the antialiasing fade factor. This is either when fading in\n    // the line in case of an offset line (v_width2.t) or when fading out\n    // (v_width2.s)\n    float blur2 = (blur + 1.0 / DEVICE_PIXEL_RATIO) * v_gamma_scale;\n    float alpha = clamp(min(dist - (v_width2.t - blur2), v_width2.s - dist) / blur2, 0.0, 1.0);\n\n    float sdfdist_a = texture2D(u_image, v_tex_a).a;\n    float sdfdist_b = texture2D(u_image, v_tex_b).a;\n    float sdfdist = mix(sdfdist_a, sdfdist_b, u_mix);\n    alpha *= smoothstep(0.5 - u_sdfgamma / floorwidth, 0.5 + u_sdfgamma / floorwidth, sdfdist);\n\n    gl_FragColor = color * (alpha * opacity);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"// floor(127 / 2) == 63.0\n// the maximum allowed miter limit is 2.0 at the moment. the extrude normal is\n// stored in a byte (-128..127). we scale regular normals up to length 63, but\n// there are also \"special\" normals that have a bigger length (of up to 126 in\n// this case).\n// #define scale 63.0\n#define scale 0.015873016\n\n// We scale the distance before adding it to the buffers so that we can store\n// long distances for long segments. Use this value to unscale the distance.\n#define LINE_DISTANCE_SCALE 2.0\n\n// the distance over which the line edge fades out.\n// Retina devices need a smaller distance to avoid aliasing.\n#define ANTIALIASING 1.0 / DEVICE_PIXEL_RATIO / 2.0\n\nattribute vec4 a_pos_normal;\nattribute vec4 a_data;\n\nuniform mat4 u_matrix;\nuniform mediump float u_ratio;\nuniform vec2 u_patternscale_a;\nuniform float u_tex_y_a;\nuniform vec2 u_patternscale_b;\nuniform float u_tex_y_b;\nuniform vec2 u_gl_units_to_pixels;\n\nvarying vec2 v_normal;\nvarying vec2 v_width2;\nvarying vec2 v_tex_a;\nvarying vec2 v_tex_b;\nvarying float v_gamma_scale;\n\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 color\n    #pragma mapbox: initialize lowp float blur\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize mediump float gapwidth\n    #pragma mapbox: initialize lowp float offset\n    #pragma mapbox: initialize mediump float width\n    #pragma mapbox: initialize lowp float floorwidth\n\n    vec2 a_extrude = a_data.xy - 128.0;\n    float a_direction = mod(a_data.z, 4.0) - 1.0;\n    float a_linesofar = (floor(a_data.z / 4.0) + a_data.w * 64.0) * LINE_DISTANCE_SCALE;\n\n    vec2 pos = a_pos_normal.xy;\n\n    // x is 1 if it's a round cap, 0 otherwise\n    // y is 1 if the normal points up, and -1 if it points down\n    mediump vec2 normal = a_pos_normal.zw;\n    v_normal = normal;\n\n    // these transformations used to be applied in the JS and native code bases.\n    // moved them into the shader for clarity and simplicity.\n    gapwidth = ga
1pwidth / 2.0;\n    float halfwidth = width / 2.0;\n    offset = -1.0 * offset;\n\n    float inset = gapwidth + (gapwidth > 0.0 ? ANTIALIASING : 0.0);\n    float outset = gapwidth + halfwidth * (gapwidth > 0.0 ? 2.0 : 1.0) + (halfwidth == 0.0 ? 0.0 : ANTIALIASING);\n\n    // Scale the extrusion vector down to a normal and then up by the line width\n    // of this vertex.\n    mediump vec2 dist =outset * a_extrude * scale;\n\n    // Calculate the offset when drawing a line that is to the side of the actual line.\n    // We do this by creating a vector that points towards the extrude, but rotate\n    // it when we're drawing round end points (a_direction = -1 or 1) since their\n    // extrude vector points in another direction.\n    mediump float u = 0.5 * a_direction;\n    mediump float t = 1.0 - abs(u);\n    mediump vec2 offset2 = offset * a_extrude * scale * normal.y * mat2(t, -u, u, t);\n\n    vec4 projected_extrude = u_matrix * vec4(dist / u_ratio, 0.0, 0.0);\n    gl_Position = u_matrix * vec4(pos + offset2 / u_ratio, 0.0, 1.0) + projected_extrude;\n\n    // calculate how much the perspective view squishes or stretches the extrude\n    float extrude_length_without_perspective = length(dist);\n    float extrude_length_with_perspective = length(projected_extrude.xy / gl_Position.w * u_gl_units_to_pixels);\n    v_gamma_scale = extrude_length_without_perspective / extrude_length_with_perspective;\n\n    v_tex_a = vec2(a_linesofar * u_patternscale_a.x / floorwidth, normal.y * u_patternscale_a.y + u_tex_y_a);\n    v_tex_b = vec2(a_linesofar * u_patternscale_b.x / floorwidth, normal.y * u_patternscale_b.y + u_tex_y_b);\n\n    v_width2 = vec2(outset, inset);\n}\n"},raster:{fragmentSource:"uniform float u_fade_t;\nuniform float u_opacity;\nuniform sampler2D u_image0;\nuniform sampler2D u_image1;\nvarying vec2 v_pos0;\nvarying vec2 v_pos1;\n\nuniform float u_brightness_low;\nuniform float u_brightness_high;\n\nuniform float u_saturation_factor;\nuniform float u_contrast_factor;\nuniform vec3 u_spin_weights;\n\nvoid main() {\n\n    // read and cross-fade colors from the main and parent tiles\n    vec4 color0 = texture2D(u_image0, v_pos0);\n    vec4 color1 = texture2D(u_image1, v_pos1);\n    if (color0.a > 0.0) {\n        color0.rgb = color0.rgb / color0.a;\n    }\n    if (color1.a > 0.0) {\n        color1.rgb = color1.rgb / color1.a;\n    }\n    vec4 color = mix(color0, color1, u_fade_t);\n    color.a *= u_opacity;\n    vec3 rgb = color.rgb;\n\n    // spin\n    rgb = vec3(\n        dot(rgb, u_spin_weights.xyz),\n        dot(rgb, u_spin_weights.zxy),\n        dot(rgb, u_spin_weights.yzx));\n\n    // saturation\n    float average = (color.r + color.g + color.b) / 3.0;\n    rgb += (average - rgb) * u_saturation_factor;\n\n    // contrast\n    rgb = (rgb - 0.5) * u_contrast_factor + 0.5;\n\n    // brightness\n    vec3 u_high_vec = vec3(u_brightness_low, u_brightness_low, u_brightness_low);\n    vec3 u_low_vec = vec3(u_brightness_high, u_brightness_high, u_brightness_high);\n\n    gl_FragColor = vec4(mix(u_high_vec, u_low_vec, rgb) * color.a, color.a);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"uniform mat4 u_matrix;\nuniform vec2 u_tl_parent;\nuniform float u_scale_parent;\nuniform float u_buffer_scale;\n\nattribute vec2 a_pos;\nattribute vec2 a_texture_pos;\n\nvarying vec2 v_pos0;\nvarying vec2 v_pos1;\n\nvoid main() {\n    gl_Position = u_matrix * vec4(a_pos, 0, 1);\n    // We are using Int16 for texture position coordinates to give us enough precision for\n    // fractional coordinates. We use 8192 to scale the texture coordinates in the buffer\n    // as an arbitrarily high number to preserve adequate precision when rendering.\n    // This is also the same value as the EXTENT we are using for our tile buffer pos coordinates,\n    // so math for modifying either is consistent.\n    v_pos0 = (((a_texture_pos / 8192.0) - 0.5) / u_buffer_scale ) + 0.5;\n    v_pos1 = (v_pos0 * u_scale_parent) + u_tl_parent;\n}\n"},symbolIcon:{fragmentSource:"uniform sampler2D u_texture;\n\n#pragma mapbox: define lowp float opacity\n\nvarying vec2 v_tex;\nvarying float v_fade_opacity;\n\nvoid main() {\n    #pragma mapbox: initialize lowp float opacity\n\n    lowp float alpha = opacity * v_fade_opacity;\n    gl_FragColor = texture2D(u_texture, v_tex) * alpha;\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"const float PI = 3.141592653589793;\n\nattribute vec4 a_pos_offset;\nattribute vec4 a_data;\nattribute vec3 a_projected_pos;\nattribute float a_fade_opacity;\n\nuniform bool u_is_size_zoom_constant;\nuniform bool u_is_size_feature_constant;\nuniform highp float u_size_t; // used to interpolate between zoom stops when size is a composite function\nuniform highp float u_size; // used when size is both zoom and feature constant\nuniform highp float u_camera_to_center_distance;\nuniform highp float u_pitch;\nuniform bool u_rotate_symbol;\nuniform highp float u_aspect_ratio;\nuniform float u_fade_change;\n\n#pragma mapbox: define lowp float opacity\n\nuniform mat4 u_matrix;\nuniform mat4 u_label_plane_matrix;\nuniform mat4 u_gl_coord_matrix;\n\nuniform bool u_is_text;\nuniform bool u_pitch_with_map;\n\nuniform vec2 u_texsize;\n\nvarying vec2 v_tex;\nvarying float v_fade_opacity;\n\nvoid main() {\n    #pragma mapbox: initialize lowp float opacity\n\n    vec2 a_pos = a_pos_offset.xy;\n    vec2 a_offset = a_pos_offset.zw;\n\n    vec2 a_tex = a_data.xy;\n    vec2 a_size = a_data.zw;\n\n    highp float segment_angle = -a_projected_pos[2];\n\n    float size;\n    if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\n        size = mix(a_size[0], a_size[1], u_size_t) / 256.0;\n    } else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\n        size = a_size[0] / 256.0;\n    } else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {\n        size = u_size;\n    } else {\n        size = u_size;\n    }\n\n    vec4 projectedPoint = u_matrix * vec4(a_pos, 0, 1);\n    highp float camera_to_anchor_distance = projectedPoint.w;\n    // See comments in symbol_sdf.vertex\n    highp float distance_ratio = u_pitch_with_map ?\n        camera_to_anchor_distance / u_camera_to_center_distance :\n        u_camera_to_center_distance / camera_to_anchor_distance;\n    highp float perspective_ratio = clamp(\n            0.5 + 0.5 * distance_ratio,\n            0.0, // Prevents oversized near-field symbols in pitched/overzoomed tiles\n            4.0);\n\n    size *= perspective_ratio;\n\n    float fontScale = u_is_text ? size / 24.0 : size;\n\n    highp float symbol_rotation = 0.0;\n    if (u_rotate_symbol) {\n        // See comments in symbol_sdf.vertex\n        vec4 offsetProjectedPoint = u_matrix * vec4(a_pos + vec2(1, 0), 0, 1);\n\n        vec2 a = projectedPoint.xy / projectedPoint.w;\n        vec2 b = offsetProjectedPoint.xy / offsetProjectedPoint.w;\n\n        symbol_rotation = atan((b.y - a.y) / u_aspect_ratio, b.x - a.x);\n    }\n\n    highp float angle_sin = sin(segment_angle + symbol_rotation);\n    highp float angle_cos = cos(segment_angle + symbol_rotation);\n    mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\n\n    vec4 projected_pos = u_label_plane_matrix * vec4(a_projected_pos.xy, 0.0, 1.0);\n    gl_Position = u_gl_coord_matrix * vec4(projected_pos.xy / projected_pos.w + rotation_matrix * (a_offset / 32.0 * fontScale), 0.0, 1.0);\n\n    v_tex = a_tex / u_texsize;\n    vec2 fade_opacity = unpack_opacity(a_fade_opacity);\n    float fade_change = fade_opacity[1] > 0.5 ? u_fade_change : -u_fade_change;\n    v_fade_opacity = max(0.0, min(1.0, fade_opacity[0] + fade_change));\n}\n"},symbolSDF:{fragmentSource:"#define SDF_PX 8.0\n#define EDGE_GAMMA 0.105/DEVICE_PIXEL_RATIO\n\nuniform bool u_is_halo;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\n\nuniform sampler2D u_texture;\nuniform highp float u_gamma_scale;\nuniform bool u_is_text;\n\nvarying vec2 v_data0;\nvarying vec3 v_data1;\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 fill_color\n    #pragma mapbox: initialize highp vec4 halo_color\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize lowp float halo_width\n    #pragma mapbox: initialize lowp float halo_blur\n\n    vec2 tex = v_data0.xy;\n    float gamma_scale = v_data1.x;\n    float size = v_data1.y;\n    float fade_opacity = v_data1[2];\n\n    float fontScale = u_is_text ? size / 24.0 : size;\n\n    lowp vec4 color = fill_color;\n    highp float gamma = EDGE_GAMMA / (fontScale * u_gamma_scale);\n    lowp float buff = (256.0 - 64.0) / 256.0;\n    if (u_is_halo) {\n        color = halo_color;\n        gamma = (halo_blur * 1.19 / SDF_PX + EDGE_GAMMA) / (fontScale * u_gamma_scale);\n        buff = (6.0 - halo_width / fontScale) / SDF_PX;\n    }\n\n    lowp float dist = texture2D(u_texture, tex).a;\n    highp float gamma_scaled = gamma * gamma_scale;\n    highp float alpha = smoothstep(buff - gamma_scaled, buff + gamma_scaled, dist);\n\n    gl_FragColor = color * (alpha * opacity * fade_opacity);\n\n#ifdef OVERDRAW_INSPECTOR\n    gl_FragColor = vec4(1.0);\n#endif\n}\n",vertexSource:"const float PI = 3.141592653589793;\n\nattribute vec4 a_pos_offset;\nattribute vec4 a_data;\nattribute vec3 a_projected_pos;\nattribute float a_fade_opacity;\n\n// contents of a_size vary based on the type of property value\n// used for {text,icon}-size.\n// For constants, a_size is disabled.\n// For source functions, we bind only one value per vertex: the value of {text,icon}-size evaluated for the current feature.\n// For composite functions:\n// [ text-size(lowerZoomStop, feature),\n//   text-size(upperZoomStop, feature) ]\nuniform bool u_is_size_zoom_constant;\nuniform bool u_is_size_feature_constant;\nuniform highp float u_size_t; // used to interpolate between zoom stops when size is a composite function\nuniform highp float u_size; // used when size is both zoom and feature constant\n\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\n\nuniform mat4 u_matrix;\nuniform mat4 u_label_plane_matrix;\nuniform mat4 u_gl_coord_matrix;\n\nuniform bool u_is_text;\nuniform bool u_pitch_with_map;\nuniform highp float u_pitch;\nuniform bool u_rotate_symbol;\nuniform highp float u_aspect_ratio;\nuniform highp float u_camera_to_center_distance;\nuniform float u_fade_change;\n\nuniform vec2 u_texsize;\n\nvarying vec2 v_data0;\nvarying vec3 v_data1;\n\nvoid main() {\n    #pragma mapbox: initialize highp vec4 fill_color\n    #pragma mapbox: initialize highp vec4 halo_color\n    #pragma mapbox: initialize lowp float opacity\n    #pragma mapbox: initialize lowp float halo_width\n    #pragma mapbox: initialize lowp float halo_blur\n\n    vec2 a_pos = a_pos_offset.xy;\n    vec2 a_offset = a_pos_offset.zw;\n\n    vec2 a_tex = a_data.xy;\n    vec2 a_size = a_data.zw;\n\n    highp float segment_angle = -a_projected_pos[2];\n    float size;\n\n    if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {\n        size = mix(a_size[0], a_size[1], u_size_t) / 256.0;\n    } else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {\n        size = a_size[0] / 256.0;\n    } else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {\n        size = u_size;\n    } else {\n        size = u_size;\n    }\n\n    vec4 projectedPoint = u_matrix * vec4(a_pos, 0, 1);\n    highp float camera_to_anchor_distance = projectedPoint.w;\n    // If the label is pitched with the map, layout is done in pitched space,\n    // which makes labels in the distance smaller relative to viewport space.\n    // We counteract part of that effect by multiplying by the perspective ratio.\n    // If the label isn't pitched with the map, we do layout in viewport space,\n    // which makes labels in the distance larger relative to the features around\n    // them. We counteract part of that effect by dividing by the perspective ratio.\n    highp float distance_ratio = u_pitch_with_map ?\n        camera_to_anchor_distance / u_camera_to_center_distance :\n        u_camera_to_center_distance / camera_to_anchor_distance;\n    highp float perspective_ratio = clamp(\n        0.5 + 0.5 * distance_ratio,\n        0.0, // Prevents oversized near-field symbols in pitched/overzoomed tiles\n        4.0);\n\n    size *= perspective_ratio;\n\n    float fontScale = u_is_text ? size / 24.0 : size;\n\n    highp float symbol_rotation = 0.0;\n    if (u_rotate_symbol) {\n        // Point labels with 'rotation-alignment: map' are horizontal with respect to tile units\n        // To figure out that angle in projected space, we draw a short horizontal line in tile\n        // space, project it, and measure its angle in projected space.\n        vec4 offsetProjectedPoint = u_matrix * vec4(a_pos + vec2(1, 0), 0, 1);\n\n        vec2 a = projectedPoint.xy / projectedPoint.w;\n        vec2 b = offsetProjectedPoint.xy / offsetProjectedPoint.w;\n\n        symbol_rotation = atan((b.y - a.y) / u_aspect_ratio, b.x - a.x);\n    }\n\n    highp float angle_sin = sin(segment_angle + symbol_rotation);\n    highp float angle_cos = cos(segment_angle + symbol_rotation);\n    mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos);\n\n    vec4 projected_pos = u_label_plane_matrix * vec4(a_projected_pos.xy, 0.0, 1.0);\n    gl_Position = u_gl_coord_matrix * vec4(projected_pos.xy / projected_pos.w + rotation_matrix * (a_offset / 32.0 * fontScale), 0.0, 1.0);\n    float gamma_scale = gl_Position.w;\n\n    vec2 tex = a_tex / u_texsize;\n    vec2 fade_opacity = unpack_opacity(a_fade_opacity);\n    float fade_change = fade_opacity[1] > 0.5 ? u_fade_change : -u_fade_change;\n    float interpolated_fade_opacity = max(0.0, min(1.0, fade_opacity[0] + fade_change));\n\n    v_data0 = vec2(tex.x, tex.y);\n    v_data1 = vec3(gamma_scale, size, interpolated_fade_opacity);\n}\n"}}
vendor: 4,431 bytes, line 1
1,Ke=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Je=function(t){var e=Xe[t],i={};e.fragmentSource=e.fragmentSource.replace(Ke,function(t,e,n,r,o){return i[o]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nvarying "+n+" "+r+" "+o+";\n#else\nuniform "+n+" "+r+" u_"+o+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+o+"\n    "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n"}),e.vertexSource=e.vertexSource.replace(Ke,function(t,e,n,r,o){var a="float"===r?"vec2":"vec4",s=o.match(/color/)?"color":a;return i[o]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float a_"+o+"_t;\nattribute "+n+" "+a+" a_"+o+";\nvarying "+n+" "+r+" "+o+";\n#else\nuniform "+n+" "+r+" u_"+o+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+o+" = a_"+o+";\n#else\n    "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+o+" = unpack_mix_"+s+"(a_"+o+", a_"+o+"_t);\n#else\n    "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float a_"+o+"_t;\nattribute "+n+" "+a+" a_"+o+";\n#else\nuniform "+n+" "+r+" u_"+o+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+n+" "+r+" "+o+" = a_"+o+";\n#else\n    "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+n+" "+r+" "+o+" = unpack_mix_"+s+"(a_"+o+", a_"+o+"_t);\n#else\n    "+n+" "+r+" "+o+" = u_"+o+";\n#endif\n"})};for(var $e in Xe)Je($e);var Qe=Xe,ti=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};ti.prototype.bind=function(t,e,i,n,r,o,a,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,u=0;!l&&u<n.length;u++)this.boundPaintVertexBuffers[u]!==n[u]&&(l=!0);var c=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==i||l||this.boundIndexBuffer!==r||this.boundVertexOffset!==o||this.boundDynamicVertexBuffer!==a||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||c?this.freshBind(e,i,n,r,o,a,s):(t.bindVertexArrayOES.set(this.vao),a&&a.bind(),r&&r.dynamicDraw&&r.bind(),s&&s.bind())},ti.prototype.freshBind=function(t,e,i,n,r,o,a){var s,l=t.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=n,this.boundVertexOffset=r,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var h=l;h<s;h++)c.disableVertexAttribArray(h)}e.enableAttributes(c,t);for(var p=0,f=i;p<f.length;p+=1)f[p].enableAttributes(c,t);o&&o.enableAttributes(c,t),a&&a.enableAttributes(c,t),e.bind(),e.setVertexAttribPointers(c,t,r);for(var d=0,m=i;d<m.length;d+=1){var y=m[d];y.bind(),y.setVertexAttribPointers(c,t,r)}o&&(o.bind(),o.setVertexAttribPointers(c,t,r)),n&&n.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,t,r)),u.currentNumAttributes=l},ti.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var ei=function(e,i,n,r,o){var a=e.gl;this.program=a.createProgram();var s=n.defines().concat("#define DEVICE_PIXEL_RATIO "+t.browser.devicePixelRatio.toFixed(1));o&&s.push("#define OVERDRAW_INSPECTOR;");var l=s.concat(Qe.prelude.fragmentSource,i.fragmentSource).join("\n"),u=s.concat(Qe.prelude.vertexSource,i.vertexSource).join("\n"),c=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(c,l),a.compileShader(c),a.attachShader(this.program,c);var h=a.createShader(a.VERTEX_SHADER);a.shaderSource(h,u),a.compileShader(h),a.attachShader(this.program,h);for(var p=n.layoutAttributes||[],f=0;f<p.length;f++)a.bindAttribLocation(this.program,f,p[f].name);a.linkProgram(this.program),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var d={},m=0;m<this.numAttributes;m++){var y=a.getActiveAttrib(this.program,m);y&&(this.attributes[y.name]=a.getAttribLocation(this.program,y.name))}for(var v=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),g=0;g<v;g++){var _=a.getActiveUniform(this.program,g);_&&(d[_.name]=a.getUniformLocation(this.program,_.name))}this.fixedUniforms=r(e,d),this.binderUniforms=n.getUniforms(e,d)};function ii(e,i,n){var r=1/we(n,1,i.transform.tileZoom),o=Math.pow(2,n.tileID.overscaledZ
vendor: 13,138 bytes, line 1
1),a=n.tileSize*Math.pow(2,i.transform.tileZoom)/o,s=a*(n.tileID.canonical.x+n.tileID.wrap*o),l=a*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[t.browser.devicePixelRatio,r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[s>>16,l>>16],u_pixel_coord_lower:[65535&s,65535&l]}}ei.prototype.draw=function(t,e,i,n,r,o,a,s,l,u,c,h,p,f,d,m){var y,v=t.gl;for(var g in t.program.set(this.program),t.setDepthMode(i),t.setStencilMode(n),t.setColorMode(r),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[g].set(a[g]);f&&f.setUniforms(t,this.binderUniforms,h,{zoom:p});for(var _=(y={},y[v.LINES]=2,y[v.TRIANGLES]=3,y[v.LINE_STRIP]=1,y)[e],b=0,x=c.get();b<x.length;b+=1){var w=x[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new ti)).bind(t,this,l,f?f.getPaintVertexBuffers():[],u,w.vertexOffset,d,m),v.drawElements(e,w.primitiveLength*_,v.UNSIGNED_SHORT,w.primitiveOffset*_*2)}};var ni=function(e,i,n){var r=i.style.light,o=r.properties.get("position"),a=[o.x,o.y,o.z],s=t.create$2();"viewport"===r.properties.get("anchor")&&t.fromRotation(s,-i.transform.angle),t.transformMat3(a,a,s);var l=r.properties.get("color");return{u_matrix:e,u_lightpos:a,u_lightintensity:r.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+n}},ri=function(e,i,n,r,o,a){return t.extend(ni(e,i,n),ii(o,i,a),{u_height_factor:-Math.pow(2,r.overscaledZ)/a.tileSize/8})},oi=function(e,i,n){var r=t.create();t.ortho(r,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:r,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_opacity:i}},ai=function(t){return{u_matrix:t}},si=function(e,i,n,r){return t.extend(ai(e),ii(n,i,r))},li=function(t,e){return{u_matrix:t,u_world:e}},ui=function(e,i,n,r,o){return t.extend(si(e,i,n,r),{u_world:o})},ci=function(t,e,i,n){var r,o,a=t.transform;if("map"===n.paint.get("circle-pitch-alignment")){var s=we(i,1,a.zoom);r=!0,o=[s,s]}else r=!1,o=a.pixelsToGLUnits;return{u_camera_to_center_distance:a.cameraToCenterDistance,u_scale_with_map:+("map"===n.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(e.posMatrix,i,n.paint.get("circle-translate"),n.paint.get("circle-translate-anchor")),u_pitch_with_map:+r,u_extrude_scale:o}},hi=function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,i.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,i.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,i.u_overscale_factor)}},pi=function(t,e,i){var n=we(i,1,e.zoom),r=Math.pow(2,e.zoom-i.tileID.overscaledZ),o=i.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*r),e.pixelsToGLUnits[1]/(n*r)],u_overscale_factor:o}},fi=function(t,e){return{u_matrix:t,u_color:e}},di=function(t){return{u_matrix:t}},mi=function(t,e,i,n){return{u_matrix:t,u_extrude_scale:we(e,1,i),u_intensity:n}},yi=function(e,i,n){var r=n.paint.get("hillshade-shadow-color"),o=n.paint.get("hillshade-highlight-color"),a=n.paint.get("hillshade-accent-color"),s=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);return"viewport"===n.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle),{u_matrix:e.transform.calculatePosMatrix(i.tileID.toUnwrapped(),!0),u_image:0,u_latrange:function(e,i){var n=i.toCoordinate(),r=new t.Coordinate(n.column,n.row+1,n.zoom);return[e.transform.coordinateLocation(n).lat,e.transform.coordinateLocation(r).lat]}(e,i.tileID),u_light:[n.paint.get("hillshade-exaggeration"),s],u_shadow:r,u_highlight:o,u_accent:a}},vi=function(e,i){var n=e.dem.dim,r=t.create();return t.ortho(r,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(r,r,[0,-t.EXTENT,0]),{u_matrix:r,u_image:1,u_dimension:[2*n,2*n],u_zoom:e.tileID.overscaledZ,u_maxzoom:i}},gi=function(t,e,i){var n=t.transform;return{u_matrix:Ti(t,e,i),u_ratio:1/we(e,1,n.zoom),u_gl_units_to_pixels:[1/n.pixelsToGLUnits[0],1/n.pixelsToGLUnits[1]]}},_i=function(e,i,n){return t.extend(gi(e,i,n),{u_image:0})},bi=function(e,i,n,r){var o=e.transform,a=wi(i,o);return{u_matrix:Ti(e,i,n),u_texsize:i.imageAtlasTexture.size,u_ratio:1/we(i,1,o.zoom),u_image:0,u_scale:[t.browser.devicePixelRatio,a,r.fromScale,r.toScale],u_fade:r.t,u_gl_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},xi=function(e,i,n,r,o){var a=e.transform,s=e.lineAtlas,l=wi(i,a),u="round"===n.layout.get("line-cap"),c=s.getDash(r.from,u),h=s.getDash(r.to,u),p=c.width*o.fromScale,f=h.width*o.toScale;return t.extend(gi(e,i,n),{u_patternscale_a:[l/p,-c.height/2],u_patternscale_b:[l/f,-h.height/2],u_sdfgamma:s.width/(256*Math.min(p,f)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:h.y,u_mix:o.t})};function wi(t,e){return 1/we(t,1,e.tileZoom)}function Ti(t,e,i){return t.translatePosMatrix(e.tileID.posMatrix,e,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}var ki=function(t,e,i,n,r){return{u_matrix:t,u_tl_parent:e,u_scale_parent:i,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(a=r.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(o=r.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:function(t){t*=Math.PI/180;var e=Math.sin(t),i=Math.cos(t);return[(2*i+1)/3,(-Math.sqrt(3)*e-i+1)/3,(Math.sqrt(3)*e-i+1)/3]}(r.paint.get("raster-hue-rotate"))};var o,a},Si=function(t,e,i,n,r,o,a,s,l,u){var c=r.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:c.width/c.height,u_fade_change:r.options.fadeDuration?r.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_gl_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:u,u_texture:0}},Ei=function(e,i,n,r,o,a,s,l,u,c,h){var p=o.transform;return t.extend(Si(e,i,n,r,o,a,s,l,u,c),{u_gamma_scale:r?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_is_halo:+h})},Pi=function(t,e,i){return{u_matrix:t,u_opacity:e,u_color:i}},Ai=function(e,i,n,r,o,a){return t.extend(function(t,e,i,n){var r=i.imageManager.getPattern(t.from),o=i.imageManager.getPattern(t.to),a=i.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,n.tileID.overscaledZ),c=n.tileSize*Math.pow(2,i.transform.tileZoom)/u,h=c*(n.tileID.canonical.x+n.tileID.wrap*u),p=c*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:r.tl,u_pattern_br_a:r.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:r.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/we(n,1,i.transform.tileZoom),u_pixel_coord_upper:[h>>16,p>>16],u_pixel_coord_lower:[65535&h,65535&p]}}(r,a,n,o),{u_matrix:e,u_opacity:i})},Ci={fillExtrusion:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_lightpos:new t.Uniform3f(e,i.u_lightpos),u_lightintensity:new t.Uniform1f(e,i.u_lightintensity),u_lightcolor:new t.Uniform3f(e,i.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,i.u_vertical_gradient)}},fillExtrusionPattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_lightpos:new t.Uniform3f(e,i.u_lightpos),u_lightintensity:new t.Uniform1f(e,i.u_lightintensity),u_lightcolor:new t.Uniform3f(e,i.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,i.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,i.u_height_factor),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform4f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},extrusionTexture:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_opacity:new t.Uniform1f(e,i.u_opacity)}},fill:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},fillPattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform4f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},fillOutline:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world)}},fillOutlinePattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform4f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},circle:function(e,i){return{u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,i.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,i.u_extrude_scale),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},collisionBox:hi,collisionCircle:hi,debug:function(e,i){return{u_color:new t.UniformColor(e,i.u_color),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},clippingMask:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},heatmap:function(e,i){return{u_extrude_scale:new t.Uniform1f(e,i.u_extrude_scale),u_intensity:new t.Uniform1f(e,i.u_intensity),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}},heatmapTexture:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_color_ramp:new t.Uniform1i(e,i.u_color_ramp),u_opacity:new t.Uniform1f(e,i.u_opacity)}},hillshade:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_latrange:new t.Uniform2f(e,i.u_latrange),u_light:new t.Uniform2f(e,i.u_light),u_shadow:new t.UniformColor(e,i.u_shadow),u_highlight:new t.UniformColor(e,i.u_highlight),u_accent:new t.UniformColor(e,i.u_accent)}},hillshadePrepare:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_dimension:new t.Uniform2f(e,i.u_dimension),u_zoom:new t.Uniform1f(e,i.u_zoom),u_maxzoom:new t.Uniform1f(e,i.u_maxzoom)}},line:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_gl_units_to_pixels:new t.Uniform2f(e,i.u_gl_units_to_pixels)}},lineGradient:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_gl_units_to_pixels:new t.Uniform2f(e,i.u_gl_units_to_pixels),u_image:new t.Uniform1i(e,i.u_image)}},linePattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_texsize:new t.Uniform2f(e,i.u_texsize),u_ratio:new t.Uniform1f(e,i.u_ratio),u_image:new t.Uniform1i(e,i.u_image),u_gl_units_to_pixels:new t.Uniform2f(e,i.u_gl_units_to_pixels),u_scale:new t.Uniform4f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}},lineSDF:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_gl_units_to_pixels:new t.Uniform2f(e,i.u_gl_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,i.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,i.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,i.u_sdfgamma),u_image:new t.Uniform1i(e,i.u_image),u_tex_y_a:new t.Uniform1f(e,i.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,i.u_tex_y_b),u_mix:new t.Uniform1f(e,i.u_mix)}},raster:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_tl_parent:new t.Uniform2f(e,i.u_tl_parent),u_scale_parent:new t.Uniform1f(e,i.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,i.u_buffer_scale),u_fade_t:new t.Uniform1f(e,i.u_fade_t),u_opacity:new t.Uniform1f(e,i.u_opacity),u_image0:new t.Uniform1i(e,i.u_image0),u_image1:new t.Uniform1i(e,i.u_image1),u_brightness_low:new t.Uniform1f(e,i.u_brightness_low),u_brightness_high:new t.Uniform1f(e,i.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,i.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,i.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,i.u_spin_weights)}},symbolIcon:function(e,i){return{u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix
1),u_gl_coord_matrix:new t.UniformMatrix4f(e,i.u_gl_coord_matrix),u_is_text:new t.Uniform1f(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texture:new t.Uniform1i(e,i.u_texture)}},symbolSDF:function(e,i){return{u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_gl_coord_matrix:new t.UniformMatrix4f(e,i.u_gl_coord_matrix),u_is_text:new t.Uniform1f(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texture:new t.Uniform1i(e,i.u_texture),u_gamma_scale:new t.Uniform1f(e,i.u_gamma_scale),u_is_halo:new t.Uniform1f(e,i.u_is_halo)}},background:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_opacity:new t.Uniform1f(e,i.u_opacity),u_color:new t.UniformColor(e,i.u_color)}},backgroundPattern:function(e,i){return{u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_opacity:new t.Uniform1f(e,i.u_opacity),u_image:new t.Uniform1i(e,i.u_image),u_pattern_tl_a:new t.Uniform2f(e,i.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,i.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,i.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,i.u_pattern_br_b),u_texsize:new t.Uniform2f(e,i.u_texsize),u_mix:new t.Uniform1f(e,i.u_mix),u_pattern_size_a:new t.Uniform2f(e,i.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,i.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,i.u_scale_a),u_scale_b:new t.Uniform1f(e,i.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,i.u_tile_units_to_pixels)}}};function Di(e,i){for(var n=e.sort(function(t,e){return t.tileID.isLessThan(e.tileID)?-1:e.tileID.isLessThan(t.tileID)?1:0}),r=0;r<n.length;r++){var o={},a=n[r],s=n.slice(r+1);Oi(a.tileID.wrapped(),a.tileID,s,new t.OverscaledTileID(0,a.tileID.wrap+1,0,0,0),o),a.setMask(o,i)}}function Oi(e,i,n,r,o){for(var a=0;a<n.length;a++){var s=n[a];if(r.isLessThan(s.tileID))break;if(i.key===s.tileID.key)return;if(s.tileID.isChildOf(i)){for(var l=i.children(1/0),u=0;u<l.length;u++)Oi(e,l[u],n.slice(a),r,o);return}}var c=i.overscaledZ-e.overscaledZ,h=new t.CanonicalTileID(c,i.canonical.x-(e.canonical.x<<c),i.canonical.y-(e.canonical.y<<c));o[h.key]=o[h.key]||h}function Mi(t,e,i,n,r){for(var o=t.context,a=o.gl,s=r?t.useProgram("collisionCircle"):t.useProgram("collisionBox"),l=0;l<n.length;l++){var u=n[l],c=e.getTile(u),h=c.getBucket(i);if(h){var p=r?h.collisionCircle:h.collisionBox;p&&s.draw(o,r?a.TRIANGLES:a.LINES,Bt.disabled,jt.disabled,t.colorModeForRenderPass(),Nt.disabled,pi(u.posMatrix,t.transform,c),i.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,null,t.transform.zoom,null,null,p.collisionVertexBuffer)}}}var Ii=t.identity(new Float32Array(16)),zi=t.properties.layout;function Li(e,i,n,r,o,a,s,l,u,c,h,p){for(var f,d,m=e.context,y=m.gl,v=e.transform,g="map"===l,_="map"===u,b=g&&"point"!==n.layout.get("symbol-placement"),x=g&&!_&&!b,w=_?e.depthModeForSublayer(0,Bt.ReadOnly):Bt.disabled,T=0,k=r;T<k.length;T+=1){var S=k[T],E=i.getTile(S),P=E.getBucket(n);if(P){var A=o?P.text:P.icon;if(A&&A.segments.get().length){var C=A.programConfigurations.get(n.id),D=o||P.sdfIcons,O=o?P.textSizeData:P.iconSizeData;f||(f=e.useProgram(D?"symbolSDF":"symbolIcon",C),d=t.evaluateSizeForZoom(O,v.zoom,zi.properties[o?"text-size":"icon-size"])),m.activeTexture.set(y.TEXTURE0);var M=void 0;if(o)E.glyphAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),M=E.glyphAtlasTexture.size;else{var I=1!==n.layout.get("icon-size").constantOr(0)||P.iconsNeedLinear,z=_||0!==v.pitch;E.imageAtlasTexture.bind(D||e.options.rotating||e.options.zooming||I||z?y.LINEAR:y.NEAREST,y.CLAMP_TO_EDGE),M=E.imageAtlasTexture.size}var L=we(E,1,e.transform.zoom),R=se(S.posMatrix,_,g,e.transform,L),B=le(S.posMatrix,_,g,e.transform,L);b&&he(P,S.posMatrix,e,o,R,B,_,c);var j=e.translatePosMatrix(S.posMatrix,E,a,s),F=b?Ii:R,N=e.translatePosMatrix(B,E,a,s,!0),V=void 0;if(D){var U=0!==n.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);V=Ei(O.functionType,d,x,_,e,j,F,N,o,M,!0),U&&Ri(A,n,e,f,w,h,p,V),V.u_is_halo=0}else V=Si(O.functionType,d,x,_,e,j,F,N,o,M);Ri(A,n,e,f,w,h,p,V)}}}}function Ri(t,e,i,n,r,o,a,s){var l=i.context,u=l.gl;n.draw(l,u.TRIANGLES,r,o,a,Nt.disabled,s,e.id,t.layoutVertexBuffer,t.indexBuffer,t.segments,e.paint,i.transform.zoom,t.programConfigurations.get(e.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function Bi(t,e,i,n,r,o,a){var s,l,u,c,h,p=t.context.gl,f=i.paint.get("fill-pattern"),d=f&&f.constantOr(1),m=i.getCrossfadeParameters();a?(l=d&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=p.LINES):(l=d?"fillPattern":"fill",s=p.TRIANGLES);for(var y=0,v=n;y<v.length;y+=1){var g=v[y],_=e.getTile(g);if(!d||_.patternsLoaded()){var b=_.getBucket(i);if(b){var x=b.programConfigurations.get(i.id),w=t.useProgram(l,x);d&&(t.context.activeTexture.set(p.TEXTURE0),_.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),x.updatePatternPaintBuffers(m));var T=f.constantOr(null);if(T&&_.imageAtlas){var k=_.imageAtlas.patternPositions[T.to],S=_.imageAtlas.patternPositions[T.from];k&&S&&x.setConstantPatternPositions(k,S)}var E=t.translatePosMatrix(g.posMatrix,_,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(a){c=b.indexBuffer2,h=b.segments2;var P=[p.drawingBufferWidth,p.drawingBufferHeight];u="fillOutlinePattern"===l&&d?ui(E,t,m,_,P):li(E,P)}else c=b.indexBuffer,h=b.segments,u=d?si(E,t,m,_):ai(E);w.draw(t.context,s,r,t.stencilModeForClipping(g),o,Nt.disabled,u,i.id,b.layoutVertexBuffer,c,h,i.paint,t.transform.zoom,x)}}}}function ji(e,i){var n=e.context,r=n.gl,o=i.viewportFrame;if(e.depthRboNeedsClear&&e.setupOffscreenDepthRenderbuffer(),!o){var a=new t.Texture(n,{width:e.width,height:e.height,data:null},r.RGBA);a.bind(r.LINEAR,r.CLAMP_TO_EDGE),(o=i.viewportFrame=n.createFramebuffer(e.width,e.height)).colorAttachment.set(a.texture)}n.bindFramebuffer.set(o.framebuffer),o.depthAttachment.set(e.depthRbo),e.depthRboNeedsClear&&(n.clear({depth:1}),e.depthRboNeedsClear=!1),n.clear({color:t.Color.transparent}),n.setStencilMode(jt.disabled),n.setDepthMode(new Bt(r.LEQUAL,Bt.ReadWrite,[0,1])),n.setColorMode(e.colorModeForRenderPass())}function Fi(t,e,i){var n=e.viewportFrame;if(n){var r=t.context,o=r.gl;r.activeTexture.set(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,n.colorAttachment.get()),t.useProgram("extrusionTexture").draw(r,o.TRIANGLES,Bt.disabled,jt.disabled,t.colorModeForRenderPass(),Nt.disabled,oi(t,i,0),e.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,e.paint,t.transform.zoom)}}
1function Ni(t,e,i,n,r,o){var a=t.context,s=a.gl,l=e.fbo;if(l){var u=t.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var c=yi(t,e,i);e.maskedBoundsBuffer&&e.maskedIndexBuffer&&e.segments?u.draw(a,s.TRIANGLES,n,r,o,Nt.disabled,c,i.id,e.maskedBoundsBuffer,e.maskedIndexBuffer,e.segments):u.draw(a,s.TRIANGLES,n,r,o,Nt.disabled,c,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function Vi(e,i,n,r,o,a,s){var l=e.context,u=l.gl;if(i.dem&&i.dem.data){var c=i.dem.dim,h=i.dem.getPixels();if(l.activeTexture.set(u.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||e.getTileTexture(i.tileSize),i.demTexture){var p=i.demTexture;p.update(h,{premultiply:!1}),p.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else i.demTexture=new t.Texture(l,h,u.RGBA,{premultiply:!1}),i.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);l.activeTexture.set(u.TEXTURE0);var f=i.fbo;if(!f){var d=new t.Texture(l,{width:c,height:c,data:null},u.RGBA);d.bind(u.LINEAR,u.CLAMP_TO_EDGE),(f=i.fbo=l.createFramebuffer(c,c)).colorAttachment.set(d.texture)}l.bindFramebuffer.set(f.framebuffer),l.viewport.set([0,0,c,c]),e.useProgram("hillshadePrepare").draw(l,u.TRIANGLES,o,a,s,Nt.disabled,vi(i,r),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),i.needsHillshadePrepare=!1}}function Ui(e,i,n,r,o){var a=r.paint.get("raster-fade-duration");if(a>0){var s=t.browser.now(),l=(s-e.timeAdded)/a,u=i?(s-i.timeAdded)/a:-1,c=n.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),p=!i||Math.abs(i.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),f=p&&e.refreshedUponExpiration?1:t.clamp(p?l:1-u,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),i?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}function qi(e,i,n){var r=e.context,o=r.gl,a=n.posMatrix,s=e.useProgram("debug"),l=Bt.disabled,u=jt.disabled,c=e.colorModeForRenderPass(),h="$debug";s.draw(r,o.LINE_STRIP,l,u,c,Nt.disabled,fi(a,t.Color.red),h,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);for(var p=function(t,e,i,n){n=n||1;var r,o,a,s,l,u,c,h,p=[];for(r=0,o=t.length;r<o;r++)if(l=Yi[t[r]]){for(h=null,a=0,s=l[1].length;a<s;a+=2)-1===l[1][a]&&-1===l[1][a+1]?h=null:(u=e+l[1][a]*n,c=200-l[1][a+1]*n,h&&p.push(h.x,h.y,u,c),h={x:u,y:c});e+=l[0]*n}return p}(n.toString(),50,0,5),f=new t.StructArrayLayout2i4,d=new t.StructArrayLayout2ui4,m=0;m<p.length;m+=2)f.emplaceBack(p[m],p[m+1]),d.emplaceBack(m,m+1);for(var y=r.createVertexBuffer(f,Ze.members),v=r.createIndexBuffer(d),g=t.SegmentVector.simpleSegment(0,0,f.length/2,f.length/2),_=i.getTile(n).tileSize,b=t.EXTENT/(Math.pow(2,e.transform.zoom-n.overscaledZ)*_),x=[[-1,-1],[-1,1],[1,-1],[1,1]],w=0;w<x.length;w++){var T=x[w];s.draw(r,o.LINES,l,u,c,Nt.disabled,fi(t.translate([],a,[b*T[0],b*T[1],0]),t.Color.white),h,y,v,g)}s.draw(r,o.LINES,l,u,c,Nt.disabled,fi(a,t.Color.black),h,y,v,g)}var Yi={" ":[16,[]],"!":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'"':[16,[4,21,4,14,-1,-1,12,21,12,14]],"#":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],"%":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],"&":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],"'":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],"(":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],")":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],"*":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],"+":[26,[13,18,13,0,-1,-1,4,9,22,9]],",":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"-":[26,[4,9,22,9]],".":[10,[5,2,4,1,5,0,6,1,5,2]],"/":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],":":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],";":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"<":[24,[20,18,4,9,20,0]],"=":[26,[4,12,22,12,-1,-1,4,6,22,6]],">":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,
111,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},Hi={symbol:function(t,e,i,n){if("translucent"===t.renderPass){var r=jt.disabled,o=t.colorModeForRenderPass();0!==i.paint.get("icon-opacity").constantOr(1)&&Li(t,e,i,n,!1,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),i.layout.get("icon-rotation-alignment"),i.layout.get("icon-pitch-alignment"),i.layout.get("icon-keep-upright"),r,o),0!==i.paint.get("text-opacity").constantOr(1)&&Li(t,e,i,n,!0,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),i.layout.get("text-keep-upright"),r,o),e.map.showCollisionBoxes&&function(t,e,i,n){Mi(t,e,i,n,!1),Mi(t,e,i,n,!0)}(t,e,i,n)}},circle:function(t,e,i,n){if("translucent"===t.renderPass){var r=i.paint.get("circle-opacity"),o=i.paint.get("circle-stroke-width"),a=i.paint.get("circle-stroke-opacity");if(0!==r.constantOr(1)||0!==o.constantOr(1)&&0!==a.constantOr(1))for(var s=t.context,l=s.gl,u=t.depthModeForSublayer(0,Bt.ReadOnly),c=jt.disabled,h=t.colorModeForRenderPass(),p=0;p<n.length;p++){var f=n[p],d=e.getTile(f),m=d.getBucket(i);if(m){var y=m.programConfigurations.get(i.id);t.useProgram("circle",y).draw(s,l.TRIANGLES,u,c,h,Nt.disabled,ci(t,f,d,i),i.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,i.paint,t.transform.zoom,y)}}}},heatmap:function(e,i,n,r){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){var o=e.context,a=o.gl,s=e.depthModeForSublayer(0,Bt.ReadOnly),l=jt.disabled,u=new Ft([a.ONE,a.ONE],t.Color.transparent,[!0,!0,!0,!0]);
vendor: 4,205 bytes, line 1
1!function(t,e,i){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var r=i.heatmapFbo;if(r)n.bindTexture(n.TEXTURE_2D,r.colorAttachment.get()),t.bindFramebuffer.set(r.framebuffer);else{var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),r=i.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4),function t(e,i,n,r){var o=e.gl;o.texImage2D(o.TEXTURE_2D,0,o.RGBA,i.width/4,i.height/4,0,o.RGBA,e.extTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:o.UNSIGNED_BYTE,null),r.colorAttachment.set(n),e.extTextureHalfFloat&&o.checkFramebufferStatus(o.FRAMEBUFFER)!==o.FRAMEBUFFER_COMPLETE&&(e.extTextureHalfFloat=null,r.colorAttachment.setDirty(),t(e,i,n,r))}(t,e,o,r)}}(o,e,n),o.clear({color:t.Color.transparent});for(var c=0;c<r.length;c++){var h=r[c];if(!i.hasRenderableParent(h)){var p=i.getTile(h),f=p.getBucket(n);if(f){var d=f.programConfigurations.get(n.id),m=e.useProgram("heatmap",d),y=e.transform.zoom;m.draw(o,a.TRIANGLES,s,l,u,Nt.disabled,mi(h.posMatrix,p,y,n.paint.get("heatmap-intensity")),n.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,n.paint,e.transform.zoom,d)}}}o.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,i){var n=e.context,r=n.gl,o=i.heatmapFbo;if(o){n.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,o.colorAttachment.get()),n.activeTexture.set(r.TEXTURE1);var a=i.colorRampTexture;a||(a=i.colorRampTexture=new t.Texture(n,i.colorRamp,r.RGBA)),a.bind(r.LINEAR,r.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(n,r.TRIANGLES,Bt.disabled,jt.disabled,e.colorModeForRenderPass(),Nt.disabled,function(e,i,n,r){var o=t.create();t.ortho(o,0,e.width,e.height,0,0,1);var a=e.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:n,u_color_ramp:r,u_opacity:i.paint.get("heatmap-opacity")}}(e,i,0,1),i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom)}}(e,n))},line:function(e,i,n,r){if("translucent"===e.renderPass){var o=n.paint.get("line-opacity"),a=n.paint.get("line-width");if(0!==o.constantOr(1)&&0!==a.constantOr(1)){var s=e.depthModeForSublayer(0,Bt.ReadOnly),l=e.colorModeForRenderPass(),u=n.paint.get("line-dasharray"),c=n.paint.get("line-pattern"),h=c.constantOr(1),p=n.paint.get("line-gradient"),f=n.getCrossfadeParameters(),d=u?"lineSDF":h?"linePattern":p?"lineGradient":"line",m=e.context,y=m.gl,v=!0;if(p){m.activeTexture.set(y.TEXTURE0);var g=n.gradientTexture;if(!n.gradient)return;g||(g=n.gradientTexture=new t.Texture(m,n.gradient,y.RGBA)),g.bind(y.LINEAR,y.CLAMP_TO_EDGE)}for(var _=0,b=r;_<b.length;_+=1){var x=b[_],w=i.getTile(x);if(!h||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),S=e.context.program.get(),E=e.useProgram(d,k),P=v||E.program!==S,A=c.constantOr(null);if(A&&w.imageAtlas){var C=w.imageAtlas.patternPositions[A.to],D=w.imageAtlas.patternPositions[A.from];C&&D&&k.setConstantPatternPositions(C,D)}var O=u?xi(e,w,n,u,f):h?bi(e,w,n,f):p?_i(e,w,n):gi(e,w,n);u&&(P||e.lineAtlas.dirty)?(m.activeTexture.set(y.TEXTURE0),e.lineAtlas.bind(m)):h&&(m.activeTexture.set(y.TEXTURE0),w.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),k.updatePatternPaintBuffers(f)),E.draw(m,y.TRIANGLES,s,e.stencilModeForClipping(x),l,Nt.disabled,O,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,i,n,r){var o=n.paint.get("fill-color"),a=n.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get("fill-pattern").constantOr(1)||1!==o.constantOr(t.Color.transparent).a||1!==a.constantOr(0)?"translucent":"opaque";e.renderPass===l&&Bi(e,i,n,r,e.depthModeForSublayer(1,"opaque"===e.renderPass?Bt.ReadWrite:Bt.ReadOnly),s,!1),"translucent"===e.renderPass&&n.paint.get("fill-antialias")&&Bi(e,i,n,r,e.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,Bt.ReadOnly),s,!0)}}
1,"fill-extrusion":function(t,e,i,n){0!==i.paint.get("fill-extrusion-opacity")&&("offscreen"===t.renderPass?(ji(t,i),function(t,e,i,n,r,o,a){for(var s=t.context,l=s.gl,u=i.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),h=i.getCrossfadeParameters(),p=0,f=n;p<f.length;p+=1){var d=f[p],m=e.getTile(d),y=m.getBucket(i);if(y){var v=y.programConfigurations.get(i.id),g=t.useProgram(c?"fillExtrusionPattern":"fillExtrusion",v);c&&(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePatternPaintBuffers(h));var _=u.constantOr(null);if(_&&m.imageAtlas){var b=m.imageAtlas.patternPositions[_.to],x=m.imageAtlas.patternPositions[_.from];b&&x&&v.setConstantPatternPositions(b,x)}var w=t.translatePosMatrix(d.posMatrix,m,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),T=i.paint.get("fill-extrusion-vertical-gradient"),k=c?ri(w,t,T,d,h,m):ni(w,t,T);g.draw(s,s.gl.TRIANGLES,r,o,a,Nt.backCCW,k,i.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,i.paint,t.transform.zoom,v)}}}(t,e,i,n,new Bt(t.context.gl.LEQUAL,Bt.ReadWrite,[0,1]),jt.disabled,t.colorModeForRenderPass())):"translucent"===t.renderPass&&Fi(t,i,i.paint.get("fill-extrusion-opacity")))},hillshade:function(t,e,i,n){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var r=t.context,o=e.getSource().maxzoom,a=t.depthModeForSublayer(0,Bt.ReadOnly),s=jt.disabled,l=t.colorModeForRenderPass(),u=0,c=n;u<c.length;u+=1){var h=c[u],p=e.getTile(h);p.needsHillshadePrepare&&"offscreen"===t.renderPass?Vi(t,p,i,o,a,s,l):"translucent"===t.renderPass&&Ni(t,p,i,a,s,l)}r.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,i,n){if("translucent"===t.renderPass&&0!==i.paint.get("raster-opacity"))for(var r=t.context,o=r.gl,a=e.getSource(),s=t.useProgram("raster"),l=jt.disabled,u=t.colorModeForRenderPass(),c=n.length&&n[0].overscaledZ,h=0,p=n;h<p.length;h+=1){var f=p[h],d=t.depthModeForSublayer(f.overscaledZ-c,1===i.paint.get("raster-opacity")?Bt.ReadWrite:Bt.ReadOnly,o.LESS),m=e.getTile(f),y=t.transform.calculatePosMatrix(f.toUnwrapped(),!0);m.registerFadeDuration(i.paint.get("raster-fade-duration"));var v=e.findLoadedParent(f,0),g=Ui(m,v,e,i,t.transform),_=void 0,b=void 0,x="nearest"===i.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;r.activeTexture.set(o.TEXTURE0),m.texture.bind(x,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),r.activeTexture.set(o.TEXTURE1),v?(v.texture.bind(x,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),_=Math.pow(2,v.tileID.overscaledZ-m.tileID.overscaledZ),b=[m.tileID.canonical.x*_%1,m.tileID.canonical.y*_%1]):m.texture.bind(x,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var w=ki(y,b||[0,0],_||1,g,i);a instanceof H?s.draw(r,o.TRIANGLES,d,l,u,Nt.disabled,w,i.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):m.maskedBoundsBuffer&&m.maskedIndexBuffer&&m.segments?s.draw(r,o.TRIANGLES,d,l,u,Nt.disabled,w,i.id,m.maskedBoundsBuffer,m.maskedIndexBuffer,m.segments,i.paint,t.transform.zoom):s.draw(r,o.TRIANGLES,d,l,u,Nt.disabled,w,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,i){var n=i.paint.get("background-color"),r=i.paint.get("background-opacity");if(0!==r){var o=t.context,a=o.gl,s=t.transform,l=s.tileSize,u=i.paint.get("background-pattern");if(!t.isPatternMissing(u)){var c=u||1!==n.a||1!==r?"translucent":"opaque";if(t.renderPass===c){var h=jt.disabled,p=t.depthModeForSublayer(0,"opaque"===c?Bt.ReadWrite:Bt.ReadOnly),f=t.colorModeForRenderPass(),d=t.useProgram(u?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:l});u&&(o.activeTexture.set(a.TEXTURE0),t.imageManager.bind(t.context));for(var y=i.getCrossfadeParameters(),v=0,g=m;v<g.length;v+=1){var _=g[v],b=t.transform.calculatePosMatrix(_.toUnwrapped()),x=u?Ai(b,r,t,u,{tileID:_,tileSize:l},y):Pi(b,r,n);d.draw(o,a.TRIANGLES,p,h,f,Nt.disabled,x,i.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,i){for(var n=0;n<i.length;n++)qi(t,e,i[n])},custom:function(t,e,i){var n=t.context,r=i.implementation;if("offscreen"===t.renderPass){var o=r.prerender;o&&(t.setCustomLayerDefaults(),o.call(r,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState()),"3d"===r.renderingMode&&(t.setCustomLayerDefaults(),ji(t,i),r.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else"translucent"===t.renderPass&&("3d"===r.renderingMode?Fi(t,i,1):(t.setCustomLayerDefaults(),n.setStencilMode(jt.disabled),n.setDepthMode(Bt.disabled),r.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)))}},Wi=function(e,i){this.context=new Vt(e),this.transform=i,this._tileTextures={},this.setup(),this.numSublayers=Ut.maxUnderzooming+Ut.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.emptyProgramConfiguration=new t.ProgramConfiguration,this.crossTileSymbolIndex=new qe};function Gi(t,e){if(t.row>e.row){var i=t;t=e,e=i}return{x0:t.column,y0:t.row,x1:e.column,y1:e.row,dx:e.column-t.column,dy:e.row-t.row}}function Zi(t,e,i,n,r){var o=Math.max(i,Math.floor(e.y0)),a=Math.min(n,Math.ceil(e.y1));if(t.x0===e.x0&&t.y0===e.y0?t.x0+e.dy/t.dy*t.dx<e.x1:t.x1-e.dy/t.dy*t.dx<e.x0){var s=t;t=e,e=s}for(var l=t.dx/t.dy,u=e.dx/e.dy,c=t.dx>0,h=e.dx<0,p=o;p<a;p++){var f=l*Math.max(0,Math.min(t.dy,p+c-t.y0))+t.x0,d=u*Math.max(0,Math.min(e.dy,p+h-e.y0))+e.x0;r(Math.floor(d),Math.ceil(f),p)}}function Xi(t,e,i,n,r,o){var a,s=Gi(t,e),l=Gi(e,i),u=Gi(i,t);s.dy>l.dy&&(a=s,s=l,l=a),s.dy>u.dy&&(a=s,s=u,u=a),l.dy>u.dy&&(a=l,l=u,u=a),s.dy&&Zi(u,s,n,r,o),l.dy&&Zi(u,l,n,r,o)}Wi.prototype.resize=function(e,i){var n=this.context.gl;if(this.width=e*t.browser.devicePixelRatio,this.height=i*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,o=this.style._order;r<o.length;r+=1){var a=o[r];this.style._layers[a].resize()}this.depthRbo&&(n.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},Wi.prototype.setup=function(){var e=this.context,i=new t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(t.EXTENT,0),i.emplaceBack(0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(i,Ze.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,Ze.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var r=new t.StructArrayLayout4i8;r.emplaceBack(0,0,0,0),r.emplaceBack(t.EXTENT,0,t.EXTENT,0),r.emplaceBack(0,t.EXTENT,0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(r,t.rasterBoundsAttributes.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout2i4;
1o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(o,Ze.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(a);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s);var l=this.context.gl;this.stencilClearMode=new jt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},Wi.prototype.clearStencil=function(){var e=this.context,i=e.gl,n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[i.drawingBufferWidth,i.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,i.TRIANGLES,Bt.disabled,this.stencilClearMode,Ft.disabled,Nt.disabled,di(n),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},Wi.prototype._renderTileClippingMasks=function(t){var e=this.context,i=e.gl;e.setColorMode(Ft.disabled),e.setDepthMode(Bt.disabled);var n=this.useProgram("clippingMask"),r=1;this._tileClippingMaskIDs={};for(var o=0,a=t;o<a.length;o+=1){var s=a[o],l=this._tileClippingMaskIDs[s.key]=r++;n.draw(e,i.TRIANGLES,Bt.disabled,new jt({func:i.ALWAYS,mask:0},l,255,i.KEEP,i.KEEP,i.REPLACE),Ft.disabled,Nt.disabled,di(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}},Wi.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new jt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},Wi.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new Ft([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Ft.unblended:Ft.alphaBlended},Wi.prototype.depthModeForSublayer=function(t,e,i){var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon,r=n-1+this.depthRange;return new Bt(i||this.context.gl.LEQUAL,e,[r,n])},Wi.prototype.render=function(e,i){this.style=e,this.options=i,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now());var n=this.style._order,r=this.style.sourceCaches;for(var o in r){var a=r[o];a.used&&a.prepare(this.context)}var s,l={},u={},c={};for(var h in r){var p=r[h];l[h]=p.getVisibleCoordinates(),u[h]=l[h].slice().reverse(),c[h]=p.getVisibleCoordinates(!0).reverse()}for(var f in r){var d=r[f],m=d.getSource();if("raster"===m.type||"raster-dem"===m.type){for(var y=[],v=0,g=l[f];v<g.length;v+=1){var _=g[v];y.push(d.getTile(_))}Di(y,this.context)}}this.renderPass="offscreen",this.depthRboNeedsClear=!0;for(var b=0,x=n;b<x.length;b+=1){var w=x[b],T=this.style._layers[w];if(T.hasOffscreenPass()&&!T.isHidden(this.transform.zoom)){var k=u[T.source];("custom"===T.type||k.length)&&this.renderLayer(this,r[T.source],T,k)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:i.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this._showOverdrawInspector=i.showOverdrawInspector,this.depthRange=(e._order.length+2)*this.numSublayers*this.depthEpsilon,this.renderPass="opaque",this.currentLayer=n.length-1;this.currentLayer>=0;this.currentLayer--){var S=this.style._layers[n[this.currentLayer]],E=r[S.source],P=l[S.source];S.source!==s&&E&&(this.clearStencil(),E.getSource().isTileClipped&&this._renderTileClippingMasks(P)),this.renderLayer(this,E,S,P),s=S.source}for(this.renderPass="translucent",this.currentLayer=0,s=null;this.currentLayer<n.length;this.currentLayer++){var A=this.style._layers[n[this.currentLayer]],C=r[A.source],D=("symbol"===A.type?c:u)[A.source];A.source!==s&&C&&(this.clearStencil(),C.getSource().isTileClipped&&this._renderTileClippingMasks(l[A.source])),this.renderLayer(this,C,A,D),s=A.source}if(this.options.showTileBoundaries)for(var O in r){Hi.debug(this,r[O],l[O]);break}this.setCustomLayerDefaults()},Wi.prototype.setupOffscreenDepthRenderbuffer=function(){var t=this.context;this.depthRbo||(this.depthRbo=t.createRenderbuffer(t.gl.DEPTH_COMPONENT16,this.width,this.height))}
vendor: 6,625 bytes, line 1
1,Wi.prototype.renderLayer=function(t,e,i,n){i.isHidden(this.transform.zoom)||("background"===i.type||"custom"===i.type||n.length)&&(this.id=i.id,Hi[i.type](t,e,i,n))},Wi.prototype.translatePosMatrix=function(e,i,n,r,o){if(!n[0]&&!n[1])return e;var a=o?"map"===r?this.transform.angle:0:"viewport"===r?-this.transform.angle:0;if(a){var s=Math.sin(a),l=Math.cos(a);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var u=[o?n[0]:we(i,n[0],this.transform.zoom),o?n[1]:we(i,n[1],this.transform.zoom),0],c=new Float32Array(16);return t.translate(c,e,u),c},Wi.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},Wi.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&&e.length>0?e.pop():null},Wi.prototype.isPatternMissing=function(t){if(!t)return!1;var e=this.imageManager.getPattern(t.from),i=this.imageManager.getPattern(t.to);return!e||!i},Wi.prototype.useProgram=function(t,e){void 0===e&&(e=this.emptyProgramConfiguration),this.cache=this.cache||{};var i=""+t+(e.cacheKey||"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[i]||(this.cache[i]=new ei(this.context,Qe[t],e,Ci[t],this._showOverdrawInspector)),this.cache[i]},Wi.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Wi.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)};var Ki=function(t,e,i){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=t||0,this._maxZoom=e||22,this.setMaxBounds(),this.width=0,this.height=0,this._center=new j(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ji={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},x:{configurable:!0},y:{configurable:!0},point:{configurable:!0}};Ki.prototype.clone=function(){var t=new Ki(this._minZoom,this._maxZoom,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._calcMatrices(),t},Ji.minZoom.get=function(){return this._minZoom},Ji.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Ji.maxZoom.get=function(){return this._maxZoom},Ji.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Ji.renderWorldCopies.get=function(){return this._renderWorldCopies},Ji.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Ji.worldSize.get=function(){return this.tileSize*this.scale},Ji.centerPoint.get=function(){return this.size._div(2)},Ji.size.get=function(){return new t.Point(this.width,this.height)},Ji.bearing.get=function(){return-this.angle/Math.PI*180},Ji.bearing.set=function(e){var i=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=t.create$4(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ji.pitch.get=function(){return this._pitch/Math.PI*180},Ji.pitch.set=function(e){var i=t.clamp(e,0,60)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())},Ji.fov.get=function(){return this._fov/Math.PI*180},Ji.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Ji.zoom.get=function(){return this._zoom},Ji.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Ji.center.get=function(){return this._center},Ji.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Ki.prototype.coveringZoomLevel=function(t){return(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize))},Ki.prototype.getVisibleUnwrappedCoordinates=function(e){var i=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0),0),r=this.pointCoordinate(new t.Point(this.width,0),0),o=this.pointCoordinate(new t.Point(this.width,this.height),0),a=this.pointCoordinate(new t.Point(0,this.height),0),s=Math.floor(Math.min(n.column,r.column,o.column,a.column)),l=Math.floor(Math.max(n.column,r.column,o.column,a.column)),u=s-1;u<=l+1;u++)0!==u&&i.push(new t.UnwrappedTileID(u,e));return i},Ki.prototype.coveringTiles=function(e){var i=this.coveringZoomLevel(e),n=i;if(void 0!==e.minzoom&&i<e.minzoom)return[];void 0!==e.maxzoom&&i>e.maxzoom&&(i=e.maxzoom);var r=this.pointCoordinate(this.centerPoint,i),o=new t.Point(r.column-.5,r.row-.5);return function(e,i,n,r){void 0===r&&(r=!0);var o=1<<e,a={};function s(i,s,l){var u,c,h,p;if(l>=0&&l<=o)for(u=i;u<s;u++)c=Math.floor(u/o),h=(u%o+o)%o,0!==c&&!0!==r||(p=new t.OverscaledTileID(n,c,e,h,l),a[p.key]=p)}return Xi(i[0],i[1],i[2],0,o,s),Xi(i[2],i[3],i[0],0,o,s),Object.keys(a).map(function(t){return a[t]})}(i,[this.pointCoordinate(new t.Point(0,0),i),this.pointCoordinate(new t.Point(this.width,0),i),this.pointCoordinate(new t.Point(this.width,this.height),i),this.pointCoordinate(new t.Point(0,this.height),i)],e.reparseOverscaled?n:i,this._renderWorldCopies).sort(function(t,e){return o.dist(t.canonical)-o.dist(e.canonical)})},Ki.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Ji.unmodified.get=function(){return this._unmodified},Ki.prototype.zoomScale=function(t){return Math.pow(2,t)},Ki.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Ki.prototype.project=function(e){return new t.Point(this.lngX(e.lng),this.latY(e.lat))},Ki.prototype.unproject=function(t){return new j(this.xLng(t.x),this.yLat(t.y
1))},Ji.x.get=function(){return this.lngX(this.center.lng)},Ji.y.get=function(){return this.latY(this.center.lat)},Ji.point.get=function(){return new t.Point(this.x,this.y)},Ki.prototype.lngX=function(t){return(180+t)*this.worldSize/360},Ki.prototype.latY=function(e){return e=t.clamp(e,-this.maxValidLatitude,this.maxValidLatitude),(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))*this.worldSize/360},Ki.prototype.xLng=function(t){return 360*t/this.worldSize-180},Ki.prototype.yLat=function(t){var e=180-360*t/this.worldSize;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90},Ki.prototype.setLocationAtPoint=function(t,e){var i=this.pointCoordinate(e)._sub(this.pointCoordinate(this.centerPoint));this.center=this.coordinateLocation(this.locationCoordinate(t)._sub(i)),this._renderWorldCopies&&(this.center=this.center.wrap())},Ki.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Ki.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Ki.prototype.locationCoordinate=function(e){return new t.Coordinate(this.lngX(e.lng)/this.tileSize,this.latY(e.lat)/this.tileSize,this.zoom).zoomTo(this.tileZoom)},Ki.prototype.coordinateLocation=function(t){var e=t.zoomTo(this.zoom);return new j(this.xLng(e.column*this.tileSize),this.yLat(e.row*this.tileSize))},Ki.prototype.pointCoordinate=function(e,i){void 0===i&&(i=this.tileZoom);var n=[e.x,e.y,0,1],r=[e.x,e.y,1,1];t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(r,r,this.pixelMatrixInverse);var o=n[3],a=r[3],s=n[0]/o,l=r[0]/a,u=n[1]/o,c=r[1]/a,h=n[2]/o,p=r[2]/a,f=h===p?0:(0-h)/(p-h);return new t.Coordinate(t.number(s,l,f)/this.tileSize,t.number(u,c,f)/this.tileSize,this.zoom)._zoomTo(i)},Ki.prototype.coordinatePoint=function(e){var i=e.zoomTo(this.zoom),n=[i.column*this.tileSize,i.row*this.tileSize,0,1];return t.transformMat4(n,n,this.pixelMatrix),new t.Point(n[0]/n[3],n[1]/n[3])},Ki.prototype.getBounds=function(){return(new F).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},Ki.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new F([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Ki.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Ki.prototype.calculatePosMatrix=function(e,i){void 0===i&&(i=!1);var n=e.key,r=i?this._alignedPosMatrixCache:this._posMatrixCache;if(r[n])return r[n];var o=e.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*a,o.y*a,0]),t.scale(l,l,[a/t.EXTENT,a/t.EXT
1ENT,1]),t.multiply(l,i?this.alignedProjMatrix:this.projMatrix,l),r[n]=new Float32Array(l),r[n]},Ki.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Ki.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,i,n,r,o=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var h=this.latRange;o=this.latY(h[1]),e=(a=this.latY(h[0]))-o<u.y?u.y/(a-o):0}if(this.lngRange){var p=this.lngRange;s=this.lngX(p[0]),i=(l=this.lngX(p[1]))-s<u.x?u.x/(l-s):0}var f=Math.max(i||0,e||0);if(f)return this.center=this.unproject(new t.Point(i?(l+s)/2:this.x,e?(a+o)/2:this.y)),this.zoom+=this.scaleZoom(f),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var d=this.y,m=u.y/2;d-m<o&&(r=o+m),d+m>a&&(r=a-m)}if(this.lngRange){var y=this.x,v=u.x/2;y-v<s&&(n=s+v),y+v>l&&(n=l-v)}void 0===n&&void 0===r||(this.center=this.unproject(new t.Point(void 0!==n?n:this.x,void 0!==r?r:this.y))),this._unmodified=c,this._constraining=!1}},Ki.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var e=this._fov/2,i=Math.PI/2+this._pitch,n=Math.sin(e)*this.cameraToCenterDistance/Math.sin(Math.PI-i-e),r=this.x,o=this.y,a=1.01*(Math.cos(Math.PI/2-this._pitch)*n+this.cameraToCenterDistance),s=new Float64Array(16);t.perspective(s,this._fov,this.width/this.height,1,a),t.scale(s,s,[1,-1,1]),t.translate(s,s,[0,0,-this.cameraToCenterDistance]),t.rotateX(s,s,this._pitch),t.rotateZ(s,s,this.angle),t.translate(s,s,[-r,-o,0]),this.mercatorMatrix=t.scale([],s,[this.worldSize,this.worldSize,this.worldSize]);var l=this.worldSize/(2*Math.PI*6378137*Math.abs(Math.cos(this.center.lat*(Math.PI/180))));t.scale(s,s,[1,1,l,1]),this.projMatrix=s;var u=this.width%2/2,c=this.height%2/2,h=Math.cos(this.angle),p=Math.sin(this.angle),f=r-Math.round(r)+h*u+p*c,d=o-Math.round(o)+h*c+p*u,m=new Float64Array(s);if(t.translate(m,m,[f>.5?f-1:f,d>.5?d-1:d,0]),this.alignedProjMatrix=m,s=t.create(),t.scale(s,s,[this.width/2,-this.height/2,1]),t.translate(s,s,[1,-1,0]),this.pixelMatrix=t.multiply(new Float64Array(16),s,this.projMatrix),!(s=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=s,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Ki.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)).zoomTo(this.zoom),i=[e.column*this.tileSize,e.row*this.tileSize,0,1];return t.transformMat4(i,i,this.pixelMatrix)[3]/this.cameraToCenterDistance},Object.defineProperties(Ki.prototype,Ji);var $i=function(){var e,i,n,r;t.bindAll(["_onHashChange","_updateHash"],this),this._updateHash=(e=this._updateHashUnthrottled.bind(this),300,i=!1,n=0,r=function(){n=0,i&&(e(),n=setTimeout(r,300),i=!1)},function(){return i=!0,n||r(),n})};$i.prototype.addTo=function(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},$i.prototype.remove=function(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},$i.prototype.getHashString=function(t){var e=this._map.getCenter(),i=Math.round(100*this._map.getZoom())/100,n=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),r=Math.pow(10,n),o=Math.round(e.lng*r)/r,a=Math.round(e.lat*r)/r,s=this._map.getBearing(),l=this._map.getPitch(),u="";return u+=t?"#/"+o+"/"+a+"/"+i:"#"+i+"/"+a+"/"+o,(s||l)&&(u+="/"+Math.round(10*s)/10),l&&(u+="/"+Math.round(l)),u},$i.prototype._onHashChange=function(){var e=t.window.location.hash.replace("#","").split("/");return e.length>=3&&(this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:+(e[3]||0),pitch:+(e[4]||0)}),!0)},$i.prototype._updateHashUnthrottled=function(){var e=this.getHashString();t.window.history.replaceState(t.window.history.state,"",e)};var Qi=function(e){function n(n,r,o,a){void 0===a&&(a={});var s=i.mousePos(r.getCanvasContainer(),o),l=r.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:o},a)),this._defaultPrevented=!1,this.target=r}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,r),n}(t.Event),tn=function(e){function n(n,r,o){var a=i.touchPos(r.getCanvasContainer(),o),s=a.map(function(t){return r.unproject(t)}
vendor: 2,025 bytes, line 1
1),l=a.reduce(function(t,e,i,n){return t.add(e.div(n.length))},new t.Point(0,0)),u=r.unproject(l);e.call(this,n,{points:a,point:l,lngLats:s,lngLat:u,originalEvent:o}),this._defaultPrevented=!1}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,r),n}(t.Event),en=function(t){function e(e,i,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,i),e}(t.Event),nn=function(e){this._map=e,this._el=e.getCanvasContainer(),this._delta=0,t.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};nn.prototype.isEnabled=function(){return!!this._enabled},nn.prototype.isActive=function(){return!!this._active},nn.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},nn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},nn.prototype.onWheel=function(e){if(this.isEnabled()){var i=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),r=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==i&&i%4.000244140625==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(r*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),e.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=e,this._delta-=i,this.isActive()||this._start(e)),e.preventDefault()}}
vendor: 5,394 bytes, line 1
1,nn.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(t)},nn.prototype._start=function(e){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this._map.fire(new t.Event("movestart",{originalEvent:e})),this._map.fire(new t.Event("zoomstart",{originalEvent:e})),this._finishTimeout&&clearTimeout(this._finishTimeout);var n=i.mousePos(this._el,e);this._around=j.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},nn.prototype._onScrollFrame=function(){var e=this;if(this._frameId=null,this.isActive()){var i=this._map.transform;if(0!==this._delta){var n="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?1/450:.01,r=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta<0&&0!==r&&(r=1/r);var o="number"==typeof this._targetZoom?i.zoomScale(this._targetZoom):i.scale;this._targetZoom=Math.min(i.maxZoom,Math.max(i.minZoom,i.scaleZoom(o*r))),"wheel"===this._type&&(this._startZoom=i.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a="number"==typeof this._targetZoom?this._targetZoom:i.zoom,s=this._startZoom,l=this._easing,u=!1;if("wheel"===this._type&&s&&l){var c=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=l(c);i.zoom=t.number(s,a,h),c<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):u=!0}else i.zoom=a,u=!0;i.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new t.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new t.Event("zoom",{originalEvent:this._lastWheelEvent})),u&&(this._active=!1,this._finishTimeout=setTimeout(function(){e._map.fire(new t.Event("zoomend",{originalEvent:e._lastWheelEvent})),e._map.fire(new t.Event("moveend",{originalEvent:e._lastWheelEvent})),delete e._targetZoom},200))}},nn.prototype._smoothOutEasing=function(e){var i=t.ease;if(this._prevEase){var n=this._prevEase,r=(t.browser.now()-n.start)/n.duration,o=n.easing(r+.01)-n.easing(r),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);i=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:i},i};var rn=function(e,i){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=i.clickTolerance||1,t.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};rn.prototype.isEnabled=function(){return!!this._enabled},rn.prototype.isActive=function(){return!!this._active},rn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},rn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},rn.prototype.onMouseDown=function(e){this.isEnabled()&&e.shiftKey&&0===e.button&&(t.window.document.addEventListener("mousemove",this._onMouseMove,!1),t.window.document.addEventListener("keydown",this._onKeyDown,!1),t.window.document.addEventListener("mouseup",this._onMouseUp,!1),i.disableDrag(),this._startPos=this._lastPos=i.mousePos(this._el,e),this._active=!0)},rn.prototype._onMouseMove=function(t){var e=i.mousePos(this._el,t);if(!(this._lastPos.equals(e)||!this._box&&e.dist(this._startPos)<this._clickTolerance)){var n=this._startPos;this._lastPos=e,this._box||(this._box=i.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var r=Math.min(n.x,e.x),o=Math.max(n.x,e.x),a=Math.min(n.y,e.y),s=Math.max(n.y,e.y);i.setTransform(this._box,"translate("+r+"px,"+a+"px)"),this._box.style.width=o-r+"px",this._box.style.height=s-a+"px"}},rn.prototype._onMouseUp=function(e){if(0===e.button){var n=this._startPos,r=i.mousePos(this._el,e);this._finish(),i.suppressClick(),n.x===r.x&&n.y===r.y?this._fireEvent("boxzoomcancel",e):this._map.fitScreenCoordinates(n,r,this._map.getBearing(),{linear:!0}).fire(new t.Event("boxzoomend",{originalEvent:e}))}},rn.prototype._onKeyDown=function(t){27===t.keyCode&&(this._finish(),this._fireEvent("boxzoomcancel",t))},rn.prototype._finish=function(){this._active=!1,t.window.document.removeEventListener("mousemove",this._onMouseMove,!1),t.window.document.removeEventListener("keydown",this._onKeyDown,!1),t.window.document.removeEventListener("mouseup",this._onMouseUp,!1),this._container.classList.remove("mapboxgl-crosshair"),this._box&&(i.remove(this._box),this._box=null),i.enableDrag(),delete this._startPos,delete this._lastPos},rn.prototype._fireEvent=function(e,i){return this._map.fire(new t.Event(e,{originalEvent:i}))};var on=t.bezier(0,0,.25,1),an=function(e,i){this._map=e,this._el=i.element||e.getCanvasContainer(),this._state="disabled",this._button=i.button||"right",this._bearingSnap=i.bearingSnap||0,this._pitchWithRotate=!1!==i.pitchWithRotate,t.bindAll(["onMouseDown","_onMouseMove","_onMouseUp","_onBlur","_onDragFrame"],this)};an.prototype.isEnabled=function(){return"disabled"!==this._state},an.prototype.isActive=function(){return"active"===this._state},an.prototype.enable=function(){this.isEnabled()||(this._state="enabled")},an.prototype.disable=function(){if(this.isEnabled())switch(this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend"),this._pitchWithRotate&&this._fireEvent("pitchend"),this._fireEvent("moveend");break;
vendor: 13,189 bytes, line 1
1case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},an.prototype.onMouseDown=function(e){if("enabled"===this._state){if("right"===this._button){if(this._eventButton=i.mouseButton(e),this._eventButton!==(e.ctrlKey?0:2))return}else{if(e.ctrlKey||0!==i.mouseButton(e))return;this._eventButton=0}i.disableDrag(),t.window.document.addEventListener("mousemove",this._onMouseMove,{capture:!0}),t.window.document.addEventListener("mouseup",this._onMouseUp),t.window.addEventListener("blur",this._onBlur),this._state="pending",this._inertia=[[t.browser.now(),this._map.getBearing()]],this._startPos=this._lastPos=i.mousePos(this._el,e),this._center=this._map.transform.centerPoint,e.preventDefault()}},an.prototype._onMouseMove=function(t){var e=i.mousePos(this._el,t);this._lastPos.equals(e)||(this._lastMoveEvent=t,this._lastPos=e,"pending"===this._state&&(this._state="active",this._fireEvent("rotatestart",t),this._fireEvent("movestart",t),this._pitchWithRotate&&this._fireEvent("pitchstart",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},an.prototype._onDragFrame=function(){this._frameId=null;var e=this._lastMoveEvent;if(e){var i=this._map.transform,n=this._startPos,r=this._lastPos,o=.8*(n.x-r.x),a=-.5*(n.y-r.y),s=i.bearing-o,l=i.pitch-a,u=this._inertia,c=u[u.length-1];this._drainInertiaBuffer(),u.push([t.browser.now(),this._map._normalizeBearing(s,c[1])]),i.bearing=s,this._pitchWithRotate&&(this._fireEvent("pitch",e),i.pitch=l),this._fireEvent("rotate",e),this._fireEvent("move",e),delete this._lastMoveEvent,this._startPos=this._lastPos}},an.prototype._onMouseUp=function(t){if(i.mouseButton(t)===this._eventButton)switch(this._state){case"active":this._state="enabled",i.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(t);break;case"pending":this._state="enabled",this._unbind()}},an.prototype._onBlur=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend",t),this._pitchWithRotate&&this._fireEvent("pitchend",t),this._fireEvent("moveend",t);break;case"pending":this._state="enabled",this._unbind()}},an.prototype._unbind=function(){t.window.document.removeEventListener("mousemove",this._onMouseMove,{capture:!0}),t.window.document.removeEventListener("mouseup",this._onMouseUp),t.window.removeEventListener("blur",this._onBlur),i.enableDrag()},an.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._lastPos},an.prototype._inertialRotate=function(t){var e=this;this._fireEvent("rotateend",t),this._drainInertiaBuffer();var i=this._map,n=i.getBearing(),r=this._inertia,o=function(){Math.abs(n)<e._bearingSnap?i.resetNorth({noMoveStart:!0},{originalEvent:t}):e._fireEvent("moveend",t),e._pitchWithRotate&&e._fireEvent("pitchend",t)};if(r.length<2)o();else{var a=r[0],s=r[r.length-1],l=r[r.length-2],u=i._normalizeBearing(n,l[1]),c=s[1]-a[1],h=c<0?-1:1,p=(s[0]-a[0])/1e3;if(0!==c&&0!==p){var f=Math.abs(c*(.25/p));f>180&&(f=180);var d=f/180;u+=h*f*(d/2),Math.abs(i._normalizeBearing(u,0))<this._bearingSnap&&(u=i._normalizeBearing(0,u)),i.rotateTo(u,{duration:1e3*d,easing:on,noMoveStart:!0},{originalEvent:t})}else o()}},an.prototype._fireEvent=function(e,i){return this._map.fire(new t.Event(e,i?{originalEvent:i}:{}))},an.prototype._drainInertiaBuffer=function(){for(var e=this._inertia,i=t.browser.now();e.length>0&&i-e[0][0]>160;)e.shift()};var sn=t.bezier(0,0,.3,1),ln=function(e,i){this._map=e,this._el=e.getCanvasContainer(),this._state="disabled",this._clickTolerance=i.clickTolerance||1,t.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};ln.prototype.isEnabled=function(){return"disabled"!==this._state},ln.prototype.isActive=function(){return"active"===this._state},ln.prototype.enable=function(){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled")},ln.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},ln.prototype.onMouseDown=function(e){"enabled"===this._state&&(e.ctrlKey||0!==i.mouseButton(e)||(i.addEventListener(t.window.document,"mousemove",this._onMove,{capture:!0}),i.addEventListener(t.window.document,"mouseup",this._onMouseUp),this._start(e)))},ln.prototype.onTouchStart=function(e){"enabled"===this._state&&(e.touches.length>1||(i.addEventListener(t.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),i.addEventListener(t.window.document,"touchend",this._onTouchEnd),this._start(e)))},ln.prototype._start=function(e){t.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._lastPos=i.mousePos(this._el,e),this._inertia=[[t.browser.now(),this._startPos]]},ln.prototype._onMove=function(e){e.preventDefault();var n=i.mousePos(this._el,e);this._lastPos.equals(n)||"pending"===this._state&&n.dist(this._mouseDownPos)<this._clickTolerance||(this._lastMoveEvent=e,this._lastPos=n,this._drainInertiaBuffer(),this._inertia.push([t.browser.now(),this._lastPos]),"pending"===this._state&&(this._state="active",this._fireEvent("dragstart",e),this._fireEvent("movestart",e)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},ln.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform;e.setLocationAtPoint(e.pointLocation(this._startPos),this._lastPos),this._fireEvent("drag",t),this._fireEvent("move",t),this._startPos=this._lastPos,delete this._lastMoveEvent}},ln.prototype._onMouseUp=function(t){if(0===i.mouseButton(t))switch(this._state){case"active":this._state="enabled",i.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(t);break;case"pending":this._state="enabled",this._unbind()}},ln.prototype._onTouchEnd=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._inertialPan(t);break;case"pending":this._state="enabled",this._unbind()}},ln.prototype._onBlur=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("dragend",t),this._fireEvent("moveend",t);break;case"pending":this._state="enabled",this._unbind()}},ln.prototype._unbind=function(){i.removeEventListener(t.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),i.removeEventListener(t.window.document,"touchend",this._onTouchEnd),i.removeEventListener(t.window.document,"mousemove",this._onMove,{capture:!0}),i.removeEventListener(t.window.document,"mouseup",this._onMouseUp),i.removeEventListener(t.window,"blur",this._onBlur)},ln.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._mouseDownPos,delete this._lastPos},ln.prototype._inertialPan=function(t){this._fireEvent("dragend",t),this._drainInertiaBuffer();var e=this._inertia;if(e.length<2)this._fireEvent("moveend",t);else{var i=e[e.length-1],n=e[0],r=i[1].sub(n[1]),o=(i[0]-n[0])/1e3;if(0===o||i[1].equals(n[1]))this._fireEvent("moveend",t);else{var a=r.mult(.3/o),s=a.mag();s>1400&&(s=1400,a._unit()._mult(s));var l=s/750,u=a.mult(-l/2);this._map.panBy(u,{duration:1e3*l,easing:sn,noMoveStart:!0},{originalEvent:t})}}},ln.prototype._fireEvent=function(e,i){return this._map.fire(new t.Event(e,i?{originalEvent:i}:{}))},ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertia,i=t.browser.now();e.length>0&&i-e[0][0]>160;)e.shift()};var un=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll(["_onKeyDown"],this)};function cn(t){return t*(2-t)}un.prototype.isEnabled=function(){return!!this._enabled},un.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},un.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},un.prototype._onKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=0,i=0,n=0,r=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?i=-1:(t.preventDefault(),r=-1);break;case 39:t.shiftKey?i=1:(t.preventDefault(),r=1);break;case 38:t.shiftKey?n=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?n=-1:(o=1,t.preventDefault());break;default:return}var a=this._map,s=a.getZoom(),l={duration:300,delayEndEvents:500,easing:cn,zoom:e?Math.round(s)+e*(t.shiftKey?2:1):s,bearing:a.getBearing()+15*i,pitch:a.getPitch()+10*n,offset:[100*-r,100*-o],center:a.getCenter()};a.easeTo(l,{originalEvent:t})}};var hn=function(e){this._map=e,t.bindAll(["_onDblClick","_onZoomEnd"],this)};hn.prototype.isEnabled=function(){return!!this._enabled},hn.prototype.isActive=function(){return!!this._active},hn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},hn.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},hn.prototype.onTouchStart=function(t){var e=this;this.isEnabled()&&(t.points.length>1||(this._tapped?(clearTimeout(this._tapped),this._tapped=null,this._zoom(t)):this._tapped=setTimeout(function(){e._tapped=null},300)))},hn.prototype.onDblClick=function(t){this.isEnabled()&&(t.originalEvent.preventDefault(),this._zoom(t))},hn.prototype._zoom=function(t){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)},hn.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};var pn=t.bezier(0,0,.15,1),fn=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};fn.prototype.isEnabled=function(){return!!this._enabled},fn.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around)},fn.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},fn.prototype.disableRotation=function(){this._rotationDisabled=!0},fn.prototype.enableRotation=function(){this._rotationDisabled=!1},fn.prototype.onStart=function(e){if(this.isEnabled()&&2===e.touches.length){var n=i.mousePos(this._el,e.touches[0]),r=i.mousePos(this._el,e.touches[1]),o=n.add(r).div(2);this._startVec=n.sub(r),this._startAround=this._map.transform.pointLocation(o),this._gestureIntent=void 0,this._inertia=[],i.addEventListener(t.window.document,"touchmove",this._onMove,{passive:!1}),i.addEventListener(t.window.document,"touchend",this._onEnd)}},fn.prototype._getTouchEventData=function(t){var e=i.mousePos(this._el,t.touches[0]),n=i.mousePos(this._el,t.touches[1]),r=e.sub(n);return{vec:r,center:e.add(n).div(2),scale:r.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*r.angleWith(this._startVec)/Math.PI}},fn.prototype._onMove=function(e){if(2===e.touches.length){var i=this._getTouchEventData(e),n=i.vec,r=i.scale,o=i.bearing;if(!this._gestureIntent){var a=Math.abs(1-r)>.15;Math.abs(o)>10?this._gestureIntent="rotate":a&&(this._gestureIntent="zoom"),this._gestureIntent&&(this._map.fire(new t.Event(this._gestureIntent+"start",{originalEvent:e})),this._map.fire(new t.Event("movestart",{originalEvent:e})),this._startVec=n)}this._lastTouchEvent=e,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),e.preventDefault()}},fn.prototype._onTouchFrame=function(){this._frameId=null;var e=this._gestureIntent;if(e){var i=this._map.transform;this._startScale||(this._startScale=i.scale,this._startBearing=i.bearing);var n=this._getTouchEventData(this._lastTouchEvent),r=n.center,o=n.bearing,a=n.scale,s=i.pointLocation(r),l=i.locationPoint(s);"rotate"===e&&(i.bearing=this._startBearing+o),i.zoom=i.scaleZoom(this._startScale*a),i.setLocationAtPoint(this._startAround,l),this._map.fire(new t.Event(e,{originalEvent:this._lastTouchEvent})),this._map.fire(new t.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([t.browser.now(),a,r])}},fn.prototype._onEnd=function(e){i.removeEventListener(t.window.document,"touchmove",this._onMove,{passive:!1}),i.removeEventListener(t.window.document,"touchend",this._onEnd);var n=this._gestureIntent,r=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,n){this._map.fire(new t.Event(n+"end",{originalEvent:e})),this._drainInertiaBuffer();var o=this._inertia,a=this._map;if(o.length<2)a.snapToNorth({},{originalEvent:e});else{var s=o[o.length-1],l=o[0],u=a.transform.scaleZoom(r*s[1]),c=a.transform.scaleZoom(r*l[1]),h=u-c,p=(s[0]-l[0])/1e3,f=s[2];if(0!==p&&u!==c){var d=.15*h/p;Math.abs(d)>
12.5&&(d=d>0?2.5:-2.5);var m=1e3*Math.abs(d/(12*.15)),y=u+d*m/2e3;y<0&&(y=0),a.easeTo({zoom:y,duration:m,easing:pn,around:this._aroundCenter?a.getCenter():a.unproject(f),noMoveStart:!0},{originalEvent:e})}else a.snapToNorth({},{originalEvent:e})}}},fn.prototype._drainInertiaBuffer=function(){for(var e=this._inertia,i=t.browser.now();e.length>2&&i-e[0][0]>160;)e.shift()};var dn={scrollZoom:nn,boxZoom:rn,dragRotate:an,dragPan:ln,keyboard:un,doubleClickZoom:hn,touchZoomRotate:fn},mn=function(e){function i(i,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=i,this._bearingSnap=n.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}return e&&(i.__proto__=e),i.prototype=Object.create(e&&e.prototype),i.prototype.constructor=i,i.prototype.getCenter=function(){return this.transform.center},i.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},i.prototype.panBy=function(e,i,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},i),n)},i.prototype.panTo=function(e,i,n){return this.easeTo(t.extend({center:e},i),n)},i.prototype.getZoom=function(){return this.transform.zoom},i.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},i.prototype.zoomTo=function(e,i,n){return this.easeTo(t.extend({zoom:e},i),n)},i.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},i.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},i.prototype.getBearing=function(){return this.transform.bearing},i.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},i.prototype.rotateTo=function(e,i,n){return this.easeTo(t.extend({bearing:e},i),n)},i.prototype.resetNorth=function(e,i){return this.rotateTo(0,t.extend({duration:1e3},e),i),this},i.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this},i.prototype.getPitch=function(){return this.transform.pitch},i.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},i.prototype.cameraForBounds=function(t,e){return t=F.convert(t),this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,e)},i.prototype._cameraForBoxAndBearing=function(e,i,n,r){if("number"==typeof(r=t.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var o=r.padding;r.padding={top:o,bottom:o,right:o,left:o}}if(t.isEqual(Object.keys(r.padding).sort(function(t,e){return t<e?-1:t>e?1:0}),["bottom","left","right","top"])){var a=[(r.padding.left-r.padding.right)/2,(r.padding.top-r.padding.bottom)/2],s=Math.min(r.padding.right,r.padding.left),l=Math.min(r.padding.top,r.padding.bottom);r.offset=[r.offset[0]+a[0],r.offset[1]+a[1]];var u=this.transform,c=u.project(j.convert(e)),h=u.project(j.convert(i)),p=c.rotate(-n*Math.PI/180),f=h.rotate(-n*Math.PI/180),d=new t.Point(Math.max(p.x,f.x),Math.max(p.y,f.y)),m=new t.Point(Math.min(p.x,f.x),Math.min(p.y,f.y)),y=t.Point.convert(r.offset),v=d.sub(m),g=(u.width-2*s-2*Math.abs(y.x))/v.x,_=(u.height-2*l-2*Math.abs(y.y))/v.y;if(!(_<0||g<0))return r.center=u.unproject(c.add(h).div(2)),r.zoom=Math.min(u.scaleZoom(u.scale*Math.min(g,_)),r.maxZoom),r.bearing=n,r;t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else t.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},i.prototype.fitBounds=function(t,e,i){return this._fitInternal(this.cameraForBounds(t,e),e,i)},i.prototype.fitScreenCoordinates=function(e,i,n,r,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(i)),n,r),r,o)},i.prototype._fitInternal=function(e,i,n){return e?(i=t.extend(e,i)).linear?this.easeTo(i,n):this.flyTo(i,n):this},i.prototype.jumpTo=function(e,i){this.stop();var n=this.transform,r=!1,o=!1,a=!1;return"zoom"in e&&n.zoom!==+e.zoom&&(r=!0,n.zoom=+e.zoom),void 0!==e.center&&(n.center=j.convert(e.center)),"bearing"in e&&n.bearing!==+e.bearing&&(o=!0,n.bearing=+e.bearing),"pitch"in e&&n.pitch!==+e.pitch&&(a=!0,n.pitch=+e.pitch),this.fire(new t.Event("movestart",i)).fire(new t.Event("move",i)),r&&this.fire(new t.Event("zoomstart",i)).fire(new t.Event("zoom",i)).fire(new t.Event("zoomend",i)),o&&this.fire(new t.Event("rotatestart",i)).fire(new t.Event("rotate",i)).fire(new t.Event("rotateend",i)),a&&this.fire(new t.Event("pitchstart",i)).fire(new t.Event("pitch",i)).fire(new t.Event("pitchend",
vendor: 7,427 bytes, line 1
1i)),this.fire(new t.Event("moveend",i))},i.prototype.easeTo=function(e,i){var n=this;this.stop(),!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate&&(e.duration=0);var r=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l="zoom"in e?+e.zoom:o,u="bearing"in e?this._normalizeBearing(e.bearing,a):a,c="pitch"in e?+e.pitch:s,h=r.centerPoint.add(t.Point.convert(e.offset)),p=r.pointLocation(h),f=j.convert(e.center||p);this._normalizeCenter(f);var d,m,y=r.project(p),v=r.project(f).sub(y),g=r.zoomScale(l-o);return e.around&&(d=j.convert(e.around),m=r.locationPoint(d)),this._zooming=l!==o,this._rotating=a!==u,this._pitching=c!==s,this._prepareEase(i,e.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease(function(e){if(n._zooming&&(r.zoom=t.number(o,l,e)),n._rotating&&(r.bearing=t.number(a,u,e)),n._pitching&&(r.pitch=t.number(s,c,e)),d)r.setLocationAtPoint(d,m);else{var p=r.zoomScale(r.zoom-o),f=l>o?Math.min(2,g):Math.max(.5,g),_=Math.pow(f,1-e),b=r.unproject(y.add(v.mult(e*_)).mult(p));r.setLocationAtPoint(r.renderWorldCopies?b.wrap():b,h)}n._fireMoveEvents(i)},function(){e.delayEndEvents?n._easeEndTimeoutID=setTimeout(function(){return n._afterEase(i)},e.delayEndEvents):n._afterEase(i)},e),this},i.prototype._prepareEase=function(e,i){this._moving=!0,i||this.fire(new t.Event("movestart",e)),this._zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&this.fire(new t.Event("pitchstart",e))},i.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},i.prototype._afterEase=function(e){var i=this._zooming,n=this._rotating,r=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,i&&this.fire(new t.Event("zoomend",e)),n&&this.fire(new t.Event("rotateend",e)),r&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))},i.prototype.flyTo=function(e,i){var n=this;this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var r=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l="zoom"in e?t.clamp(+e.zoom,r.minZoom,r.maxZoom):o,u="bearing"in e?this._normalizeBearing(e.bearing,a):a,c="pitch"in e?+e.pitch:s,h=r.zoomScale(l-o),p=r.centerPoint.add(t.Point.convert(e.offset)),f=r.pointLocation(p),d=j.convert(e.center||f);this._normalizeCenter(d);var m=r.project(f),y=r.project(d).sub(m),v=e.curve,g=Math.max(r.width,r.height),_=g/h,b=y.mag();if("minZoom"in e){var x=t.clamp(Math.min(e.minZoom,o,l),r.minZoom,r.maxZoom),w=g/r.zoomScale(x-o);v=Math.sqrt(w/b*2)}var T=v*v;function k(t){var e=(_*_-g*g+(t?-1:1)*T*T*b*b)/(2*(t?_:g)*T*b);return Math.log(Math.sqrt(e*e+1)-e)}function S(t){return(Math.exp(t)-Math.exp(-t))/2}function E(t){return(Math.exp(t)+Math.exp(-t))/2}var P=k(0),A=function(t){return E(P)/E(P+v*t)},C=function(t){return g*((E(P)*(S(e=P+v*t)/E(e))-S(P))/T)/b;var e},D=(k(1)-P)/v;if(Math.abs(b)<1e-6||!isFinite(D)){if(Math.abs(g-_)<1e-6)return this.easeTo(e,i);var O=_<g?-1:1;D=Math.abs(Math.log(_/g))/v,C=function(){return 0},A=function(t){return Math.exp(O*v*t)}}if("duration"in e)e.duration=+e.duration;else{var M="screenSpeed"in e?+e.screenSpeed/v:+e.speed;e.duration=1e3*D/M}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=a!==u,this._pitching=c!==s,this._prepareEase(i,!1),this._ease(function(e){var h=e*D,f=1/A(h);r.zoom=1===e?l:o+r.scaleZoom(f),n._rotating&&(r.bearing=t.number(a,u,e)),n._pitching&&(r.pitch=t.number(s,c,e));var v=1===e?d:r.unproject(m.add(y.mult(C(h))).mult(f));r.setLocationAtPoint(r.renderWorldCopies?v.wrap():v,p),n._fireMoveEvents(i)},function(){return n._afterEase(i)},e),this},i.prototype.isEasing=function(){return!!this._easeFrameId},i.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var t=this._onEaseEnd;delete this._onEaseEnd,t.call(this)}return this},i.prototype._ease=function(e,i,n){!1===n.animate||0===n.duration?(e(1),i()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},i.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},i.prototype._normalizeBearing=function(e,i){e=t.wrap(e,-180,180);var n=Math.abs(e-i);return Math.abs(e-360-i)<n&&(e-=360),Math.abs(e+360-i)<n&&(e+=360),e},i.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&&!e.lngRange){var i=t.lng-e.center.lng;t.lng+=i>180?-360:i<-180?360:0}},i}(t.Evented),yn=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};yn.prototype.getDefaultPosition=function(){return"bottom-right"},yn.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},yn.prototype.onRemove=function(){i.remove(this._container),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0},yn.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var e=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:h.ACCESS_TOKEN}];if(t){var i=e.reduce(function(t,i,n){return i.value&&(t+=i.key+"="+i.value+(n<e.length-1?"&":"")),t},"?");t.href="https://www.mapbox.com/feedback/"+i+(this._map._hash?this._map._hash.getHashString(!0):"")}},yn.prototype._updateData=function(t){t&&"metadata"===t.sourceDataType&&(this._updateAttributions(),this._updateEditLink())},yn.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var i=this._map.style.sourceCaches;for(var n in i){var r=i[n].getSource();r.attribution&&t.indexOf(r.attribution)<0&&t.push(r.attribution)}t.sort(function(t,e){return t.length-e.length}),(t=t.filter(function(e,i){for(var n=i+1;n<t.length;n++)if(t[n].indexOf(e)>=0)return!1;return!0})).length?(this._container.innerHTML=t.join(" | "),this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null}},yn.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};
1var vn=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};vn.prototype.onAdd=function(t){this._map=t,this._container=i.create("div","mapboxgl-ctrl");var e=i.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.href="https://www.mapbox.com/",e.setAttribute("aria-label","Mapbox logo"),e.setAttribute("rel","noopener"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},vn.prototype.onRemove=function(){i.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},vn.prototype.getDefaultPosition=function(){return"bottom-left"},vn.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},vn.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},vn.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var gn=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};gn.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},gn.prototype.remove=function(t){for(var e=this._currentlyRunning,i=0,n=e?this._queue.concat(e):this._queue;i<n.length;i+=1){var r=n[i];if(r.id===t)return void(r.cancelled=!0)}},gn.prototype.run=function(){var t=this._currentlyRunning=this._queue;this._queue=[];for(var e=0,i=t;e<i.length;e+=1){var n=i[e];if(!n.cancelled&&(n.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},gn.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var _n=t.window.HTMLImageElement,bn=t.window.HTMLElement,xn={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:22,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,clickTolerance:3,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,transformRequest:null,fadeDuration:300,crossSourceCollisions:!0},wn=function(n){function r(e){var r=this;if(null!=(e=t.extend({},xn,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than minZoom");var o=new Ki(e.minZoom,e.maxZoom,e.renderWorldCopies);n.call(this,o,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new gn,this._controls=[];var a=e.transformRequest;if(this._transformRequest=a?function(t,e){return a(t,e)||{url:t}}:function(t){return{url:t}},"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof bn))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return r._update(!1)}),this.on("zoom",function(){return r._update(!0)}),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1)),function(t,e){var n=t.getCanvasContainer(),r=null,o=!1,a=null;for(var s in dn)t[s]=new dn[s](t,e),e.interactive&&e[s]&&t[s].enable(e[s]);i.addEventListener(n,"mouseout",function(e){t.fire(new Qi("mouseout",t,e))}),i.addEventListener(n,"mousedown",function(r){o=!0,a=i.mousePos(n,r);var s=new Qi("mousedown",t,r);t.fire(s),s.defaultPrevented||(e.interactive&&!t.doubleClickZoom.isActive()&&t.stop(),t.boxZoom.onMouseDown(r),t.boxZoom.isActive()||t.dragPan.isActive()||t.dragRotate.onMouseDown(r),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onMouseDown(r))}),i.addEventListener(n,"mouseup",function(e){var i=t.dragRotate.isActive();r&&!i&&t.fire(new Qi("contextmenu",t,r)),r=null,o=!1,t.fire(new Qi("mouseup",t,e))}),i.addEventListener(n,"mousemove",function(e){if(!t.dragPan.isActive()&&!t.dragRotate.isActive()){for(var i=e.target;i&&i!==n;)i=i.parentNode;i===n&&t.fire(new Qi("mousemove",t,e))}}),i.addEventListener(n,"mouseover",function(e){for(var i=e.target;i&&i!==n;)i=i.parentNode;i===n&&t.fire(new Qi("mouseover",t,e))}),i.addEventListener(n,"touchstart",function(i){var n=new tn("touchstart",t,i);t.fire(n),n.defaultPrevented||(e.interactive&&t.stop(),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onTouchStart(i),t.touchZoomRotate.onStart(i),t.doubleClickZoom.onTouchStart(n))},{passive:!1}),i.addEventListener(n,"touchmove",function(e){t.fire(new tn("touchmove",t,e))},{passive:!1}),i.addEventListener(n,"touchend",function(e){t.fire(new tn("touchend",t,e))}),i.addEventListener(n,"touchcancel",function(e){t.fire(new tn("touchcancel",t,e))}),i.addEventListener(n,"click",function(r){var o=i.mousePos(n,r);(o.equals(a)||o.dist(a)<e.clickTolerance)&&t.fire(new Qi("click",t,r))}),i.addEventListener(n,"dblclick",function(e){var i=new Qi("dblclick",t,e);t.fire(i),i.defaultPrevented||t.doubleClickZoom.onDblClick(i)}),i.addEventListener(n,"contextmenu",function(e){var i=t.dragRotate.isActive();o||i?o&&(r=e):t.fire(new Qi("contextmenu",t,e)),e.preventDefault()}),i.addEventListener(n,"wheel",function(i){e.interactive&&t.stop();var n=new en("wheel",t,i);t.fire(n),n.defaultPrevented||t.scrollZoom.onWheel(i)},{passive:!1})}(this,e),this._hash=e.hash&&(new $i).addTo(this),this._hash&&this._hash._onHashChange()||this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),this.resize(),e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new yn({customAttribution:e.customAttribution})),this.addControl(new vn,e.logoPosition),this.on("style.load",function(){r.transform.unmodified&&r.jumpTo(r.style.stylesheet)}),this.on("data",function(e){r._update("style"===e.dataType),r.fire(new t.Event(e.dataType+"data",e))}),this.on("dataloading",function(e){r.fire(new t.Event(e.dataType+"dataloading",e))})}n&&(r.__proto__=n),r.prototype=Object.create(n&&n.prototype),r.prototype.constructor=r;var o={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0}};return r.prototype.addControl=function(e,i){if(void 0===i&&e.getDefaultPosition&&(i=e.getDefaultPosition()),void 0===i&&(i="top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var n=e.onAdd(this);this._controls.push(e);var r=this._controlPositions[i];return-1!==i.indexOf("bottom")?r.insertBefore(n,r.firstChild):r.appendChild(n),this},r.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var i=this._controls.indexOf(e);return i>-1&&this._controls.splice(i,1),e.onRemove(this),this},r.prototype.resize=function(e){var i=this._containerDimensions(),n=i[0],r=i[1];return this._resizeCanvas(n,r),this.transform.resize(n,r),this.painter.resize(n,r),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)).fire(new t.Event("resize",e)).fire(new t.Event("moveend",e)),this},r.prototype.getBounds=function(){return this.transform.getBounds()},r.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},r.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(F.convert(t)),this._update()},r.prototype.setMinZoom=function(t){if((t=null==t?0:t)>=0&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between 0 and the current maxZoom, inclusive")}
vendor: 8,545 bytes, line 1
1,r.prototype.getMinZoom=function(){return this.transform.minZoom},r.prototype.setMaxZoom=function(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},r.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},r.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},r.prototype.getMaxZoom=function(){return this.transform.maxZoom},r.prototype.project=function(t){return this.transform.locationPoint(j.convert(t))},r.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},r.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},r.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isActive()},r.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},r.prototype.on=function(t,e,i){var r,o=this;if(void 0===i)return n.prototype.on.call(this,t,e);var a=function(){if("mouseenter"===t||"mouseover"===t){var n=!1;return{layer:e,listener:i,delegates:{mousemove:function(r){var a=o.getLayer(e)?o.queryRenderedFeatures(r.point,{layers:[e]}):[];a.length?n||(n=!0,i.call(o,new Qi(t,o,r.originalEvent,{features:a}))):n=!1},mouseout:function(){n=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:i,delegates:{mousemove:function(n){(o.getLayer(e)?o.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,i.call(o,new Qi(t,o,n.originalEvent)))},mouseout:function(e){a&&(a=!1,i.call(o,new Qi(t,o,e.originalEvent)))}}}}return{layer:e,listener:i,delegates:(r={},r[t]=function(t){var n=o.getLayer(e)?o.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&&(t.features=n,i.call(o,t),delete t.features)},r)}}();for(var s in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(a),a.delegates)o.on(s,a.delegates[s]);return this},r.prototype.off=function(t,e,i){if(void 0===i)return n.prototype.off.call(this,t,e);if(this._delegatedListeners&&this._delegatedListeners[t])for(var r=this._delegatedListeners[t],o=0;o<r.length;o++){var a=r[o];if(a.layer===e&&a.listener===i){for(var s in a.delegates)this.off(s,a.delegates[s]);return r.splice(o,1),this}}return this},r.prototype.queryRenderedFeatures=function(e,i){if(!this.style)return[];var n;if(void 0!==i||void 0===e||e instanceof t.Point||Array.isArray(e)||(i=e,e=void 0),i=i||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||"number"==typeof e[0])n=[t.Point.convert(e)];else{var r=t.Point.convert(e[0]),o=t.Point.convert(e[1]);n=[r,new t.Point(o.x,r.y),o,new t.Point(r.x,o.y),r]}return this.style.queryRenderedFeatures(n,i,this.transform)},r.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},r.prototype.setStyle=function(e,i){if((!i||!1!==i.diff&&!i.localIdeographFontFamily)&&this.style&&e&&"object"==typeof e)try{return this.style.setState(e)&&this._update(!0),this}catch(e){t.warnOnce("Unable to perform style diff: "+(e.message||e.error||e)+".  Rebuilding the style from scratch.")}return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Ge(this,i||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},r.prototype.getStyle=function(){if(this.style)return this.style.serialize()},r.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")},r.prototype.addSource=function(t,e){return this.style.addSource(t,e),this._update(!0)},r.prototype.isSourceLoaded=function(e){var i=this.style&&this.style.sourceCaches[e];if(void 0!==i)return i.loaded();this.fire(new t.ErrorEvent(new Error("There is no source with ID '"+e+"'")))},r.prototype.areTilesLoaded=function(){var t=this.style&&this.style.sourceCaches;for(var e in t){var i=t[e]._tiles;for(var n in i){var r=i[n];if("loaded"!==r.state&&"errored"!==r.state)return!1}}return!0},r.prototype.addSourceType=function(t,e,i){return this.style.addSourceType(t,e,i)},r.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},r.prototype.getSource=function(t){return this.style.getSource(t)},r.prototype.addImage=function(e,i,n){void 0===n&&(n={});var r=n.pixelRatio;void 0===r&&(r=1);var o=n.sdf;if(void 0===o&&(o=!1),i instanceof _n){var a=t.browser.getImageData(i),s=a.width,l=a.height,u=a.data;this.style.addImage(e,{data:new t.RGBAImage({width:s,height:l},u),pixelRatio:r,sdf:o})}else{if(void 0===i.width||void 0===i.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=i.width,h=i.height,p=i.data;this.style.addImage(e,{data:new t.RGBAImage({width:c,height:h},new Uint8Array(p)),pixelRatio:r,sdf:o})}},r.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)},r.prototype.removeImage=function(t){this.style.removeImage(t)},r.prototype.loadImage=function(e,i){t.getImage(this._transformRequest(e,t.ResourceType.Image),i)},r.prototype.listImages=function(){return this.style.listImages()},r.prototype.addLayer=function(t,e){return this.style.addLayer(t,e),this._update(!0)},r.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},r.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},r.prototype.getLayer=function(t){return this.style.getLayer(t)},r.prototype.setFilter=function(t,e){return this.style.setFilter(t,e),this._update(!0)},r.prototype.setLayerZoomRange=function(t,e,i){return this.style.setLayerZoomRange(t,e,i),this._update(!0)},r.prototype.getFilter=function(t){return this.style.getFilter(t)},r.prototype.setPaintProperty=function(t,e,i){return this.style.setPaintProperty(t,e,i),this._update(!0)},r.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},r.prototype.setLayoutProperty=function(t,e,i){return this.style.setLayoutProperty(t,e,i),this._update(!0)},r.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},r.prototype.setLight=function(t){return this.style.setLight(t),this._update(!0)},r.prototype.getLight=function(){return this.style.getLight()},r.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},r.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},r.prototype.getContainer=function(){return this._container},r.prototype.getCanvasContainer=function(){return this._canvasContainer},r.prototype.getCanvas=function(){return this._canvas},r.prototype._containerDimensions=function(){var t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},r.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},r.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=i.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=i.create("div","mapboxgl-canvas-container",t);this._interactive&&e.classList.add("mapboxgl-interactive"),this._canvas=i.create("canvas","mapboxgl-canvas",e),this._canvas.style.position="absolute",this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var r=this._controlContainer=i.create("div","mapboxgl-control-container",t),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(function(t){o[t]=i.create("div","mapboxgl-ctrl-"+t,r)})}
1,r.prototype._resizeCanvas=function(e,i){var n=t.window.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*i,this._canvas.style.width=e+"px",this._canvas.style.height=i+"px"},r.prototype._setupPainter=function(){var i=t.extend({failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer},e.webGLContextAttributes),n=this._canvas.getContext("webgl",i)||this._canvas.getContext("experimental-webgl",i);n?this.painter=new Wi(n,this.transform):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))},r.prototype._contextLost=function(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))},r.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))},r.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},r.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},r.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},r.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},r.prototype._render=function(){this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run();var e=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var i=this.transform.zoom,n=t.browser.now();this.style.zoomHistory.update(i,n);var r=new t.EvaluationParameters(i,{now:n,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),o=r.crossFadingFactor();1===o&&o===this._crossFadingFactor||(e=!0,this._crossFadingFactor=o),this.style.update(r)}return this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),fadeDuration:this._fadeDuration}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||e)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),(this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty)&&this.triggerRepaint(),this},r.prototype.remove=function(){this._hash&&this._hash.remove(),this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.setStyle(null),void 0!==t.window&&(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));for(var e=0,i=this._controls;e<i.length;e+=1)i[e].onRemove(this);this._controls=[];var n=this.painter.context.gl.getExtension("WEBGL_lose_context");n&&n.loseContext(),Tn(this._canvasContainer),Tn(this._controlContainer),Tn(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this.fire(new t.Event("remove"))},r.prototype.triggerRepaint=function(){var e=this;this.style&&!this._frame&&(this._frame=t.browser.frame(function(){e._frame=null,e._render()}))},r.prototype._onWindowOnline=function(){this._update()},r.prototype._onWindowResize=function(){this._trackResize&&this.resize()._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(t){this._repaint=t,this._update()},o.vertices.get=function(){return!!this._vertices}
1,o.vertices.set=function(t){this._vertices=t,this._update()},Object.defineProperties(r.prototype,o),r}(mn);function Tn(t){t.parentNode&&t.parentNode.removeChild(t)}var kn={showCompass:!0,showZoom:!0},Sn=function(e){var n=this;this.options=t.extend({},kn,e),this._container=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",function(t){return t.preventDefault()}),this.options.showZoom&&(this._zoomInButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-in","Zoom In",function(){return n._map.zoomIn()}),this._zoomOutButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-out","Zoom Out",function(){return n._map.zoomOut()})),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-compass","Reset North",function(){return n._map.resetNorth()}),this._compassArrow=i.create("span","mapboxgl-ctrl-compass-arrow",this._compass))};function En(t,e,i){if(t=new j(t.lng,t.lat),e){var n=new j(t.lng-360,t.lat),r=new j(t.lng+360,t.lat),o=i.locationPoint(t).distSqr(e);i.locationPoint(n).distSqr(e)<o?t=n:i.locationPoint(r).distSqr(e)<o&&(t=r)}for(;Math.abs(t.lng-i.center.lng)>180;){var a=i.locationPoint(t);if(a.x>=0&&a.y>=0&&a.x<=i.width&&a.y<=i.height)break;t.lng>i.center.lng?t.lng-=360:t.lng+=360}return t}Sn.prototype._rotateCompassArrow=function(){var t="rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassArrow.style.transform=t},Sn.prototype.onAdd=function(t){return this._map=t,this.options.showCompass&&(this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new an(t,{button:"left",element:this._compass}),i.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),this._handler.enable()),this._container},Sn.prototype.onRemove=function(){i.remove(this._container),this.options.showCompass&&(this._map.off("rotate",this._rotateCompassArrow),i.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),this._handler.disable(),delete this._handler),delete this._map},Sn.prototype._createButton=function(t,e,n){var r=i.create("button",t,this._container);return r.type="button",r.setAttribute("aria-label",e),r.addEventListener("click",n),r};var Pn={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function An(t,e,i){var n=t.classList;for(var r in Pn)n.remove("mapboxgl-"+i+"-anchor-"+r);n.add("mapboxgl-"+i+"-anchor-"+e)}
vendor: 5,091 bytes, line 1
1var Cn,Dn=function(e){function n(n){if(e.call(this),(arguments[0]instanceof t.window.HTMLElement||2===arguments.length)&&(n=t.extend({element:n},arguments[1])),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._draggable=n&&n.draggable||!1,this._state="inactive",n&&n.element)this._element=n.element,this._offset=t.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=i.create("div");var r=i.createNS("http://www.w3.org/2000/svg","svg");r.setAttributeNS(null,"height","41px"),r.setAttributeNS(null,"width","27px"),r.setAttributeNS(null,"viewBox","0 0 27 41");var o=i.createNS("http://www.w3.org/2000/svg","g");o.setAttributeNS(null,"stroke","none"),o.setAttributeNS(null,"stroke-width","1"),o.setAttributeNS(null,"fill","none"),o.setAttributeNS(null,"fill-rule","evenodd");var a=i.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"fill-rule","nonzero");var s=i.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"transform","translate(3.0, 29.0)"),s.setAttributeNS(null,"fill","#000000");for(var l=0,u=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];l<u.length;l+=1){var c=u[l],h=i.createNS("http://www.w3.org/2000/svg","ellipse");h.setAttributeNS(null,"opacity","0.04"),h.setAttributeNS(null,"cx","10.5"),h.setAttributeNS(null,"cy","5.80029008"),h.setAttributeNS(null,"rx",c.rx),h.setAttributeNS(null,"ry",c.ry),s.appendChild(h)}var p=i.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"fill",this._color);var f=i.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),p.appendChild(f);var d=i.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"opacity","0.25"),d.setAttributeNS(null,"fill","#000000");var m=i.createNS("http://www.w3.org/2000/svg","path");m.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),d.appendChild(m);var y=i.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var v=i.createNS("http://www.w3.org/2000/svg","g");v.setAttributeNS(null,"transform","translate(8.0, 8.0)");var g=i.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#000000"),g.setAttributeNS(null,"opacity","0.25"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962");var _=i.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),v.appendChild(g),v.appendChild(_),a.appendChild(s),a.appendChild(p),a.appendChild(d),a.appendChild(y),a.appendChild(v),r.appendChild(a),this._element.appendChild(r),this._offset=t.Point.convert(n&&n.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._popup=null}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},n.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),delete this._map),i.remove(this._element),this._popup&&this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(t){return this._lngLat=j.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&&(this._popup.remove(),this._popup=null),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
vendor: 4,731 bytes, line 1
10,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat)}return this},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,i=this._element;this._popup&&(e===i||i.contains(e))&&this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){this._map&&(this._map.transform.renderWorldCopies&&(this._lngLat=En(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset),t&&"moveend"!==t.type||(this._pos=this._pos.round()),i.setTransform(this._element,Pn[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px)"),An(this._element,this._anchor,"marker"))},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag"))},n.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n}(t.Evented),On={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0},Mn=function(e){function n(i){e.call(this),this.options=t.extend({},On,i),t.bindAll(["_onSuccess","_onError","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),n=this._setupUI,void 0!==Cn?n(Cn):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then(function(t){Cn="denied"!==t.state,n(Cn)}):(Cn=!!t.window.navigator.geolocation,n(Cn)),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),i.remove(this._container),this._map=void 0},n.prototype._onSuccess=function(e){if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()},n.prototype._updateCamera=function(t){var e=new j(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy;this._map.fitBounds(e.toBounds(i),this.options.fitBoundsOptions,{geolocateSource:!0})},n.prototype._updateMarker=function(t){t?this._userLocationDotMarker.setLngLat([t.co
1ords.longitude,t.coords.latitude]).addTo(this._map):this._userLocationDotMarker.remove()},n.prototype._onError=function(e){if(this.options.trackUserLocation)if(1===e.code)this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),void 0!==this._geolocationWatchID&&this._clearWatch();else switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()},n.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;!1!==e?(this._container.addEventListener("contextmenu",function(t){return t.preventDefault()}),this._geolocateButton=i.create("button","mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",this._container),this._geolocateButton.type="button",this._geolocateButton.setAttribute("aria-label","Geolocate"),this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=i.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Dn(this._dotElement),this.options.trackUserLocation&&(this._watchState="OFF")),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(e){e.geolocateSource||"ACTIVE_LOCK"!==n._watchState||(n._watchState="BACKGROUND",n._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),n._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),n.fire(new t.Event("trackuserlocationend")))})):t.warnOnce("Geolocation support is not available, the GeolocateControl will not be visible.")},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;
1case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}"OFF"===this._watchState&&void 0!==this._geolocationWatchID?this._clearWatch():void 0===this._geolocationWatchID&&(this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,this.options.positionOptions))}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},n}(t.Evented),In={maxWidth:100,unit:"metric"},zn=function(e){this.options=t.extend({},In,e),t.bindAll(["_onMove","setUnit"],this)};function Ln(t,e,i){var n,r,o,a,s,l,u=i&&i.maxWidth||100,c=t._container.clientHeight/2,h=(n=t.unproject([0,c]),r=t.unproject([u,c]),o=Math.PI/180,a=n.lat*o,s=r.lat*o,l=Math.sin(a)*Math.sin(s)+Math.cos(a)*Math.cos(s)*Math.cos((r.lng-n.lng)*o),6371e3*Math.acos(Math.min(l,1)));if(i&&"imperial"===i.unit){var p=3.2808*h;p>5280?Rn(e,u,p/5280,"mi"):Rn(e,u,p,"ft")}else i&&"nautical"===i.unit?Rn(e,u,h/1852,"nm"):Rn(e,u,h,"m")}function Rn(t,e,i,n){var r,o,a,s=(r=i,(o=Math.pow(10,(""+Math.floor(r)).length-1))*(a=(a=r/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:1)),l=s/i;"m"===n&&s>=1e3&&(s/=1e3,n="km"),t.style.width=e*l+"px",t.innerHTML=s+n}zn.prototype.getDefaultPosition=function(){return"bottom-left"},zn.prototype._onMove=function(){Ln(this._map,this._container,this.options)},zn.prototype.onAdd=function(t){return this._map=t,this._container=i.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},zn.prototype.onRemove=function(){i.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},zn.prototype.setUnit=function(t){this.options.unit=t,Ln(this._map,this._container,this.options)};var Bn=function(){this._fullscreen=!1,t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange"),this._className="mapboxgl-ctrl"};Bn.prototype.onAdd=function(e){return this._map=e,this._mapContainer=this._map.getContainer(),this._container=i.create("div",this._className+" mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._container.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._container},Bn.prototype.onRemove=function(){i.remove(this._container),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Bn.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Bn.prototype._setupUI=function(){var e=this._fullscreenButton=i.create("button",this._className+"-icon "+this._className+"-fullscreen",this._container);e.setAttribute("aria-label","Toggle fullscreen"),e.type="button",this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Bn.prototype._isFullscreen=function(){return this._fullscreen},Bn.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._mapContainer!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+"-shrink"),this._fullscreenButton.classList.toggle(this._className+"-fullscreen"))},Bn.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._mapContainer.requestFullscreen?this._mapContainer.requestFullscreen():this._mapContainer.mozRequestFullScreen?this._mapContainer.mozRequestFullScreen():this._mapContainer.msRequestFullscreen?this._mapContainer.msRequestFullscreen():this._mapContainer.webkitRequestFullscreen&&this._mapContainer.webkitRequestFullscreen()};var jn={closeButton:!0,closeOnClick:!0,className:""},Fn=function(e){function n(i){e.call(this),this.options=t.extend(Object.create(jn),i),t.bindAll(["_update","_onClickClose"],this)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map=e,this._map.on("move",this._update),this.options.closeOnClick&&this._map.on("click",this._onClickClose),this._update(),this.fire(new t.Event("open")),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&&i.remove(this._content),this._container&&(i.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("click",this._onClickClose),delete this._map),this.fire(new t.Event("close")),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(t){return this._lngLat=j.convert(t),this._pos=null,this._update(),this},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var i,n=t.window.document.createDocumentFragment(),r=t.window.document.createElement("body");for(r.innerHTML=e;i=r.firstChild;)n.appendChild(i);return this.setDOMContent(n)},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype._createContent=function(){this._content&&i.remove(this._content),this._content=i.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=i.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClickClose))},n.prototype._update=function(){var e=this;if(this._map&&this._lngLat&&this._content){this._container||(this._container=i.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=i.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(t){return e._container.classList.add(t)}
vendor: 1,851 bytes, line 1
1)),this._map.transform.renderWorldCopies&&(this._lngLat=En(this._lngLat,this._pos,this._map.transform));var n=this._pos=this._map.project(this._lngLat),r=this.options.anchor,o=function e(i){if(i){if("number"==typeof i){var n=Math.round(Math.sqrt(.5*Math.pow(i,2)));return{center:new t.Point(0,0),top:new t.Point(0,i),"top-left":new t.Point(n,n),"top-right":new t.Point(-n,n),bottom:new t.Point(0,-i),"bottom-left":new t.Point(n,-n),"bottom-right":new t.Point(-n,-n),left:new t.Point(i,0),right:new t.Point(-i,0)}}if(i instanceof t.Point||Array.isArray(i)){var r=t.Point.convert(i);return{center:r,top:r,"top-left":r,"top-right":r,bottom:r,"bottom-left":r,"bottom-right":r,left:r,right:r}}return{center:t.Point.convert(i.center||[0,0]),top:t.Point.convert(i.top||[0,0]),"top-left":t.Point.convert(i["top-left"]||[0,0]),"top-right":t.Point.convert(i["top-right"]||[0,0]),bottom:t.Point.convert(i.bottom||[0,0]),"bottom-left":t.Point.convert(i["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(i["bottom-right"]||[0,0]),left:t.Point.convert(i.left||[0,0]),right:t.Point.convert(i.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!r){var a,s=this._container.offsetWidth,l=this._container.offsetHeight;a=n.y+o.bottom.y<l?["top"]:n.y>this._map.transform.height-l?["bottom"]:[],n.x<s/2?a.push("left"):n.x>this._map.transform.width-s/2&&a.push("right"),r=0===a.length?"bottom":a.join("-")}var u=n.add(o[r]).round();i.setTransform(this._container,Pn[r]+" translate("+u.x+"px,"+u.y+"px)"),An(this._container,r,"popup")}},n.prototype._onClickClose=function(){this.remove()},n}(t.Evented),Nn={version:"0.50.0",supported:e,setRTLTextPlugin:t.setRTLTextPlugin,Map:wn,NavigationControl:Sn,GeolocateControl:Mn,AttributionControl:yn,ScaleControl:zn,FullscreenControl:Bn,Popup:Fn,Marker:Dn,Style:Ge,LngLat:j,LngLatBounds:F,Point:t.Point,Evented:t.
vendor: 4,472 bytes, line 1
1Evented,config:h,get accessToken(){return h.ACCESS_TOKEN},set accessToken(t){h.ACCESS_TOKEN=t},get workerCount(){return Zt.workerCount},set workerCount(t){Zt.workerCount=t},workerUrl:""};return Nn}),i},"object"==typeof i&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):n.mapboxgl=r()},{}],57:[function(t,e,i){var n,r;n=this,r=function(){"use strict";var i,n;function r(){return i.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function u(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function f(t,e){for(var i in e)s(e,i)&&(t[i]=e[i]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,i,n){return Oe(t,e,i,n,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function y(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=m(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function v(t){var e=d(NaN);return null!=t?f(m(e),t):m(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var g=r.momentProperties=[],_=!1;function b(t,e){var i,n,r,o=g.length;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=m(e)),u(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)u(r=e[n=g[i]])||(t[n]=r);return t}function x(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function w(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var i=!0;return f(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),i){var n,o,a,l=[],u=arguments.length;for(o=0;o<u;o++){if(n="","object"==typeof arguments[o]){for(a in n+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[o];l.push(n)}T(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var S,E={};function P(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(T(e),E[t]=!0)}function A(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var i,n=f({},t);for(i in e)s(e,i)&&(a(t[i])&&a(e[i])?(n[i]={},f(n[i],t[i]),f(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)s(t,i)&&!s(e,i)&&a(t[i])&&(n[i]=f({},n[i]));return n}function D(t){null!=t&&this.set(t)}function O(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)s(t,e)&&i.push(e);return i};var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 5,080 bytes, line 1
1|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},L={};function R(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(L[t]=r),e&&(L[e[0]]=function(){return O(r.apply(this,arguments),e[1],e[2])}),i&&(L[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function B(t,e){return t.isValid()?(e=j(e,t.localeData()),z[e]=z[e]||function(t){var e,i,n,r=t.match(M);for(e=0,i=r.length;e<i;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=A(r[n])?r[n].call(e,t):r[n];return o}}(e),z[e](t)):t.localeData().invalidDate()}function j(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(I.lastIndex=0;i>=0&&I.test(t);)t=t.replace(I,n),I.lastIndex=0,i-=1;return t}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function N(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function V(t){var e,i,n={};for(i in t)s(t,i)&&(e=N(i))&&(n[e]=t[i]);return n}var U,q={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},Y=/\d/,H=/\d\d/,W=/\d{3}/,G=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,K=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,$=/\d{1,3}/,Q=/\d{1,4}/,tt=/[+-]?\d{1,6}/,et=/\d+/,it=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,at=/^[1-9]\d?/,st=/^([1-9]\d|\d)/;function lt(t,e,i){U[t]=A(e)?e:function(t,n){return t&&i?i:e}}function ut(t,e){return s(U,t)?U[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r})))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ht(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function pt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=ht(e)),i}U={};var ft={};function dt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,i){i[e]=pt(t)}),n=t.length,i=0;i<n;i++)ft[t[i]]=r}function mt(t,e){dt(t,function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)})}function yt(t,e,i){null!=e&&s(ft,t)&&ft[t](e,i._a,i,t)}function vt(t){return t%4==0&&t%100!=0||t%400==0}var gt=0,_t=1,bt=2,xt=3,wt=4,Tt=5,kt=6,St=7,Et=8;function Pt(t){return vt(t)?366:365}R("Y",0,0,function(){var t=this.year();return t<=9999?O(t,4):"+"+t}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),lt("Y",it),lt("YY",X,H),lt("YYYY",Q,G),lt("YYYYY",tt,Z),lt("YYYYYY",tt,Z),dt(["YYYYY","YYYYYY"],gt),dt("YYYY",function(t,e){e[gt]=2===t.length?r.parseTwoDigitYear(t):pt(t)}),dt("YY",function(t,e){e[gt]=r.parseTwoDigitYear(t)}),dt("Y",function(t,e){e[gt]=parseInt(t,10)}),r.parseTwoDigitYear=function(t){return pt(t)+(pt(t)>68?1900:2e3)};var At,Ct=Dt("FullYear",!0);function Dt(t,e){return function(i){return null!=i?(Mt(this,t,i),r.updateOffset(this,e),this):Ot(this,t)}}function Ot(t,e){if(!t.isValid())return NaN;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function Mt(t,e,i){var n,r,o,a,s;if(t.isValid()&&!isNaN(i)){switch(n=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=i,a=t.month(),s=29!==(s=t.date())||1!==a||vt(o)?s:28,r?n.setUTCFullYear(o,a,s):n.setFullYear(o,a,s)}}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?vt(t)?29:28:31-n%7%2}At=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;
vendor: 4,344 bytes, line 1
1for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),R("MMMM",0,0,function(t){return this.localeData().months(this,t)}),lt("M",X,at),lt("MM",X,H),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),dt(["M","MM"],function(t,e){e[_t]=pt(t)-1}),dt(["MMM","MMMM"],function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[_t]=r:m(i).invalidMonth=t});var zt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Lt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bt=ot,jt=ot;function Ft(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=pt(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var i=e,n=t.date();return n=n<29?n:Math.min(n,It(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function Nt(t){return null!=t?(Ft(this,t),r.updateOffset(this,!0),this):Ot(this,"Month")}function Vt(){function t(t,e){return e.length-t.length}var e,i,n,r,o=[],a=[],s=[];for(e=0;e<12;e++)i=d([2e3,e]),n=ct(this.monthsShort(i,"")),r=ct(this.months(i,"")),o.push(n),a.push(r),s.push(r),s.push(n);o.sort(t),a.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ut(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function qt(t,e,i){var n=7+e-i;return-((7+Ut(t,0,n).getUTCDay()-e)%7)+n-1}function Yt(t,e,i,n,r){var o,a,s=1+7*(e-1)+(7+i-n)%7+qt(t,n,r);return s<=0?a=Pt(o=t-1)+s:s>Pt(t)?(o=t+1,a=s-Pt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Ht(t,e,i){var n,r,o=qt(t.year(),e,i),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+Wt(r=t.year()-1,e,i):a>Wt(t.year(),e,i)?(n=a-Wt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function Wt(t,e,i){var n=qt(t,e,i),r=qt(t+1,e,i);return(Pt(t)-n+r)/7}function Gt(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),lt("w",X,at),lt("ww",X,H),lt("W",X,at),lt("WW",X,H),mt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=pt(t)}),R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),lt("d",X),lt("e",X),lt("E",X),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),mt(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:m(i).invalidWeekday=t}),mt(["d","e","E"],function(t,e,i,n){e[n]=pt(t)});var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jt=ot,$t=ot,Qt=ot;function te(){function t(t,e){return e.length-t.length}var e,i,n,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)i=d([2e3,1]).day(e),n=ct(this.weekdaysMin(i,"")),r=ct(this.weekdaysShort(i,"")),o=ct(this.weekdays(i,"")),a.push(n),s.push(r),l.push(o),u.push(n),u.push(r),u.push(o);a.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ee(){return this.hours()%12||12}function ie(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ne(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,ee),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+ee.apply(this)+O(this.minutes(),2)}
vendor: 5,978 bytes, line 1
1),R("hmmss",0,0,function(){return""+ee.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+O(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)}),ie("a",!0),ie("A",!1),lt("a",ne),lt("A",ne),lt("H",X,st),lt("h",X,at),lt("k",X,at),lt("HH",X,H),lt("hh",X,H),lt("kk",X,H),lt("hmm",K),lt("hmmss",J),lt("Hmm",K),lt("Hmmss",J),dt(["H","HH"],xt),dt(["k","kk"],function(t,e,i){var n=pt(t);e[xt]=24===n?0:n}),dt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),dt(["h","hh"],function(t,e,i){e[xt]=pt(t),m(i).bigHour=!0}),dt("hmm",function(t,e,i){var n=t.length-2;e[xt]=pt(t.substr(0,n)),e[wt]=pt(t.substr(n)),m(i).bigHour=!0}),dt("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[xt]=pt(t.substr(0,n)),e[wt]=pt(t.substr(n,2)),e[Tt]=pt(t.substr(r)),m(i).bigHour=!0}),dt("Hmm",function(t,e,i){var n=t.length-2;e[xt]=pt(t.substr(0,n)),e[wt]=pt(t.substr(n))}),dt("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[xt]=pt(t.substr(0,n)),e[wt]=pt(t.substr(n,2)),e[Tt]=pt(t.substr(r))});var re,oe=Dt("Hours",!0),ae={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:zt,monthsShort:Lt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:Kt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},se={},le={};function ue(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function ce(t){return t?t.toLowerCase().replace("_","-"):t}function he(i){var n=null;if(void 0===se[i]&&void 0!==e&&e&&e.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(i))try{n=re._abbr,t("./locale/"+i),pe(n)}catch(t){se[i]=null}return se[i]}function pe(t,e){var i;return t&&((i=u(e)?de(t):fe(t,e))?re=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),re._abbr}function fe(t,e){if(null!==e){var i,n=ae;if(e.abbr=t,null!=se[t])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])n=se[e.parentLocale]._config;else{if(null==(i=he(e.parentLocale)))return le[e.parentLocale]||(le[e.parentLocale]=[]),le[e.parentLocale].push({name:t,config:e}),null;n=i._config}return se[t]=new D(C(n,e)),le[t]&&le[t].forEach(function(t){fe(t.name,t.config)}),pe(t),se[t]}return delete se[t],null}function de(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return re;if(!o(t)){if(e=he(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=ce(t[o]).split("-")).length,i=(i=ce(t[o+1]))?i.split("-"):null;e>0;){if(n=he(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&ue(r,i)>=e-1)break;e--}o++}return re}(t)}function me(t){var e,i=t._a;return i&&-2===m(t).overflow&&(e=i[_t]<0||i[_t]>11?_t:i[bt]<1||i[bt]>It(i[gt],i[_t])?bt:i[xt]<0||i[xt]>24||24===i[xt]&&(0!==i[wt]||0!==i[Tt]||0!==i[kt])?xt:i[wt]<0||i[wt]>59?wt:i[Tt]<0||i[Tt]>59?Tt:i[kt]<0||i[kt]>999?kt:-1,m(t)._overflowDayOfYear&&(e<gt||e>bt)&&(e=bt),m(t)._overflowWeeks&&-1===e&&(e=St),m(t)._overflowWeekday&&-1===e&&(e=Et),m(t).overflow=e),t}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xe=/^\/?Date\((-?\d+)/i,we=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ke(t){var e,i,n,r,o,a,s=t._i,l=ye.exec(s)||ve.exec(s),u=_e.length,c=be.length;if(l){for(m(t).iso=!0,e=0,i=u;e<i;e++)if(_e[e][1].exec(l[1])){r=_e[e][0],n=!1!==_e[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=c;e<i;e++)if(be[e][1].exec(l[3])){o=(l[2]||" ")+be[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),Ce(t)}else t._isValid=!1}function Se(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ee(t){var e,i,n,r,o,a,s,l,u=we.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(i=u[4],n=u[3],r=u[2],o=u[5],a=u[6],s=u[7],l=[Se(i),Lt.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),e=l,!function(t,e,
vendor: 5,753 bytes, line 1
1i){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(i).weekdayMismatch=!0,i._isValid=!1,!1)}(u[1],e,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Te[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(u[8],u[9],u[10]),t._d=Ut.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Pe(t,e,i){return null!=t?t:null!=e?e:i}function Ae(t){var e,i,n,o,a,s=[];if(!t._d){for(n=function(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[_t]&&function(t){var e,i,n,r,o,a,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,i=Pe(e.GG,t._a[gt],Ht(Me(),1,4).year),n=Pe(e.W,1),((r=Pe(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,u=Ht(Me(),o,a),i=Pe(e.gg,t._a[gt],u.year),n=Pe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o);n<1||n>Wt(i,o,a)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=Yt(i,n,r,o,a),t._a[gt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=Pe(t._a[gt],n[gt]),(t._dayOfYear>Pt(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),i=Ut(a,0,t._dayOfYear),t._a[_t]=i.getUTCMonth(),t._a[bt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[xt]&&0===t._a[wt]&&0===t._a[Tt]&&0===t._a[kt]&&(t._nextDay=!0,t._a[xt]=0),t._d=(t._useUTC?Ut:function(t,e,i,n,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,i,n,r,o,a),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(m(t).weekdayMismatch=!0)}}function Ce(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],m(t).empty=!0;var e,i,n,o,a,s,l,u=""+t._i,c=u.length,h=0;for(l=(n=j(t._f,t._locale).match(M)||[]).length,e=0;e<l;e++)o=n[e],(i=(u.match(ut(o,t))||[])[0])&&((a=u.substr(0,u.indexOf(i))).length>0&&m(t).unusedInput.push(a),u=u.slice(u.indexOf(i)+i.length),h+=i.length),L[o]?(i?m(t).empty=!1:m(t).unusedTokens.push(o),yt(o,i,t)):t._strict&&!i&&m(t).unusedTokens.push(o);m(t).charsLeftOver=c-h,u.length>0&&m(t).unusedInput.push(u),t._a[xt]<=12&&!0===m(t).bigHour&&t._a[xt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[xt]=function(t,e,i){var n;if(null==i)return e;return null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[xt],t._meridiem),null!==(s=m(t).era)&&(t._a[gt]=t._locale.erasConvertYear(s,t._a[gt])),Ae(t),me(t)}else Ee(t);else ke(t)}function De(t){var e=t._i,i=t._f;return t._locale=t._locale||de(t._l),null===e||void 0===i&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new x(me(e)):(h(e)?t._d=e:o(i)?function(t){var e,i,n,r,o,a,s=!1,l=t._f.length;if(0===l)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ce(e),y(e)&&(a=!0),o+=m(e).charsLeftOver,o+=10*m(e).unusedTokens.length,m(e).score=o,s?o<n&&(n=o,i=e):(null==n||o<n||a)&&(n=o,i=e,a&&(s=!0));f(t,i||e)}(t):i?Ce(t):function(t){var e=t._i;u(e)?t._d=new Date(r.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=xe.exec(t._i);null===e?(ke(t),!1===t._isValid&&(delete t._isValid,Ee(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):o(e)?(t._a=p(e.slice(0),function(t){return parseInt(t,10)}),Ae(t)):a(e)?function(t){if(!t._d){var e=V(t._i),i=void 0===e.day?e.date:e.day;t._a=p([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),Ae(t)}}(t):c(e)?t._d=new Date(e):r.createFromInputFallback(t)}(t),y(t)||(t._d=null),t))}function Oe(t,e,i,n,r){var s,u={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(a(t)&&l(t)||o(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=r,u._l=i,u._i=t,u._f=e,u._strict=n,(s=new x(me(De(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Me(t,e,i,n){return Oe(t,e,i,n,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ie=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()}),ze=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()});function Le(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Me();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Be(t){var e=V(t),i=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,u=e.minute||0,c=e.second||0,h=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=Re.length;for(e in t)if(s(t,e)&&(-1===At.call(Re,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[Re[i]]){if(n)return!1;
vendor: 4,934 bytes, line 1
1parseFloat(t[Re[i]])!==pt(t[Re[i]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*c+6e4*u+1e3*l*60*60,this._days=+a+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=de(),this._bubble()}function je(t){return t instanceof Be}function Fe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ne(t,e){R(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+O(~~(t/60),2)+e+O(~~t%60,2)})}Ne("Z",":"),Ne("ZZ",""),lt("Z",rt),lt("ZZ",rt),dt(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Ue(rt,t)});var Ve=/([\+\-]|\d\d)/gi;function Ue(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(Ve)||["-",0,0])[1]+pt(i[2]))?0:"+"===i[0]?n:-n}function qe(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(w(t)||h(t)?t.valueOf():Me(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),r.updateOffset(i,!1),i):Me(t).local()}function Ye(t){return-Math.round(t._d.getTimezoneOffset())}function He(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}r.updateOffset=function(){};var We=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ge=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ze(t,e){var i,n,r,o=t,a=null;return je(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(a=We.exec(t))?(i="-"===a[1]?-1:1,o={y:0,d:pt(a[bt])*i,h:pt(a[xt])*i,m:pt(a[wt])*i,s:pt(a[Tt])*i,ms:pt(Fe(1e3*a[kt]))*i}):(a=Ge.exec(t))?(i="-"===a[1]?-1:1,o={y:Xe(a[2],i),M:Xe(a[3],i),w:Xe(a[4],i),d:Xe(a[5],i),h:Xe(a[6],i),m:Xe(a[7],i),s:Xe(a[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var i;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=qe(e,t),t.isBefore(e)?i=Ke(t,e):((i=Ke(e,t)).milliseconds=-i.milliseconds,i.months=-i.months);return i}(Me(o.from),Me(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),n=new Be(o),je(t)&&s(t,"_locale")&&(n._locale=t._locale),je(t)&&s(t,"_isValid")&&(n._isValid=t._isValid),n}function Xe(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Ke(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Je(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(P(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),$e(this,Ze(i,n),t),this}}function $e(t,e,i,n){var o=e._milliseconds,a=Fe(e._days),s=Fe(e._months);t.isValid()&&(n=null==n||n,s&&Ft(t,Ot(t,"Month")+s*i),a&&Mt(t,"Date",Ot(t,"Date")+a*i),o&&t._d.setTime(t._d.valueOf()+o*i),n&&r.updateOffset(t,a||s))}Ze.fn=Be.prototype,Ze.invalid=function(){return Ze(NaN)};var Qe=Je(1,"add"),ti=Je(-1,"subtract");function ei(t){return"string"==typeof t||t instanceof String}function ii(t){return w(t)||h(t)||ei(t)||c(t)||function(t){var e=o(t),i=!1;e&&(i=0===t.filter(function(e){return!c(e)&&ei(t)}).length);return e&&i}(t)||function(t){var e,i,n=a(t)&&!l(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(e=0;e<u;e+=1)i=o[e],r=r||s(t,i);return n&&r}(t)||null==t}function ni(t,e){if(t.date()<e.date())return-ni(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function ri(t){var e;return void 0===t?this._locale._abbr:(null!=(e=de(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function ai(){return this._locale}var si=1e3,li=60*si,ui=60*li,ci=3506328*ui;function hi(t,e){return(t%e+e)%e}function pi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-ci:new Date(t,e,i).valueOf()}function fi(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ci:Date.UTC(t,e,i)}function di(t,e){return e.erasAbbrRegex(t)}function mi(){var t,e,i,n,r,o=[],a=[],s=[],l=[],u=this.eras();for(t=0,e=u.length;t<e;++t)i=ct(u[t].name),n=ct(u[t].abbr),r=ct(u[t].narrow),a.push(i),o.push(n),s.push(r),l.push(i),l.push(n),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function yi(t,e){R(0,[t,t.length],0,e)}function vi(t,e,i,n,r){var o;return null==t?Ht(this,n,r).year:(e>
vendor: 14,354 bytes, line 1
1(o=Wt(t,n,r))&&(e=o),function(t,e,i,n,r){var o=Yt(t,e,i,n,r),a=Ut(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,i,n,r))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),lt("N",di),lt("NN",di),lt("NNN",di),lt("NNNN",function(t,e){return e.erasNameRegex(t)}),lt("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),dt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?m(i).era=r:m(i).invalidEra=t}),lt("y",et),lt("yy",et),lt("yyy",et),lt("yyyy",et),lt("yo",function(t,e){return e._eraYearOrdinalRegex||et}),dt(["y","yy","yyy","yyyy"],gt),dt(["yo"],function(t,e,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[gt]=i._locale.eraYearOrdinalParse(t,r):e[gt]=parseInt(t,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yi("gggg","weekYear"),yi("ggggg","weekYear"),yi("GGGG","isoWeekYear"),yi("GGGGG","isoWeekYear"),lt("G",it),lt("g",it),lt("GG",X,H),lt("gg",X,H),lt("GGGG",Q,G),lt("gggg",Q,G),lt("GGGGG",tt,Z),lt("ggggg",tt,Z),mt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=pt(t)}),mt(["gg","GG"],function(t,e,i,n){e[n]=r.parseTwoDigitYear(t)}),R("Q",0,"Qo","quarter"),lt("Q",Y),dt("Q",function(t,e){e[_t]=3*(pt(t)-1)}),R("D",["DD",2],"Do","date"),lt("D",X,at),lt("DD",X,H),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),dt(["D","DD"],bt),dt("Do",function(t,e){e[bt]=pt(t.match(X)[0])});var gi=Dt("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),lt("DDD",$),lt("DDDD",W),dt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=pt(t)}),R("m",["mm",2],0,"minute"),lt("m",X,st),lt("mm",X,H),dt(["m","mm"],wt);var _i=Dt("Minutes",!1);R("s",["ss",2],0,"second"),lt("s",X,st),lt("ss",X,H),dt(["s","ss"],Tt);var bi,xi,wi=Dt("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),lt("S",$,Y),lt("SS",$,H),lt("SSS",$,W),bi="SSSS";bi.length<=9;bi+="S")lt(bi,et);function Ti(t,e){e[kt]=pt(1e3*("0."+t))}for(bi="S";bi.length<=9;bi+="S")dt(bi,Ti);xi=Dt("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var ki=x.prototype;function Si(t){return t}ki.add=Qe,ki.calendar=function(t,e){1===arguments.length&&(arguments[0]?ii(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,i=a(t)&&!l(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||s(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Me(),n=qe(i,this).startOf("day"),o=r.calendarFormat(this,n)||"sameElse",u=e&&(A(e[o])?e[o].call(this,i):e[o]);return this.format(u||this.localeData().calendar(o,this,Me(i)))},ki.clone=function(){return new x(this)},ki.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=qe(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=N(e)){case"year":o=ni(this,n)/12;break;case"month":o=ni(this,n);break;case"quarter":o=ni(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:ht(o)},ki.endOf=function(t){var e,i;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?fi:pi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ui-hi(e+(this._isUTC?0:this.utcOffset()*li),ui)-1;break;case"minute":e=this._d.valueOf(),e+=li-hi(e,li)-1;break;case"second":e=this._d.valueOf(),e+=si-hi(e,si)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},ki.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=B(this,t);return this.localeData().postformat(e)},ki.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Me(t).isValid())?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ki.fromNow=function(t){return this.from(Me(),t)},ki.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Me(t).isValid())?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ki.toNow=function(t){return this.to(Me(),t)},ki.get=function(t){return A(this[t=N(t)])?this[t]():this},ki.invalidAt=function(){return m(this).overflow},ki.isAfter=function(t,e){var i=w(t)?t:Me(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=N(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},ki.isBefore=function(t,e){var i=w(t)?t:Me(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=N(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},ki.isBetween=function(t,e,i,n){var r=w(t)?t:Me(t),o=w(e)?e:Me(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},ki.isSame=function(t,e){var i,n=w(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},ki.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ki.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ki.isValid=function(){return y(this)},ki.lang=oi,ki.locale=ri,ki.localeData=ai,ki.max=ze,ki.min=Ie,ki.parsingFlags=function(){return f({},m(this))},ki.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)s(t,e)&&i.push({unit:e,priority:q[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}(t=V(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(A(this[t=N(t)]))return this[t](e);return this},ki.startOf=function(t){var e,i;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?fi:pi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=hi(e+(this._isUTC?0:this.utcOffset()*li),ui);break;case"minute":e=this._d.valueOf(),e-=hi(e,li);break;case"second":e=this._d.valueOf(),e-=hi(e,si)}return this._d.setTime(e),r.updateOffset(this,!0),this},ki.subtract=ti,ki.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ki.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ki.toDate=function(){return new Date(this.valueOf())},ki.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?B(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(i,"Z")):B(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ki.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ki[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ki.toJSON=function(){return this.isValid()?this.toISOString():null},ki.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ki.unix=function(){return Math.floor(this.valueOf()/1e3)},ki.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ki.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ki.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},ki.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},ki.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},ki.eraYear=function(){var t,e,i,n,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(i=o[t].since<=o[t].until?1:-1,n=this.clone().startOf("day").valueOf(),o[t].since<=n&&n<=o[t].until||o[t].until<=n&&n<=o[t].since)return(this.year()-r(o[t].since).year())*i+o[t].offset;return this.year()},ki.year=Ct,ki.isLeapYear=function(){return vt(this.year())},ki.weekYear=function(t){return vi.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},ki.isoWeekYear=function(t){return vi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ki.quarter=ki.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ki.month=Nt,ki.daysInMonth=function(){return It(this.year(),this.month())},ki.week=ki.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ki.isoWeek=ki.isoWeeks=function(t){var e=Ht(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ki.weeksInYear=function(){var t=this.localeData()._week;return Wt(this.year(),t.dow,t.doy)},ki.weeksInWeekYear=function(){var t=this.localeData()._week;return Wt(this.weekYear(),t.dow,t.doy)},ki.isoWeeksInYear=function(){return Wt(this.year(),1,4)},ki.isoWeeksInISOWeekYear=function(){return Wt(this.isoWeekYear(),1,4)},ki.date=gi,ki.day=ki.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Ot(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ki.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ki.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ki.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ki.hour=ki.hours=oe,ki.minute=ki.minutes=_i,ki.second=ki.seconds=wi,ki.millisecond=ki.milliseconds=xi,ki.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ue(rt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ye(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?$e(this,Ze(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ye(this)},ki.utc=function(t){return this.utcOffset(0,t)},ki.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ye(this),"m")),this},ki.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ue(nt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ki.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Me(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ki.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ki.isLocal=function(){return!!this.isValid()&&!this._isUTC},ki.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ki.isUtc=He,ki.isUTC=He,ki.zoneAbbr=function(){return this._isUTC?"UTC":""},ki.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ki.dates=k("dates accessor is deprecated. Use date instead.",gi),ki.months=k("months accessor is deprecated. Use month instead",Nt),ki.years=k("years accessor is deprecated. Use year instead",Ct),ki.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ki.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=De(e))._a?(t=e._isUTC?d(e._a):Me(e._a),this._isDSTShifted=this.isValid()&&function(t,e,
vendor: 5,783 bytes, line 1
1i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&pt(t[n])!==pt(e[n]))&&a++;return a+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ei=D.prototype;function Pi(t,e,i,n){var r=de(),o=d().set(n,e);return r[i](o,t)}function Ai(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Pi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Pi(t,n,i,"month");return r}function Ci(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var r,o=de(),a=t?o._week.dow:0,s=[];if(null!=i)return Pi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=Pi(e,(r+a)%7,n,"day");return s}Ei.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return A(n)?n.call(e,i):n},Ei.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(M).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},Ei.invalidDate=function(){return this._invalidDate},Ei.ordinal=function(t){return this._ordinal.replace("%d",t)},Ei.preparse=Si,Ei.postformat=Si,Ei.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return A(r)?r(t,e,i,n):r.replace(/%d/i,t)},Ei.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return A(i)?i(e):i.replace(/%s/i,e)},Ei.set=function(t){var e,i;for(i in t)s(t,i)&&(A(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ei.eras=function(t,e){var i,n,o,a=this._eras||de("en")._eras;for(i=0,n=a.length;i<n;++i){switch(typeof a[i].since){case"string":o=r(a[i].since).startOf("day"),a[i].since=o.valueOf()}switch(typeof a[i].until){case"undefined":a[i].until=1/0;break;case"string":o=r(a[i].until).startOf("day").valueOf(),a[i].until=o.valueOf()}}return a},Ei.erasParse=function(t,e,i){var n,r,o,a,s,l=this.eras();for(t=t.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(s===t)return l[n]}else if([o,a,s].indexOf(t)>=0)return l[n]},Ei.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*i},Ei.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||mi.call(this),t?this._erasAbbrRegex:this._erasRegex},Ei.erasNameRegex=function(t){return s(this,"_erasNameRegex")||mi.call(this),t?this._erasNameRegex:this._erasRegex},Ei.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||mi.call(this),t?this._erasNarrowRegex:this._erasRegex},Ei.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},Ei.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ei.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return function(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=At.call(this._shortMonthsParse,a))?r:null:-1!==(r=At.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=At.call(this._shortMonthsParse,a))?r:-1!==(r=At.call(this._longMonthsParse,a))?r:null:-1!==(r=At.call(this._longMonthsParse,a))?r:-1!==(r=At.call(this._shortMonthsParse,a))?r:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Ei.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Vt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=jt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ei.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Vt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Bt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ei.week=function(t){return Ht(t,this._week.dow,this._week.doy).week},Ei.firstDayOfYear=function(){return this._week.doy},Ei.firstDayOfWeek=function(){return this._week.dow},Ei.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Gt(i,this._week.dow):t?i[t.day()]:i},Ei.weekdaysMin=function(t){return!0===t?Gt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ei.weekdaysShort=function(t){return!0===t?Gt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}
vendor: 6,134 bytes, line 1
1,Ei.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return function(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=At.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=At.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=At.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=At.call(this._weekdaysParse,a))?r:-1!==(r=At.call(this._shortWeekdaysParse,a))?r:-1!==(r=At.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=At.call(this._shortWeekdaysParse,a))?r:-1!==(r=At.call(this._weekdaysParse,a))?r:-1!==(r=At.call(this._minWeekdaysParse,a))?r:null:-1!==(r=At.call(this._minWeekdaysParse,a))?r:-1!==(r=At.call(this._weekdaysParse,a))?r:-1!==(r=At.call(this._shortWeekdaysParse,a))?r:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Ei.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Jt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ei.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ei.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||te.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ei.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ei.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},pe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===pt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",pe),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",de);var Di=Math.abs;function Oi(t,e,i,n){var r=Ze(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Mi(t){return t<0?Math.floor(t):Math.ceil(t)}function Ii(t){return 4800*t/146097}function zi(t){return 146097*t/4800}function Li(t){return function(){return this.as(t)}}var Ri=Li("ms"),Bi=Li("s"),ji=Li("m"),Fi=Li("h"),Ni=Li("d"),Vi=Li("w"),Ui=Li("M"),qi=Li("Q"),Yi=Li("y"),Hi=Ri;function Wi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Gi=Wi("milliseconds"),Zi=Wi("seconds"),Xi=Wi("minutes"),Ki=Wi("hours"),Ji=Wi("days"),$i=Wi("months"),Qi=Wi("years"),tn=Math.round,en={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},nn=Math.abs;function rn(t){return(t>0)-(t<0)||+t}function on(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,o,a,s,l=nn(this._milliseconds)/1e3,u=nn(this._days),c=nn(this._months),h=this.asSeconds();return h?(t=ht(l/60),e=ht(t/60),l%=60,t%=60,i=ht(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",o=rn(this._months)!==rn(h)?"-":"",a=rn(this._days)!==rn(h)?"-":"",s=rn(this._milliseconds)!==rn(h)?"-":"",r+"P"+(i?o+i+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+n+"S":"")):"P0D"}var an=Be.prototype;return an.isValid=function(){return this._isValid},an.abs=function(){var t=this._data;return this._milliseconds=Di(this._milliseconds),this._days=Di(this._days),this._months=Di(this._months),t.milliseconds=Di(t.milliseconds),t.seconds=Di(t.seconds),t.minutes=Di(t.minutes),t.hours=Di(t.hours),t.months=Di(t.months),t.years=Di(t.years),this},an.add=function(t,e){return Oi(this,t,e,1)},an.subtract=function(t,e){return Oi(this,t,e,-1)},an.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=N(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+Ii(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(zi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},an.asMilliseconds=Ri,an.asSeconds=Bi,an.asMinutes=ji,an.asHours=Fi,an.asDays=Ni,an.asWeeks=Vi,an.asMonths=Ui,an.asQuarters=qi,an.asYears=Yi,an.valueOf=Hi,an._bubble=function(){var t,e,i,n,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Mi(zi(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=ht(o/1e3),l.seconds=t%60,e=ht
1(t/60),l.minutes=e%60,i=ht(e/60),l.hours=i%24,a+=ht(i/24),s+=r=ht(Ii(a)),a-=Mi(zi(r)),n=ht(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},an.clone=function(){return Ze(this)},an.get=function(t){return t=N(t),this.isValid()?this[t+"s"]():NaN},an.milliseconds=Gi,an.seconds=Zi,an.minutes=Xi,an.hours=Ki,an.days=Ji,an.weeks=function(){return ht(this.days()/7)},an.months=$i,an.years=Qi,an.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,o=en;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},en,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),n=function(t,e,i,n){var r=Ze(t).abs(),o=tn(r.as("s")),a=tn(r.as("m")),s=tn(r.as("h")),l=tn(r.as("d")),u=tn(r.as("M")),c=tn(r.as("w")),h=tn(r.as("y")),p=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||a<=1&&["m"]||a<i.m&&["mm",a]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(p=p||c<=1&&["w"]||c<i.w&&["ww",c]),(p=p||u<=1&&["M"]||u<i.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=e,p[3]=+t>0,p[4]=n,function(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}.apply(null,p)}(this,!r,o,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},an.toISOString=on,an.toString=on,an.toJSON=on,an.locale=ri,an.localeData=ai,an.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",on),an.lang=oi,R("X",0,0,"unix"),R("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t))}),dt("x",function(t,e,i){i._d=new Date(pt(t))}),r.version="2.30.1",i=Me,r.fn=ki,r.min=function(){return Le("isBefore",[].slice.call(arguments,0))},r.max=function(){return Le("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(t){return Me(1e3*t)},r.months=function(t,e){return Ai(t,e,"months")},r.isDate=h,r.locale=pe,r.invalid=v,r.duration=Ze,r.isMoment=w,r.weekdays=function(t,e,i){return Ci(t,e,i,"weekdays")},r.parseZone=function(){return Me.apply(null,arguments).parseZone()},r.localeData=de,r.isDuration=je,r.monthsShort=function(t,e){return Ai(t,e,"monthsShort")},r.weekdaysMin=function(t,e,i){return Ci(t,e,i,"weekdaysMin")},r.defineLocale=fe,r.updateLocale=function(t,e){if(null!=e){var i,n,r=ae;null!=se[t]&&null!=se[t].parentLocale?se[t].set(C(se[t]._config,e)):(null!=(n=he(t))&&(r=n._config),e=C(r,e),null==n&&(e.abbr=t),(i=new D(e)).parentLocale=se[t],se[t]=i),pe(t)}else null!=se[t]&&(null!=se[t].parentLocale?(se[t]=se[t].parentLocale,t===pe()&&pe(t)):null!=se[t]&&delete se[t]);return se[t]},r.locales=function(){return S(se)},r.weekdaysShort=function(t,e,i){return Ci(t,e,i,"weekdaysShort")},r.normalizeUnits=N,r.relativeTimeRounding=function(t){return void 0===t?tn:"function"==typeof t&&(tn=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==en[t]&&(void 0===e?en[t]:(en[t]=e,"s"===t&&(en.ss=e-1),!0))},r.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},r.prototype=ki,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r},"object"==typeof i&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):n.moment=r()},{}],58:[function(t,e,i){!function(){"use strict";if("undefined"!=typeof window){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),e=t?parseInt(t[1],10):null,i=!!e&&16<=e&&e<=18;if("objectFit"in document.documentElement.style==0||i){var n=function(t,e,i){var n,r,o,a,s;if((i=i.split(" ")).length<2&&(i[1]=i[0]),"x"===t)n=i[0],r=i[1],o="left",a="right",s=e.clientWidth;else{if("y"!==t)return;n=i[1],r=i[0],o="top",a="bottom",s=e.clientHeight}if(n!==o&&r!==o){if(n!==a&&r!==a)return"center"===n||"50%"===n?(e.style[o]="50%",void(e.style["margin-"+o]=s/-2+"px")):void(0<=n.indexOf("%")?(n=parseInt(n,10))<50?(e.style[o]=n+"%",e.style["margin-"+o]=s*(n/-100)+"px"):(n=100-n,e.style[a]=n+"%",e.style["margin-"+a]=s*(n/-100)+"px"):e.style[o]=n);e.style[a]="0"}else e.style[o]="0"},r=function(t){var e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"),i=t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position");e=e||"cover",i=i||"50% 50%";var r=t.parentNode;return function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),r=e.getPropertyValue("display");
1i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),r&&"inline"!==r||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")}(r),function(t){var e=window.getComputedStyle(t,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var n in i)e.getPropertyValue(n)!==i[n]&&(t.style[n]=i[n])}(t),t.style.position="absolute",t.style.width="auto",t.style.height="auto","scale-down"===e&&(e=t.clientWidth<r.clientWidth&&t.clientHeight<r.clientHeight?"none":"contain"),"none"===e?(n("x",t,i),void n("y",t,i)):"fill"===e?(t.style.width="100%",t.style.height="100%",n("x",t,i),void n("y",t,i)):(t.style.height="100%",void("cover"===e&&t.clientWidth>r.clientWidth||"contain"===e&&t.clientWidth<r.clientWidth?(t.style.top="0",t.style.marginTop="0",n("x",t,i)):(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",n("y",t,i))))},o=function(t){if(void 0===t||t instanceof Event)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else{if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;t=t}for(var e=0;e<t.length;e++)if(t[e].nodeName){var n=t[e].nodeName.toLowerCase();if("img"===n){if(i)continue;t[e].complete?r(t[e]):t[e].addEventListener("load",function(){r(this)})}else"video"===n?0<t[e].readyState?r(t[e]):t[e].addEventListener("loadedmetadata",function(){r(this)}):r(t[e])}return!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o(),window.addEventListener("resize",o),window.objectFitPolyfill=o}else window.objectFitPolyfill=function(){return!1}}}()},{}],59:[function(t,e,i){!function(t){var e,i,n,r,o,a,s,l=navigator.userAgent;t.HTMLPictureElement&&/ecko/.test(l)&&l.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(i=document.createElement("source"),n=function(t){var e,n,r=t.parentNode;"PICTURE"===r.nodeName.toUpperCase()?(e=i.cloneNode(),r.insertBefore(e,r.firstElementChild),setTimeout(function(){r.removeChild(e)})):(!t._pfLastSize||t.offsetWidth>t._pfLastSize)&&(t._pfLastSize=t.offsetWidth,n=t.sizes,t.sizes+=",100vw",setTimeout(function(){t.sizes=n}))},r=function(){var t,e=document.querySelectorAll("picture > img, img[srcset][sizes]");for(t=0;t<e.length;t++)n(e[t])},o=function(){clearTimeout(e),e=setTimeout(r,99)},a=t.matchMedia&&matchMedia("(orientation: landscape)"),s=function(){o(),a&&a.addListener&&a.addListener(o)},i.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?s():document.addEventListener("DOMContentLoaded",s),o))}(window),function(t,i,n){"use strict";var r,o,a;i.createElement("picture");var s={},l=!1,u=function(){},c=i.createElement("img"),h=c.getAttribute,p=c.setAttribute,f=c.removeAttribute,d=i.documentElement,m={},y={algorithm:""},v=navigator.userAgent,g=/rident/.test(v)||/ecko/.test(v)&&v.match(/rv\:(\d+)/)&&RegExp.$1>35,_="currentSrc",b=/\s+\+?\d+(e\d+)?w/,x=/(\([^)]+\))?\s*(.+)/,w=t.picturefillCFG,T="font-size:100%!important;",k=!0,S={},E={},P=t.devicePixelRatio,A={px:1,in:96},C=i.createElement("a"),D=!1,O=/^[ \t\n\r\u000c]+/,M=/^[, \t\n\r\u000c]+/,I=/^[^ \t\n\r\u000c]+/,z=/[,]+$/,L=/^\d+$/,R=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,B=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n||!1):t.attachEvent&&t.attachEvent("on"+e,i)},j=function(t){var e={};return function(i){return i in e||(e[i]=t(i)),e[i]}};function F(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}var N,V,U,q,Y,H,W,G,Z,X,K,J,$,Q,tt,et,it=(N=/^([\d\.]+)(em|vw|px)$/,V=j(function(t){return"return "+function(){for(var t=arguments,e=0,i=t[0];++e in t;)i=i.replace(t[e],t[++e]);return i}((t||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(t,e){var i;if(!(t in S))if(S[t]=!1,e&&(i=t.match(N)))S[t]=i[1]*A[i[2]];else try{S[t]=new Function("e",V(t))(A)}catch(t){}return S[t]}),nt=function(t,e){return t.w?(t.cWidth=s.calcListLength(e||"100vw"),t.res=t.w/t.cWidth):t.res=t.d,t},rt=function(t){if(l){var e,n,r,o=t||{};if(o.elements&&1===o.elements.nodeType&&("IMG"===o.elements.nodeName.toUpperCase()?o.elements=[o.elements]:(o.context=o.elements,o.elements=null)),r=(e=o.elements||s.qsa(o.context||i,o.reevaluate||o.reselect?s.sel:s.selShort)).length){for(s.setupRun(o),D=!0,n=0;n<r;n++)s.fillImg(e[n],o);s.teardownRun(o)}}};function ot(t,e){return t.res-e.res}function at(t,e){var i,n,r;if(t&&e)for(r=s.parseSet(e),t=s.makeUrl(t),i=0;i<r.length;i++)if(t===s.makeUrl(r[i].url)){n=r[i];break}return n}t.console&&console.warn,_ in c||(_="src"),m["image/jpeg"]=!0,m["image/gif"]=!0,m["image/png"]=!0,m["image/svg+xml"]=i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),s.ns=("pf"+(new Date).getTime()).substr(0,9),s.supSrcset="srcset"in c,s.supSizes="sizes"in c,s.supPicture=!!t.HTMLPictureElement,s.supSrcset&&s.supPicture&&!s.supSizes&&(U=i.createElement("img"),c.srcset="data:,a",U.src="data:,a",s.supSrcset=c.complete===U.complete,s.supPicture=s.supSrcset&&s.supPicture),s.supSrcset&&!s.supSizes?(q="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Y=i.createElement("img"),H=function(){2===Y.width&&(s.supSizes=!0),o=s.supSrcset&&!s.supSizes,l=!0,setTimeout(rt)},Y.onload=H,Y.onerror=H,Y.setAttribute("sizes","9px"),Y.srcset=q+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",Y.src=q):l
1=!0,s.selShort="picture>img,img[srcset]",s.sel=s.selShort,s.cfg=y,s.DPR=P||1,s.u=A,s.types=m,s.setSize=u,s.makeUrl=j(function(t){return C.href=t,C.href}),s.qsa=function(t,e){return"querySelector"in t?t.querySelectorAll(e):[]},s.matchesMedia=function(){return t.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?s.matchesMedia=function(t){return!t||matchMedia(t).matches}:s.matchesMedia=s.mMQ,s.matchesMedia.apply(this,arguments)},s.mMQ=function(t){return!t||it(t)},s.calcLength=function(t){var e=it(t,!0)||!1;return e<0&&(e=!1),e},s.supportsType=function(t){return!t||m[t]},s.parseSize=j(function(t){var e=(t||"").match(x);return{media:e&&e[1],length:e&&e[2]}}),s.parseSet=function(t){return t.cands||(t.cands=function(t,e){function i(e){var i,n=e.exec(t.substring(u));if(n)return i=n[0],u+=i.length,i}var n,r,o,a,s,l=t.length,u=0,c=[];function h(){var t,i,o,a,s,l,u,h,p,f=!1,d={};for(a=0;a<r.length;a++)l=(s=r[a])[s.length-1],u=s.substring(0,s.length-1),h=parseInt(u,10),p=parseFloat(u),L.test(u)&&"w"===l?((t||i)&&(f=!0),0===h?f=!0:t=h):R.test(u)&&"x"===l?((t||i||o)&&(f=!0),p<0?f=!0:i=p):L.test(u)&&"h"===l?((o||i)&&(f=!0),0===h?f=!0:o=h):f=!0;f||(d.url=n,t&&(d.w=t),i&&(d.d=i),o&&(d.h=o),o||i||t||(d.d=1),1===d.d&&(e.has1x=!0),d.set=e,c.push(d))}function p(){for(i(O),o="",a="in descriptor";;){if(s=t.charAt(u),"in descriptor"===a)if(F(s))o&&(r.push(o),o="",a="after descriptor");else{if(","===s)return u+=1,o&&r.push(o),void h();if("("===s)o+=s,a="in parens";else{if(""===s)return o&&r.push(o),void h();o+=s}}else if("in parens"===a)if(")"===s)o+=s,a="in descriptor";else{if(""===s)return r.push(o),void h();o+=s}else if("after descriptor"===a)if(F(s));else{if(""===s)return void h();a="in descriptor",u-=1}u+=1}}while(!0){if(i(M),u>=l)return c;n=i(I),r=[],","===n.slice(-1)?(n=n.replace(z,""),h()):p()}}(t.srcset,t)),t.cands},s.getEmValue=function(){var t;if(!r&&(t=i.body)){var e=i.createElement("div"),n=d.style.cssText,o=t.style.cssText;e.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",d.style.cssText=T,t.style.cssText=T,t.appendChild(e),r=e.offsetWidth,t.removeChild(e),r=parseFloat(r,10),d.style.cssText=n,t.style.cssText=o}return r||16},s.calcListLength=function(t){if(!(t in E)||y.uT){var e=s.calcLength(function(t){var e,i,n,r,o,a,l,u=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,c=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(n=(i=function(t){var e,i="",n=[],r=[],o=0,a=0,s=!1;function l(){i&&(n.push(i),i="")}function u(){n[0]&&(r.push(n),n=[])}while(!0){if(""===(e=t.charAt(a)))return l(),u(),r;if(s){if("*"===e&&"/"===t[a+1]){s=!1,a+=2,l();continue}a+=1}else{if(F(e)){if(t.charAt(a-1)&&F(t.charAt(a-1))||!i){a+=1;continue}if(0===o){l(),a+=1;continue}e=" "}else if("("===e)o+=1;else if(")"===e)o-=1;else{if(","===e){l(),u(),a+=1;continue}if("/"===e&&"*"===t.charAt(a+1)){s=!0,a+=2;continue}}i+=e,a+=1}}}(t)).length,e=0;e<n;e++)if(o=(r=i[e])[r.length-1],l=o,u.test(l)&&parseFloat(l)>=0||c.test(l)||"0"===l||"-0"===l||"+0"===l){if(a=o,r.pop(),0===r.length)return a;if(r=r.join(" "),s.matchesMedia(r))return a}return"100vw"}(t));E[t]=e||A.width}return E[t]},s.setRes=function(t){var e;if(t)for(var i=0,n=(e=s.parseSet(t)).length;i<n;i++)nt(e[i],t.sizes);return e},s.setRes.res=nt,s.applySetCandidate=function(t,e){if(t.length){var i,n,r,o,a,l,u,c,h,p,f,d,m,v,b,x,w=e[s.ns],T=s.DPR;if(l=w.curSrc||e[_],(u=w.curCan||function(t,e,i){var n;return!i&&e&&(i=(i=t[s.ns].sets)&&i[i.length-1]),(n=at(e,i))&&(e=s.makeUrl(e),t[s.ns].curSrc=e,t[s.ns].curCan=n,n.res||nt(n,n.set.sizes)),n}(e,l,t[0].set))&&u.set===t[0].set&&((h=g&&!e.complete&&u.res-.1>T)||(u.cached=!0,u.res>=T&&(a=u))),!a)for(t.sort(ot),a=t[(o=t.length)-1],n=0;n<o;n++)if((i=t[n]).res>=T){a=t[r=n-1]&&(h||l!==s.makeUrl(i.url))&&(p=t[r].res,f=i.res,d=T,m=t[r].cached,v=void 0,b=void 0,x=void 0,"saveData"===y.algorithm?p>2.7?x=d+1:(b=(f-d)*(v=Math.pow(p-.6,1.5)),m&&(b+=.1*v),x=p+b):x=d>1?Math.sqrt(p*f):p,x>d)?t[r]:i;break}a&&(c=s.makeUrl(a.url),w.curSrc=c,w.curCan=a,c!==l&&s.setSrc(e,a),s.setSize(e))}},s.setSrc=function(t,e){var i;t.src=e.url,"image/svg+xml"===e.set.type&&(i=t.style.width,t.style.width=t.offsetWidth+1+"px",t.offsetWidth+1&&(t.style.width=i))},s.getSet=function(t){var e,i,n,r=!1,o=t[s.ns].sets;for(e=0;e<o.length&&!r;e++)if((i=o[e]).srcset&&s.matchesMedia(i.media)&&(n=s.supportsType(i.type))){"pending"===n&&(i=n),r=i;break}return r}
1,s.parseSets=function(t,e,i){var n,r,a,l,u=e&&"PICTURE"===e.nodeName.toUpperCase(),c=t[s.ns];(void 0===c.src||i.src)&&(c.src=h.call(t,"src"),c.src?p.call(t,"data-pfsrc",c.src):f.call(t,"data-pfsrc")),(void 0===c.srcset||i.srcset||!s.supSrcset||t.srcset)&&(n=h.call(t,"srcset"),c.srcset=n,l=!0),c.sets=[],u&&(c.pic=!0,function(t,e){var i,n,r,o,a=t.getElementsByTagName("source");for(i=0,n=a.length;i<n;i++)(r=a[i])[s.ns]=!0,(o=r.getAttribute("srcset"))&&e.push({srcset:o,media:r.getAttribute("media"),type:r.getAttribute("type"),sizes:r.getAttribute("sizes")})}(e,c.sets)),c.srcset?(r={srcset:c.srcset,sizes:h.call(t,"sizes")},c.sets.push(r),(a=(o||c.src)&&b.test(c.srcset||""))||!c.src||at(c.src,r)||r.has1x||(r.srcset+=", "+c.src,r.cands.push({url:c.src,d:1,set:r}))):c.src&&c.sets.push({srcset:c.src,sizes:null}),c.curCan=null,c.curSrc=void 0,c.supported=!(u||r&&!s.supSrcset||a&&!s.supSizes),l&&s.supSrcset&&!c.supported&&(n?(p.call(t,"data-pfsrcset",n),t.srcset=""):f.call(t,"data-pfsrcset")),c.supported&&!c.srcset&&(!c.src&&t.src||t.src!==s.makeUrl(c.src))&&(null===c.src?t.removeAttribute("src"):t.src=c.src),c.parsed=!0},s.fillImg=function(t,e){var i,n,r,o,l,u=e.reselect||e.reevaluate;(t[s.ns]||(t[s.ns]={}),i=t[s.ns],u||i.evaled!==a)&&(i.parsed&&!e.reevaluate||s.parseSets(t,t.parentNode,e),i.supported?i.evaled=a:(n=t,o=s.getSet(n),l=!1,"pending"!==o&&(l=a,o&&(r=s.setRes(o),s.applySetCandidate(r,n))),n[s.ns].evaled=l))},s.setupRun=function(){D&&!k&&P===t.devicePixelRatio||(k=!1,P=t.devicePixelRatio,S={},E={},s.DPR=P||1,A.width=Math.max(t.innerWidth||0,d.clientWidth),A.height=Math.max(t.innerHe
1ight||0,d.clientHeight),A.vw=A.width/100,A.vh=A.height/100,a=[A.height,A.width,P].join("-"),A.em=s.getEmValue(),A.rem=A.em)},s.supPicture?(rt=u,s.fillImg=u):($=t.attachEvent?/d$|^c/:/d$|^c|^i/,Q=function(){var t=i.readyState||"";tt=setTimeout(Q,"loading"===t?200:999),i.body&&(s.fillImgs(),(W=W||$.test(t))&&clearTimeout(tt))},tt=setTimeout(Q,i.body?9:99),et=d.clientHeight,B(t,"resize",(G=function(){k=Math.max(t.innerWidth||0,d.clientWidth)!==A.width||d.clientHeight!==et,et=d.clientHeight,k&&s.fillImgs()},Z=99,J=function(){var t=new Date-K;t<Z?X=setTimeout(J,Z-t):(X=null,G())},function(){K=new Date,X||(X=setTimeout(J,Z))})),B(i,"readystatechange",Q)),s.picturefill=rt,s.fillImgs=rt,s.teardownRun=u,rt._=s,t.picturefillCFG={pf:s,push:function(t){var e=t.shift();"function"==typeof s[e]?s[e].apply(s,t):(y[e]=t[0],D&&s.fillImgs({reselect:!0}))}};for(;w&&w.length;)t.picturefillCFG.push(w.shift());t.picturefill=rt,"object"==typeof e&&"object"==typeof e.exports?e.exports=rt:"function"==typeof define&&define.amd&&define("picturefill",function(){return rt}),s.supPicture||(m["image/webp"]=function(e,i){var n=new t.Image;return n.onerror=function(){m[e]=!1,rt()},n.onload=function(){m[e]=1===n.width,rt()},n.src=i,"pending"}("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document)},{}],60:[function(t,e,i){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],h=!1,p=-1;function f(){h&&u&&(h=!1,u.length?c=u.concat(c):p=-1,c.length&&d())}function d(){if(!h){var t=l(f);h=!0;for(var e=c.length;e;){for(u=c,c=[];++p<e;)u&&u[p].run();p=-1,e=c.length}u=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function y(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new m(t,e)),1!==c.length||h||l(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],61:[function(t,e,i){(function(e,n){var r=t("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function u(t,e){this._id=t,this._clearFn=e}i.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(t){t.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},i.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},i._unrefActive=i.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i.setImmediate="function"==typeof e?e:function(t){var e=l++,n=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,r(function(){s[e]&&(n?t.apply(null,n):t.call(null),i.clearImmediate(e))}),e},i.clearImmediate="function"==typeof n?n:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":60,timers:61}]},{},[32])

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.