1/*! For license information please see sharedlargemodules.min.js.LICENSE.txt */ 2"use strict";(self.webpackChunkDanfoss_WebEx=self.webpackChunkDanfoss_WebEx||[]).push([["sharedlargemodules"],{40:(e,t,r)=>{if(r.d(t,{H:()=>n}),"vendors"!=r.j)var i=r(70775);function n(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const r=e.name.value;if("function"==typeof t)return t(r);const n=t&&t[r];return(0,i.V1)(n,9,r),n||null}default:return null}}},237:(e,t,r)=>{r.d(t,{X:()=>_});var i=r(4202),n=r(96540),s=r(19888);const o="7.21.0";var a=r(11327),l=r(67912),c=r(52357),u=r(98292),h=r(35843);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=["react (".concat(n.version,")"),"react-instantsearch (".concat(o,")"),"react-instantsearch-core (".concat(o,")")],y="react-instantsearch-server (".concat(o,")"),v=function(e){return e?"next.js (".concat(e,")"):null};function _(e){var t,r,o=(0,l.C)(),d=(0,c.r)(),p=(0,u.m)(),m=(0,h.t)().waitForResultsRef,_=null==p?void 0:p.initialResults,x=(0,n.useRef)(e),w=d||_||m,A=(0,n.useRef)(null);if(null!=p&&p.ssrSearchRef&&(A=p.ssrSearchRef),null===A.current){var E=new i.A(e);E._schedule=function(e){E._schedule.queue.push(e),clearTimeout(E._schedule.timer),E._schedule.timer=setTimeout((function(){E._schedule.queue.forEach((function(e){e()})),E._schedule.queue=[]}),0)},E._schedule.queue=[],w&&(E._initialResults=_||{},E._manuallyResetScheduleSearch=!0),b(e.searchClient,[].concat(g,[d&&y,v("undefined"!=typeof window&&(null===(t=window.next)||void 0===t?void 0:t.version)||("undefined"!=typeof process?null===(r={NODE_ENV:"production"})||void 0===r?void 0:r.NEXT_RUNTIME:void 0))])),w&&E.start(),d&&d.notifyServer({search:E}),e.routing,Boolean(m),A.current=E}var S,T=A.current,C=x.current;(C.indexName!==e.indexName&&(T.helper.setIndex(e.indexName||"").search(),x.current=e),C.searchClient!==e.searchClient&&(b(e.searchClient,[].concat(g,[d&&y])),T.mainHelper.setClient(e.searchClient).search(),x.current=e),C.onStateChange!==e.onStateChange&&(T.onStateChange=e.onStateChange,x.current=e),C.searchFunction!==e.searchFunction&&(T._searchFunction=e.searchFunction,x.current=e),C.stalledSearchDelay!==e.stalledSearchDelay)&&(T._stalledSearchDelay=null!==(S=e.stalledSearchDelay)&&void 0!==S?S:200,x.current=e);(0,a.j)(C.future,e.future)||(T.future=f(f({},i.N),e.future),x.current=e);var I=(0,n.useRef)(null),P=(0,s.useSyncExternalStore)((0,n.useCallback)((function(){var e=A.current;return null===I.current?e.started||(e.start(),o()):(clearTimeout(I.current),e._preventWidgetCleanup=!1),function(){null!=p&&p.ssrSearchRef||(clearTimeout(e._schedule.timer),I.current=setTimeout((function(){e.dispose()})),e._preventWidgetCleanup=!0)}}),[o,p]),(function(){return A.current}),(function(){return A.current}));return P}function b(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach((function(t){e.addAlgoliaAgent(t)}))}},241:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(41917).A.Symbol;const n="app"==r.j?i:null},304:(e,t,r)=>{if(r.d(t,{C:()=>u}),"contactslistv2/contactslistv2"==r.j)var i=r(21262);if("contactslistv2/contactslistv2"==r.j)var n=r(69026);if("contactslistv2/contactslistv2"==r.j)var s=r(53453);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?(0,i.A)():t,o=e.stateMapping,a=void 0===o?(0,n.A)():o,u=e.$$internal,h=void 0!==u&&u;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var i=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),n=Object.keys(e).reduce((function(t,r){return l(l({},t),{},c({},r,e[r]))}),i),s=a.stateToRoute(n);return r.createURL(s)};var i=void 0,n=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(a.$$type||"__unknown__","})"),$$internal:h,onStateChange:function(e){var t=e.uiState,n=a.stateToRoute(t);void 0!==i&&(0,s.n)(i,n)||(r.write(n),i=n)},subscribe:function(){t._initialUiState=l(l({},n),a.routeToState(r.read())),r.onUpdate((function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(a.routeToState(e))}))},started:function(){var e;null===(e=r.start)||void 0===e||e.call(r)},unsubscribe:function(){r.dispose()}}}}},695:(e,t,r)=>{r.d(t,{t:()=>n});var i=r(96540),n="contactslistv2/contactslistv2"==r.j?(0,i.createContext)(null):null},1005:(e,t,r)=>{if(r.d(t,{u:()=>l}),"vendors"!=r.j)var i=r(31635);if("vendors"!=r.j)var n=r(15964);if("vendors"!=r.j)var s=r(27291);if("vendors"!=r.j)var o=r(2685);if("vendors"!=r.j)var a=r(92908);function l(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new s.B}:t,i=e.resetOnError,l=void 0===i||i,u=e.resetOnComplete,h=void 0===u||u,d=e.resetOnRefCountZero,p=void 0===d||d;return function(e){var t,i,s,u=0,d=!1,f=!1,m=function(){null==i||i.unsubscribe(),i=void 0},g=function(){m(),t=s=void 0,d=f=!1},y=function(){var e=t;g(),null==e||e.unsubscribe()};return(0,a.N)((function(e,a){u++,f||d||m();var v=s=null!=s?s:r();a.add((function(){0!==--u||f||d||(i=c(y,p))})),v.subscribe(a),!t&&u>0&&(t=new o.Ms({next:function(e){return v.next(e)},error:function(e){f=!0,m(),i=c(g,l,e),v.error(e)},complete:function(){d=!0,m(),i=c(g,h),v.complete()}}),(0,n.Tg)(e).subscribe(t))}))(e)}}function c(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0!==t){if(!1!==t){var a=new o.Ms({next:function(){a.unsubscribe(),e()}});return(0,n.Tg)(t.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(r)))).subscribe(a)}}else e()}},1230:(e,t,r)=>{if(r.d(t,{U0:()=>h,Zp:()=>d}),"contactslistv2/contactslistv2"==r.j)var i=r(10793);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}
2finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e){var t=e.helper,r=e.widgetType,i=(e.methodName,e.args),n=e.instantSearchInstance;if(1===i.length&&"object"===c(i[0]))return[i[0]];var o=a(i[0].split(":"),2),l=o[0],u=o[1],h=i[1],d=i[2],p=i[3]||{};if(!h)return[];if(("click"===l||"conversion"===l)&&!d)return[];var f=Array.isArray(h)?h:[h];if(0===f.length)return[];var m=f[0].__queryID,g=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],i=0;i<Math.ceil(e.length/t);i++)r.push(e.slice(i*t,(i+1)*t));return r}(f),y=g.map((function(e){return e.map((function(e){return e.objectID}))})),v=g.map((function(e){return e.map((function(e){return e.__position}))}));return"view"===l?"idle"!==n.status?[]:g.map((function(e,i){var n;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:l,payload:s({eventName:d||"Hits Viewed",index:(null===(n=t.lastResults)||void 0===n?void 0:n.index)||t.state.index,objectIDs:y[i]},p),hits:e,eventModifier:u}})):"click"===l?g.map((function(e,i){var n;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:l,payload:s({eventName:d||"Hit Clicked",index:(null===(n=t.lastResults)||void 0===n?void 0:n.index)||t.state.index,queryID:m,objectIDs:y[i],positions:v[i]},p),hits:e,eventModifier:u}})):"conversion"===l?g.map((function(e,i){var n;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:l,payload:s({eventName:d||"Hit Converted",index:(null===(n=t.lastResults)||void 0===n?void 0:n.index)||t.state.index,queryID:m,objectIDs:y[i]},p),hits:e,eventModifier:u}})):[]}function h(e){var t=e.instantSearchInstance,r=e.helper,i=e.widgetType,n={},s=void 0;return function(){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];u({widgetType:i,helper:r,methodName:"sendEvent",args:o,instantSearchInstance:t}).forEach((function(e){"click"===e.eventType&&"internal"===e.eventModifier&&n[e.eventType]||(n[e.eventType]=!0,t.sendEventToInsights(e))})),clearTimeout(s),s=setTimeout((function(){n={}}),0)}}function d(e){var t=e.helper,r=e.widgetType,n=e.instantSearchInstance;return function(){for(var e=arguments.length,s=new Array(e),o=0;o<e;o++)s[o]=arguments[o];var a=u({widgetType:r,helper:t,methodName:"bindEvent",args:s,instantSearchInstance:n});return a.length?"data-insights-event=".concat((0,i.h)(a)):""}}},1343:(e,t,r)=>{if(r.d(t,{_:()=>n}),"vendors"!=r.j)var i=r(92908);function n(e,t){return void 0===t&&(t=0),(0,i.N)((function(r,i){i.add(e.schedule((function(){return r.subscribe(i)}),t))}))}},1727:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(12434),n=r(53098);const s=function(e){return(0,n.A)(e)&&"[object Set]"==(0,i.A)(e)};var o=r(52789),a=r(64841),l=a.A&&a.A.isSet;const c=l?(0,o.A)(l):s},1791:(e,t,r)=>{r.d(t,{E9:()=>s});const i=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let i,n=0;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},n=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},s=(e,t,r,s)=>{const o=async function*(e,t){for await(const r of n(e))yield*i(r,t)}(e,t);let a,l=0,c=e=>{a||(a=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await o.next();if(t)return c(),void e.close();let n=i.byteLength;if(r){let e=l+=n;r(e)}e.enqueue(new Uint8Array(i))}catch(e){throw c(e),e}},cancel:e=>(c(e),o.return())},{highWaterMark:2})}},1801:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(90565);const n="app"==r.j?function(e,t){var r=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}:null},2685:(e,t,r)=>{r.d(t,{Ms:()=>y,vU:()=>p});var i=r(31635),n=r(61209),s=r(52616),o=r(94384),a=r(22564);function l(){}var c=u("C",void 0,void 0);function u(e,t,r){return{kind:e,value:t,error:r}}var h=r(96744),d=r(7008),p=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,s.Uv)(t)&&t.add(r)):r.destination=b,r}return(0,i.__extends)(t,e),t.create=function(e,t,r){return new y(e,t,r)},t.prototype.next=function(e){this.isStopped?_(function(e){return u("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?_(u("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?_(c,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.yU),f=Function.prototype.bind;function m(e,t){return f.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,r,i){var s,a,l=e.call(this)||this;(0,n.T)(t)||!t?s={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=i?i:void 0}
2:l&&o.$.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},s={next:t.next&&m(t.next,a),error:t.error&&m(t.error,a),complete:t.complete&&m(t.complete,a)}):s=t;return l.destination=new g(s),l}return(0,i.__extends)(t,e),t}(p);function v(e){o.$.useDeprecatedSynchronousErrorHandling?(0,d.l)(e):(0,a.m)(e)}function _(e,t){var r=o.$.onStoppedNotification;r&&h.f.setTimeout((function(){return r(e,t)}))}var b={closed:!0,next:l,error:function(e){throw e},complete:l}},2928:(e,t,r)=>{function i(e){return e.catch((()=>{})),e}r.d(t,{X:()=>i})},3440:(e,t,r)=>{if(r.d(t,{y:()=>n}),"vendors"!=r.j)var i=r(61209);function n(e){return(0,i.T)(null==e?void 0:e.then)}},3453:(e,t,r)=>{if(r.d(t,{A:()=>a}),/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var i=r(96369);if(/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var n=r(6986);if(/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var s=r(27800);if(/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var o=r(76562);function a(e,t){return(0,i.A)(e)||(0,n.A)(e,t)||(0,s.A)(e,t)||(0,o.A)()}},3902:(e,t,r)=>{r.d(t,{X:()=>o});var i=r(43298),n=r(84705);const s={kind:i.b.FIELD,name:{kind:i.b.NAME,value:"__typename"}},o=Object.assign((function(e){return(0,n.YR)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===i.b.OPERATION_DEFINITION)return;const{selections:n}=e;if(!n)return;if(n.some((e=>e.kind===i.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0)))))return;const o=r;return o.kind===i.b.FIELD&&o.directives&&o.directives.some((e=>"export"===e.name.value))?void 0:{...e,selections:[...n,s]}}}})}),{added:e=>e===s})},4202:(e,t,r)=>{r.d(t,{A:()=>R,N:()=>k});var i=r(72733),n=r(74103);if("contactslistv2/contactslistv2"==r.j)var s=r(82036);if("contactslistv2/contactslistv2"==r.j)var o=r(10572);if("contactslistv2/contactslistv2"==r.j)var a=r(304);if("contactslistv2/contactslistv2"==r.j)var l=r(30122);if("contactslistv2/contactslistv2"==r.j)var c=r(94338);var u=r(74243);if("contactslistv2/contactslistv2"==r.j)var h=r(75373);if("contactslistv2/contactslistv2"==r.j)var d=r(60513);if("contactslistv2/contactslistv2"==r.j)var p=r(90041);if("contactslistv2/contactslistv2"==r.j)var f=r(61345);if("contactslistv2/contactslistv2"==r.j)var m=r(95138);if("contactslistv2/contactslistv2"==r.j)var g=r(92084);if("contactslistv2/contactslistv2"==r.j)var y=r(96231);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,I(i.key),i)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function A(e){var t=S();return function(){var r,i=T(e);if(t){var n=T(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function C(e,t,r){return(t=I(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}var P=(0,u.V)({name:"instantsearch"});function M(){return"#"}var k={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},O="contactslistv2/contactslistv2"==r.j?function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(v,e);var t,r,i,u=A(v);function v(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),C(E(t=u.call(this)),"client",void 0),C(E(t),"indexName",void 0),C(E(t),"compositionID",void 0),C(E(t),"insightsClient",void 0),C(E(t),"onStateChange",null),C(E(t),"future",void 0),C(E(t),"helper",void 0),C(E(t),"mainHelper",void 0),C(E(t),"mainIndex",void 0),C(E(t),"started",void 0),C(E(t),"templatesConfig",void 0),C(E(t),"renderState",{}),C(E(t),"_stalledSearchDelay",void 0),C(E(t),"_searchStalledTimer",void 0),C(E(t),"_initialUiState",void 0),C(E(t),"_initialResults",void 0),C(E(t),"_manuallyResetScheduleSearch",!1),C(E(t),"_resetScheduleSearch",void 0),C(E(t),"_createURL",void 0),C(E(t),"_searchFunction",void 0),C(E(t),"_mainHelperSearch",void 0),C(E(t),"_hasSearchWidget",!1),C(E(t),"_hasRecommendWidget",!1),C(E(t),"_insights",void 0),C(E(t),"middleware",[]),C(E(t),"sendEventToInsights",void 0),C(E(t),"status","idle"),C(E(t),"error",void 0),C(E(t),"scheduleSearch",(0,h.v)((function(){t.started&&t.mainHelper.search()}))),C(E(t),"scheduleRender",(0,h.v)((function(){var e,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null!==(e=t.mainHelper)&&void 0!==e&&e.hasPendingRequests()||(clearTimeout(t._searchStalledTimer),t._searchStalledTimer=null,r&&(t.status="idle",t.error=void 0)),t.mainIndex.render({instantSearchInstance:E(t)}),t.emit("render")}
2))),C(E(t),"onInternalStateChange",(0,h.v)((function(){var e=t.mainIndex.getWidgetUiState({});t.middleware.forEach((function(t){t.instance.onStateChange({uiState:e})}))}))),t.setMaxListeners(100);var r=e.indexName,i=void 0===r?"":r,n=e.compositionID,p=e.numberLocale,f=e.initialUiState,m=void 0===f?{}:f,g=e.routing,_=void 0===g?null:g,x=e.insights,w=void 0===x?void 0:x,A=e.searchFunction,S=e.stalledSearchDelay,T=void 0===S?200:S,I=e.searchClient,O=void 0===I?null:I,R=e.insightsClient,D=void 0===R?null:R,L=e.onStateChange,B=void 0===L?null:L,z=e.future,j=void 0===z?b(b({},k),e.future||{}):z;if(null===O)throw new Error(P("The `searchClient` option is required."));if("function"!=typeof O.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof O.addAlgoliaAgent&&O.addAlgoliaAgent("instantsearch.js (".concat(y.A,")")),D&&"function"!=typeof D)throw new Error(P("The `insightsClient` option should be a function."));if(t.client=O,t.future=j,t.insightsClient=D,t.indexName=i,t.compositionID=n,t.helper=null,t.mainHelper=null,t.mainIndex=(0,l.A)({indexName:t.compositionID||t.indexName}),t.onStateChange=B,t.started=!1,t.templatesConfig={helpers:(0,c.A)({numberLocale:p}),compileOptions:{}},t._stalledSearchDelay=T,t._searchStalledTimer=null,t._createURL=M,t._initialUiState=m,t._initialResults=null,t._insights=w,A&&(t._searchFunction=A),t.sendEventToInsights=d.l,_){var F="boolean"==typeof _?{}:_;F.$$internal=!0,t.use((0,a.C)(F))}if(w){var N="boolean"==typeof w?{}:w;N.$$internal=!0,t.use((0,s.k)(N))}return(0,o.n)()&&t.use((0,o.Y)({$$internal:!0})),t}return t=v,r=[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r.map((function(t){var r=b({$$type:"__unknown__",$$internal:!1,subscribe:d.l,started:d.l,unsubscribe:d.l,onStateChange:d.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r}));return this.started&&n.forEach((function(e){e.subscribe(),e.started()})),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter((function(e){return t.includes(e.creator)})).forEach((function(e){return e.instance.unsubscribe()})),this.middleware=this.middleware.filter((function(e){return!t.includes(e.creator)})),this}},{key:"EXPERIMENTAL_use",value:function(){return this.use.apply(this,arguments)}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw new Error(P("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some((function(e){return!Array.isArray(e)&&(0,p.l)(e)&&!e._isolated})))throw new Error(P("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw new Error(P("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw new Error(P("The `start` method has already been called once."));var t=this.mainHelper||n(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(d.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var i=e.mainIndex.getHelper(),s=n(r,i.state.index,i.state);return s.once("search",(function(t){var r=t.state;i.overrideStateWithoutTriggeringChangeEvent(r),e._mainHelperSearch()})),s.on("change",(function(e){var t=e.state;i.setState(t)})),e._searchFunction(s),t}}if(t.on("error",(function(t){var r=t.error;if(!(r instanceof Error)){var i=r;r=Object.keys(i).reduce((function(e,t){return e[t]=i[t],e}),new Error(i.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),e.emit("error",r)})),this.mainHelper=t,this.middleware.forEach((function(e){e.instance.subscribe()})),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){(0,f.R)(this.client,this._initialResults),(0,m.I)(this.mainHelper,this._initialResults);var i=this.scheduleSearch;this.scheduleSearch=(0,h.v)(d.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:(0,h.v)((function(){e.scheduleSearch=i}))()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach((function(e){e.instance.started()})),void 0===this._insights&&t.derivedHelpers[0].once("result",(function(){e.mainIndex.getScopedResults().some((function(e){var t=e.results;return null==t?void 0:t._automaticInsights}))&&e.use((0,s.k)({$$internal:!0,$$automatic:!0}))}
2))}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null===(e=this.mainHelper)||void 0===e||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach((function(e){e.instance.unsubscribe()}))}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout((function(){e.status="stalled",e.scheduleRender()}),this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.mainHelper)throw new Error(P("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var i="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&r?this.onStateChange({uiState:i,setUiState:function(e){(0,g._)("function"==typeof e?e(i):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):((0,g._)(i,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw new Error(P("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(P("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}],r&&x(t.prototype,r),i&&x(t,i),Object.defineProperty(t,"prototype",{writable:!1}),v}(i):null;const R="contactslistv2/contactslistv2"==r.j?O:null},4519:(e,t,r)=>{function i(e,t,r){var i=t.getHelper();return{uiState:r,helper:i,parent:t,instantSearchInstance:e,state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function n(e,t,r){var i=t.getResultsForWidget(r),n=t.getHelper();return{helper:n,parent:t,instantSearchInstance:e,results:i,scopedResults:t.getScopedResults(),state:i&&"_state"in i?i._state:n.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}r.d(t,{A:()=>n,e:()=>i})},5254:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}:null},5375:(e,t,r)=>{function i(){return{send:function(e){return new Promise((t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));let i,n=(e,i)=>setTimeout((()=>{r.abort(),t({status:0,content:i,isTimedOut:!0})}),e),s=n(e.connectTimeout,"Connection timeout");r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===i&&(clearTimeout(s),i=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(s),clearTimeout(i),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(s),clearTimeout(i),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}}}r.d(t,{D:()=>i})},5599:(e,t,r)=>{r.d(t,{U:()=>m,h:()=>y});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(88599);if("searchresults/searchresults"==r.j)var s=r(89976);if("searchresults/searchresults"==r.j)var o=r(16645);if("searchresults/searchresults"==r.j)var a=r(53265);if("searchresults/searchresults"==r.j)var l=r(23105);if("searchresults/searchresults"==r.j)var c=r(68481);if("searchresults/searchresults"==r.j)var u=r(91097);if("searchresults/searchresults"==r.j)var h=r(47737);if("searchresults/searchresults"==r.j)var d=r(67659);if("searchresults/searchresults"==r.j)var p=r(62174);if("searchresults/searchresults"==r.j)var f=r(70111);function m(e,t){return(0,c.Y)("useSuspenseQuery",g,(0,f.m)("object"==typeof t?t.client:void 0))(e,t??{})}function g(e,t){const r=(0,f.m)(t.client),o=(0,s.B)(r),a=y({client:r,query:e,options:t}),{fetchPolicy:l}=a,c=(0,u.u)(e,t),d=o.getQueryRef(c,(()=>r.watchQuery(a)));let[p,m]=i.useState([d.key,d.promise]);p[0]!==d.key&&(p[0]=d.key,p[1]=d.promise);let g=p[1];d.didChangeOptions(a)&&(p[1]=g=d.applyOptions(a)),i.useEffect((()=>{const e=d.retain(),t=d.listen((e=>{m([d.key,e])}));return()=>{t(),e()}}),[d]);const v=i.useMemo((()=>{const e=d.result.error,t=!!d.result.data;return{loading:!1,data:d.result.data,dataState:d.result.dataState,networkStatus:e?n.p.error:n.p.ready,error:e,complete:t,partial:!t}}),[d.result]),_="standby"===l?v:(0,h.y)(g),b=i.useCallback((e=>{const t=d.fetchMore(e);return m([d.key,d.promise]),t}),[d]),x=i.useCallback((e=>{const t=d.refetch(e);return m([d.key,d.promise]),t}),[d]),w=d.observable.subscribeToMore;return i.useMemo((()=>({client:r,data:_.data,dataState:_.dataState,error:_.error,networkStatus:_.networkStatus,fetchMore:b,refetch:x,subscribeToMore:w})),[r,b,x,_,w])}function y({client:e,query:t,options:r}){return(0,d.k)((()=>
2{if(r===l.h)return{query:t,fetchPolicy:"standby",[a._K]:!0};const i=r.fetchPolicy||e.defaultOptions.watchQuery?.fetchPolicy||"cache-first",n={...r,fetchPolicy:i,query:t,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0};return o.g&&(0,p.g)(n),r.skip&&(n.fetchPolicy="standby"),n}),[e,r,t])}},6174:(e,t,r)=>{function i(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>i})},6637:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={getRandomNumber:function(e){void 0===e&&(e=16);return"x".repeat(e).replace(/x/g,(function(){return Math.round(16*Math.random()).toString(16)}))},makeElFocusable:function(e){return e.attr("tabIndex","0"),e},makeElNotFocusable:function(e){return e.attr("tabIndex","-1"),e},addElRole:function(e,t){return e.attr("role",t),e},addElRoleDescription:function(e,t){return e.attr("aria-roledescription",t),e},addElControls:function(e,t){return e.attr("aria-controls",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},addElId:function(e,t){return e.attr("id",t),e},addElLive:function(e,t){return e.attr("aria-live",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterOrSpaceKey:function(e){if(13===e.keyCode||32===e.keyCode){var t=this,r=t.params.a11y,s=(0,i.A)(e.target);t.navigation&&t.navigation.$nextEl&&s.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(r.lastSlideMessage):t.a11y.notify(r.
2nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&s.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(r.firstSlideMessage):t.a11y.notify(r.prevSlideMessage)),t.pagination&&s.is((0,n.fq)(t.params.pagination.bulletClass))&&s[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop&&e.navigation){var t=e.navigation,r=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(e.isBeginning?(e.a11y.disableEl(i),e.a11y.makeElNotFocusable(i)):(e.a11y.enableEl(i),e.a11y.makeElFocusable(i))),r&&r.length>0&&(e.isEnd?(e.a11y.disableEl(r),e.a11y.makeElNotFocusable(r)):(e.a11y.enableEl(r),e.a11y.makeElFocusable(r)))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(r){var n=(0,i.A)(r);e.a11y.makeElFocusable(n),e.params.pagination.renderBullet||(e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,n.index()+1)))}))},init:function(){var e=this,t=e.params.a11y;e.$el.append(e.a11y.liveRegion);var r=e.$el;t.containerRoleDescriptionMessage&&e.a11y.addElRoleDescription(r,t.containerRoleDescriptionMessage),t.containerMessage&&e.a11y.addElLabel(r,t.containerMessage);var s=e.$wrapperEl,o=s.attr("id")||"swiper-wrapper-"+e.a11y.getRandomNumber(16),a=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";e.a11y.addElId(s,o),e.a11y.addElLive(s,a),t.itemRoleDescriptionMessage&&e.a11y.addElRoleDescription((0,i.A)(e.slides),t.itemRoleDescriptionMessage),e.a11y.addElRole((0,i.A)(e.slides),t.slideRole);var l,c,u=e.params.loop?e.slides.filter((function(t){return!t.classList.contains(e.params.slideDuplicateClass)})).length:e.slides.length;e.slides.each((function(r,n){var s=(0,i.A)(r),o=e.params.loop?parseInt(s.attr("data-swiper-slide-index"),10):n,a=t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,u);e.a11y.addElLabel(s,a)})),e.navigation&&e.navigation.$nextEl&&(l=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(c=e.navigation.$prevEl),l&&l.length&&(e.a11y.makeElFocusable(l),"BUTTON"!==l[0].tagName&&(e.a11y.addElRole(l,"button"),l.on("keydown",e.a11y.onEnterOrSpaceKey)),e.a11y.addElLabel(l,t.nextSlideMessage),e.a11y.addElControls(l,o)),c&&c.length&&(e.a11y.makeElFocusable(c),"BUTTON"!==c[0].tagName&&(e.a11y.addElRole(c,"button"),c.on("keydown",e.a11y.onEnterOrSpaceKey)),e.a11y.addElLabel(c,t.prevSlideMessage),e.a11y.addElControls(c,o)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",(0,n.fq)(e.params.pagination.bulletClass),e.a11y.onEnterOrSpaceKey)},destroy:function(){var e,t,r=this;r.a11y.liveRegion&&r.a11y.liveRegion.length>0&&r.a11y.liveRegion.remove(),r.navigation&&r.navigation.$nextEl&&(e=r.navigation.$nextEl),r.navigation&&r.navigation.$prevEl&&(t=r.navigation.$prevEl),e&&e.off("keydown",r.a11y.onEnterOrSpaceKey),t&&t.off("keydown",r.a11y.onEnterOrSpaceKey),r.pagination&&r.params.pagination.clickable&&r.pagination.bullets&&r.pagination.bullets.length&&r.pagination.$el.off("keydown",(0,n.fq)(r.params.pagination.bulletClass),r.a11y.onEnterOrSpaceKey)}};const a={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}},create:function(){(0,n.wD)(this,{a11y:s({},o,{liveRegion:(0,i.A)('<span class="'+this.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{afterInit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(e){e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(e){e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}}},6741:(e,t,r)=>{r.d(t,{l:()=>o});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(70775);const s=Symbol.for("__APOLLO_CONTEXT__");function o(){(0,n.V1)(!0,37);let e=i.createContext[s];return e||(Object.defineProperty(i.createContext,s,{value:e=i.createContext({}
2),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},6839:(e,t,r)=>{r.d(t,{DX:()=>h,NS:()=>j,yN:()=>B,LV:()=>N});var i=r(32453),n=r(37783);let s=null;const o={};let a=1;function l(e){try{return e()}catch(e){}}const c="@wry/context:Slot",u=l((()=>globalThis))||l((()=>global))||Object.create(null),h=u[c]||Array[c]||function(e){try{Object.defineProperty(u,c,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",a++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=s;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===o)break;return e!==s&&(s.slots[this.id]=t),!0}return s&&(s.slots[this.id]=o),!1}getValue(){if(this.hasValue())return s.slots[this.id]}withValue(e,t,r,i){const n={__proto__:null,[this.id]:e},o=s;s={parent:o,slots:n};try{return t.apply(i,r)}finally{s=o}}static bind(e){const t=s;return function(){const r=s;try{return s=t,e.apply(this,arguments)}finally{s=r}}}static noContext(e,t,r){if(!s)return e.apply(r,t);{const i=s;try{return s=null,e.apply(r,t)}finally{s=i}}}}),{bind:d,noContext:p}=h;const f=new h;const{hasOwnProperty:m}=Object.prototype,g=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function y(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const v=[];function _(e,t){if(!e)throw new Error(t||"assertion failure")}function b(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function x(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function w(e){return e.slice(0)}class A{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++A.count}peek(){if(1===this.value.length&&!T(this))return E(this),this.value[0]}recompute(e){return _(!this.recomputing,"already recomputing"),E(this),T(this)?function(e,t){R(e),f.withValue(e,S,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{y(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,T(e))return;I(e)}(e);return x(e.value)}(this,e):x(this.value)}setDirty(){this.dirty||(this.dirty=!0,C(this),y(this))}dispose(){this.setDirty(),R(this),P(this,((e,t)=>{e.setDirty(),D(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=v.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(g(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),v.push(this.deps),this.deps=null)}}function E(e){const t=f.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),T(e)?M(t,e):k(t,e),t}function S(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let i;r&&1===e.value.length&&(i=w(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&i&&!b(i,e.value))try{e.value[0]=r(e.value[0],i[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function T(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function C(e){P(e,M)}function I(e){P(e,k)}function P(e,t){const r=e.parents.size;if(r){const i=g(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function M(e,t){_(e.childValues.has(t)),_(T(t));const r=!T(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=v.pop()||new Set;e.dirtyChildren.add(t),r&&C(e)}function k(e,t){_(e.childValues.has(t)),_(!T(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,w(t.value)):b(r,t.value)||e.setDirty(),O(e,t),T(e)||I(e)}function O(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(v.length<100&&v.push(r),e.dirtyChildren=null))}function R(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{D(e,r)})),e.forgetDeps(),_(null===e.dirtyChildren)}function D(e,t){t.parents.delete(e),e.childValues.delete(t),O(e,t)}A.count=0;const L={setDirty:!0,dispose:!0,forget:!0};function B(e){const t=new Map,r=e&&e.subscribe;function i(e){const i=f.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(y(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){const i=t.get(e);if(i){const n=r&&m.call(L,r)?r:"setDirty";
2g(i).forEach((e=>e[n]())),t.delete(e),y(i)}},i}let z;function j(...e){return(z||(z=new i.b("function"==typeof WeakMap))).lookupArray(e)}const F=new Set;function N(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:i=j,normalizeResult:s,subscribe:o,cache:a=n.C}=Object.create(null)){const l="function"==typeof a?new a(t,(e=>e.dispose())):a,c=function(){const t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let n=l.get(t);n||(l.set(t,n=new A(e)),n.normalizeResult=s,n.subscribe=o,n.forget=()=>l.delete(t));const a=n.recompute(Array.prototype.slice.call(arguments));return l.set(t,n),F.add(l),f.hasValue()||(F.forEach((e=>e.clean())),F.clear()),a};function u(e){const t=e&&l.get(e);t&&t.setDirty()}function h(e){const t=e&&l.get(e);if(t)return t.peek()}function d(e){return!!e&&l.delete(e)}return Object.defineProperty(c,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:s,subscribe:o,cache:l}),c.dirtyKey=u,c.dirty=function(){u(i.apply(null,arguments))},c.peekKey=h,c.peek=function(){return h(i.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(i.apply(null,arguments))},c.makeCacheKey=i,c.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(c)}},6986:(e,t,r)=>{function i(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}r.d(t,{A:()=>i})},7008:(e,t,r)=>{if(r.d(t,{Y:()=>s,l:()=>o}),"vendors"!=r.j)var i=r(94384);var n=null;function s(e){if(i.$.useDeprecatedSynchronousErrorHandling){var t=!n;if(t&&(n={errorThrown:!1,error:null}),e(),t){var r=n,s=r.errorThrown,o=r.error;if(n=null,s)throw o}}else e()}function o(e){i.$.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}},7104:(e,t,r)=>{function i(e){if(function(e){return"status"in e}(e))return e;const t=e;return t.status="pending",t.then((e=>{if("pending"===t.status){const r=t;r.status="fulfilled",r.value=e}}),(e=>{if("pending"===t.status){const r=t;r.status="rejected",r.reason=e}})),e}r.d(t,{b:()=>i})},7901:(e,t,r)=>{if(r.d(t,{u:()=>s}),"contactslistv2/contactslistv2"==r.j)var i=r(58467);if("contactslistv2/contactslistv2"==r.j)var n=r(66860);function s(e,t){return(0,n.Z)(i.A,e,t)}},8104:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){return null==e?void 0:e[t]}:null},8438:(e,t,r)=>{if(r.d(t,{C:()=>s,U:()=>o}),"vendors"!=r.j)var i=r(31635);if("vendors"!=r.j)var n=r(61209);function s(e){return(0,i.__asyncGenerator)(this,arguments,(function(){var t,r,n;return(0,i.__generator)(this,(function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,i.__await)(t.read())];case 3:return r=s.sent(),n=r.value,r.done?[4,(0,i.__await)(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,(0,i.__await)(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}
2))}))}function o(e){return(0,n.T)(null==e?void 0:e.getReader)}},8823:(e,t,r)=>{if(r.d(t,{A:()=>a}),"app"==r.j)var i=r(23149);if("app"==r.j)var n=r(97271);if("app"==r.j)var s=r(81493);var o=Object.prototype.hasOwnProperty;const a="app"==r.j?function(e){if(!(0,i.A)(e))return(0,s.A)(e);var t=(0,n.A)(e),r=[];for(var a in e)("constructor"!=a||!t&&o.call(e,a))&&r.push(a);return r}:null},8919:(e,t,r)=>{if(r.d(t,{k:()=>s}),"vendors"!=r.j)var i=r(82920);if("vendors"!=r.j)var n=r(66938);function s(e,{client:t}){const r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,i.n)(e.query),operationType:(0,n.V)(e.query).operation};let s={...e.context};const o=()=>Object.freeze({...s});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{s="function"==typeof e?{...s,...e(o())}:{...s,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:o}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}},9162:(e,t,r)=>{function i(e,t){const r=[],i=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}i("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}i("extensions",e)}let n="",s=e;const o=e.indexOf("#");-1!==o&&(n=e.substr(o),s=e.substr(0,o));const a=-1===s.indexOf("?")?"?":"&";return{newURI:s+a+r.join("&")+n}}r.d(t,{E:()=>i})},9211:(e,t,r)=>{if(r.d(t,{$b:()=>l,K$:()=>o,uR:()=>a}),"vendors"!=r.j)var i=r(62335);if("vendors"!=r.j)var n=r(21526);if("vendors"!=r.j)var s=r(20478);const o=Symbol();function a(e){return"extensions"in e&&i.d.is(e.extensions[o])}function l(e){return(0,n.u)(e)?e:"string"==typeof e?new Error(e,{cause:e}):new s.e(e)}},9417:(e,t,r)=>{function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>i})},9886:(e,t,r)=>{function i(e){return Object.prototype.toString.call(e).slice(8,-1)}r.d(t,{K:()=>i})},9887:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(17275);const n=r(20014).A.hasStandardBrowserEnv?{write(e,t,r,n,s,o){const a=[e+"="+encodeURIComponent(t)];i.A.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),i.A.isString(n)&&a.push("path="+n),i.A.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},10169:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(66984);const n="app"==r.j?function(e,t){for(var r=e.length;r--;)if((0,i.A)(e[r][0],t))return r;return-1}:null},10435:(e,t,r)=>{r.d(t,{j:()=>n,r:()=>i});const i="4.1.6",n="esm"}
2,10572:(e,t,r)=>{if(r.d(t,{Y:()=>l,n:()=>a}),"contactslistv2/contactslistv2"==r.j)var i=r(4519);if("contactslistv2/contactslistv2"==r.j)var n=r(56199);if("contactslistv2/contactslistv2"==r.j)var s=r(32405);function o(e,t,r){var n=(0,i.e)(t,t.mainIndex,t._initialUiState);e.forEach((function(e){var i={};if(e.getWidgetRenderState){var s=e.getWidgetRenderState(n);s&&s.widgetParams&&(i=s.widgetParams)}var a=Object.keys(i).filter((function(e){return void 0!==i[e]}));r.widgets.push({type:e.$$type,widgetType:e.$$widgetType,params:a}),"ais.index"===e.$$type&&o(e.getWidgets(),t,r)}))}function a(){return(0,n.x)((function(e){var t,r;return(null===(t=e.window.navigator)||void 0===t||null===(r=t.userAgent)||void 0===r?void 0:r.indexOf("Algolia Crawler"))>-1}),{fallback:function(){return!1}})}function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).$$internal,t=void 0!==e&&e;return function(e){var r=e.instantSearchInstance,i={widgets:[]},n=document.createElement("meta"),a=document.querySelector("head");return n.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:t,onStateChange:function(){},subscribe:function(){setTimeout((function(){i.ua=(0,s.F)(r.client),o(r.mainIndex.getWidgets(),r,i),r.middleware.forEach((function(e){return i.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})})),n.content=JSON.stringify(i),a.appendChild(n)}),0)},started:function(){},unsubscribe:function(){n.remove()}}}}},10793:(e,t,r)=>{function i(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>i})},10807:(e,t,r)=>{r.d(t,{A:()=>i});const i={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},11327:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{j:()=>s});var n=Object.prototype.hasOwnProperty;function s(e,t,r){if(null!=r&&r(e,t))return!0;var o,a;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((a=e.length)===t.length)for(;a--&&s(e[a],t[a],r););return-1===a}if(!o||"object"===i(e)){for(o in a=0,e){if(n.call(e,o)&&++a&&!n.call(t,o))return!1;if(!(o in t)||!s(e[o],t[o],r))return!1}return Object.keys(t).length===a}}return e!=e&&t!=t}},11367:(e,t,r)=>{r.d(t,{Ln:()=>h,Qd:()=>d,TX:()=>l,Zv:()=>i,kc:()=>n,py:()=>o,yU:()=>s});const i=e=>e.toUpperCase(),n=e=>"function"==typeof e?e():e,s=(e,t)=>e.map(((e,r)=>[e,t[r]])),o=e=>{let t={};return e instanceof Headers?t=a(e):Array.isArray(e)?e.forEach((([e,r])=>{e&&void 0!==r&&(t[e]=r)})):e&&(t=e),t},a=e=>{const t={};return e.forEach(((e,r)=>{t[r]=e})),t},l=e=>{try{const t=e();return u(t)?t.catch((e=>c(e))):t}catch(e){return c(e)}},c=e=>e instanceof Error?e:new Error(String(e)),u=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then&&"catch"in e&&"function"==typeof e.catch&&"finally"in e&&"function"==typeof e.finally,h=e=>{throw new Error(`Unhandled case: ${String(e)}`)},d=e=>"object"==typeof e&&null!==e&&!Array.isArray(e)},11437:(e,t,r)=>{r.d(t,{a:()=>h});var i=r(15381);if("vendors"!=r.j)var n=r(15590);if("vendors"!=r.j)var s=r(78812);if("vendors"!=r.j)var o=r(40);if("vendors"!=r.j)var a=r(65016);if("vendors"!=r.j)var l=r(38016);if("vendors"!=r.j)var c=r(61927);if("vendors"!=r.j)var u=r(63577);function h(e,{data:t,...r},{data:o,...l},c){return(0,i.L)(r,l)&&d((0,a.V)(e).selectionSet,t,o,{fragmentMap:(0,n.J)((0,s.z)(e)),variables:c})}function d(e,t,r,n){if(t===r)return!0;const s=new Set;return e.selections.every((e=>{if(s.has(e))return!0;if(s.add(e),!(0,u.M)(e,n.variables))return!0;if(p(e))return!0;if((0,l.d)(e)){const s=(0,c.u)(e),o=t&&t[s],a=r&&r[s],l=e.selectionSet;if(!l)return(0,i.L)(o,a);const u=Array.isArray(o),h=Array.isArray(a);if(u!==h)return!1;if(u&&h){const e=o.length;if(a.length!==e)return!1;for(let t=0;t<e;++t)if(!d(l,o[t],a[t],n))return!1;return!0}return d(l,o,a,n)}{const i=(0,o.H)(e,n.fragmentMap);if(i)return!!p(i)||d(i.selectionSet,t,r,n)}}))}function p(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},11567:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(51648),n=r(33261),s=r(65520);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(this,arguments)}var a={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,r=e.rtlTranslate,i=e.progress,n=t.dragSize,s=t.trackSize,o=t.$dragEl,a=t.$el,l=e.params.scrollbar,c=n,u=(s-n)*i;r?(u=-u)>0?(c=n-u,u=0):-u+n>s&&(c=s+u):u<0?(c=n+u,u=0):u+n>s&&(c=s-u),e.isHorizontal()?(o.transform("translate3d("+u+"px, 0, 0)"),o[0].style.width=c+"px"):(o.transform("translate3d(0px, "+u+"px, 0)"),o[0].style.height=c+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),a[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){a[0].style.opacity=0,a.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,r=t.$dragEl,i=t.$el;r[0].style.width="",r[0].style.height="";var n,o=e.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,a=e.size/e.virtualSize,l=a*(o/e.size);n="auto"===e.params.scrollbar.dragSize?o*a:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?r[0].style.width=n+"px":r[0].style.height=n+"px",i[0].style.display=a>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),(0,s.X$)(t,{trackSize:o,divider:a,moveDivider:l,dragSize:n}),e.params.watchOverflow&&e.enabled&&t.$el[e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,r=this,i=r.scrollbar,n=r.rtlTranslate,s=i.$el,o=i.dragSize,a=i.trackSize,l=i.dragStartPos;t=(i.getPointerPosition(e)-s.offset()[r.isHorizontal()?"left":"top"]-(null!==l?l:o/2))/(a-o),t=Math.max(Math.min(t,1),0),n&&(t=1-t);var c=r.minTranslate()+(r.maxTranslate()-r.minTranslate())*t;r.updateProgress(c),r.setTranslate(c),r.updateActiveIndex(),r.updateSlidesClasses()}
vendor: 4,033 bytes, line 2
2,onDragStart:function(e){var t=this,r=t.params.scrollbar,i=t.scrollbar,n=t.$wrapperEl,s=i.$el,o=i.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===o[0]||e.target===o?i.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),n.transition(100),o.transition(100),i.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),s.transition(0),r.hide&&s.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,r=t.scrollbar,i=t.$wrapperEl,n=r.$el,s=r.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,r.setDragPosition(e),i.transition(0),n.transition(0),s.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,r=t.params.scrollbar,i=t.scrollbar,n=t.$wrapperEl,o=i.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),n.transition("")),r.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=(0,s.dY)((function(){o.css("opacity",0),o.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),r.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=(0,i.YE)(),r=e.scrollbar,n=e.touchEventsTouch,s=e.touchEventsDesktop,o=e.params,a=e.support,l=r.$el[0],c=!(!a.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},u=!(!a.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};l&&(a.touch?(l.addEventListener(n.start,e.scrollbar.onDragStart,c),l.addEventListener(n.move,e.scrollbar.onDragMove,c),l.addEventListener(n.end,e.scrollbar.onDragEnd,u)):(l.addEventListener(s.start,e.scrollbar.onDragStart,c),t.addEventListener(s.move,e.scrollbar.onDragMove,c),t.addEventListener(s.end,e.scrollbar.onDragEnd,u)))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=(0,i.YE)(),r=e.scrollbar,n=e.touchEventsTouch,s=e.touchEventsDesktop,o=e.params,a=e.support,l=r.$el[0],c=!(!a.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},u=!(!a.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};l&&(a.touch?(l.removeEventListener(n.start,e.scrollbar.onDragStart,c),l.removeEventListener(n.move,e.scrollbar.onDragMove,c),l.removeEventListener(n.end,e.scrollbar.onDragEnd,u)):(l.removeEventListener(s.start,e.scrollbar.onDragStart,c),t.removeEventListener(s.move,e.scrollbar.onDragMove,c),t.removeEventListener(s.end,e.scrollbar.onDragEnd,u)))}},init:function(){var e=this,t=e.scrollbar,r=e.$el;e.params.scrollbar=(0,s.IY)(r,e.params.scrollbar,e.params.createElements,{el:"swiper-scrollbar"});var i=e.params.scrollbar;if(i.el){var o=(0,n.A)(i.el);e.params.uniqueNavElements&&"string"==typeof i.el&&o.length>1&&1===r.find(i.el).length&&(o=r.find(i.el));var a=o.find("."+e.params.scrollbar.dragClass);0===a.length&&(a=(0,n.A)('<div class="'+e.params.scrollbar.dragClass+'"></div>'),o.append(a)),(0,s.X$)(t,{$el:o,el:o[0],$dragEl:a,dragEl:a[0]}),i.draggable&&t.enableDraggable(),o&&o[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)}},destroy:function(){this.scrollbar.disableDraggable()}};const l={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){(0,s.wD)(this,{scrollbar:o({isTouched:!1,timeout:null,dragTimeout:null},a)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(e){e.scrollbar.updateSize()},resize:function(e){e.scrollbar.updateSize()},observerUpdate:function(e){e.scrollbar.updateSize()},setTranslate:function(e){e.scrollbar.setTranslate()},setTransition:function(e,t){e.scrollbar.setTransition(t)},"enable disable":function(e){var t=e.scrollbar.$el;t&&t[e.enabled?"removeClass":"addClass"](e.params.scrollbar.lockClass)},destroy:function(e){e.scrollbar.destroy()}}}},11744:(e,t,r)=>{function i(){}r.d(t,{l:()=>l});
2const n="vendors"!=r.j?i:null,s="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}};class l{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new s(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},11978:(e,t,r)=>{r.r(t),r.d(t,{Node:()=>ie,Parser:()=>N,Position:()=>D,SourceLocation:()=>L,TokContext:()=>oe,Token:()=>Pe,TokenType:()=>g,defaultOptions:()=>z,getLineInfo:()=>B,isIdentifierChar:()=>m,isIdentifierStart:()=>f,isNewLine:()=>S,keywordTypes:()=>b,lineBreak:()=>A,lineBreakG:()=>E,nonASCIIwhitespace:()=>T,parse:()=>Le,parseExpressionAt:()=>Be,tokContexts:()=>ae,tokTypes:()=>w,tokenizer:()=>ze,version:()=>De});var i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},n="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:n,"5module":n+" export import",6:n+" const class extends export import super"},o=/^in(stanceof)?$/,a="ªµºÃ-ÃÃ-öø-ËË-ËË -ˤˬˮͰ-ʹͶͷͺ-ͽͿÎÎ-ÎÎÎ-ΡΣ-ϵϷ-ÒÒ-Ô¯Ô±-ÕÕÕ -Ö×-תׯ-×²Ø -Ùٮٯٱ-ÛÛÛ¥Û¦Û®Û¯Ûº-Û¼Û¿ÜÜ-ܯÝ-Þ¥Þ±ß-ߪߴߵߺà -à à à ¤à ¨à¡-à¡à¡ -ࡪࢠ-ࢴࢶ-à£à¤-हऽà¥à¥-ॡॱ-à¦à¦
-à¦à¦à¦à¦-নপ-রলশ-হঽà§à§à§à§-ৡৰৱৼà¨
-à¨à¨à¨à¨-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹà©-à©à©à©²-à©´àª
-àªàª-àªàª-નપ-રલળવ-હઽà«à« ૡૹà¬
-à¬à¬à¬à¬-ନପ-ରଲଳଵ-ହଽààà-à¡à±à®à®
-à®à®-à®à®-à®à®à®à®à®à®à®£à®¤à®¨-பம-ஹà¯à°
-à°à°-à°à°-నప-హఽà±-à±à± ౡà²à²
-à²à²-à²à²-ನಪ-ಳವ-ಹಽà³à³ ೡೱೲà´-à´à´-à´à´-ഺഽàµàµ-àµàµ-ൡൺ-ൿà¶
-à¶à¶-නඳ-රලà·-à·à¸-ะาำà¹-à¹àºàºàºàº-àºàº-ຣລວ-ະາຳຽà»-à»à»à»-à»à¼à½-à½à½-ཬà¾-à¾á-áªá¿á-áá-áá¡á¥á¦á®-á°áµ-ááá -á
ááá-áºá¼-áá-áá-ááá-áá -áá-áá-á°á²-áµá¸-á¾áá-á
á-áá-áá-áá-áá-áá -áµá¸-á½á-á¬á¯-á¿á-áá -áªá®-á¸á-áá-áá -á±á-áá -á¬á®-á°á-á³ááá -ᡸá¢-ᢨᢪᢰ-ᣵá¤-á¤á¥-á¥á¥°-ᥴá¦-ᦫᦰ-á§á¨-á¨á¨ -á©áª§á¬
-ᬳá
-áá®-ᮠᮮᮯᮺ-ᯥá°-á°£á±-á±á±-á±½á²-á²á²-ᲺᲽ-Ჿᳩ-ᳬá
2³®-ᳳᳵᳶᳺá´-á¶¿á¸-á¼á¼-á¼á¼ -á½
á½-á½á½-á½á½á½á½á½-á½½á¾-á¾´á¾¶-ᾼιá¿-á¿á¿-á¿á¿-á¿á¿-á¿á¿ -Ῥῲ-á¿´á¿¶-ῼâ±â¿â-ââââ-âââ-ââ¤â¦â¨âª-â¹â¼-â¿â
-â
â
â
-ââ°-Ⱞⰰ-â±â± -ⳤⳫ-ⳮⳲⳳâ´-ⴥⴧâ´â´°-ⵧⵯâ¶-â¶â¶ -ⶦⶨ-ⶮⶰ-ⶶⶸ-â¶¾â·-â·â·-â·â·-â·â·-â·ã
-ãã¡-ã©ã±-ãµã¸-ã¼ã-ãã-ãã¡-ãºã¼-ã¿ã
-ã¯ã±-ãã -ã¿ã°-ã¿ã-ä¶¿ä¸-鿼ê-êê-ê½ê-êê-êêªê«ê-ê®ê¿-êê -ê¯ê-êê¢-êê-ê¿ê-êêµ-ê ê -ê
ê -ê ê -ê ¢ê¡-ꡳê¢-ꢳꣲ-ꣷꣻꣽꣾê¤-ꤥꤰ-ê¥ê¥ -ꥼê¦-ꦲê§ê§ -ꧤꧦ-ꧯꧺ-ê§¾ê¨-ꨨê©-ê©ê©-ê©ê© -ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽê«ê«ê«-ê«ê« -ꫪꫲ-ê«´ê¬-ê¬ê¬-ê¬ê¬-ê¬ê¬ -ꬦꬨ-ꬮꬰ-êê-ê©ê°-ꯢê°-í£í°-íí-í»ï¤-ï©ï©°-ï«ï¬-ï¬ï¬-ï¬ï¬ï¬-ﬨשׁ-זּטּ-לּמּïïïïï-ï®±ï¯-ï´½ïµ-ï¶ï¶-ï·ï·°-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½-ï½ï½¦-ï¾¾ï¿-ï¿ï¿-ï¿ï¿-ï¿ï¿-ï¿",l="ââ·Ì-ͯÎÒ-ÒÖ-Ö½Ö¿××××
ר-ØÙ-٩ٰÛ-ÛÛ-Û¤Û§Û¨Ûª-ÛÛ°-Û¹Üܰ-ÝÞ¦-Þ°ß-ßß«-߽߳à -à à -à £à ¥-à §à ©-à à¡-à¡à£-ࣣ࣡-à¤à¤º-़ा-à¥à¥-à¥à¥¢à¥£à¥¦-९à¦-à¦à¦¼à¦¾-à§à§à§à§-à§à§à§¢à§£à§¦-৯৾à¨-à¨à¨¼à¨¾-à©à©à©à©-à©à©à©¦-ੱੵàª-àªàª¼àª¾-à«
à«-à«à«-à«à«¢à«£à«¦-૯ૺ-à«¿à¬-à¬à¬¼à¬¾-àààà-àà-àà¢à£à¦-à¯à®à®¾-à¯à¯-à¯à¯-à¯à¯à¯¦-௯à°-à°à°¾-à±à±-à±à±-à±à±à±à±¢à±£à±¦-౯à²-à²à²¼à²¾-à³à³-à³à³-à³à³à³à³¢à³£à³¦-೯à´-à´à´»à´¼à´¾-àµàµ-àµàµ-àµàµàµ¢àµ£àµ¦-൯à¶-à¶à·à·-à·à·à·-à·à·¦-෯ෲෳัิ-ฺà¹-à¹à¹-à¹àº±àº´-ຼà»-à»à»-à»à¼à¼à¼ -༩༹༵༷༾༿ཱ-à¾à¾à¾à¾-à¾à¾-ྼà¿á«-á¾á-áá-áá-á á¢-á¤á§-áá±-á´á-áá-áá-áá©-á±á-áá²-á´ááá²á³á´-ááá -á©á -á á -á ᢩᤠ-ᤫᤰ-᤻á¥-á¥á§-á§á¨-á¨á©-á©á© -᩿᩼-áªáª-áªáª°-᪽ᪿá«á¬-á¬á¬´-áá-áá«-á³á®-á®á®¡-á®á®°-᮹᯦-᯳ᰤ-á°·á±-á±á±-á±á³-á³á³-᳨á³á³´á³·-á³¹á·-᷹᷻-á·¿â¿âââ-ââ¡â¥-â°â³¯-⵿⳱ⷠ-â·¿ãª-ã¯ããê -ê©ê¯ê´-ê½êêê°ê±ê ê ê ê £-ê §ê ¬ê¢ê¢ê¢´-ê£
ê£-ê£ê£ -꣱ꣿ-ê¤ê¤¦-ê¤ê¥-ê¥ê¦-ê¦ê¦³-ê§ê§-ê§ê§¥ê§°-꧹ꨩ-ꨶê©ê©ê©ê©-ê©ê©»-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿ê«ê««-ꫯꫵ꫶ꯣ-ꯪ꯬ê¯ê¯°-꯹ï¬ï¸-ï¸ï¸ -︯︳︴ï¹-ï¹ï¼-ï¼ï¼¿",c=new RegExp("["+a+"]"),u=new RegExp("["+a+l+"]");a=l=null;var h=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],d=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var r=65536,i=0;i<t.length;i+=2){if((r+=t[i])>e)return!1;if((r+=t[i+1])>=e)return!0}}function f(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,h)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&(p(e,h)||p(e,d)))))}var g=function(e,t){void 0===t&&(t={}
2),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},_={startsExpr:!0},b={};function x(e,t){return void 0===t&&(t={}),t.keyword=e,b[e]=new g(e,t)}var w={num:new g("num",_),regexp:new g("regexp",_),string:new g("string",_),name:new g("name",_),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),questionDot:new g("?."),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",_),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("</>/<=/>=",7),bitShift:y("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:y("??",1),_break:x("break"),_case:x("case",v),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",v),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",v),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",_),_if:x("if"),_return:x("return",v),_switch:x("switch"),_throw:x("throw",v),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",_),_super:x("super",_),_class:x("class",_),_extends:x("extends",v),_export:x("export"),_import:x("import",_),_null:x("null",_),_true:x("true",_),_false:x("false",_),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(A.source,"g");function S(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var T=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,I=Object.prototype,P=I.hasOwnProperty,M=I.toString;function k(e,t){return P.call(e,t)}var O=Array.isArray||function(e){return"[object Array]"===M.call(e)};function R(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var D=function(e,t){this.line=e,this.column=t};D.prototype.offset=function(e){return new D(this.line,this.column+e)};var L=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function B(e,t){for(var r=1,i=0;;){E.lastIndex=i;var n=E.exec(e);if(!(n&&n.index<t))return new D(r,t-i);++r,i=n.index+n[0].length}}var z={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function j(e){var t={};for(var r in z)t[r]=e&&k(e,r)?e[r]:z[r];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),O(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}return O(t.onComment)&&(t.onComment=function(e,t){return function(r,i,n,s,o,a){var l={type:r?"Block":"Line",value:i,start:n,end:s};e.locations&&(l.loc=new L(this,o,a)),e.ranges&&(l.range=[n,s]),t.push(l)}}(t,t.onComment)),t}function F(e,t){return 2|(e?4:0)|(t?8:0)}var N=function(e,t,r){this.options=e=j(e),this.sourceFile=e.sourceFile,this.keywords=R(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";if(!0!==e.allowReserved){for(var o=e.ecmaVersion;!(n=i[o]);o--);"module"===e.sourceType&&(n+=" await")}this.reservedWords=R(n);var a=(n?n+" ":"")+i.strict;this.reservedWordsStrict=R(a),this.reservedWordsStrictBind=R(a+" "+i.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},U={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};N.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},U.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},U.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},U.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},U.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},U.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},U.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},N.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},N.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,i=0;i<e.length;i++)r=e[i](r);return r},N.parse=function(e,t){return new this(t,e).parse()},N.parseExpressionAt=function(e,t,r){var i=new this(r,e,t);return i.nextToken(),i.parseExpression()},N.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(N.prototype,U);var V=N.prototype,G=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function q(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}V.strictDirective=function(e){for(;;){C.lastIndex=e,e+=C.exec(this.input)[0].length;var t=G.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){C.lastIndex=e+t[0].length;var r=C.exec(this.input),i=r.index+r[0].length,n=this.input.charAt(i);return";"===n||"}"===n||A.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(i+1))}e+=t[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,";"===this.input[e]&&e++}},V.eat=function(e){return this.type===e&&(this.next(),!0)},V.isContextual=function(e){return this.type===w.name&&this.value===e&&!this.containsEsc},V.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},V.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},V.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},V.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},V.semicolon=function(){this.eat(w.semi)||this.insertSemicolon()||this.unexpected()}
2,V.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},V.expect=function(e){this.eat(e)||this.unexpected()},V.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},V.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},V.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},V.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},V.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var H=N.prototype;H.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==w.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var s=n[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var W={kind:"loop"},Y={kind:"switch"};H.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;C.lastIndex=this.pos;var t=C.exec(this.input),r=this.pos+t[0].length,i=this.input.charCodeAt(r);if(91===i)return!0;if(e)return!1;if(123===i)return!0;if(f(i,!0)){for(var n=r+1;m(this.input.charCodeAt(n),!0);)++n;var s=this.input.slice(r,n);if(!o.test(s))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var e=C.exec(this.input),t=this.pos+e[0].length;return!(A.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&m(this.input.charAt(t+8)))},H.parseStatement=function(e,t,r){var i,n=this.type,s=this.startNode();switch(this.isLet(e)&&(n=w._var,i="let"),n){case w._break:case w._continue:return this.parseBreakContinueStatement(s,n.keyword);case w._debugger:return this.parseDebuggerStatement(s);case w._do:return this.parseDoStatement(s);case w._for:return this.parseForStatement(s);case w._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case w._class:return e&&this.unexpected(),this.parseClass(s,!0);case w._if:return this.parseIfStatement(s);
vendor: 4,195 bytes, line 2
2case w._return:return this.parseReturnStatement(s);case w._switch:return this.parseSwitchStatement(s);case w._throw:return this.parseThrowStatement(s);case w._try:return this.parseTryStatement(s);case w._const:case w._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(s,i);case w._while:return this.parseWhileStatement(s);case w._with:return this.parseWithStatement(s);case w.braceL:return this.parseBlock(!0,s);case w.semi:return this.parseEmptyStatement(s);case w._export:case w._import:if(this.options.ecmaVersion>10&&n===w._import){C.lastIndex=this.pos;var o=C.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===w._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.value,u=this.parseExpression();return n===w.name&&"Identifier"===u.type&&this.eat(w.colon)?this.parseLabeledStatement(s,c,u,e):this.parseExpressionStatement(s,u)}},H.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(w.semi)||this.insertSemicolon()?e.label=null:this.type!==w.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var n=this.labels[i];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(r||"loop"===n.kind))break;if(e.label&&r)break}}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},H.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},H.parseDoStatement=function(e){return this.next(),this.labels.push(W),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===w._var||this.type===w._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var s=new q,o=this.parseExpression(!0,s);return this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===w._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,s),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},H.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Z|(r?0:X),!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},H.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},H.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(w.braceL),this.labels.push(Y),this.enterScope(0);for(var r=!1;this.type!==w.braceR;
2)if(this.type===w._case||this.type===w._default){var i=this.type===w._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(w.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},H.parseThrowStatement=function(e){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q=[];H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===w._catch){var t=this.startNode();if(this.next(),this.eat(w.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLVal(t.param,r?4:2),this.expect(w.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(w._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},H.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},H.parseLabeledStatement=function(e,t,r,i){for(var n=0,s=this.labels;n<s.length;n+=1){s[n].name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===w._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},H.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(w.braceL),e&&this.enterScope(0);this.type!==w.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},H.parseFor=function(e,t){return e.init=t,this.expect(w.semi),e.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),e.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},H.parseForIn=function(e,t){var r=this.type===w._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},H.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(w.eq)?i.init=this.parseMaybeAssign(t):"const"!==r||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===i.id.type||t&&(this.t
2ype===w._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(w.comma))break}return e},H.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var Z=1,X=2;H.parseFunction=function(e,t,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===w.star&&t&X&&this.unexpected(),e.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&Z&&(e.id=4&t&&this.type!==w.name?null:this.parseIdent(),!e.id||t&X||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(F(e.async,e.generator)),t&Z||(e.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&Z?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(e){this.expect(w.parenL),e.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.startNode(),n=!1;for(i.body=[],this.expect(w.braceL);this.type!==w.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(n&&this.raise(s.start,"Duplicate constructor in the same class"),n=!0))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},H.parseClassElement=function(e){var t=this;if(this.eat(w.semi))return null;var r=this.startNode(),i=function(e,i){void 0===i&&(i=!1);var n=t.start,s=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===w.parenL||i&&t.canInsertSemicolon())||(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(n,s),r.key.name=e,t.finishNode(r.key,"Identifier"),!1))};r.kind="method",r.static=i("static");var n=this.eat(w.star),s=!1;n||(this.options.ecmaVersion>=8&&i("async",!0)?(s=!0,n=this.options.ecmaVersion>=9&&this.eat(w.star)):i("get")?r.kind="get":i("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var o=r.key,a=!1;return r.computed||r.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?r.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),n&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method"),r.kind="constructor",a=e),this.parseClassMethod(r,n,s,a),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},H.parseClassMethod=function(e,t,r,i){return e.value=this.parseMethod(t,r,i),this.finishNode(e,"MethodDefinition")},H.parseClassId=function(e,t){this.type===w.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},H.parseClassSuper=function(e){e.superClass=this.eat(w._extends)?this.parseExprSubscripts():null},H.parseExport=function(e,t){if(this.next(),this.eat(w.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(w._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===w._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,4|Z,!1,r)}
2else if(this.type===w._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},H.checkExport=function(e,t,r){e&&(k(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},H.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var i=0,n=t.properties;i<n.length;i+=1){var s=n[i];this.checkPatternExport(e,s)}else if("ArrayPattern"===r)for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(e,l)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},H.checkVariableExport=function(e,t){if(e)for(var r=0,i=t;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n.id)}},H.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},H.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(r)r=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var i=this.startNode();i.local=this.parseIdent(!0),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,this.checkExport(e,i.exported.name,i.exported.start),t.push(this.finishNode(i,"ExportSpecifier"))}return t},H.parseImport=function(e){return this.next(),this.type===w.string?(e.specifiers=Q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.t
vendor: 6,473 bytes, line 2
2ype===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},H.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===w.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(w.comma))return e}if(this.type===w.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,2),e.push(this.finishNode(i,"ImportNamespaceSpecifier")),e}for(this.expect(w.braceL);!this.eat(w.braceR);){if(t)t=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;var n=this.startNode();n.imported=this.parseIdent(!0),this.eatContextual("as")?n.local=this.parseIdent():(this.checkUnreserved(n.imported),n.local=n.imported),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportSpecifier"))}return e},H.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},H.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var K=N.prototype;K.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},K.toAssignableList=function(e,t){for(var r=e.length,i=0;i<r;i++){var n=e[i];n&&this.toAssignable(n,t)}if(r){var s=e[r-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},K.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},K.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},K.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},K.parseBindingList=function(e,t,r){for(var i=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(w.comma),t&&this.type===w.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===w.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),i.push(s),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),i.push(o)}return i},K.parseBindingListItem=function(e){return e},K.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},K.checkLVal=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Identifier":2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(k(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];this.checkLVal(s,t,r)}break;case"Property":this.checkLVal(e.value,t,r);break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLVal(l,t,r)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r);break;case"RestElement":this.checkLVal(e.argument,t,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var J=N.prototype;J.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i,n=e.key;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===s&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[i="$"+i];if(o)("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(n.start,"Redefinition of property");else o=t[i]={init:!1,get:!1,set:!1};o[s]=!0}}},J.parseExpression=function(e,t){var r=this.start,i=this.startLoc,n=this.parseMaybeAssign(e,t);
2if(this.type===w.comma){var s=this.startNodeAt(r,i);for(s.expressions=[n];this.eat(w.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return n},J.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,n=-1,s=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new q,i=!0);var o=this.start,a=this.startLoc;this.type!==w.parenL&&this.type!==w.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,o,a)),this.type.isAssign){var c=this.startNodeAt(o,a);return c.operator=this.value,c.left=this.type===w.eq?this.toAssignable(l,!1,t):l,i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return i&&this.checkExpressionErrors(t,!0),n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l},J.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(w.question)){var s=this.startNodeAt(r,i);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(w.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n},J.parseExprOps=function(e,t){var r=this.start,i=this.startLoc,n=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||n.start===r&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,r,i,-1,e)},J.parseExprOp=function(e,t,r,i,n){var s=this.type.binop;if(null!=s&&(!n||this.type!==w._in)&&s>i){var o=this.type===w.logicalOR||this.type===w.logicalAND,a=this.type===w.coalesce;a&&(s=w.logicalAND.binop);var l=this.value;this.next();var c=this.start,u=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,u,s,n),d=this.buildBinary(t,r,e,h,l,o||a);return(o&&this.type===w.coalesce||a&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,r,i,n)}return e},J.buildBinary=function(e,t,r,i,n,s){var o=this.startNodeAt(e,t);return o.left=r,o.operator=n,o.right=i,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},J.parseMaybeUnary=function(e,t){var r,i=this.start,n=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))r=this.parseAwait(),t=!0;else if(this.type.prefix){var s=this.startNode(),o=this.type===w.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,r=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{if(r=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(i,n);a.operator=this.value,a.prefix=!1,a.argument=r,this.checkLVal(r),this.next(),r=this.finishNode(a,"UpdateExpression")}}return!t&&this.eat(w.starstar)?this.buildBinary(i,n,r,this.parseMaybeUnary(null,!1),"**",!1):r},J.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,i=this.parseExprAtom(e);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var n=this.parseSubscripts(i,t,r);return e&&"MemberExpression"===n.type&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1)),n},J.parseSubscripts=function(e,t,r,i){for(var n=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var o=this.parseSubscript(e,t,r,i,n,s);if(o.optional&&(s=!0),o===e||"ArrowFunctionExpression"===o.type){if(s){var a=this.startNodeAt(t,r);a.expression=o,o=this.finishNode(a,"ChainExpression")}return o}e=o}},J.parseSubscript=function(e,t,r,i,n,s){var o=this.options.ecmaVersion>=11,a=o&&this.eat(w.questionDot);i&&a&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(w.bracketL);if(l||a&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var c=this.startNodeAt(t,r);c.object=e,c.property=l?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,l&&this.expect(w.bracketR),o&&(c.optional=a),e=this.finishNode(c,"Member
2Expression")}else if(!i&&this.eat(w.parenL)){var u=new q,h=this.yieldPos,d=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,u);if(n&&!a&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=d,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,r),f,!0);this.checkExpressionErrors(u,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var m=this.startNodeAt(t,r);m.callee=e,m.arguments=f,o&&(m.optional=a),e=this.finishNode(m,"CallExpression")}else if(this.type===w.backQuote){(a||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,r);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},J.parseExprAtom=function(e){this.type===w.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==w.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(t,"Super");case w._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case w.name:var i=this.start,n=this.startLoc,s=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.parseFunction(this.startNodeAt(i,n),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(i,n),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===w.name&&!s)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(w.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,n),[o],!0)}return o;case w.regexp:var a=this.value;return(t=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},t;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(t=this.startNode()).value=this.type===w._null?null:this.type===w._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case w.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case w.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(w.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case w.braceL:return this.parseObj(!1,e);case w._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},J.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case w.parenL:return this.parseDynamicImport(e);case w.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},J.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var t=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},J.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},J.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},J.parseParenExpression=function(){this.expect(w.parenL);var e=this.parseExpression();return this.expect(w.parenR),e},J.parseParenAndDistinguishExpression=function(e){var t,r=this.start,i=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,l=[],c=!0,u=!1,h=new q,d=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(c?c=!1:this.expect(w.comma),n&&this.afterTrailingComma(w.parenR,!0)){u=!0;break}
vendor: 16,160 bytes, line 2
2if(this.type===w.ellipsis){s=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(w.parenR),e&&!this.canInsertSemicolon()&&this.eat(w.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=p,this.parseParenArrowList(r,i,l);l.length&&!u||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,l.length>1?((t=this.startNodeAt(o,a)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,i);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},J.parseParenItem=function(e){return e},J.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var $=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(w.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc,s=this.type===w._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,n,!0),s&&"ImportExpression"===e.callee.type&&this.raise(i,"Cannot use new with import()"),this.eat(w.parenL)?e.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):e.arguments=$,this.finishNode(e,"NewExpression")},J.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===w.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===w.backQuote,this.finishNode(r,"TemplateElement")},J.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(w.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},J.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},J.parseObj=function(e,t){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(w.braceR);){if(i)i=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},J.parseProperty=function(e,t){var r,i,n,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===w.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===w.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===w.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(n=this.start,s=this.startLoc),e||(r=this.eat(w.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(o)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(o,t)):i=!1,this.parsePropertyValue(o,e,r,i,n,s,t,a),this.finishNode(o,"Property")},J.parsePropertyValue=function(e,t,r,i,n,s,o,a){if((r||i)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,e.key):this.type===w.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},J.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(w.bracketR),e.key;e.computed=!1}return e.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},J.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|F(t,i.generator)|(r?128:0)),this.expect(w.parenL),i.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")},J.parseArrowExpression=function(e,t,r){var i=this.yieldPos,n=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|F(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},J.parseFunctionBody=function(e,t,r){var i=t&&this.type!==w.braceL,n=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);n&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!n&&!s&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope()},J.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){if("Identifier"!==r[t].type)return!1}return!0},J.checkParams=function(e,t){for(var r={},i=0,n=e.params;i<n.length;i+=1){var s=n[i];this.checkLVal(s,1,t?null:r)}},J.parseExprList=function(e,t,r,i){for(var n=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(w.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===w.comma?o=null:this.type===w.ellipsis?(o=this.parseSpread(i),i&&this.type===w.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),n.push(o)}return n},J.checkUnreserved=function(e){var t=e.start,r=e.end,i=e.name;(this.inGenerator&&"yield"===i&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,r).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))},J.parseIdent=function(e,t){var r=this.startNode();return this.type===w.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},J.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(w.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},J.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var ee=N.prototype;ee.raise=function(e,t){var r=B(this.input,e);t+=" ("+r.line+":"+r.column+")";var i=new SyntaxError(t);throw i.pos=e,i.loc=r,i.raisedAt=this.pos,i},ee.raiseRecoverable=ee.raise,ee.curPosition=function(){if(this.options.locations)return new D(this.curLine,this.pos-this.lineStart)};var te=N.prototype,re=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};te.enterScope=function(e){this.scopeStack.push(new re(e))},te.exitScope=function(){this.scopeStack.pop()},te.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},te.declareName=function(e,t,r){var i=!1;if(2===t){var n=this.currentScope();i=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&1&n.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();i=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){i=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],3&a.flags)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},te.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},te.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var ie=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new L(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ne=N.prototype;function se(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}ne.startNode=function(){return new ie(this,this.start,this.startLoc)},ne.startNodeAt=function(e,t){return new ie(this,e,t)},ne.finishNode=function(e,t){return se.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ne.finishNodeAt=function(e,t,r,i){return se.call(this,e,t,r,i)};var oe=function(e,t,r,i,n){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=i,this.generator=!!n},ae={b_stat:new oe("{",!1),b_expr:new oe("{",!0),b_tmpl:new oe("${",!1),p_stat:new oe("(",!1),p_expr:new oe("(",!0),q_tmpl:new oe("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new oe("function",!1),f_expr:new oe("function",!0),f_expr_gen:new oe("function",!0,!1,null,!0),f_gen:new oe("function",!1,!1,null,!0)},le=N.prototype;le.initialContext=function(){return[ae.b_stat]},le.braceIsBlock=function(e){var t=this.curContext();return t===ae.f_expr||t===ae.f_stat||(e!==w.colon||t!==ae.b_stat&&t!==ae.b_expr?e===w._return||e===w.name&&this.exprAllowed?A.test(this.input.slice(this.lastTokEnd,this.start)):e===w._else||e===w.semi||e===w.eof||e===w.parenR||e===w.arrow||(e===w.braceL?t===ae.b_stat:e!==w._var&&e!==w._const&&e!==w.name&&!this.exprAllowed):!t.isExpr)},le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},le.updateContext=function(e){var t,r=this.type;r.keyword&&e===w.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ae.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ae.b_stat:ae.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(ae.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(e){var t=e===w._if||e===w._for||e===w._with||e===w._while;this.context.push(t?ae.p_stat:ae.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(e){!e.beforeExpr||e===w.semi||e===w._else||e===w._return&&A.test(this.input.slice(this.lastTokEnd,this.start))||(e===w.colon||e===w.braceL)&&this.curContext()===ae.b_stat?this.context.push(ae.f_stat):this.context.push(ae.f_expr),this.exprAllowed=!1},w.backQuote.updateContext=function(){this.curContext()===ae.q_tmpl?this.context.pop():this.context.push(ae.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(e){if(e===w._function){var t=this.context.length-1;this.context[t]===ae.f_expr?this.context[t]=ae.f_expr_gen:this.context[t]=ae.f_gen}this.exprAllowed=!0},w.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE L
2owercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ue=ce+" Extended_Pictographic",he={9:ce,10:ue,11:ue},de="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",pe="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",fe=pe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",me={9:pe,10:fe,11:fe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ge={};function ye(e){var t=ge[e]={binary:R(he[e]+" "+de),nonBinary:{General_Category:R(de),Script:R(me[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}ye(9),ye(10),ye(11);var ve=N.prototype,_e=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ge[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function be(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function xe(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function we(e){return e>=65&&e<=90||e>=97&&e<=122}function Ae(e){return we(e)||95===e}function Ee(e){return Ae(e)||Se(e)}function Se(e){return e>=48&&e<=57}function Te(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ce(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ie(e){return e>=48&&e<=55}_e.prototype.reset=function(e,t,r){var i=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchN=i&&this.parser.options.ecmaVersion>=9},_e.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},_e.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,i=r.length;if(e>=i)return-1;var n=r.charCodeAt(e);if(!t&&!this.switchU||n<=55295||n>=57344||e+1>=i)return n;var s=r.charCodeAt(e+1);return s>=56320&&s<=57343?(n<<10)+s-56613888:n},_e.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,i=r.length;if(e>=i)return i;var n,s=r.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=i||(n=r.charCodeAt(e+1))<56320||n>57343?e+1:e+2},_e.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},_e.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},_e.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},_e.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ve.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i<r.length;i++){var n=r.charAt(i);-1===t.indexOf(n)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(n,i+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},ve.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},ve.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];-1===e.groupNames.indexOf(i)&&e.raise("Invalid named capture referenced")}},ve.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},ve.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ve.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},ve.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;
vendor: 21,318 bytes, line 2
2if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},ve.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ve.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ve.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return-1!==n&&n<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},ve.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},ve.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ve.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},ve.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},ve.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},ve.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ve.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!xe(t)&&(e.lastIntValue=t,e.advance(),!0)},ve.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!xe(r);)e.advance();return e.pos!==t},ve.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},ve.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},ve.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},ve.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=be(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=be(e.lastIntValue);return!0}return!1},ve.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},ve.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),function(e){return m(e,!0)||36===e||95===e||8204===e||8205===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},ve.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},ve.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},ve.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},ve.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},ve.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ve.regexp_eatZero=function(e){return 48===e.current()&&!Se(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},ve.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},ve.regexp_eatControlLetter=function(e){var t=e.current();return!!we(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ve.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,i=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(n&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(s-55296)+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((r=e.lastIntValue)>=0&&r<=1114111))return!0;n&&e.raise("Invalid unicode escape"),e.pos=i}return!1},ve.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},ve.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},ve.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},ve.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n),!0}return!1},ve.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){k(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},ve.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},ve.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ae(t=e.current());)e.lastStringValue+=be(t),e.advance();return""!==e.lastStringValue},ve.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ee(t=e.current());)e.lastStringValue+=be(t),e.advance();return""!==e.lastStringValue},ve.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ve.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},ve.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},ve.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||Ie(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return 93!==i&&(e.lastIntValue=i,e.advance(),!0)},ve.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},ve.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Se(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},ve.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},ve.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Se(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},ve.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Te(r=e.current());)e.lastIntValue=16*e.lastIntValue+Ce(r),e.advance();return e.pos!==t},ve.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},ve.regexp_eatOctalDigit=function(e){var t=e.current();return Ie(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ve.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var n=e.current();if(!Te(n))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Ce(n),e.advance()}return!0};var Pe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new L(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Me=N.prototype;function ke(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Oe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}Me.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Pe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Me.getToken=function(){return this.next(),new Pe(this)},"undefined"!=typeof Symbol&&(Me[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===w.eof,value:t}}}}),Me.curContext=function(){return this.context[this.context.length-1]},Me.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Me.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Me.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Me.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(E.lastIndex=r;(e=E.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(r+2,i),r,this.pos,t,this.curPosition())},Me.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!S(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},Me.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&T.test(String.fromCharCode(e))))break e;++this.pos}}},Me.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Me.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},Me.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},Me.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=42===e?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,i=w.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(w.assign,r+1):this.finishOp(i,r)},Me.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(w.assign,3);return this.finishOp(124===e?w.logicalOR:w.logicalAND,2)}return 61===t?this.finishOp(w.assign,2):this.finishOp(124===e?w.bitwiseOR:w.bitwiseAND,1)},Me.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},Me.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!A.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},Me.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(w.assign,r+1):this.finishOp(w.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(w.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Me.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===e?w.eq:w.prefix,1)},Me.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(w.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(w.assign,3);return this.finishOp(w.coalesce,2)}}return this.finishOp(w.question,1)},Me.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1)}this.raise(this.pos,"Unexpected character '"+Oe(e)+"'")},Me.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Me.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(A.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new _e(this));a.reset(r,n,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(n,o)}catch(e){}return this.finishToken(w.regexp,{pattern:n,flags:o,value:l})},Me.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&void 0===t,n=r&&48===this.input.charCodeAt(this.pos),s=this.pos,o=0,a=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var u=this.input.charCodeAt(this.pos),h=void 0;if(i&&95===u)n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=u;else{if((h=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;a=u,o=o*e+h}}return i&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:o},Me.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=ke(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,r)},Me.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var n=ke(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,n)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,o=(s=this.input.slice(t,this.pos),r?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(w.num,o)},Me.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Me.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(S(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(w.string,t)};var Re={};Me.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Re)throw e;
2this.readInvalidTemplateToken()}this.inTemplateElement=!1},Me.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Re;this.raise(e,t)},Me.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(w.template,e)):36===r?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(S(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Me.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Me.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Oe(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),"0"===i&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return S(t)?"":String.fromCharCode(t)}},Me.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},Me.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(m(n,i))this.pos+=n<=65535?1:2;else{if(92!==n)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?f:m)(o,i)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=Oe(o),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},Me.readWord=function(){var e=this.readWord1(),t=w.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)};var De="7.4.1";function Le(e,t){return N.parse(e,t)}function Be(e,t,r){return N.parseExpressionAt(e,t,r)}function ze(e,t){return N.tokenizer(e,t)}N.acorn={Parser:N,version:De,defaultOptions:z,Position:D,SourceLocation:L,getLineInfo:B,Node:ie,TokenType:g,tokTypes:w,keywordTypes:b,TokContext:oe,tokContexts:ae,isIdentifierChar:m,isIdentifierStart:f,Token:Pe,isNewLine:S,lineBreak:A,lineBreakG:E,nonASCIIwhitespace:T}},12059:(e,t,r)=>{r.d(t,{l:()=>i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},12125:(e,t,r)=>{function i(e,t){return function(){return e.apply(t,arguments)}}r.d(t,{A:()=>i})},12434:(e,t,r)=>{r.d(t,{A:()=>A});var i=r(80702),n=r(41917);const s=(0,i.A)(n.A,"DataView");var o=r(68335);const a=(0,i.A)(n.A,"Promise");const l=(0,i.A)(n.A,"Set");const c=(0,i.A)(n.A,"WeakMap");var u=r(79672),h=r(81121),d="[object Map]",p="[object Promise]",f="[object Set]",m="[object WeakMap]",g="[object DataView]",y=(0,h.A)(s),v=(0,h.A)(o.A),_=(0,h.A)(a),b=(0,h.A)(l),x=(0,h.A)(c),w=u.A;(s&&w(new s(new ArrayBuffer(1)))!=g||o.A&&w(new o.A)!=d||a&&w(a.resolve())!=p||l&&w(new l)!=f||c&&w(new c)!=m)&&(w=function(e){var t=(0,u.A)(e),r="[object Object]"==t?e.constructor:void 0,i=r?(0,h.A)(r):"";if(i)switch(i){case y:return g;case v:return d;case _:return p;case b:return f;case x:return m}return t});const A=w},12723:(e,t,r)=>{if(r.d(t,{A:()=>
2o}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(38458);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(74062);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var s=r(17275);const o=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,o=new AbortController;const a=function(e){if(!r){r=!0,c();const t=e instanceof Error?e:this.reason;o.abort(t instanceof n.A?t:new i.A(t instanceof Error?t.message:t))}};let l=t&&setTimeout((()=>{l=null,a(new n.A(`timeout ${t} of ms exceeded`,n.A.ETIMEDOUT))}),t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:u}=o;return u.unsubscribe=()=>s.A.asap(c),u}}:null},12827:(e,t,r)=>{if(r.d(t,{O:()=>o}),"vendors"!=r.j)var i=r(39005);if("vendors"!=r.j)var n=r(92908);if("vendors"!=r.j)var s=r(64878);function o(){return(0,n.N)((function(e,t){e.subscribe((0,s._)(t,(function(e){t.next(i.Eg.createNext(e))}),(function(){t.next(i.Eg.createComplete()),t.complete()}),(function(e){t.next(i.Eg.createError(e)),t.complete()})))}))}},13153:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(){return[]}:null},13288:(e,t,r)=>{if(r.d(t,{$:()=>s}),"vendors"!=r.j)var i=r(93776);if("vendors"!=r.j)var n=r(61209);function s(e,t){var r=(0,n.T)(e)?e:function(){return e},s=function(e){return e.error(r())};return new i.c(t?function(e){return t.schedule(s,0,e)}:s)}},13509:(e,t,r)=>{r.r(t),r.d(t,{A11y:()=>f.A,Autoplay:()=>y.A,Controller:()=>p.A,EffectCoverflow:()=>x.A,EffectCube:()=>_.A,EffectFade:()=>v.A,EffectFlip:()=>b.A,HashNavigation:()=>g.A,History:()=>m.A,Keyboard:()=>s.A,Lazy:()=>d.A,Mousewheel:()=>o.A,Navigation:()=>a.A,Pagination:()=>l.A,Parallax:()=>u.A,Scrollbar:()=>c.A,Swiper:()=>i.A,Thumbs:()=>w.A,Virtual:()=>n.A,Zoom:()=>h.A,default:()=>i.A});var i=r(57233);if("app"==r.j)var n=r(96379);if("app"==r.j)var s=r(49003);if("app"==r.j)var o=r(94037);if("app"==r.j)var a=r(56469);if("app"==r.j)var l=r(21641);if("app"==r.j)var c=r(11567);if("app"==r.j)var u=r(32027);if("app"==r.j)var h=r(42411);if("app"==r.j)var d=r(15945);if("app"==r.j)var p=r(80521);if("app"==r.j)var f=r(6637);if("app"==r.j)var m=r(78347);if("app"==r.j)var g=r(68923);if("app"==r.j)var y=r(26187);if("app"==r.j)var v=r(85847);if("app"==r.j)var _=r(22711);if("app"==r.j)var b=r(43435);if("app"==r.j)var x=r(22751);if("app"==r.j)var w=r(43675)},13594:(e,t,r)=>{function i(e){return!!e.errors?.length}r.d(t,{t:()=>i})},13912:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(62735);const n=(0,i.n)((()=>globalThis))||(0,i.n)((()=>window))||(0,i.n)((()=>self))||(0,i.n)((()=>global))||(0,i.n)((function(){return i.n.constructor("return this")()}))},14613:(e,t,r)=>{function i(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}r.d(t,{R:()=>i})},14725:(e,t,r)=>{r.d(t,{y:()=>o});var i=r(15381);if("searchresults/searchresults"==r.j)var n=r(49993);if("searchresults/searchresults"==r.j)var s=r(7104);class o{observable;key={};promise;resolve;reject;subscription;listeners=new Set;autoDisposeTimeoutId;references=0;constructor(e,t,r){this.dispose=this.dispose.bind(this),this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.observable=e.watchFragment(t),r.onDispose&&(this.onDispose=r.onDispose);const i=this.observable.getCurrentResult(),s=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,r.autoDisposeTimeoutMs??3e4))};this.promise=i.complete?(0,n.$)(i.data):this.createPendingPromise(),this.subscribeToFragment(),this.promise.then(s,s)}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout((()=>{this.references||this.dispose()})))}}dispose(){this.subscription.unsubscribe()}onDispose(){}subscribeToFragment(){this.subscription=this.observable.subscribe(this.handleNext.bind(this),this.handleError.bind(this)),this.subscription.add(this.onDispose)}
2handleNext(e){switch(this.promise.status){case"pending":if(e.complete)return this.resolve?.(e.data);this.deliver(this.promise);break;case"fulfilled":if((0,i.L)(this.promise.value,e.data))return;this.promise=e.complete?(0,n.$)(e.data):this.createPendingPromise(),this.deliver(this.promise)}}handleError(e){this.reject?.(e)}deliver(e){this.listeners.forEach((t=>t(e)))}createPendingPromise(){return(0,s.b)(new Promise(((e,t)=>{this.resolve=e,this.reject=t})))}}},14794:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(96540),n="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},15164:(e,t,r)=>{if(r.d(t,{FU:()=>u,S8:()=>f,sn:()=>h}),"contactslistv2/contactslistv2"==r.j)var i=r(18454);if("contactslistv2/contactslistv2"==r.j)var n=r(31810);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(null,arguments)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},h={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function d(e){return(0,i.i)(e).replace(new RegExp(u.highlightPreTag,"g"),h.highlightPreTag).replace(new RegExp(u.highlightPostTag,"g"),h.highlightPostTag)}function p(e){return(0,n.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce((function(t,r){return l(l({},t),{},c({},r,p(e[r])))}),{}):Array.isArray(e)?e.map(p):l(l({},e),{},{value:d(e.value)})}function f(e){return void 0===e.__escaped&&((e=e.map((function(e){var t=o({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return t._highlightResult&&(t._highlightResult=p(t._highlightResult)),t._snippetResult&&(t._snippetResult=p(t._snippetResult)),t}))).__escaped=!0),e}},15381:(e,t,r)=>{r.d(t,{L:()=>a});const{toString:i,hasOwnProperty:n}=Object.prototype,s=Function.prototype.toString,o=new Map;function a(e,t){try{return l(e,t)}finally{o.clear()}}function l(e,t){if(e===t)return!0;const r=i.call(e);if(r!==i.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(d(e,t))return!0;const r=c(e),i=c(t),s=r.length;if(s!==i.length)return!1;for(let e=0;e<s;++e)if(!n.call(t,r[e]))return!1;for(let i=0;i<s;++i){const n=r[i];if(!l(e[n],t[n]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(d(e,t))return!0;const i=e.entries(),n="[object Map]"===r;for(;;){const e=i.next();if(e.done)break;const[r,s]=e.value;if(!t.has(r))return!1;if(n&&!l(s,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=s.call(e);return r===s.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,h)}}return!1}function c(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}const h="{ [native code] }";function d(e,t){let r=o.get(e);if(r){if(r.has(t))return!0}else o.set(e,r=new Set);return r.add(t),!1}},15547:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(49914);const n="app"==r.j?function(e,t){var r=e.__data__;return(0,i.A)(t)?r["string"==typeof t?"string":"hash"]:r.map}:null},15590:(e,t,r)=>{function i(e=[]){const t={};return e.forEach((e=>{t[e.name.value]=e})),t}r.d(t,{J:()=>i})},15647:(e,t,r)=>{r.d(t,{A:()=>n});var i=(0,r(40367).A)(Object.getPrototypeOf,Object);const n="app"==r.j?i:null},15945:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(51648),n=r(33261),s=r(65520);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(this,arguments)}var a={loadInSlide:function(e,t){void 0===t&&(t=!0);var r=this,i=r.params.lazy;if(void 0!==e&&0!==r.slides.length){var s=r.virtual&&r.params.virtual.enabled?r.$wrapperEl.children("."+r.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):r.slides.eq(e),o=s.find("."+i.elementClass+":not(."+i.loadedClass+"):not(."+i.loadingClass+")");!s.hasClass(i.elementClass)||s.hasClass(i.loadedClass)||s.hasClass(i.loadingClass)||o.push(s[0]),0!==o.length&&o.each((function(e){var o=(0,n.A)(e);o.addClass(i.loadingClass);var a=o.attr("data-background"),l=o.attr("data-src"),c=o.attr("data-srcset"),u=o.attr("data-sizes"),h=o.parent("picture");r.loadImage(o[0],l||a,c,u,!1,(function(){if(null!=r&&r&&(!r||r.params)&&!r.destroyed){
2if(a?(o.css("background-image",'url("'+a+'")'),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),u&&(o.attr("sizes",u),o.removeAttr("data-sizes")),h.length&&h.children("source").each((function(e){var t=(0,n.A)(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),l&&(o.attr("src",l),o.removeAttr("data-src"))),o.addClass(i.loadedClass).removeClass(i.loadingClass),s.find("."+i.preloaderClass).remove(),r.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasClass(r.params.slideDuplicateClass)){var d=r.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+r.params.slideDuplicateClass+")");r.lazy.loadInSlide(d.index(),!1)}else{var p=r.$wrapperEl.children("."+r.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');r.lazy.loadInSlide(p.index(),!1)}}r.emit("lazyImageReady",s[0],o[0]),r.params.autoHeight&&r.updateAutoHeight()}})),r.emit("lazyImageLoad",s[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperEl,r=e.params,i=e.slides,s=e.activeIndex,o=e.virtual&&r.virtual.enabled,a=r.lazy,l=r.slidesPerView;function c(e){if(o){if(t.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(i[e])return!0;return!1}function u(e){return o?(0,n.A)(e).attr("data-swiper-slide-index"):(0,n.A)(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+r.slideVisibleClass).each((function(t){var r=o?(0,n.A)(t).attr("data-swiper-slide-index"):(0,n.A)(t).index();e.lazy.loadInSlide(r)}));else if(l>1)for(var h=s;h<s+l;h+=1)c(h)&&e.lazy.loadInSlide(h);else e.lazy.loadInSlide(s);if(a.loadPrevNext)if(l>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var d=a.loadPrevNextAmount,p=l,f=Math.min(s+p+Math.max(d,p),i.length),m=Math.max(s-Math.max(p,d),0),g=s+l;g<f;g+=1)c(g)&&e.lazy.loadInSlide(g);for(var y=m;y<s;y+=1)c(y)&&e.lazy.loadInSlide(y)}else{var v=t.children("."+r.slideNextClass);v.length>0&&e.lazy.loadInSlide(u(v));var _=t.children("."+r.slidePrevClass);_.length>0&&e.lazy.loadInSlide(u(_))}},checkInViewOnLoad:function(){var e=(0,i.zk)(),t=this;if(t&&!t.destroyed){var r=t.params.lazy.scrollingElement?(0,n.A)(t.params.lazy.scrollingElement):(0,n.A)(e),s=r[0]===e,o=s?e.innerWidth:r[0].offsetWidth,a=s?e.innerHeight:r[0].offsetHeight,l=t.$el.offset(),c=!1;t.rtlTranslate&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],h=0;h<u.length;h+=1){var d=u[h];if(d[0]>=0&&d[0]<=o&&d[1]>=0&&d[1]<=a){if(0===d[0]&&0===d[1])continue;c=!0}}
2var p=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};c?(t.lazy.load(),r.off("scroll",t.lazy.checkInViewOnLoad,p)):t.lazy.scrollHandlerAttached||(t.lazy.scrollHandlerAttached=!0,r.on("scroll",t.lazy.checkInViewOnLoad,p))}}};const l={name:"lazy",params:{lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){(0,s.wD)(this,{lazy:o({initialImageLoaded:!1},a)})},on:{beforeInit:function(e){e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&(e.params.lazy.checkInView?e.lazy.checkInViewOnLoad():e.lazy.load())},scroll:function(e){e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},"scrollbarDragMove resize _freeModeNoMomentumRelease":function(e){e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(e){e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange:function(e){var t=e.params,r=t.lazy,i=t.cssMode,n=t.watchSlidesVisibility,s=t.watchSlidesProgress,o=t.touchReleaseOnEdges,a=t.resistanceRatio;r.enabled&&(i||(n||s)&&(o||0===a))&&e.lazy.load()}}}},15964:(e,t,r)=>{if(r.d(t,{Tg:()=>m}),"vendors"!=r.j)var i=r(31635);if("vendors"!=r.j)var n=r(69391);if("vendors"!=r.j)var s=r(3440);if("vendors"!=r.j)var o=r(93776);if("vendors"!=r.j)var a=r(37541);if("vendors"!=r.j)var l=r(62471);if("vendors"!=r.j)var c=r(43465);if("vendors"!=r.j)var u=r(58667);if("vendors"!=r.j)var h=r(8438);if("vendors"!=r.j)var d=r(61209);if("vendors"!=r.j)var p=r(22564);if("vendors"!=r.j)var f=r(55604);function m(e){if(e instanceof o.c)return e;if(null!=e){if((0,a.l)(e))return v=e,new o.c((function(e){var t=v[f.s]();if((0,d.T)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,n.X)(e))return y=e,new o.c((function(e){for(var t=0;t<y.length&&!e.closed;t++)e.next(y[t]);e.complete()}));if((0,s.y)(e))return m=e,new o.c((function(e){m.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,p.m)}));if((0,l.T)(e))return g(e);if((0,u.x)(e))return r=e,new o.c((function(e){var t,n;try{for(var s=(0,i.__values)(r),o=s.next();!o.done;o=s.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}e.complete()}));if((0,h.U)(e))return t=e,g((0,h.C)(t))}var t,r,m,y,v;throw(0,c.L)(e)}function g(e){return new o.c((function(t){(function(e,t){var r,n,s,o;return(0,i.__awaiter)(this,void 0,void 0,(function(){var a,l;return(0,i.__generator)(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=(0,i.__asyncValues)(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),s={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}},16126:(e,t,r)=>{if(r.d(t,{p:()=>s}),"vendors"!=r.j)var i=r(92908);if("vendors"!=r.j)var n=r(64878);function s(e,t){return(0,i.N)((function(r,i){var s=0;r.subscribe((0,n._)(i,(function(r){return e.call(t,r,s++)&&i.next(r)})))}))}},16489:(e,t,r)=>{r.d(t,{A:()=>a});const i=function(e,t){for(var r=-1,i=null==e?0:e.length,n=0,s=[];++r<i;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s};var n=r(13153),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;const a=o?function(e){return null==e?[]:(e=Object(e),i(o(e),(function(t){return s.call(e,t)})))}:n.A},16507:(e,t,r)=>{r.d(t,{S:()=>i});const i="function"==typeof(0,r(62735).n)((()=>window.document.createElement))},16535:(e,t,r)=>{function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function n(e){return!!e&&!!e[Y]}function s(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Q}(e)||Array.isArray(e)||!!e[W]||!!(null===(t=e.constructor)||void 0===t?void 0:t[W])||d(e)||p(e))}function o(e,t,r){void 0===r&&(r=!1),0===a(e)?(r?Object.keys:Z)(e).forEach((function(i){r&&"symbol"==typeof i||t(i,e[i],e)})):e.forEach((function(r,i){return t(i,r,e)}))}function a(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===a(e)?e.get(t):e[t]}function u(e,t,r){var i=a(e);2===i?e.set(t,r):3===i?e.add(r):e[t]=r}function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return V&&e instanceof Map}function p(e){return G&&e instanceof Set}function f(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[Y];for(var r=Z(t),i=0;i<r.length;i++){var n=r[i],s=t[n];
vendor: 5,277 bytes, line 2
2!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[n]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),v(e)||n(e)||!s(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&o(e,(function(e,t){return g(t,!0)}),!0)),e}function y(){i(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function _(e){var t=K[e];return t||i(18,e),t}function b(e,t){K[e]||(K[e]=t)}function x(){return N}function w(e,t){t&&(_("Patches"),e.u=[],e.s=[],e.v=t)}function A(e){E(e),e.p.forEach(T),e.p=null}function E(e){e===N&&(N=e.l)}function S(e){return N={p:[],l:N,h:e,m:!0,_:0}}function T(e){var t=e[Y];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||_("ES5").S(t,e,n),n?(r[Y].P&&(A(t),i(4)),s(e)&&(e=I(t,e),t.l||M(t,e)),t.u&&_("Patches").M(r[Y].t,e,t.u,t.s)):e=I(t,r,[]),A(t),t.u&&t.v(t.u,t.s),e!==H?e:void 0}function I(e,t,r){if(v(t))return t;var i=t[Y];if(!i)return o(t,(function(n,s){return P(e,i,t,n,s,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return M(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=4===i.i||5===i.i?i.o=m(i.k):i.o,s=n,a=!1;3===i.i&&(s=new Set(n),n.clear(),a=!0),o(s,(function(t,s){return P(e,i,n,t,s,r,a)})),M(e,n,!1),r&&e.u&&_("Patches").N(i,r,e.u,e.s)}return i.o}function P(e,t,r,i,o,a,c){if(n(o)){var h=I(e,o,a&&t&&3!==t.i&&!l(t.R,i)?a.concat(i):void 0);if(u(r,i,h),!n(h))return;e.m=!1}else c&&r.add(o);if(s(o)&&!v(o)){if(!e.h.D&&e._<1)return;I(e,o),t&&t.A.l||M(e,o)}}function M(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&g(t,r)}function k(e,t){var r=e[Y];return(r?f(r):e)[t]}function O(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function D(e){e.o||(e.o=m(e.t))}function L(e,t,r){var i=d(t)?_("MapSet").F(t,r):p(t)?_("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),i={i:r?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},n=i,s=J;r&&(n=[i],s=$);var o=Proxy.revocable(n,s),a=o.revoke,l=o.proxy;return i.k=l,i.j=a,l}(t,r):_("ES5").J(t,r);return(r?r.A:x()).p.push(i),i}function B(e){return n(e)||i(22,e),function e(t){if(!s(t))return t;var r,i=t[Y],n=a(t);if(i){if(!i.P&&(i.i<4||!_("ES5").K(i)))return i.t;i.I=!0,r=z(t,n),i.I=!1}else r=z(t,n);return o(r,(function(t,n){i&&c(i.t,t)===n||u(r,t,e(n))})),3===n?new Set(r):r}(e)}function z(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function j(){function e(e,t){var r=s[e];return r?r.enumerable=t:s[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[Y];return J.get(t,e)},set:function(t){var r=this[Y];J.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var n=e[t][Y];if(!n.P)switch(n.i){case 5:i(n)&&R(n);break;case 4:r(n)&&R(n)}}}function r(e){for(var t=e.t,r=e.k,i=Z(r),n=i.length-1;n>=0;n--){var s=i[n];if(s!==Y){var o=t[s];if(void 0===o&&!l(t,s))return!0;var a=r[s],c=a&&a[Y];if(c?c.t!==o:!h(a,o))return!0}}var u=!!t[Y];return i.length!==Z(t).length+(u?0:1)}function i(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var i=0;i<t.length;i++)if(!t.hasOwnProperty(i))return!0;return!1}var s={};b("ES5",{J:function(t,r){var i=Array.isArray(t),n=function(t,r){if(t){for(var i=Array(r.length),n=0;n<r.length;n++)Object.defineProperty(i,""+n,e(n,!0));return i}var s=X(r);delete s[Y];for(var o=Z(s),a=0;a<o.length;a++){var l=o[a];s[l]=e(l,t||!!s[l].enumerable)}return Object.create(Object.getPrototypeOf(r),s)}(i,t),s={i:i?5:4,A:r?r.A:x(),P:!1,I:!1,R:{},l:r,t,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Y,{value:s,writable:!0}),n},S:function(e,r,s){s?n(r)&&r[Y].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var r=t[Y];if(r){var n=r.t,s=r.k,a=r.R,c=r.i;if(4===c)o(s,(function(t){t!==Y&&(void 0!==n[t]||l(n,t)?a[t]||e(s[t]):(a[t]=!0,R(r)))})),o(n,(function(e){void 0!==s[e]||l(s,e)||(a[e]=!1,R(r))}));else if(5===c){if(i(r)&&(R(r),a.length=!0),s.length<n.length)for(var u=s.length;u<n.length;u++)a[u]=!1;else for(var h=n.length;h<s.length;h++)a[h]=!0;for(var d=Math.min(s.length,n.length),p=0;p<d;p++)s.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&e(s[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?r(e):i(e)}})}r.d(t,{Ay:()=>ie,rF:()=>j});var F,N,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),V="undefined"!=typeof Map,G="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=U?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),W=U?Symbol.for("immer-draftable"):"__$immer_draftable",Y=U?Symbol.for("immer-state"):"__$immer_state",Q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Z(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},K={},J={get:function(e,t){if(t===Y)return e;var r=f(e);
2if(!l(r,t))return function(e,t,r){var i,n=O(t,r);return n?"value"in n?n.value:null===(i=n.get)||void 0===i?void 0:i.call(e.k):void 0}(e,r,t);var i=r[t];return e.I||!s(i)?i:i===k(e.t,t)?(D(e),e.o[t]=L(e.A.h,i,e)):i},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,r){var i=O(f(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,r),!0;if(!e.P){var n=k(f(e),t),s=null==n?void 0:n[Y];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(h(r,n)&&(void 0!==r||l(e.t,t)))return!0;D(e),R(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==k(e.t,t)||t in e.t?(e.R[t]=!1,D(e),R(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=f(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:i.enumerable,value:r[t]}:i},defineProperty:function(){i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){i(12)}},$={};o(J,(function(e,t){$[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),$.deleteProperty=function(e,t){return $.set.call(this,e,t,void 0)},$.set=function(e,t,r){return J.set.call(this,e[0],t,r,e[0])};var ee=function(){function e(e){var t=this;this.O=q,this.D=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var o=r;r=e;var a=t;return function(e){var t=this;void 0===e&&(e=o);for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return a.produce(e,(function(e){var i;return(i=r).call.apply(i,[t,e].concat(n))}))}}var l;if("function"!=typeof r&&i(6),void 0!==n&&"function"!=typeof n&&i(7),s(e)){var c=S(t),u=L(t,e,void 0),h=!0;try{l=r(u),h=!1}finally{h?A(c):E(c)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return w(c,n),C(e,c)}),(function(e){throw A(c),e})):(w(c,n),C(l,c))}if(!e||"object"!=typeof e){if(void 0===(l=r(e))&&(l=e),l===H&&(l=void 0),t.D&&g(l,!0),n){var d=[],p=[];_("Patches").M(e,l,d,p),n(d,p)}return l}i(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(n))}))};var i,n,s=t.produce(e,r,(function(e,t){i=e,n=t}));return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return[e,i,n]})):[s,i,n]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){s(e)||i(8),n(e)&&(e=B(e));var t=S(this),r=L(this,e,void 0);return r[Y].C=!0,E(t),r},t.finishDraft=function(e,t){var r=(e&&e[Y]).A;return w(r,t),C(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!q&&i(20),this.O=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var i=t[r];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}r>-1&&(t=t.slice(r+1));var s=_("Patches").$;return n(e)?s(e,t):this.produce(e,(function(e){return s(e,t)}))},e}(),te=new ee,re=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);const ie="contactslistv2/contactslistv2"==r.j?re:null},16606:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(69734);if("contactslistv2/contactslistv2"==r.j)var n=r(65150);if("contactslistv2/contactslistv2"==r.j)var s=r(29320);if("contactslistv2/contactslistv2"==r.j)var o=r(29718);if("contactslistv2/contactslistv2"==r.j)var a=r(38796);if("contactslistv2/contactslistv2"==r.j)var l=r(15164);var c=(0,i.s)("ReverseSnippet");function u(e){var t=e.attribute,r=e.highlightedTagName,i=void 0===r?"mark":r,u=e.hit,h=e.cssClasses,d=void 0===h?{}:h,p=((0,n.E)(u._snippetResult,t)||{}).value,f=void 0===p?"":p,m=c({descendantName:"highlighted"})+(d.highlighted?" ".concat(d.highlighted):"");return(0,s.G)((0,o.Y)((0,a.I)(f))).replace(new RegExp(l.sn.highlightPreTag,"g"),"<".concat(i,' class="').concat(m,'">')).replace(new RegExp(l.sn.highlightPostTag,"g"),"</".concat(i,">"))}},16645:(e,t,r)=>{r.d(t,{g:()=>i});const i=!1},16839:(e,t,r)=>{if(r.d(t,{C:()=>a}),"vendors"!=r.j)var i=r(61701);if("vendors"!=r.j)var n=r(8919);if("vendors"!=r.j)var s=r(16645);if("vendors"!=r.j)var o=r(70775);class a{static empty(){return new a((()=>i.w))}static from(e){if(0===e.length)return a.empty();const[t,...r]=e;return t.concat(...r)}static split(e,t,r=new a(((e,t)=>t(e)))){const i=new a(((i,n)=>{const a=e(i);return s.g&&"boolean"!=typeof a&&s.g&&o.V1.warn(63,a),a?t.request(i,n):r.request(i,n)}));return Object.assign(i,{left:t,right:r})}static execute(e,t,r){return e.request((0,n.k)(t,r),(()=>(s.g&&s.g&&o.V1.warn(64),i.w)))}static concat(...e){return a.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(a.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){const r=new a(((r,i)=>e.request(r,(e=>t.request(e,i)))));return Object.assign(r,{left:e,right:t})}request(e,t){throw(0,o.vA)(65)}left;
2right}},17064:(e,t,r)=>{if(r.d(t,{A:()=>o}),"app"==r.j)var i=r(97271);if("app"==r.j)var n=r(33938);var s=Object.prototype.hasOwnProperty;const o="app"==r.j?function(e){if(!(0,i.A)(e))return(0,n.A)(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}:null},17108:(e,t,r)=>{if(r.d(t,{b:()=>n}),"vendors"!=r.j)var i=r(65204);function n(e){return!(0,i.D)(e)}},17275:(e,t,r)=>{r.d(t,{A:()=>q});var i=r(12125);const{toString:n}=Object.prototype,{getPrototypeOf:s}=Object,o=(a=Object.create(null),e=>{const t=n.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const l=e=>(e=e.toLowerCase(),t=>o(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,h=c("undefined");const d=l("ArrayBuffer");const p=c("string"),f=c("function"),m=c("number"),g=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==o(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},v=l("Date"),_=l("File"),b=l("Blob"),x=l("FileList"),w=l("URLSearchParams"),[A,E,S,T]=["ReadableStream","Request","Response","Headers"].map(l);function C(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let i,n;if("object"!=typeof e&&(e=[e]),u(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let o;for(i=0;i<s;i++)o=n[i],t.call(null,e[o],o,e)}}function I(e,t){t=t.toLowerCase();const r=Object.keys(e);let i,n=r.length;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,M=e=>!h(e)&&e!==P;const k=(O="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>O&&e instanceof O);var O;const R=l("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),L=l("RegExp"),B=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};C(r,((r,n)=>{let s;!1!==(s=t(r,n,e))&&(i[n]=s||r)})),Object.defineProperties(e,i)};const z=l("AsyncFunction"),j=(F="function"==typeof setImmediate,N=f(P.postMessage),F?setImmediate:N?(U=`axios@${Math.random()}`,V=[],P.addEventListener("message",(({source:e,data:t})=>{e===P&&t===U&&V.length&&V.shift()()}),!1),e=>{V.push(e),P.postMessage(U,"*")}):e=>setTimeout(e));var F,N,U,V;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||j,q={isArray:u,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:y,isReadableStream:A,isRequest:E,isResponse:S,isHeaders:T,isUndefined:h,isDate:v,isFile:_,isBlob:b,isRegExp:L,isFunction:f,isStream:e=>g(e)&&f(e.pipe),isURLSearchParams:w,isTypedArray:k,isFileList:x,forEach:C,merge:function e(){const{caseless:t}=M(this)&&this||{},r={},i=(i,n)=>{const s=t&&I(r,n)||n;y(r[s])&&y(i)?r[s]=e(r[s],i):y(i)?r[s]=e({},i):u(i)?r[s]=i.slice():r[s]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],i);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(C(t,((t,n)=>{r&&f(t)?e[n]=(0,i.A)(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,o,a;const l={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)a=n[o],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==r&&s(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return-1!==i&&i===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;
2(i=r.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:R,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:B,freezeMethods:e=>{B(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=e[r];f(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},i=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?i(e):i(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:P,isContextDefined:M,isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,i)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const n=u(e)?[]:{};return C(e,((e,t)=>{const s=r(e,i+1);!h(s)&&(n[t]=s)})),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:z,isThenable:e=>e&&(g(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:j,asap:G}},17981:(e,t,r)=>{if(r.d(t,{fc:()=>p,v2:()=>d}),"vendors"!=r.j)var i=r(52213);if("vendors"!=r.j)var n=r(31155);if("vendors"!=r.j)var s=r(62722);if("vendors"!=r.j)var o=r(42189);if("vendors"!=r.j)var a=r(33245);if("vendors"!=r.j)var l=r(70775);if("vendors"!=r.j)var c=r(73194);const u={};function h(e){const t=JSON.stringify(e);return u[t]||(u[t]={})}function d(e){const t=h(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{const i=(e,t)=>r.readField(t,e),n=r.keyObject=f(e,(e=>{let n=y(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&c.$3.call(t,e[0])&&(n=y(t,e,g)),(0,l.V1)(void 0!==n,102,e.join("."),t),n}));return`${r.typename}:${JSON.stringify(n)}`})}function p(e){const t=h(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:s,fieldName:o})=>{const a=f(e,(e=>{const o=e[0],a=o.charAt(0);if("@"!==a)if("$"!==a){if(t)return y(t,e)}else{const t=o.slice(1);if(s&&c.$3.call(s,t)){const r=e.slice(0);return r[0]=t,y(s,r)}}else if(r&&(0,i.E)(r.directives)){const t=o.slice(1),i=r.directives.find((e=>e.name.value===t)),a=i&&(0,n.M)(i,s);return a&&y(a,e.slice(1))}})),l=JSON.stringify(a);return(t||"{}"!==l)&&(o+=":"+l),o})}function f(e,t){const r=new s.Z;return m(e).reduce(((e,i)=>{let n=t(i);if(void 0!==n){for(let e=i.length-1;e>=0;--e)n={[i[e]]:n};e=r.merge(e,n)}return e}),{})}function m(e){const t=h(e);if(!t.paths){const r=t.paths=[],i=[];e.forEach(((t,n)=>{(0,o.c)(t)?(m(t).forEach((e=>r.push(i.concat(e)))),i.length=0):(i.push(t),(0,o.c)(e[n+1])||(r.push(i.slice(0)),i.length=0))}))}return t.paths}function g(e,t){return e[t]}function y(e,t,r){return r=r||g,v(t.reduce((function e(t,i){return(0,o.c)(t)?t.map((t=>e(t,i))):t&&r(t,i)}),e))}function v(e){return(0,a.U)(e)?(0,o.c)(e)?e.map(v):f(Object.keys(e).sort(),(t=>y(e,t))):e}},18316:(e,t,r)=>{r.d(t,{B:()=>s});var i=r(32453);if("vendors"!=r.j)var n=r(80433);function s(e,{max:t,makeCacheKey:r=e=>e}){const s=new i.b(!0),o=new n.A(t);return(...t)=>{const i=s.lookupArray(r(t)),n=o.get(i);if(n){if(n.error)throw n.error;return n.result}const a=o.set(i,{});try{return a.result=e(...t)}catch(e){throw a.error=e,e}}}},18454:(e,t,r)=>{r.d(t,{i:()=>o,x:()=>u});var i={"&":"&","<":"<",">":">",'"':""","'":"'"},n=/[&<>"']/g,s=RegExp(n.source);function o(e){return e&&s.test(e)?e.replace(n,(function(e){return i[e]})):e}var a={"&":"&","<":"<",">":">",""":'"',"'":"'"},l=/&(amp|quot|lt|gt|#39);/g,c=RegExp(l.source);function u(e){return e&&c.test(e)?e.replace(l,(function(e){return a[e]})):e}},18491:(e,t,r)=>{r.d(t,{BN:()=>C,ER:()=>R,Ej:()=>P,RK:()=>T,UE:()=>k,UU:()=>I,__:()=>E,cY:()=>S,iD:()=>x,jD:()=>M,ll:()=>A,mG:()=>O,rD:()=>D});var i=r(97193);if(/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j))var n=r(95361);var s=r(86635);function o(e){const t=(0,s.L9)(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;
2const o=(0,s.sb)(e),a=o?e.offsetWidth:r,l=o?e.offsetHeight:n,c=(0,i.LI)(r)!==a||(0,i.LI)(n)!==l;return c&&(r=a,n=l),{width:r,height:n,$:c}}function a(e){return(0,s.vq)(e)?e:e.contextElement}function l(e){const t=a(e);if(!(0,s.sb)(t))return(0,i.Jx)(1);const r=t.getBoundingClientRect(),{width:n,height:l,$:c}=o(t);let u=(c?(0,i.LI)(r.width):r.width)/n,h=(c?(0,i.LI)(r.height):r.height)/l;return u&&Number.isFinite(u)||(u=1),h&&Number.isFinite(h)||(h=1),{x:u,y:h}}const c=(0,i.Jx)(0);function u(e){const t=(0,s.zk)(e);return(0,s.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:c}function h(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),c=a(e);let h=(0,i.Jx)(1);t&&(n?(0,s.vq)(n)&&(h=l(n)):h=l(e));const d=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==(0,s.zk)(e))&&t}(c,r,n)?u(c):(0,i.Jx)(0);let p=(o.left+d.x)/h.x,f=(o.top+d.y)/h.y,m=o.width/h.x,g=o.height/h.y;if(c){const e=(0,s.zk)(c),t=n&&(0,s.vq)(n)?(0,s.zk)(n):n;let r=e,i=(0,s._m)(r);for(;i&&n&&t!==r;){const e=l(i),t=i.getBoundingClientRect(),n=(0,s.L9)(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;p*=e.x,f*=e.y,m*=e.x,g*=e.y,p+=o,f+=a,r=(0,s.zk)(i),i=(0,s._m)(r)}}return(0,i.B1)({width:m,height:g,x:p,y:f})}function d(e,t){const r=(0,s.CP)(e).scrollLeft;return t?t.left+r:h((0,s.ep)(e)).left+r}function p(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-d(e,r),y:r.top+t.scrollTop}}const f=new Set(["absolute","fixed"]);function m(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=(0,s.zk)(e),i=(0,s.ep)(e),n=r.visualViewport;let o=i.clientWidth,a=i.clientHeight,l=0,c=0;if(n){o=n.width,a=n.height;const e=(0,s.Tc)();(!e||e&&"fixed"===t)&&(l=n.offsetLeft,c=n.offsetTop)}const u=d(i);if(u<=0){const e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,s=Math.abs(i.clientWidth-t.clientWidth-n);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:a,x:l,y:c}}(e,r);else if("document"===t)n=function(e){const t=(0,s.ep)(e),r=(0,s.CP)(e),n=e.ownerDocument.body,o=(0,i.T9)(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=(0,i.T9)(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-r.scrollLeft+d(e);const c=-r.scrollTop;return"rtl"===(0,s.L9)(n).direction&&(l+=(0,i.T9)(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:l,y:c}}((0,s.ep)(e));else if((0,s.vq)(t))n=function(e,t){const r=h(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=(0,s.sb)(e)?l(e):(0,i.Jx)(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}(t,r);else{const r=u(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,i.B1)(n)}function g(e,t){const r=(0,s.$4)(e);return!(r===t||!(0,s.vq)(r)||(0,s.eu)(r))&&("fixed"===(0,s.L9)(r).position||g(r,t))}function y(e,t,r){const n=(0,s.sb)(t),o=(0,s.ep)(t),a="fixed"===r,l=h(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const u=(0,i.Jx)(0);function f(){u.x=d(o)}if(n||!n&&!a)if(("body"!==(0,s.mq)(t)||(0,s.ZU)(o))&&(c=(0,s.CP)(t)),n){const e=h(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&f();a&&!n&&o&&f();const m=!o||n||a?(0,i.Jx)(0):p(o,c);
2return{x:l.left+c.scrollLeft-u.x-m.x,y:l.top+c.scrollTop-u.y-m.y,width:l.width,height:l.height}}function v(e){return"static"===(0,s.L9)(e).position}function _(e,t){if(!(0,s.sb)(e)||"fixed"===(0,s.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,s.ep)(e)===r&&(r=r.ownerDocument.body),r}function b(e,t){const r=(0,s.zk)(e);if((0,s.Tf)(e))return r;if(!(0,s.sb)(e)){let t=(0,s.$4)(e);for(;t&&!(0,s.eu)(t);){if((0,s.vq)(t)&&!v(t))return t;t=(0,s.$4)(t)}return r}let i=_(e,t);for(;i&&(0,s.Lv)(i)&&v(i);)i=_(i,t);return i&&(0,s.eu)(i)&&v(i)&&!(0,s.sQ)(i)?r:i||(0,s.gJ)(e)||r}const x={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a="fixed"===o,c=(0,s.ep)(n),u=!!t&&(0,s.Tf)(t.floating);if(n===c||u&&a)return r;let d={scrollLeft:0,scrollTop:0},f=(0,i.Jx)(1);const m=(0,i.Jx)(0),g=(0,s.sb)(n);if((g||!g&&!a)&&(("body"!==(0,s.mq)(n)||(0,s.ZU)(c))&&(d=(0,s.CP)(n)),(0,s.sb)(n))){const e=h(n);f=l(n),m.x=e.x+n.clientLeft,m.y=e.y+n.clientTop}const y=!c||g||a?(0,i.Jx)(0):p(c,d);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-d.scrollLeft*f.x+m.x+y.x,y:r.y*f.y-d.scrollTop*f.y+m.y+y.y}},getDocumentElement:s.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[..."clippingAncestors"===r?(0,s.Tf)(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let i=(0,s.v9)(e,[],!1).filter((e=>(0,s.vq)(e)&&"body"!==(0,s.mq)(e))),n=null;const o="fixed"===(0,s.L9)(e).position;let a=o?(0,s.$4)(e):e;for(;(0,s.vq)(a)&&!(0,s.eu)(a);){const t=(0,s.L9)(a),r=(0,s.sQ)(a);r||"fixed"!==t.position||(n=null),(o?!r&&!n:!r&&"static"===t.position&&n&&f.has(n.position)||(0,s.ZU)(a)&&!r&&g(e,a))?i=i.filter((e=>e!==a)):n=t,a=(0,s.$4)(a)}return t.set(e,i),i}(t,this._c):[].concat(r),n],l=a[0],c=a.reduce(((e,r)=>{const n=m(t,r,o);return e.top=(0,i.T9)(n.top,e.top),e.right=(0,i.jk)(n.right,e.right),e.bottom=(0,i.jk)(n.bottom,e.bottom),e.left=(0,i.T9)(n.left,e.left),e}),m(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:b,getElementRects:async function(e){const t=this.getOffsetParent||b,r=this.getDimensions,i=await r(e.floating);return{reference:y(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=o(e);return{width:t,height:r}},getScale:l,isElement:s.vq,isRTL:function(e){return"rtl"===(0,s.L9)(e).direction}};function w(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,p=a(e),f=o||l?[...p?(0,s.v9)(p):[],...(0,s.v9)(t)]:[];f.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)}));const m=p&&u?function(e,t){let r,n=null;const o=(0,s.ep)(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();const u=e.getBoundingClientRect(),{left:h,top:d,width:p,height:f}=u;if(l||t(),!p||!f)return;const m={rootMargin:-(0,i.RI)(d)+"px "+-(0,i.RI)(o.clientWidth-(h+p))+"px "+-(0,i.RI)(o.clientHeight-(d+f))+"px "+-(0,i.RI)(h)+"px",threshold:(0,i.T9)(0,(0,i.jk)(1,
2c))||1};let g=!0;function y(t){const i=t[0].intersectionRatio;if(i!==c){if(!g)return s();i?s(!1,i):r=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==i||w(u,e.getBoundingClientRect())||s(),g=!1}try{n=new IntersectionObserver(y,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(y,m)}n.observe(e)}(!0),a}(p,r):null;let g,y=-1,v=null;c&&(v=new ResizeObserver((e=>{let[i]=e;i&&i.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),r()})),p&&!d&&v.observe(p),v.observe(t));let _=d?h(e):null;return d&&function t(){const i=h(e);_&&!w(_,i)&&r();_=i,g=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach((e=>{o&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)})),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(g)}}const E=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.__:null,S=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.cY:null,T=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.RK:null,C=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.BN:null,I=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.UU:null,P=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.Ej:null,M=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.jD:null,k=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.UE:null,O=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.mG:null,R=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?n.ER:null,D=(e,t,r)=>{const i=new Map,s={platform:x,...r},o={...s.platform,_c:i};return(0,n.rD)(e,t,{...s,platform:o})}},18987:(e,t,r)=>{function i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)e[i]=r[i]}return e}r.d(t,{A:()=>n});var n=function e(t,r){function n(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=i({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in s)s[a]&&(o+="; "+a,!0!==s[a]&&(o+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+o}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],i={},n=0;n<r.length;n++){var s=r[n].split("="),o=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(i[a]=t.read(o,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){n(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
2URIComponent)}},{path:"/"})},19007:(e,t,r)=>{if(r.d(t,{A:()=>P}),"app"==r.j)var i=r(22080);if("app"==r.j)var n=r(72641);if("app"==r.j)var s=r(52851);if("app"==r.j)var o=r(24285);if("app"==r.j)var a=r(63374);if("app"==r.j)var l=r(80154);if("app"==r.j)var c=r(39759);if("app"==r.j)var u=r(79468);if("app"==r.j)var h=r(58340);if("app"==r.j)var d=r(19042);if("app"==r.j)var p=r(83973);if("app"==r.j)var f=r(12434);if("app"==r.j)var m=r(94573);if("app"==r.j)var g=r(66431);if("app"==r.j)var y=r(32729);if("app"==r.j)var v=r(92049);if("app"==r.j)var _=r(74616);if("app"==r.j)var b=r(78561);if("app"==r.j)var x=r(23149);if("app"==r.j)var w=r(1727);if("app"==r.j)var A=r(27422);if("app"==r.j)var E=r(41865);var S="[object Arguments]",T="[object Function]",C="[object Object]",I={};I[S]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[C]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[T]=I["[object WeakMap]"]=!1;const P="app"==r.j?function e(t,r,P,M,k,O){var R,D=1&r,L=2&r,B=4&r;if(P&&(R=k?P(t,M,k,O):P(t)),void 0!==R)return R;if(!(0,x.A)(t))return t;var z=(0,v.A)(t);if(z){if(R=(0,m.A)(t),!D)return(0,c.A)(t,R)}else{var j=(0,f.A)(t),F=j==T||"[object GeneratorFunction]"==j;if((0,_.A)(t))return(0,l.A)(t,D);if(j==C||j==S||F&&!k){if(R=L||F?{}:(0,y.A)(t),!D)return L?(0,h.A)(t,(0,a.A)(R,t)):(0,u.A)(t,(0,o.A)(R,t))}
2else{if(!I[j])return k?t:{};R=(0,g.A)(t,j,D)}}O||(O=new i.A);var N=O.get(t);if(N)return N;O.set(t,R),(0,w.A)(t)?t.forEach((function(i){R.add(e(i,r,P,i,t,O))})):(0,b.A)(t)&&t.forEach((function(i,n){R.set(n,e(i,r,P,n,t,O))}));var U=B?L?p.A:d.A:L?E.A:A.A,V=z?void 0:U(t);return(0,n.A)(V||t,(function(i,n){V&&(i=t[n=i]),(0,s.A)(R,n,e(i,r,P,n,t,O))})),R}:null},19042:(e,t,r)=>{if(r.d(t,{A:()=>o}),"app"==r.j)var i=r(33831);if("app"==r.j)var n=r(16489);if("app"==r.j)var s=r(27422);const o="app"==r.j?function(e){return(0,i.A)(e,s.A,n.A)}:null},19123:(e,t,r)=>{if(r.d(t,{A:()=>s}),"vendors"!=r.j)var i=r(70775);if("vendors"!=r.j)var n=r(66938);function s(e){const t=(0,n.V)(e);return(0,i.V1)(t&&"query"===t.operation,13),t}},19152:(e,t,r)=>{if(r.d(t,{A:()=>o}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(17275);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(35895);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var s=r(79586);function o(e,t){const r=this||n.A,o=t||r,a=s.A.from(o.headers);let l=o.data;return i.A.forEach(e,(function(e){l=e.call(r,l,a.normalize(),t?t.status:void 0)})),a.normalize(),l}},19735:(e,t,r)=>{r.d(t,{BC:()=>m,Bq:()=>a,FK:()=>f,HC:()=>c,HT:()=>n,K5:()=>u,YW:()=>l,b2:()=>p,c1:()=>d,kg:()=>g,kp:()=>s,tW:()=>o,tn:()=>i,wN:()=>h});var i=Math.abs,n=String.fromCharCode,s=Object.assign;function o(e,t){return 45^h(e,0)?(((t<<2^h(e,0))<<2^h(e,1))<<2^h(e,2))<<2^h(e,3):0}function a(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function h(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function f(e){return e.length}function m(e,t){return t.push(e),e}function g(e,t){return e.map(t).join("")}},19770:(e,t,r)=>{var i;r.d(t,{r:()=>f});var n=r(96540);if("searchresults/searchresults"==r.j)var s=r(16645);var o=r(16507),a=r(62735);if("searchresults/searchresults"==r.j)var l=r(70775);let c=!1;const u=(i||(i=r.t(n,2))).useSyncExternalStore,h="ReactNative"==(0,a.n)((()=>navigator.product)),d=(0,a.n)((()=>navigator.userAgent.indexOf("jsdom")>=0))||!1,p=(o.S||h)&&!d,f="searchresults/searchresults"==r.j?u||((e,t,r)=>{const i=t();s.g&&!c&&i!==t()&&(c=!0,l.V1.error(34));const[{inst:o},a]=n.useState({inst:{value:i,getSnapshot:t}});return p?n.useLayoutEffect((()=>{Object.assign(o,{value:i,getSnapshot:t}),m(o)&&a({inst:o})}),[e,i,t]):Object.assign(o,{value:i,getSnapshot:t}),n.useEffect((()=>(m(o)&&a({inst:o}),e((function(){m(o)&&a({inst:o})})))),[e]),i}):null;function m({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}},19895:(e,t,r)=>{if(r.d(t,{Q:()=>o}),"vendors"!=r.j)var i=r(56315);if("vendors"!=r.j)var n=r(92908);if("vendors"!=r.j)var s=r(64878);function o(e,t){return void 0===t&&(t=0),(0,n.N)((function(r,n){r.subscribe((0,s._)(n,(function(r){return(0,i.N)(n,e,(function(){return n.next(r)}),t)}),(function(){return(0,i.N)(n,e,(function(){return n.complete()}),t)}),(function(r){return(0,i.N)(n,e,(function(){return n.error(r)}),t)})))}))}},20014:(e,t,r)=>{r.d(t,{A:()=>h});var i={};r.r(i),r.d(i,{hasBrowserEnv:()=>o,hasStandardBrowserEnv:()=>l,hasStandardBrowserWebWorkerEnv:()=>c,navigator:()=>a,origin:()=>u});var n=r(95267);const s={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:n.A,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},o="undefined"!=typeof window&&"undefined"!=typeof document,a="object"==typeof navigator&&navigator||void 0,l=o&&(!a||["ReactNative","NativeScript","NS"].indexOf(a.product)<0),c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,u=o&&window.location.href||"http://localhost",h={...i,...s}},20478:(e,t,r)=>{r.d(t,{e:()=>n});var i=r(35974);class n extends Error{static is(e){return(0,i.t)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}
2),this.name="UnconventionalError",(0,i.w)(this),Object.setPrototypeOf(this,n.prototype)}}},20674:(e,t,r)=>{r.d(t,{A:()=>n});var i=(0,r(80702).A)(Object,"create");const n="app"==r.j?i:null},20903:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(19007);const n="app"==r.j?function(e){return(0,i.A)(e,5)}:null},21262:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(17087);if("contactslistv2/contactslistv2"==r.j)var n=r(56199);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,l(i.key),i)}}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var c=function(e){e&&(window.document.title=e)},u="contactslistv2/contactslistv2"==r.j?function(){function e(t){var r=this,i=t.windowTitle,s=t.writeDelay,o=void 0===s?400:s,l=t.createURL,u=t.parseURL,h=t.getLocation,d=t.start,p=t.dispose,f=t.push,m=t.cleanUrlOnDispose;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"$$type","ais.browser"),a(this,"windowTitle",void 0),a(this,"writeDelay",void 0),a(this,"_createURL",void 0),a(this,"parseURL",void 0),a(this,"getLocation",void 0),a(this,"writeTimer",void 0),a(this,"_onPopState",void 0),a(this,"inPopState",!1),a(this,"isDisposed",!1),a(this,"latestAcknowledgedHistory",0),a(this,"_start",void 0),a(this,"_dispose",void 0),a(this,"_push",void 0),a(this,"_cleanUrlOnDispose",void 0),this.windowTitle=i,this.writeTimer=void 0,this.writeDelay=o,this._createURL=l,this.parseURL=u,this.getLocation=h,this._start=d,this._dispose=p,this._push=f,this._cleanUrlOnDispose=void 0===m||m,(0,n.x)((function(e){var t=e.window,i=r.windowTitle&&r.windowTitle(r.read());c(i),r.latestAcknowledgedHistory=t.history.length}))}var t,r,s;return t=e,(r=[{key:"read",value:function(){return this.parseURL({qsModule:i,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,n.x)((function(r){var i=r.window,n=t.createURL(e),s=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout((function(){c(s),t.shouldWrite(n)&&(t._push?t._push(n):i.history.pushState(e,s||"",n),t.latestAcknowledgedHistory=i.history.length),t.inPopState=!1,t.writeTimer=void 0}),t.writeDelay)}))}},{key:"onUpdate",value:function(e){var t=this;this._start&&this._start((function(){e(t.read())})),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},(0,n.x)((function(e){e.window.addEventListener("popstate",t._onPopState)}))}},{key:"createURL",value:function(e){return this._createURL({qsModule:i,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,(0,n.x)((function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)})),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return(0,n.x)((function(r){var i=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var n=!(t.isDisposed&&t.latestAcknowledgedHistory!==i.history.length);return!t.inPopState&&n&&e!==i.location.href}))}}])&&o(t.prototype,r),s&&o(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}():null;function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,i=e.location,n=i.protocol,s=i.hostname,o=i.port,a=void 0===o?"":o,l=i.pathname,c=i.hash,u=t.stringify(r),h=""===a?"":":".concat(a);return u?"".concat(n,"//").concat(s).concat(h).concat(l,"?").concat(u).
2concat(c):"".concat(n,"//").concat(s).concat(h).concat(l).concat(c)}:t,i=e.parseURL,s=void 0===i?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:i,o=e.writeDelay,a=void 0===o?400:o,l=e.windowTitle,c=e.getLocation,h=void 0===c?function(){return(0,n.x)((function(e){return e.window.location}),{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,d=e.start,p=e.dispose,f=e.push,m=e.cleanUrlOnDispose;return new u({createURL:r,parseURL:s,writeDelay:a,windowTitle:l,getLocation:h,start:d,dispose:p,push:f,cleanUrlOnDispose:m})}},21510:(e,t,r)=>{r.d(t,{v:()=>n});const i=new Map;function n(e){const t=i.get(e)||1;return i.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},21526:(e,t,r)=>{function i(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)}r.d(t,{u:()=>i})},21641:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={update:function(){var e=this,t=e.rtl,r=e.params.pagination;if(r.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var s,o=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el,l=e.params.loop?Math.ceil((o-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((s=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>o-1-2*e.loopedSlides&&(s-=o-2*e.loopedSlides),s>l-1&&(s-=l),s<0&&"bullets"!==e.params.paginationType&&(s=l+s)):s=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===r.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var c,u,h,d=e.pagination.bullets;if(r.dynamicBullets&&(e.pagination.bulletSize=d.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(r.dynamicMainBullets+4)+"px"),r.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=s-e.previousIndex,e.pagination.dynamicBulletIndex>r.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=r.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),c=s-e.pagination.dynamicBulletIndex,h=((u=c+(Math.min(d.length,r.dynamicMainBullets)-1))+c)/2),d.removeClass(r.bulletActiveClass+" "+r.bulletActiveClass+"-next "+r.bulletActiveClass+"-next-next "+r.bulletActiveClass+"-prev "+r.bulletActiveClass+"-prev-prev "+r.bulletActiveClass+"-main"),a.length>1)d.each((function(e){var t=(0,i.A)(e),n=t.index();n===s&&t.addClass(r.bulletActiveClass),r.dynamicBullets&&(n>=c&&n<=u&&t.addClass(r.bulletActiveClass+"-main"),n===c&&t.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),n===u&&t.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next"))}));else{var p=d.eq(s),f=p.index();if(p.addClass(r.bulletActiveClass),r.dynamicBullets){for(var m=d.eq(c),g=d.eq(u),y=c;y<=u;y+=1)d.eq(y).addClass(r.bulletActiveClass+"-main");if(e.params.loop)if(f>=d.length-r.dynamicMainBullets){for(var v=r.dynamicMainBullets;v>=0;v-=1)d.eq(d.length-v).addClass(r.bulletActiveClass+"-main");d.eq(d.length-r.dynamicMainBullets-1).addClass(r.bulletActiveClass+"-prev")}else m.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),g.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next");else m.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),g.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next")}}if(r.dynamicBullets){var _=Math.min(d.length,r.dynamicMainBullets+4),b=(e.pagination.bulletSize*_-e.pagination.bulletSize)/2-h*e.pagination.bulletSize,x=t?"right":"left";d.css(e.isHorizontal()?x:"top",b+"px")}}if("fraction"===r.type&&(a.find((0,n.fq)(r.currentClass)).text(r.formatFractionCurrent(s+1)),a.find((0,n.fq)(r.totalClass)).text(r.formatFractionTotal(l))),"progressbar"===r.type){var w;w=r.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var A=(s+1)/l,E=1,S=1;"horizontal"===w?E=A:S=A,a.find((0,n.fq)(r.progressbarFillClass)).transform("translate3d(0,
20,0) scaleX("+E+") scaleY("+S+")").transition(e.params.speed)}"custom"===r.type&&r.renderCustom?(a.html(r.renderCustom(e,s+1,l)),e.emit("paginationRender",a[0])):e.emit("paginationUpdate",a[0]),e.params.watchOverflow&&e.enabled&&a[e.isLocked?"addClass":"removeClass"](r.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){var o=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&!e.params.loop&&o>r&&(o=r);for(var a=0;a<o;a+=1)t.renderBullet?s+=t.renderBullet.call(e,a,t.bulletClass):s+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";i.html(s),e.pagination.bullets=i.find((0,n.fq)(t.bulletClass))}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',i.html(s)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this;e.params.pagination=(0,n.IY)(e.$el,e.params.pagination,e.params.createElements,{el:"swiper-pagination"});var t=e.params.pagination;if(t.el){var r=(0,i.A)(t.el);0!==r.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&r.length>1&&(r=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&r.addClass(t.clickableClass),r.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(r.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&r.addClass(t.progressbarOppositeClass),t.clickable&&r.on("click",(0,n.fq)(t.bulletClass),(function(t){t.preventDefault();var r=(0,i.A)(this).index()*e.params.slidesPerGroup;e.params.loop&&(r+=e.loopedSlides),e.slideTo(r)})),(0,n.X$)(e.pagination,{$el:r,el:r[0]}),e.enabled||r.addClass(t.lockClass))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var r=e.pagination.$el;r.removeClass(t.hiddenClass),r.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&r.off("click",(0,n.fq)(t.bulletClass))}}};const a={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){(0,n.wD)(this,{pagination:s({dynamicBulletIndex:0},o)})},on:{init:function(e){e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(e){(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange:function(e){e.params.loop||e.pagination.update()},slidesLengthChange:function(e){e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(e){e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(e){e.pagination.destroy()},"enable disable":function(e){var t=e.pagination.$el;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)},click:function(e,t){var r=t.target;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&e.pagination.$el.length>0&&!(0,i.A)(r).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;!0===e.pagination.$el.hasClass(e.params.pagination.hiddenClass)?e.emit("paginationShow"):e.emit("paginationHide"),e.pagination.$el.toggleClass(e.params.pagination.hiddenClass)}}}}},21659:(e,t,r)=>{if(r.r(t),r.d(t,{ApolloCache:()=>p.k,ApolloClient:()=>i.R,ApolloLink:()=>v.C,CombinedGraphQLErrors:()=>o.K,CombinedProtocolErrors:()=>a.d,DocumentTransform:()=>k.c,HttpLink:()=>S.P,InMemoryCache:()=>m.D,LinkError:()=>l.R,LocalStateError:()=>c.R,MissingFieldError:()=>y.Z,NetworkStatus:()=>s.p,Observable:()=>D.c,ObservableQuery:()=>n.U,ServerError:()=>u.g,ServerParseError:()=>h.f,UnconventionalError:()=>d.e,build:()=>z.j,checkFetcher:()=>E.S,concat:()=>_.x,createHttpLink:()=>S.$,createSignalIfSupported:()=>T.S,defaultDataIdFromObject:()=>f.or,defaultPrinter:()=>C.i1,disableExperimentalFragmentVariables:()=>B.qj,disableFragmentWarnings:()=>B.gi,empty:()=>b.I,enableExperimentalFragmentVariables:()=>B.VC,execute:()=>x.g,fallbackHttpConfig:()=>C.R4,from:()=>w.H,gql:()=>
2B.J1,isNetworkRequestSettled:()=>O.D,isReference:()=>R.A,makeVar:()=>g.UT,parseAndCheckHttpResponse:()=>I.O,resetCaches:()=>B.Nh,rewriteURIForGET:()=>P.E,selectHttpOptionsAndBody:()=>C.Wz,selectHttpOptionsAndBodyInternal:()=>C.HY,selectURI:()=>M.z,setLogVerbosity:()=>L.Q9,split:()=>A.l,version:()=>z.r}),"vendors"!=r.j)var i=r(89587);if("vendors"!=r.j)var n=r(69227);if("vendors"!=r.j)var s=r(88599);if("vendors"!=r.j)var o=r(78740);if("vendors"!=r.j)var a=r(62335);if("vendors"!=r.j)var l=r(23761);if("vendors"!=r.j)var c=r(38973);if("vendors"!=r.j)var u=r(61024);if("vendors"!=r.j)var h=r(59727);if("vendors"!=r.j)var d=r(20478);if("vendors"!=r.j)var p=r(48262);if("vendors"!=r.j)var f=r(73194);if("vendors"!=r.j)var m=r(62602);if("vendors"!=r.j)var g=r(90738);if("vendors"!=r.j)var y=r(24253);if("vendors"!=r.j)var v=r(16839);if("vendors"!=r.j)var _=r(98008);if("vendors"!=r.j)var b=r(39599);if("vendors"!=r.j)var x=r(74081);if("vendors"!=r.j)var w=r(42548);if("vendors"!=r.j)var A=r(24458);if("vendors"!=r.j)var E=r(83438);if("vendors"!=r.j)var S=r(24504);if("vendors"!=r.j)var T=r(83746);if("vendors"!=r.j)var C=r(84594);if("vendors"!=r.j)var I=r(81358);if("vendors"!=r.j)var P=r(9162);if("vendors"!=r.j)var M=r(88039);if("vendors"!=r.j)var k=r(29993);if("vendors"!=r.j)var O=r(65204);if("vendors"!=r.j)var R=r(67194);if("vendors"!=r.j)var D=r(93776);if("vendors"!=r.j)var L=r(70775);if("vendors"!=r.j)var B=r(2135);if("vendors"!=r.j)var z=r(10435)},22031:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(52851);if("app"==r.j)var n=r(52528);const s="app"==r.j?function(e,t,r,s){var o=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var c=t[a],u=s?s(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),o?(0,n.A)(r,c,u):(0,i.A)(r,c,u)}return r}:null},22080:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(29293);const n=function(){this.__data__=new i.A,this.size=0};const s=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const o=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var l=r(68335),c=r(65915);const u=function(e,t){var r=this.__data__;if(r instanceof i.A){var n=r.__data__;if(!l.A||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new c.A(n)}return r.set(e,t),this.size=r.size,this};function h(e){var t=this.__data__=new i.A(e);this.size=t.size}h.prototype.clear=n,h.prototype.delete=s,h.prototype.get=o,h.prototype.has=a,h.prototype.set=u;const d=h},22564:(e,t,r)=>{if(r.d(t,{m:()=>s}),"vendors"!=r.j)var i=r(94384);if("vendors"!=r.j)var n=r(96744);function s(e){n.f.setTimeout((function(){var t=i.$.onUnhandledError;if(!t)throw e;t(e)}))}},22711:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={setTranslate:function(){var e,t=this,r=t.$el,n=t.$wrapperEl,s=t.slides,o=t.width,a=t.height,l=t.rtlTranslate,c=t.size,u=t.browser,h=t.params.cubeEffect,d=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled,f=0;h.shadow&&(d?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=(0,i.A)('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:o+"px"})):0===(e=r.find(".swiper-cube-shadow")).length&&(e=(0,i.A)('<div class="swiper-cube-shadow"></div>'),r.append(e)));for(var m=0;m<s.length;m+=1){var g=s.eq(m),y=m;p&&(y=parseInt(g.attr("data-swiper-slide-index"),10));var v=90*y,_=Math.floor(v/360);l&&(v=-v,_=Math.floor(-v/360));var b=Math.max(Math.min(g[0].progress,1),-1),x=0,w=0,A=0;y%4==0?(x=4*-_*c,A=0):(y-1)%4==0?(x=0,A=4*-_*c):(y-2)%4==0?(x=c+4*_*c,A=c):(y-3)%4==0&&(x=-c,A=3*c+4*c*_),l&&(x=-x),d||(w=x,x=0);var E="rotateX("+(d?0:-v)+"deg) rotateY("+(d?v:0)+"deg) translate3d("+x+"px, "+w+"px, "+A+"px)";if(b<=1&&b>-1&&(f=90*y+90*b,l&&(f=90*-y-90*b)),g.transform(E),h.slideShadows){var S=d?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),T=d?g.f
2ind(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===S.length&&(S=(0,i.A)('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),g.append(S)),0===T.length&&(T=(0,i.A)('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),g.append(T)),S.length&&(S[0].style.opacity=Math.max(-b,0)),T.length&&(T[0].style.opacity=Math.max(b,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),h.shadow)if(d)e.transform("translate3d(0px, "+(o/2+h.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var C=Math.abs(f)-90*Math.floor(Math.abs(f)/90),I=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),P=h.shadowScale,M=h.shadowScale/I,k=h.shadowOffset;e.transform("scale3d("+P+", 1, "+M+") translate3d(0px, "+(a/2+k)+"px, "+-a/2/M+"px) rotateX(-90deg)")}var O=u.isSafari||u.isWebView?-c/2:0;n.transform("translate3d(0px,0,"+O+"px) rotateX("+(t.isHorizontal()?0:f)+"deg) rotateY("+(t.isHorizontal()?-f:0)+"deg)")},setTransition:function(e){var t=this,r=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&r.find(".swiper-cube-shadow").transition(e)}};const a={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){(0,n.wD)(this,{cubeEffect:s({},o)})},on:{beforeInit:function(e){if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};(0,n.X$)(e.params,t),(0,n.X$)(e.originalParams,t)}},setTranslate:function(e){"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e,t){"cube"===e.params.effect&&e.cubeEffect.setTransition(t)}}}},22751:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={setTranslate:function(){for(var e=this,t=e.width,r=e.height,n=e.slides,s=e.slidesSizesGrid,o=e.params.coverflowEffect,a=e.isHorizontal(),l=e.translate,c=a?t/2-l:r/2-l,u=a?o.rotate:-o.rotate,h=o.depth,d=0,p=n.length;d<p;d+=1){var f=n.eq(d),m=s[d],g=(c-f[0].swiperSlideOffset-m/2)/m*o.modifier,y=a?u*g:0,v=a?0:u*g,_=-h*Math.abs(g),b=o.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(o.stretch)/100*m);var x=a?0:b*g,w=a?b*g:0,A=1-(1-o.scale)*Math.abs(g);Math.abs(w)<.001&&(w=0),Math.abs(x)<.001&&(x=0),Math.abs(_)<.001&&(_=0),Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(A)<.001&&(A=0);var E="translate3d("+w+"px,"+x+"px,"+_+"px) rotateX("+v+"deg) rotateY("+y+"deg) scale("+A+")";if(f.transform(E),f[0].style.zIndex=1-Math.abs(Math.round(g)),o.slideShadows){var S=a?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),T=a?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=(0,i.A)('<div class="swiper-slide-shadow-'+(a?"left":"top")+'"></div>'),f.append(S)),0===T.length&&(T=(0,i.A)('<div class="swiper-slide-shadow-'+(a?"right":"bottom")+'"></div>'),f.append(T)),S.length&&(S[0].style.opacity=g>0?g:0),T.length&&(T[0].style.opacity=-g>0?-g:0)}}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}};const a={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){(0,n.wD)(this,{coverflowEffect:s({},o)})},on:{beforeInit:function(e){"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(e){"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e,t){"coverflow"===e.params.effect&&e.coverflowEffect.setTransition(t)}}}},23029:(e,t,r)=>{function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>i})},23105:(e,t,r)=>{r.d(t,{h:()=>i});const i=Symbol.for("apollo.skipToken")},23149:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}:null},23213:(e,t,r)=>{if(r.d(t,{I:()=>s}),"vendors"!=r.j)var i=r(86271);if("vendors"!=r.j)var n=r(45318);function s(e,t){let r=null;e.directives&&(r={}
2,e.directives.forEach((e=>{r[e.name.value]={},e.arguments&&e.arguments.forEach((({name:i,value:s})=>(0,n.J)(r[e.name.value],i,s,t)))})));let s=null;return e.arguments&&e.arguments.length&&(s={},e.arguments.forEach((({name:e,value:r})=>(0,n.J)(s,e,r,t)))),(0,i.o)(e.name.value,s,r)}},23326:(e,t,r)=>{if(r.d(t,{p:()=>n}),"vendors"!=r.j)var i=r(21510);function n(e,t=0){const r=(0,i.v)("stringifyForDisplay");return JSON.stringify(e,((e,t)=>void 0===t?r:t),t).split(JSON.stringify(r)).join("<undefined>")}},23358:(e,t,r)=>{if(r.d(t,{V:()=>s}),"contactslistv2/contactslistv2"==r.j)var i=r(55222);if("contactslistv2/contactslistv2"==r.j)var n=r(66860);function s(e,t){return(0,n.Z)(i.A,e,t)}},23761:(e,t,r)=>{r.d(t,{R:()=>s,k:()=>n});const i=new WeakSet;function n(e){i.add(e)}const s={is:e=>i.has(e)}},24253:(e,t,r)=>{r.d(t,{Z:()=>i});class i extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=i.prototype}missing}},24285:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(22031);if("app"==r.j)var n=r(27422);const s="app"==r.j?function(e,t){return e&&(0,i.A)(t,(0,n.A)(t),e)}:null},24458:(e,t,r)=>{r.d(t,{l:()=>i});const i=r(16839).C.split},24504:(e,t,r)=>{r.d(t,{P:()=>b,$:()=>x});var i=r(16839),n=r(91581);class s extends i.C{constructor(e={}){super(((t,r)=>{const i=t.client,s=i.queryManager.clientOptions,o=t.getContext();{const{name:r,version:i,transport:a="headers"}=(0,n.o)({},s.clientAwareness,e.clientAwareness,o.clientAwareness);"headers"===a&&t.setContext((({headers:e})=>({headers:(0,n.o)({"apollographql-client-name":r,"apollographql-client-version":i},e)})))}{const{transport:r="extensions"}=(0,n.o)({},s.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,n.o)({clientLibrary:{name:"@apollo/client",version:i.version}},t.extensions)),"headers"===r&&t.setContext((({headers:e})=>({headers:(0,n.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},e)})))}return r(t)}))}}var o=r(93776),a=r(84705);var l=r(66938);function c(e,t){return(0,l.V)(e)?.operation===t}var u=r(16645),h=r(62735),d=r(83438),p=r(81358),f=r(9162),m=r(84594),g=r(88039);const y=(0,h.n)((()=>fetch));function v(){}class _ extends i.C{constructor(e={}){let{uri:t="/graphql",fetch:r,print:i=m.i1,includeExtensions:s,preserveHeaderCase:l,useGETForQueries:_,includeUnusedVariables:b=!1,...x}=e;u.g&&(0,d.S)(r||y);const w={http:(0,n.o)({includeExtensions:s,preserveHeaderCase:l}),options:x.fetchOptions,credentials:x.credentials,headers:x.headers};super((e=>{let n=(0,g.z)(e,t);const s=e.getContext(),l={...s.http};(function(e){return c(e,"subscription")})(e.query)&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);const u={http:l,options:s.fetchOptions,credentials:s.credentials,headers:s.headers},{options:d,body:x}=(0,m.HY)(e,i,m.R4,w,u);x.variables&&!b&&(x.variables=function(e,t){const r={...e},i=new Set(Object.keys(e));return(0,a.YR)(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}
2),i.forEach((e=>{delete r[e]})),r}(x.variables,e.query));let A=new AbortController,E=()=>{A=void 0};if(d.signal){const e=d.signal,t=()=>{A?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),E=()=>{A?.signal.removeEventListener("abort",E),A=void 0,e.removeEventListener("abort",t),E=v},A.signal.addEventListener("abort",E,{once:!0})}return d.signal=A.signal,_&&!function(e){return c(e,"mutation")}(e.query)&&(d.method="GET"),new o.c((t=>{if("GET"===d.method){const{newURI:e,parseError:t}=(0,f.E)(n,x);if(t)throw t;n=e}else d.body=JSON.stringify(x);const i=r||(0,h.n)((()=>fetch))||y,s=t.next.bind(t);return i(n,d).then((t=>{e.setContext({response:t});const r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?(0,p.t)(t,s):(0,p.O)(e)(t).then(s)})).then((()=>{E(),t.complete()})).catch((e=>{E(),t.error(e)})),()=>{A&&A.abort()}}))}))}}class b extends i.C{constructor(e={}){const{left:t,right:r,request:n}=i.C.from([new s(e),new _(e)]);super(n),Object.assign(this,{left:t,right:r})}}const x=(e={})=>new b(e)},24534:(e,t,r)=>{r.d(t,{IO:()=>h,LU:()=>l,MS:()=>i,Sv:()=>u,XZ:()=>a,YK:()=>o,j:()=>s,vd:()=>n,yE:()=>c});var i="-ms-",n="-moz-",s="-webkit-",o="comm",a="rule",l="decl",c="@import",u="@keyframes",h="@layer"},24619:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(20674);const n=function(){this.__data__=i.A?(0,i.A)(null):{},this.size=0};const s=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var o=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(i.A){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0};var l=Object.prototype.hasOwnProperty;const c=function(e){var t=this.__data__;return i.A?void 0!==t[e]:l.call(t,e)};const u=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=i.A&&void 0===t?"__lodash_hash_undefined__":t,this};function h(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}h.prototype.clear=n,h.prototype.delete=s,h.prototype.get=a,h.prototype.has=c,h.prototype.set=u;const d=h},24639:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(){return!1}:null},25175:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(79672),n=r(53098);const s=function(e){return(0,n.A)(e)&&"[object Arguments]"==(0,i.A)(e)};var o=Object.prototype,a=o.hasOwnProperty,l=o.propertyIsEnumerable;const c=s(function(){return arguments}())?s:function(e){return(0,n.A)(e)&&a.call(e,"callee")&&!l.call(e,"callee")}},25353:(e,t,r)=>{r.d(t,{A:()=>n});var i=/^(?:0|[1-9]\d*)$/;const n="app"==r.j?function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}:null},25725:(e,t,r)=>{if(r.d(t,{w:()=>n}),"vendors"!=r.j)var i=r(45318);function n(e){const t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((e=>{e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)})),t}},26187:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(51648),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={run:function(){var e=this,t=e.slides.eq(e.activeIndex),r=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(r=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=(0,n.dY)((function(){var t;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),t=e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(t=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(t=e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),t=e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(t=e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(t=e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),(e.params.cssMode&&e.autoplay.running||!1===t)&&e.autoplay.run()}),r)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;
vendor: 1,312 bytes, line 2
2t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((function(e){t.$wrapperEl[0].addEventListener(e,t.autoplay.onTransitionEnd)})):(t.autoplay.paused=!1,t.autoplay.run())))},onVisibilityChange:function(){var e=this,t=(0,i.YE)();"hidden"===t.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===t.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(e){var t=this;t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((function(e){t.$wrapperEl[0].removeEventListener(e,t.autoplay.onTransitionEnd)})),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())},onMouseEnter:function(){var e=this;e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause(),["transitionend","webkitTransitionEnd"].forEach((function(t){e.$wrapperEl[0].removeEventListener(t,e.autoplay.onTransitionEnd)}))},onMouseLeave:function(){var e=this;e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,e.autoplay.run())},attachMouseEvents:function(){var e=this;e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",e.auto
2play.onMouseEnter),e.$el.on("mouseleave",e.autoplay.onMouseLeave))},detachMouseEvents:function(){var e=this;e.$el.off("mouseenter",e.autoplay.onMouseEnter),e.$el.off("mouseleave",e.autoplay.onMouseLeave)}};const a={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}},create:function(){(0,n.wD)(this,{autoplay:s({},o,{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),(0,i.YE)().addEventListener("visibilitychange",e.autoplay.onVisibilityChange),e.autoplay.attachMouseEvents())},beforeTransitionStart:function(e,t,r){e.autoplay.running&&(r||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderFirstMove:function(e){e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(e){e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.detachMouseEvents(),e.autoplay.running&&e.autoplay.stop(),(0,i.YE)().removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}}},27291:(e,t,r)=>{r.d(t,{B:()=>c});var i=r(31635),n=r(93776),s=r(52616),o=(0,r(82947).L)((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),a=r(6174),l=r(7008),c=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,i.__extends)(t,e),t.prototype.lift=function(e){var t=new u(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new o},t.prototype.next=function(e){var t=this;(0,l.Y)((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var s=(0,i.__values)(t.currentObservers),o=s.next();!o.done;o=s.next()){o.value.next(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;(0,l.Y)((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;(0,l.Y)((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,i=r.hasError,n=r.isStopped,o=r.observers;return i||n?s.Kn:(this.currentObservers=null,o.push(e),new s.yU((function(){t.currentObservers=null,(0,a.o)(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,i=t.thrownError,n=t.isStopped;r?e.error(i):n&&e.complete()},t.prototype.asObservable=function(){var e=new n.c;return e.source=this,e},t.create=function(e,t){return new u(e,t)},t}(n.c),u=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,i.__extends)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:s.Kn},t}(c)},27422:(e,t,r)=>{if(r.d(t,{A:()=>
2o}),"app"==r.j)var i=r(50423);if("app"==r.j)var n=r(17064);if("app"==r.j)var s=r(38446);const o="app"==r.j?function(e){return(0,s.A)(e)?(0,i.A)(e):(0,n.A)(e)}:null},27800:(e,t,r)=>{if(r.d(t,{A:()=>n}),/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var i=r(43145);function n(e,t){if(e){if("string"==typeof e)return(0,i.A)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,i.A)(e,t):void 0}}},28139:(e,t,r)=>{r.d(t,{W:()=>n});var i=r(96540),n="contactslistv2/contactslistv2"==r.j?(0,i.createContext)(null):null},28455:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(19770);function s(e){return(0,n.r)(i.useCallback((t=>e.onNextChange((function r(){t(),e.onNextChange(r)}))),[e]),e,e)}},28670:(e,t,r)=>{r.d(t,{Sg:()=>i});const i=Symbol.for("apollo.hook.wrappers")},28797:(e,t,r)=>{r.d(t,{X:()=>o});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(70775);if("searchresults/searchresults"==r.j)var s=r(6741);const o=({client:e,children:t})=>{const r=(0,s.l)(),o=i.useContext(r),a=i.useMemo((()=>({...o,client:e||o.client})),[o,e]);return(0,n.V1)(a.client,38),i.createElement(r.Provider,{value:a},t)}},29293:(e,t,r)=>{r.d(t,{A:()=>h});const i=function(){this.__data__=[],this.size=0};var n=r(10169),s=Array.prototype.splice;const o=function(e){var t=this.__data__,r=(0,n.A)(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)};const a=function(e){var t=this.__data__,r=(0,n.A)(t,e);return r<0?void 0:t[r][1]};const l=function(e){return(0,n.A)(this.__data__,e)>-1};const c=function(e,t){var r=this.__data__,i=(0,n.A)(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=l,u.prototype.set=c;const h=u},29320:(e,t,r)=>{if(r.d(t,{G:()=>n}),"contactslistv2/contactslistv2"==r.j)var i=r(15164);function n(e){var t=i.sn.highlightPreTag,r=i.sn.highlightPostTag;return e.map((function(e){return e.isHighlighted?t+e.value+r:e.value})).join("")}},29426:(e,t,r)=>{if(r.d(t,{A:()=>o}),/^(app|searchresults\/searchresults)$/.test(r.j))var i=r(53954);if(/^(app|searchresults\/searchresults)$/.test(r.j))var n=r(52176);if(/^(app|searchresults\/searchresults)$/.test(r.j))var s=r(56822);function o(e){var t=(0,n.A)();return function(){var r,n=(0,i.A)(e);if(t){var o=(0,i.A)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,s.A)(this,r)}}},29565:(e,t,r)=>{r.d(t,{A:()=>o});const i=r(41917).A["__core-js_shared__"];var n,s=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";const o=function(e){return!!s&&s in e}},29718:(e,t,r)=>{if(r.d(t,{Y:()=>l}),"contactslistv2/contactslistv2"==r.j)var i=r(51982);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return e.some((function(e){return e.isHighlighted}))?e.map((function(t,r){return o(o({},t),{},{isHighlighted:!(0,i.S)(e,r)})})):e.map((function(e){return o(o({},e),{},{isHighlighted:!1})}))}},29756:(e,t,r)=>{if(r.d(t,{v:()=>s}),"vendors"!=r.j)var i=r(84481);if("vendors"!=r.j)var n=r(8438);function s(e,t){return(0,i.M)((0,n.C)(e),t)}},29993:(e,t,r)=>{if(r.d(t,{c:()=>u}),"vendors"!=r.j)var i=r(11744);var n=r(32453),s=r(6839);if("vendors"!=r.j)var o=r(53489);if("vendors"!=r.j)var a=r(70775);if("vendors"!=r.j)var l=r(81212);function c(e){return e}class u{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new u(c,{cache:!1})}static split(e,t,r=u.identity()){return Object.assign(new u((i=>(e(i)?t:r).transformDocument(i)),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){const e=new n.b;this.performWork=(0,s.LV)(u.prototype.performWork.bind(this),{makeCacheKey:t=>{const r=this.getCacheKey(t);if(r)return(0,a.V1)(Array.isArray(r),20),e.lookupArray(r)},max:l.v["documentTransform.cache"],cache:i.l})}}performWork(e){return(0,o.s)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new u((t=>
2e.transformDocument(this.transformDocument(t))),{cache:!1}),{left:this,right:e})}left;right}},30052:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(241);if("app"==r.j)var n=r(45572);if("app"==r.j)var s=r(92049);if("app"==r.j)var o=r(61882);var a="app"==r.j?1/0:null,l=i.A?i.A.prototype:void 0,c=l?l.toString:void 0;const u="app"==r.j?function e(t){if("string"==typeof t)return t;if((0,s.A)(t))return(0,n.A)(t,e)+"";if((0,o.A)(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-a?"-0":r}:null},30066:(e,t,r)=>{r.d(t,{A:()=>i});const i=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?function(e,t){let r,i,n=0,s=1e3/t;const o=(t,s=Date.now())=>{n=s,r=null,i&&(clearTimeout(i),i=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=s?o(e,t):(r=e,i||(i=setTimeout((()=>{i=null,o(r)}),s-a)))},()=>r&&o(r)]}:null},30122:(e,t,r)=>{r.d(t,{A:()=>C});var i=r(74103),n=r(74243);if("contactslistv2/contactslistv2"==r.j)var s=r(90041);if("contactslistv2/contactslistv2"==r.j)var o=r(75373);if("contactslistv2/contactslistv2"==r.j)var a=r(4519);if("contactslistv2/contactslistv2"==r.j)var l=r(47109);if("contactslistv2/contactslistv2"==r.j)var c=r(14613);if("contactslistv2/contactslistv2"==r.j)var u=r(43875);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var d="contactslistv2/contactslistv2"==r.j?["initialSearchParameters"]:null,p="contactslistv2/contactslistv2"==r.j?["initialRecommendParameters"]:null;function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var b=(0,n.V)({name:"index-widget"});function x(e,t){var r=t.state,i=t.recommendState,n=t.isPageReset,s=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:n,_uiState:s})),i!==e.recommendState&&(e.recommendState=i)}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce((function(e,r){return(0,s.l)(r)?e:r.getWidgetUiState||r.getWidgetState?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e}),r)}function A(e,t){var r=t.initialSearchParameters,i=_(t,d);return e.reduce((function(e,t){return!t.getWidgetSearchParameters||(0,s.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):t.getWidgetSearchParameters(e,i)}),r)}function E(e,t){var r=t.initialRecommendParameters,i=_(t,p);return e.reduce((function(e,t){return!(0,s.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,i):e}),r)}function S(e){var t=e.filter(s.l);0!==t.length&&t.forEach((function(e){var t=e.getHelper();x(t,{state:t.state.resetPage(),recommendState:t.recommendState,isPageReset:!0}),S(e.getWidgets())}))}function T(e){return e.filter(s.l).reduce((function(e,t){return e.concat.apply(e,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}].concat(y(T(t.getWidgets()))))}),[])}const C="contactslistv2/contactslistv2"==r.j?function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw new Error(b("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,n=e.indexId,h=void 0===n?r:n,d=e.EXPERIMENTAL_isolated,p=void 0!==d&&d,f=[],v={},_=null,C=null,P=null,M=null,k=null,O=!1,R=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:p,getIndexName:function(){return r},getIndexId:function(){return h},getHelper:function(){return P},getResults:function(){var e;return null!==(e=M)&&void 0!==e&&e.lastResults?(M.lastResults._state=P.state,M.lastResults):null},getResultsForWidget:function(e){var t;return"recommend"!==e.dependsOn||(0,s.l)(e)||void 0===e.$$id?this.getResults():null!==(t=P)&&void 0!==t&&t.lastRecommendResults?P.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return k},getScopedResults:function(){var e=this.getParent();return T(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return p?null:C},createURL:function(e){return"function"==typeof e?_._createURL(g({},h,e(v))):_._createURL(g({},h,w(f,{searchParameters:e,helper:P})))},scheduleLocalSearch:(0,o.v)((function(){var e;p&&(null===(e=P)||void 0===e||e.search())})),getWidgets:function(){return f},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw new Error(b("The `addWidgets` method expects an array of widgets."));var r=e.reduce((function(e,t){return e.concat(Array.isArray(t)?t:[t])}),[]);if(r.some((function(e){return"function"!=typeof e.init&&"function"!=typeof e.render})))throw new Error(b("The widget definition expects a `render` and/or an `init` method."));return r.forEach((function(e){e.parent=t,(0,s.l)(e)||(_&&"recommend"===e.dependsOn?_._hasRecommendWidget=!0:_?_._hasSearchWidget=!0:"recommend"===e.dependsOn?O=!0:R=!0,(0,u.t)(e))})),f=f.concat(r),_&&Boolean(r.length)&&(x(P,{state:A(f,{uiState:v,initialSearchParameters:P.state}),recommendState:E(f,{uiState:v,initialRecommendParameters:P.recommendState}),_uiState:v}),r.forEach((function(e){e.getRenderState&&I({renderState:e.getRenderState(_.renderState[t.getIndexId()]||{},(0,a.e)(_,t,_._initialUiState)),instantSearchInstance:_,parent:t})})),r.forEach((function(e){e.init&&e.init((0,a.e)(_,t,_._initialUiState))})),p?this.scheduleLocalSearch():_.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw new Error(b("The `removeWidgets` method expects an array of widgets."));var r=e.reduce((function(e,t){return e.concat(Array.isArray(t)?t:[t])}),[]);if(r.some((function(e){return"function"!=typeof e.dispose})))throw new Error(b("The widget definition expects a `dispose` method."));if((f=f.filter((function(e){return-1===r.indexOf(e)}
2))).forEach((function(e){e.parent=void 0,(0,s.l)(e)||(_&&"recommend"===e.dependsOn?_._hasRecommendWidget=!0:_?_._hasSearchWidget=!0:"recommend"===e.dependsOn?O=!0:R=!0)})),_&&Boolean(r.length)){var n=r.reduce((function(e,r){var n=r.dispose({helper:P,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return n instanceof i.RecommendParameters?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e}),{cleanedSearchState:P.state,cleanedRecommendState:P.recommendState}),o=n.cleanedSearchState,a=n.cleanedRecommendState,l=_.future.preserveSharedStateOnUnmount?A(f,{uiState:v,initialSearchParameters:new i.SearchParameters({index:this.getIndexName()})}):A(f,{uiState:w(f,{searchParameters:o,helper:P}),initialSearchParameters:o});v=w(f,{searchParameters:l,helper:P}),P.setState(l),P.recommendState=a,f.length&&(p?this.scheduleLocalSearch():_.scheduleSearch())}return this},init:function(e){var t,n=this,s=e.instantSearchInstance,o=e.parent,u=e.uiState;if(null===P){_=s,C=o,v=u[h]||{};var d=s.mainHelper,m=A(f,{uiState:v,initialSearchParameters:new i.SearchParameters({index:r})}),g=E(f,{uiState:v,initialRecommendParameters:new i.RecommendParameters});(P=i(d.getClient(),m.index,m)).recommendState=g,P.search=function(){return p?(s.status="loading",n.render({instantSearchInstance:s}),s.compositionID?P.searchWithComposition():P.searchOnlyWithDerivedHelpers()):s.onStateChange?(s.onStateChange({uiState:s.mainIndex.getWidgetUiState({}),setUiState:function(e){return s.setUiState(e,!1)}}),d):d.search()},P.searchWithoutTriggeringOnStateChange=function(){return d.search()};var b=r?P:i({},"__empty_index__",{}),x=p?b:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(o,d);M=x.derive((function(){return l.p.apply(void 0,[d.state].concat(y((0,c.R)(n))))}),(function(){return n.getHelper().recommendState}));var T=null===(t=s._initialResults)||void 0===t?void 0:t[this.getIndexId()];if(null!=T&&T.results){var D=new i.SearchResults(new i.SearchParameters(T.state),T.results);M.lastResults=D,P.lastResults=D}if(null!=T&&T.recommendResults){var L=new i.RecommendResults(new i.RecommendParameters({params:T.recommendResults.params}),T.recommendResults.results);M.lastRecommendResults=L,P.lastRecommendResults=L}P.on("change",(function(e){e.isPageReset&&S(f)})),M.on("search",(function(){s.scheduleStalledRender()})),M.on("result",(function(e){var t=e.results;s.scheduleRender(),P.lastResults=t,k=null==t?void 0:t._state})),M.on("recommend:result",(function(e){var t=e.recommend;s.scheduleRender(),P.lastRecommendResults=t.results})),f.forEach((function(e){e.getRenderState&&I({renderState:e.getRenderState(s.renderState[n.getIndexId()]||{},(0,a.e)(s,n,u)),instantSearchInstance:s,parent:n})})),f.forEach((function(e){e.init&&e.init((0,a.e)(s,n,u))})),P.on("change",(function(e){var t=e.state,r=e._uiState;v=w(f,{searchParameters:t,helper:P},r||{}),s.onStateChange||s.onInternalStateChange()})),T&&s.scheduleRender(),O&&(s._hasRecommendWidget=!0),R&&(s._hasSearchWidget=!0)}},render:function(e){var t,i=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&k&&P.setState(k);var s=this.getResults()||null!==(t=M)&&void 0!==t&&t.lastRecommendResults||p&&!r?f:f.filter((function(e){return e.shouldRender}));(s=s.filter((function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})}))).forEach((function(e){e.getRenderState&&I({renderState:e.getRenderState(n.renderState[i.getIndexId()]||{},(0,a.A)(n,i,e)),instantSearchInstance:n,parent:i})})),s.forEach((function(e){e.render&&e.render((0,a.A)(n,i,e))}))},dispose:function(){var e,t,r=this;f.forEach((function(e){e.dispose&&P&&e.dispose({helper:P,state:P.state,recommendState:P.recommendState,parent:r})})),_=null,C=null,null===(e=P)||void 0===e||e.removeAllListeners(),P=null,null===(t=M)||void 0===t||t.detach(),M=null},getWidgetUiState:function(e){return f.filter(s.l).filter((function(e){return!e._isolated})).reduce((function(e,t){return t.getWidgetUiState(e)}),m(m({},e),{},g({},h,m(m({},e[h]),v))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return A(f,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){v=w(f,{searchParameters:this.getHelper().state,helper:this.getHelper()},v)},setIndexUiState:function(e){var t="function"==typeof e?e(v):e;_.setUiState((function(e){return m(m({},e),{},g({},h,t))}))}}}:null;function I(e){var t=e.renderState,r=e.instantSearchInstance,i=e.parent,n=i?i.getIndexId():r.mainIndex.getIndexId();r.renderState=m(m({},r.renderState),{},g({},n,m(m({},r.renderState[n]),t)))}},30322:(e,t,r)=>{if(r.d(t,{P:()=>o}),"vendors"!=r.j)var i=r(15964);if("vendors"!=r.j)var n=r(19895);if("vendors"!=r.j)var s=r(1343);function o(e,t){return(0,i.Tg)(e).pipe((0,s._)(t),(0,n.Q)(t))}},30901:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(61882);var n="app"==r.j?1/0:null;const s="app"==r.j?function(e){if("string"==typeof e||(0,i.A)(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}:null},31155:(e,t,r)=>{if(r.d(t,{M:()=>n}),"vendors"!=r.j)var i=r(45318);function n(e,t){if(e.arguments&&e.arguments.length){const r={};
vendor: 11,132 bytes, line 2
2return e.arguments.forEach((({name:e,value:n})=>(0,i.J)(r,e,n,t))),r}return null}},31179:(e,t,r)=>{r.d(t,{U:()=>i});var i={now:function(){return(i.delegate||Date).now()},delegate:void 0}},31635:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>L,__assign:()=>s,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>T,__await:()=>A,__awaiter:()=>f,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>R,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>z,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>n,__generator:()=>m,__importDefault:()=>k,__importStar:()=>M,__makeTemplateObject:()=>C,__metadata:()=>p,__param:()=>l,__propKey:()=>h,__read:()=>_,__rest:()=>o,__rewriteRelativeImportExtension:()=>j,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>b,__spreadArray:()=>w,__spreadArrays:()=>x,__values:()=>v,default:()=>F});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)};function o(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r}function a(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,i){t(r,i,e)}}function c(e,t,r,i,n,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=i.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?i.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d=!1,p=r.length-1;p>=0;p--){var f={};for(var m in i)f[m]="access"===m?{}:i[m];for(var m in i.access)f.access[m]=i.access[m];f.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var g=(0,r[p])("accessor"===l?{get:h.get,set:h.set}:h[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(h.get=a),(a=o(g.set))&&(h.set=a),(a=o(g.init))&&n.unshift(a)}else(a=o(g))&&("field"===l?n.unshift(a):h[c]=a)}u&&Object.defineProperty(u,i.name,h),d=!0}function u(e,t,r){for(var i=arguments.length>2,n=0;n<t.length;n++)r=i?t[n].call(e,r):t[n].call(e);return i?r:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,i){return new(r||(r=Promise))((function(n,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))}function m(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){s.label=a[1];break}if(6===a[0]&&s.label<n[1]){s.label=n[1],n=a;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(a);break}n[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],i=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var g=Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function x(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=Array(e),n=0;for(t=0;t<r;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i}function w(e,t,r){if(r||2===arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function E(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),s=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),i[Symbol.asyncIterator]=function(){return this},i;function o(e,t){n[e]&&(i[e]=function(t){return new Promise((function(r,i){s.push([e,t,r,i])>1||a(e,t)}))},t&&(i[e]=t(i[e])))}function a(e,t){try{(r=n[e](t)).value instanceof A?Promise.resolve(r.value.v).then(l,c):u(s[0][2],r)}catch(e){u(s[0][3],e)}var r}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function S(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:A(e[i](t)),done:!1}:n?n(t):t}:n}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return P=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},P(e)};function M(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=P(e),i=0;i<r.length;i++)"default"!==r[i]&&g(t,e,r[i]);return I(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function O(e,t,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:t.get(e)}function R(e,t,r,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(e,r):n?n.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],r&&(n=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:r})}else r&&e.stack.push({async:!0});return t}var B="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var i=new Error(r);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function z(e){function t(t){e.error=e.hasError?new B(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,i=0;return function n(){for(;r=e.stack.pop();)try{if(!r.async&&1===i)return i=0,e.stack.push(r),Promise.resolve().then(n);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return i|=2,Promise.resolve(s).then(n,(function(e){return t(e),n()}))}else i|=1}catch(e){t(e)}if(1===i)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function j(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,i,n,s){return r?t?".jsx":".js":!i||n&&s?i+n+"."+s.toLowerCase()+"js":e})):e}const F={__extends:n,__assign:s,__rest:o,__decorate:a,__param:l,__esDecorate:c,__runInitializers:u,__propKey:h,__setFunctionName:d,__metadata:p,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:_,__spread:b,__spreadArrays:x,__spreadArray:w,__await:A,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:T,__makeTemplateOb
2ject:C,__importStar:M,__importDefault:k,__classPrivateFieldGet:O,__classPrivateFieldSet:R,__classPrivateFieldIn:D,__addDisposableResource:L,__disposeResources:z,__rewriteRelativeImportExtension:j}},31810:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e){if(!function(e){return"object"===i(e)&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}r.d(t,{Q:()=>n})},32027:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={setTransform:function(e,t){var r=this.rtl,n=(0,i.A)(e),s=r?-1:1,o=n.attr("data-swiper-parallax")||"0",a=n.attr("data-swiper-parallax-x"),l=n.attr("data-swiper-parallax-y"),c=n.attr("data-swiper-parallax-scale"),u=n.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):this.isHorizontal()?(a=o,l="0"):(l=o,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*t*s+"%":a*t*s+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=u){var h=u-(u-1)*(1-Math.abs(t));n[0].style.opacity=h}if(null==c)n.transform("translate3d("+a+", "+l+", 0px)");else{var d=c-(c-1)*(1-Math.abs(t));n.transform("translate3d("+a+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var e=this,t=e.$el,r=e.slides,n=e.progress,s=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.setTransform(t,n)})),r.each((function(t,r){var o=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(r/2)-n*(s.length-1)),o=Math.min(Math.max(o,-1),1),(0,i.A)(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.setTransform(t,o)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){var r=(0,i.A)(t),n=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),r.transition(n)}))}};const a={name:"parallax",params:{parallax:{enabled:!1}},create:function(){(0,n.wD)(this,{parallax:s({},o)})},on:{beforeInit:function(e){e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(e){e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e,t){e.params.parallax.enabled&&e.parallax.setTransition(t)}}}},32369:(e,t,r)=>{var i;r.d(t,{H:()=>i}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(i||(i={}))},32405:(e,t,r)=>{function i(e){var t=e;return t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua}r.d(t,{F:()=>i})},32453:(e,t,r)=>{r.d(t,{b:()=>a});const i=()=>Object.create(null),{forEach:n,slice:s}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class a{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return n.call(e,(e=>t=t.getChildTrie(e))),o.call(t,"data")?t.data:t.data=this.makeData(s.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,i=e.length;t&&r<i;++r){const i=t.mapFor(e[r],!1);t=i&&i.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],i=this.mapFor(r,!1),n=i&&i.get(r);
2n&&(t=n.removeArray(s.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let r=t.get(e);return r||t.set(e,r=new a(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},32729:(e,t,r)=>{if(r.d(t,{A:()=>o}),"app"==r.j)var i=r(59712);if("app"==r.j)var n=r(15647);if("app"==r.j)var s=r(97271);const o="app"==r.j?function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:(0,i.A)((0,n.A)(e))}:null},33245:(e,t,r)=>{function i(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>i})},33261:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(42800),n={addClass:i.iQ,removeClass:i.vy,hasClass:i.nB,toggleClass:i.p1,attr:i.CF,removeAttr:i.K$,transform:i.pd,transition:i.kY,on:i.on,off:i.AU,trigger:i.hZ,transitionEnd:i.XQ,outerWidth:i.Gq,outerHeight:i.DK,styles:i.R7,offset:i.cY,css:i.AH,each:i.__,html:i.qy,text:i.Qq,is:i.is,index:i.Pe,eq:i.eq,append:i.BC,prepend:i.Hs,next:i.K2,nextAll:i.HW,prev:i.YL,prevAll:i.zy,parent:i.$t,parents:i.M8,closest:i.kp,find:i.I6,children:i.Y_,filter:i.pb,remove:i.TF};Object.keys(n).forEach((function(e){Object.defineProperty(i.$.fn,e,{value:n[e],writable:!0})}));const s=/^(app|vendors)$/.test(r.j)?i.$:null},33319:(e,t,r)=>{r.d(t,{A:()=>O});var i=r(17275),n=r(12125),s=r(93967);const o=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){i.A.forEach(this.handlers,(function(t){null!==t&&e(t)}))}};var a=r(19152),l=r(59575),c=r(35895),u=r(38458),h=r(79586),d=r(95167);function p(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new u.A(null,e)}function f(e){p(e),e.headers=h.A.from(e.headers),e.data=a.A.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return d.A.getAdapter(e.adapter||c.A.adapter)(e).then((function(t){return p(e),t.data=a.A.call(e,e.transformResponse,t),t.headers=h.A.from(t.headers),t}),(function(t){return(0,l.A)(t)||(p(e),t&&t.response&&(t.response.data=a.A.call(e,e.transformResponse,t.response),t.response.headers=h.A.from(t.response.headers))),Promise.reject(t)}))}var m=r(44662),g=r(88262);const y="1.8.1";var v=r(74062);const _={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const b={};_.transitional=function(e,t,r){function i(e,t){return"[Axios v1.8.1] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,s)=>{if(!1===e)throw new v.A(i(n," has been removed"+(t?" in "+t:"")),v.A.ERR_DEPRECATED);return t&&!b[n]&&(b[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},_.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const x={assertOptions:function(e,t,r){if("object"!=typeof e)throw new v.A("options must be an object",v.A.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const s=i[n],o=t[s];if(o){const t=e[s],r=void 0===t||o(t,s,e);if(!0!==r)throw new v.A("option "+s+" must be "+r,v.A.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new v.A("Unknown option "+s,v.A.ERR_BAD_OPTION)}},validators:_},w=x.validators;class A{constructor(e){this.defaults=e,this.interceptors={request:new o,response:new o}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,m.A)(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&x.assertOptions(r,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)}
2,!1),null!=n&&(i.A.isFunction(n)?t.paramsSerializer={serialize:n}:x.assertOptions(n,{encode:w.function,serialize:w.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),x.assertOptions(t,{baseUrl:w.spelling("baseURL"),withXsrfToken:w.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&i.A.merge(s.common,s[t.method]);s&&i.A.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=h.A.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,p=0;if(!l){const e=[f.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);p<d;)u=u.then(e[p++],e[p++]);return u}d=a.length;let g=t;for(p=0;p<d;){const e=a[p++],t=a[p++];try{g=e(g)}catch(e){t.call(this,e);break}}try{u=f.call(this,g)}catch(e){return Promise.reject(e)}for(p=0,d=c.length;p<d;)u=u.then(c[p++],c[p++]);return u}getUri(e){e=(0,m.A)(this.defaults,e);const t=(0,g.A)(e.baseURL,e.url,e.allowAbsoluteUrls);return(0,s.A)(t,e.params,e.paramsSerializer)}}i.A.forEach(["delete","get","head","options"],(function(e){A.prototype[e]=function(t,r){return this.request((0,m.A)(r||{},{method:e,url:t,data:(r||{}).data}))}})),i.A.forEach(["post","put","patch"],(function(e){function t(t){return function(r,i,n){return this.request((0,m.A)(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}A.prototype[e]=t(),A.prototype[e+"Form"]=t(!0)}));const E=A;var S=r(77887);class T{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{r.subscribe(e),t=e})).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e((function(e,i,n){r.reason||(r.reason=new u.A(e,i,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new T((function(t){e=t})),cancel:e}}}const C=T;var I=r(70665);const P={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(P).forEach((([e,t])=>{P[t]=e}));const M=P;const k=function e(t){const r=new E(t),s=(0,n.A)(E.prototype.request,r);return i.A.extend(s,E.prototype,r,{allOwnKeys:!0}),i.A.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e((0,m.A)(t,r))},s}(c.A);k.Axios=E,k.CanceledError=u.A,k.CancelToken=C,k.isCancel=l.A,k.VERSION=y,k.toFormData=I.A,k.AxiosError=v.A,k.Cancel=k.CanceledError,k.all=function(e){return Promise.all(e)},k.spread=function(e){return function(t){return e.apply(null,t)}},k.isAxiosError=function(e){return i.A.isObject(e)&&!0===e.isAxiosError},k.mergeConfig=m.A,k.AxiosHeaders=h.A,k.formToJSON=e=>(0,S.A)(i.A.isHTMLForm(e)?new FormData(e):e),k.getAdapter=d.A.getAdapter,k.HttpStatusCode=M,k.default=k;const O=k},33526:(e,t,r)=>{function i(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}r.d(t,{G:()=>i})},33831:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(76912);if("app"==r.j)var n=r(92049);const s="app"==r.j?function(e,t,r){var s=t(e);return(0,n.A)(e)?s:(0,i.A)(s,r(e))}:null},33938:(e,t,r)=>{r.d(t,{A:()=>n});var i=(0,r(40367).A)(Object.keys,Object);const n="app"==r.j?i:null},34164:(e,t,r)=>{function i(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=i(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function n(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=i(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>s});const s="vendors"!=r.j?n:null},34963:(e,t,r)=>{if(r.d(t,{A:()=>h}),"app"==r.j)var i=r(79672);if("app"==r.j)var n=r(15647);if("app"==r.j)var s=r(53098);var o=Function.prototype,a=Object.prototype,l=o.toString,c=a.hasOwnProperty,u=l.call(Object);const h="app"==r.j?function(e){if(!(0,s.A)(e)||"[object Object]"!=(0,i.A)(e))return!1;var t=(0,n.A)(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}:null},35009:(e,t,r)=>{r.d(t,{JG:()=>l,Z_:()=>c});var i=r(49738),n=r(50475),s=r(75995),o=r(79646),a=r(60590);class l{constructor(e){const t=new n.ou(a.Y.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.Y.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===a.Y.COMMENT);return e}}function c(e){return e===a.Y.BANG||e===a.Y.DOLLAR||e===a.Y.AMP||e===a.Y.PAREN_L||e===a.Y.PAREN_R||e===a.Y.DOT||e===a.Y.SPREAD||e===a.Y.COLON||e===a.Y.EQUALS||e===a.Y.AT||e===a.Y.BRACKET_L||e===a.Y.BRACKET_R||e===a.Y.BRACE_L||e===a.Y.PIPE||e===a.Y.BRACE_R}function u(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function h(e,t){return d(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function f(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return a.Y.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,r,i,s){const o=e.line,a=1+r-e.lineStart;return new n.ou(t,r,i,o,a,s)}function g(e,t){const r=e.source.body,n=r.length;let s=t;for(;s<n;){const t=r.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===r.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;
2case 35:return y(e,s);case 33:return m(e,a.Y.BANG,s,s+1);case 36:return m(e,a.Y.DOLLAR,s,s+1);case 38:return m(e,a.Y.AMP,s,s+1);case 40:return m(e,a.Y.PAREN_L,s,s+1);case 41:return m(e,a.Y.PAREN_R,s,s+1);case 46:if(46===r.charCodeAt(s+1)&&46===r.charCodeAt(s+2))return m(e,a.Y.SPREAD,s,s+3);break;case 58:return m(e,a.Y.COLON,s,s+1);case 61:return m(e,a.Y.EQUALS,s,s+1);case 64:return m(e,a.Y.AT,s,s+1);case 91:return m(e,a.Y.BRACKET_L,s,s+1);case 93:return m(e,a.Y.BRACKET_R,s,s+1);case 123:return m(e,a.Y.BRACE_L,s,s+1);case 124:return m(e,a.Y.PIPE,s,s+1);case 125:return m(e,a.Y.BRACE_R,s,s+1);case 34:return 34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)?T(e,s):b(e,s)}if((0,o.yp)(t)||45===t)return v(e,s,t);if((0,o.un)(t))return C(e,s);throw(0,i.I)(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||h(r,s)?`Unexpected character: ${f(e,s)}.`:`Invalid character: ${f(e,s)}.`)}return m(e,a.Y.EOF,n,n)}function y(e,t){const r=e.source.body,i=r.length;let n=t+1;for(;n<i;){const e=r.charCodeAt(n);if(10===e||13===e)break;if(u(e))++n;else{if(!h(r,n))break;n+=2}}return m(e,a.Y.COMMENT,t,n,r.slice(t+1,n))}function v(e,t,r){const n=e.source.body;let s=t,l=r,c=!1;if(45===l&&(l=n.charCodeAt(++s)),48===l){if(l=n.charCodeAt(++s),(0,o.yp)(l))throw(0,i.I)(e.source,s,`Invalid number, unexpected digit after 0: ${f(e,s)}.`)}else s=_(e,s,l),l=n.charCodeAt(s);if(46===l&&(c=!0,l=n.charCodeAt(++s),s=_(e,s,l),l=n.charCodeAt(s)),69!==l&&101!==l||(c=!0,l=n.charCodeAt(++s),43!==l&&45!==l||(l=n.charCodeAt(++s)),s=_(e,s,l),l=n.charCodeAt(s)),46===l||(0,o.un)(l))throw(0,i.I)(e.source,s,`Invalid number, expected digit but got: ${f(e,s)}.`);return m(e,c?a.Y.FLOAT:a.Y.INT,t,s,n.slice(t,s))}function _(e,t,r){if(!(0,o.yp)(r))throw(0,i.I)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const n=e.source.body;let s=t+1;for(;(0,o.yp)(n.charCodeAt(s));)++s;return s}function b(e,t){const r=e.source.body,n=r.length;let s=t+1,o=s,l="";for(;s<n;){const n=r.charCodeAt(s);if(34===n)return l+=r.slice(o,s),m(e,a.Y.STRING,t,s+1,l);if(92!==n){if(10===n||13===n)break;if(u(n))++s;else{if(!h(r,s))throw(0,i.I)(e.source,s,`Invalid character within String: ${f(e,s)}.`);s+=2}}else{l+=r.slice(o,s);const t=117===r.charCodeAt(s+1)?123===r.charCodeAt(s+2)?x(e,s):w(e,s):S(e,s);l+=t.value,s+=t.size,o=s}}throw(0,i.I)(e.source,s,"Unterminated string.")}function x(e,t){const r=e.source.body;let n=0,s=3;for(;s<12;){const e=r.charCodeAt(t+s++);if(125===e){if(s<5||!u(n))break;return{value:String.fromCodePoint(n),size:s}}if(n=n<<4|E(e),n<0)break}throw(0,i.I)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+s)}".`)}function w(e,t){const r=e.source.body,n=A(r,t+2);if(u(n))return{value:String.fromCodePoint(n),size:6};if(d(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=A(r,t+8);if(p(e))return{value:String.fromCodePoint(n,e),size:12}}throw(0,i.I)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function A(e,t){return E(e.charCodeAt(t))<<12|E(e.charCodeAt(t+1))<<8|E(e.charCodeAt(t+2))<<4|E(e.charCodeAt(t+3))}function E(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function S(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,i.I)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function T(e,t){const r=e.source.body,n=r.length;let o=e.lineStart,l=t+3,c=l,d="";const p=[];for(;l<n;){const n=r.charCodeAt(l);if(34===n&&34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2)){d+=r.slice(c,l),p.push(d);const i=m(e,a.Y.BLOCK_STRING,t,l+3,(0,s.OC)(p).join("\n"));return e.line+=p.length-1,e.lineStart=o,i}if(92!==n||34!==r.charCodeAt(l+1)||34!==r.charCodeAt(l+2)||34!==r.charCodeAt(l+3))if(10!==n&&13!==n)if(u(n))++l;else{if(!h(r,l))throw(0,i.I)(e.source,l,`Invalid character within String: ${f(e,l)}.`);l+=2}else d+=r.slice(c,l),p.push(d),13===n&&10===r.charCodeAt(l+1)?l+=2:++l,d="",c=l,o=l;else d+=r.slice(c,l),c=l+1,l+=4}throw(0,i.I)(e.source,l,"Unterminated string.")}function C(e,t){const r=e.source.body,i=r.length;let n=t+1;for(;n<i;){const e=r.charCodeAt(n);if(!(0,o.xr)(e))break;++n}return m(e,a.Y.NAME,t,n,r.slice(t,n))}},35843:(e,t,r)=>{r.d(t,{t:()=>s});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(79345);function s(){return(0,i.useContext)(n.V)}},35895:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(17275),n=r(74062),s=r(10807),o=r(70665),a=r(20014);var l=r(77887);const c={transitional:s.A,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=i.A.isObject(e);
2s&&i.A.isHTMLForm(e)&&(e=new FormData(e));if(i.A.isFormData(e))return n?JSON.stringify((0,l.A)(e)):e;if(i.A.isArrayBuffer(e)||i.A.isBuffer(e)||i.A.isStream(e)||i.A.isFile(e)||i.A.isBlob(e)||i.A.isReadableStream(e))return e;if(i.A.isArrayBufferView(e))return e.buffer;if(i.A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return(0,o.A)(e,new a.A.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return a.A.isNode&&i.A.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((c=i.A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return(0,o.A)(c?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e,t,r){if(i.A.isString(e))try{return(t||JSON.parse)(e),i.A.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||c.transitional,r=t&&t.forcedJSONParsing,s="json"===this.responseType;if(i.A.isResponse(e)||i.A.isReadableStream(e))return e;if(e&&i.A.isString(e)&&(r&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw n.A.from(e,n.A.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:a.A.classes.FormData,Blob:a.A.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.A.forEach(["delete","get","head","post","put","patch"],(e=>{c.headers[e]={}}));const u=c},35974:(e,t,r)=>{function i(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function n(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}r.d(t,{t:()=>i,w:()=>n})},35984:(e,t,r)=>{if(r.d(t,{Ay:()=>s}),"contactslistv2/contactslistv2"==r.j)var i=r(10793);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t){return function(e){var t,r=e.method,s=e.payload;if("object"!==n(s))throw new Error("The insights helper expects the payload to be an object.");try{t=(0,i.h)(s)}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}},36904:(e,t,r)=>{if(r.d(t,{A:()=>u}),"app"==r.j)var i=r(45572);if("app"==r.j)var n=r(39759);if("app"==r.j)var s=r(92049);if("app"==r.j)var o=r(61882);if("app"==r.j)var a=r(82801);if("app"==r.j)var l=r(30901);if("app"==r.j)var c=r(48182);const u="app"==r.j?function(e){return(0,s.A)(e)?(0,i.A)(e,l.A):(0,o.A)(e)?[e]:(0,n.A)((0,a.A)((0,c.A)(e)))}:null},37484:(e,t,r)=>{r.d(t,{l4:()=>S});class i extends Error{response;request;constructor(e,t){super(`${i.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,i.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}var n=r(11367);var s=r(43298);const o="Accept",a="Content-Type",l="application/json",c="application/graphql-response+json",u=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),h=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(d)};if((0,n.Qd)(e))return{_tag:"Single",executionResult:d(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},d=e=>{if("object"!=typeof e||null===e)throw new Error("Invalid execution result: result is not object");let t,r,i;if("errors"in e){if(!(0,n.Qd)(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!(0,n.Qd)(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!(0,n.Qd)(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:r,errors:t,extensions:i}},p=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),f=e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===s.b.OPERATION_DEFINITION;var m=r(79004),g=r(66547);const y=(e,t)=>{const r="string"==typeof e||"kind"in e?e:String(e),i="string"==typeof r?r:(0,g.y)(r);let s,o=!1;if(t)return{expression:i,isMutation:o,operationName:s};const a=(0,n.TX)((()=>"string"==typeof r?(0,m.qg)(r):r));return a instanceof Error?{expression:i,isMutation:o,operationName:s}:(s=(e=>{let t;const r=e.definitions.filter(f);return 1===r.length&&(t=r[0].name?.value),t})(a),o=(e=>{let t=!1;const r=e.definitions.filter(f);return 1===r.length&&(t="mutation"===r[0].operation),t})(a),{expression:i,operationName:s,isMutation:o})};var v=r(71381);const _=async e=>{const t={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":(0,n.Zv)(e.method??"post"):e.request.hasMutations?"POST":(0,n.Zv)(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},r=w(t.method),s=await r(t),o=await s.text();let l;try{l=x(o,s.headers.get(a),e.fetchOptions.jsonSerializer??v.k)}catch(e){l=e}const c={status:s.status,headers:s.headers,body:o};if(!s.ok){if(l instanceof Error)return new i({...c},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});const t="Batch"===l._tag?{...l.executionResults,...c}:{...l.executionResult,...c};return new i(t,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}if(l instanceof Error)throw l;if((e=>"Batch"===e._tag?e.executionResults.some(p):p(e.executionResult))(l)&&"none"===t.fetchOptions.errorPolicy){const t="Batch"===l._tag?{...l.executionResults,...c}:{...l.executionResult,...c};return new i(t,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(l._tag){case"Single":return{...c,...b(t)(l.executionResult)};case"Batch":return{...c,data:l.executionResults.map(b(t))};default:(0,n.Ln)(l)}},b=e=>t=>({extensions:t.extensions,data:t.data,errors:"all"===e.fetchOptions.errorPolicy?t.errors:void 0}),x=(e,t,r)=>t&&(e=>{const t=e.toLowerCase();return t.includes(c)||t.includes(l)})(t)?h(r.parse(e)):h(e),w=e=>async t=>{const r=new Headers(t.headers);let i,n=null;if(r.has(o)||r.set(o,[c,l].join(", ")),"POST"===e){i=(t.fetchOptions.jsonSerializer??v.k).stringify(A(t)),"string"!=typeof i||r.has(a)||r.set(a,l)}else n=E(t);const s={method:e,headers:r,body:i,...t.fetchOptions};let u=new URL(t.url),h=s;if(t.middleware){const e=await Promise.resolve(t.middleware({...s,url:t.url,operationName:"Single"===t.request._tag?t.request.document.operationName:void 0,variables:t.request.variables})),{url:r,...i}=e;u=new URL(r),h=i}
2n&&n.forEach(((e,t)=>{u.searchParams.append(t,e)}));const d=t.fetch??fetch;return await d(u,h)},A=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return(0,n.yU)(e.request.query,e.request.variables??[]).map((([e,t])=>({query:e,variables:t})));default:throw(0,n.Ln)(e.request)}},E=e=>{const t=e.fetchOptions.jsonSerializer??v.k,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",u(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const i=e.request.variables?.map((e=>t.stringify(e)))??[],s=e.request.query.map(u),o=(0,n.yU)(s,i).map((([e,t])=>({query:e,variables:t})));return r.append("query",t.stringify(o)),r}default:throw(0,n.Ln)(e.request)}};class S{url;requestConfig;constructor(e,t={}){this.url=e,this.requestConfig=t}rawRequest=async(...e)=>{const[t,r,i]=e,s=((e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0})(t,r,i),{headers:o,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:h,...d}=this.requestConfig,{url:p}=this;void 0!==s.signal&&(d.signal=s.signal);const f=y(s.query,h),m=await _({url:p,request:{_tag:"Single",document:f,variables:s.variables},headers:{...(0,n.py)((0,n.kc)(o)),...(0,n.py)(s.requestHeaders)},fetch:a,method:l,fetchOptions:d,middleware:c});if(u&&await u(m,{operationName:f.operationName,variables:r,url:this.url}),m instanceof Error)throw m;return m};async request(e,...t){const[r,i]=t,s=T(e,r,i),{headers:o,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:h,...d}=this.requestConfig,{url:p}=this;void 0!==s.signal&&(d.signal=s.signal);const f=y(s.document,h),m=await _({url:p,request:{_tag:"Single",document:f,variables:s.variables},headers:{...(0,n.py)((0,n.kc)(o)),...(0,n.py)(s.requestHeaders)},fetch:a,method:l,fetchOptions:d,middleware:c});if(u&&await u(m,{operationName:f.operationName,variables:s.variables,url:this.url}),m instanceof Error)throw m;return m.data}async batchRequests(e,t){const r=((e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0})(e,t),{headers:i,excludeOperationName:s,...o}=this.requestConfig;void 0!==r.signal&&(o.signal=r.signal);const a=r.documents.map((({document:e})=>y(e,s))),l=a.map((({expression:e})=>e)),c=a.some((({isMutation:e})=>e)),u=r.documents.map((({variables:e})=>e)),h=await _({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:c,variables:u},headers:{...(0,n.py)((0,n.kc)(i)),...(0,n.py)(r.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(h,{operationName:void 0,variables:u,url:this.url}),h instanceof Error)throw h;return h.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:r}=this.requestConfig;return r?r[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}const T=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0}},37541:(e,t,r)=>{if(r.d(t,{l:()=>s}),"vendors"!=r.j)var i=r(55604);if("vendors"!=r.j)var n=r(61209);function s(e){return(0,n.T)(e[i.s])}},37783:(e,t,r)=>{function i(){}r.d(t,{C:()=>n});class n{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},38016:(e,t,r)=>{function i(e){return"Field"===e.kind}r.d(t,{d:()=>i})},38446:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(89610);if("app"==r.j)var n=r(5254);const s="app"==r.j?function(e){return null!=e&&(0,n.A)(e.length)&&!(0,i.A)(e)}:null},38458:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(74062);function n(e,t,r){i.A.call(this,null==e?"canceled":e,i.A.ERR_CANCELED,t,r),this.name="CanceledError"}r(17275).A.inherits(n,i.A,{__CANCEL__:!0});const s=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?n:null},38796:(e,t,r)=>{if(r.d(t,{I:()=>n}),"contactslistv2/contactslistv2"==r.j)var i=r(15164);function n(e){var t=i.sn.highlightPostTag,r=i.sn.highlightPreTag,n=e.split(r),s=n.shift(),o=s?[{value:s,isHighlighted:!1}]:[];
2return n.forEach((function(e){var r=e.split(t);o.push({value:r[0],isHighlighted:!0}),""!==r[1]&&o.push({value:r[1],isHighlighted:!1})})),o}},38973:(e,t,r)=>{r.d(t,{R:()=>n});var i=r(35974);class n extends Error{static is(e){return(0,i.t)(e,"LocalStateError")}path;constructor(e,t={}){super(e,{cause:t.sourceError}),this.name="LocalStateError",this.path=t.path,(0,i.w)(this),Object.setPrototypeOf(this,n.prototype)}}},39005:(e,t,r)=>{r.d(t,{Eg:()=>l});var i,n=r(61701),s=r(62467),o=r(13288),a=r(61209);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(i||(i={}));var l=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,i,n,s=e,o=s.kind,a=s.value,l=s.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,a):"E"===o?null===(i=t.error)||void 0===i||i.call(t,l):null===(n=t.complete)||void 0===n||n.call(t)}(this,e)},e.prototype.do=function(e,t,r){var i=this,n=i.kind,s=i.value,o=i.error;return"N"===n?null==e?void 0:e(s):"E"===n?null==t?void 0:t(o):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var i;return(0,a.T)(null===(i=e)||void 0===i?void 0:i.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,i=e.error,a="N"===t?(0,s.of)(r):"E"===t?(0,o.$)((function(){return i})):"C"===t?n.w:0;if(!a)throw new TypeError("Unexpected notification kind "+t);return a},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}()},39136:(e,t,r)=>{if(r.d(t,{x:()=>n}),"vendors"!=r.j)var i=r(93776);function n(e,t=()=>{}){return r=>new i.c((i=>{let n=t();return r.subscribe({next(t){let r;try{r=e(t,n)}catch(e){i.error(e)}void 0!==r&&i.next(r)},error(e){i.error(e)},complete(){i.complete()}})}))}},39187:(e,t,r)=>{if(r.r(t),r.d(t,{ApolloProvider:()=>n.X,createQueryPreloader:()=>_.d,getApolloContext:()=>i.l,reactCompilerVersion:()=>b,skipToken:()=>v.h,useApolloClient:()=>s.m,useBackgroundQuery:()=>p.E,useFragment:()=>h.I,useLazyQuery:()=>o._,useLoadableQuery:()=>m.y,useMutation:()=>a.n,useQuery:()=>l.I,useQueryRefHandlers:()=>g.s,useReactiveVar:()=>u.q,useReadQuery:()=>y.o,useSubscription:()=>c.R,useSuspenseFragment:()=>f.U,useSuspenseQuery:()=>d.U}),"searchresults/searchresults"==r.j)var i=r(6741);if("searchresults/searchresults"==r.j)var n=r(28797);if("searchresults/searchresults"==r.j)var s=r(70111);if("searchresults/searchresults"==r.j)var o=r(77969);if("searchresults/searchresults"==r.j)var a=r(95420);if("searchresults/searchresults"==r.j)var l=r(47619);if("searchresults/searchresults"==r.j)var c=r(43578);if("searchresults/searchresults"==r.j)var u=r(28455);if("searchresults/searchresults"==r.j)var h=r(46343);if("searchresults/searchresults"==r.j)var d=r(5599);if("searchresults/searchresults"==r.j)var p=r(85207);if("searchresults/searchresults"==r.j)var f=r(66243);if("searchresults/searchresults"==r.j)var m=r(80215);if("searchresults/searchresults"==r.j)var g=r(97539);if("searchresults/searchresults"==r.j)var y=r(58351);if("searchresults/searchresults"==r.j)var v=r(23105);if("searchresults/searchresults"==r.j)var _=r(70723);const b="uncompiled"},39599:(e,t,r)=>{r.d(t,{I:()=>i});const i=r(16839).C.empty},39741:(e,t,r)=>{r.d(t,{m:()=>o});var i=r(31635),n=r(27291),s=r(31179),o=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=s.U);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return(0,i.__extends)(t,e),t.prototype.next=function(t){var r=this,i=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,o=r._timestampProvider,a=r._windowTime;i||(n.push(t),!s&&n.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,i=e._buffer,n=e._infiniteTimeWindow,s=(n?1:2)*t;
2if(t<1/0&&s<i.length&&i.splice(0,i.length-s),!n){for(var o=r.now(),a=0,l=1;l<i.length&&i[l]<=o;l+=2)a=l;a&&i.splice(0,a+1)}},t}(n.B)},39759:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}:null},40069:(e,t,r)=>{if(r.d(t,{t:()=>n}),"contactslistv2/contactslistv2"==r.j)var i=r(9886);function n(e,t){if(void 0===e||"function"!=typeof e)throw new Error("The render function is not valid (received type ".concat((0,i.K)(e),").\n\n").concat(t))}},40367:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){return function(r){return e(t(r))}}:null},40390:(e,t,r)=>{if(r.d(t,{C:()=>h,Cv:()=>T,G1:()=>a,K2:()=>f,Nc:()=>A,OW:()=>g,Sh:()=>v,Tb:()=>x,Tp:()=>d,VF:()=>b,YL:()=>p,c4:()=>_,di:()=>y,mw:()=>w,nf:()=>S,rH:()=>u,se:()=>m}),"vendors"!=r.j)var i=r(19735);var n=1,s=1,o=0,a=0,l=0,c="";function u(e,t,r,i,o,a,l){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:n,column:s,length:l,return:""}}function h(e,t){return(0,i.kp)(u("",null,null,"",null,null,0),e,{length:-e.length},t)}function d(){return l}function p(){return l=a>0?(0,i.wN)(c,--a):0,s--,10===l&&(s=1,n--),l}function f(){return l=a<o?(0,i.wN)(c,a++):0,s++,10===l&&(s=1,n++),l}function m(){return(0,i.wN)(c,a)}function g(){return a}function y(e,t){return(0,i.c1)(c,e,t)}function v(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(e){return n=s=1,o=(0,i.b2)(c=e),a=0,[]}function b(e){return c="",e}function x(e){return(0,i.Bq)(y(a-1,E(91===e?e+2:40===e?e+1:e)))}function w(e){for(;(l=m())&&l<33;)f();return v(e)>2||v(l)>3?"":" "}function A(e,t){for(;--t&&f()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return y(e,g()+(t<6&&32==m()&&32==f()))}function E(e){for(;f();)switch(l){case e:return a;case 34:case 39:34!==e&&39!==e&&E(l);break;case 40:41===e&&E(e);break;case 92:f()}return a}function S(e,t){for(;f()&&e+l!==57&&(e+l!==84||47!==m()););return"/*"+y(t,a-1)+"*"+(0,i.HT)(47===e?e:f())}function T(e){for(;!v(m());)f();return y(e,a)}},40451:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(241),n=Object.prototype,s=n.hasOwnProperty,o=n.toString,a=i.A?i.A.toStringTag:void 0;const l="app"==r.j?function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var i=!0}catch(e){}var n=o.call(e);return i&&(t?e[a]=r:delete e[a]),n}:null},40648:(e,t,r)=>{function i(e,t){if(!Array.isArray(e))return-1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}r.d(t,{S:()=>i})},41535:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(69734);if("contactslistv2/contactslistv2"==r.j)var n=r(65150);if("contactslistv2/contactslistv2"==r.j)var s=r(29320);if("contactslistv2/contactslistv2"==r.j)var o=r(29718);if("contactslistv2/contactslistv2"==r.j)var a=r(38796);if("contactslistv2/contactslistv2"==r.j)var l=r(15164);var c=(0,i.s)("ReverseHighlight");function u(e){var t=e.attribute,r=e.highlightedTagName,i=void 0===r?"mark":r,u=e.hit,h=e.cssClasses,d=void 0===h?{}:h,p=((0,n.E)(u._highlightResult,t)||{}).value,f=void 0===p?"":p,m=c({descendantName:"highlighted"})+(d.highlighted?" ".concat(d.highlighted):"");return(0,s.G)((0,o.Y)((0,a.I)(f))).replace(new RegExp(l.sn.highlightPreTag,"g"),"<".concat(i,' class="').concat(m,'">')).replace(new RegExp(l.sn.highlightPostTag,"g"),"</".concat(i,">"))}},41697:(e,t,r)=>{r.d(t,{M:()=>a});var i=r(16645),n=r(81212),s=r(80433),o=r(70685);const a=Object.assign((function(e){return JSON.stringify(e,c)}),{reset(){l=new s.V(n.v.canonicalStringify||1e3)}});let l;function c(e,t){if(t&&"object"==typeof t){const e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){const r=Object.keys(t);if(r.every(u))return t;const i=JSON.stringify(r);let n=l.get(i);if(!n){r.sort();const e=JSON.stringify(r);n=l.get(e)||r,l.set(i,n),l.set(e,n)}const s=Object.create(e);return n.forEach((e=>{s[e]=t[e]})),s}}return t}function u(e,t,r){return 0===t||r[t-1]<=e}i.g&&(0,o.D_)("canonicalStringify",(()=>l.size)),a.reset()},41865:(e,t,r)=>{if(r.d(t,{A:()=>o}),"app"==r.j)var i=r(50423);if("app"==r.j)var n=r(8823);if("app"==r.j)var s=r(38446);const o="app"==r.j?function(e){return(0,s.A)(e)?(0,i.A)(e,!0):(0,n.A)(e)}:null},41917:(e,t,r)=>{r.d(t,{A:()=>
2o});var i=r(72136),n="object"==typeof self&&self&&self.Object===Object&&self,s=i.A||n||Function("return this")();const o="app"==r.j?s:null},42189:(e,t,r)=>{r.d(t,{c:()=>i});const i=Array.isArray},42411:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(51648),n=r(33261),s=r(65520);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(this,arguments)}var a={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,r=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,n=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(n-r,2))},onGestureStart:function(e){var t=this,r=t.support,i=t.params.zoom,s=t.zoom,o=s.gesture;if(s.fakeGestureTouched=!1,s.fakeGestureMoved=!1,!r.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;s.fakeGestureTouched=!0,o.scaleStart=a.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=(0,n.A)(e.target).closest("."+t.params.slideClass),0===o.$slideEl.length&&(o.$slideEl=t.slides.eq(t.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent("."+i.containerClass),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl&&o.$imageEl.transition(0),t.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange:function(e){var t=this,r=t.support,i=t.params.zoom,n=t.zoom,s=n.gesture;if(!r.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,s.scaleMove=a.getDistanceBetweenTouches(e)}s.$imageEl&&0!==s.$imageEl.length?(r.gestures?n.scale=e.scale*n.currentScale:n.scale=s.scaleMove/s.scaleStart*n.currentScale,n.scale>s.maxRatio&&(n.scale=s.maxRatio-1+Math.pow(n.scale-s.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),s.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")")):"gesturechange"===e.type&&n.onGestureStart(e)},onGestureEnd:function(e){var t=this,r=t.device,i=t.support,n=t.params.zoom,s=t.zoom,o=s.gesture;if(!i.gestures){if(!s.fakeGestureTouched||!s.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!r.android)return;s.fakeGestureTouched=!1,s.fakeGestureMoved=!1}o.$imageEl&&0!==o.$imageEl.length&&(s.scale=Math.max(Math.min(s.scale,o.maxRatio),n.minRatio),o.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+s.scale+")"),s.currentScale=s.scale,s.isScaling=!1,1===s.scale&&(o.$slideEl=void 0))},onTouchStart:function(e){var t=this.device,r=this.zoom,i=r.gesture,n=r.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(t.android&&e.cancelable&&e.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,r=t.zoom,i=r.gesture,n=r.image,o=r.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(t.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=(0,s.ro)(i.$imageWrapEl[0],"x")||0,n.startY=(0,s.ro)(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0));var a=n.width*r.scale,l=n.height*r.scale;if(!(a<i.slideWidth&&l<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-a/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-l/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!n.isMoved&&!r.isScaling){if(t.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=n.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=n.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(n.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(n.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(n.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(n.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=n.touchesCurrent.x,o.prevPositionY=n.touchesCurrent.y,o.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,r=e.image,i=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!r.isTouched||!r.isMoved)return r.isTouched=!1,void(r.isMoved=!1);r.isTouched=!1,r.isMoved=!1;var n=300,s=300,o=i.x*n,a=r.currentX+o,l=i.y*s,c=r.currentY+l;0!==i.x&&(n=Math.abs((a-r.currentX)/i.x)),0!==i.y&&(s=Math.abs((c-r.currentY)/i.y));var u=Math.max(n,s);r.currentX=a,r.currentY=c;var h=r.width*e.scale,d=r.height*e.scale;r.minX=Math.min(t.slideWidth/2-h/2,0),r.maxX=-r.minX,r.minY=Math.min(t.slideHeight/2-d/2,0),r.maxY=-r.minY,r.currentX=Math.max(Math.min(r.currentX,r.maxX),r.minX),r.currentY=Math.max(Math.min(r.currentY,r.maxY),r.minY),t.$imageWrapEl.transition(u).transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,r=t.gesture;r.$slideEl&&e.previousIndex!==e.activeIndex&&(r.$imageEl&&r.$imageEl.transform("translate3d(0,
20,0) scale(1)"),r.$imageWrapEl&&r.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,r.$slideEl=void 0,r.$imageEl=void 0,r.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,r,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_=this,b=(0,i.zk)(),x=_.zoom,w=_.params.zoom,A=x.gesture,E=x.image;(A.$slideEl||(e&&e.target&&(A.$slideEl=(0,n.A)(e.target).closest("."+_.params.slideClass)),A.$slideEl||(_.params.virtual&&_.params.virtual.enabled&&_.virtual?A.$slideEl=_.$wrapperEl.children("."+_.params.slideActiveClass):A.$slideEl=_.slides.eq(_.activeIndex)),A.$imageEl=A.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),A.$imageWrapEl=A.$imageEl.parent("."+w.containerClass)),A.$imageEl&&0!==A.$imageEl.length&&A.$imageWrapEl&&0!==A.$imageWrapEl.length)&&(A.$slideEl.addClass(""+w.zoomedSlideClass),void 0===E.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,r="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=E.touchesStart.x,r=E.touchesStart.y),x.scale=A.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,x.currentScale=A.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(y=A.$slideEl[0].offsetWidth,v=A.$slideEl[0].offsetHeight,s=A.$slideEl.offset().left+b.scrollX+y/2-t,o=A.$slideEl.offset().top+b.scrollY+v/2-r,c=A.$imageEl[0].offsetWidth,u=A.$imageEl[0].offsetHeight,h=c*x.scale,d=u*x.scale,m=-(p=Math.min(y/2-h/2,0)),g=-(f=Math.min(v/2-d/2,0)),(a=s*x.scale)<p&&(a=p),a>m&&(a=m),(l=o*x.scale)<f&&(l=f),l>g&&(l=g)):(a=0,l=0),A.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+l+"px,0)"),A.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+x.scale+")"))},out:function(){var e=this,t=e.zoom,r=e.params.zoom,i=t.gesture;i.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):i.$slideEl=e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+r.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&i.$imageWrapEl&&0!==i.$imageWrapEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+r.zoomedSlideClass),i.$slideEl=void 0)},toggleGestures:function(e){var t=this,r=t.zoom,i=r.slideSelector,n=r.passiveListener;t.$wrapperEl[e]("gesturestart",i,r.onGestureStart,n),t.$wrapperEl[e]("gesturechange",i,r.onGestureChange,n),t.$wrapperEl[e]("gestureend",i,r.onGestureEnd,n)},enableGestures:function(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function(){var e=this,t=e.support,r=e.zoom;if(!r.enabled){r.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!t.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},n=!t.passiveListener||{passive:!1,capture:!0},s="."+e.params.slideClass;e.zoom.passiveListener=i,e.zoom.slideSelector=s,t.gestures?(e.$wrapperEl.on(e.touchEvents.start,e.zoom.enableGestures,i),e.$wrapperEl.on(e.touchEvents.end,e.zoom.disableGestures,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,s,r.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,s,r.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,s,r.onGestureEnd,i),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,s,r.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,r.onTouchMove,n)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){var r=e.support;e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!r.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},n=!r.passiveListener||{passive:!1,capture:!0},s="."+e.params.slideClass;r.gestures?(e.$wrapperEl.off(e.touchEvents.start,e.zoom.enableGestures,i),e.$wrapperEl.off(e.touchEvents.end,e.zoom.disableGestures,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,s,t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,s,t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,s,t.onGestureEnd,i),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,s,t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove,n)}}};const l={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this;(0,s.wD)(e,{zoom:o({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},a)});var t=1;Object.defineProperty(e.zoom,"scale",{get:function(){return t},set:function(r){if(t!==r){var i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,n=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",r,i,n)}t=r}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchStart:function(e,t){e.zoom.enabled&&e.zoom.onTouchStart(t)},touchEnd:function(e,t){e.zoom.enabled&&e.zoom.onTouchEnd(t)},doubleTap:function(e,t){!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionEnd:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}}},42548:(e,t,r)=>{r.d(t,{H:()=>i});const i=r(16839).C.from},42768:(e,t,r)=>{if(r.d(t,{Z:()=>a}),"contactslistv2/contactslistv2"==r.j)var i=r(94179);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return(0,i._)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),{$$widgetType:"ais.configure"}),null}},43145:(e,t,r)=>{function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}r.d(t,{A:()=>i})},43298:(e,t,r)=>{var i;r.d(t,{b:()=>i}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(i||(i={}))},43435:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={setTranslate:function(){for(var e=this,t=e.slides,r=e.rtlTranslate,n=0;n<t.length;n+=1){var s=t.eq(n),o=s[0].progress;e.params.flipEffect.limitRotation&&(o=Math.max(Math.min(s[0].progress,1),-1));var a=-180*o,l=0,c=-s[0].swiperSlideOffset,u=0;if(e.isHorizontal()?r&&(a=-a):(u=c,c=0,l=-a,a=0),s[0].style.zIndex=-Math.abs(Math.round(o))+t.length,e.params.flipEffect.slideShadows){var h=e.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),d=e.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===h.length&&(h=(0,i.A)('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),s.append(h)),0===d.length&&(d=(0,i.A)('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),s.append(d)),h.length&&(h[0].style.opacity=Math.max(-o,0)),d.length&&(d[0].style.opacity=Math.max(o,0))}s.transform("translate3d("+c+"px, "+u+"px, 0px) rotateX("+l+"deg) rotateY("+a+"deg)")}},setTransition:function(e){var t=this,r=t.slides,i=t.activeIndex,n=t.$wrapperEl;if(r.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var s=!1;r.eq(i).transitionEnd((function(){if(!s&&t&&!t.destroyed){s=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],r=0;r<e.length;r+=1)n.trigger(e[r])}}))}}};const a={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){(0,n.wD)(this,{flipEffect:s({},o)})},on:{beforeInit:function(e){if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};(0,n.X$)(e.params,t),(0,n.X$)(e.originalParams,t)}},setTranslate:function(e){"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e,t){"flip"===e.params.effect&&e.flipEffect.setTransition(t)}}}},43465:(e,t,r)=>{function i(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
2d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(t,{L:()=>i})},43578:(e,t,r)=>{r.d(t,{R:()=>u});var i=r(15381),n=r(96540);if("searchresults/searchresults"==r.j)var s=r(70775);if("searchresults/searchresults"==r.j)var o=r(67659);if("searchresults/searchresults"==r.j)var a=r(54269);if("searchresults/searchresults"==r.j)var l=r(70111);if("searchresults/searchresults"==r.j)var c=r(19770);function u(e,...[t={}]){const r=(0,l.m)(t.client),{skip:u,fetchPolicy:h,errorPolicy:d,shouldResubscribe:p,context:f,extensions:m,ignoreResults:g}=t,y=(0,o.k)((()=>t.variables),[t.variables]),v=()=>function(e,t,r,i,n,s,o){const a={query:t,variables:r,fetchPolicy:i,errorPolicy:n,context:s,extensions:o},l={...a,client:e,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(e){l.result=e}};return Object.assign(e.subscribe(a),{__:l})}(r,e,y,h,d,f,m);let[_,b]=n.useState(t.skip?null:v);const x=n.useRef(v);(0,a.E)((()=>{x.current=v})),u?_&&b(_=null):_&&(r===_.__.client&&e===_.__.query&&h===_.__.fetchPolicy&&d===_.__.errorPolicy&&(0,i.L)(y,_.__.variables)||!1===("function"==typeof p?!!p(t):p))||b(_=v());const w=n.useRef(t);n.useEffect((()=>{w.current=t}));const A=!u&&!g,E=n.useMemo((()=>({loading:A,error:void 0,data:void 0})),[A]),S=n.useRef(g);(0,a.E)((()=>{S.current=g}));const T=(0,c.r)(n.useCallback((e=>{if(!_)return()=>{};let t=!1;const r=_.__.client,i=_.subscribe({next(i){if(t)return;const n={loading:!1,data:i.data,error:i.error};_.__.setResult(n),S.current||e(),n.error?w.current.onError?.(n.error):w.current.onData&&w.current.onData({client:r,data:n})},complete(){_.__.completed=!0,!t&&w.current.onComplete&&w.current.onComplete()}});return()=>{t=!0,setTimeout((()=>i.unsubscribe()))}}),[_]),(()=>!_||u||g?E:_.__.result),(()=>E)),C=n.useCallback((()=>{(0,s.V1)(!w.current.skip,33),_?.__.completed?b(x.current()):_?.restart()}),[_,b,w,x]);return n.useMemo((()=>({...T,restart:C})),[T,C])}},43675:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(65520),n=r(33261);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={init:function(){var e=this,t=e.params.thumbs;if(e.thumbs.initialized)return!1;e.thumbs.initialized=!0;var r=e.constructor;return t.swiper instanceof r?(e.thumbs.swiper=t.swiper,(0,i.X$)(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),(0,i.X$)(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):(0,i.Gv)(t.swiper)&&(e.thumbs.swiper=new r((0,i.X$)({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick),!0},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var r=t.clickedIndex,i=t.clickedSlide;if(!(i&&(0,n.A)(i).hasClass(e.params.thumbs.slideThumbActiveClass)||null==r)){var s;if(s=t.params.loop?parseInt((0,n.A)(t.clickedSlide).attr("data-swiper-slide-index"),10):r,e.params.loop){var o=e.activeIndex;e.slides.eq(o).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,o=e.activeIndex);var a=e.slides.eq(o).prevAll('[data-swiper-slide-index="'+s+'"]').eq(0).index(),l=e.slides.eq(o).nextAll('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===a?l:void 0===l?a:l-o<o-a?l:a}e.slideTo(s)}}},update:function(e){var t=this,r=t.thumbs.swiper;if(r){var i="auto"===r.params.slidesPerView?r.slidesPerViewDynamic():r.params.slidesPerView,n=t.params.thumbs.autoScrollOffset,s=n&&!r.params.loop;if(t.realIndex!==r.realIndex||s){var o,a,l=r.activeIndex;if(r.params.loop){r.slides.eq(l).hasClass(r.params.slideDuplicateClass)&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,l=r.activeIndex);var c=r.slides.eq(l).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),u=r.slides.eq(l).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();o=void 0===c?u:void 0===u?c:u-l==l-c?r.params.slidesPerGroup>1?u:l:u-l<l-c?u:c,a=t.activeIndex>t.previousIndex?"next":"prev"}else a=(o=t.realIndex)>t.previousIndex?"next":"prev";s&&(o+="next"===a?n:-1*n),r.visibleSlidesIndexes&&r.visibleSlidesIndexes.indexOf(o)<0&&(r.params.centeredSlides?o=o>l?o-Math.floor(i/2)+1:o+Math.floor(i/2)-1:o>l&&r.params.slidesPerGroup,r.slideTo(o,e?0:void 0))}var h=1,d=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(h=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(h=1),h=Math.floor(h),r.slides.removeClass(d),r.params.loop||r.params.virtual&&r.params.virtual.enabled)for(var p=0;p<h;p+=1)r.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+p)+'"]').addClass(d);else for(var f=0;f<h;f+=1)r.slides.eq(t.realIndex+f).addClass(d)}}};const a={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){(0,i.wD)(this,{thumbs:s({swiper:null,initialized:!1},o)})},on:{beforeInit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(e){e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e,t){var r=e.thumbs.swiper;r&&r.setTransition(t)},beforeDestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}}},43875:(e,t,r)=>{r.d(t,{t:()=>n});var i=0;function n(e){"recommend"===e.dependsOn&&(e.$$id=i++)}},43988:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(41917).A.Uint8Array;const n="app"==r.j?i:null},44249:(e,t,r)=>{if(r.d(t,{E:()=>n}),"vendors"!=r.j)var i=r(70775);function n(e){(0,i.V1)("Document"===e.kind,6),(0,i.V1)(e.definitions.length<=1,7);const t=e.definitions[0];return(0,i.V1)("FragmentDefinition"===t.kind,8),t}},44662:(e,t,r)=>{if(r.d(t,{A:()=>
2o}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(17275);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(79586);const s=e=>e instanceof n.A?{...e}:e;function o(e,t){t=t||{};const r={};function n(e,t,r,n){return i.A.isPlainObject(e)&&i.A.isPlainObject(t)?i.A.merge.call({caseless:n},e,t):i.A.isPlainObject(t)?i.A.merge({},t):i.A.isArray(t)?t.slice():t}function o(e,t,r,s){return i.A.isUndefined(t)?i.A.isUndefined(e)?void 0:n(void 0,e,0,s):n(e,t,0,s)}function a(e,t){if(!i.A.isUndefined(t))return n(void 0,t)}function l(e,t){return i.A.isUndefined(t)?i.A.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function c(r,i,s){return s in t?n(r,i):s in e?n(void 0,r):void 0}const u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(e,t,r)=>o(s(e),s(t),0,!0)};return i.A.forEach(Object.keys(Object.assign({},e,t)),(function(n){const s=u[n]||o,a=s(e[n],t[n],n);i.A.isUndefined(a)&&s!==c||(r[n]=a)})),r}},44783:(e,t,r)=>{function i(e){return{__ref:String(e)}}r.d(t,{W:()=>i})},44838:(e,t,r)=>{r.d(t,{b:()=>s});var i=r(44876),n=new(r(47241).q)(i.R),s="vendors"!=r.j?n:null},44876:(e,t,r)=>{r.d(t,{R:()=>a});var i=r(31635),n=function(e){function t(t,r){return e.call(this)||this}return(0,i.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(52616).yU),s={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=s.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,(0,i.__spreadArray)([e,t],(0,i.__read)(r))):setInterval.apply(void 0,(0,i.__spreadArray)([e,t],(0,i.__read)(r)))},clearInterval:function(e){var t=s.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},o=r(6174),a=function(e){function t(t,r){var i=e.call(this,t,r)||this;
2return i.scheduler=t,i.work=r,i.pending=!1,i}return(0,i.__extends)(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),s.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&s.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,i=!1;try{this.work(e)}catch(e){i=!0,r=e||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,o.o)(i,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(n)},45170:(e,t,r)=>{r.d(t,{J:()=>l});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(83312);if("contactslistv2/contactslistv2"==r.j)var s=r(14794);if("contactslistv2/contactslistv2"==r.j)var o=r(58028);if("contactslistv2/contactslistv2"==r.j)var a=r(95927);function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,t=(0,n.I)(),r=(0,a.Z)(),l=r.uiState,c=r.setUiState,u=r.indexUiState,h=r.setIndexUiState,d=r.renderState,p=r.indexRenderState,f=(0,o.W)(),m=f.results,g=f.scopedResults,y=(0,i.useCallback)((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.use.apply(t,r),function(){t.unuse.apply(t,r)}}),[t]),v=(0,i.useCallback)((function(){t.refresh()}),[t]);return(0,s.E)((function(){if(e){var r=function(){};return t.addListener("error",r),function(){return t.removeListener("error",r)}}return function(){}}),[t,e]),{results:m,scopedResults:g,uiState:l,setUiState:c,indexUiState:u,setIndexUiState:h,renderState:d,indexRenderState:p,addMiddlewares:y,refresh:v,status:t.status,error:t.error}}},45279:(e,t,r)=>{r.d(t,{Q:()=>s});var i=r(81160),n=r(87718);const s=(0,r(18316).B)((function(e,t,r){return function(e,t){let r,s;function o(e){return e!==r&&(r=e,s=t(r)),s}return Object.assign(e.pipe((0,i.T)(o),(0,n.t)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>o(e.getCurrentResult())})}(e,r)}),{max:1,makeCacheKey:e=>e.slice(0,2)})},45318:(e,t,r)=>{if(r.d(t,{J:()=>s}),"vendors"!=r.j)var i=r(43298);if("vendors"!=r.j)var n=r(70775);function s(e,t,r,o){if(r.kind===i.b.INT||r.kind===i.b.FLOAT)e[t.value]=Number(r.value);else if(r.kind===i.b.BOOLEAN||r.kind===i.b.STRING)e[t.value]=r.value;else if(r.kind===i.b.OBJECT){const i={};r.fields.map((e=>s(i,e.name,e.value,o))),e[t.value]=i}else if(r.kind===i.b.VARIABLE){const i=(o||{})[r.name.value];e[t.value]=i}else if(r.kind===i.b.LIST)e[t.value]=r.values.map((e=>{const r={};return s(r,t,e,o),r[t.value]}));else if(r.kind===i.b.ENUM)e[t.value]=r.value;else{if(r.kind!==i.b.NULL)throw(0,n.vA)(19,t.value,r.kind);e[t.value]=null}}},45410:(e,t,r)=>{r.d(t,{z:()=>c});var i=r(15381);if("vendors"!=r.j)var n=r(43298);if("vendors"!=r.j)var s=r(15590);if("vendors"!=r.j)var o=r(78812);if("vendors"!=r.j)var a=r(70775);if("vendors"!=r.j)var l=r(64083);function c(e,t,r,c){const u=t.definitions.filter((e=>e.kind===n.b.FRAGMENT_DEFINITION));void 0===c&&((0,a.V1)(1===u.length,41,u.length),c=u[0].name.value);const h=u.find((e=>e.name.value===c));return(0,a.V1)(!!h,42,c),null==e||(0,i.L)(e,{})?e:(0,l.S)(e,h.selectionSet,{operationType:"fragment",operationName:h.name.value,fragmentMap:(0,s.J)((0,o.z)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}},45572:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}:null},46286:(e,t,r)=>{function i(e,t){if(!Boolean(e))throw new Error(t)}r.d(t,{U:()=>i})},46343:(e,t,r)=>{r.d(t,{I:()=>l});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(68481);if("searchresults/searchresults"==r.j)var s=r(67659);if("searchresults/searchresults"==r.j)var o=r(70111);if("searchresults/searchresults"==r.j)var a=r(19770);function l(e){return(0,n.Y)("useFragment",c,(0,o.m)(e.client))(e)}function c(e){const t=(0,o.m)(e.client),{from:r,...n}=e,{cache:l}=t,c=(0,s.k)((()=>{const e=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?e:null===e?null:l.identify(e)));return Array.isArray(r)?e:e[0]}),[l,r]),h=(0,s.k)((()=>({...n,from:c})),[n,c]),d=i.useMemo((()=>t.watchFragment(h)),[t,h]),p=i.useCallback((()=>null===r?u:d.getCurrentResult()),[r,d]);return(0,a.r)(i.useCallback((e=>{let t=0;const r=d.subscribe({next:()=>{clearTimeout(t),t=setTimeout(e)}});return()=>{r.unsubscribe(),clearTimeout(t)}}),[d]),p,p)}const u=Object.freeze({data:{},dataState:"partial",complete:!1})},46632:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(65915);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o};return r.cache=new(n.Cache||i.A),r}n.Cache=i.A;const s="app"==r.j?n:null},46674:(e,t,r)=>{r.d(t,{w:()=>a});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(11327);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}
2finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function a(e){var t=s((0,i.useState)((function(){return e})),2),r=t[0],o=t[1];return(0,n.j)(r,e)||o(e),r}},47109:(e,t,r)=>{if(r.d(t,{p:()=>h}),"contactslistv2/contactslistv2"==r.j)var i=r(40648);if("contactslistv2/contactslistv2"==r.j)var n=r(94176);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var o="contactslistv2/contactslistv2"==r.j?["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]:null;function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(t,o);return e.setQueryParameters(r)},h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){var r=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:l(l({},e.hierarchicalFacetsRefinements),t.hierarchicalFacetsRefinements)})}(e,t),s=function(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce((function(e,t){var r=(0,i.S)(e,(function(e){return e.name===t.name}));if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n}),e.hierarchicalFacets)})}(r,t),o=function(e,t){return t.tagRefinements.reduce((function(e,t){return e.addTagRefinement(t)}),e)}(s,t),a=function(e,t){return e.setQueryParameters({numericRefinements:l(l({},e.numericRefinements),t.numericRefinements)})}(o,t),c=function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:l(l({},e.disjunctiveFacetsRefinements),t.disjunctiveFacetsRefinements)})}(a,t),h=function(e,t){return e.setQueryParameters({facetsExcludes:l(l({},e.facetsExcludes),t.facetsExcludes)})}(c,t),d=function(e,t){return e.setQueryParameters({facetsRefinements:l(l({},e.facetsRefinements),t.facetsRefinements)})}(h,t),p=function(e,t){return t.disjunctiveFacets.reduce((function(e,t){return e.addDisjunctiveFacet(t)}),e)}(d,t),f=function(e,t){var r=(0,n.s)([].concat(e.ruleContexts).concat(t.ruleContexts).filter(
2Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e}(p,t),m=function(e,t){return t.facets.reduce((function(e,t){return e.addFacet(t)}),e)}(f,t);return u(m,t)}))}},47241:(e,t,r)=>{r.d(t,{q:()=>o});var i=r(31635),n=r(31179),s=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.U.now,e}(),o=function(e){function t(t,r){void 0===r&&(r=s.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return(0,i.__extends)(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(s)},47370:(e,t,r)=>{if(r.d(t,{x:()=>o}),"vendors"!=r.j)var i=r(54889);if("vendors"!=r.j)var n=r(82100);if("vendors"!=r.j)var s=r(65474);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,i.K)()((0,s.H)(e,(0,n.lI)(e)))}},47397:(e,t,r)=>{r.d(t,{y:()=>c});var i=r(66547),n=r(16645),s=r(80433),o=r(70685),a=r(81212);let l;const c=Object.assign((e=>{let t=l.get(e);return t||(t=(0,i.y)(e),l.set(e,t)),t}),{reset(){l=new s.A(a.v.print||2e3)}});c.reset(),n.g&&(0,o.D_)("print",(()=>l?l.size:0))},47531:(e,t,r)=>{if(r.d(t,{o:()=>s}),"vendors"!=r.j)var i=r(16645);if("vendors"!=r.j)var n=r(33245);function s(e){const t=new Set([e]);return t.forEach((e=>{(0,n.U)(e)&&function(e){if(i.g&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((r=>{(0,n.U)(e[r])&&t.add(e[r])}))})),e}},47619:(e,t,r)=>{r.d(t,{I:()=>C});var i,n=r(15381),s=r(96540),o=r(19895),a=r(31635),l=r(44876),c=1,u={};function h(e){return e in u&&(delete u[e],!0)}var d=function(e){var t=c++;return u[t]=!0,i||(i=Promise.resolve()),i.then((function(){return h(t)&&e()})),t},p=function(e){h(e)},f={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=f.delegate;return((null==r?void 0:r.setImmediate)||d).apply(void 0,(0,a.__spreadArray)([],(0,a.__read)(e)))},clearImmediate:function(e){var t=f.delegate;return((null==t?void 0:t.clearImmediate)||p)(e)},delegate:void 0},m=function(e){function t(t,r){var i=e.call(this,t,r)||this;
2return i.scheduler=t,i.work=r,i}return(0,a.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=f.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,i){var n;if(void 0===i&&(i=0),null!=i?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);var s=t.actions;null!=r&&(null===(n=s[s.length-1])||void 0===n?void 0:n.id)!==r&&(f.clearImmediate(r),t._scheduled=void 0)},t}(l.R),g=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,i=this.actions;e=e||i.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=i[0])&&e.id===t&&i.shift());if(this._active=!1,r){for(;(e=i[0])&&e.id===t&&i.shift();)e.unsubscribe();throw r}},t}(r(47241).q))(m),y=r(88599),v=r(52404),_=r(53265),b=r(59313),x=r(23105),w=r(68481),A=r(67659),E=r(70111),S=r(19770);const T=Symbol();function C(e,...[t]){return(0,w.Y)("useQuery",I,(0,E.m)("object"==typeof t?t.client:void 0))(e,t)}function I(e,t={}){const r=(0,E.m)("object"==typeof t?t.client:void 0),{ssr:i}="object"==typeof t?t:{},a=function(e,t,r){return(0,A.k)((()=>{if(t===x.h){const t={...(0,v.l)(r,{query:e,fetchPolicy:"standby"}),[_._K]:!0};return t[P]=!0,t}const i=(0,v.l)(r,{...t,query:e});return t.skip&&(i.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy,i.fetchPolicy="standby"),i}),[e,t,r])}(e,t,r.defaultOptions.watchQuery);function l(t){const i=r.watchQuery(a);return{client:r,query:e,observable:i,resultData:{current:i.getCurrentResult(),previousData:t?.resultData.current.data,variables:i.variables}}}let[c,u]=s.useState(l);r===c.client&&e===c.query||u(c=l(c));const{observable:h,resultData:d}=c;!function(e,t){e.fetchPolicy||(e.fetchPolicy=t.options.initialFetchPolicy)}(a,h),function(e,t,r){if(t[T]&&!(0,n.L)(t[T],r)){t[T][P]&&!r.initialFetchPolicy&&(r.initialFetchPolicy=r.fetchPolicy),!function(e,t){return e.query!==t.query||!(0,n.L)(e.variables,t.variables)||e.fetchPolicy!==t.fetchPolicy&&("standby"===t.fetchPolicy||"standby"===e.fetchPolicy)}(t[T],r)?t.applyOptions(r):t.reobserve(r);const i=t.getCurrentResult();(0,n.L)(i.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=i,e.variables=t.variables}t[T]=r}(d,h,a);const p=function(e,t,r){const i=e.options.fetchPolicy;return(0,S.r)(s.useCallback((r=>{const i=e.pipe((0,o.Q)(g)).subscribe((i=>{const s=t.current;(0,n.L)(s,i)&&(0,n.L)(t.variables,e.variables)||(t.variables=e.variables,s.data&&!(0,n.L)(s.data,i.data)&&(t.previousData=s.data),t.current=i,r())}));return()=>{setTimeout((()=>i.unsubscribe()))}}),[e,t]),(()=>t.current),(()=>"standby"!==i&&!1===r||"no-cache"===i?C.ssrDisabledResult:t.current))}(h,d,i),f=s.useMemo((()=>({refetch:h.refetch.bind(h),fetchMore:h.fetchMore.bind(h),updateQuery:h.updateQuery.bind(h),startPolling:h.startPolling.bind(h),stopPolling:h.stopPolling.bind(h),subscribeToMore:h.subscribeToMore.bind(h)})),[h]),m=d.previousData;return s.useMemo((()=>{const{partial:e,...t}=p;return{...t,client:r,observable:h,variables:h.variables,previousData:m,...f}}),[p,r,h,m,f])}const P=Symbol();C.ssrDisabledResult=(0,b.G)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:y.p.loading,partial:!0})},47737:(e,t,r)=>{var i;r.d(t,{y:()=>a});var n=r(96540);if("searchresults/searchresults"==r.j)var s=r(7104);const o=(i||(i=r.t(n,2))).use,a="searchresults/searchresults"==r.j?o||function(e){const t=(0,s.b)(e);switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}}:null},48182:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(30052);const n="app"==r.j?function(e){return null==e?"":(0,i.A)(e)}:null},48262:(e,t,r)=>{r.d(t,{k:()=>k});var i=r(11744),n=r(15381),s=r(32453),o=r(6839),a=r(81160),l=r(59099),c=r(87718),u=r(93776),h=r(58307),d=r(92908),p=r(64878);function f(e,t){return e===t}var m=r(1005),g=r(39741),y=r(44838),v=r(98820),_=r(86577);var b=r(41697),x=r(81212),w=r(16645),A=r(44249),E=r(45279),S=r(61701);var T=r(11437),C=r(70775);function I(e,t){let r=t;const i=[];e.definitions.forEach((e=>{if("OperationDefinition"===e.kind)throw(0,C.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)})),void 0===r&&((0,C.V1)(1===i.length,11,i.length),r=i[0].name.value);return{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}function P(...e){return o.NS.bind(null,...e)}var M=r(56939);class k{assumeImmutableResults=!1;lookupFragment(e){return null}
2batch(e){const t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;let r;return this.performTransaction((()=>r=e.update(this)),t),r}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new s.b(!0);watchFragment(e){const{fragment:t,fragmentName:r,from:i}=e,s=this.getFragmentDoc(t,r),o=(Array.isArray(i)?i:[i]).map((e=>{const i=null==e?e:this.toCacheId(e);if(w.g){const e=r||(0,A.E)(t).name.value;void 0===i&&w.g&&C.V1.warn(113,e)}return i}));if(!Array.isArray(i)){const t=this.watchSingleFragment(o[0],s,e);return null===i?t:(0,E.Q)(t,Symbol.for("apollo.transform.individualResult"),(e=>({...e,data:e.data??{}})))}let h;function d(e){const t=e.reduce(((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e)),{data:[],dataState:"complete",complete:!0});return(0,n.L)(h,t)||(h=t),h}if(0===o.length)return L;let p=!1;const f=o.map((t=>this.watchSingleFragment(t,s,e))),m=function(e){return 0===e.length?S.w:new u.c((t=>{const{length:r}=e,i=new Array(r),n=new Map;e.forEach(((e,t)=>{n.has(e)||n.set(e,new Set),n.get(e).add(t)}));let s,o=n.size,a=n.size;n.forEach(((r,n)=>{let l=!1;const c=n.subscribe({next:o=>{r.forEach((e=>i[e]=o)),l||(l=!0,a--),a||(s||=new Set(e.filter((e=>e.dirty))),s.delete(n),s.size||(t.next(i.slice()),s=void 0))},complete:()=>{o--,o||t.complete()},error:t.error.bind(t)});t.add(c)}))}))}(f).pipe((0,a.T)(d),(0,l.M)({subscribe:()=>p=!0,unsubscribe:()=>p=!1}),(0,c.t)({bufferSize:1,refCount:!0}));return Object.assign(m,{getCurrentResult:()=>{if(p&&h)return h;const e=f.map((e=>e.getCurrentResult()));return d(e)}})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return R;const{optimistic:i=!0,variables:n}=r,s=[t,(0,b.M)({id:e,optimistic:i,variables:n})],o=this.fragmentWatches.lookupArray(s);if(!o.observable){let c,x=!1;function w(e){const i=e.result;return c&&(0,T.a)(t,{data:c.data},{data:i},r.variables)||(c={data:i,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}const A=new u.c((r=>{x=!0;const o=this.watch({variables:n,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:e=>{A.dirty=!0,this.onAfterBroadcast((()=>{r.next(w(e)),A.dirty=!1}))}});return()=>{x=!1,o(),this.fragmentWatches.removeArray(s)}})).pipe((void 0===l&&(l=h.D),a=null!=a?a:f,(0,d.N)((function(e,t){var r,i=!0;e.subscribe((0,p._)(t,(function(e){var n=l(e);!i&&a(r,n)||(i=!1,r=n,t.next(e))})))}))),(0,m.u)({connector:()=>new g.m(1),resetOnRefCountZero:()=>function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=y.b);var i=-1;return null!=t&&((0,v.m)(t)?r=t:i=t),new u.c((function(t){var n=(0,_.v)(e)?+e-r.now():e;n<0&&(n=0);var s=0;return r.schedule((function(){t.closed||(t.next(s++),0<=i?this.schedule(void 0,i):t.complete())}),n)}))}(0)}));o.observable=Object.assign(A,{dirty:!1,getCurrentResult:()=>x&&c?c:w(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:n}))})}var a,l;return o.observable}getFragmentDoc=(0,o.LV)(I,{max:x.v["cache.fragmentQueryDocuments"]||1e3,cache:i.l,makeCacheKey:P(this)});readFragment(e,t=!!e.optimistic){const r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...i}){const n=void 0!==i.from?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,r),dataId:n,result:e}))}updateQuery(e,t){return this.batch({update(r){const i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){const i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}w.g&&(k.prototype.getMemoryInternals=M.tQ);const O=Object.freeze({data:null,dataState:"complete",complete:!0}),R=Object.assign(new u.c((e=>{e.next(O)})),{dirty:!1,getCurrentResult:()=>O}),D=Object.freeze({data:[],dataState:"complete",complete:!0}),L=Object.assign(new u.c((e=>
2{e.next(D)})),{getCurrentResult:()=>D})},49003:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(51648),n=r(33261),s=r(65520);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(this,arguments)}var a={handle:function(e){var t=this;if(t.enabled){var r=(0,i.zk)(),n=(0,i.YE)(),s=t.rtlTranslate,o=e;o.originalEvent&&(o=o.originalEvent);var a=o.keyCode||o.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===a,u=l&&34===a,h=37===a,d=39===a,p=38===a,f=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&d||t.isVertical()&&f||u))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&h||t.isVertical()&&p||c))return!1;if(!(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey||n.activeElement&&n.activeElement.nodeName&&("input"===n.activeElement.nodeName.toLowerCase()||"textarea"===n.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||u||h||d||p||f)){var m=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var g=t.$el,y=g[0].clientWidth,v=g[0].clientHeight,_=r.innerWidth,b=r.innerHeight,x=t.$el.offset();s&&(x.left-=t.$el[0].scrollLeft);for(var w=[[x.left,x.top],[x.left+y,x.top],[x.left,x.top+v],[x.left+y,x.top+v]],A=0;A<w.length;A+=1){var E=w[A];if(E[0]>=0&&E[0]<=_&&E[1]>=0&&E[1]<=b){if(0===E[0]&&0===E[1])continue;m=!0}}if(!m)return}t.isHorizontal()?((c||u||h||d)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((u||d)&&!s||(c||h)&&s)&&t.slideNext(),((c||h)&&!s||(u||d)&&s)&&t.slidePrev()):((c||u||p||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(u||f)&&t.slideNext(),(c||p)&&t.slidePrev()),t.emit("keyPress",a)}}},enable:function(){var e=this,t=(0,i.YE)();e.keyboard.enabled||((0,n.A)(t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this,t=(0,i.YE)();e.keyboard.enabled&&((0,n.A)(t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};const l={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){(0,s.wD)(this,{keyboard:o({enabled:!1},a)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}}},49233:(e,t,r)=>{r.d(t,{R:()=>n});var i=r(96540),n="contactslistv2/contactslistv2"==r.j?(0,i.createContext)(null):null},49503:(e,t,r)=>{if(r.d(t,{MY:()=>s,r1:()=>n}),"vendors"!=r.j)var i=r(19735);function n(e){var t=(0,i.FK)(e);return function(r,i,n,s){for(var o="",a=0;a<t;a++)o+=e[a](r,i,n,s)||"";return o}}function s(e){return function(t){t.root||(t=t.return)&&e(t)}}},49738:(e,t,r)=>{if(r.d(t,{I:()=>n}),"vendors"!=r.j)var i=r(95843);function n(e,t,r){return new i.eO(`Syntax Error: ${r}`,{source:e,positions:[t]})}},49914:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}:null},49922:(e,t,r)=>{if(r.d(t,{A:()=>s}),"vendors"!=r.j)var i=r(82284);if("vendors"!=r.j)var n=r(92327);function s(e){var t=(0,n.A)(e,"string");return"symbol"==(0,i.A)(t)?t:t+""}},49993:(e,t,r)=>{function i(e){const t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}r.d(t,{$:()=>i})},50053:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(19007);const n="app"==r.j?function(e){return(0,i.A)(e,4)}:null},50423:(e,t,r)=>{if(r.d(t,{A:()=>u}),"app"==r.j)var i=r(59520);if("app"==r.j)var n=r(25175);if("app"==r.j)var s=r(92049);if("app"==r.j)var o=r(74616);if("app"==r.j)var a=r(25353);if("app"==r.j)var l=r(54749);var c=Object.prototype.hasOwnProperty;const u="app"==r.j?function(e,t){var r=(0,s.A)(e),u=!r&&(0,n.A)(e),h=!r&&!u&&(0,o.A)(e),d=!r&&!u&&!h&&(0,l.A)(e),p=r||u||h||d,f=p?(0,i.A)(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||h&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,m))||f.push(g);return f}:null},50475:(e,t,r)=>{r.d(t,{Ll:()=>a,aD:()=>s,aZ:()=>i,cE:()=>l,ou:()=>n});class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class n{constructor(e,t,r,i,n,s){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const s={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
2Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},o=new Set(Object.keys(s));function a(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},50483:(e,t,r)=>{if(r.d(t,{A:()=>o,l:()=>s}),"vendors"!=r.j)var i=r(24534);if("vendors"!=r.j)var n=r(19735);function s(e,t){for(var r="",i=(0,n.FK)(e),s=0;s<i;s++)r+=t(e[s],s,e,t)||"";return r}function o(e,t,r,o){switch(e.type){case i.IO:if(e.children.length)break;case i.yE:case i.LU:return e.return=e.return||e.value;case i.YK:return"";case i.Sv:return e.return=e.value+"{"+s(e.children,o)+"}";case i.XZ:e.value=e.props.join(",")}return(0,n.b2)(r=s(e.children,o))?e.return=e.value+"{"+r+"}":""}},51446:(e,t,r)=>{if(r.d(t,{V:()=>n}),"vendors"!=r.j)var i=r(93776);function n(e,t){return new i.c((function(r){var i=0;return t.schedule((function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())}))}))}},51979:(e,t,r)=>{if(r.d(t,{A:()=>p}),"app"==r.j)var i=r(89610);if("app"==r.j)var n=r(29565);if("app"==r.j)var s=r(23149);if("app"==r.j)var o=r(81121);var a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const p="app"==r.j?function(e){return!(!(0,s.A)(e)||(0,n.A)(e))&&((0,i.A)(e)?d:a).test((0,o.A)(e))}:null},51982:(e,t,r)=>{if(r.d(t,{S:()=>s}),"contactslistv2/contactslistv2"==r.j)var i=r(18454);var n="contactslistv2/contactslistv2"==r.j?new RegExp(/\w/i):null;function s(e,t){var r,s,o=e[t],a=(null===(r=e[t+1])||void 0===r?void 0:r.isHighlighted)||!0,l=(null===(s=e[t-1])||void 0===s?void 0:s.isHighlighted)||!0;return n.test((0,i.x)(o.value))||l!==a?o.isHighlighted:l}},52176:(e,t,r)=>{function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}r.d(t,{A:()=>i})},52213:(e,t,r)=>{function i(e){return Array.isArray(e)&&e.length>0}r.d(t,{E:()=>i})},52357:(e,t,r)=>{r.d(t,{r:()=>s});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(28139);function s(){return(0,i.useContext)(n.W)}},52404:(e,t,r)=>{if(r.d(t,{l:()=>n}),"vendors"!=r.j)var i=r(91581);function n(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)({...e&&e.variables,...t.variables})})}},52528:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(84171);const n="app"==r.j?function(e,t,r){"__proto__"==t&&i.A?(0,i.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}:null},52616:(e,t,r)=>{r.d(t,{Kn:()=>l,yU:()=>a,Uv:()=>c});var i=r(31635),n=r(61209),s=(0,r(82947).L)((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})),o=r(6174),a=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,i.__values)(l),h=c.next();!h.done;h=c.next()){h.value.remove(this)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else l.remove(this);var d=this.initialTeardown;
2if((0,n.T)(d))try{d()}catch(e){a=e instanceof s?e.errors:[e]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var f=(0,i.__values)(p),m=f.next();!m.done;m=f.next()){var g=m.value;try{u(g)}catch(e){a=null!=a?a:[],e instanceof s?a=(0,i.__spreadArray)((0,i.__spreadArray)([],(0,i.__read)(a)),(0,i.__read)(e.errors)):a.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(a)throw new s(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)u(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,o.o)(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&(0,o.o)(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),l=a.EMPTY;function c(e){return e instanceof a||e&&"closed"in e&&(0,n.T)(e.remove)&&(0,n.T)(e.add)&&(0,n.T)(e.unsubscribe)}function u(e){(0,n.T)(e)?e():e.unsubscribe()}},52789:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e){return function(t){return e(t)}}:null},52851:(e,t,r)=>{if(r.d(t,{A:()=>o}),"app"==r.j)var i=r(52528);if("app"==r.j)var n=r(66984);var s=Object.prototype.hasOwnProperty;const o="app"==r.j?function(e,t,r){var o=e[t];s.call(e,t)&&(0,n.A)(o,r)&&(void 0!==r||t in e)||(0,i.A)(e,t,r)}:null},53098:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e){return null!=e&&"object"==typeof e}:null},53110:(e,t,r)=>{var i=r(33319);const{Axios:n,AxiosError:s,CanceledError:o,isCancel:a,CancelToken:l,VERSION:c,all:u,Cancel:h,isAxiosError:d,spread:p,toFormData:f,AxiosHeaders:m,HttpStatusCode:g,formToJSON:y,getAdapter:v,mergeConfig:_}=i.A},53265:(e,t,r)=>{r.d(t,{DH:()=>n,X:()=>i,_K:()=>s});const i=Symbol.for("apollo.result.extensions"),n=Symbol.for("apollo.result.streamInfo"),s=Symbol.for("apollo.observableQuery.variablesUnknown")},53314:(e,t,r)=>{if(r.d(t,{x:()=>o}),"vendors"!=r.j)var i=r(15964);if("vendors"!=r.j)var n=r(19895);if("vendors"!=r.j)var s=r(1343);function o(e,t){return(0,i.Tg)(e).pipe((0,s._)(t),(0,n.Q)(t))}},53453:(e,t,r)=>{function i(e){return e!==Object(e)}function n(e,t){if(e===t)return!0;if(i(e)||i(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r=0,s=Object.keys(e);r<s.length;r++){var o=s[r];if(!(o in t))return!1;if(!n(e[o],t[o]))return!1}return!0}r.d(t,{n:()=>n})},53489:(e,t,r)=>{r.d(t,{s:()=>c});var i=r(84705),n=r(43298),s=r(16645),o=r(70775),a=r(81212),l=r(82920);const c=(0,r(18316).B)(((e,t)=>{(0,o.V1)(e&&"Document"===e.kind,1);const r=e.definitions.filter((e=>"OperationDefinition"===e.kind));s.g&&(e.definitions.forEach((e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,o.vA)(2,e.kind)})),(0,o.V1)(r.length<=1,3,r.length)),t&&(0,o.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,i.YR)(e,{Field(t,i,s,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,s=[];for(const e of a)i=i[e],i.kind===n.b.FIELD&&s.push(i.alias?.value||i.name.value);throw s.splice(-1,1,t.name.value),(0,o.vA)(5,t.alias.value,s.join("."),r[0].operation,(0,l.n)(e,"(anonymous)"))}}})}),{max:a.v.checkDocument||2e3})},53954:(e,t,r)=>{function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}r.d(t,{A:()=>i})},54269:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(96540);const n=r(16507).S?i.useLayoutEffect:i.useEffect},54409:(e,t,r)=>{r.r(t),r.d(t,{Swiper:()=>i.A,default:()=>i.A});var i=r(57233),n=r(96379),s=r(49003),o=r(94037),a=r(56469),l=r(21641),c=r(11567),u=r(32027),h=r(42411),d=r(15945),p=r(80521),f=r(6637),m=r(78347),g=r(68923),y=r(26187),v=r(85847),_=r(22711),b=r(43435),x=r
2(22751),w=r(43675),A=[n.A,s.A,o.A,a.A,l.A,c.A,u.A,h.A,d.A,p.A,f.A,m.A,g.A,y.A,v.A,_.A,b.A,x.A,w.A];i.A.use(A)},54621:(e,t,r)=>{if(r.d(t,{h:()=>s}),"vendors"!=r.j)var i=r(80129);const n=globalThis.process&&!0,s="vendors"!=r.j?n?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=(0,i.N)(e);throw new Error(`Cannot use ${n} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}:null},54749:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(79672),n=r(5254),s=r(53098),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;const a=function(e){return(0,s.A)(e)&&(0,n.A)(e.length)&&!!o[(0,i.A)(e)]};var l=r(52789),c=r(64841),u=c.A&&c.A.isTypedArray;const h=u?(0,l.A)(u):a},54889:(e,t,r)=>{if(r.d(t,{K:()=>n}),"vendors"!=r.j)var i=r(93031);function n(){return(0,i.U)(1)}},54954:(e,t,r)=>{r.d(t,{_:()=>a,k:()=>o});var i=r(46286),n=r(80129);if("vendors"!=r.j)var s=r(54621);class o{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,i.U)(!1,`Body must be a string. Received: ${(0,n.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,i.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return(0,s.h)(e,o)}},55222:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(74243);if("contactslistv2/contactslistv2"==r.j)var n=r(60513);if("contactslistv2/contactslistv2"==r.j)var s=r(40069);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=(0,i.V)({name:"search-box",connector:!0}),h=function(e,t){return t(e)};const d="contactslistv2/contactslistv2"==r.j?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.l;return(0,s.t)(e,u()),function(r){var i,n,s=(r||{}).queryHook,o=void 0===s?h:s;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e(l(l({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(l(l({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return l(l({},e),{},{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,s=e.instantSearchInstance,a=e.state;
2return i||(i=function(e){o(e,(function(e){return t.setQuery(e).search()}))},n=function(){t.setQuery("").search()}),{query:a.query||"",refine:i,clear:n,widgetParams:r,isSearchStalled:"stalled"===s.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:l(l({},e),{},{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}}:null},55423:(e,t,r)=>{function i(e){const t=Promise.reject(e);return t.catch((()=>{})),t.status="rejected",t.reason=e,t}r.d(t,{I:()=>i})},55579:(e,t,r)=>{function i(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}r.d(t,{A:()=>i})},55604:(e,t,r)=>{r.d(t,{s:()=>i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},56199:(e,t,r)=>{function i(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"undefined"==typeof window?t():e({window})}r.d(t,{x:()=>i})},56315:(e,t,r)=>{function i(e,t,r,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var s=t.schedule((function(){r(),n?e.add(this.schedule(null,i)):this.unsubscribe()}),i);if(e.add(s),!n)return s}r.d(t,{N:()=>i})},56469:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(33261),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={toggleEl:function(e,t){e[t?"addClass":"removeClass"](this.params.navigation.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=t)},update:function(){var e=this,t=e.params.navigation,r=e.navigation.toggleEl;if(!e.params.loop){var i=e.navigation,n=i.$nextEl,s=i.$prevEl;s&&s.length>0&&(e.isBeginning?r(s,!0):r(s,!1),e.params.watchOverflow&&e.enabled&&s[e.isLocked?"addClass":"removeClass"](t.lockClass)),n&&n.length>0&&(e.isEnd?r(n,!0):r(n,!1),e.params.watchOverflow&&e.enabled&&n[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,r=this,s=r.params.navigation;(r.params.navigation=(0,n.IY)(r.$el,r.params.navigation,r.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),s.nextEl||s.prevEl)&&(s.nextEl&&(e=(0,i.A)(s.nextEl),r.params.uniqueNavElements&&"string"==typeof s.nextEl&&e.length>1&&1===r.$el.find(s.nextEl).length&&(e=r.$el.find(s.nextEl))),s.prevEl&&(t=(0,i.A)(s.prevEl),r.params.uniqueNavElements&&"string"==typeof s.prevEl&&t.length>1&&1===r.$el.find(s.prevEl).length&&(t=r.$el.find(s.prevEl))),e&&e.length>0&&e.on("click",r.navigation.onNextClick),t&&t.length>0&&t.on("click",r.navigation.onPrevClick),(0,n.X$)(r.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),r.enabled||(e&&e.addClass(s.lockClass),t&&t.addClass(s.lockClass)))},destroy:function(){var e=this,t=e.navigation,r=t.$nextEl,i=t.$prevEl;r&&r.length&&(r.off("click",e.navigation.onNextClick),r.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click",e.navigation.onPrevClick),i.removeClass(e.params.navigation.disabledClass))}};const a={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){(0,n.wD)(this,{navigation:s({},o)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,r=t.$nextEl,i=t.$prevEl;r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var r=e.navigation,n=r.$nextEl,s=r.$prevEl,o=t.target;if(e.params.navigation.hideOnClick&&!(0,i.A)(o).is(s)&&!(0,i.A)(o).is(n)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;var a;n?a=n.hasClass(e.params.navigation.hiddenClass):s&&(a=s.hasClass(e.params.navigation.hiddenClass)),!0===a?e.emit("navigationShow"):e.emit("navigationHide"),n&&n.toggleClass(e.params.navigation.hiddenClass),s&&s.toggleClass(e.params.navigation.hiddenClass)}}}}},56822:(e,t,r)=>{if(r.d(t,{A:()=>s}),/^(app|searchresults\/searchresults)$/.test(r.j))var i=r(82284);if(/^(app|searchresults\/searchresults)$/.test(r.j))var n=r(9417);function s(e,t){if(t&&("object"==(0,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,n.A)(e)}},56845:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r){return e.map((function(e,i){return s(s({},e),{},{__position:r*t+i+1})}))}r.d(t,{g:()=>a})},56939:(e,t,r)=>{function i(){throw new Error("only supported in development mode")}r.d(t,{cM:()=>o,ep:()=>s,tQ:()=>n});const n="vendors"!=r.j?i:null,s="vendors"!=r.j?i:null,o="vendors"!=r.j?i:null},57233:(e,t,r)=>{r.d(t,{A:()=>V});var i,n,s=r(51648),o=r(33261),a=r(65520),l=r(68087);function c(e){return void 0===e&&(e={}),i||(i=function(e){var t=(void 0===e?{}:e).userAgent,r=(0,l.k)(),i=(0,s.zk)(),n=i.navigator.platform,o=t||i.navigator.userAgent,a={ios:!1,android:!1},c=i.screen.width,u=i.screen.height,h=o.match(/(Android);?[\s\/]+([\d.]+)?/),d=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===n,g="MacIntel"===n;return!d&&g&&r.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(c+"x"+u)>=0&&((d=o.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),g=!1),h&&!m&&(a.os="android",a.android=!0),(d||f||p)&&(a.os="ios",a.ios=!0),a}(e)),i}function u(){return n||(n=function(){var e,t=(0,s.zk)();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),n}const h={name:"resize",create:function(){var e=this;(0,a.X$)(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var r=e.width,i=e.height,n=r,s=i;t.forEach((function(t){var r=t.contentBoxSize,i=t.contentRect,o=t.target;o&&o!==e.el||(n=i?i.width:(r[0]||r).inlineSize,s=i?i.height:(r[0]||r).blockSize)})),n===r&&s===i||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=(0,s.zk)();e.params.resizeObserver&&void 0!==(0,s.zk)().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=(0,s.zk)();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},d.apply(this,arguments)}var p={attach:function(e,t){void 0===t&&(t={});var r=(0,s.zk)(),i=this,n=new(r.MutationObserver||r.WebkitMutationObserver)((function(e){if(1!==e.length){var t=function(){i.emit("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}else i.emit("observerUpdate",e[0])}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(n)},init:function(){var e=this;if(e.support.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),r=0;r<t.length;r+=1)e.observer.attach(t[r]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}}
vendor: 34,646 bytes, line 2
2,destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}};const f={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){(0,a.wD)(this,{observer:d({},p,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}},m={on:function(e,t,r){var i=this;if("function"!=typeof t)return i;var n=r?"unshift":"push";return e.split(" ").forEach((function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][n](t)})),i},once:function(e,t,r){var i=this;if("function"!=typeof t)return i;function n(){i.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];t.apply(i,s)}return n.__emitterProxy=t,i.on(e,n,r)},onAny:function(e,t){var r=this;if("function"!=typeof e)return r;var i=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[i](e),r},offAny:function(e){var t=this;if(!t.eventsAnyListeners)return t;var r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off:function(e,t){var r=this;return r.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((function(i,n){(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&r.eventsListeners[e].splice(n,1)}))})),r):r},emit:function(){var e,t,r,i=this;if(!i.eventsListeners)return i;for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return"string"==typeof s[0]||Array.isArray(s[0])?(e=s[0],t=s.slice(1,s.length),r=i):(e=s[0].events,t=s[0].data,r=s[0].context||i),t.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach((function(e){i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach((function(i){i.apply(r,[e].concat(t))})),i.eventsListeners&&i.eventsListeners[e]&&i.eventsListeners[e].forEach((function(e){e.apply(r,t)}))})),i}};const g={updateSize:function(){var e,t,r=this,i=r.$el;e=void 0!==r.params.width&&null!==r.params.width?r.params.width:i[0].clientWidth,t=void 0!==r.params.height&&null!==r.params.height?r.params.height:i[0].clientHeight,0===e&&r.isHorizontal()||0===t&&r.isVertical()||(e=e-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),t=t-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),(0,a.X$)(r,{width:e,height:t,size:r.isHorizontal()?e:t}))},updateSlides:function(){var e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function r(e,r){return parseFloat(e.getPropertyValue(t(r))||0)}var i=e.params,n=e.$wrapperEl,s=e.size,o=e.rtlTranslate,l=e.wrongRTL,c=e.virtual&&i.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,h=n.children("."+e.params.slideClass),d=c?e.virtual.slides.length:h.length,p=[],f=[],m=[],g=i.slidesOffsetBefore;"function"==typeof g&&(g=i.slidesOffsetBefore.call(e));var y=i.slidesOffsetAfter;"function"==typeof y&&(y=i.slidesOffsetAfter.call(e));var v=e.snapGrid.length,_=e.slidesGrid.length,b=i.spaceBetween,x=-g,w=0,A=0;if(void 0!==s){var E,S;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*s),e.virtualSize=-b,o?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),i.slidesPerColumn>1&&(E=Math.floor(d/i.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(E=Math.max(E,i.slidesPerView*i.slidesPerColumn)));for(var T,C,I,P=i.slidesPerColumn,M=E/P,k=Math.floor(d/i.slidesPerColumn),O=0;O<d;O+=1){S=0;var R=h.eq(O);if(i.slidesPerColumn>1){var D=void 0,L=void 0,B=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var z=Math.floor(O/(i.slidesPerGroup*i.slidesPerColumn)),j=O-i.slidesPerColumn*i.slidesPerGroup*z,F=0===z?i.slidesPerGroup:Math.min(Math.ceil((d-z*P*i.slidesPerGroup)/P),i.slidesPerGroup);D=(L=j-(B=Math.floor(j/F))*F+z*i.slidesPerGroup)+B*E/P,R.css({"-webkit-box-ordinal-group":D,"-moz-box-ordinal-group":D,"-ms-flex-order":D,"-webkit-order":D,order:D})}else"column"===i.slidesPerColumnFill?(B=O-(L=Math.floor(O/P))*P,(L>k||L===k&&B===P-1)&&(B+=1)>=P&&(B=0,L+=1)):L=O-(B=Math.floor(O/M))*M;R.css(t("margin-top"),0!==B?i.spaceBetween&&i.spaceBetween+"px":"")}if("none"!==R.css("display")){if("auto"===i.slidesPerView){var N=getComputedStyle(R[0]),U=R[0].style.transform,V=R[0].style.webkitTransform;if(U&&(R[0].style.transform="none"),V&&(R[0].style.webkitTransform="none"),i.roundLengths)S=e.isHorizontal()?R.outerWidth(!0):R.outerHeight(!0);else{var G=r(N,"width"),q=r(N,"padding-left"),H=r(N,"padding-right"),W=r(N,"margin-left"),Y=r(N,"margin-right"),Q=N.getPropertyValue("box-sizing");if(Q&&"border-box"===Q)S=G+W+Y;else{var Z=R[0],X=Z.clientWidth;S=G+q+H+W+Y+(Z.offsetWidth-X)}}U&&(R[0].style.transform=U),V&&(R[0].style.webkitTransform=V),i.roundLengths&&(S=Math.floor(S))}else S=(s-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(S=Math.floor(S)),h[O]&&(h[O].style[t("width")]=S+"px");h[O]&&(h[O].swiperSlideSize=S),m.push(S),i.centeredSlides?(x=x+S/2+w/2+b,0===w&&0!==O&&(x=x-s/2-b),0===O&&(x=x-s/2-b),Math.abs(x)<.001&&(x=0),i.roundLengths&&(x=Math.floor(x)),A%i.slidesPerGroup==0&&p.push(x),f.push(x)):(i.roundLengths&&(x=Math.floor(x)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup==0&&p.push(x),f.push(x),x=x+S+b),e.virtualSize+=S+b,w=S,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+y,o&&l&&("slide"===i.effect||"coverflow"===i.effect)&&n.css({width:e.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize)n.css(((C={})[t("width")]=e.virtualSize+i.spaceBetween+"px",C));if(i.slidesPerColumn>1)if(e.virtualSize=(S+i.spaceBetween)*E,e.virtualSize=Math.ceil(e.virtualSize/i.slidesPerColumn)-i.spaceBetween,n.css(((I={})[t("width")]=e.virtualSize+i.spaceBetween+"px",I)),i.centeredSlides){T=[];for(var K=0;K<p.length;K+=1){var J=p[K];i.roundLengths&&(J=Math.floor(J)),p[K]<e.virtualSize+p[0]&&T.push(J)}p=T}if(!i.centeredSlides){T=[];for(var $=0;$<p.length;$+=1){var ee=p[$];i.roundLengths&&(ee=Math.floor(ee)),p[$]<=e.virtualSize-s&&T.push(ee)}p=T,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){var te,re=e.isHorizontal()&&o?"marginLeft":t("marginRight");h.filter((function(e,t){return!i.cssMode||t!==h.length-1})).css(((te={})[re]=b+"px",te))}if(i.centeredSlides&&i.centeredSlidesBounds){var ie=0;m.forEach((function(e){ie+=e+(i.spaceBetween?i.spaceBetween:0)}));var ne=(ie-=i.spaceBetween)-s;p=p.map((function(e){return e<0?-g:e>ne?ne+y:e}))}if(i.centerInsufficientSlides){var se=0;if(m.forEach((function(e){se+=e+(i.spaceBetween?i.spaceBetween:0)})),(se-=i.spaceBetween)<s){var oe=(s-se)/2;p.forEach((function(e,t){p[t]=e-oe})),f.forEach((function(e,t){f[t]=e+oe}))}}(0,a.X$)(e,{slides:h,snapGrid:p,slidesGrid:f,slidesSizesGrid:m}),d!==u&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==_&&e.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,r=this,i=[],n=r.virtual&&r.params.virtual.enabled,s=0;"number"==typeof e?r.setTransition(e):!0===e&&r.setTransition(r.params.speed);var o=function(e){return n?r.slides.filter((function(t){return parseInt(t.getAttribute("data-swiper-slide-index"),10)===e}))[0]:r.slides.eq(e)[0]};if("auto"!==r.params.slidesPerView&&r.params.slidesPerView>1)if(r.params.centeredSlides)r.visibleSlides.each((function(e){i.push(e)}));else for(t=0;t<Math.ceil(r.params.slidesPerView);t+=1){var a=r.activeIndex+t;if(a>r.slides.length&&!n)break;i.push(o(a))}else i.push(o(r.activeIndex));for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var l=i[t].offsetHeight;s=l>s?l:s}s&&r.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,r=t.params,i=t.slides,n=t.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();var s=-e;n&&(s=e),i.removeClass(r.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var a=0;a<i.length;a+=1){var l=i[a],c=(s+(r.centeredSlides?t.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+r.spaceBetween);if(r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight){var u=-(s-l.swiperSlideOffset),h=u+t.slidesSizesGrid[a];(u>=0&&u<t.size-1||h>1&&h<=t.size||u<=0&&h>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(a),i.eq(a).addClass(r.slideVisibleClass))}l.progress=n?-c:c}t.visibleSlides=(0,o.A)(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}var i=t.params,n=t.maxTranslate()-t.minTranslate(),s=t.progress,o=t.isBeginning,l=t.isEnd,c=o,u=l;0===n?(s=0,o=!0,l=!0):(o=(s=(e-t.minTranslate())/n)<=0,l=s>=1),(0,a.X$)(t,{progress:s,isBeginning:o,isEnd:l}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!c&&t.emit("reachBeginning toEdge"),l&&!u&&t.emit("reachEnd toEdge"),(c&&!o||u&&!l)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){var e,t=this,r=t.slides,i=t.params,n=t.$wrapperEl,s=t.activeIndex,o=t.realIndex,a=t.virtual&&i.virtual.enabled;r.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+s+'"]'):r.eq(s)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass));var l=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=r.eq(0)).addClass(i.slideNextClass);var c=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=r.eq(-1)).addClass(i.slidePrevClass),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,r=this,i=r.rtlTranslate?r.translate:-r.translate,n=r.slidesGrid,s=r.snapGrid,o=r.params,l=r.activeIndex,c=r.realIndex,u=r.snapIndex,h=e;if(void 0===h){for(var d=0;d<n.length;d+=1)void 0!==n[d+1]?i>=n[d]&&i<n[d+1]-(n[d+1]-n[d])/2?h=d:i>=n[d]&&i<n[d+1]&&(h=d+1):i>=n[d]&&(h=d);o.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(s.indexOf(i)>=0)t=s.indexOf(i);else{var p=Math.min(o.slidesPerGroupSkip,h);t=p+Math.floor((h-p)/o.slidesPerGroup)}if(t>=s.length&&(t=s.length-1),h!==l){var f=parseInt(r.slides.eq(h).attr("data-swiper-slide-index")||h,10);(0,a.X$)(r,{snapIndex:t,realIndex:f,previousIndex:l,activeIndex:h}),r.emit("activeIndexChange"),r.emit("snapIndexChange"),c!==f&&r.emit("realIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&r.emit("slideChange")}else t!==u&&(r.snapIndex=t,r.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,r=this,i=r.params,n=(0,o.A)(e.target).closest("."+i.slideClass)[0],s=!1;if(n)for(var a=0;a<r.slides.length;a+=1)if(r.slides[a]===n){s=!0,t=a;break}if(!n||!s)return r.clickedSlide=void 0,void(r.clickedIndex=void 0);r.clickedSlide=n,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt((0,o.A)(n).attr("data-swiper-slide-index"),10):r.clickedIndex=t,i.slideToClickedSlide&&void 0!==r.clickedIndex&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}};const y={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,r=t.params,i=t.rtlTranslate,n=t.translate,s=t.$wrapperEl;if(r.virtualTranslate)return i?-n:n;if(r.cssMode)return n;var o=(0,a.ro)(s[0],e);return i&&(o=-o),o||0},setTranslate:function(e,t){var r=this,i=r.rtlTranslate,n=r.params,s=r.$wrapperEl,o=r.wrapperEl,a=r.progress,l=0,c=0;r.isHorizontal()?l=i?-e:e:c=e,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.cssMode?o[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-l:-c:n.virtualTranslate||s.transform("translate3d("+l+"px, "+c+"px, 0px)"),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?l:c;var u=r.maxTranslate()-r.minTranslate();(0===u?0:(e-r.minTranslate())/u)!==a&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,r,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0),void 0===i&&(i=!0);var s=this,o=s.params,a=s.wrapperEl;if(s.animating&&o.preventInteractionOnTransition)return!1;var l,c=s.minTranslate(),u=s.maxTranslate();if(l=i&&e>c?c:i&&e<u?u:e,s.updateProgress(l),o.cssMode){var h,d=s.isHorizontal();if(0===t)a[d?"scrollLeft":"scrollTop"]=-l;else if(a.scrollTo)a.scrollTo(((h={})[d?"left":"top"]=-l,h.behavior="smooth",h));else a[d?"scrollLeft":"scrollTop"]=-l;return!0}return 0===t?(s.setTransition(0),s.setTranslate(l),r&&(s.emit("beforeTransitionStart",t,n),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(l),r&&(s.emit("beforeTransitionStart",t,n),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,r&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}const _={slideTo:function(e,t,r,i,n){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0),"number"!=typeof e&&"string"!=typeof e)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+v(e)+"] given.");if("string"==typeof e){var s=parseInt(e,10);if(!isFinite(s))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+e+"] given.");e=s}var o=this,a=e;a<0&&(a=0);var l=o.params,c=o.snapGrid,u=o.slidesGrid,h=o.previousIndex,d=o.activeIndex,p=o.rtlTranslate,f=o.wrapperEl,m=o.enabled;if(o.animating&&l.preventInteractionOnTransition||!m&&!i&&!n)return!1;var g=Math.min(o.params.slidesPerGroupSkip,a),y=g+Math.floor((a-g)/o.params.slidesPerGroup);y>=c.length&&(y=c.length-1),(d||l.initialSlide||0)===(h||0)&&r&&o.emit("beforeSlideChangeStart");var _,b=-c[y];if(o.updateProgress(b),l.normalizeSlideIndex)for(var x=0;x<u.length;x+=1){var w=-Math.floor(100*b),A=Math.floor(100*u[x]),E=Math.floor(100*u[x+1]);void 0!==u[x+1]?w>=A&&w<E-(E-A)/2?a=x:w>=A&&w<E&&(a=x+1):w>=A&&(a=x)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&b<o.translate&&b<o.minTranslate())return!1;if(!o.allowSlidePrev&&b>o.translate&&b>o.maxTranslate()&&(d||0)!==a)return!1}if(_=a>d?"next":a<d?"prev":"reset",p&&-b===o.translate||!p&&b===o.translate)return o.updateActiveIndex(a),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(b),"reset"!==_&&(o.transitionStart(r,_),o.transitionEnd(r,_)),!1;if(l.cssMode){var S,T=o.isHorizontal(),C=-b;if(p&&(C=f.scrollWidth-f.offsetWidth-C),0===t)f[T?"scrollLeft":"scrollTop"]=C;else if(f.scrollTo)f.scrollTo(((S={})[T?"left":"top"]=C,S.behavior="smooth",S));else f[T?"scrollLeft":"scrollTop"]=C;return!0}return 0===t?(o.setTransition(0),o.setTranslate(b),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(r,_),o.transitionEnd(r,_)):(o.setTransition(t),o.setTranslate(b),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(r,_),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(r,_))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e,t,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0);var n=this,s=e;return n.params.loop&&(s+=n.loopedSlides),n.slideTo(s,t,r,i)},slideNext:function(e,t,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,n=i.params,s=i.animating;if(!i.enabled)return i;var o=i.activeIndex<n.slidesPerGroupSkip?1:n.slidesPerGroup;if(n.loop){if(s&&n.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return i.slideTo(i.activeIndex+o,e,t,r)},slidePrev:function(e,t,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,n=i.params,s=i.animating,o=i.snapGrid,a=i.slidesGrid,l=i.rtlTranslate;if(!i.enabled)return i;if(n.loop){if(s&&n.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function c(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var u,h=c(l?i.translate:-i.translate),d=o.map((function(e){return c(e)})),p=o[d.indexOf(h)-1];return void 0===p&&n.cssMode&&o.forEach((function(e){!p&&h>=e&&(p=e)})),void 0!==p&&(u=a.indexOf(p))<0&&(u=i.activeIndex-1),i.slideTo(u,e,t,r)},slideReset:function(e,t,r){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,r)},slideToClosest:function(e,t,r,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);var n=this,s=n.activeIndex,o=Math.min(n.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){var c=n.snapGrid[a];l-c>(n.snapGrid[a+1]-c)*i&&(s+=n.params.slidesPerGroup)}else{var u=n.snapGrid[a-1];l-u<=(n.snapGrid[a]-u)*i&&(s-=n.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,n.slidesGrid.length-1),n.slideTo(s,e,t,r)},slideToClickedSlide:function(){var e,t=this,r=t.params,i=t.$wrapperEl,n="auto"===r.slidesPerView?t.slidesPerViewDynamic():r.slidesPerView,s=t.clickedIndex;if(r.loop){if(t.animating)return;e=parseInt((0,o.A)(t.clickedSlide).attr("data-swiper-slide-index"),10),r.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=i.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+r.slideDuplicateClass+")").eq(0).index(),(0,a.dY)((function(){t.slideTo(s)}))):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=i.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+r.slideDuplicateClass+")").eq(0).index(),(0,a.dY)((function(){t.slideTo(s)}))):t.slideTo(s)}else t.slideTo(s)}};const b={loopCreate:function(){var e=this,t=(0,s.YE)(),r=e.params,i=e.$wrapperEl;i.children("."+r.slideClass+"."+r.slideDuplicateClass).remove();var n=i.children("."+r.slideClass);if(r.loopFillGroupWithBlank){var a=r.slidesPerGroup-n.length%r.slidesPerGroup;if(a!==r.slidesPerGroup){for(var l=0;l<a;l+=1){var c=(0,o.A)(t.createElement("div")).addClass(r.slideClass+" "+r.slideBlankClass);i.append(c)}n=i.children("."+r.slideClass)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10)),e.loopedSlides+=r.loopAdditionalSlides,e.loopedSlides>n.length&&(e.loopedSlides=n.length);var u=[],h=[];n.each((function(t,r){var i=(0,o.A)(t);r<e.loopedSlides&&h.push(t),r<n.length&&r>=n.length-e.loopedSlides&&u.push(t),i.attr("data-swiper-slide-index",r)}));for(var d=0;d<h.length;d+=1)i.append((0,o.A)(h[d].cloneNode(!0)).addClass(r.slideDuplicateClass));for(var p=u.length-1;p>=0;p-=1)i.prepend((0,o.A)(u[p].cloneNode(!0)).addClass(r.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,r=e.activeIndex,i=e.slides,n=e.loopedSlides,s=e.allowSlidePrev,o=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var c=-a[r]-e.getTranslate();if(r<n)t=i.length-3*n+r,t+=n,e.slideTo(t,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c);else if(r>=i.length-n){t=-i.length+r+n,t+=n,e.slideTo(t,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=s,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,r=e.params,i=e.slides;t.children("."+r.slideClass+"."+r.slideDuplicateClass+",."+r.slideClass+"."+r.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function S(e){var t=this,r=(0,s.YE)(),i=(0,s.zk)(),n=t.touchEventsData,l=t.params,c=t.touches;if(t.enabled&&(!t.animating||!l.preventInteractionOnTransition)){var u=e;u.originalEvent&&(u=u.originalEvent);var h=(0,o.A)(u.target);if(("wrapper"!==l.touchEventsTarget||h.closest(t.wrapperEl).length)&&(n.isTouchEvent="touchstart"===u.type,(n.isTouchEvent||!("which"in u)||3!==u.which)&&!(!n.isTouchEvent&&"button"in u&&u.button>0||n.isTouched&&n.isMoved))){!!l.noSwipingClass&&""!==l.noSwipingClass&&u.target&&u.target.shadowRoot&&e.path&&e.path[0]&&(h=(0,o.A)(e.path[0]));var d=l.noSwipingSelector?l.noSwipingSelector:"."+l.noSwipingClass,p=!(!u.target||!u.target.shadowRoot);if(l.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(r){return r&&r!==(0,s.YE)()&&r!==(0,s.zk)()?(r.assignedSlot&&(r=r.assignedSlot),r.closest(e)||t(r.getRootNode().host)):null}(t)}(d,u.target):h.closest(d)[0]))t.allowClick=!0;else if(!l.swipeHandler||h.closest(l.swipeHandler)[0]){c.currentX="touchstart"===u.type?u.targetTouches[0].pageX:u.pageX,c.currentY="touchstart"===u.type?u.targetTouches[0].pageY:u.pageY;var f=c.currentX,m=c.currentY,g=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,y=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(g&&(f<=y||f>=i.innerWidth-y)){if("prevent"!==g)return;e.preventDefault()}if((0,a.X$)(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=f,c.startY=m,n.touchStartTime=(0,a.tB)(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==u.type){var v=!0;h.is(n.focusableElements)&&(v=!1),r.activeElement&&(0,o.A)(r.activeElement).is(n.focusableElements)&&r.activeElement!==h[0]&&r.activeElement.blur();var _=v&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!_||h[0].isContentEditable||u.preventDefault()}t.emit("touchStart",u)}}}}function T(e){var t=(0,s.YE)(),r=this,i=r.touchEventsData,n=r.params,l=r.touches,c=r.rtlTranslate;if(r.enabled){var u=e;if(u.originalEvent&&(u=u.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===u.type){var h="touchmove"===u.type&&u.targetTouches&&(u.targetTouches[0]||u.changedTouches[0]),d="touchmove"===u.type?h.pageX:u.pageX,p="touchmove"===u.type?h.pageY:u.pageY;if(u.preventedByNestedSwiper)return l.startX=d,void(l.startY=p);if(!r.allowTouchMove)return r.allowClick=!1,void(i.isTouched&&((0,a.X$)(l,{startX:d,startY:p,currentX:d,currentY:p}),i.touchStartTime=(0,a.tB)()));if(i.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(r.isVertical()){if(p<l.startY&&r.translate<=r.maxTranslate()||p>l.startY&&r.translate>=r.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(d<l.startX&&r.translate<=r.maxTranslate()||d>l.startX&&r.translate>=r.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&u.target===t.activeElement&&(0,o.A)(u.target).is(i.focusableElements))return i.isMoved=!0,void(r.allowClick=!1);if(i.allowTouchCallbacks&&r.emit("touchMove",u),!(u.targetTouches&&u.targetTouches.length>1)){l.currentX=d,l.currentY=p;var f=l.currentX-l.startX,m=l.currentY-l.startY;if(!(r.params.threshold&&Math.sqrt(Math.pow(f,2)+Math.pow(m,2))<r.params.threshold)){var g;if(void 0===i.isScrolling)r.isHorizontal()&&l.currentY===l.startY||r.isVertical()&&l.currentX===l.startX?i.isScrolling=!1:f*f+m*m>=25&&(g=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,i.isScrolling=r.isHorizontal()?g>n.touchAngle:90-g>n.touchAngle);if(i.isScrolling&&r.emit("touchMoveOpposite",u),void 0===i.startMoving&&(l.currentX===l.startX&&l.currentY===l.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){r.allowClick=!1,!n.cssMode&&u.cancelable&&u.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&u.stopPropagation(),i.isMoved||(n.loop&&r.loopFix(),i.startTranslate=r.getTranslate(),r.setTransition(0),r.animating&&r.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!n.grabCursor||!0!==r.allowSlideNext&&!0!==r.allowSlidePrev||r.setGrabCursor(!0),r.emit("sliderFirstMove",u)),r.emit("sliderMove",u),i.isMoved=!0;var y=r.isHorizontal()?f:m;l.diff=y,y*=n.touchRatio,c&&(y=-y),r.swipeDirection=y>0?"prev":"next",i.currentTranslate=y+i.startTranslate;var v=!0,_=n.resistanceRatio;if(n.touchReleaseOnEdges&&(_=0),y>0&&i.currentTranslate>r.minTranslate()?(v=!1,n.resistance&&(i.currentTranslate=r.minTranslate()-1+Math.pow(-r.minTranslate()+i.startTranslate+y,_))):y<0&&i.currentTranslate<r.maxTranslate()&&(v=!1,n.resistance&&(i.currentTranslate=r.maxTranslate()+1-Math.pow(r.maxTranslate()-i.startTranslate-y,_))),v&&(u.preventedByNestedSwiper=!0),!r.allowSlideNext&&"next"===r.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!r.allowSlidePrev&&"prev"===r.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),r.allowSlidePrev||r.allowSlideNext||(i.currentTranslate=i.startTranslate),n.threshold>0){if(!(Math.abs(y)>n.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,i.currentTranslate=i.startTranslate,void(l.diff=r.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(r.updateActiveIndex(),r.updateSlidesClasses()),n.freeMode&&(0===i.velocities.length&&i.velocities.push({position:l[r.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:l[r.isHorizontal()?"currentX":"currentY"],time:(0,a.tB)()})),r.updateProgress(i.currentTranslate),r.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&r.emit("touchMoveOpposite",u)}}function C(e){var t=this,r=t.touchEventsData,i=t.params,n=t.touches,s=t.rtlTranslate,o=t.$wrapperEl,l=t.slidesGrid,c=t.snapGrid;if(t.enabled){var u=e;if(u.originalEvent&&(u=u.originalEvent),r.allowTouchCallbacks&&t.emit("touchEnd",u),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);i.grabCursor&&r.isMoved&&r.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var h,d=(0,a.tB)(),p=d-r.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap click",u),p<300&&d-r.lastClickTime<300&&t.emit("doubleTap doubleClick",u)),r.lastClickTime=(0,a.tB)(),(0,a.dY)((function(){t.destroyed||(t.allowClick=!0)})),!r.isTouched||!r.isMoved||!t.swipeDirection||0===n.diff||r.currentTranslate===r.startTranslate)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,h=i.followFinger?s?t.translate:-t.translate:-r.currentTranslate,!i.cssMode)if(i.freeMode){if(h<-t.minTranslate())return void t.slideTo(t.activeIndex);if(h>-t.maxTranslate())return void(t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(r.velocities.length>1){var f=r.velocities.pop(),m=r.velocities.pop(),g=f.position-m.position,y=f.time-m.time;t.velocity=g/y,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(y>150||(0,a.tB)()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,r.velocities.length=0;var v=1e3*i.freeModeMomentumRatio,_=t.velocity*v,b=t.translate+_;s&&(b=-b);var x,w,A=!1,E=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(b<t.maxTranslate())i.freeModeMomentumBounce?(b+t.maxTranslate()<-E&&(b=t.maxTranslate()-E),x=t.maxTranslate(),A=!0,r.allowMomentumBounce=!0):b=t.maxTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(b>t.minTranslate())i.freeModeMomentumBounce?(b-t.minTranslate()>E&&(b=t.minTranslate()+E),x=t.minTranslate(),A=!0,r.allowMomentumBounce=!0):b=t.minTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(i.freeModeSticky){for(var S,T=0;T<c.length;T+=1)if(c[T]>-b){S=T;break}b=-(b=Math.abs(c[S]-b)<Math.abs(c[S-1]-b)||"next"===t.swipeDirection?c[S]:c[S-1])}if(w&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(v=s?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity),i.freeModeSticky){var C=Math.abs((s?-b:b)-t.translate),I=t.slidesSizesGrid[t.activeIndex];v=C<I?i.speed:C<2*I?1.5*i.speed:2.5*i.speed}}else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&A?(t.updateProgress(x),t.setTransition(v),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&r.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),setTimeout((function(){t.setTranslate(x),o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(b),t.setTransition(v),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):(t.emit("_freeModeNoMomentumRelease"),t.updateProgress(b)),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(i.freeModeSticky)return void t.slideToClosest();i.freeMode&&t.emit("_freeModeNoMomentumRelease")}(!i.freeModeMomentum||p>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var P=0,M=t.slidesSizesGrid[0],k=0;k<l.length;k+=k<i.slidesPerGroupSkip?1:i.slidesPerGroup){var O=k<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==l[k+O]?h>=l[k]&&h<l[k+O]&&(P=k,M=l[k+O]-l[k]):h>=l[k]&&(P=k,M=l[l.length-1]-l[l.length-2])}var R=(h-l[P])/M,D=P<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(p>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(R>=i.longSwipesRatio?t.slideTo(P+D):t.slideTo(P)),"prev"===t.swipeDirection&&(R>1-i.longSwipesRatio?t.slideTo(P+D):t.slideTo(P))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(P+D):t.slideTo(P):("next"===t.swipeDirection&&t.slideTo(P+D),"prev"===t.swipeDirection&&t.slideTo(P))}}}}function I(){var e=this,t=e.params,r=e.el;if(!r||0!==r.offsetWidth){t.breakpoints&&e.setBreakpoint();var i=e.allowSlideNext,n=e.allowSlidePrev,s=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}}function P(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function M(){var e=this,t=e.wrapperEl,r=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=r?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var i=e.maxTranslate()-e.minTranslate();(0===i?0:(e.translate-e.minTranslate())/i)!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var k=!1;function O(){}const R={attachEvents:function(){var e=this,t=(0,s.YE)(),r=e.params,i=e.touchEvents,n=e.el,o=e.wrapperEl,a=e.device,l=e.support;e.onTouchStart=S.bind(e),e.onTouchMove=T.bind(e),e.onTouchEnd=C.bind(e),r.cssMode&&(e.onScroll=M.bind(e)),e.onClick=P.bind(e);var c=!!r.nested;
2if(!l.touch&&l.pointerEvents)n.addEventListener(i.start,e.onTouchStart,!1),t.addEventListener(i.move,e.onTouchMove,c),t.addEventListener(i.end,e.onTouchEnd,!1);else{if(l.touch){var u=!("touchstart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(i.start,e.onTouchStart,u),n.addEventListener(i.move,e.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),n.addEventListener(i.end,e.onTouchEnd,u),i.cancel&&n.addEventListener(i.cancel,e.onTouchEnd,u),k||(t.addEventListener("touchstart",O),k=!0)}(r.simulateTouch&&!a.ios&&!a.android||r.simulateTouch&&!l.touch&&a.ios)&&(n.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,c),t.addEventListener("mouseup",e.onTouchEnd,!1))}(r.preventClicks||r.preventClicksPropagation)&&n.addEventListener("click",e.onClick,!0),r.cssMode&&o.addEventListener("scroll",e.onScroll),r.updateOnWindowResize?e.on(a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",I,!0):e.on("observerUpdate",I,!0)},detachEvents:function(){var e=this,t=(0,s.YE)(),r=e.params,i=e.touchEvents,n=e.el,o=e.wrapperEl,a=e.device,l=e.support,c=!!r.nested;if(!l.touch&&l.pointerEvents)n.removeEventListener(i.start,e.onTouchStart,!1),t.removeEventListener(i.move,e.onTouchMove,c),t.removeEventListener(i.end,e.onTouchEnd,!1);else{if(l.touch){var u=!("onTouchStart"!==i.start||!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(i.start,e.onTouchStart,u),n.removeEventListener(i.move,e.onTouchMove,c),n.removeEventListener(i.end,e.onTouchEnd,u),i.cancel&&n.removeEventListener(i.cancel,e.onTouchEnd,u)}(r.simulateTouch&&!a.ios&&!a.android||r.simulateTouch&&!l.touch&&a.ios)&&(n.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,c),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(r.preventClicks||r.preventClicksPropagation)&&n.removeEventListener("click",e.onClick,!0),r.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",I)}};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}const L={addClasses:function(){var e=this,t=e.classNames,r=e.params,i=e.rtl,n=e.$el,s=e.device,o=e.support,a=function(e,t){var r=[];return e.forEach((function(e){"object"===D(e)?Object.keys(e).forEach((function(i){e[i]&&r.push(t+i)})):"string"==typeof e&&r.push(t+e)})),r}(["initialized",r.direction,{"pointer-events":o.pointerEvents&&!o.touch},{"free-mode":r.freeMode},{autoheight:r.autoHeight},{rtl:i},{multirow:r.slidesPerColumn>1},{"multirow-column":r.slidesPerColumn>1&&"column"===r.slidesPerColumnFill},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode}],r.containerModifierClass);t.push.apply(t,a),n.addClass([].concat(t).join(" ")),e.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,r=e.classNames;t.removeClass(r.join(" ")),e.emitContainerClasses()}};const B={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function j(e,t){for(var r=0;r<t.length;r++){var i=t[r];
vendor: 5,288 bytes, line 2
2i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var F={modular:{useParams:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(r){var i=t.modules[r];i.params&&(0,a.X$)(e,i.params)}))},useModules:function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(r){var i=t.modules[r],n=e[r]||{};i.on&&t.on&&Object.keys(i.on).forEach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(n)}))}},eventsEmitter:m,update:g,translate:y,transition:{setTransition:function(e,t){var r=this;r.params.cssMode||r.$wrapperEl.transition(e),r.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var r=this,i=r.activeIndex,n=r.params,s=r.previousIndex;if(!n.cssMode){n.autoHeight&&r.updateAutoHeight();var o=t;if(o||(o=i>s?"next":i<s?"prev":"reset"),r.emit("transitionStart"),e&&i!==s){if("reset"===o)return void r.emit("slideResetTransitionStart");r.emit("slideChangeTransitionStart"),"next"===o?r.emit("slideNextTransitionStart"):r.emit("slidePrevTransitionStart")}}},transitionEnd:function(e,t){void 0===e&&(e=!0);var r=this,i=r.activeIndex,n=r.previousIndex,s=r.params;if(r.animating=!1,!s.cssMode){r.setTransition(0);var o=t;if(o||(o=i>n?"next":i<n?"prev":"reset"),r.emit("transitionEnd"),e&&i!==n){if("reset"===o)return void r.emit("slideResetTransitionEnd");r.emit("slideChangeTransitionEnd"),"next"===o?r.emit("slideNextTransitionEnd"):r.emit("slidePrevTransitionEnd")}}}},slide:_,loop:b,grabCursor:{setGrabCursor:function(e){var t=this;if(!(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var r=t.el;r.style.cursor="move",r.style.cursor=e?"-webkit-grabbing":"-webkit-grab",r.style.cursor=e?"-moz-grabbin":"-moz-grab",r.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){var e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.el.style.cursor="")}},manipulation:{appendSlide:function(e){var t=this,r=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),"object"===x(e)&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&r.append(e[n]);else r.append(e);i.loop&&t.loopCreate(),i.observer&&t.support.observer||t.update()},prependSlide:function(e){var t=this,r=t.params,i=t.$wrapperEl,n=t.activeIndex;r.loop&&t.loopDestroy();var s=n+1;if("object"===w(e)&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&i.prepend(e[o]);s=n+e.length}else i.prepend(e);r.loop&&t.loopCreate(),r.observer&&t.support.observer||t.update(),t.slideTo(s,0,!1)},addSlide:function(e,t){var r=this,i=r.$wrapperEl,n=r.params,s=r.activeIndex;n.loop&&(s-=r.loopedSlides,r.loopDestroy(),r.slides=i.children("."+n.slideClass));var o=r.slides.length;if(e<=0)r.prependSlide(t);else if(e>=o)r.appendSlide(t);else{for(var a=s>e?s+1:s,l=[],c=o-1;c>=e;c-=1){var u=r.slides.eq(c);u.remove(),l.unshift(u)}if("object"===A(t)&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&i.append(t[h]);a=s>e?s+t.length:s}else i.append(t);for(var d=0;d<l.length;d+=1)i.append(l[d]);n.loop&&r.loopCreate(),n.observer&&r.support.observer||r.update(),n.loop?r.slideTo(a+r.loopedSlides,0,!1):r.slideTo(a,0,!1)}},removeSlide:function(e){var t=this,r=t.params,i=t.$wrapperEl,n=t.activeIndex;r.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=i.children("."+r.slideClass));var s,o=n;if("object"===E(e)&&"length"in e){for(var a=0;a<e.length;a+=1)s=e[a],t.slides[s]&&t.slides.eq(s).remove(),s<o&&(o-=1);o=Math.max(o,0)}else s=e,t.slides[s]&&t.slides.eq(s).remove(),s<o&&(o-=1),o=Math.max(o,0);r.loop&&t.loopCreate(),r.observer&&t.support.observer||t.update(),r.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},events:R,breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,r=e.initialized,i=e.loopedSlides,n=void 0===i?0:i,s=e.params,o=e.$el,l=s.breakpoints;if(l&&(!l||0!==Object.keys(l).length)){var c=e.getBreakpoint(l,e.params.breakpointsBase,e.el);if(c&&e.currentBreakpoint!==c){var u=c in l?l[c]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=u[e];void 0!==t&&(u[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var h=u||e.originalParams,d=s.slidesPerColumn>1,p=h.slidesPerColumn>1,f=s.enabled;d&&!p?(o.removeClass(s.containerModifierClass+"multirow "+s.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(o.addClass(s.containerModifierClass+"multirow"),(h.slidesPerColumnFill&&"column"===h.slidesPerColumnFill||!h.slidesPerColumnFill&&"column"===s.slidesPerColumnFill)&&o.addClass(s.containerModifierClass+"multirow-column"),e.emitContainerClasses());var m=h.direction&&h.direction!==s.direction,g=s.loop&&(h.slidesPerView!==s.slidesPerView||m);m&&r&&e.changeDirection(),(0,a.X$)(e.params,h);var y=e.params.enabled;(0,a.X$)(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",h),g&&r&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",h)}}}
2,getBreakpoint:function(e,t,r){if(void 0===t&&(t="window"),e&&("container"!==t||r)){var i=!1,n=(0,s.zk)(),o="window"===t?n.innerHeight:r.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l<a.length;l+=1){var c=a[l],u=c.point,h=c.value;"window"===t?n.matchMedia("(min-width: "+h+"px)").matches&&(i=u):h<=r.clientWidth&&(i=u)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.params,r=e.isLocked,i=e.slides.length>0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&i?e.isLocked=i<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,r!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),r&&r!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:L,images:{loadImage:function(e,t,r,i,n,a){var l,c=(0,s.zk)();function u(){a&&a()}(0,o.A)(e).parent("picture")[0]||e.complete&&n?u():t?((l=new c.Image).onload=u,l.onerror=u,i&&(l.sizes=i),r&&(l.srcset=r),t&&(l.src=t)):u()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var r=0;r<e.imagesToLoad.length;r+=1){var i=e.imagesToLoad[r];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},N={},U=function(){function e(){for(var t,r,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];if(1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?r=n[0]:(t=n[0],r=n[1]),r||(r={}),r=(0,a.X$)({},r),t&&!r.el&&(r.el=t),r.el&&(0,o.A)(r.el).length>1){var h=[];return(0,o.A)(r.el).each((function(t){var i=(0,a.X$)({},r,{el:t});h.push(new e(i))})),h}var d=this;d.__swiper__=!0,d.support=(0,l.k)(),d.device=c({userAgent:r.userAgent}),d.browser=u(),d.eventsListeners={},d.eventsAnyListeners=[],void 0===d.modules&&(d.modules={}),Object.keys(d.modules).forEach((function(e){var t=d.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!==z(n)||null===n)return;if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===r[i]&&(r[i]={auto:!0}),!(i in r)||!("enabled"in n))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!==z(r[i])||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}}));var p,f,m=(0,a.X$)({},B);return d.useParams(m),d.params=(0,a.X$)({},m,N,r),d.originalParams=(0,a.X$)({},d.params),d.passedParams=(0,a.X$)({}
vendor: 4,125 bytes, line 2
2,r),d.params&&d.params.on&&Object.keys(d.params.on).forEach((function(e){d.on(e,d.params.on[e])})),d.params&&d.params.onAny&&d.onAny(d.params.onAny),d.$=o.A,(0,a.X$)(d,{enabled:d.params.enabled,el:t,classNames:[],slides:(0,o.A)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===d.params.direction},isVertical:function(){return"vertical"===d.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEvents:(p=["touchstart","touchmove","touchend","touchcancel"],f=["mousedown","mousemove","mouseup"],d.support.pointerEvents&&(f=["pointerdown","pointermove","pointerup"]),d.touchEventsTouch={start:p[0],move:p[1],end:p[2],cancel:p[3]},d.touchEventsDesktop={start:f[0],move:f[1],end:f[2]},d.support.touch||!d.params.simulateTouch?d.touchEventsTouch:d.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:d.params.focusableElements,lastClickTime:(0,a.tB)(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.useModules(),d.emit("_swiper"),d.params.init&&d.init(),d}var t,r,i,n=e.prototype;return n.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},n.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},n.setProgress=function(e,t){var r=this;e=Math.min(Math.max(e,0),1);var i=r.minTranslate(),n=(r.maxTranslate()-i)*e+i;r.translateTo(n,void 0===t?0:t),r.updateActiveIndex(),r.updateSlidesClasses()},n.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},n.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},n.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(r){var i=e.getSlideClasses(r);t.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)})),e.emit("_slideClasses",t)}},n.slidesPerViewDynamic=function(){var e=this,t=e.params,r=e.slides,i=e.slidesGrid,n=e.size,s=e.activeIndex,o=1;if(t.centeredSlides){for(var a,l=r[s].swiperSlideSize,c=s+1;c<r.length;c+=1)r[c]&&!a&&(o+=1,(l+=r[c].swiperSlideSize)>n&&(a=!0));for(var u=s-1;u>=0;u-=1)r[u]&&!a&&(o+=1,(l+=r[u].swiperSlideSize)>n&&(a=!0))}else for(var h=s+1;h<r.length;h+=1)i[h]-i[s]<n&&(o+=1);return o},n.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,r=e.params;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||i(),r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function i(){var t=e.rtlTranslate?-1*e.translate:e.translate,r=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}},n.changeDirection=function(e,t){void 0===t&&(t=!0);var r=this,i=r.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(r.$el.removeClass(""+r.params.containerModifierClass+i).addClass(""+r.params.containerModifierClass+e),r.emitContainerClasses(),r.params.direction=e,r.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""}
2)),r.emit("changeDirection"),t&&r.update()),r},n.mount=function(e){var t=this;if(t.mounted)return!0;var r=(0,o.A)(e||t.params.el);if(!(e=r[0]))return!1;e.swiper=t;var i=function(){return"."+(t.params.wrapperClass||"").trim().split(" ").join(".")},n=function(){if(e&&e.shadowRoot&&e.shadowRoot.querySelector){var t=(0,o.A)(e.shadowRoot.querySelector(i()));return t.children=function(e){return r.children(e)},t}return r.children(i())}();if(0===n.length&&t.params.createElements){var l=(0,s.YE)().createElement("div");n=(0,o.A)(l),l.className=t.params.wrapperClass,r.append(l),r.children("."+t.params.slideClass).each((function(e){n.append(e)}))}return(0,a.X$)(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0},n.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},n.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var r=this,i=r.params,n=r.$el,s=r.$wrapperEl,o=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),n.removeAttr("style"),s.removeAttr("style"),o&&o.length&&o.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,(0,a.oR)(r)),r.destroyed=!0),null},e.extendDefaults=function(e){(0,a.X$)(N,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var r=t.name||Object.keys(e.prototype.modules).length+"_"+(0,a.tB)();e.prototype.modules[r]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,i=[{key:"extendedDefaults",get:function(){return N}},{key:"defaults",get:function(){return B}}],(r=null)&&j(t.prototype,r),i&&j(t,i),e}();Object.keys(F).forEach((function(e){Object.keys(F[e]).forEach((function(t){U.prototype[t]=F[e][t]}))})),U.use([h,f]);const V="app"==r.j?U:null},57528:(e,t,r)=>{function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{A:()=>i})},58028:(e,t,r)=>{if(r.d(t,{W:()=>u}),"contactslistv2/contactslistv2"==r.j)var i=r(90041);var n=r(96540);if("contactslistv2/contactslistv2"==r.j)var s=r(95025);if("contactslistv2/contactslistv2"==r.j)var o=r(92675);if("contactslistv2/contactslistv2"==r.j)var a=r(83312);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}
2function u(){var e=(0,a.I)(),t=(0,o.R)(),r=l((0,n.useState)((function(){var e=(0,s.J)(t);return{results:e.results,scopedResults:e.scopedResults}})),2),c=r[0],u=r[1];return(0,n.useEffect)((function(){function r(){var r=t.getResults();if(null!==r)u({results:r,scopedResults:t.getScopedResults()});else if(0===e.mainIndex.getIndexName().length){var n=e.mainIndex.getWidgets().find(i.l);n&&u({results:(0,s.J)(t).results,scopedResults:n.getScopedResults()})}}return e.addListener("render",r),r(),function(){e.removeListener("render",r)}}),[e,t]),c}},58061:(e,t,r)=>{function i(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(e.transporter){var t=e.transporter,r=t.headers||t.baseHeaders,i=t.queryParameters||t.baseQueryParameters,n="x-algolia-application-id",s="x-algolia-api-key";return[r[n]||i[n],r[s]||i[s]]}return[e.applicationID,e.apiKey]}r.d(t,{j:()=>i})},58168:(e,t,r)=>{function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},i.apply(null,arguments)}r.d(t,{A:()=>i})},58307:(e,t,r)=>{function i(e){return e}r.d(t,{D:()=>i})},58340:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(22031);if("app"==r.j)var n=r(83511);const s="app"==r.j?function(e,t){return(0,i.A)(e,(0,n.A)(e),t)}:null},58351:(e,t,r)=>{r.d(t,{o:()=>c});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(74047);if("searchresults/searchresults"==r.j)var s=r(68481);if("searchresults/searchresults"==r.j)var o=r(47737);if("searchresults/searchresults"==r.j)var a=r(70111);if("searchresults/searchresults"==r.j)var l=r(19770);function c(e){const t=(0,n.Fd)(e),r=(0,a.m)(t?t.observable:void 0);return(0,s.Y)("useReadQuery",u,r)(e)}function u(e){(0,n.Ru)(e);const t=i.useMemo((()=>(0,n.Fd)(e)),[e]),r=i.useCallback((()=>(0,n.Ve)(e)),[e]);t.disposed&&(t.reinitialize(),(0,n.CY)(e,t.promise)),i.useEffect((()=>t.retain()),[t]);const s=(0,l.r)(i.useCallback((r=>t.listen((t=>{(0,n.CY)(e,t),r()}))),[t,e]),r,r),a=(0,o.y)(s);return i.useMemo((()=>({data:a.data,dataState:a.dataState,networkStatus:a.networkStatus,error:a.error})),[a])}},58467:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(74243);if("contactslistv2/contactslistv2"==r.j)var n=r(60513);if("contactslistv2/contactslistv2"==r.j)var s=r(40069);if("contactslistv2/contactslistv2"==r.j)var o=r(1230);if("contactslistv2/contactslistv2"==r.j)var a=r(15164);if("contactslistv2/contactslistv2"==r.j)var l=r(56845);if("contactslistv2/contactslistv2"==r.j)var c=r(84582);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,i.V)({name:"hits",connector:!0});const m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.l;return(0,s.t)(e,f()),function(r){var i,n,s=r||{},u=s.escapeHTML,h=void 0===u||u,f=s.transformItems,m=void 0===f?function(e){return e}:f;return{$$type:"ais.hits",init:function(t){e(d(d({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e(d(d({},r),{},{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return d(d({},e),{},{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,s,u,d=e.results,p=e.helper,f=e.instantSearchInstance;if(i||(i=(0,o.U0)({instantSearchInstance:f,helper:p,widgetType:this.$$type})),n||(n=(0,o.Zp)({helper:p,widgetType:this.$$type,instantSearchInstance:f})),!d)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:i,bindEvent:n,widgetParams:r};h&&d.hits.length>0&&(d.hits=(0,a.S8)(d.hits));var g=(0,l.g)(d.hits,d.page,d.hitsPerPage),y=(0,c.P)(g,d.queryID),v=m(y,{results:d});return{hits:v,items:v,results:d,banner:null===(t=d.renderingContent)||void 0===t||null===(s=t.widgets)||void 0===s||null===(u=s.banners)||void 0===u?void 0:u[0],sendEvent:i,bindEvent:n,widgetParams:r}},dispose:function(e){var r=e.state;return t(),h?r.setQueryParameters(Object.keys(a.FU).reduce((function(e,t){return d(d({},e),{},p({},t,void 0))}),{})):r}
2,getWidgetSearchParameters:function(e,t){return h?e.setQueryParameters(a.FU):e}}}}},58667:(e,t,r)=>{if(r.d(t,{x:()=>s}),"vendors"!=r.j)var i=r(12059);if("vendors"!=r.j)var n=r(61209);function s(e){return(0,n.T)(null==e?void 0:e[i.l])}},59099:(e,t,r)=>{if(r.d(t,{M:()=>a}),"vendors"!=r.j)var i=r(61209);if("vendors"!=r.j)var n=r(92908);if("vendors"!=r.j)var s=r(64878);if("vendors"!=r.j)var o=r(58307);function a(e,t,r){var a=(0,i.T)(e)||t||r?{next:e,error:t,complete:r}:e;return a?(0,n.N)((function(e,t){var r;null===(r=a.subscribe)||void 0===r||r.call(a);var i=!0;e.subscribe((0,s._)(t,(function(e){var r;null===(r=a.next)||void 0===r||r.call(a,e),t.next(e)}),(function(){var e;i=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()}),(function(e){var r;i=!1,null===(r=a.error)||void 0===r||r.call(a,e),t.error(e)}),(function(){var e,t;i&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)})))})):o.D}},59313:(e,t,r)=>{if(r.d(t,{G:()=>s}),"vendors"!=r.j)var i=r(16645);if("vendors"!=r.j)var n=r(47531);function s(e){return i.g&&(0,n.o)(e),e}},59520:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}:null},59575:(e,t,r)=>{function i(e){return!(!e||!e.__CANCEL__)}r.d(t,{A:()=>i})},59712:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(23149),n=Object.create,s=function(){function e(){}return function(t){if(!(0,i.A)(t))return{};if(n)return n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const o="app"==r.j?s:null},59727:(e,t,r)=>{r.d(t,{f:()=>n});var i=r(35974);class n extends Error{static is(e){return(0,i.t)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,i.w)(this),Object.setPrototypeOf(this,n.prototype)}}},60367:(e,t,r)=>{r.d(t,{L:()=>d});var i=r(15381);if("vendors"!=r.j)var n=r(53265);if("vendors"!=r.j)var s=r(13594);if("vendors"!=r.j)var o=r(82920);if("vendors"!=r.j)var a=r(70775);const l={},c=new WeakMap;function u(e,t){const r=e[t];"function"==typeof r&&(e[t]=function(){return c.set(e,(c.get(e)+1)%1e15),r.apply(this,arguments)})}const h=new WeakMap;class d{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){const r=this.cache=e.cache,i=(h.get(e)||0)+1;h.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,c.has(r)||(c.set(r,0),u(r,"evict"),u(r,"modify"),u(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){const{lastWrite:r}=this;return!(r&&r.dmCount===c.get(this.cache)&&(0,i.L)(t,r.variables)&&(0,i.L)(e.data,r.result.data)&&e.extensions?.[n.DH]===r.result.extensions?.[n.DH])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){const{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(t)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){const s={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();const o=0===n,a=o?void 0:this.cache.diff(s);let l=this.maybeHandleIncrementalResult(a?.result,e,t);return o||(p(l,i)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
2,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===n,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:c.get(this.cache)};else if(a&&a.complete)return void(l={...l,data:a.result});const i=e.diff(s);i.complete&&(l={...l,data:i.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){const i=[],n=0===t.cacheWriteBehavior;let a=this.maybeHandleIncrementalResult(n?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(a={...a,errors:[]}),(0,s.t)(a)&&"none"===t.errorPolicy)return Promise.resolve(a);const l=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!n&&p(a,t.errorPolicy)){i.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:a.extensions});const{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach((t=>{const r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;const n=e[r],{query:s,variables:a}=t,{result:c,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&c){const e=n(c,{mutationResult:l(),queryName:s&&(0,o.n)(s)||void 0,queryVariables:a});e&&i.push({result:e,dataId:"ROOT_QUERY",query:s,variables:a})}}))}let c=t.refetchQueries;if("function"==typeof c&&(c=c(l())),i.length>0||(c||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){const e=[];if(this.queryManager.refetchQueries({updateCache:e=>{n||i.forEach((t=>e.write(t)));const{update:r}=t;if(r){if(!n){const r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(a={...a,data:r.result})}this.hasNext||r(e,a,{context:t.context,variables:t.variables})}n||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:c,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach((t=>e.push(t))),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then((()=>a))}return Promise.resolve(a)}markMutationOptimistic(e,t){const r="function"==typeof e?e(t.variables,{IGNORE:l}):e;return r!==l&&(this.cache.recordOptimisticTransaction((e=>{try{this.markMutationResult({data:r},t,e)}catch(e){a.V1.error(e)}}),this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(p(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function p(e,t="none"){const r="ignore"===t||"all"===t;let i=!(0,s.t)(e);return!i&&r&&e.data&&(i=!0),i}},60513:(e,t,r)=>{function i(){}r.d(t,{l:()=>i})},60519:(e,t,r)=>{function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>i})},60590:(e,t,r)=>{var i;r.d(t,{Y:()=>i}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(i||(i={}))},60857:(e,t,r)=>{if(r.d(t,{s:()=>l,y:()=>a}),"vendors"!=r.j)var i=r(43298);var n=r(6839);if("vendors"!=r.j)var s=r(16645);if("vendors"!=r.j)var o=r(70775);const a=new n.DX;function l(e){const t=e.directives?.find((({name:e})=>"unmask"===e.value));if(!t)return"mask";const r=t.arguments?.find((({name:e})=>"mode"===e.value));return s.g&&r&&(r.value.kind===i.b.VARIABLE?s.g&&o.V1.warn(44):r.value.kind!==i.b.STRING?s.g&&o.V1.warn(45):"migrate"!==r.value.value&&s.g&&o.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value?"migrate":"unmask"}},61024:(e,t,r)=>{r.d(t,{g:()=>n});var i=r(35974);class n extends Error{static is(e){return(0,i.t)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,i.w)(this),Ob
2ject.setPrototypeOf(this,n.prototype)}}},61209:(e,t,r)=>{function i(e){return"function"==typeof e}r.d(t,{T:()=>i})},61345:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce((function(e,r){var i=t[r],s=i.state,o=i.requestParams,l=i.results,c=l&&s?l.map((function(e,t){return a({indexName:s.index||e.index},null!=o&&o[t]||e.params?{params:u((null==o?void 0:o[t])||(r=e.params,r.split("&").reduce((function(e,t){var r=t.split("="),i=n(r,2),s=i[0],o=i[1];return e[s]=o?decodeURIComponent(o):"",e}),{})))}:{});var r})):[];return e.concat(c)}),[])],i=Object.keys(t).reduce((function(e,r){var i=t[r].results;return i?e.concat(i):e}),[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var s=e.search.bind(e);e.search=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];var o=Array.isArray(t)?t.map((function(e){return a(a({},e),{},{params:u(e.params)})})):u(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[o].concat(i)},(function(){return s.apply(void 0,[t].concat(i))}))},e.transporter.responsesCache.set({method:"search",args:r},{results:i})}if(!("transporter"in e)){var o="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=a(a({},e.cache),{},l({},o,JSON.stringify({results:Object.keys(t).map((function(e){return t[e].results}))})))}}}function u(e){return Object.keys(e).map((function(t){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var n=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[n++])}))}("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}r.d(t,{R:()=>c})},61496:(e,t,r)=>{r.d(t,{A:()=>
2o});var i=r(241),n=i.A?i.A.prototype:void 0,s=n?n.valueOf:void 0;const o="app"==r.j?function(e){return s?Object(s.call(e)):{}}:null},61701:(e,t,r)=>{r.d(t,{w:()=>i});var i=new(r(93776).c)((function(e){return e.complete()}))},61882:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(79672);if("app"==r.j)var n=r(53098);const s="app"==r.j?function(e){return"symbol"==typeof e||(0,n.A)(e)&&"[object Symbol]"==(0,i.A)(e)}:null},61927:(e,t,r)=>{function i(e){return e.alias?e.alias.value:e.name.value}r.d(t,{u:()=>i})},62113:(e,t,r)=>{r.d(t,{A:()=>n});var i=/\w*$/;const n="app"==r.j?function(e){var t=new e.constructor(e.source,i.exec(e));return t.lastIndex=e.lastIndex,t}:null},62174:(e,t,r)=>{if(r.d(t,{g:()=>s}),"searchresults/searchresults"==r.j)var i=r(16645);if("searchresults/searchresults"==r.j)var n=r(70775);function s(e){const{fetchPolicy:t,returnPartialData:r}=e;!function(e="cache-first"){const t=["cache-first","network-only","no-cache","cache-and-network"];(0,n.V1)(t.includes(e),35,e)}(t),function(e,t){"no-cache"===e&&t&&i.g&&n.V1.warn(36)}(t,r)}},62335:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(35974);function n(e){return e.map((e=>e.message||"Error message not found.")).join("\n")}class s extends Error{static is(e){return(0,i.t)(e,"CombinedProtocolErrors")}static formatMessage=n;errors;constructor(e){super(s.formatMessage(e,{defaultFormatMessage:n})),this.name="CombinedProtocolErrors",this.errors=e,(0,i.w)(this),Object.setPrototypeOf(this,s.prototype)}}},62467:(e,t,r)=>{if(r.d(t,{of:()=>s}),"vendors"!=r.j)var i=r(82100);if("vendors"!=r.j)var n=r(65474);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,i.lI)(e);return(0,n.H)(e,r)}},62471:(e,t,r)=>{if(r.d(t,{T:()=>n}),"vendors"!=r.j)var i=r(61209);function n(e){return Symbol.asyncIterator&&(0,i.T)(null==e?void 0:e[Symbol.asyncIterator])}},62602:(e,t,r)=>{r.d(t,{D:()=>J});var i=r(15381),n=r(6839),s=r(29993),o=r(3902),a=r(81212),l=r(41697),c=r(47397),u=r(67194),h=r(16645),d=r(56939),p=r(70775),f=r(48262),m=r(72755),g=r(73194),y=r(92221),v=r(90738),_=r(43298),b=r(25725),x=r(19123),w=r(44783),A=r(65016),E=r(62722),S=r(63577),T=r(38016),C=r(61927),I=r(42189),P=r(40),M=r(92513),k=r(59313),O=r(33245),R=r(24253);function D(e){return[e.selectionSet,e.objectOrReference,e.context]}class L{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,n.LV)((e=>{const t=D(e),r=this.executeSelectionSet.peek(...t);return r||((0,m.M2)(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))}),{max:a.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:D,makeCacheKey(e,t,r){if((0,m.$7)(r.store))return r.store.makeCacheKey(e,(0,u.A)(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,n.LV)((e=>((0,m.M2)(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e))),{max:a.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if((0,m.$7)(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:i,returnPartialData:n=!0}){const s=this.config.cache.policies;i={...(0,b.w)((0,x.A)(t)),...i};const o=(0,w.W)(r),a=this.executeSelectionSet({selectionSet:(0,A.V)(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:s,variables:i,varString:(0,l.M)(i),...(0,g.lq)(t,this.config.fragments)}});let c;a.missing&&(c=new R.Z(function(e){try{JSON.stringify(e,((e,t)=>{if("string"==typeof t)throw t;return t}))}catch(e){return e}}(a.missing),a.missing,t,i));const u=!c,{result:h}=a;return{result:u?h:n?0===Object.keys(h).length?null:h:null,complete:u,missing:c}}isFresh(e,t,r,i){if((0,m.$7)(i.store)&&this.knownResults.get(e)===r){const n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:i}){if((0,u.A)(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};const{variables:n,policies:s,store:a}=i,l=a.getFieldValue(t,"__typename"),c=[];let h;const d=new E.Z;function f(e,t){return e.missing&&(h=d.merge(h,{[t]:e.missing})),e.result}"string"!=typeof l||s.rootIdsByTypename[l]||c.push({__typename:l});const m=new Set(e.selections);m.forEach((e=>{if((0,S.M)(e,n))if((0,T.d)(e)){let n=s.readField({fieldName:e.n
2ame.value,field:e,variables:i.variables,from:t},i);const a=(0,C.u)(e);void 0===n?o.X.added(e)||(h=d.merge(h,{[a]:`Can't find field '${e.name.value}' on ${(0,u.A)(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,I.c)(n)?n.length>0&&(n=f(this.executeSubSelectedArray({field:e,array:n,enclosingRef:r,context:i}),a)):e.selectionSet&&null!=n&&(n=f(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:n,enclosingRef:(0,u.A)(n)?n:r,context:i}),a)),void 0!==n&&c.push({[a]:n})}else{const t=(0,P.H)(e,i.lookupFragment);if(!t&&e.kind===_.b.FRAGMENT_SPREAD)throw(0,p.vA)(107,e.name.value);t&&s.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(m.add,m)}}));const g={result:(0,M.I)(c),missing:h},y=(0,k.G)(g);return y.result&&this.knownResults.set(y.result,e),y}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,s=new E.Z;function o(e,t){return e.missing&&(n=s.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter((e=>void 0===e||i.store.canRead(e)))),t=t.map(((t,n)=>null===t?null:(0,I.c)(t)?o(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}),n):e.selectionSet?o(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:(0,u.A)(t)?t:r,context:i}),n):(h.g&&function(e,t,r){if(!t.selectionSet){const i=new Set([r]);i.forEach((r=>{(0,O.U)(r)&&((0,p.V1)(!(0,u.A)(r),108,(0,g.Ui)(e,r),t.name.value),Object.values(r).forEach(i.add,i))}))}}(i.store,e,t),t))),{result:t,missing:n}}}var B=r(32453),z=r(66938),j=r(64638),F=r(53265),N=r(69467),U=r(52213),V=r(31155);function G(e,t,r){const i=`${t}${r}`;let n=e.flavors.get(i);return n||e.flavors.set(i,n=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),n}class q{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:s,overwrite:o,extensions:a}){const c=(0,z.V)(t),d=(0,g.mv)();s={...(0,b.w)(c),...s};const f={store:e,written:{},merge:(e,t)=>d.merge(e,t),variables:s,varString:(0,l.M)(s),...(0,g.lq)(t,this.fragments),overwrite:!!o,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a},m=this.processSelectionSet({result:r||{},dataId:n,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:f,path:[]});if(!(0,u.A)(m))throw(0,p.vA)(109,r);return f.incomingById.forEach((({storeObject:t,mergeTree:r,fieldNodeSet:n},s)=>{const o=(0,w.W)(s);if(r&&r.map.size){const e=this.applyMerges(r,o,t,f);if((0,u.A)(e))return;t=e}if(h.g&&!f.overwrite){const e={};n.forEach((t=>{t.selectionSet&&(e[t.name.value]=!0)}));const s=t=>!0===e[(0,g.iJ)(t)],a=e=>{const t=r&&r.map.get(e);return Boolean(t&&t.info&&t.info.merge)};Object.keys(t).forEach((e=>{s(e)&&!a(e)&&function(e,t,r,n){const s=e=>{const t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=s(e);if(!o)return;const a=s(t);if(!a)return;if((0,u.A)(o))return;if((0,i.L)(o,a))return;if(Object.keys(o).every((e=>void 0!==n.getFieldValue(a,e))))return;const l=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=(0,g.iJ)(r),d=`${l}.${c}`;if(X.has(d))return;X.add(d);const f=[];(0,I.c)(o)||(0,I.c)(a)||[o,a].forEach((e=>{const t=n.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}));h.g&&p.V1.warn(112,c,l,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",d,Array.isArray(o)?[...o]:{...o},Array.isArray(a)?[...a]:{...a})}(o,t,e,f.store)}))}e.merge(s,t)})),e.retain(m.__ref),m}processSelectionSet({dataId:e,result:t,selectionSet:r,context:i,mergeTree:n,path:s}){const{policies:a}=this.cache;let l={};const c=e&&a.rootTypenamesById[e]||K(t,r,i.fragmentMap)||e&&i.store.get(e,"__typename");"string"==typeof c&&(l.__typename=c);const d=(...e)=>{const t=(0,y.mN)(e,l,i.variables);if((0,u.A)(t.from)){const e=i.incomingById.get(t.from.__ref);if(e){const r=a.readField({...t,from:e.storeObject},i);if(void 0!==r)return r}}return a.readField(t,i)},f=new Set;this.flattenFields(r,t,i,c).forEach(((e,r)=>{const i=(0,C.u)(r),m=t[i],v=[...s,r.name.value];if(f.add(r),void 0!==m){const t=a.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),i=W(n,t);let s,o=this.processFieldValue(m,r,r.selectionSet?G(e,!1,!1):e,i,v);r.selectionSet&&((0,u.A)(o)||(0,g.d1)(o))&&(s=d("__typename",o));const h=a.getMergeFunction(c,r.name.value,s);h?i.info={field:r,typename:c,merge:h,path:v}:(0,j.d)(["stream"],r)&&Array.isArray(o)&&e.extensions?.[F.DH]?i.info={field:r,typename:c,merge:y.Wd,path:v}:Z(n,t),l=e.merge(l,{[t]:o})}else!h.g||e.clientOnly||e.deferred||o.X.added(r)||a.getReadFunction(c,r.name.value)||p.V1.error(110,(0,C.u)(r),t)}));try{const[n,s]=a.identify(t,{typename:c,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:l,readField:d});e=e||n,s&&(l=i.merge(l,s))}catch(t){if(!e)throw t}if("string"==typeof e){const s=(0,w.W)(e),o=i.written[e]||(i.written[e]=[]);if(o.indexOf(r)>=0)return s;if(o.push(r),this.reader&&this.reader.isFresh(t,s,r,i))return s;const a=i.incomingById.get(e);return a?(a.storeObject=i.merge(a.storeObject,l),a.mergeTree=Y(a.mergeTree,n),f.forEach((e=>a.fieldNodeSet.add(e)))):i.incomingById.set(e,{storeObject:l,mergeTree:Q(n)?void 0:n,fieldNodeSet:f}),s}return l}processFieldValue(e,t,r,i,n){return t.selectionSet&&null!==e?(0,I.c)(e)?e.map(((e,s)=>{const o=this.processFieldValue(e,t,r,W(i,s),[...n,s]);return Z(i,s),o})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i,path:n}):h.g?(0,N.m)(e):e}flattenFields(e,t,r,i=K(t,e,r.fragmentMap)){const n=new Map,{policies:s}=this.cache,o=new B.b(!1);return function e(a,l){const c=o.lookup(a,l.clientOnly,l.deferred);c.visited||(c.visited=!0,a.selections.forEach((o=>
2{if(!(0,S.M)(o,r.variables))return;let{clientOnly:a,deferred:c}=l;if(a&&c||!(0,U.E)(o.directives)||o.directives.forEach((e=>{const t=e.name.value;if("client"===t&&(a=!0),"defer"===t){const t=(0,V.M)(e,r.variables);t&&!1===t.if||(c=!0)}})),(0,T.d)(o)){const e=n.get(o);e&&(a=a&&e.clientOnly,c=c&&e.deferred),n.set(o,G(r,a,c))}else{const n=(0,P.H)(o,r.lookupFragment);if(!n&&o.kind===_.b.FRAGMENT_SPREAD)throw(0,p.vA)(111,o.name.value);n&&s.fragmentMatches(n,i,t,r.variables)&&e(n.selectionSet,G(r,a,c))}})))}(e,r),n}applyMerges(e,t,r,i,n){if(e.map.size&&!(0,u.A)(r)){const s=(0,I.c)(r)||!(0,u.A)(t)&&!(0,g.d1)(t)?void 0:t,o=r;let a;s&&!n&&(n=[(0,u.A)(s)?s.__ref:s]);const l=(e,t)=>(0,I.c)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t));e.map.forEach(((e,t)=>{const r=l(s,t),c=l(o,t);if(void 0===c)return;n&&n.push(t);const u=this.applyMerges(e,r,c,i,n);u!==c&&(a=a||new Map,a.set(t,u)),n&&(0,p.V1)(n.pop()===t)})),a&&(r=(0,I.c)(o)?o.slice(0):{...o},a.forEach(((e,t)=>{r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,n&&i.store.getStorage(...n)):r}}const H=[];function W({map:e},t){return e.has(t)||e.set(t,H.pop()||{map:new Map}),e.get(t)}function Y(e,t){if(e===t||!t||Q(t))return e;if(!e||Q(e))return t;const r=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,i=e.map.size&&t.map.size,n={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){const r=new Set(t.map.keys());e.map.forEach(((e,i)=>{n.map.set(i,Y(e,t.map.get(i))),r.delete(i)})),r.forEach((r=>{n.map.set(r,Y(t.map.get(r),e.map.get(r)))}))}return n}function Q(e){return!e||!(e.info||e.map.size)}function Z({map:e},t){const r=e.get(t);r&&Q(r)&&(H.push(r),e.delete(t))}const X=new Set;function K(e,t,r){let i;for(const r of t.selections)if((0,T.d)(r)){if("__typename"===r.name.value)return e[(0,C.u)(r)]}else i?i.push(r):i=[r];if("string"==typeof e.__typename)return e.__typename;if(i)for(const t of i){const i=K(e,(0,P.H)(t,r).selectionSet,r);if("string"==typeof i)return i}}class J extends f.k{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new s.c(o.X);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=v.UT;constructor(e={}){super(),this.config=(0,g.I6)(e),this.policies=new y.lx({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const e=this.data=new m.D_.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){const{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new q(this,this.storeReader=new L({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,n.LV)(((e,t)=>this.broadcastWatch(e,t)),{max:a.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{const t=e.optimistic?this.optimisticData:this.data;if((0,m.$7)(t)){const{optimistic:r,id:i,variables:n}=e;return t.makeCacheKey(e.query,e.callback,(0,l.M)({optimistic:r,id:i,variables:n}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((e=>e.resetCaching()))}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){const{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(g.$3.call(e,"id")&&!e.id)return!1;const t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){return this.watches.size||(0,v.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&(0,v.WR)(this),this.maybeBroadcastWatch.forget(e)}}gc(e){l.M.reset(),c.y.reset();const t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if((0,u.A)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){h.g&&p.V1.warn(e)}}evict(e){if(!e.id){if(g.$3.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),l.M.reset(),e&&e.discardWatches?(this.watches.forEac
2h((e=>this.maybeBroadcastWatch.forget(e))),this.watches.clear(),(0,v.WR)(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){const t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){const{update:t,optimistic:r=!0,removeOptimistic:i,onWatchUpdated:n}=e;let s;const o=e=>{const{data:r,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return s=t(this)}finally{--this.txCount,this.data=r,this.optimisticData=i}},a=new Set;return n&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(a.add(e),!1)}),"string"==typeof r?this.optimisticData=this.optimisticData.addLayer(r,o):!1===r?o(this.data):o(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),n&&a.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){const r=n.call(this,e,t);return!1!==r&&a.delete(e),r}}),a.size&&a.forEach((e=>this.maybeBroadcastWatch.dirty(e)))):this.broadcastWatches(e),s}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){const t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach((t=>this.maybeBroadcastWatch(t,e))),r.forEach((e=>e()))}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){const{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){const{lastDiff:r}=e,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,i.L)(r.result,n.result)||e.callback(e.lastDiff=n,r)}}h.g&&(J.prototype.getMemoryInternals=d.cM)},62722:(e,t,r)=>{if(r.d(t,{Z:()=>a}),"vendors"!=r.j)var i=r(33245);const{hasOwnProperty:n}=Object.prototype,s=function(e,t,r){return this.merge(e[r],t[r])},o=e=>isNaN(+e)?{}:[];class a{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||s}merge(e,t,r={}){const s=r.atPath;if(s?.length){const[i,...n]=s;void 0===e&&(e=o(i));let a=e[i];void 0===a&&n.length&&(a=o(n[0]));const l=this.merge(a,t,{...r,atPath:n});return a!==l&&((e=this.shallowCopyForMerge(e))[i]=l),e}return Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach((r=>{if(n.call(e,r)){const i=e[r];if(t[r]!==i){const n=this.reconciler(e,t,r);n!==i&&((e=this.shallowCopyForMerge(e))[r]=n)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]})),e):t}isObject=i.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,i.U)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}},62735:(e,t,r)=>{function i(e){try{return e()}catch{}}r.d(t,{n:()=>i})},62940:(e,t,r)=>{r.d(t,{Q:()=>c});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(11327);if("contactslistv2/contactslistv2"==r.j)var s=r(70508);if("contactslistv2/contactslistv2"==r.j)var o=r(83312);if("contactslistv2/contactslistv2"==r.j)var a=r(14794);if("contactslistv2/contactslistv2"==r.j)var l=r(35843);function c(e){var t,r,c=e.widget,u=e.parentIndex,h=e.props,d=e.shouldSsr,p=e.skipSuspense,f=(0,l.t)(),m=f.waitForResultsRef,g=f.countRef,y=(f.ignoreMultipleHooksWarning,(0,i.useRef)(h));(0,i.useEffect)((function(){y.current=h}),[h]);var v=(0,i.useRef)(c);(0,i.useEffect)((function(){v.current=c}),[c]);var _,b=(0,i.useRef)(null),x=d&&!u.getWidgets().includes(c),w=(0,o.I)();((0,a.E)((function(){var e=v.current;b.current?(clearTimeout(b.current),(0,n.j)(h,y.current)||(u.removeWidgets([e]),u.addWidgets([c]))):d||u.addWidgets([c]);return function(){b.current=setTimeout((function(){w._schedule((function(){w._preventWidgetCleanup||u.removeWidgets([e])}))}))}}),[u,c,d,w,h]),(x||"pending"===(null==m||null===(t=m.current)||void 0===t?void 0:t.status))&&u.addWidgets([c]),null!=m&&m.current&&!p)&&((0,s.Y)(m.current),"ais.dynamicWidgets"!==c.$$type&&null!==(_=w.helper)&&void 0!==_&&_.lastResults&&(0,s.Y)(m.current));"fulfilled"===(null==m||null===(r=m.current)||void 0===r?void 0:r.status)&&(g.current+=1)}},63374:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(22031);if("app"==r.j)var n=r(41865);const s="app"==r.j?function(e,t){return e&&(0,i.A)(t,(0,n.A)(t),e)}:null},63577:(e,t,r)=>{if(r.d(t,{M:()=>n}),"vendors"!=r.j)var i=r(70775);function n({directives:e},t){return!e||!e.length||function(e){const t=[];e&&e.length&&e.forEach((e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;const r=e.arguments,n=e.name.value;(0,i.V1)(r&&1===r.length,16,n);const s=r[0];(0,i.V1)(s.name&&"if"===s.name.value,17,n);const o=s.value;(0,i.V1)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),18,n),t.push({directive:e,ifArgument:s})}));return t}(e).every((({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,i.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n}))}},63662:(e,t,r)=>
2{function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}r.d(t,{A:()=>i})},63853:(e,t,r)=>{if(r.d(t,{A:()=>n}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(74062);function n(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new i.A("Request failed with status code "+r.status,[i.A.ERR_BAD_REQUEST,i.A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},64083:(e,t,r)=>{if(r.d(t,{S:()=>c}),"vendors"!=r.j)var i=r(43298);if("vendors"!=r.j)var n=r(16645);if("vendors"!=r.j)var s=r(59313);if("vendors"!=r.j)var o=r(61927);if("vendors"!=r.j)var a=r(70775);if("vendors"!=r.j)var l=r(60857);function c(e,t,r){return l.y.withValue(!0,(()=>{const i=u(e,t,r,!1);return Object.isFrozen(e)&&(0,s.G)(i),i}))}function u(e,t,r,s,c){const{knownChanged:d}=r,p=function(e,t){if(t.has(e))return t.get(e);const r=Array.isArray(e)?[]:{};return t.set(e,r),r}(e,r.mutableTargets);if(Array.isArray(e)){for(const[i,o]of Array.from(e.entries())){if(null===o){p[i]=null;continue}const e=u(o,t,r,s,n.g?`${c||""}[${i}]`:void 0);d.has(e)&&d.add(p),p[i]=e}return d.has(p)?p:e}for(const f of t.selections){let t;if(s&&d.add(p),f.kind===i.b.FIELD){const i=(0,o.u)(f),a=f.selectionSet;if(t=p[i]||e[i],void 0===t)continue;if(a&&null!==t){const o=u(e[i],a,r,s,n.g?`${c||""}.${i}`:void 0);d.has(o)&&(t=o)}n.g||(p[i]=t),n.g&&(s&&"__typename"!==i&&!Object.getOwnPropertyDescriptor(p,i)?.value?Object.defineProperty(p,i,h(i,t,c||"",r.operationName,r.operationType)):(delete p[i],p[i]=t))}if(f.kind!==i.b.INLINE_FRAGMENT||f.typeCondition&&!r.cache.fragmentMatches(f,e.__typename)||(t=u(e,f.selectionSet,r,s,c)),f.kind===i.b.FRAGMENT_SPREAD){const i=f.name.value,n=r.fragmentMap[i]||(r.fragmentMap[i]=r.cache.lookupFragment(i));(0,a.V1)(n,39,i);const s=(0,l.s)(f);"mask"!==s&&(t=u(e,n.selectionSet,r,"migrate"===s,c))}d.has(t)&&d.add(p)}return"__typename"in e&&!("__typename"in p)&&(p.__typename=e.__typename),Object.keys(p).length!==Object.keys(e).length&&d.add(p),d.has(p)?p:e}function h(e,t,r,i,s){let o=()=>(l.y.getValue()||(n.g&&a.V1.warn(40,i?`${s} '${i}'`:`anonymous ${s}`,`${r}.${e}`.replace(/^\./,"")),o=()=>t),t);return{get:()=>o(),set(e){o=()=>e},enumerable:!0,configurable:!0}}},64243:(e,t,r)=>{if(r.d(t,{A:()=>n}),/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var i=r(43145);function n(e){if(Array.isArray(e))return(0,i.A)(e)}},64467:(e,t,r)=>{if(r.d(t,{A:()=>n}),"vendors"!=r.j)var i=r(49922);function n(e,t,r){return(t=(0,i.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},64638:(e,t,r)=>{if(r.d(t,{d:()=>n}),"vendors"!=r.j)var i=r(84705);function n(e,t,r){const n=new Set(e),s=n.size;return(0,i.YR)(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<s}},64841:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(72136),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=n&&"object"==typeof module&&module&&!module.nodeType&&module,o=s&&s.exports===n&&i.A.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();const l="app"==r.j?a:null},64878:(e,t,r)=>{r.d(t,{_:()=>n});var i=r(31635);function n(e,t,r,i,n){return new s(e,t,r,i,n)}var s=function(e){function t(t,r,i,n,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,i.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(r(2685).vU)},65016:(e,t,r)=>{if(r.d(t,{V:()=>s}),"vendors"!=r.j)var i=r(70775);if("vendors"!=r.j)var n=r(53489);function s(e){let t;(0,n.s)(e);for(let r of e.definitions){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,i.vA)(12)}},65150:(e,t,r)=>{function i(e,t){return(Array.isArray(t)?t:t.split(".")).reduce((function(e,t){return e&&e[t]}),e)}r.d(t,{E:()=>i})},65204:(e,t,r)=>{function i(e){return 7===e||8===e}r.d(t,{D:()=>i})},65474:(e,t,r)=>{if(r.d(t,{H:()=>s}),"vendors"!=r.j)var i=r(73891);if("vendors"!=r.j)var n=r(15964);function s(e,t){return t?(0,i.c)(e,t):(0,n.Tg)(e)}},65520:(e,t,r)=>{r.d(t,{Gv:()=>c,IY:()=>p,X$:()=>u,dY:()=>o,fq:()=>d,oR:()=>s,ro:()=>l,tB:()=>a,wD:()=>h});var i=r(51648);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function a(){return Date.now()}function l(e,t){void 0===t&&(t="x");var r,n,s,o=(0,i.zk)(),a=function(e){var t,r=(0,i.zk)();return r.getComputedStyle&&(t=r.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return o.WebKitCSSMatrix?((n=a.transform||a.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),s=new o.WebKitCSSMatrix("none"===n?"":n)):r=(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=o.WebKitCSSMatrix?s.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=o.WebKitCSSMatrix?s.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0}function c(e){return"object"===n(e)&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(){for(var e,t=Object(arguments.length<=0?void 0:arguments[0]),r=["__proto__","constructor","prototype"],i=1;i<arguments.length;i+=1){var n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n&&(e=n,!("undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType))))for(var s=Object.keys(Object(n)).filter((function(e){return r.indexOf(e)<0})),o=0,a=s.length;o<a;o+=1){var l=s[o],h=Object.getOwnPropertyDescriptor(n,l);void 0!==h&&h.enumerable&&(c(t[l])&&c(n[l])?n[l].__swiper__?t[l]=n[l]:u(t[l],n[l]):!c(t[l])&&c(n[l])?(t[l]={},n[l].__swiper__?t[l]=n[l]:u(t[l],n[l])):t[l]=n[l])}}return t}function h(e,t){Object.keys(t).forEach((function(r){c(t[r])&&Object.keys(t[r]).forEac
2h((function(i){"function"==typeof t[r][i]&&(t[r][i]=t[r][i].bind(e))})),e[r]=t[r]}))}function d(e){return void 0===e&&(e=""),"."+e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function p(e,t,r,n){var s=(0,i.YE)();return r&&Object.keys(n).forEach((function(r){if(!t[r]&&!0===t.auto){var i=s.createElement("div");i.className=n[r],e.append(i),t[r]=i}})),t}},65606:(e,t,r)=>{r.d(t,{A:()=>n});var i=Object.prototype.toString;const n="app"==r.j?function(e){return i.call(e)}:null},65915:(e,t,r)=>{r.d(t,{A:()=>p});var i=r(24619),n=r(29293),s=r(68335);const o=function(){this.size=0,this.__data__={hash:new i.A,map:new(s.A||n.A),string:new i.A}};var a=r(15547);const l=function(e){var t=(0,a.A)(this,e).delete(e);return this.size-=t?1:0,t};const c=function(e){return(0,a.A)(this,e).get(e)};const u=function(e){return(0,a.A)(this,e).has(e)};const h=function(e,t){var r=(0,a.A)(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this};function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}d.prototype.clear=o,d.prototype.delete=l,d.prototype.get=c,d.prototype.has=u,d.prototype.set=h;const p=d},66243:(e,t,r)=>{r.d(t,{U:()=>u});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(41697);if("searchresults/searchresults"==r.j)var s=r(89976);if("searchresults/searchresults"==r.j)var o=r(47737);if("searchresults/searchresults"==r.j)var a=r(68481);if("searchresults/searchresults"==r.j)var l=r(67659);if("searchresults/searchresults"==r.j)var c=r(70111);function u(e){return(0,a.Y)("useSuspenseFragment",h,(0,c.m)("object"==typeof e?e.client:void 0))(e)}function h(e){const t=(0,c.m)(e.client),{from:r,variables:a}=e,{cache:u}=t,h=(0,l.k)((()=>Array.isArray(r)?r.map((e=>d(u,e))):d(u,r)),[u,r]),p=i.useMemo((()=>Array.isArray(h)?h.join(","):h),[h]),f=(0,s.B)(t).getFragmentRef([e.fragment,(0,n.M)(a),p],t,{...e,variables:a,from:h});let[m,g]=i.useState([f.key,f.promise]);i.useEffect((()=>{const e=f.retain(),t=f.listen((e=>{g([f.key,e])}));return()=>{e(),t()}}),[f]),m[0]!==f.key&&(m[0]=f.key,m[1]=f.promise);return{data:(0,o.y)(m[1])}}function d(e,t){return"string"==typeof t?t:null===t?null:e.identify(t)}},66431:(e,t,r)=>{if(r.d(t,{A:()=>l}),"app"==r.j)var i=r(90565);if("app"==r.j)var n=r(75641);if("app"==r.j)var s=r(62113);if("app"==r.j)var o=r(61496);if("app"==r.j)var a=r(1801);const l="app"==r.j?function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,i.A)(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return(0,n.A)(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,a.A)(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return(0,s.A)(e);case"[object Symbol]":return(0,o.A)(e)}}:null},66547:(e,t,r)=>{r.d(t,{y:()=>l});var i=r(75995);const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s(e){return o[e.charCodeAt(0)]}const o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var a=r(84705);function l(e){return(0,a.YR)(e,c)}const c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f(e.variableDefinitions)?d("(\n",u(e.variableDefinitions,"\n"),"\n)"):d("(",u(e.variableDefinitions,", "),")"),r=d("",e.de
2scription,"\n")+u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>d("",n,"\n")+e+": "+t+d(" = ",r)+d(" ",u(i," "))},SelectionSet:{leave:({selections:e})=>h(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){const s=d("",e,": ")+t;let o=s+d("(",u(r,", "),")");return o.length>80&&(o=s+d("(\n",p(u(r,"\n")),"\n)")),u([o,u(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>u(["...",d("on ",e),u(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>d("",s,"\n")+`fragment ${e}${d("(",u(r,", "),")")} `+`on ${t} ${d("",u(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.yo)(e):`"${e.replace(n,s)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>d("",e,"\n")+u(["schema",u(t," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+u(["scalar",t,u(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+u(["type",t,d("implements ",u(r," & ")),u(i," "),h(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>d("",e,"\n")+t+(f(r)?d("(\n",p(u(r,"\n")),"\n)"):d("(",u(r,", "),")"))+": "+i+d(" ",u(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>d("",e,"\n")+u([t+": "+r,d("= ",i),u(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+u(["interface",t,d("implements ",u(r," & ")),u(i," "),h(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>d("",e,"\n")+u(["union",t,u(r," "),d("= ",u(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>d("",e,"\n")+u(["enum",t,u(r," "),h(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+u([t,u(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>d("",e,"\n")+u(["input",t,u(r," "),h(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>d("",e,"\n")+"directive @"+t+(f(r)?d("(\n",p(u(r,"\n")),"\n)"):d("(",u(r,", "),")"))+(i?" repeatable":"")+" on "+u(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),h(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>u(["extend type",e,d("implements ",u(t," & ")),u(r," "),h(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>u(["extend interface",e,d("implements ",u(t," & ")),u(r," "),h(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>u(["extend union",e,u(t," "),d("= ",u(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>u(["extend enum",e,u(t," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>u(["extend input",e,u(t," "),h(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>u([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>u([e,d(".",t),d("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>u(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>u(["@",e,d("(",t,":)")])}};function u(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function h(e){return d("{\n",p(u(e,"\n")),"\n}")}function d(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return d(" ",e.replace(/\n/g,"\n "))}function f(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},66745:(e,t,r)=>
2{function i(e,t){return e.toLocaleString(t)}r.d(t,{Z:()=>i})},66847:(e,t,r)=>{if(r.d(t,{W:()=>o}),"vendors"!=r.j)var i=r(15964);if("vendors"!=r.j)var n=r(64878);if("vendors"!=r.j)var s=r(92908);function o(e){return(0,s.N)((function(t,r){var s,a=null,l=!1;a=t.subscribe((0,n._)(r,void 0,void 0,(function(n){s=(0,i.Tg)(e(n,o(e)(t))),a?(a.unsubscribe(),a=null,s.subscribe(r)):l=!0}))),l&&(a.unsubscribe(),a=null,s.subscribe(r))}))}},66860:(e,t,r)=>{r.d(t,{Z:()=>w});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(11327);if("contactslistv2/contactslistv2"==r.j)var s=r(95025);if("contactslistv2/contactslistv2"==r.j)var o=r(92675);if("contactslistv2/contactslistv2"==r.j)var a=r(83312);if("contactslistv2/contactslistv2"==r.j)var l=r(52357);if("contactslistv2/contactslistv2"==r.j)var c=r(98292);if("contactslistv2/contactslistv2"==r.j)var u=r(46674);if("contactslistv2/contactslistv2"==r.j)var h=r(62940);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var p="contactslistv2/contactslistv2"==r.j?["skipSuspense"]:null,f="contactslistv2/contactslistv2"==r.j?["instantSearchInstance","widgetParams"]:null,m="contactslistv2/contactslistv2"==r.j?["widgetParams"]:null;function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=r.skipSuspense,y=void 0!==d&&d,v=x(r,p),b=(0,l.r)(),w=(0,c.m)(),A=(0,a.I)(),E=(0,o.R)(),S=(0,u.w)(t),T=(0,u.w)(v),C=(0,i.useRef)(!0),I=(0,i.useRef)(null),P=(0,i.useRef)(A.status),M=(0,i.useMemo)((function(){return _(_({},e((function(e,t){if(t)C.current=!0;else if(C.current){var r=e.instantSearchInstance,i=(e.widgetParams,x(e,f));(0,n.j)(i,I.current,(function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function}))&&r.status===P.current||(R(i),I.current=i,P.current=r.status)}}),(function(){C.current=!1}))(S)),T)}),[e,S,T]),k=g((0,i.useState)((function(){if(M.getWidgetRenderState){var e,t=E.getHelper(),r=E.getWidgetUiState({})[E.getIndexId()];t.state=(null===(e=M.getWidgetSearchParameters)||void 0===e?void 0:e.call(M,t.state,{uiState:r}))||t.state;var i=(0,s.J)(E),n=i.results,o=i.scopedResults,a=i.recommendResults,l=M.getWidgetRenderState({helper:t,parent:E,instantSearchInstance:A,results:"recommend"===M.dependsOn&&a&&w?a[w.recommendIdx.current++]:n,scopedResults:o,state:t.state,render
2State:A.renderState,templatesConfig:A.templatesConfig,createURL:E.createURL,searchMetadata:{isSearchStalled:"stalled"===A.status},status:A.status,error:A.error});l.widgetParams;return x(l,m)}return{}})),2),O=k[0],R=k[1];return(0,h.Q)({widget:M,parentIndex:E,props:S,shouldSsr:Boolean(b),skipSuspense:y}),O}},66938:(e,t,r)=>{if(r.d(t,{V:()=>n}),"vendors"!=r.j)var i=r(53489);function n(e){return(0,i.s)(e),e.definitions.filter((e=>"OperationDefinition"===e.kind))[0]}},66984:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){return e===t||e!=e&&t!=t}:null},67194:(e,t,r)=>{function i(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}r.d(t,{A:()=>i})},67438:(e,t,r)=>{function i(e,t){for(var r,i=0;i<e.length;i++)if(t(r=e[i],i,e))return r}r.d(t,{I:()=>i})},67659:(e,t,r)=>{r.d(t,{k:()=>s});var i=r(15381),n=r(96540);function s(e,t){const r=n.useRef(void 0);return r.current&&(0,i.L)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}},67912:(e,t,r)=>{r.d(t,{C:()=>o});var i=r(96540);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function o(){return n((0,i.useReducer)((function(e){return e+1}),0),2)[1]}},68087:(e,t,r)=>{r.d(t,{k:()=>s});var i,n=r(51648);function s(){return i||(i=function(){var e=(0,n.zk)(),t=(0,n.YE)();return{touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!e.PointerEvent&&"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,r)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),i}},68335:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(80702),n=r(41917),s=(0,i.A)(n.A,"Map");const o="app"==r.j?s:null},68481:(e,t,r)=>{r.d(t,{Y:()=>o});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(28670);if("searchresults/searchresults"==r.j)var s=r(6741);function o(e,t,r){const o=[r.queryManager,e.startsWith("use")?i.useContext((0,s.l)()):void 0];let a=t;for(const t of o){const r=t?.[n.Sg]?.[e];r&&(a=r(a))}return a}},68887:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{Si:()=>s});var n="_ALGOLIA";function s(){return function(e){if("object"===("undefined"==typeof document?"undefined":i(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var s=r[n];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(t))return s.substring(t.length,s.length)}}(n)}},68923:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(51648),n=r(33261),s=r(65520);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(this,arguments)}var a={onHashChange:function(){var e=this,t=(0,i.YE)();e.emit("hashChange");var r=t.location.hash.replace("#","");if(r!==e.slides.eq(e.activeIndex).attr("data-hash")){var n=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+r+'"]').index();if(void 0===n)return;e.slideTo(n)}},setHash:function(){var e=this,t=(0,i.zk)(),r=(0,i.YE)();if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||0),e.emit("hashSet");else{var n=e.slides.eq(e.activeIndex),s=n.attr("data-hash")||n.attr("data-history");r.location.hash=s||"",e.emit("hashSet")}},init:function(){var e=this,t=(0,i.YE)(),r=(0,i.zk)();if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var s=t.location.hash.replace("#","");if(s)for(var o=0,a=e.slides.length;o<a;o+=1){var l=e.slides.eq(o);if((l.attr("data-hash")||l.attr("data-history"))===s&&!l.hasClass(e.params.slideDuplicateClass)){var c=l.index();e.slideTo(c,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&(0,n.A)(r).on("hashchange",e.hashNavigation.onHashChange)}},destroy:function(){var e=(0,i.zk)();this.params.hashNavigation.watchState&&(0,n.A)(e).off("hashchange",this.hashNavigation.onHashChange)}};const l={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){(0,s.wD)(this,{hashNavigation:o({initialized:!1},a)})},on:{init:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(e){e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(e){e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange:function(e){e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}}},69026:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{A:()=>c});var n="contactslistv2/contactslistv2"==r.j?["configure"]:null;function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){e.configure;return function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,n)}function c(){return{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce((function(t,r){return o(o({},t),{},a({},r,l(e[r])))}),{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return o(o({},t),{},a({},r,l(e[r])))}),{})}}}},69103:(e,t,r)=>{function i(e){let t;const r=`algolia-client-js-${e.key}`;function i(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function n(){return JSON.parse(i().getItem(r)||"{}")}function s(e){i().setItem(r,JSON.stringify(e))}return{get:(t,r,i={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=n(),i=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(s(i),!t)return;s(Object.fromEntries(Object.entries(i).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),n()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||i.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const s=n();return s[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},i().setItem(r,JSON.stringify(s)),t})),delete:e=>Promise.resolve().then((()=>{const t=n();delete t[JSON.stringify(e)],i().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{i().removeItem(r)}))}}function n(e){const t=[...e.caches],r=t.shift();return void 0===r?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,i,s={miss:()=>Promise.resolve()})=>r.get(e,i,s).catch((()=>n({caches:t}).get(e,i,s))),set:(e,i)=>r.set(e,i).catch((()=>n({caches:t}).set(e,i))),delete:e=>r.delete(e).catch((()=>n({caches:t}).delete(e))),clear:()=>r.clear().catch((()=>n({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,i,n={miss:()=>Promise.resolve()}){const s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);const o=i();return o.then((e=>n.miss(e))).then((()=>o))},set:(r,i)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(i):i,Promise.resolve(i)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}r.r(t),r.d(t,{apiClientVersion:()=>_,liteClient:()=>x});function o({algoliaAgents:e,client:t,version:r}){const i=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>i.add(e))),i}var a="searchresults/searchresults"==r.j?12e4:null;function l(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}var c=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},u=class extends c{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},h=class extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError")}},d=class extends u{status;constructor(e,t,r,i="ApiError"){super(e,r,i),this.status=t}},p=class extends c{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},f=class extends d{error;
2constructor(e,t,r,i){super(e,t,i,"DetailedApiError"),this.error=r}};function m(e,t,r){const i=(n=r,Object.keys(n).filter((e=>void 0!==n[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(n[e])?n[e].join(","):n[e]).replace(/\+/g,"%20")}`)).join("&"));var n;let s=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return i.length&&(s+=`?${i}`),s}function g(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function y({hosts:e,hostsCache:t,baseHeaders:r,logger:i,baseQueryParameters:n,algoliaAgent:s,timeouts:o,requester:a,requestsCache:c,responsesCache:u}){async function y(c,u,y){const v=[],_=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,u),b=function(e,t,r){const i={Accept:"application/json",...e,...t,...r},n={};return Object.keys(i).forEac
2h((e=>{const t=i[e];n[e.toLowerCase()]=t})),n}(r,c.headers,u.headers),x="GET"===c.method?{...c.data,...u.data}:{},w={...n,...c.queryParameters,...x};if(s.value&&(w["x-algolia-agent"]=s.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?w[e]=u.queryParameters[e].toString():w[e]=u.queryParameters[e];let A=0;const E=async(e,r)=>{const n=e.pop();if(void 0===n)throw new h(function(e){return e.map((e=>g(e)))}(v));const s={...o,...u.timeouts},x={data:_,headers:b,method:c.method,url:m(n,c.path,w),connectTimeout:r(A,s.connect),responseTimeout:r(A,y?s.read:s.write)},S=t=>{const r={request:x,response:t,host:n,triesLeft:e.length};return v.push(r),r},T=await a.send(x);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(T)){const s=S(T);return T.isTimedOut&&A++,i.info("Retryable failure",g(s)),await t.set(n,l(n,T.isTimedOut?"timed out":"down")),E(e,r)}if(function({status:e}){return 2==~~(e/100)}(T))return function(e){try{return JSON.parse(e.content)}catch(t){throw new p(t.message,e)}}(T);throw S(T),function({content:e,status:t},r){try{const i=JSON.parse(e);return"error"in i?new f(i.message,t,i.error,r):new d(i.message,t,r)}catch{}return new d(e,t,r)}(T,v)},S=e.filter((e=>"readWrite"===e.accept||(y?"read"===e.accept:"write"===e.accept))),T=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(l(e))))))),i=r.filter((e=>e.isUp())),n=r.filter((e=>e.isTimedOut())),s=[...i,...n];return{hosts:s.length>0?s:e,getTimeout:(e,t)=>(0===n.length&&0===e?1:n.length+3+e)*t}}(S);return E([...T.hosts].reverse(),T.getTimeout)}return{hostsCache:t,requester:a,timeouts:o,logger:i,algoliaAgent:s,baseHeaders:r,baseQueryParameters:n,hosts:e,request:function(e,t={}){const i=()=>y(e,t,s),s=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return i();const o={request:e,requestOptions:t,transporter:{queryParameters:n,headers:r}};return u.get(o,(()=>c.get(o,(()=>c.set(o,i()).then((e=>Promise.all([c.delete(o),e])),(e=>Promise.all([c.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>u.set(o,e)})},requestsCache:c,responsesCache:u}}if("searchresults/searchresults"==r.j)var v=r(5375);var _="5.49.0";function b(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const i=Math.floor(Math.random()*(r+1)),n=e[r];t[r]=e[i],t[i]=n}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function x(e,t,r){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!t||"string"!=typeof t)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:i,...n}){const s=function(e,t,r="WithinHeaders"){const i={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?i:{},queryParameters:()=>"WithinQueryParameters"===r?i:{}}}(e,t,r),a=y({hosts:b(e),...n,algoliaAgent:o({algoliaAgents:i,client:"Lite",version:_}),baseHeaders:{"content-type":"text/plain",...s.headers(),...n.baseHeaders},baseQueryParameters:{...s.queryParameters(),...n.baseQueryParameters}});return{transporter:a,appId:e,apiKey:t,clearCache:()=>Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((()=>{})),get _ua(){return a.algoliaAgent.value},addAlgoliaAgent(e,t){a.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?a.baseQueryParameters["x-algolia-api-key"]=e:a.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:r},i){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const n={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return a.request(n,i)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return a.request(r,t)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return a.request(r,t)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>
2Promise.resolve()},requester:(0,v.D)(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:n({caches:[i({key:`${_}-${e}`}),s()]}),...r})}},69227:(e,t,r)=>{r.d(t,{U:()=>P,y:()=>M});var i=r(15381),n=r(31635),s=r(27291),o=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,i=e._value;if(t)throw r;return this._throwIfClosed(),i},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(s.B),a=r(59099),l=r(16126),c=r(93776),u=r(1005),h=r(65204),d=r(17108),p=r(16645),f=r(53265),m=r(66938),g=r(39136),y=r(11437),v=r(19123),_=r(82920),b=r(91581),x=r(2928),w=r(93982),A=r(70775),E=r(88599);const{assign:S,hasOwnProperty:T}=Object,C={loading:!0,networkStatus:E.p.loading,data:void 0,dataState:"empty",partial:!0},I={loading:!1,networkStatus:E.p.ready,data:void 0,dataState:"empty",partial:!0};class P{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:s=("standby"===n?i:n)}=t;t[f._K]&&((0,A.V1)("standby"===n,80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:s,fetchPolicy:n,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const o=(0,m.V)(this.query);this.queryName=o&&o.name&&o.name.value}initializeObservablesQueue(){this.subject=new o({query:this.query,variables:this.variables,result:C,meta:{}});const e=this.subject.pipe((0,a.M)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout((()=>this.updatePolling())))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),(0,g.x)((({query:e,variables:t,result:r,meta:n},s)=>{const{shouldEmit:o}=n;if(r===C&&(s.previous=void 0,s.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===o)return;if(1===o)return c();const{previous:a,previousVariables:l}=s;if(a){const n=this.queryManager.getDocumentInfo(e),s=this.queryManager.dataMasking,o=s?n.nonReactiveQuery:e;if((s||n.hasNonreactiveDirective?(0,y.a)(o,a,r,t):(0,i.L)(a,r))&&(0,i.L)(l,t))return}if(3!==o||this.options.notifyOnNetworkStatusChange&&!(0,i.L)(a,r))return c();function c(){return s.previous=r,s.previousVariables=t,r}}),(()=>({}))));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new s.B,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;!this.queryManager.prioritizeCacheValues||"network-only"!==t&&"cache-and-network"!==t||(t="cache-first");const r=()=>{const e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?E.p.ready:E.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:E.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:E.p.loading};case"standby":return I;default:return C}}resubscribeCache(){const{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,s=!k({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||s)&&this.unsubscribeFromCache?.(),n||!s)return;const o={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{const t=this.queryManager.getDocumentInfo(r);
2if((t.hasClientExports||t.hasForcedResolvers)&&(o.lastDiff=void 0),o.lastOwnDiff===e)return;const{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==C&&n!==I)&&((0,i.L)(n.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(o);this.unsubscribeFromCache=Object.assign((()=>{this.unsubscribeFromCache=void 0,a()}),{query:r,variables:e})}stableLastResult;getCurrentResult(){const{result:e}=this.subject.getValue();let t=e.networkStatus===E.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===C&&(t=this.getInitialResult()),(0,i.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){const{fetchPolicy:t}=this.options,r={pollInterval:0};if(r.fetchPolicy="no-cache"===t?"no-cache":"network-only",p.g&&e&&T.call(e,"variables")){const t=(0,v.A)(this.query),r=t.variableDefinitions;r&&r.some((e=>"variables"===e.variable.name.value))||p.g&&A.V1.warn(81,e,t.name?.value||t)}return e&&!(0,i.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:E.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:s}){(0,A.V1)("cache-only"!==this.options.fetchPolicy,82,(0,_.n)(this.query,"(anonymous)"));const o={...(0,b.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};o.query=this.transformDocument(o.query),this.lastQuery=e?this.transformDocument(this.options.query):o.query;let a=!1;const c="no-cache"!==this.options.fetchPolicy;c||(0,A.V1)(s,83);const{finalize:u,pushNotification:p}=this.pushOperation(E.p.fetchMore);p({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:m,operator:g}=O(),{observable:y}=this.queryManager.fetchObservableWithInfo(o,{networkStatus:E.p.fetchMore,exposeExtensions:!0}),v=y.pipe(g,(0,l.p)((e=>"N"===e.kind&&"network"===e.source))).subscribe({next:e=>{a=!1;const t=e.value,r=t[f.X];if((0,h.D)(e.value.networkStatus)&&u(),c){const e=this.getCacheDiff();this.cache.batch({update:e=>{s?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},(e=>s(e,{fetchMoreResult:t.data,variables:o.variables}))):e.writeQuery({query:o.query,variables:o.variables,data:t.data,extensions:r})},onWatchUpdated:(r,n)=>{if(r.watcher===this&&!(0,i.L)(n.result,e.result)){a=!0;const e=this.getCurrentResult();(0,d.b)(t.networkStatus)&&p({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===E.p.error?E.p.ready:t.networkStatus,loading:!1,data:n.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{const e=this.getCurrentResult(),r=s(e.data,{fetchMoreResult:t.data,variables:o.variables});p({kind:"N",value:{...e,networkStatus:E.p.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,x.X)(m.then((e=>(0,w.$)(this.maskResult(e)))).finally((()=>{if(v.unsubscribe(),u(),c&&!a){const e=this.getCurrentResult();"streaming"===e.dataState?p({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:E.p.ready}}):p({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}})))}subscribeToMore(e){const t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{const{updateQuery:r,onError:i}=e,{error:n}=t;n?i?i(n):A.V1.error(84,n):r&&this.updateQuery(((e,i)=>r(e,{subscriptionData:t,...i})))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){const t=(0,b.o)(this.options,e||{});S(this.options,t),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),(0,i.L)(this.variables,e)?(0,w.$)(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:E.p.setVariables}):(0,w.$)(this.getCurrentResult()))}updateQuery(e){const{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(this.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){const{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):t.fetchPolicy="variables-changed"===e?i:t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){const n=this.options.fetchPolicy;e.context??={};let s=!1;let{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:e=>new c.c((r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(p.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:h,variables:d,meta:{shouldEmit:3,fetchPolicy:n}}))}})),observableQuery:this});const{query:h,variables:d}=this,p={abort:()=>{m.unsubscribe()},query:h,variables:d};this.activeOperations.add(p);let f=t==E.p.refetch||t==E.p.setVariables;o=o.pipe(i,(0,u.u)());const m=o.pipe((0,a.M)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?p.override=t:delete p.override},finalize:()=>this.activeOperations.delete(p)})).subscribe({next:e=>{const t={};f&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(f=!1,t.shouldEmit=1),this.input.next({...e,query:h,variables:d,meta:t})}});return{fromLink:l,subscription:m,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,i=()=>{const{options:e}=this;
2return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(i())return p.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(p.g&&A.V1.warn(85,(0,_.n)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),void this.cancelPolling();if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;const n=()=>{if(i())return this.cancelPolling();this.pollingInfo&&((0,d.b)(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:E.p.poll}).then(s,s))},s=()=>{const e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);const n=r===E.p.refetch||r===E.p.poll,s=this.variables,o=this.options.fetchPolicy,a=(0,b.o)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;const l=n?a:S(this.options,a),c=this.transformDocument(l.query);this.lastQuery=c,e&&"variables"in e&&(l.variables=this.getVariablesWithDefaults(e.variables)),n||(this.updatePolling(),!e||!e.variables||(0,i.L)(e.variables,s)||"standby"===l.fetchPolicy||l.fetchPolicy!==o&&"function"!=typeof l.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",l),void 0===r&&(r=E.p.setVariables)));const u=this.networkStatus;r||(r=E.p.loading,u!==E.p.loading&&e?.variables&&!(0,i.L)(e.variables,s)&&(r=E.p.setVariables),"standby"===l.fetchPolicy&&(r=E.p.ready)),"standby"===l.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();const{promise:h,operator:d}=O("standby"===l.fetchPolicy?{data:void 0}:void 0),{subscription:p,observable:f,fromLink:m}=this.fetch(l,r,c,d);n||!m&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=p);const g=Object.assign((0,x.X)(h.then((e=>(0,w.$)(this.maskResult(e)))).finally((()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()}))),{retain:()=>{const e=f.subscribe({}),t=()=>e.unsubscribe();return h.then(t,t),g}});return g}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach((e=>e.unsubscribe())),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((()=>this.notify(!0)),0)))}notify(e=!1){if(!e){const e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}const{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){const e=this.getCacheDiff();(0,i.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:E.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1;const{query:r,variables:i}=this,n=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,n()},query:r,variables:i};return this.activeOperations.add(s),{finalize:n,pushNotification:(e,n)=>{t||this.input.next({...e,query:r,variables:i,meta:{...n}})}}}calculateNetworkStatus(e){if(e===E.p.streaming)return e;const t=Array.from(this.activeOperations.values()).reverse().find((e=>k(e,this)&&void 0!==e.override));return t?.override??e}abortActiveOperations(){this.activeOperations.forEach((e=>e.abort()))}reset(){const e="cache-only"===this.options.fetchPolicy;this.setResult(e?I:C,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=(0,g.x)((e=>{const{query:t,variables:r,meta:i}=e;if("setResult"===e.source)return{query:t,variables:r,result:e.value,meta:i};if("C"===e.kind||!k(e,this))return;let n;const s=this.subject.getValue();if("cache"===e.source){if(n=e.value,n.networkStatus===E.p.ready&&n.partial&&(!this.options.returnPartialData||s.result.networkStatus===E.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),n="E"===e.kind?{...k(s,e)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:E.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===n.dataState&&(n.dataState="complete"),n.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){const t=k(s,e)?s.result:this.getInitialResult(i.fetchPolicy),{resetError:r}=e.value,o=r?void 0:t.error,a=o?E.p.error:E.p.ready;n={...t,error:o,networkStatus:a}}return(0,A.V1)(n),n.error||delete n.error,n.networkStatus=this.calculateNetworkStatus(n.networkStatus),n.loading=(0,d.b)(n.networkStatus),n=this.maskResult(n),{query:t,variables:r,result:n,meta:i}}));reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function M(e){p.g&&e&&p.g&&A.V1.debug(86,e)}function k(e,t){return!!(e&&t&&e.query===t.query&&(0,i.L)(e.variables,t.variables))}function O(e){let t,r,i=e;return{promise:new Promise(((e,i)=>{t=e,r=i})),operator:(0,a.M)({next(e){if("E"===e.kind)return r(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(i=e.value)},finalize:()=>{if(i)t(i);
2else{const e="The operation was aborted.",t="AbortError";r("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(new Error(e),{name:t}))}}})}}},69391:(e,t,r)=>{r.d(t,{X:()=>i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},69467:(e,t,r)=>{r.d(t,{m:()=>n});const{toString:i}=Object.prototype;function n(e){return s(e)}function s(e,t){switch(i.call(e)){case"[object Array]":{if((t=t||new Map).has(e))return t.get(e);const r=e.slice(0);return t.set(e,r),r.forEach((function(e,i){r[i]=s(e,t)})),r}case"[object Object]":{if((t=t||new Map).has(e))return t.get(e);const r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((i=>{r[i]=s(e[i],t)})),r}default:return e}}},69502:(e,t,r)=>{r.d(t,{A:()=>f});var i=r(74103),n=r(74243);if("contactslistv2/contactslistv2"==r.j)var s=r(60513);if("contactslistv2/contactslistv2"==r.j)var o=r(31810);if("contactslistv2/contactslistv2"==r.j)var a=r(47109);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=(0,n.V)({name:"configure",connector:!0});function p(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce((function(e,t){return u(u({},e),{},h({},t,void 0))}),{}))}const f="contactslistv2/contactslistv2"==r.j?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.l;return function(r){if(!r||!(0,o.Q)(r.searchParameters))throw new Error(d("The `searchParameters` option expects an object."));var n={};return{$$type:"ais.configure",init:function(t){var r=t.instantSearchInstance;e(u(u({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(u(u({},this.getWidgetRenderState(t)),{},{instantSearchInstance:r}),!1)},dispose:function(e){var i=e.state;return t(),p(i,r)},getRenderState:function(e,t){var r,n=this.getWidgetRenderState(t);return u(u({},e),{},{configure:u(u({},n),{},{widgetParams:u(u({},n.widgetParams),{},{searchParameters:(0,a.p)(new i.SearchParameters(null===(r=e.configure)||void 0===r?void 0:r.widgetParams.searchParameters),new i.SearchParameters(n.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(e){var t=e.helper;return n.refine||(n.refine=function(e){return function(t){var n=p(e.state,r),s=(0,a.p)(n,new i.SearchParameters(t));r.searchParameters=t,e.setState(s).search()}}(t)),{refine:n.refine,widgetParams:r}},getWidgetSearchParameters:function(e,t){var n=t.uiState;return(0,a.p)(e,new i.SearchParameters(u(u({}
2,n.configure),r.searchParameters)))},getWidgetUiState:function(e){return u(u({},e),{},{configure:u(u({},e.configure),r.searchParameters)})}}}}:null},69734:(e,t,r)=>{r.d(t,{s:()=>i});var i=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,i=t.modifierName,n=r?"-".concat(r):"",s=i?"--".concat(i):"";return"".concat("ais","-").concat(e).concat(n).concat(s)}}},69850:(e,t,r)=>{if(r.d(t,{j:()=>n}),"vendors"!=r.j)var i=r(92908);function n(e){return(0,i.N)((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}},69862:(e,t,r)=>{if(r.d(t,{Z:()=>l}),"vendors"!=r.j)var i=r(81160);if("vendors"!=r.j)var n=r(15964);if("vendors"!=r.j)var s=r(92908);if("vendors"!=r.j)var o=r(74462);if("vendors"!=r.j)var a=r(61209);function l(e,t,r){return void 0===r&&(r=1/0),(0,a.T)(t)?l((function(r,s){return(0,i.T)((function(e,i){return t(r,e,s,i)}))((0,n.Tg)(e(r,s)))}),r):("number"==typeof t&&(r=t),(0,s.N)((function(t,i){return(0,o.h)(t,i,e,r)})))}},70111:(e,t,r)=>{r.d(t,{m:()=>o});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(70775);if("searchresults/searchresults"==r.j)var s=r(6741);function o(e){const t=i.useContext((0,s.l)()),r=e||t.client;return(0,n.V1)(!!r,28),r}},70508:(e,t,r)=>{var i;r.d(t,{Y:()=>s});var n=r(96540),s=(i||(i=r.t(n,2))).use},70665:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(17275);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(74062);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var s=r(73119);function o(e){return i.A.isPlainObject(e)||i.A.isArray(e)}function a(e){return i.A.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,r){return e?e.concat(t).map((function(e,t){return e=a(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const c=i.A.toFlatObject(i.A,{},null,(function(e){return/^is[A-Z]/.test(e)}));const u=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?function(e,t,r){if(!i.A.isObject(e))throw new TypeError("target must be an object");t=t||new(s.A||FormData);const u=(r=i.A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!i.A.isUndefined(t[e])}))).metaTokens,h=r.visitor||g,d=r.dots,p=r.indexes,f=(r.Blob||"undefined"!=typeof Blob&&Blob)&&i.A.isSpecCompliantForm(t);if(!i.A.isFunction(h))throw new TypeError("visitor must be a function");function m(e){if(null===e)return"";if(i.A.isDate(e))return e.toISOString();if(!f&&i.A.isBlob(e))throw new n.A("Blob is not supported. Use a Buffer instead.");return i.A.isArrayBuffer(e)||i.A.isTypedArray(e)?f&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function g(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(i.A.endsWith(r,"{}"))r=u?r:r.slice(0,-2),e=JSON.stringify(e);else if(i.A.isArray(e)&&function(e){return i.A.isArray(e)&&!e.some(o)}(e)||(i.A.isFileList(e)||i.A.endsWith(r,"[]"))&&(s=i.A.toArray(e)))return r=a(r),s.forEach((function(e,n){!i.A.isUndefined(e)&&null!==e&&t.append(!0===p?l([r],n,d):null===p?r:r+"[]",m(e))})),!1;return!!o(e)||(t.append(l(n,r,d),m(e)),!1)}const y=[],v=Object.assign(c,{defaultVisitor:g,convertValue:m,isVisitable:o});if(!i.A.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!i.A.isUndefined(r)){if(-1!==y.indexOf(r))throw Error("Circular reference detected in "+n.join("."));y.push(r),i.A.forEach(r,(function(r,s){!0===(!(i.A.isUndefined(r)||null===r)&&h.call(t,r,i.A.isString(s)?s.trim():s,n,v))&&e(r,n?n.concat(s):[s])})),y.pop()}}(e),t}:null},70685:(e,t,r)=>{r.d(t,{D_:()=>n});const i={};function n(e,t){i[e]=t}},70723:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(74047);const n=FinalizationRegistry;var s=r(68481);function o(e){return(0,s.Y)("createQueryPreloader",a,e)(e)}const a=e=>Object.assign((function(t,r={}){const n=new i.Hp(e.watchQuery({...r,query:t,notifyOnNetworkStatusChange:!1}),{autoDisposeTimeoutMs:e.defaultOptions.react?.suspense?.autoDisposeTimeoutMs}),s=(0,i.Qh)(n);return function(e,t){const{softDispose:r,delayedSoftDispose:i}=function(e){const t=e.softRetain(),r=e.promise;return{softDispose:t,delayedSoftDispose:()=>r.finally(t).catch((()=>{}))}}(t);l.register(e,i,t),t.retain=function(e,t){return function(...r){l.unregister(this);const i=e.apply(this,r);return t(),i}}(t.retain,r)}(s,n),s}
2),{toPromise:e=>((0,i.Ru)(e),(0,i.Ve)(e).then((()=>e)))});const l=new n((e=>e()))},70775:(e,t,r)=>{r.d(t,{Q9:()=>p,V1:()=>h,vA:()=>f});var i=r(16645),n=r(13912),s=r(10435),o=r(23326);const a="Invariant Violation";class l extends Error{constructor(e=a){super(e),this.name=a,Object.setPrototypeOf(this,l.prototype)}}const c=["debug","log","warn","error","silent"];let u=c.indexOf(i.g?"log":"silent");function h(e,...t){if(!e)throw f(...t)}function d(e){return function(t,...r){if(c.indexOf(e)>=u){const i=console[e]||console.log;if("number"==typeof t){const e=t;(t=y(e))||(t=v(e,r),r=[])}i(t,...r)}}}function p(e){const t=c[u];return u=Math.max(0,c.indexOf(e)),t}function f(e,...t){return new l(y(e,t)||v(e,t))}h.debug=d("debug"),h.log=d("log"),h.warn=d("warn"),h.error=d("error");const m=Symbol.for("ApolloErrorMessageHandler_"+s.r);function g(e){if("string"==typeof e)return e;try{return(0,o.p)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function y(e,t=[]){if(e)return n.A[m]&&n.A[m](e,t.map(g))}function v(e,t=[]){if(e)return"string"==typeof e?t.reduce(((e,t)=>e.replace(/%[sdfo]/,g(t))),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:s.r,message:e,args:t.map(g)}))}`}},71181:(e,t,r)=>{function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}r.d(t,{V:()=>i})},71381:(e,t,r)=>{r.d(t,{k:()=>i});const i="contactslistv2/contactslistv2"==r.j?JSON:null},72136:(e,t,r)=>{r.d(t,{A:()=>n});var i="object"==typeof global&&global&&global.Object===Object&&global;const n="app"==r.j?i:null},72641:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i&&!1!==t(e[r],r,e););return e}:null},72755:(e,t,r)=>{r.d(t,{$7:()=>E,D_:()=>y,M2:()=>b});var i=r(15381),n=r(32453),s=r(6839),o=r(67194),a=r(16645),l=r(62722),c=r(44783),u=r(59313),h=r(33245),d=r(70775),p=r(73194);const f={},m=()=>f,g={};class y{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),p.$3.call(this.data,e)){const r=this.data[e];if(r&&p.$3.call(r,t))return r[t]}return"__typename"===t&&p.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof x?this.parent.get(e,t):void 0}lookup(e,t){return t&&this.group.depend(e,"__exists"),p.$3.call(this.data,e)?this.data[e]:this instanceof x?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;(0,o.A)(e)&&(e=e.__ref),(0,o.A)(t)&&(t=t.__ref);const i="string"==typeof e?this.lookup(r=e):e,n="string"==typeof t?this.lookup(r=t):t;if(!n)return;(0,d.V1)("string"==typeof r,99);const s=new l.Z({reconciler:A}).merge(i,n);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){const e={};i||(e.__exists=1),Object.keys(n).forEach((t=>{if(!i||i[t]!==s[t]){e[t]=1;const r=(0,p.iJ)(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof x||delete s[t]}})),!e.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete e.__typename,Object.keys(e).forEach((e=>this.group.dirty(r,e)))}}modify(e,t,r){const i=this.lookup(e);if(i){const n={};let s=!1,l=!0;const h={DELETE:f,INVALIDATE:g,isReference:o.A,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,c.W)(e)}:t,{store:this})};
2if(Object.keys(i).forEach((c=>{const y=(0,p.iJ)(c);let v=i[c];if(void 0===v)return;const _="function"==typeof t?t:t[c]||(r?void 0:t[y]);if(_){let t=_===m?f:_((0,u.G)(v),{...h,fieldName:y,storeFieldName:c,storage:this.getStorage(e,c)});if(t===g)this.group.dirty(e,c);else if(t===f&&(t=void 0),t!==v&&(n[c]=t,s=!0,v=t,a.g)){const e=e=>{if(void 0===this.lookup(e.__ref))return a.g&&d.V1.warn(100,e),!0};if((0,o.A)(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(const n of t){if((0,o.A)(n)){if(i=!0,e(n))break}else if("object"==typeof n&&n){const[e]=this.policies.identify(n);e&&(r=n)}if(i&&void 0!==r){a.g&&d.V1.warn(101,r);break}}}}}void 0!==v&&(l=!1)})),s)return this.merge(e,n),l&&(this instanceof x?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){const i=this.lookup(e);if(i){const n=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:n,fieldName:t,args:r}):t;return this.modify(e,s?{[s]:m}:m,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(p.$3.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof x&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){const e=this.toObject(),t=[];return this.getRootIdSet().forEach((e=>{p.$3.call(this.policies.rootTypenamesById,e)||t.push(e)})),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach((t=>{e&&p.$3.call(e,t)||this.delete(t)})),e){const{__META:t,...r}=e;Object.keys(r).forEach((e=>{this.merge(e,r[e])})),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof x?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),t=this.toObject();e.forEach((r=>{p.$3.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])}));const r=Object.keys(t);if(r.length){let e=this;for(;e instanceof x;)e=e.parent;r.forEach((t=>e.delete(t)))}return r}refs={};findChildRefIds(e){if(!p.$3.call(this.refs,e)){const t=this.refs[e]={},r=this.data[e];if(!r)return t;const i=new Set([r]);i.forEach((e=>{(0,o.A)(e)&&(t[e.__ref]=!0),(0,h.U)(e)&&Object.keys(e).forEach((t=>{const r=e[t];(0,h.U)(r)&&i.add(r)}))}))}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,u.G)((0,o.A)(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>(0,o.A)(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return(0,c.W)(e);if((0,o.A)(e))return e;const[r]=this.policies.identify(e);if(r){const i=(0,c.W)(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class v{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,s.yN)():null,this.keyMaker=new n.b}depend(e,t){if(this.d){this.d(_(e,t));const r=(0,p.iJ)(t);r!==t&&this.d(_(e,r)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(_(e,t),"__exists"===t?"forget":"setDirty")}}function _(e,t){return t+"#"+e}function b(e,t){E(e)&&e.group.depend(t,"__exists")}y.Root=class extends y{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new v(t)),r&&this.replace(r)}stump=new w(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new n.b;getStorage(){return this.storageTrie.lookupArray(arguments)}};class x extends y{id;parent;replay;group;
2constructor(e,t,r,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=r,this.group=i,r(this)}addLayer(e,t){return new x(e,this,t,this.group)}removeLayer(e){const t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((e=>{const r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach((t=>{(0,i.L)(r[t],n[t])||this.group.dirty(e,t)})):(this.group.dirty(e,"__exists"),Object.keys(n).forEach((t=>{this.group.dirty(e,t)}))):this.delete(e)})),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){const t=this.parent.findChildRefIds(e);return p.$3.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class w extends x{constructor(e){super("EntityStore.Stump",e,(()=>{}),new v(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function A(e,t,r){const n=e[r],s=t[r];return(0,i.L)(n,s)?n:s}function E(e){return!(!e||!e.supportsResultCaching)}},73119:(e,t,r)=>{r.d(t,{A:()=>i});const i=null},73194:(e,t,r)=>{if(r.d(t,{$3:()=>p,I6:()=>g,T9:()=>b,Ui:()=>y,d1:()=>x,gk:()=>v,iJ:()=>_,lq:()=>A,mv:()=>w,or:()=>f}),"vendors"!=r.j)var i=r(67194);if("vendors"!=r.j)var n=r(91581);if("vendors"!=r.j)var s=r(33245);if("vendors"!=r.j)var o=r(42189);if("vendors"!=r.j)var a=r(38016);if("vendors"!=r.j)var l=r(63577);if("vendors"!=r.j)var c=r(61927);if("vendors"!=r.j)var u=r(62722);
2if("vendors"!=r.j)var h=r(15590);if("vendors"!=r.j)var d=r(78812);const{hasOwnProperty:p}=Object.prototype;function f({__typename:e,id:t,_id:r},i){if("string"==typeof e&&(i&&(i.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}const m={dataIdFromObject:f,resultCaching:!0};function g(e){return(0,n.o)(m,e)}function y(e,t){return(0,i.A)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}const v=/^[_a-z][_0-9a-z]*/i;function _(e){const t=e.match(v);return t?t[0]:e}function b(e,t,r){return!!(0,s.U)(t)&&((0,o.c)(t)?t.every((t=>b(e,t,r))):e.selections.every((e=>{if((0,a.d)(e)&&(0,l.M)(e,r)){const i=(0,c.u)(e);return p.call(t,i)&&(!e.selectionSet||b(e.selectionSet,t[i],r))}return!0})))}function x(e){return(0,s.U)(e)&&!(0,i.A)(e)&&!(0,o.c)(e)}function w(){return new u.Z}function A(e,t){const r=(0,h.J)((0,d.z)(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}},73637:(e,t,r)=>{r.d(t,{G:()=>l});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(91104);if("contactslistv2/contactslistv2"==r.j)var s=r(695);if("contactslistv2/contactslistv2"==r.j)var o=r(237);var a="contactslistv2/contactslistv2"==r.j?["children"]:null;function l(e){var t=e.children,r=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,a),l=(0,o.X)(r);return l.started?i.createElement(s.t.Provider,{value:l},i.createElement(n.m.Provider,{value:l.mainIndex},t,i.createElement(c,{search:l}))):null}function c(e){var t=e.search;return(0,i.useEffect)((function(){t._resetScheduleSearch&&t._resetScheduleSearch()}),[t]),null}},73716:(e,t,r)=>{if(r.d(t,{wE:()=>o}),"vendors"!=r.j)var i=r(24534);if("vendors"!=r.j)var n=r(19735);if("vendors"!=r.j)var s=r(40390);function o(e){return(0,s.VF)(a("",null,null,null,[""],e=(0,s.c4)(e),0,[0],e))}function a(e,t,r,i,o,h,d,p,f){for(var m=0,g=0,y=d,v=0,_=0,b=0,x=1,w=1,A=1,E=0,S="",T=o,C=h,I=i,P=S;w;)switch(b=E,E=(0,s.K2)()){case 40:if(108!=b&&58==(0,n.wN)(P,y-1)){-1!=(0,n.K5)(P+=(0,n.HC)((0,s.Tb)(E),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:P+=(0,s.Tb)(E);break;case 9:case 10:case 13:case 32:P+=(0,s.mw)(b);break;case 92:P+=(0,s.Nc)((0,s.OW)()-1,7);continue;case 47:switch((0,s.se)()){case 42:case 47:(0,n.BC)(c((0,s.nf)((0,s.K2)(),(0,s.OW)()),t,r),f);break;default:P+="/"}break;case 123*x:p[m++]=(0,n.b2)(P)*A;case 125*x:case 59:case 0:switch(E){case 0:case 125:w=0;case 59+g:-1==A&&(P=(0,n.HC)(P,/\f/g,"")),_>0&&(0,n.b2)(P)-y&&(0,n.BC)(_>32?u(P+";",i,r,y-1):u((0,n.HC)(P," ","")+";",i,r,y-2),f);break;case 59:P+=";";default:if((0,n.BC)(I=l(P,t,r,m,g,o,p,S,T=[],C=[],y),h),123===E)if(0===g)a(P,t,I,I,T,h,y,p,C);else switch(99===v&&110===(0,n.wN)(P,3)?100:v){case 100:case 108:case 109:case 115:a(e,I,I,i&&(0,n.BC)(l(e,I,I,0,0,o,p,S,o,T=[],y),C),o,C,y,p,i?T:C);break;default:a(P,I,I,I,[""],C,0,p,C)}}m=g=_=0,x=A=1,S=P="",y=d;break;case 58:y=1+(0,n.b2)(P),_=b;default:if(x<1)if(123==E)--x;else if(125==E&&0==x++&&125==(0,s.YL)())continue;switch(P+=(0,n.HT)(E),E*x){case 38:A=g>0?1:(P+="\f",-1);break;case 44:p[m++]=((0,n.b2)(P)-1)*A,A=1;break;case 64:45===(0,s.se)()&&(P+=(0,s.Tb)((0,s.K2)())),v=(0,s.se)(),g=y=(0,n.b2)(S=P+=(0,s.Cv)((0,s.OW)())),E++;break;case 45:45===b&&2==(0,n.b2)(P)&&(x=0)}}return h}function l(e,t,r,o,a,l,c,u,h,d,p){for(var f=a-1,m=0===a?l:[""],g=(0,n.FK)(m),y=0,v=0,_=0;y<o;++y)for(var b=0,x=(0,n.c1)(e,f+1,f=(0,n.tn)(v=c[y])),w=e;b<g;++b)(w=(0,n.Bq)(v>0?m[b]+" "+x:(0,n.HC)(x,/&\f/g,m[b])))&&(h[_++]=w);return(0,s.rH)(e,t,r,0===a?i.XZ:u,h,d,p)}function c(e,t,r){return(0,s.rH)(e,t,r,i.YK,(0,n.HT)((0,s.Tp)()),(0,n.c1)(e,2,-2),0)}function u(e,t,r,o){return(0,s.rH)(e,t,r,i.LU,(0,n.c1)(e,0,o),(0,n.c1)(e,o+1,-1),o)}},73726:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e){return"object"===i(e)&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function s(e,t){var r=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return r.indexOf(e)<0}
vendor: 7,016 bytes, line 2
2)).forEach((function(r){void 0===e[r]?e[r]=t[r]:n(t[r])&&n(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:s(e[r],t[r]):e[r]=t[r]}))}function o(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function a(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function l(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function c(e){void 0===e&&(e="");var t=e.split(" ").map((function(e){return e.trim()})).filter((function(e){return!!e})),r=[];return t.forEach((function(e){r.indexOf(e)<0&&r.push(e)})),r.join(" ")}r.d(t,{Cv:()=>c,Gv:()=>n,IB:()=>l,Oj:()=>a,X$:()=>s,qi:()=>o})},73862:(e,t,r)=>{r.d(t,{R:()=>f});var i=r(96540),n=r(57233),s=r(73726),o=r(75510);function a(e,t){var r=t.slidesPerView;if(t.breakpoints){var i=n.A.prototype.getBreakpoint(t.breakpoints),s=i in t.breakpoints?t.breakpoints[i]:void 0;s&&s.slidesPerView&&(r=s.slidesPerView)}var o=Math.ceil(parseFloat(t.loopedSlides||r,10));return(o+=t.loopAdditionalSlides)>e.length&&(o=e.length),o}function l(e){var t=[];return i.Children.toArray(e).forEach((function(e){e.type&&"SwiperSlide"===e.type.displayName?t.push(e):e.props&&e.props.children&&l(e.props.children).forEach((function(e){return t.push(e)}))})),t}function c(e){var t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return i.Children.toArray(e).forEach((function(e){if(e.type&&"SwiperSlide"===e.type.displayName)t.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){var i=l(e.props.children);i.length>0?i.forEach((function(e){return t.push(e)})):r["container-end"].push(e)}else r["container-end"].push(e)})),{slides:t,slots:r}}function u(e){var t,r,i,n,o,a=e.swiper,l=e.slides,c=e.passedParams,u=e.changedParams,h=e.nextEl,d=e.prevEl,p=e.scrollbarEl,f=e.paginationEl,m=u.filter((function(e){return"children"!==e&&"direction"!==e})),g=a.params,y=a.pagination,v=a.navigation,_=a.scrollbar,b=a.virtual,x=a.thumbs;u.includes("thumbs")&&c.thumbs&&c.thumbs.swiper&&g.thumbs&&!g.thumbs.swiper&&(t=!0),u.includes("controller")&&c.controller&&c.controller.control&&g.controller&&!g.controller.control&&(r=!0),u.includes("pagination")&&c.pagination&&(c.pagination.el||f)&&(g.pagination||!1===g.pagination)&&y&&!y.el&&(i=!0),u.includes("scrollbar")&&c.scrollbar&&(c.scrollbar.el||p)&&(g.scrollbar||!1===g.scrollbar)&&_&&!_.el&&(n=!0),u.includes("navigation")&&c.navigation&&(c.navigation.prevEl||d)&&(c.navigation.nextEl||h)&&(g.navigation||!1===g.navigation)&&v&&!v.prevEl&&!v.nextEl&&(o=!0);(m.forEach((function(e){if((0,s.Gv)(g[e])&&(0,s.Gv)(c[e]))(0,s.X$)(g[e],c[e]);else{var t=c[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?g[e]=c[e]:!1===t&&a[r=e]&&(a[r].destroy(),"navigation"===r?(g[r].prevEl=void 0,g[r].nextEl=void 0,a[r].prevEl=void 0,a[r].nextEl=void 0):(g[r].el=void 0,a[r].el=void 0))}var r})),u.includes("children")&&b&&g.virtual.enabled?(b.slides=l,b.update(!0)):u.includes("children")&&a.lazy&&a.params.lazy.enabled&&a.lazy.load(),t)&&(x.init()&&x.update(!0));r&&(a.controller.control=g.controller.control),i&&(f&&(g.pagination.el=f),y.init(),y.render(),y.update()),n&&(p&&(g.scrollbar.el=p),_.init(),_.updateSize(),_.setTranslate()),o&&(h&&(g.navigation.nextEl=h),d&&(g.navigation.prevEl=d),v.init(),v.update()),u.includes("allowSlideNext")&&(a.allowSlideNext=c.allowSlideNext),u.includes("allowSlidePrev")&&(a.allowSlidePrev=c.allowSlidePrev),u.includes("direction")&&a.changeDirection(c.direction,!1),a.update()}var h=r(93241),d=["className","tag","wrapperTag","children","onSwiper"];function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},p.apply(this,arguments)}var f=(0,i.forwardRef)((function(e,t){var r=void 0===e?{}:e,l=r.className,f=r.tag,m=void 0===f?"div":f,g=r.wrapperTag,y=void 0===g?"div":g,v=r.children,_=r.onSwiper,b=function(e,t){if(null==e)return{};var r,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(r,d),x=!1,w=(0,i.useState)("swiper-container"),A=w[0],E=w[1],S=(0,i.useState)(null),T=S[0],C=S[1],I=(0,i.useState)(!1),P=I[0],M=I[1],k=(0,i.useRef)(!1),O=(0,i.useRef)(null),R=(0,i.useRef)(null),D=(0,i.useRef)(null),L=(0,i.useRef)(null),B=(0,i.useRef)(null),z=(0,i.useRef)(null),j=(0,i.useRef)(null),F=(0,i.useRef)(null),N=function(e){void 0===e&&(e={});var t={on:{}},r={},i={};(0,s.X$)(t,n.A.defaults),(0,s.X$)(t,n.A.extendedDefaults),t._emitClasses=!0,t.init=!1;var a={},l=o.L.map((function(e){return e.replace(/_/,"")}));return Object.keys(e).forEach((function(n){l.indexOf(n)>=0?(0,s.Gv)(e[n])?(t[n]={},i[n]={},(0,s.X$)(t[n],e[n]),(0,s.X$)(i[n],e[n])):(t[n]=e[n],i[n]=e[n]):0===n.search(/on[A-Z]/)&&"function"==typeof e[n]?r[""+n[2].toLowerCase()+n.substr(3)]=e[n]:a[n]=e[n]})),["navigation","pagination","scrollbar"].forEach((function(e){!0===t[e]&&(t[e]={}),!1===t[e]&&delete t[e]})),{params:t,passedParams:i,rest:a,events:r}}(b),U=N.params,V=N.passedParams,G=N.rest,q=N.events,H=c(v),W=H.slides,Y=H.slots,Q=function(){M(!P)};if(Object.assign(U.on,{_containerClasses:function(e,t){E(t)}}),!O.current&&(Object.assign(U.on,q),x=!0,R.current=function(e){return new n.A(e)}(U),R.current.loopCreate=function(){},R.current.loopDestroy=function(){},U.loop&&(R.current.loopedSlides=a(W,U)),R.current.virtual&&R.current.params.virtual.enabled)){R.current.virtual.slides=W;var Z={cache:!1,renderExternal:C,renderExternalUpdate:!1};(0,s.X$)(R.current.params.virtual,Z),(0,s.X$)(R.current.originalParams.virtual,Z)}R.current&&R.current.on("_beforeBreakpoint",Q);return(0,i.useEffect)((function(){return function(){R.current&&R.current.off("_beforeBreakpoint",Q)}})),(0,i.useEffect)((function(){!k.current&&R.current&&(R.current.emitSlidesClasses(),k.current=!0)})),(0,h.E)((function(){if(t&&(t.current=O.current),O.current)return function(e,t){var r=e.el,i=e.nextEl,n=e.prevEl,o=e.paginationEl,a=e.scrollbarEl,l=e.swiper;(0,s.qi)(t)&&i&&n&&(l.params.navigation.nextEl=i,l.originalParams.navigation.nextEl=i,l.params.navigation.prevEl=n,l.originalParams.navigation.prevEl=n),(0,s.Oj)(t)&&o&&(l.params.pagination.el=o,l.originalParams.pagination.el=o),(0,s.IB)(t)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(r)}({el:O.current,nextEl:B.current,prevEl:z.current,paginationEl:j.current,scrollbarEl:F.current,swiper:R.current},U),_&&_(R.current),function(){R.current&&!R.current.destroyed&&R.current.destroy(!0,!1)}}),[]),(0,h.E)((function(){!x&&q&&R.current&&Object.keys(q).forEach((function(e){R.current.on(e,q[e])}));var e=function(e,t,r,i){var n=[];if(!t)return n;var a=function(e){n.indexOf(e)<0&&n.push(e)},l=i.map((function(e){return e.key})),c=r.map((function(e){return e.key}));return l.join("")!==c.join("")&&a("children"),i.length!==r.length&&a("children"),o.L.filter((function(e){return"_"===e[0]})).map((function(e){return e.replace(/_/,"")}
2)).forEach((function(r){if(r in e&&r in t)if((0,s.Gv)(e[r])&&(0,s.Gv)(t[r])){var i=Object.keys(e[r]),n=Object.keys(t[r]);i.length!==n.length?a(r):(i.forEach((function(i){e[r][i]!==t[r][i]&&a(r)})),n.forEach((function(i){e[r][i]!==t[r][i]&&a(r)})))}else e[r]!==t[r]&&a(r)})),n}(V,D.current,W,L.current);return D.current=V,L.current=W,e.length&&R.current&&!R.current.destroyed&&u({swiper:R.current,slides:W,passedParams:V,changedParams:e,nextEl:B.current,prevEl:z.current,scrollbarEl:F.current,paginationEl:j.current}),function(){q&&R.current&&Object.keys(q).forEach((function(e){R.current.off(e,q[e])}))}})),(0,h.E)((function(){var e;!(e=R.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}),[T]),i.createElement(m,p({ref:O,className:(0,s.Cv)(A+(l?" "+l:""))},G),Y["container-start"],(0,s.qi)(U)&&i.createElement(i.Fragment,null,i.createElement("div",{ref:z,className:"swiper-button-prev"}),i.createElement("div",{ref:B,className:"swiper-button-next"})),(0,s.IB)(U)&&i.createElement("div",{ref:F,className:"swiper-scrollbar"}),(0,s.Oj)(U)&&i.createElement("div",{ref:j,className:"swiper-pagination"}),i.createElement(y,{className:"swiper-wrapper"},Y["wrapper-start"],U.virtual?function(e,t,r){var n;if(!r)return null;var s=e.isHorizontal()?((n={})[e.rtlTranslate?"right":"left"]=r.offset+"px",n):{top:r.offset+"px"};return t.filter((function(e,t){return t>=r.from&&t<=r.to})).map((function(t){return i.cloneElement(t,{swiper:e,style:s})}))}(R.current,W,T):!U.loop||R.current&&R.current.destroyed?W.map((function(e){return i.cloneElement(e,{swiper:R.current})})):function(e,t,r){var n=t.map((function(t,r){return i.cloneElement(t,{swiper:e,"data-swiper-slide-index":r})}));function s(e,t,n){return i.cloneElement(e,{key:e.key+"-duplicate-"+t+"-"+n,className:(e.props.className||"")+" "+r.slideDuplicateClass})}if(r.loopFillGroupWithBlank){var o=r.slidesPerGroup-n.length%r.slidesPerGroup;if(o!==r.slidesPerGroup)for(var l=0;l<o;l+=1){var c=i.createElement("div",{className:r.slideClass+" "+r.slideBlankClass});n.push(c)}}"auto"!==r.slidesPerView||r.loopedSlides||(r.loopedSlides=n.length);var u=a(n,r),h=[],d=[];return n.forEach((function(e,t){t<u&&d.push(s(e,t,"prepend")),t<n.length&&t>=n.length-u&&h.push(s(e,t,"append"))})),e&&(e.loopedSlides=u),[].concat(h,n,d)}(R.current,W,U),Y["wrapper-end"]),Y["container-end"])}));f.displayName="Swiper"},73891:(e,t,r)=>{if(r.d(t,{c:()=>g}),"vendors"!=r.j)var i=r(53314);if("vendors"!=r.j)var n=r(30322);if("vendors"!=r.j)var s=r(51446);if("vendors"!=r.j)var o=r(98581);if("vendors"!=r.j)var a=r(84481);if("vendors"!=r.j)var l=r(37541);if("vendors"!=r.j)var c=r(3440);if("vendors"!=r.j)var u=r(69391);if("vendors"!=r.j)var h=r(58667);if("vendors"!=r.j)var d=r(62471);if("vendors"!=r.j)var p=r(43465);if("vendors"!=r.j)var f=r(8438);if("vendors"!=r.j)var m=r(29756);function g(e,t){if(null!=e){if((0,l.l)(e))return(0,i.x)(e,t);if((0,u.X)(e))return(0,s.V)(e,t);if((0,c.y)(e))return(0,n.P)(e,t);if((0,d.T)(e))return(0,a.M)(e,t);if((0,h.x)(e))return(0,o.S)(e,t);if((0,f.U)(e))return(0,m.v)(e,t)}throw(0,p.L)(e)}},73893:(e,t,r)=>{function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{A:()=>i})},73977:(e,t,r)=>{if(r.d(t,{i:()=>p}),"vendors"!=r.j)var i=r(43298);if("vendors"!=r.j)var n=r(84705);if("vendors"!=r.j)var s=r(70775);if("vendors"!=r.j)var o=r(53489);if("vendors"!=r.j)var a=r(15590);if("vendors"!=r.j)var l=r(44249);if("vendors"!=r.j)var c=r(78812);if("vendors"!=r.j)var u=r(66938);if("vendors"!=r.j)var h=r(42189);if("vendors"!=r.j)var d=r(52213);function p(e,t){(0,o.s)(t);const r=f(""),p=f(""),g=e=>{for(let t,n=0;n<e.length&&(t=e[n]);++n)if(!(0,h.c)(t)){if(t.kind===i.b.OPERATION_DEFINITION)return r(t.name&&t.name.value);if(t.kind===i.b.FRAGMENT_DEFINITION)return p(t.name.value)}return s.V1.error(14),null};let y=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===i.b.OPERATION_DEFINITION&&++y;const v=function(e){const t=new Map,r=new Map;return e.forEach((e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),e=>
2{let i=t.get(e.name.value);return!i&&r.size&&r.forEach(((t,r)=>{r(e)&&(i=t)})),i}}(e),_=e=>(0,d.E)(e)&&e.map(v).some((e=>e&&e.remove)),b=new Map;let x=!1;const w={enter(e){if(_(e.directives))return x=!0,null}},A=(0,n.YR)(t,{Field:w,InlineFragment:w,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){const s=g(n);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(_(e.directives))return x=!0,null;const s=g(n);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){b.set(JSON.stringify(i),e)},leave:(e,t,r,n)=>e===b.get(JSON.stringify(n))?e:y>0&&e.selectionSet.selections.every((e=>e.kind===i.b.FIELD&&"__typename"===e.name.value))?(p(e.name.value).removed=!0,x=!0,null):void 0},Directive:{leave(e){if(v(e))return x=!0,null}}});if(!x)return t;const E=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((t=>{E(p(t)).transitiveVars.forEach((t=>{e.transitiveVars.add(t)}))}))),e),S=new Set;A.definitions.forEach((e=>{e.kind===i.b.OPERATION_DEFINITION?E(r(e.name&&e.name.value)).fragmentSpreads.forEach((e=>{S.add(e)})):e.kind!==i.b.FRAGMENT_DEFINITION||0!==y||p(e.name.value).removed||S.add(e.name.value)})),S.forEach((e=>{E(p(e)).fragmentSpreads.forEach((e=>{S.add(e)}))}));const T={enter(e){if(t=e.name.value,!S.has(t)||p(t).removed)return null;var t}};return function(e){return m((0,u.V)(e)||(0,l.E)(e),(0,a.J)((0,c.z)(e)))?null:e}((0,n.YR)(A,{FragmentSpread:T,FragmentDefinition:T,OperationDefinition:{leave(e){if(e.variableDefinitions){const t=E(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter((e=>t.has(e.variable.name.value)))}}}}}))}function f(e){const t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function m(e,t){return!e||e.selectionSet.selections.every((e=>e.kind===i.b.FRAGMENT_SPREAD&&m(t[e.name.value],t)))}},74047:(e,t,r)=>{r.d(t,{CY:()=>m,Fd:()=>f,Hp:()=>y,Qh:()=>h,Ru:()=>d,Ve:()=>p});var i=r(15381);if("searchresults/searchresults"==r.j)var n=r(16126);if("searchresults/searchresults"==r.j)var s=r(55423);if("searchresults/searchresults"==r.j)var o=r(49993);if("searchresults/searchresults"==r.j)var a=r(7104);if("searchresults/searchresults"==r.j)var l=r(70775);const c=Symbol.for("apollo.internal.queryRef"),u=Symbol.for("apollo.internal.refPromise");function h(e){return{[c]:e,[u]:e.promise}}function d(e){(0,l.V1)(!e||c in e,27)}function p(e){const t=f(e);return"fulfilled"===t.promise.status?t.promise:e[u]}function f(e){return e[c]}function m(e,t){e[u]=t}const g="searchresults/searchresults"==r.j?["context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"]:null;class y{result;key={};observable;promise;queue;subscription;listeners=new Set;autoDisposeTimeoutId;resolve;reject;references=0;softReferences=0;constructor(e,t){this.handleNext=this.handleNext.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();const r=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,t.autoDisposeTimeoutMs??3e4))};this.promise.then(r,r)}get disposed(){return this.subscription.closed}get watchQueryOptions(){return this.observable.options}reinitialize(){const{observable:e}=this,t=this.watchQueryOptions.fetchPolicy,r="no-cache"===t||"standby"===t;try{r?e.applyOptions({fetchPolicy:"standby"}):(e.reset(),e.applyOptions({fetchPolicy:"cache-first"})),r||this.setResult(),this.subscribeToQuery()}finally{e.applyOptions({fetchPolicy:t})}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout((()=>{this.references||this.dispose()})))}}softRetain(){this.softReferences++;let e=!1;return()=>{e||(e=!0,this.softReferences--,setTimeout((()=>{this.softReferences||this.references||this.dispose()})))}}didChangeOptions(e){return g.some((t=>t in e&&!(0,i.L)(this.watchQueryOptions[t],e[t])))}applyOptions(e){const{fetchPolicy:t}=this.watchQueryOptions;return"standby"===t&&t!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):this.observable.applyOptions(e),this.promise}listen(e){return this.listeners.add(e),this.queue&&(this.deliver(this.queue),this.queue=void 0),()=>{this.listeners.delete(e)}}refetch(e){return this.initiateFetch(this.observable.refetch(e))}fetchMore(e){return this.initiateFetch(this.observable.fetchMore(e))}dispose(){this.subscription.unsubscribe()}onDispose(){}handleNext(e){if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data,e.data&&(e.dataState="complete")),this.shouldReject(e)?this.reject?.(e.error):(this.result=e,this.resolve?.(e));else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.shouldReject(e)?(this.promise=(0,s.I)(e.error),this.deliver(this.promise)):(this.result=e,this.promise=(0,o.$)(e),this.deliver(this.promise))}}deliver(e){0===this.listeners.size&&(this.queue=e),this.listeners.forEac
2h((t=>t(e)))}initiateFetch(e){return this.promise=this.createPendingPromise(),this.promise.catch((()=>{})),e.then((()=>{setTimeout((()=>{"pending"===this.promise.status&&(this.result=this.observable.getCurrentResult(),this.resolve?.(this.result))}))})).catch((e=>this.reject?.(e))),e}subscribeToQuery(){this.subscription=this.observable.pipe((0,n.p)((e=>!(0,i.L)(e,this.result)))).subscribe(this.handleNext),this.subscription.add(this.onDispose)}setResult(){const e=this.observable.getCurrentResult();(0,i.L)(e,this.result)||(this.result=e,this.promise=e.data?(0,o.$)(e):this.createPendingPromise())}shouldReject(e){const{errorPolicy:t="none"}=this.watchQueryOptions;return e.error&&"none"===t}createPendingPromise(){return(0,a.b)(new Promise(((e,t)=>{this.resolve=e,this.reject=t})))}}},74062:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(17275);function n(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}i.A.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i.A.toJSONObject(this.config),code:this.code,status:this.status}}});const s=n.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{o[e]={value:e}})),Object.defineProperties(n,o),Object.defineProperty(s,"isAxiosError",{value:!0}),n.from=(e,t,r,o,a,l)=>{const c=Object.create(s);return i.A.toFlatObject(e,c,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),n.call(c,e.message,t,r,o,a),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c};const a=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?n:null},74081:(e,t,r)=>{r.d(t,{g:()=>i});const i=r(16839).C.execute},74243:(e,t,r)=>{function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t.map((function(e){return r=(t=e).name,i=t.connector,["https://www.algolia.com/doc/api-reference/widgets/",r,"/js/",void 0!==i&&i?"#connector":""].join("");var t,r,i})).join(", ");return function(e){return[e,"See documentation: ".concat(i)].filter(Boolean).join("\n\n")}}r.d(t,{V:()=>i})},74462:(e,t,r)=>{if(r.d(t,{h:()=>o}),"vendors"!=r.j)var i=r(15964);if("vendors"!=r.j)var n=r(56315);if("vendors"!=r.j)var s=r(64878);function o(e,t,r,o,a,l,c,u){var h=[],d=0,p=0,f=!1,m=function(){!f||h.length||d||t.complete()},g=function(e){return d<o?y(e):h.push(e)},y=function(e){l&&t.next(e),d++;var u=!1;(0,i.Tg)(r(e,p++)).subscribe((0,s._)(t,(function(e){null==a||a(e),l?g(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{d--;for(var e=function(){var e=h.shift();c?(0,n.N)(t,c,(function(){return y(e)})):y(e)};h.length&&d<o;)e();m()}catch(e){t.error(e)}})))};return e.subscribe((0,s._)(t,g,(function(){f=!0,m()}))),function(){null==u||u()}}},74596:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(69734);if("contactslistv2/contactslistv2"==r.j)var n=r(65150);if("contactslistv2/contactslistv2"==r.j)var s=r(15164);var o=(0,i.s)("Snippet");function a(e){var t=e.attribute,r=e.highlightedTagName,i=void 0===r?"mark":r,a=e.hit,l=e.cssClasses,c=void 0===l?{}:l,u=((0,n.E)(a._snippetResult,t)||{}).value,h=void 0===u?"":u,d=o({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):"");return h.replace(new RegExp(s.sn.highlightPreTag,"g"),"<".concat(i,' class="').concat(d,'">')).replace(new RegExp(s.sn.highlightPostTag,"g"),"</".concat(i,">"))}},74616:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(41917);if("app"==r.j)var n=r(24639);var s="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=s&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===s?i.A.Buffer:void 0,l=a?a.isBuffer:void 0,c="app"==r.j?l||n.A:null;const u="app"==r.j?c:null},75016:(e,t,r)=>{if(r.r(t),r.d(t,{Swiper:()=>i.R,SwiperSlide:()=>n.q}),"app"==r.j)var i=r(73862);if("app"==r.j)var n=r(85759)},75373:(e,t,r)=>{r.d(t,{v:()=>n});var i=Promise.resolve();function n(e){var t=null,r=!1,n=function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];null===t&&(t=i.then((function(){t=null,r?r=!1:e.apply(void 0,s)})))};return n.wait=function(){if(null===t)throw new Error("The deferred function should be called before calling `wait()`");return t},n.cancel=function(){null!==t&&(r=!0)},n}},75505:(e,t,r)=>{if(r.d(t,{s:()=>n}),"vendors"!=r.j)var i=r(76464);function n(e,t){var r="object"==typeof t;return new Promise((function(n,s){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:s,complete:function(){a?n(o):r?n(t.defaultValue):s(new i.G)}})}))}},75510:(e,t,r)=>{r.d(t,{L:()=>i});var i="app"==r.j?["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesB
2ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"]:null},75641:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(90565);const n="app"==r.j?function(e,t){var r=t?(0,i.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}:null},75995:(e,t,r)=>{if(r.d(t,{OC:()=>n,yo:()=>o}),"vendors"!=r.j)var i=r(79646);function n(e){var t;let r=Number.MAX_SAFE_INTEGER,i=null,n=-1;for(let t=0;t<e.length;++t){var o;const a=e[t],l=s(a);l!==a.length&&(i=null!==(o=i)&&void 0!==o?o:t,n=t,0!==t&&l<r&&(r=l))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=i)&&void 0!==t?t:0,n+1)}function s(e){let t=0;for(;t<e.length&&(0,i.i0)(e.charCodeAt(t));)++t;return t}function o(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),s=1===n.length,o=n.length>1&&n.slice(1).every((e=>0===e.length||(0,i.i0)(e.charCodeAt(0)))),a=r.endsWith('\\"""'),l=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=l||c,h=!(null!=t&&t.minimize)&&(!s||e.length>70||u||o||a);let d="";const p=s&&(0,i.i0)(e.charCodeAt(0));return(h&&!p||o)&&(d+="\n"),d+=r,(h||u)&&(d+="\n"),'"""'+d+'"""'}},76464:(e,t,r)=>{r.d(t,{G:()=>i});var i=(0,r(82947).L)((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},76562:(e,t,r)=>{function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>i})},76787:(e,t,r)=>{function i(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}r.d(t,{A:()=>i})},76912:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}:null},77387:(e,t,r)=>{if(r.d(t,{A:()=>n}),"vendors"!=r.j)var i=r(63662);function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,i.A)(e,t)}},77837:(e,t,r)=>{if(r.d(t,{C1:()=>o,Vj:()=>a,mM:()=>l}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(93873);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(30066);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var s=r(17275);const o=(e,t,r=3)=>{let s=0;const o=(0,i.A)(50,250);return(0,n.A)((r=>{const i=r.loaded,n=r.lengthComputable?r.total:void 0,a=i-s,l=o(a);s=i;e({loaded:i,total:n,progress:n?i/n:void 0,bytes:a,rate:l||void 0,estimated:l&&n&&i<=n?(n-i)/l:void 0,event:r,lengthComputable:null!=n,[t?"download":"upload"]:!0})}),r)},a=(e,t)=>{const r=null!=e;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},l=e=>(...t)=>s.A.asap((()=>e(...t)))},77887:(e,t,r)=>{if(r.d(t,{A:()=>n}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(17275);const n=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?function(e){function t(e,r,n,s){let o=e[s++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),l=s>=e.length;if(o=!o&&i.A.isArray(n)?n.length:o,l)return i.A.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&i.A.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],s)&&i.A.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let i;const n=r.length;let s;for(i=0;i<n;i++)s=r[i],t[s]=e[s];return t}(n[o])),!a}if(i.A.isFormData(e)&&i.A.isFunction(e.entries)){const r={};return i.A.forEachEntry(e,((e,n)=>{t(function(e){return i.A.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}:null},77969:(e,t,r)=>{r.d(t,{_:()=>m});var i=r(15381),n=r(96540),s=r(88599);if("searchresults/searchresults"==r.j)var o=r(53265);var a=r(59313);
2if("searchresults/searchresults"==r.j)var l=r(70775);if("searchresults/searchresults"==r.j)var c=r(84854);if("searchresults/searchresults"==r.j)var u=r(67659);if("searchresults/searchresults"==r.j)var h=r(54269);if("searchresults/searchresults"==r.j)var d=r(70111);if("searchresults/searchresults"==r.j)var p=r(19770);const f="searchresults/searchresults"==r.j?["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"]:null;function m(e,t){const r=(0,d.m)(t?.client),s=n.useRef(void 0),a=n.useRef(void 0),m=(0,u.k)((()=>t),[t]),y=(0,c.l)();function v(){return r.watchQuery({...t,query:e,initialFetchPolicy:t?.fetchPolicy,fetchPolicy:"standby",[o._K]:!0})}const[_,b]=n.useState(r),[x,w]=n.useState(v);_!==r&&(b(r),w(v()));const A=n.useCallback(((e,t)=>{const r=a.current?.data;r&&!(0,i.L)(r,e.data)&&(s.current=r),a.current=e,t()}),[]),E=(0,p.r)(n.useCallback((e=>{const t=x.subscribe((t=>{(0,i.L)(a.current,t)||A(t,e)}));return()=>{t.unsubscribe()}}),[x,A]),(()=>a.current||g),(()=>g)),S=n.useMemo((()=>{const e={};for(const t of f)e[t]=function(...e){return(0,l.V1)(a.current,29,t),x[t](...e)};return e}),[x]);n.useEffect((()=>{const r={query:e,errorPolicy:m?.errorPolicy,refetchWritePolicy:m?.refetchWritePolicy,returnPartialData:m?.returnPartialData,notifyOnNetworkStatusChange:m?.notifyOnNetworkStatusChange,nextFetchPolicy:t?.nextFetchPolicy,skipPollAttempt:t?.skipPollAttempt};"standby"!==x.options.fetchPolicy&&m?.fetchPolicy&&(r.fetchPolicy=m.fetchPolicy),x.applyOptions(r)}),[e,x,m,t?.nextFetchPolicy,t?.skipPollAttempt]);const T=n.useCallback(((...e)=>{(0,l.V1)(!y(),30);const[t]=e;let r=x.options.fetchPolicy;return"standby"===r&&(r=x.options.initialFetchPolicy),x.reobserve({fetchPolicy:r,variables:t?.variables,context:t?.context??{}})}),[x,y]),C=n.useRef(T);(0,h.E)((()=>{C.current=T}));return[n.useCallback(((...e)=>C.current(...e)),[]),n.useMemo((()=>{const{partial:e,...t}=E;return{...S,...t,client:r,previousData:s.current,variables:x.variables,observable:x,called:!!a.current}}),[r,E,S,x])]}const g=(0,a.G)({data:void 0,dataState:"empty",loading:!1,networkStatus:s.p.ready,partial:!0})},78347:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(51648),n=r(65520);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},s.apply(this,arguments)}var o={init:function(){var e=this,t=(0,i.zk)();if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var r=e.history;r.initialized=!0,r.paths=o.getPathValues(e.params.url),(r.paths.key||r.paths.value)&&(r.scrollToSlide(0,r.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=(0,i.zk)();this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=o.getPathValues(e.params.url),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(e){var t=(0,i.zk)(),r=(e?new URL(e):t.location).pathname.slice(1).split("/").filter((function(e){return""!==e})),n=r.length;return{key:r[n-2],value:r[n-1]}},setHistory:function(e,t){var r=this,n=(0,i.zk)();if(r.history.initialized&&r.params.history.enabled){var s;s=r.params.url?new URL(r.params.url):n.location;var a=r.slides.eq(t),l=o.slugify(a.attr("data-history"));if(r.params.history.root.length>0){var c=r.params.history.root;"/"===c[c.length-1]&&(c=c.slice(0,c.length-1)),l=c+"/"+e+"/"+l}else s.pathname.includes(e)||(l=e+"/"+l);var u=n.history.state;u&&u.value===l||(r.params.history.replaceState?n.history.replaceState({value:l},null,l):n.history.pushState({value:l},null,l))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,r){var i=this;if(t)for(var n=0,s=i.slides.length;n<s;n+=1){var a=i.slides.eq(n);if(o.slugify(a.attr("data-history"))===t&&!a.hasClass(i.params.slideDuplicateClass)){var l=a.index();i.slideTo(l,e,r)}}else i.slideTo(0,e,r)}};const a={name:"history",params:{history:{enabled:!1,root:"",replaceState:!1,key:"slides"}},create:function(){(0,n.wD)(this,{history:s({},o)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(e){e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange:function(e){e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}}},78561:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(12434),n=r(53098);const s=function(e){return(0,n.A)(e)&&"[object Map]"==(0,i.A)(e)};var o=r(52789),a=r(64841),l=a.A&&a.A.isMap;const c=l?(0,o.A)(l):s},78740:(e,t,r)=>{r.d(t,{K:()=>s});var i=r(35974);function n(e){return e.filter((e=>e)).map((e=>e.message||"Error message not found.")).join("\n")}
2class s extends Error{static is(e){return(0,i.t)(e,"CombinedGraphQLErrors")}static formatMessage=n;errors;data;extensions;constructor(e,t=e.errors||[]){super(s.formatMessage(t,{result:e,defaultFormatMessage:n})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,i.w)(this),Object.setPrototypeOf(this,s.prototype)}}},78812:(e,t,r)=>{function i(e){return e.definitions.filter((e=>"FragmentDefinition"===e.kind))}r.d(t,{z:()=>i})},79004:(e,t,r)=>{if(r.d(t,{qg:()=>u}),"vendors"!=r.j)var i=r(49738);if("vendors"!=r.j)var n=r(50475);if("vendors"!=r.j)var s=r(32369);if("vendors"!=r.j)var o=r(43298);if("vendors"!=r.j)var a=r(35009);if("vendors"!=r.j)var l=r(54954);if("vendors"!=r.j)var c=r(60590);function u(e,t){const r=new h(e,t),i=r.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}class h{constructor(e,t={}){const{lexer:r,...i}=t;if(r)this._lexer=r;else{const t=(0,l._)(e)?e:new l.k(e);this._lexer=new a.JG(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(c.Y.NAME);return this.node(e,{kind:o.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:o.b.DOCUMENT,definitions:this.many(c.Y.SOF,this.parseDefinition,c.Y.EOF)})}parseDefinition(){if(this.peek(c.Y.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===c.Y.BRACE_L)throw(0,i.I)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===c.Y.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,i.I)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.Y.BRACE_L))return this.node(e,{kind:o.b.OPERATION_DEFINITION,operation:n.cE.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),r=this.parseOperationType();let i;return this.peek(c.Y.NAME)&&(i=this.parseName()),this.node(e,{kind:o.b.OPERATION_DEFINITION,operation:r,description:t,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.Y.NAME);switch(e.value){case"query":return n.cE.QUERY;case"mutation":return n.cE.MUTATION;case"subscription":return n.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.Y.PAREN_L,this.parseVariableDefinition,c.Y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:o.b.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(c.Y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.Y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.Y.DOLLAR),this.node(e,{kind:o.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:o.b.SELECTION_SET,selections:this.many(c.Y.BRACE_L,this.parseSelection,c.Y.BRACE_R)})}parseSelection(){return this.peek(c.Y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,i;return this.expectOptionalToken(c.Y.COLON)?(r=t,i=this.parseName()):i=t,this.node(e,{kind:o.b.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.Y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.Y.PAREN_L,t,c.Y.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(c.Y.COLON),this.node(t,{kind:o.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.Y.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.Y.NAME)?this.node(e,{kind:o.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:o.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:o.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:o.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.Y.BRACKET_L:return this.parseList(e);case c.Y.BRACE_L:return this.parseObject(e);case c.Y.INT:return this.advanceLexer(),this.node(t,{kind:o.b.INT,value:t.value});case c.Y.FLOAT:return this.advanceLexer(),this.node(t,{kind:o.b.FLOAT,value:t.value});case c.Y.STRING:case c.Y.BLOCK_STRING:return this.parseStringLiteral();case c.Y.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:o.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:o.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:o.b.NULL});default:return this.node(t,{kind:o.b.ENUM,value:t.value})}case c.Y.DOLLAR:if(e){if(this.expectToken(c.Y.DOLLAR),this._lexer.token.kind===c.Y.NAME){const e=this._lexer.token.value;throw(0,i.I)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:o.b.STRING,value:e.value,block:e.kind===c.Y.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:o.b.LIST,values:this.any(c.Y.BRACKET_L,(()=>this.parseValueLiteral(e)),c.Y.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:o.b.OBJECT,fields:this.any(c.Y.BRACE_L,(()=>this.parseObjectField(e)),c.Y.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(c.Y.COLON),this.node(t,{kind:o.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.Y.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.Y.AT),this.node(t,{kind:o.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.Y.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(c.Y.BRACKET_R),t=this.node(e,{kind:o.b.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(c.Y.BANG)?this.node(e,{kind:o.b.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:o.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.Y.STRING)||this.peek(c.Y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(c.Y.BRACE_L,this.parseOperationTypeDefinition,c.Y.BRACE_R);return this.node(e,{kind:o.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.Y.COLON);const r=this.parseNamedType();return this.node(e,{kind:o.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:o.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:o.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.Y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.Y.BRACE_L,this.parseFieldDefinition,c.Y.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(c.Y.COLON);const n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:o.b.FIELD_DEFINITION,description:t,name:r,arguments:i,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(c.Y.PAREN_L,this.parseInputValueDef,c.Y.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(c.Y.COLON);const i=this.parseTypeReference();let n;this.expectOptionalToken(c.Y.EQUALS)&&(n=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:o.b.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:o.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:o.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:i,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(c.Y.EQUALS)?this.delimitedMany(c.Y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:o.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(c.Y.BRACE_L,this.parseEnumValueDefinition,c.Y.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:o.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,i.I)(this._lexer.source,this._lexer.token.start,`${d(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:o.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:i,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(c.Y.BRACE_L,this.parseInputValueDef,c.Y.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.Y.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(c.Y.BRACE_L,this.parseOperationTypeDefinition,c.Y.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:o.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.Y.AT);const r=this.parseName(),i=this.parseArgumentDefs(),n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:o.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:i,repeatable:n,locations:s})}parseDirectiveLocations(){return this.delimitedMany(c.Y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(s.H,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(c.Y.AT),r=this.parseName();let i,n;return!t&&this.expectOptionalToken(c.Y.DOT)&&(i=this.parseName(
2)),(t||i)&&this.expectOptionalToken(c.Y.PAREN_L)&&(n=this.parseName(),this.expectToken(c.Y.COLON),this.expectToken(c.Y.PAREN_R)),t?n?this.node(e,{kind:o.b.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:n}):this.node(e,{kind:o.b.DIRECTIVE_COORDINATE,name:r}):i?n?this.node(e,{kind:o.b.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:n}):this.node(e,{kind:o.b.MEMBER_COORDINATE,name:r,memberName:i}):this.node(e,{kind:o.b.TYPE_COORDINATE,name:r})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new n.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,i.I)(this._lexer.source,t.start,`Expected ${p(e)}, found ${d(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.Y.NAME||t.value!==e)throw(0,i.I)(this._lexer.source,t.start,`Expected "${e}", found ${d(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.Y.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,i.I)(this._lexer.source,t.start,`Unexpected ${d(t)}.`)}any(e,t,r){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(r);)i.push(t.call(this));return i}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(r));return i}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==c.Y.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,i.I)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function d(e){const t=e.value;return p(e.kind)+(null!=t?` "${t}"`:"")}function p(e){return(0,a.Z_)(e)?`"${e}"`:e}},79134:(e,t,r)=>{r.d(t,{H:()=>o});var i=r(32453);if("searchresults/searchresults"==r.j)var n=r(14725);if("searchresults/searchresults"==r.j)var s=r(74047);class o{queryRefs=new i.b;fragmentRefs=new i.b;options;constructor(e={}){this.options=e}getQueryRef(e,t){const r=this.queryRefs.lookupArray(e);return r.current||(r.current=new s.Hp(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:()=>{delete r.current}})),r.current}getFragmentRef(e,t,r){const i=this.fragmentRefs.lookupArray(e);return i.current||(i.current=new n.y(t,r,{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:()=>{delete i.current}})),i.current}add(e,t){this.queryRefs.lookupArray(e).current=t}}},79345:(e,t,r)=>{r.d(t,{V:()=>i});var i=(0,r(96540).createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1})},79420:(e,t,r)=>{function i(e,t,r,i,n){r||(r=v),function e(i,n,s){var o=s||i.type,a=t[o];r[o](i,n,e),a&&a(i,n)}(e,i,n)}function n(e,t,r,i,n){var s=[];r||(r=v),function e(i,n,o){var a=o||i.type,l=t[a],c=i!==s[s.length-1];c&&s.push(i),r[a](i,n,e),l&&l(i,n||s,s),c&&s.pop()}(e,i,n)}function s(e,t,r,i,n){var s=r?m(r,i||void 0):i;!function e(t,r,i){s[i||t.type](t,r,e)}(e,t,n)}function o(e){return"string"==typeof e?function(t){return t===e}:e||function(){return!0}}r.r(t),r.d(t,{ancestor:()=>n,base:()=>v,findNodeAfter:()=>d,findNodeAround:()=>h,findNodeAt:()=>u,findNodeBefore:()=>p,full:()=>l,fullAncestor:()=>c,make:()=>m,recursive:()=>s,simple:()=>i});var a=function(e,t){this.node=e,this.state=t};function l(e,t,r,i,n){r||(r=v),function e(i,n,s){var o=s||i.type;r[o](i,n,e),s||t(i,n,o)}(e,i,n)}function c(e,t,r,i){r||(r=v);var n=[];!function e(i,s,o){var a=o||i.type,l=i!==n[n.length-1];l&&n.push(i),r[a](i,s,e),o||t(i,s||n,n,a),l&&n.pop()}(e,i)}function u(e,t,r,i,n,s){n||(n=v),i=o(i);try{!function e(s,o,l){var c=l||s.type;if((null==t||s.start<=t)&&(null==r||s.end>=r)&&n[c](s,o,e),(null==t||s.start===t)&&(null==r||s.end===r)&&i(c,s))throw new a(s,o)}(e,s)}catch(e){if(e instanceof a)return e;throw e}}function h(e,t,r,i,n){r=o(r),i||(i=v);try{!function e(n,s,o){var l=o||n.type;if(!(n.start>t||n.end<t)&&(i[l](n,s,e),r(l,n)))throw new a(n,s)}
2(e,n)}catch(e){if(e instanceof a)return e;throw e}}function d(e,t,r,i,n){r=o(r),i||(i=v);try{!function e(n,s,o){if(!(n.end<t)){var l=o||n.type;if(n.start>=t&&r(l,n))throw new a(n,s);i[l](n,s,e)}}(e,n)}catch(e){if(e instanceof a)return e;throw e}}function p(e,t,r,i,n){var s;return r=o(r),i||(i=v),function e(n,o,l){if(!(n.start>t)){var c=l||n.type;n.end<=t&&(!s||s.node.end<n.end)&&r(c,n)&&(s=new a(n,o)),i[c](n,o,e)}}(e,n),s}var f=Object.create||function(e){function t(){}return t.prototype=e,new t};function m(e,t){var r=f(t||v);for(var i in e)r[i]=e[i];return r}function g(e,t,r){r(e,t)}function y(e,t,r){}var v={};v.Program=v.BlockStatement=function(e,t,r){for(var i=0,n=e.body;i<n.length;i+=1){r(n[i],t,"Statement")}},v.Statement=g,v.EmptyStatement=y,v.ExpressionStatement=v.ParenthesizedExpression=v.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")},v.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")},v.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")},v.BreakStatement=v.ContinueStatement=y,v.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")},v.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var i=0,n=e.cases;i<n.length;i+=1){var s=n[i];s.test&&r(s.test,t,"Expression");for(var o=0,a=s.consequent;o<a.length;o+=1){r(a[o],t,"Statement")}}},v.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var i=0,n=e.consequent;i<n.length;i+=1){r(n[i],t,"Statement")}},v.ReturnStatement=v.YieldExpression=v.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")},v.ThrowStatement=v.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")},v.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")},v.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")},v.WhileStatement=v.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")},v.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"
2Expression"),r(e.body,t,"Statement")},v.ForInStatement=v.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")},v.ForInit=function(e,t,r){"VariableDeclaration"===e.type?r(e,t):r(e,t,"Expression")},v.DebuggerStatement=y,v.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")},v.VariableDeclaration=function(e,t,r){for(var i=0,n=e.declarations;i<n.length;i+=1){r(n[i],t)}},v.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")},v.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var i=0,n=e.params;i<n.length;i+=1){r(n[i],t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")},v.Pattern=function(e,t,r){"Identifier"===e.type?r(e,t,"VariablePattern"):"MemberExpression"===e.type?r(e,t,"MemberPattern"):r(e,t)},v.VariablePattern=y,v.MemberPattern=g,v.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")},v.ArrayPattern=function(e,t,r){for(var i=0,n=e.elements;i<n.length;i+=1){var s=n[i];s&&r(s,t,"Pattern")}},v.ObjectPattern=function(e,t,r){for(var i=0,n=e.properties;i<n.length;i+=1){var s=n[i];"Property"===s.type?(s.computed&&r(s.key,t,"Expression"),r(s.value,t,"Pattern")):"RestElement"===s.type&&r(s.argument,t,"Pattern")}},v.Expression=g,v.ThisExpression=v.Super=v.MetaProperty=y,v.ArrayExpression=function(e,t,r){for(var i=0,n=e.elements;i<n.length;i+=1){var s=n[i];s&&r(s,t,"Expression")}},v.ObjectExpression=function(e,t,r){for(var i=0,n=e.properties;i<n.length;i+=1){r(n[i],t)}},v.FunctionExpression=v.ArrowFunctionExpression=v.FunctionDeclaration,v.SequenceExpression=function(e,t,r){for(var i=0,n=e.expressions;i<n.length;i+=1){r(n[i],t,"Expression")}},v.TemplateLiteral=function(e,t,r){for(var i=0,n=e.quasis;i<n.length;i+=1){r(n[i],t)}for(var s=0,o=e.expressions;s<o.length;s+=1){r(o[s],t,"Expression")}},v.TemplateElement=y,v.UnaryExpression=v.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")},v.BinaryExpression=v.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")},v.AssignmentExpression=v.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")},v.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")},v.NewExpression=v.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var i=0,n=e.arguments;i<n.length;i+=1){r(n[i],t,"Expression")}},v.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")},v.ExportNamedDeclaration=v.ExportDefaultDeclaration=function(e,t,r){e.declaration&&r(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")},v.ExportAllDeclaration=function(e,t,r){e.exported&&r(e.exported,t),r(e.source,t,"Expression")},v.ImportDeclaration=function(e,t,r){for(var i=0,n=e.specifiers;i<n.length;i+=1){r(n[i],t)}r(e.source,t,"Expression")},v.ImportExpression=function(e,t,r){r(e.source,t,"Expression")},v.ImportSpecifier=v.ImportDefaultSpecifier=v.ImportNamespaceSpecifier=v.Identifier=v.Literal=y,v.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")},v.ClassDeclaration=v.ClassExpression=function(e,t,r){return r(e,t,"Class")},v.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)},v.ClassBody=function(e,t,r){for(var i=0,n=e.body;i<n.length;i+=1){r(n[i],t)}},v.MethodDefinition=v.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")}},79468:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(22031);if("app"==r.j)var n=r(16489);const s="app"==r.j?function(e,t){return(0,i.A)(e,(0,n.A)(e),t)}:null},79586:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(17275);const n=i.A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),s=Symbol("internals");function o(e){return e&&String(e).trim().toLowerCase()}
2function a(e){return!1===e||null==e?e:i.A.isArray(e)?e.map(a):String(e)}function l(e,t,r,n,s){return i.A.isFunction(n)?n.call(this,t,r):(s&&(t=r),i.A.isString(t)?i.A.isString(n)?-1!==t.indexOf(n):i.A.isRegExp(n)?n.test(t):void 0:void 0)}class c{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function l(e,t,r){const n=o(t);if(!n)throw new Error("header name must be a non-empty string");const l=i.A.findKey(s,n);(!l||void 0===s[l]||!0===r||void 0===r&&!1!==s[l])&&(s[l||t]=a(e))}const c=(e,t)=>i.A.forEach(e,((e,r)=>l(e,r,t)));if(i.A.isPlainObject(e)||e instanceof this.constructor)c(e,t);else if(i.A.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))c((e=>{const t={};let r,i,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),i=e.substring(s+1).trim(),!r||t[r]&&n[r]||("set-cookie"===r?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)})),t})(e),t);else if(i.A.isHeaders(e))for(const[t,i]of e.entries())l(i,t,r);else null!=e&&l(t,e,r);return this}get(e,t){if(e=o(e)){const r=i.A.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}(e);if(i.A.isFunction(t))return t.call(this,e,r);if(i.A.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=o(e)){const r=i.A.findKey(this,e);return!(!r||void 0===this[r]||t&&!l(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=o(e)){const s=i.A.findKey(r,e);!s||t&&!l(0,r[s],s,t)||(delete r[s],n=!0)}}return i.A.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const n=t[r];e&&!l(0,this[n],n,e,!0)||(delete this[n],i=!0)}return i}normalize(e){const t=this,r={};return i.A.forEach(this,((n,s)=>{const o=i.A.findKey(r,s);if(o)return t[o]=a(n),void delete t[s];const l=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();l!==s&&delete t[s],t[l]=a(n),r[l]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return i.A.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&i.A.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[s]=this[s]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=o(e);t[n]||(!function(e,t){const r=i.A.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[n]=!0)}return i.A.isArray(e)?e.forEach(n):n(e),this}}c.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i.A.reduceDescriptors(c.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),i.A.freezeMethods(c);const u=c},79646:(e,t,r)=>{function i(e){return 9===e||32===e}function n(e){return e>=48&&e<=57}function s(e){return e>=97&&e<=122||e>=65&&e<=90}function o(e){return s(e)||95===e}function a(e){return s(e)||n(e)||95===e}r.d(t,{i0:()=>i,un:()=>o,xr:()=>a,yp:()=>n})},79672:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(241);if("app"==r.j)var n=r(40451);if("app"==r.j)var s=r(65606);var o=i.A?i.A.toStringTag:void 0;const a="app"==r.j?function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?(0,n.A)(e):(0,s.A)(e)}:null},80045:(e,t,r)=>{if(r.d(t,{A:()=>n}),/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var i=r(98587);function n(e,t){if(null==e)return{};var r,n,s=(0,i.A)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}},80129:(e,t,r)=>{r.d(t,{N:()=>s});const i=10,n=2;function s(e){return o(e,[])}function o(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:o(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>n)return"[Array]";const r=Math.min(i,e.length),s=e.length-r,a=[];for(let i=0;i<r;++i)a.push(o(e[i],t));1===s?a.push("... 1 more item"):s>1&&a.push(`... ${s} more items`);return"["+a.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>n)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=r.map((([e,r])=>e+": "+o(r,t)));return"{ "+i.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},80154:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(41917),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=n&&"object"==typeof module&&module&&!module.nodeType&&module,o=s&&s.exports===n?i.A.Buffer:void 0,a=o?o.allocUnsafe:void 0;const l="app"==r.j?function(e,t){if(t)return e.slice();var r=e.length,i=a?a(r):new e.constructor(r);return e.copy(i),i}:null},80215:(e,t,r)=>{r.d(t,{y:()=>p});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(41697);if("searchresults/searchresults"==r.j)var s=r(89976);if("searchresults/searchresults"==r.j)var o=r(74047);if("searchresults/searchresults"==r.j)var a=r(16645);if("searchresults/searchresults"==r.j)var l=r(70775);if("searchresults/searchresults"==r.j)var c=r(84854);if("searchresults/searchresults"==r.j)var u=r(67659);if("searchresults/searchresults"==r.j)var h=r(62174);if("searchresults/searchresults"==r.j)var d=r(70111);function p(e,t={}){const r=(0,d.m)(t.client),p=(0,s.B)(r),f=function({client:e,query:t,options:r}){return(0,u.k)((()=>{const i=r.fetchPolicy||e.defaultOptions.watchQuery?.fetchPolicy||"cache-first",n={...r,fetchPolicy:i,query:t,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0};return a.g&&(0,h.g)(n),n}),[e,r,t])}({client:r,query:e,options:t}),{queryKey:m=[]}=t,[g,y]=i.useState(null);(0,o.Ru)(g);const v=g&&(0,o.Fd)(g);if(g&&v?.didChangeOptions(f)){const e=v.applyOptions(f);(0,o.CY)(g,e)}const _=(0,c.l)(),b=i.useCallback((e=>{if(!v)throw new Error("The query has not been loaded. Please load the query.");const t=v.fetchMore(e);return y((0,o.Qh)(v)),t}),[v]),x=i.useCallback((e=>{if(!v)throw new Error("The query has not been loaded. Please load the query.");const t=v.refetch(e);return y((0,o.Qh)(v)),t}),[v]),w=i.useCallback(((...t)=>{(0,l.V1)(!_(),31);const[i]=t,s=[e,(0,n.M)(i),...[].concat(m)],a=p.getQueryRef(s,(()=>r.watchQuery({...f,variables:i})));y((0,o.Qh)(a))}),[e,m,p,f,_,r]),A=i.useCallback((e=>((0,l.V1)(v,32),v.observable.subscribeToMore(e))),[v]);return[w,g,{fetchMore:b,refetch:x,reset:i.useCallback((()=>{y(null)}),[]),subscribeToMore:A}]}},80433:(e,t,r)=>{if(r.d(t,{A:()=>a,V:()=>l}),"vendors"!=r.j)var i=r(11744);if("vendors"!=r.j)var n=r(37783);const s=new WeakSet;function o(e){e.size<=(e.max||-1)||s.has(e)||(s.add(e),setTimeout((()=>{e.clean(),s.delete(e)}),100))}const a=function(e,t){const r=new i.l(e,t);return r.set=function(e,t){const r=i.l.prototype.set.call(this,e,t);return o(this),r},r},l=function(e,t){const r=new n.C(e,t);return r.set=function(e,t){const r=n.C.prototype.set.call(this,e,t);return o(this),r},r}},80521:(e,t,r)=>{r.d(t,{A:()=>
2o});var i=r(65520);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},n.apply(this,arguments)}var s={LinearSpline:function(e,t){var r,i,n,s,o,a=function(e,t){for(i=-1,r=e.length;r-i>1;)e[n=r+i>>1]<=t?i=n:r=n;return r};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=a(this.x,e),s=o-1,(e-this.x[s])*(this.y[o]-this.y[s])/(this.x[o]-this.x[s])+this.y[s]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new s.LinearSpline(t.slidesGrid,e.slidesGrid):new s.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var r,i,n=this,s=n.controller.control,o=n.constructor;function a(e){var t=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(e),i=-n.controller.spline.interpolate(-t)),i&&"container"!==n.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),i=(t-n.minTranslate())*r+e.minTranslate()),n.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,n),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(var l=0;l<s.length;l+=1)s[l]!==t&&s[l]instanceof o&&a(s[l]);else s instanceof o&&t!==s&&a(s)},setTransition:function(e,t){var r,n=this,s=n.constructor,o=n.controller.control;function a(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&(0,i.dY)((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){o&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(o))for(r=0;r<o.length;r+=1)o[r]!==t&&o[r]instanceof s&&a(o[r]);else o instanceof s&&t!==o&&a(o)}};const o={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){(0,i.wD)(this,{controller:n({control:this.params.controller.control},s)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t,r){e.controller.control&&e.controller.setTranslate(t,r)},setTransition:function(e,t,r){e.controller.control&&e.controller.setTransition(t,r)}}}},80702:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(51979);if("app"==r.j)var n=r(8104);const s="app"==r.j?function(e,t){var r=(0,n.A)(e,t);return(0,i.A)(r)?r:void 0}:null},80819:(e,t,r)=>{function i(e,t){if(!e)throw new Error("Invariant failed")}r.d(t,{V:()=>i})},81121:(e,t,r)=>{r.d(t,{A:()=>n});var i=Function.prototype.toString;const n="app"==r.j?function(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}:null},81160:(e,t,r)=>{if(r.d(t,{T:()=>s}),"vendors"!=r.j)var i=r(92908);if("vendors"!=r.j)var n=r(64878);function s(e,t){return(0,i.N)((function(r,i){var s=0;r.subscribe((0,n._)(i,(function(r){i.next(e.call(t,r,s++))})))}))}},81212:(e,t,r)=>{r.d(t,{v:()=>s});var i=r(13912);const n=Symbol.for("apollo.cacheSize"),s={...i.A[n]}},81358:(e,t,r)=>{if(r.d(t,{O:()=>f,t:()=>u}),"vendors"!=r.j)var i=r(9211);if("vendors"!=r.j)var n=r(62335);if("vendors"!=r.j)var s=r(61024);if("vendors"!=r.j)var o=r(59727);if("vendors"!=r.j)var a=r(33245);if("vendors"!=r.j)var l=r(70775);const{hasOwnProperty:c}=Object.prototype;async function u(e,t){for await(const s of async function*(e){const t=new TextDecoder("utf-8"),r=e.headers?.get("content-type"),i=r?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),n="\r\n--"+(i?i[1]??i[2]??i[3]??"-":"-");let s="";(0,l.V1)(e.body&&"function"==typeof e.body.getReader,62);const o=e.body.getReader();let a,c=!1,u=!1;const d=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!c;){({value:a,done:c}=await o.read());const e="string"==typeof a?a:t.decode(a),r=s.length-n.length+1;s+=e;let i=s.indexOf(n,r);for(;i>-1&&!d();){let e;u=!0,[e,s]=[s.slice(0,i),s.slice(i+n.length)];const t=e.indexOf("\r\n\r\n"),r=h(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");const o=e.slice(t);o&&(yield o),i=s.indexOf(n)}if(d())return}throw new Error("premature end of multipart body")}finally{o.cancel()}}(e)){const o=d(e,s);if(0!=Object.keys(o).length)if(r=o,(0,a.U)(r)&&"payload"in r){if(1===Object.keys(o).length&&null===o.payload)return;let e={...o.payload};"errors"in o&&(e.extensions={...e.extensions,[i.K$]:new n.d(o.errors??[])}),t(e)}else t(o)}var r}function h(e){const t={};return e.split("\n").forEach((e=>{const r=e.indexOf(":");if(r>-1){const i=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim();t[i]=n}})),t}function d(e,t){if(e.status>=300)throw new s.g(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new o.f(r,{response:e,bodyText:t})}}function p(e,t){const r=e.headers.get("content-type");return r?.includes("application/graphql-response+json")?function(e,t){try{return JSON.parse(t)}catch(r){throw new o.f(r,{response:e,bodyText:t})}}(e,t):d(e,t)}function f(e){return t=>t.text().then((r=>{const i=p(t,r);if(!Array.isArray(i)&&!c.call(i,"data")&&!c.call(i,"errors"))throw new s.g(`Server response was malformed for query '${Array.isArray(e)?e.map((e=>e.operationName)):e.operationName}'.`,{response:t,bodyText:r});return i}))}},81493:(e,t,r)=>{r.d(t,{A:()=>i});const i="app"==r.j?function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}:null},82036:(e,t,r)=>{if(r.d(t,{k:()=>_}),"contactslistv2/contactslistv2"==r.j)var i=r(68887);if("contactslistv2/contactslistv2"==r.j)var n=r(56199);if("contactslistv2/contactslistv2"==r.j)var s=r(60513);if("contactslistv2/contactslistv2"==r.j)var o=r(58061);if("contactslistv2/contactslistv2"==r.j)var a=r(67438);if("contactslistv2/contactslistv2"==r.j)var l=r(33526);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}var y="2.17.2",v="https://cdn.jsdelivr.net/npm/search-insights@".concat(y,"/dist/search-insights.min.js");function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,c=e.onEvent,u=e.$$internal,d=void 0!==u&&u,m=e.$$automatic,g=void 0!==m&&m,_=t;t||null===t||(0,n.x)((function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(_=t[r]),_||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){t[r].queue||(t[r].queue=[]);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];t[r].queue.push(i)},t[r].version=y,t[r].shouldAddScript=!0),_=t[r])}));var w=_||s.l;return function(e){var t=e.instantSearchInstance,n=t.middleware.filter((function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal})).map((function(e){return e.creator}));t.unuse.apply(t,f(n));var u,m,y=p((0,o.j)(t.client),2),_=y[0],A=y[1],E=void 0,S=void 0,T=void 0,C=w.queue;if(Array.isArray(C)){var I=["setUserToken","init"].map((function(e){var t=(0,a.I)(C.slice().reverse(),(function(t){return p(t,1)[0]===e}))||[];return p(t,2)[1]})),P=p(I,2);S=P[0],E=P[1]}return w("getUserToken",null,(function(e,t){T=x(t)})),!r&&b(w)||w("init",h({appId:_,apiKey:A,partial:!0},r)),{$$type:"ais.insights",$$internal:d,$$automatic:g,onStateChange:function(){},subscribe:function(){if(w.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var r=document.createElement("script");r.async=!0,r.src=v,r.onerror=function(){t.emit("error",new Error(e))},document.body.appendChild(r),w.shouldAddScript=!1}catch(r){w.shouldAddScript=!1,t.emit("error",new Error(e))}}},started:function(){w("addAlgoliaAgent","insights-middleware"),m=t.mainHelper;var e=w.queue;if(Array.isArray(e)){var n=["setUserToken","init"].map((function(t){var r=(0,a.I)(e.slice().reverse(),(function(e){return p(e,1)[0]===t}))||[];return p(r,2)[1]})),s=p(n,2);S=s[0],E=s[1]}u=function(e){var t,r,i=(null===(t=e._initialResults)||void 0===t||null===(r=t[e.indexName])||void 0===r?void 0:r.state)||{},n=e.mainHelper.state;return{userToken:i.userToken||n.userToken,clickAnalytics:i.clickAnalytics||n.clickAnalytics}}(t),g||m.overrideStateWithoutTriggeringChangeEvent(h(h({},m.state),{},{clickAnalytics:!0})),d||t.scheduleSearch();var f=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=x(e);if(i){var n=m.state.userToken;r?s():setTimeout(s,0)}function s(){m.overrideStateWithoutTriggeringChangeEvent(h(h({},m.state),{},{userToken:i})),n&&n!==e&&t.scheduleSearch()}};function y(e){f(e,!0),w("setUserToken",e)}var v,_=void 0,A=(0,i.Si)();A?_=A:_="anonymous-".concat((0,l.G)());var C=u.userToken;if(null!=r&&r.userToken&&(v=r.userToken),v)y(v);else if(C)y(C);else if(T)y(T);else if(S)y(S);else if(_){var I,P;if(y(_),null!=r&&r.useCookie||null!==(I=E)&&void 0!==I&&I.useCookie)!function(e,t){var r=2592e6,i=new Date;i.setTime(i.getTime()+(t||6*r));var n="expires=".concat(i.toUTCString());document.cookie="_ALGOLIA=".concat(e,";").concat(n,";path=/")}
2(_,(null==r?void 0:r.cookieDuration)||(null===(P=E)||void 0===P?void 0:P.cookieDuration))}w("onUserTokenChange",(function(e){return f(e,!0)}),{immediate:!0});var M=w;b(w)&&(M=function(e,r){var i=p((0,o.j)(t.client),2),n=i[0],s=i[1];return w(e,r,{headers:{"X-Algolia-Application-Id":n,"X-Algolia-API-Key":s}})});var k,O=new Set;t.mainHelper.derivedHelpers[0].on("result",(function(e){var t=e.results;!t||t.queryID&&t.queryID===k||(k=t.queryID,O.clear())})),t.sendEventToInsights=function(e){if(c)c(e,M);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter((function(e){return!O.has(e)}));if(0===r.length)return;r.forEach((function(e){return O.add(e)})),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],g&&e.payload.algoliaSource.push("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),M(e.insightsMethod,e.payload)}}},unsubscribe:function(){w("onUserTokenChange",void 0),t.sendEventToInsights=s.l,m&&u&&(m.overrideStateWithoutTriggeringChangeEvent(h(h({},m.state),u)),t.scheduleSearch())}}}}function b(e){var t=p((e.version||"").split(".").map(Number),2),r=t[0],i=t[1];return r>=3||2===r&&i>=6||1===r&&i>=10}function x(e){if(e)return"number"==typeof e?e.toString():e}},82100:(e,t,r)=>{if(r.d(t,{lI:()=>s}),"vendors"!=r.j)var i=r(98820);function n(e){return e[e.length-1]}function s(e){return(0,i.m)(n(e))?e.pop():void 0}},82284:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{A:()=>i})},82801:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(46632);var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;const o=function(e){var t=(0,i.A)(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,(function(e,r,i,n){t.push(i?n.replace(s,"$1"):r||e)})),t}))},82920:(e,t,r)=>{function i(e,t){return e.definitions.find((e=>"OperationDefinition"===e.kind&&!!e.name))?.name.value??t}r.d(t,{n:()=>i})},82947:(e,t,r)=>{function i(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}r.d(t,{L:()=>i})},83312:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(695);if("contactslistv2/contactslistv2"==r.j)var s=r(80819);function o(){var e=(0,i.useContext)(n.t);return(0,s.V)(null!==e,"Hooks must be used inside the <InstantSearch> component.\n\nThey are not compatible with the `[email protected]` and `react-instantsearch-dom` packages, so make sure to use the <InstantSearch> component from `[email protected]`."),e}},83438:(e,t,r)=>{if(r.d(t,{S:()=>n}),"vendors"!=r.j)var i=r(70775);const n=e=>{(0,i.V1)(e||"undefined"!=typeof fetch,61)}},83511:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(76912),n=r(15647),s=r(16489),o=r(13153),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,i.A)(t,(0,s.A)(e)),e=(0,n.A)(e);return t}:o.A;const l="app"==r.j?a:null},83746:(e,t,r)=>{r.d(t,{S:()=>i});const i=()=>{if("undefined"==typeof AbortController)return{controller:!1,signal:!1};const e=new AbortController;return{controller:e,signal:e.signal}}},83973:(e,t,r)=>{if(r.d(t,{A:()=>o}),"app"==r.j)var i=r(33831);if("app"==r.j)var n=r(83511);if("app"==r.j)var s=r(41865);const o="app"==r.j?function(e){return(0,i.A)(e,s.A,n.A)}:null},84171:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(80702),n=function(){try{var e=(0,i.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const s="app"==r.j?n:null},84481:(e,t,r)=>{if(r.d(t,{M:()=>s}),"vendors"!=r.j)var i=r(93776);if("vendors"!=r.j)var n=r(56315);function s(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.c((function(r){(0,n.N)(r,t,(function(){var i=e[Symbol.asyncIterator]();(0,n.N)(r,t,(function(){i.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}},84582:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){return t?e.map((function(e){return s(s({},e),{},{__queryID:t})})):e}r.d(t,{P:()=>a})},84594:(e,t,r)=>{if(r.d(t,{HY:()=>a,R4:()=>n,Wz:()=>o,i1:()=>s}),"vendors"!=r.j)var i=r(47397);const n={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},s=(e,t)=>t(e);function o(e,t,...r){return r.unshift(t),a(e,s,...r)}function a(e,t,...r){let n={},s={};r.forEach((e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),s={...s,...e.http}})),n.headers=function(e,t){if(!t){const t={};
2return Object.keys(Object(e)).forEach((r=>{t[r.toLowerCase()]=e[r]})),t}const r={};Object.keys(Object(e)).forEach((t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}}));const i={};return Object.keys(r).forEach((e=>{i[r[e].originalName]=r[e].value})),i}(n.headers,s.preserveHeaderCase);const{operationName:o,extensions:a,variables:l,query:c}=e,u={operationName:o,variables:l};return s.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),s.includeQuery&&(u.query=t(c,i.y)),{options:n,body:u}}},84705:(e,t,r)=>{if(r.d(t,{YR:()=>l,sP:()=>a}),"vendors"!=r.j)var i=r(46286);if("vendors"!=r.j)var n=r(80129);if("vendors"!=r.j)var s=r(50475);if("vendors"!=r.j)var o=r(43298);const a=Object.freeze({});function l(e,t,r=s.aD){const l=new Map;for(const e of Object.values(o.b))l.set(e,c(t,e));let u,h,d,p=Array.isArray(e),f=[e],m=-1,g=[],y=e;const v=[],_=[];do{m++;const e=m===f.length,o=e&&0!==g.length;if(e){if(h=0===_.length?void 0:v[v.length-1],y=d,d=_.pop(),o)if(p){y=y.slice();let e=0;for(const[t,r]of g){const i=t-e;null===r?(y.splice(i,1),e++):y[i]=r}}else{y={...y};for(const[e,t]of g)y[e]=t}m=u.index,f=u.keys,g=u.edits,p=u.inArray,u=u.prev}else if(d){if(h=p?m:f[m],y=d[h],null==y)continue;v.push(h)}let c;if(!Array.isArray(y)){var b,x;(0,s.Ll)(y)||(0,i.U)(!1,`Invalid AST Node: ${(0,n.N)(y)}.`);const r=e?null===(b=l.get(y.kind))||void 0===b?void 0:b.leave:null===(x=l.get(y.kind))||void 0===x?void 0:x.enter;if(c=null==r?void 0:r.call(t,y,h,d,v,_),c===a)break;if(!1===c){if(!e){v.pop();continue}}else if(void 0!==c&&(g.push([h,c]),!e)){if(!(0,s.Ll)(c)){v.pop();continue}y=c}}var w;if(void 0===c&&o&&g.push([h,y]),e)v.pop();else u={inArray:p,index:m,keys:f,edits:g,prev:u},p=Array.isArray(y),f=p?y:null!==(w=r[y.kind])&&void 0!==w?w:[],m=-1,g=[],d&&_.push(d),d=y}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:e}function c(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}},84834:(e,t,r)=>{if(r.d(t,{p:()=>n}),"vendors"!=r.j)var i=r(84705);function n(e){let t=!1;return(0,i.YR)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)),t))return i.sP}}}),t}},84854:(e,t,r)=>{r.d(t,{l:()=>o});var i=r(96540);let n;function s(){}function o(){return n||(n=i.createContext(null)),i.useCallback((()=>{const e=console.error;try{return console.error=s,i.useContext(n),!0}catch(e){return!1}finally{console.error=e}}),[])}},85207:(e,t,r)=>{r.d(t,{E:()=>u});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(89976);if("searchresults/searchresults"==r.j)var s=r(74047);if("searchresults/searchresults"==r.j)var o=r(68481);if("searchresults/searchresults"==r.j)var a=r(91097);if("searchresults/searchresults"==r.j)var l=r(70111);if("searchresults/searchresults"==r.j)var c=r(5599);function u(e,t){return(0,o.Y)("useBackgroundQuery",h,(0,l.m)("object"==typeof t?t.client:void 0))(e,t??{})}function h(e,t){const r=(0,l.m)(t.client),o=(0,n.B)(r),u=(0,c.h)({client:r,query:e,options:t}),{fetchPolicy:h}=u,d=(0,a.u)(e,t),p=i.useRef("standby"!==h);p.current||="standby"!==h;const f=o.getQueryRef(d,(()=>r.watchQuery(u))),[m,g]=i.useState((0,s.Qh)(f));if((0,s.Fd)(m)!==f&&g((0,s.Qh)(f)),f.didChangeOptions(u)){const e=f.applyOptions(u);(0,s.CY)(m,e)}i.useEffect((()=>{const e=setTimeout((()=>{f.disposed&&o.add(d,f)}));return()=>clearTimeout(e)}));const y=i.useCallback((e=>{const t=f.fetchMore(e);return g((0,s.Qh)(f)),t}),[f]),v=i.useCallback((e=>{const t=f.refetch(e);return g((0,s.Qh)(f)),t}),[f]);return i.useEffect((()=>f.softRetain()),[f]),[p.current?m:void 0,{fetchMore:y,refetch:v,subscribeToMore:f.observable.subscribeToMore}]}},85501:(e,t,r)=>{if(r.d(t,{A:()=>n}),/^(app|searchresults\/searchresults)$/.test(r.j))var i=r(63662);function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,i.A)(e,t)}},85759:(e,t,r)=>{r.d(t,{q:()=>l});var i=r(96540),n=r(73726),s=r(93241),o=["tag","children","className","swiper","zoom","virtualIndex"];function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},a.apply(this,arguments)}var l=(0,i.forwardRef)((function(e,t){var r,l=void 0===e?{}:e,c=l.tag,u=void 0===c?"div":c,h=l.children,d=l.className,p=void 0===d?"":d,f=l.swiper,m=l.zoom,g=l.virtualIndex,y=function(e,t){if(null==e)return{};var r,i,n={},s=Object.keys(e);for(i=0;i<s.length;i++)r=s[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(l,o),v=(0,i.useRef)(null),_=(0,i.useState)("swiper-slide"),b=_[0],x=_[1];function w(e,t,r){t===v.current&&x(r)}(0,s.E)((function(){if(t&&(t.current=v.current),v.current&&f){if(!f.destroyed)return f.on("_slideClass",w),function(){f&&f.off("_slideClass",w)};"swiper-slide"!==b&&x("swiper-slide")}})),(0,s.E)((function(){f&&v.current&&x(f.getSlideClasses(v.current))}
2),[f]),"function"==typeof h&&(r={isActive:b.indexOf("swiper-slide-active")>=0||b.indexOf("swiper-slide-duplicate-active")>=0,isVisible:b.indexOf("swiper-slide-visible")>=0,isDuplicate:b.indexOf("swiper-slide-duplicate")>=0,isPrev:b.indexOf("swiper-slide-prev")>=0||b.indexOf("swiper-slide-duplicate-prev")>=0,isNext:b.indexOf("swiper-slide-next")>=0||b.indexOf("swiper-slide-duplicate-next")>=0});var A=function(){return"function"==typeof h?h(r):h};return i.createElement(u,a({ref:v,className:(0,n.Cv)(b+(p?" "+p:"")),"data-swiper-slide-index":g},y),m?i.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof m?m:void 0},A()):A())}));l.displayName="SwiperSlide"},85847:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(65520);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},n.apply(this,arguments)}var s={setTranslate:function(){for(var e=this,t=e.slides,r=0;r<t.length;r+=1){var i=e.slides.eq(r),n=-i[0].swiperSlideOffset;e.params.virtualTranslate||(n-=e.translate);var s=0;e.isHorizontal()||(s=n,n=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+n+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,r=t.slides,i=t.$wrapperEl;if(r.transition(e),t.params.virtualTranslate&&0!==e){var n=!1;r.transitionEnd((function(){if(!n&&t&&!t.destroyed){n=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],r=0;r<e.length;r+=1)i.trigger(e[r])}}))}}};const o={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){(0,i.wD)(this,{fadeEffect:n({},s)})},on:{beforeInit:function(e){if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};(0,i.X$)(e.params,t),(0,i.X$)(e.originalParams,t)}},setTranslate:function(e){"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e,t){"fade"===e.params.effect&&e.fadeEffect.setTransition(t)}}}},86149:(e,t,r)=>{if(r.d(t,{m:()=>l}),"vendors"!=r.j)var i=r(66938);if("vendors"!=r.j)var n=r(15590);if("vendors"!=r.j)var s=r(78812);if("vendors"!=r.j)var o=r(70775);if("vendors"!=r.j)var a=r(64083);function l(e,t,r){const l=(0,i.V)(t);return(0,o.V1)(l,43),null==e?e:(0,a.S)(e,l.selectionSet,{operationType:l.operation,operationName:l.name?.value,fragmentMap:(0,n.J)((0,s.z)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}},86271:(e,t,r)=>{r.d(t,{o:()=>o});var i=r(41697);const n=["connection","include","skip","client","rest","export","nonreactive","stream"];let s=i.M;const o=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){const e=r.connection.filter?r.connection.filter:[];e.sort();const i={};e.forEach((e=>{i[e]=t[e]}));const n=s(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){const e=s(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach((e=>{-1===n.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${s(r[e])})`:i+=`@${e}`)})),i}),{setStringify(e){const t=s;return s=e,t}})},86305:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(20014);const n=i.A.hasStandardBrowserEnv?(s=new URL(i.A.origin),o=i.A.navigator&&/(msie|trident)/i.test(i.A.navigator.userAgent),e=>(e=new URL(e,i.A.origin),s.protocol===e.protocol&&s.host===e.host&&(o||s.port===e.port))):()=>!0;var s,o},86395:(e,t,r)=>{if(r.d(t,{K:()=>n}),"vendors"!=r.j)var i=r(33245);function n(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}},86577:(e,t,r)=>{function i(e){return e instanceof Date&&!isNaN(e)}r.d(t,{v:()=>i})},86635:(e,t,r)=>{function i(){return"undefined"!=typeof window}function n(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function s(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!i()&&(e instanceof Node||e instanceof s(e).Node)}function l(e){return!!i()&&(e instanceof Element||e instanceof s(e).Element)}function c(e){return!!i()&&(e instanceof HTMLElement||e instanceof s(e).HTMLElement)}function u(e){return!(!i()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof s(e).ShadowRoot)}r.d(t,{$4:()=>C,CP:()=>T,L9:()=>S,Lv:()=>f,Tc:()=>w,Tf:()=>g,ZU:()=>d,_m:()=>M,ep:()=>o,eu:()=>E,gJ:()=>x,mq:()=>n,sQ:()=>b,sb:()=>c,v9:()=>P,vq:()=>l,zk:()=>s});const h=new Set(["inline","contents"]);function d(e){const{overflow:t,overflowX:r,overflowY:i,display:n}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!h.has(n)}const p=new Set(["table","td","th"]);function f(e){return p.has(n(e))}const m=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?[":popover-open",":modal"]:null;function g(e){return m.some((t=>{try{return e.matches(t)}catch(e){return!1}}
2))}const y=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["transform","translate","scale","rotate","perspective"]:null,v=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["transform","translate","scale","rotate","perspective","filter"]:null,_=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["paint","layout","strict","content"]:null;function b(e){const t=w(),r=l(e)?S(e):e;return y.some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||v.some((e=>(r.willChange||"").includes(e)))||_.some((e=>(r.contain||"").includes(e)))}function x(e){let t=C(e);for(;c(t)&&!E(t);){if(b(t))return t;if(g(t))return null;t=C(t)}return null}function w(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const A=new Set(["html","body","#document"]);function E(e){return A.has(n(e))}function S(e){return s(e).getComputedStyle(e)}function T(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C(e){if("html"===n(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function I(e){const t=C(e);return E(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&d(t)?t:I(t)}function P(e,t,r){var i;void 0===t&&(t=[]),void 0===r&&(r=!0);const n=I(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),a=s(n);if(o){const e=M(a);return t.concat(a,a.visualViewport||[],d(n)?n:[],e&&r?P(e):[])}return t.concat(n,P(n,[],r))}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},87718:(e,t,r)=>{if(r.d(t,{t:()=>s}),"vendors"!=r.j)var i=r(39741);if("vendors"!=r.j)var n=r(1005);function s(e,t,r){var s,o,a,l,c=!1;return e&&"object"==typeof e?(s=e.bufferSize,l=void 0===s?1/0:s,o=e.windowTime,t=void 0===o?1/0:o,c=void 0!==(a=e.refCount)&&a,r=e.scheduler):l=null!=e?e:1/0,(0,n.u)({connector:function(){return new i.m(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},88039:(e,t,r)=>{r.d(t,{z:()=>i});const i=(e,t)=>{const r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}},88262:(e,t,r)=>{if(r.d(t,{A:()=>s}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(99034);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(76787);function s(e,t,r){let s=!(0,i.A)(t);return e&&s||0==r?(0,n.A)(e,t):t}},88382:(e,t,r)=>{if(r.d(t,{A:()=>h}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(20014);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(17275);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var s=r(86305);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var o=r(9887);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var a=r(88262);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var l=r(44662);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var c=r(79586);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var u=r(93967);const h=e=>{const t=(0,l.A)({},e);let r,{data:h,withXSRFToken:d,xsrfHeaderName:p,xsrfCookieName:f,headers:m,auth:g}=t;if(t.headers=m=c.A.from(m),t.url=(0,u.A)((0,a.A)(t.baseURL,t.url),e.params,e.paramsSerializer),g&&m.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),n.A.isFormData(h))if(i.A.hasStandardBrowserEnv||i.A.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(!1!==(r=m.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];m.setContentType([e||"multipart/form-data",...t].join("; "))}if(i.A.hasStandardBrowserEnv&&(d&&n.A.isFunction(d)&&(d=d(t)),d||!1!==d&&(0,s.A)(t.url))){const e=p&&f&&o.A.read(f);e&&m.set(p,e)}return t}},88599:(e,t,r)=>{var i;r.d(t,{p:()=>i}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(i||(i={}))},88626:(e,t,r)=>{r.r(t),r.d(t,{ContactUsView:()=>Mn,ContactsListMessageTypeEnum:()=>sr,LocationFilterTypeEnum:()=>or,getPrerenderedData:()=>kn});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(13002);var s=r(89079),o=r(54899);if("contactslistv2/contactslistv2"==r.j)var a=r(91180);if("contactslistv2/contactslistv2"==r.j)var l=r(89051);if("contactslistv2/contactslistv2"==r.j)var c=r(6235);if("contactslistv2/contactslistv2"==r.j)var u=r(55433);if("contactslistv2/contactslistv2"==r.j)var h=r(956);if("contactslistv2/contactslistv2"==r.j)var d=r(72227);if("contactslistv2/contactslistv2"==r.j)var p=r(6119);if("contactslistv2/contactslistv2"==r.j)var f=r(55446);if("contactslistv2/contactslistv2"==r.j)var m=r(80622);
2if("contactslistv2/contactslistv2"==r.j)var g=r(77907);if("contactslistv2/contactslistv2"==r.j)var y=r(32319);if("contactslistv2/contactslistv2"==r.j)var v=r(50739);if("contactslistv2/contactslistv2"==r.j)var _=r(70583);if("contactslistv2/contactslistv2"==r.j)var b=r(92456);if("contactslistv2/contactslistv2"==r.j)var x=r(25395);if("contactslistv2/contactslistv2"==r.j)var w=r(59652);if("contactslistv2/contactslistv2"==r.j)var A=r(52402);if("contactslistv2/contactslistv2"==r.j)var E=r(72028);if("contactslistv2/contactslistv2"==r.j)var S=r(55049);if("contactslistv2/contactslistv2"==r.j)var T=r(16834);if("contactslistv2/contactslistv2"==r.j)var C=r(60515);if("contactslistv2/contactslistv2"==r.j)var I=r(15570);if("contactslistv2/contactslistv2"==r.j)var P=r(87902);if("contactslistv2/contactslistv2"==r.j)var M=r(27628);var k=r(47515),O=r(41039),R=r(50502),D=r(33319),L=r(32058),B=r(34164),z=r(58652),j=r(74757);if("contactslistv2/contactslistv2"==r.j)var F=r(62222);if("contactslistv2/contactslistv2"==r.j)var N=r(88153);var U=r(57373),V=r(2135),G=r(17817),q=r(10925),H=r(40961),W=r(43594);if("contactslistv2/contactslistv2"==r.j)var Y=r(20135);if("contactslistv2/contactslistv2"==r.j)var Q=r(34264);if("contactslistv2/contactslistv2"==r.j)var Z=r(53054);if("contactslistv2/contactslistv2"==r.j)var X=r(63916);if("contactslistv2/contactslistv2"==r.j)var K=r(40458);if("contactslistv2/contactslistv2"==r.j)var J=r(16099);if("contactslistv2/contactslistv2"==r.j)var $=r(49966);if("contactslistv2/contactslistv2"==r.j)var ee=r(72820);if("contactslistv2/contactslistv2"==r.j)var te=r(5862);var re,ie,ne,se={261(e,t,r){var i=r(977),n=r(593),s="value",o="\n ",a={};function l(e){var t=Array.isArray(e);return function(r){var i=c(a.plainArray,r);if(i)return i;if(t&&r.length!==e.length)return"an array with "+e.length+" items";for(var n=0;n<r.length;n++)if(i=c(t?e[n]:e,r[n]))return[n].concat(i)}}function c(e,t){if(null!=t||e.hasOwnProperty("__required")){var r=e(t);return r?Array.isArray(r)?r:[r]:void 0}}function u(e,t){var r=e.length,i=e[r-1],o=e.slice(0,r-1);return 0===o.length&&(o=[s]),t=n(t,{path:o}),"function"==typeof i?i(t):h(t,function(e){return"must be "+function(e){return/^an? /.test(e)?e:/^[aeiou]/i.test(e)?"an "+e:/^[a-z]/i.test(e)?"a "+e:e}(e)+"."}(i))}function h(e,t){return(d(e.path)?"Item at position ":"")+e.path.join(".")+" "+t}function d(e){return"number"==typeof e[e.length-1]||"number"==typeof e[0]}a.assert=function(e,t){return t=t||{},function(r){var i=c(e,r);if(i){var n=u(i,t);throw t.apiName&&(n=t.apiName+": "+n),new Error(n)}}},a.shape=function(e){var t,r=(t=e,Object.keys(t||{}).map((function(e){return{key:e,value:t[e]}})));return function(e){var t,i=c(a.plainObject,e);if(i)return i;for(var n=[],l=0;l<r.length;l++)t=r[l].key,(i=c(r[l].value,e[t]))&&n.push([t].concat(i));return n.length<2?n[0]:function(e){n=n.map((function(t){return"- "+t[0]+": "+u(t,e).split("\n").join(o)}));var t=e.path.join(".");return"The following properties"+(t===s?"":" of "+t)+" have invalid values:"+o+n.join(o)}}},a.strictShape=function(e){var t=a.shape(e);return function(r){var i=t(r);if(i)return i;var n=Object.keys(r).reduce((function(t,r){return void 0===e[r]&&t.push(r),t}),[]);return 0!==n.length?function(){return"The following keys are invalid: "+n.join(", ")}:void 0}},a.arrayOf=function(e){return l(e)},a.tuple=function(){return l(Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments))},a.required=function(e){function t(t){return null==t?function(e){return h(e,d(e.path)?"cannot be undefined/null.":"is required.")}:e.apply(this,arguments)}return t.__required=!0,t},a.oneOfType=function(){var e=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments);return function(t){var r=e.map((function(e){return c(e,t)})).filter(Boolean);if(r.length===e.length)return r.every((function(e){return 1===e.length&&"string"==typeof e[0]}))?function(e){return e.length<2?e[0]:2===e.length?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e.slice(-1)}(r.map((function(e){return e[0]}))):r.reduce((function(e,t){return t.length>e.length?t:e}))}},a.equal=function(e){return function(t){if(t!==e)return JSON.stringify(e)}},a.oneOf=function(){var e=(Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments)).map((function(e){return a.equal(e)}));return a.oneOfType.apply(this,e)},a.range=function(e){var t=e[0],r=e[1];return function(e){if(c(a.number,e)||e<t||e>r)return"number between "+t+" & "+r+" (inclusive)"}},a.any=function(){},a.boolean=function(e){if("boolean"!=typeof e)return"boolean"},a.number=function(e){if("number"!=typeof e)return"number"},a.plainArray=function(e){if(!Array.isArray(e))return"array"},a.plainObject=function(e){if(!i(e))return"object"},a.string=function(e){if("string"!=typeof e)return"string"},a.func=function(e){if("function"!=typeof e)return"function"},a.validate=c,a.processMessage=u,e.exports=a},998(e,t,r){var i=r(914).Ak;function n(e){this.origin=e.origin||"https://api.mapbox.com",this.endpoint="events/v2",this.access_token=e.accessToken,this.version="0.3.0",this.pluginSessionID=this.generateSessionID(),this.sessionIncrementer=0,this.userAgent=this.getUserAgent(),this.options=e,this.send=this.send.bind(this),this.countries=e.countries?e.countries.split(","):null,this.types=e.types?e.types.split(","):null,this.bbox=e.bbox?e.bbox:null,this.language=e.language?e.language.split(","):null,this.limit=e.limit?+e.limit:null,this.locale=navigator.language||null,this.enableEventLogging=this.shouldEnableLogging(e),this.eventQueue=new Array,this.flushInterval=e.flushInterval||1e3,this.maxQueueSize=e.maxQueueSize||100,this.timer=this.flushInterval?setTimeout(this.flush.bind(this),this.flushInterval):null,this.lastSentInput="",this.lastSentIndex=0}n.prototype={select:function(e,t){var r=this.getEventPayload("search.select",t,{selectedFeature:e});if(r&&(r.resultIndex!==this.lastSentIndex||r.queryString!==this.lastSentInput)&&-1!=r.resultIndex)return this.lastSentIndex=r.resultIndex,this.lastSentInput=r.queryString,this.push(r)},start:function(e){var t=this.getEventPayload("search.start",e);if(t)return this.push(t)},keyevent:function(e,t){if(e.key&&!e.metaKey&&-1===[9,27,37,39,13,38,40].indexOf(e.keyCode)){var r=this.getEventPayload("search.keystroke",t,{key:e.key});if(r)return this.push(r)}},send:function(e,t){if(!this.enableEventLogging)return t?t():void 0;var r=this.getRequestOptions(e);this.request(r,function(e){return e?this.handleError(e,t):t?t():void 0}.bind(this))},getRequestOptions:function(e){return Array.isArray(e)||(e=[e]),{method:"POST",host:this.origin,path:this.endpoint+"?access_token="+this.access_token,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}},getEventPayload:function(e,t,r={}){if("search.select"===e&&!r.selectedFeature||"search.keystroke"===e&&!r.key)return null;var i;if(t.options.proximity)if("object"==typeof t.options.proximity)i=[t.options.proximity.longitude,t.options.proximity.latitude];else if("ip"===t.options.proximity){var n=t._headers?t._headers["ip-proximity"]:null;i=n&&"string"==typeof n?n.split(",").map(parseFloat):[999,999]}else i=t.options.proximity;else i=null;var s=t._map?t._map.getZoom():void 0,o={event:e,version:this.getEventSchemaVersion(e),created:+new Date,sessionIdentifier:this.getSessionId(),country:this.countries,userAgent:this.userAgent,language:this.language,bbox:this.bbox,types:this.types,endpoint:"mapbox.places",autocomplete:t.options.autocomplete,fuzzyMatch:t.options.fuzzyMatch,proximity:i,limit:t.options.limit,routing:t.options.routing,worldview:t.options.worldview,mapZoom:s,keyboardLocale:this.locale};if("search.select"===e?o.queryString=t.inputString:"search.select"!=e&&t._inputEl?o.queryString=t._inputEl.value:o.queryString=t.inputString,["search.keystroke","search.select"].includes(e)&&(o.path="geocoding/v5/mapbox.places"),"search.keystroke"===e&&r.key)o.lastAction=r.key;else if("search.select"===e&&r.selectedFeature){var a=r.selectedFeature,l=this.getSelectedIndex(a,t);
2if(o.resultIndex=l,o.resultPlaceName=a.place_name,o.resultId=a.id,a.properties&&(o.resultMapboxId=a.properties.mapbox_id),t._typeahead){var c=t._typeahead.data;c&&c.length>0&&(o.suggestionIds=this.getSuggestionIds(c),o.suggestionNames=this.getSuggestionNames(c),o.suggestionTypes=this.getSuggestionTypes(c),o.suggestionSources=this.getSuggestionSources(c))}}return this.validatePayload(o)?o:null},request:function(e,t){var r=new XMLHttpRequest;for(var i in r.onreadystatechange=function(){if(4==this.readyState)return 204==this.status?t(null):t(this.statusText)},r.open(e.method,e.host+"/"+e.path,!0),e.headers){var n=e.headers[i];r.setRequestHeader(i,n)}r.send(e.body)},handleError:function(e,t){if(t)return t(e)},generateSessionID:function(){return i()},getSessionId:function(){return this.pluginSessionID+"."+this.sessionIncrementer},getUserAgent:function(){return"mapbox-gl-geocoder."+this.version+"."+navigator.userAgent},getSelectedIndex:function(e,t){if(t._typeahead){var r=t._typeahead.data,i=e.id;return r.map((function(e){return e.id})).indexOf(i)}},getSuggestionIds:function(e){return e.map((function(e){return e.properties?e.properties.mapbox_id||"":e.id||""}))},getSuggestionNames:function(e){return e.map((function(e){return e.place_name||""}))},getSuggestionTypes:function(e){return e.map((function(e){return e.place_type&&Array.isArray(e.place_type)&&e.place_type[0]||""}))},getSuggestionSources:function(e){return e.map((function(e){return e._source||""}))},getEventSchemaVersion:function(e){return["search.keystroke","search.select"].includes(e)?"2.2":"2.0"},validatePayload:function(e){if(!e||!e.event)return!1;var t=e.event;return"search.start"===t?this.objectHasRequiredProps(e,["event","created","sessionIdentifier","queryString"]):"search.keystroke"===t?this.objectHasRequiredProps(e,["event","created","sessionIdentifier","queryString","lastAction"]):"search.select"!==t||this.objectHasRequiredProps(e,["event","created","sessionIdentifier","queryString","resultIndex","path","suggestionIds"])},objectHasRequiredProps:function(e,t){return t.every((function(t){return"queryString"===t?"string"==typeof e[t]&&e[t].length>0:void 0!==e[t]}))},shouldEnableLogging:function(e){return!1!==e.enableEventLogging&&(!e.origin||"https://api.mapbox.com"===e.origin)},flush:function(){this.eventQueue.length>0&&(this.send(this.eventQueue),this.eventQueue=new Array),this.timer&&clearTimeout(this.timer),this.flushInterval&&(this.timer=setTimeout(this.flush.bind(this),this.flushInterval))},push:function(e,t){this.eventQueue.push(e),(this.eventQueue.length>=this.maxQueueSize||t)&&this.flush()},remove:function(){this.flush()}},e.exports=n},549(e){e.exports={fr:{name:"France",bbox:[[-4.59235,41.380007],[9.560016,51.148506]]},us:{name:"United States",bbox:[[-171.791111,18.91619],[-66.96466,71.357764]]},ru:{name:"Russia",bbox:[[19.66064,41.151416],[190.10042,81.2504]]},ca:{name:"Canada",bbox:[[-140.99778,41.675105],[-52.648099,83.23324]]}}},109(e){function t(){}t.prototype={isSupport:function(){return Boolean(window.navigator.geolocation)},getCurrentPosition:function(){const e={enableHighAccuracy:!0};return new Promise((function(t,r){window.navigator.geolocation.getCurrentPosition(t,r,e)}))}},e.exports=t},983(e,t,r){var i=r(472),n=r(889),s=r(593),o=r(784).EventEmitter,a=r(549),l=r(858),c=r(436),u=r(998),h=r(814),d=r(494),p=r(109),f=r(962);function m(e){this._eventEmitter=new o,this.options=s({},this.options,e),this.inputString="",this.fresh=!0,this.lastSelected=null,this.geolocation=new p}m.prototype={options:{zoom:16,flyTo:!0,trackProximity:!0,minLength:2,reverseGeocode:!1,flipCoordinates:!1,limit:5,origin:"https://api.mapbox.com",enableEventLogging:!0,marker:!0,mapboxgl:null,collapsed:!1,clearAndBlurOnEsc:!1,clearOnBlur:!1,enableGeolocation:!1,addressAccuracy:"street",useBrowserFocus:!1,getItemValue:function(e){return e.place_name},render:function(e){var t,r=(t=e.place_name,t?String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):"").split(",");return'<div class="mapboxgl-ctrl-geocoder--suggestion"><div class="mapboxgl-ctrl-geocoder--suggestion-title">'+r[0]+'</div><div class="mapboxgl-ctrl-geocoder--suggestion-address">'+r.splice(1,r.length).join(",")+"</div></div>"}},_headers:{},addTo:function(e){function t(e,t){if(!document.body.contains(t))throw new Error("Element provided to #addTo() exists, but is not in the DOM");const r=e.onAdd();t.appendChild(r)}if(e._controlContainer)e.addControl(this);else if(e instanceof HTMLElement)t(this,e);else{if("string"!=typeof e)throw new Error("Error: addTo must be a mapbox-gl-js map, an html element, or a CSS selector query for a single html element");{const r=document.querySelectorAll(e);if(0===r.length)throw new Error("Element ",e,"not found.");if(r.length>1)throw new Error("Geocoder can only be added to a single html element");t(this,r[0])}}},onAdd:function(e){if(e&&"string"!=typeof e&&(this._map=e),this.setLanguage(),this.options.localGeocoderOnly||(this.geocoderService=c(l({accessToken:this.options.accessToken,origin:this.options.origin}))),this.options.localGeocoderOnly&&!this.options.localGeocoder)throw new Error("A localGeocoder function must be specified to use localGeocoderOnly mode");this.eventManager=new u(this.options),this._onChange=this._onChange.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onPaste=this._onPaste.bind(this),this._onBlur=this._onBlur.bind(this),this._showButton=this._showButton.bind(this),this._hideButton=this._hideButton.bind(this),this._onQueryResult=this._onQueryResult.bind(this),this.clear=this.clear.bind(this),this._updateProximity=this._updateProximity.bind(this),this._collapse=this._collapse.bind(this),this._unCollapse=this._unCollapse.bind(this),this._clear=this._clear.bind(this),this._clearOnBlur=this._clearOnBlur.bind(this),this._geolocateUser=this._geolocateUser.bind(this),this._onSuggestionItemFocus=this._onSuggestionItemFocus.bind(this),this._onSuggestionItemKeyDown=this._onSuggestionItemKeydown.bind(this);var t=this.container=document.createElement("div");t.className="mapboxgl-ctrl-geocoder mapboxgl-ctrl";var r=this.createIcon("search",'<path d="M7.4 2.5c-2.7 0-4.9 2.2-4.9 4.9s2.2 4.9 4.9 4.9c1 0 1.8-.2 2.5-.8l3.7 3.7c.2.2.4.3.8.3.7 0 1.1-.4 1.1-1.1 0-.3-.1-.5-.3-.8L11.4 10c.4-.8.8-1.6.8-2.5.1-2.8-2.1-5-4.8-5zm0 1.6c1.8 0 3.2 1.4 3.2 3.2s-1.4 3.2-3.2 3.2-3.3-1.3-3.3-3.1 1.4-3.3 3.3-3.3z"/>');this._inputEl=document.createElement("input"),this._inputEl.type="text",this._inputEl.className="mapboxgl-ctrl-geocoder--input",this.setPlaceholder(),this.options.collapsed&&(this._collapse(),this.container.addEventListener("mouseenter",this._unCollapse),this.container.addEventListener("mouseleave",this._collapse),this._inputEl.addEventListener("focus",this._unCollapse)),(this.options.collapsed||this.options.clearOnBlur)&&this._inputEl.addEventListener("blur",this._onBlur),this._inputEl.addEventListener("keydown",n(this._onKeyDown,200)),this._inputEl.addEventListener("paste",this._onPaste),this._inputEl.addEventListener("change",this._onChange),this.container.addEventListener("mouseenter",this._showButton),this.container.addEventListener("mouseleave",this._hideButton),this._inputEl.addEventListener("keyup",function(e){this.eventManager.keyevent(e,this)}.bind(this));var s=document.createElement("div");s.classList.add("mapboxgl-ctrl-geocoder--pin-right"),this._clearEl=document.createElement("button"),this._clearEl.setAttribute("aria-label","Clear"),this._clearEl.addEventListener("click",this.clear),this._clearEl.className="mapboxgl-ctrl-geocoder--button";var o=this.createIcon("close",'<path d="M3.8 2.5c-.6 0-1.3.7-1.3 1.3 0 .3.2.7.5.8L7.2 9 3 13.2c-.3.3-.5.7-.5 1 0 .6.7 1.3 1.3 1.3.3 0 .7-.2 1-.5L9 10.8l4.2 4.2c.2.3.7.3 1 .3.6 0 1.3-.7 1.3-1.3 0-.3-.2-.7-.3-1l-4.4-4L15 4.6c.3-.2.5-.5.5-.8 0-.7-.7-1.3-1.3-1.3-.3 0-.7.2-1 .3L9 7.1 4.8 2.8c-.3-.1-.7-.3-1-.3z"/>');if(this._clearEl.appendChild(o),this._loadingEl=this.createIcon("loading",'<path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"/><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.
26 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"/>'),s.appendChild(this._clearEl),s.appendChild(this._loadingEl),t.appendChild(r),t.appendChild(this._inputEl),this.options.enableGeolocation&&this.geolocation.isSupport()){this._geolocateEl=document.createElement("button"),this._geolocateEl.setAttribute("aria-label","Geolocate"),this._geolocateEl.addEventListener("click",this._geolocateUser),this._geolocateEl.className="mapboxgl-ctrl-geocoder--button";var a=this.createIcon("geolocate",'<path d="M12.999 3.677L2.042 8.269c-.962.403-.747 1.823.29 1.912l5.032.431.431 5.033c.089 1.037 1.509 1.252 1.912.29l4.592-10.957c.345-.822-.477-1.644-1.299-1.299z" fill="#4264fb"/>');this._geolocateEl.appendChild(a),s.appendChild(this._geolocateEl),this._showGeolocateButton()}var h=this._typeahead=new i(this._inputEl,[],{hideOnBlur:!this.options.useBrowserFocus,filter:!1,minLength:this.options.minLength,limit:this.options.limit});t.insertBefore(s,h.list.wrapper),this.setRenderFunction(this.options.render),h.getItemValue=this.options.getItemValue;const d=this._typeahead.handleKeyDown.bind(this._typeahead),p=this._typeahead.handleKeyUp.bind(this._typeahead);this._typeahead.handleKeyUp,this.options.useBrowserFocus&&(this._typeahead.handleKeyDown=function(e){if(9!==e.keyCode||h.list.isEmpty())return 40===e.keyCode?(this._typeahead.list.active=0,this._typeahead.list.element.querySelectorAll("li").forEach((function(e){e.classList.remove("active")})),this._typeahead.list.element.querySelectorAll("li")[0].classList.add("active"),void this._typeahead.list.element.querySelectorAll("li")[0].focus()):38===e.keyCode?(this._typeahead.list.active=h.list.items.length-1,this._typeahead.list.element.querySelectorAll("li").forEach((function(e){e.classList.remove("active")})),this._typeahead.list.element.querySelectorAll("li")[this._typeahead.list.active].classList.add("active"),void this._typeahead.list.element.querySelectorAll("li")[this._typeahead.list.active].focus()):void d(e)}.bind(this),this._typeahead.handleKeyUp=function(e){e&&16===e.keyCode?e.preventDefault():p(e)});var f,m=h.list.draw,g=this._footerNode=((f=document.createElement("div")).className="mapboxgl-ctrl-geocoder--powered-by",f.innerHTML='<a href="https://www.mapbox.com/search-service" target="_blank">Powered by Mapbox</a>',f),y=this;return h.list.draw=function(){y.options.useBrowserFocus&&h.list.element.querySelectorAll("li").forEach((function(e){e.removeEventListener("focus",y._onSuggestionItemFocus),e.removeEventListener("keydown",y._onSuggestionItemKeyDown)})),m.call(this),y.options.useBrowserFocus&&h.list.element.querySelectorAll("li").forEach(function(e,t){0===t&&e.focus(),e.setAttribute("data-index",t),e.tabIndex=0,e.addEventListener("focus",this._onSuggestionItemFocus),e.addEventListener("keydown",this._onSuggestionItemKeyDown)}.bind(y)),g.addEventListener("mousedown",function(){this.selectingListItem=!0}.bind(this)),g.addEventListener("mouseup",function(){this.selectingListItem=!1}.bind(this)),this.element.appendChild(g)},this.mapMarker=null,this._handleMarker=this._handleMarker.bind(this),this._map&&(this.options.trackProximity&&(this._updateProximity(),this._map.on("moveend",this._updateProximity)),this._mapboxgl=this.options.mapboxgl,!this._mapboxgl&&this.options.marker&&(console.error("No mapboxgl detected in options. Map markers are disabled. Please set options.mapboxgl."),this.options.marker=!1)),t},_onSuggestionItemKeydown(e){const t=e.keyCode;if(9!==t)if(13===t){e.preventDefault();const t=this._typeahead.list.element.querySelector(".active");if(t){const e=t.getAttribute("data-index"),r=this._typeahead.list.items[e];r&&(this._typeahead.value(r.original),this._typeahead.list.hide())}}else if(38===t||40===t){const r=this._typeahead.list.element.querySelectorAll("li");if(r.length>0){if(38===t){if(!(this._typeahead.list.active>0))return void this._typeahead.el.focus();e.preventDefault(),this._typeahead.list.active--}else if(40===t){if(e.preventDefault(),!(this._typeahead.list.active<r.length-1))return;this._typeahead.list.active++}r.forEach((function(e){e.classList.remove("active")}));const i=r[this._typeahead.list.active];i&&(i.classList.add("active"),i.focus())}}},_onSuggestionItemFocus(e){this._typeahead.list.active=e.target.getAttribute("data-index"),this._typeahead.list.element.querySelectorAll("li").forEach((function(e){e.classList.remove("active")})),e.target.classList.add("active")},_geolocateUser:function(){this._hideGeolocateButton(),this._showLoadingIcon(),this.geolocation.getCurrentPosition().then(function(e){this._hideLoadingIcon();const t={geometry:{type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]}};this._handleMarker(t),this._fly(t),this._typeahead.clear(),this._typeahead.selected=!0,this.lastSelected=JSON.stringify(t),this._showClearButton(),this.fresh=!1;const r={limit:1,language:[this.options.language],query:t.geometry.coordinates,types:["address"]};if(this.options.localGeocoderOnly){const e=t.geometry.coordinates[0]+","+t.geometry.coordinates[1];this._setInputValue(e),this._eventEmitter.emit("result",{result:t})}else this.geocoderService.reverseGeocode(r).send().then(function(e){const r=e.body.features[0];if(r){const e=f.transformFeatureToGeolocationText(r,this.options.addressAccuracy);this._setInputValue(e),r.user_coordinates=t.geometry.coordinates,this._eventEmitter.emit("result",{result:r})}else this._eventEmitter.emit("result",{result:{user_coordinates:t.geometry.coordinates}})}.bind(this))}.bind(this)).catch(function(e){1===e.code?this._renderUserDeniedGeolocationError():this._renderLocationError(),this._hideLoadingIcon(),this._showGeolocateButton(),this._hideAttribution()}.bind(this))},createIcon:function(e,t){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("class","mapboxgl-ctrl-geocoder--icon mapboxgl-ctrl-geocoder--icon-"+e),r.setAttribute("viewBox","0 0 18 18"),r.setAttribute("xml:space","preserve"),r.setAttribute("width",18),r.setAttribute("height",18),r.innerHTML=t,r},onRemove:function(){return this.container.parentNode.removeChild(this.container),this.options.trackProximity&&this._map&&this._map.off("moveend",this._updateProximity),this._removeMarker(),this._map=null,this},_setInputValue:function(e){this._inputEl.value=e,setTimeout(function(){this._inputEl.focus(),this._inputEl.scrollLeft=0,this._inputEl.setSelectionRange(0,0)}.bind(this),1)},_onPaste:function(e){var t=(e.clipboardData||window.clipboardData).getData("text");t.length>=this.options.minLength&&this._geocode(t)},_onKeyDown:function(e){var t=27,r=9;if(e.keyCode===t&&this.options.clearAndBlurOnEsc)return this._clear(e),this._inputEl.blur();var i=e.target&&e.target.shadowRoot?e.target.shadowRoot.activeElement:e.target;if(!i||!i.value)return this.fresh=!0,e.keyCode!==r&&this.clear(e),this._showGeolocateButton(),this._hideClearButton();this._hideGeolocateButton(),e.metaKey||-1!==[r,t,37,39,13,38,40].indexOf(e.keyCode)||i.value.length>=this.options.minLength&&this._geocode(i.value)},_showButton:function(){this._typeahead.selected&&this._showClearButton()},_hideButton:function(){this._typeahead.selected&&this._hideClearButton()},_showClearButton:function(){this._clearEl.style.display="block"},_hideClearButton:function(){this._clearEl.style.display="none"},_showGeolocateButton:function(){this._geolocateEl&&this.geolocation.isSupport()&&(this._geolocateEl.style.display="block")},_hideGeolocateButton:function(){this._geolocateEl&&(this._geolocateEl.style.display="none")},_showLoadingIcon:function(){this._loadingEl.style.display="block"},_hideLoadingIcon:function(){this._loadingEl.style.display="none"},_showAttribution:function(){this._footerNode.style.display="block"},_hideAttribution:function(){this._footerNode.style.display="none"},_onBlur:function(e){this.options.clearOnBlur&&this._clearOnBlur(e),this.options.collapsed&&this._collapse()},_onChange:function(){var e=this._typeahead.selected;e&&JSON.stringify(e)!==this.lastSelected&&(this._hideClearButton(),this.options.flyTo&&this._fly(e),this.options.marker&&this._mapboxgl&&this._handleMarker(e),this._inputEl.focus(),this._inputEl.scrollLeft=0,this._inputEl.setSelectionRange(0,0),this.lastSelected=JSON.stringify(e),this._eventEmitter.emit("result",{result:e}),this.eventManager.select(e,this))},_fly:function(e){var t;if(e.properties&&a[e.properties.short_code])t=s({},this.options.flyTo),this._map&&this._map.fitBounds(a[e.properties.short_code].bbox,t);else if(e.bbox){var r=e.bbox;t=s({},this.options.flyTo),this._map&&this._map.fitBounds([[r[0],r[1]],[r[2],r[3]
2]],t)}else{var i={zoom:this.options.zoom};t=s({},i,this.options.flyTo),e.center?t.center=e.center:e.geometry&&e.geometry.type&&"Point"===e.geometry.type&&e.geometry.coordinates&&(t.center=e.geometry.coordinates),this._map&&this._map.flyTo(t)}},_requestType:function(e,t){return e.localGeocoderOnly?1:e.reverseGeocode&&f.REVERSE_GEOCODE_COORD_RGX.test(t)?2:0},_setupConfig:function(e,t){const r=/[\s,]+/;var i=this,n=["bbox","limit","proximity","countries","types","language","reverseMode","mode","autocomplete","fuzzyMatch","routing","worldview"].reduce((function(e,t){if(void 0===i.options[t]||null===i.options[t])return e;["countries","types","language"].indexOf(t)>-1?e[t]=i.options[t].split(r):e[t]=i.options[t];const n="number"==typeof i.options[t].longitude&&"number"==typeof i.options[t].latitude;if("proximity"===t&&n){const r=i.options[t].longitude,n=i.options[t].latitude;e[t]=[r,n]}return e}),{});switch(e){case 2:var o=t.split(r).map((function(e){return parseFloat(e,10)}));i.options.flipCoordinates||o.reverse(),!n.types||n.types[0],n=s(n,{query:o,limit:1}),["proximity","autocomplete","fuzzyMatch","bbox"].forEach((function(e){e in n&&delete n[e]}));break;case 0:{const e=t.trim();/^(-?\d{1,3}(\.\d{0,256})?)[, ]+(-?\d{1,3}(\.\d{0,256})?)?$/.test(e)&&(t=t.replace(/,/g," ")),n=s(n,{query:t})}}return n.session_token=this.eventManager.getSessionId(),n},_geocode:function(e){this.inputString=e,this._showLoadingIcon(),this._eventEmitter.emit("loading",{query:e});const t=this._requestType(this.options,e),r=this._setupConfig(t,e);var i;switch(t){case 1:i=Promise.resolve();break;case 0:i=this.geocoderService.forwardGeocode(r).send();break;case 2:i=this.geocoderService.reverseGeocode(r).send()}var n=this.options.localGeocoder&&this.options.localGeocoder(e)||[],s=[],o=null;return i.catch(function(e){o=e}.bind(this)).then(function(t){this._hideLoadingIcon();var i={};return t?"200"==t.statusCode&&((i=t.body).request=t.request,i.headers=t.headers,this._headers=t.headers):i={type:"FeatureCollection",features:[]},i.config=r,this.fresh&&(this.eventManager.start(this),this.fresh=!1),i.features&&i.features.length&&i.features.map((function(e){e._source="mapbox"})),i.features=i.features?n.concat(i.features):n,this.options.externalGeocoder?(s=this.options.externalGeocoder(e,i.features)||Promise.resolve([])).then((function(e){return i.features=i.features?e.concat(i.features):e,i}),(function(){return i})):i}.bind(this)).then(function(e){if(o)throw o;this.options.filter&&e.features.length&&(e.features=e.features.filter(this.options.filter)),e.features.length?(this._showClearButton(),this._hideGeolocateButton(),this._showAttribution(),this._eventEmitter.emit("results",e),this._typeahead.update(e.features)):(this._hideClearButton(),this._hideAttribution(),this._typeahead.selected=null,this._renderNoResults(),this._eventEmitter.emit("results",e))}.bind(this)).catch(function(e){this._hideLoadingIcon(),this._hideAttribution(),n.length&&this.options.localGeocoder||s.length&&this.options.externalGeocoder?(this._showClearButton(),this._hideGeolocateButton(),this._typeahead.update(n)):(this._hideClearButton(),this._typeahead.selected=null,this._renderError()),this._eventEmitter.emit("results",{features:n}),this._eventEmitter.emit("error",{error:e})}.bind(this)),i},_clear:function(e){e&&e.preventDefault(),this._inputEl.value="",this._typeahead.selected=null,this._typeahead.clear(),this.eventManager.sessionIncrementer++,this._onChange(),this._hideClearButton(),this._showGeolocateButton(),this._removeMarker(),this.lastSelected=null,this._eventEmitter.emit("clear"),this.fresh=!0},clear:function(e){this._clear(e),this._inputEl.focus(),this.options.useBrowserFocus&&this._typeahead.list.hide()},_clearOnBlur:function(e){e.relatedTarget&&this._clear(e)},_onQueryResult:function(e){var t=e.body;if(t.features.length){var r=t.features[0];this._typeahead.selected=r,this._inputEl.value=r.place_name,this._onChange()}},_updateProximity:function(){if(this._map&&this.options.trackProximity)if(this._map.getZoom()>9){var e=this._map.getCenter().wrap();this.setProximity({longitude:e.lng,latitude:e.lat},!1)}else this.setProximity(null,!1)},_collapse:function(){this._inputEl.value||this._inputEl===document.activeElement||this.container.classList.add("mapboxgl-ctrl-geocoder--collapsed")},_unCollapse:function(){this.container.classList.remove("mapboxgl-ctrl-geocoder--collapsed")},query:function(e){return this._geocode(e).then(this._onQueryResult),this},_renderError:function(){this._renderMessage("<div class='mapbox-gl-geocoder--error'>There was an error reaching the server</div>")},_renderLocationError:function(){this._renderMessage("<div class='mapbox-gl-geocoder--error'>A location error has occurred</div>")},_renderNoResults:function(){this._renderMessage("<div class='mapbox-gl-geocoder--error mapbox-gl-geocoder--no-results'>No results found</div>")},_renderUserDeniedGeolocationError:function(){this._renderMessage("<div class='mapbox-gl-geocoder--error'>Geolocation permission denied</div>")},_renderMessage:function(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)},_getPlaceholderText:function(){if(this.options.placeholder)return this.options.placeholder;if(this.options.language){var e=this.options.language.split(",")[0],t=d.language(e),r=h.placeholder[t];if(r)return r}return"Search"},setInput:function(e,t){return void 0===t&&(t=!1),this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&(t?this._geocode(e):this._onChange()),this},setProximity:function(e,t=!0){return this.options.proximity=e,t&&(this.options.trackProximity=!1),this},getProximity:function(){return this.options.proximity},setRenderFunction:function(e){return e&&"function"==typeof e&&(this._typeahead.render=e),this},getRenderFunction:function(){return this._typeahead.render},setLanguage:function(e){var t=navigator.language||navigator.userLanguage||navigator.browserLanguage;return this.options.language=e||this.options.language||t,this},getLanguage:function(){return this.options.language},getZoom:function(){return this.options.zoom},setZoom:function(e){return this.options.zoom=e,this},getFlyTo:function(){return this.options.flyTo},setFlyTo:function(e){return this.options.flyTo=e,this},getPlaceholder:function(){return this.options.placeholder},setPlaceholder:function(e){return this.options.placeholder=e||this._getPlaceholderText(),this._inputEl.placeholder=this.options.placeholder,this._inputEl.setAttribute("aria-label",this.options.placeholder),this},getBbox:function(){return this.options.bbox},setBbox:function(e){return this.options.bbox=e,this},getCountries:function(){return this.options.countries},setCountries:function(e){return this.options.countries=e,this},getTypes:function(){return this.options.types},setTypes:function(e){return this.options.types=e,this},getMinLength:function(){return this.options.minLength},setMinLength:function(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this},getLimit:function(){return this.options.limit},setLimit:function(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this},getFilter:function(){return this.options.filter},setFilter:function(e){return this.options.filter=e,this},setOrigin:function(e){return this.options.origin=e,this.geocoderService=c(l({accessToken:this.options.accessToken,origin:this.options.origin})),this},getOrigin:function(){return this.options.origin},setAccessToken:function(e){return this.options.accessToken=e,this.geocoderService=c(l({accessToken:this.options.accessToken,origin:this.options.origin})),this},setAutocomplete:function(e){return this.options.autocomplete=e,this},getAutocomplete:function(){return this.options.autocomplete},setFuzzyMatch:function(e){return this.options.fuzzyMatch=e,this},getFuzzyMatch:function(){return this.options.fuzzyMatch},setRouting:function(e){return this.options.routing=e,this},getRouting:function(){return this.options.routing},setWorldview:function(e){return this.options.worldview=e,this},getWorldview:function(){return this.options.worldview},_handleMarker:function(e){if(this._map){this._removeMarker();var t=s({},{color:"#4668F2"},this.options.marker);return this.mapMarker=new this._mapboxgl.Marker(t),e.center?this.mapMarker.setLngLat(e.center).addTo(this._map):e.geometry&&e.geometry.type&&"Point"===e.geometry.type&&e.geometry.coordinates&&this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this}},_removeMarker:function(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)},on:function(e,t){return this._eventEmitter.on(e,t),this},off:function(e,t){return this._eventEmitter.removeListener(e,t),this.eventManager.remove(),this}},e.exports=m},814(e){e.exports={placeholder:{de:"Suche",it:"Ricerca",en:"Search",nl:"Zoeken",fr:"Chercher",ca:"Cerca",he:"××פש",ja:"ãµã¼ã",lv:"MeklÄt",pt:"Procurar",sr:"ÐÑеÑÑага",zh:"æç´¢",cs:"VyhledávánÃ",hu:"Keresés",ka:"á«áááá",nb:"Søke",sk:"Vyhľadávanie",th:"à¸à¹à¸à¸«à¸²",fi:"Hae",is:"Leita",ko:"ìì",pl:"Szukaj",
2sl:"Iskanje",fa:"جستجÙ",ru:"ÐоиÑк"}}},962(e){function t(e){const t=e.address||"",r=e.text||"",i=e.place_name||"",n={address:i.split(",")[0],houseNumber:t,street:r,placeName:i};return e.context.forEach((function(e){const t=e.id.split(".")[0];n[t]=e.text})),n}e.exports={transformFeatureToGeolocationText:function(e,r){const i=t(e),n=["address","street","place","country"];if("function"==typeof r)return r(i);const s=n.indexOf(r);return(-1===s?n:n.slice(s)).reduce((function(e,t){return i[t]?(""!==e&&(e+=", "),e+i[t]):e}),"")},getAddressInfo:t,REVERSE_GEOCODE_COORD_RGX:/^[ ]*(-?\d{1,3}(\.\d{0,256})?)[, ]+(-?\d{1,3}(\.\d{0,256})?)[ ]*$/}},858(e,t,r){var i=r(1);e.exports=i},1(e,t,r){var i=r(937),n=r(514);function s(e){n.call(this,e)}s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.prototype.sendRequest=i.browserSend,s.prototype.abortRequest=i.browserAbort,e.exports=function(e){return new s(e)}},937(e,t,r){var i=r(894),n=r(171),s=r(71),o=r(992),a={};function l(e){var t=e.total,r=e.loaded;return{total:t,transferred:r,percent:100*r/t}}function c(e,t){return new Promise((function(r,i){t.onprogress=function(t){e.emitter.emit(s.EVENT_PROGRESS_DOWNLOAD,l(t))};var o=e.file;o&&(t.upload.onprogress=function(t){e.emitter.emit(s.EVENT_PROGRESS_UPLOAD,l(t))}),t.onerror=function(e){i(e)},t.onabort=function(){var t=new n({request:e,type:s.ERROR_REQUEST_ABORTED});i(t)},t.onload=function(){if(delete a[e.id],t.status<200||t.status>=400){var s=new n({request:e,body:t.response,statusCode:t.status});i(s)}else r(t)};var c=e.body;"string"==typeof c?t.send(c):c?t.send(JSON.stringify(c)):o?t.send(o):t.send(),a[e.id]=t})).then((function(t){return function(e,t){return new i(e,{body:t.response,headers:o(t.getAllResponseHeaders()),statusCode:t.status})}(e,t)}))}function u(e,t){var r=e.url(t),i=new window.XMLHttpRequest;return i.open(e.method,r),Object.keys(e.headers).forEach((function(t){i.setRequestHeader(t,e.headers[t])})),i}e.exports={browserAbort:function(e){var t=a[e.id];t&&(t.abort(),delete a[e.id])},sendRequestXhr:c,browserSend:function(e){return Promise.resolve().then((function(){var t=u(e,e.client.accessToken);return c(e,t)}))},createRequestXhr:u}},514(e,t,r){var i=r(531),n=r(852),s=r(71);function o(e){if(!e||!e.accessToken)throw new Error("Cannot create a client without an access token");i(e.accessToken),this.accessToken=e.accessToken,this.origin=e.origin||s.API_ORIGIN}o.prototype.createRequest=function(e){return new n(this,e)},e.exports=o},171(e,t,r){var i=r(71);e.exports=function(e){var t,r=e.type||i.ERROR_HTTP;if(e.body)try{t=JSON.parse(e.body)}catch(r){t=e.body}else t=null;var n=e.message||null;n||("string"==typeof t?n=t:t&&"string"==typeof t.message?n=t.message:r===i.ERROR_REQUEST_ABORTED&&(n="Request aborted")),this.message=n,this.type=r,this.statusCode=e.statusCode||null,this.request=e.request,this.body=t}},852(e,t,r){var i=r(531),n=r(593),s=r(239),o=r(85),a=r(71),l=1;function c(e,t){if(!e)throw new Error("MapiRequest requires a client");if(!t||!t.path||!t.method)throw new Error("MapiRequest requires an options object with path and method properties");var r={};t.body&&(r["content-type"]="application/json");var i=n(r,t.headers),o=Object.keys(i).reduce((function(e,t){return e[t.toLowerCase()]=i[t],e}),{});this.id=l++,this._options=t,this.emitter=new s,this.client=e,this.response=null,this.error=null,this.sent=!1,this.aborted=!1,this.path=t.path,this.method=t.method,this.origin=t.origin||e.origin,this.query=t.query||{},this.params=t.params||{},this.body=t.body||null,this.file=t.file||null,this.encoding=t.encoding||"utf8",this.sendFileAs=t.sendFileAs||null,this.headers=o}c.prototype.url=function(e){var t=o.prependOrigin(this.path,this.origin);t=o.appendQueryObject(t,this.query);var r=this.params,s=null==e?this.client.accessToken:e;if(s){t=o.appendQueryParam(t,"access_token",s);var a=i(s).user;r=n({ownerId:a},r)}return t=o.interpolateRouteParams(t,r)},c.prototype.send=function(){var e=this;if(e.sent)throw new Error("This request has already been sent. Check the response and error properties. Create a new request with clone().");return e.sent=!0,e.client.sendRequest(e).then((function(t){return e.response=t,e.emitter.emit(a.EVENT_RESPONSE,t),t}),(function(t){throw e.error=t,e.emitter.emit(a.EVENT_ERROR,t),t}))},c.prototype.abort=function(){this._nextPageRequest&&(this._nextPageRequest.abort(),delete this._nextPageRequest),this.response||this.error||this.aborted||(this.aborted=!0,this.client.abortRequest
2(this))},c.prototype.eachPage=function(e){var t=this;function r(r){e(null,r,(function(){delete t._nextPageRequest;var e=r.nextPage();e&&(t._nextPageRequest=e,n(e))}))}function i(t){e(t,null,(function(){}))}function n(e){e.send().then(r,i)}n(this)},c.prototype.clone=function(){return this._extend()},c.prototype._extend=function(e){var t=n(this._options,e);return new c(this.client,t)},e.exports=c},894(e,t,r){var i=r(740);function n(e,t){this.request=e,this.headers=t.headers,this.rawBody=t.body,this.statusCode=t.statusCode;try{this.body=JSON.parse(t.body||"{}")}catch(e){this.body=t.body}this.links=i(this.headers.link)}n.prototype.hasNextPage=function(){return!!this.links.next},n.prototype.nextPage=function(){return this.hasNextPage()?this.request._extend({path:this.links.next.url}):null},e.exports=n},71(e){e.exports={API_ORIGIN:"https://api.mapbox.com",EVENT_PROGRESS_DOWNLOAD:"downloadProgress",EVENT_PROGRESS_UPLOAD:"uploadProgress",EVENT_ERROR:"error",EVENT_RESPONSE:"response",ERROR_HTTP:"HttpError",ERROR_REQUEST_ABORTED:"RequestAbortedError"}},992(e){e.exports=function(e){var t={};return e?(e.trim().split(/[\r|\n]+/).forEach((function(e){var r=function(e){var t=e.indexOf(":");return{name:e.substring(0,t).trim().toLowerCase(),value:e.substring(t+1).trim()}}(e);t[r.name]=r.value})),t):t}},740(e){e.exports=function(e){return e?e.split(/,\s*</).reduce((function(e,t){var r=function(e){var t=e.match(/<?([^>]*)>(.*)/);if(!t)return null;var r=t[1],i=t[2].split(";"),n=null,s=i.reduce((function(e,t){var r=function(e){var t=e.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return t?{key:t[1],value:t[2]}:null}(t);return r?"rel"===r.key?(n||(n=r.value),e):(e[r.key]=r.value,e):e}),{});return n?{url:r,rel:n,params:s}:null}(t);return r?(r.rel.split(/\s+/).forEach((function(t){e[t]||(e[t]={url:r.url,params:r.params})})),e):e}),{}):{}}},85(e){function t(e){return Array.isArray(e)?e.map(encodeURIComponent).join(","):encodeURIComponent(String(e))}function r(e,r,i){if(!1===i||null===i)return e;var n=/\?/.test(e)?"&":"?",s=encodeURIComponent(r);return void 0!==i&&""!==i&&!0!==i&&(s+="="+t(i)),""+e+n+s}e.exports={appendQueryObject:function(e,t){if(!t)return e;var i=e;return Object.keys(t).forEach((function(e){var n=t[e];void 0!==n&&(Array.isArray(n)&&(n=n.filter((function(e){return null!=e})).join(",")),i=r(i,e,n))})),i},appendQueryParam:r,prependOrigin:function(e,t){if(!t)return e;if("http"===e.slice(0,4))return e;var r="/"===e[0]?"":"/";return""+t.replace(/\/$/,"")+r+e},interpolateRouteParams:function(e,r){return r?e.replace(/\/:([a-zA-Z0-9]+)/g,(function(e,i){var n=r[i];if(void 0===n)throw new Error("Unspecified route parameter "+i);return"/"+t(n)})):e}}},436(e,t,r){var i=r(593),n=r(145),s=r(266),o=r(162),a=r(482),l={},c=["country","region","postcode","district","place","locality","neighborhood","address","poi","poi.landmark"];l.forwardGeocode=function(e){n.assertShape({query:n.required(n.string),mode:n.oneOf("mapbox.places","mapbox.places-permanent"),countries:n.arrayOf(n.string),proximity:n.oneOf(n.coordinates,"ip"),types:n.arrayOf(n.oneOf(c)),autocomplete:n.boolean,bbox:n.arrayOf(n.number),limit:n.number,language:n.arrayOf(n.string),routing:n.boolean,fuzzyMatch:n.boolean,worldview:n.string,
2session_token:n.string})(e),e.mode=e.mode||"mapbox.places";var t=o(i({country:e.countries},s(e,["proximity","types","autocomplete","bbox","limit","language","routing","fuzzyMatch","worldview","session_token"])));return this.client.createRequest({method:"GET",path:"/geocoding/v5/:mode/:query.json",params:s(e,["mode","query"]),query:t})},l.reverseGeocode=function(e){n.assertShape({query:n.required(n.coordinates),mode:n.oneOf("mapbox.places","mapbox.places-permanent"),countries:n.arrayOf(n.string),types:n.arrayOf(n.oneOf(c)),bbox:n.arrayOf(n.number),limit:n.number,language:n.arrayOf(n.string),reverseMode:n.oneOf("distance","score"),routing:n.boolean,worldview:n.string,session_token:n.string})(e),e.mode=e.mode||"mapbox.places";var t=o(i({country:e.countries},s(e,["country","types","bbox","limit","language","reverseMode","routing","worldview","session_token"])));return this.client.createRequest({method:"GET",path:"/geocoding/v5/:mode/:query.json",params:s(e,["mode","query"]),query:t})},e.exports=a(l)},482(e,t,r){var i=r(514),n=r(1);e.exports=function(e){return function(t){var r;r=i.prototype.isPrototypeOf(t)?t:n(t);var s=Object.create(e);return s.client=r,s}}},359(e){e.exports=function(e,t){return Object.keys(e).reduce((function(r,i){return r[i]=t(i,e[i]),r}),{})}},266(e){e.exports=function(e,t){var r=function(e,r){return-1!==t.indexOf(e)&&void 0!==r};return"function"==typeof t&&(r=t),Object.keys(e).filter((function(t){return r(t,e[t])})).reduce((function(t,r){return t[r]=e[r],t}),{})}},162(e,t,r){var i=r(359);e.exports=function(e){return i(e,(function(e,t){return"boolean"==typeof t?JSON.stringify(t):t}))}},145(e,t,r){var i=r(593),n=r(261);e.exports=i(n,{file:function(e){if("undefined"!=typeof window){if(e instanceof r.g.Blob||e instanceof r.g.ArrayBuffer)return;return"Blob or ArrayBuffer"}if("string"!=typeof e&&void 0===e.pipe)return"Filename or Readable stream"},date:function(e){var t="date";if("boolean"==typeof e)return t;try{var r=new Date(e);if(r.getTime&&isNaN(r.getTime()))return t}catch(e){return t}},coordinates:function(e){return n.tuple(n.number,n.number)(e)},assertShape:function(e,t){return n.assert(n.strictShape(e),t)}})},531(e,t,r){var i=r(397),n={};function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){if(n[e])return n[e];var t=e.split("."),r=t[0],o=t[1];if(!o)throw new Error("Invalid token");var a=function(e){try{return JSON.parse(i.decode(e))}catch(e){throw new Error("Invalid token")}}(o),l={usage:r,user:a.u};return s(a,"a")&&(l.authorization=a.a),s(a,"exp")&&(l.expires=1e3*a.exp),s(a,"iat")&&(l.created=1e3*a.iat),s(a,"scopes")&&(l.scopes=a.scopes),s(a,"client")&&(l.client=a.client),s(a,"ll")&&(l.lastLogin=a.ll),s(a,"iu")&&(l.impersonator=a.iu),n[e]=l,l}},397(e,t,r){var i;e=r.nmd(e),function(){var n=(e&&e.exports,"object"==typeof r.g&&r.g);n.global!==n&&n.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var o=function(e){throw new s(e)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&o("The string to be encoded contains characters outside of the Latin1 range.");for(var t,r,i,n,s=e.length%3,l="",c=-1,u=e.length-s;++c<u;)t=e.charCodeAt(c)<<16,r=e.charCodeAt(++c)<<8,i=e.charCodeAt(++c),l+=a.charAt((n=t+r+i)>>18&63)+a.charAt(n>>12&63)+a.charAt(n>>6&63)+a.charAt(63&n);return 2==s?(t=e.charCodeAt(c)<<8,r=e.charCodeAt(++c),l+=a.charAt((n=t+r)>>10)+a.charAt(n>>4&63)+a.charAt(n<<2&63)+"="):1==s&&(n=e.charCodeAt(c),l+=a.charAt(n>>2)+a.charAt(n<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&o("Invalid character: the string to be decoded is not correctly encoded.");for(var r,i,n=0,s="",c=-1;++c<t;)i=a.indexOf(e.charAt(c)),r=n%4?64*r+i:i,n++%4&&(s+=String.fromCharCode(255&r>>(-2*n&6)));return s},version:"0.1.0"};void 0===(i=function(){return c}.call(t,r,t,e))||(e.exports=i)}()},239(e){var t=Object.prototype.hasOwnProperty,r="~";function i(){}function n(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,i,s,o){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new n(i,s||e,o),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,i,n=[];if(0===this._eventsCount)return n;for(i in e=this._events)t.call(e,i)&&n.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(e){var t=r?r+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,s=i.length,o=new Array(s);n<s;n++)o[n]=i[n].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,i=this._events[t];return i?i.fn?1:i.length:0},a.prototype.emit=function(e,t,i,n,s,o){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,n),!0;case 5:return u.fn.call(u.context,t,i,n,s),!0;case 6:return u.fn.call(u.context,t,i,n,s,o),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,i);break;case 4:u[c].fn.call(u[c].context,t,i,n);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,r){return s(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return s(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,i,n){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||n&&!a.once||i&&a.context!==i||o(this,s);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||n&&!a[l].once||i&&a[l].context!==i)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},784(e){var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(r,i){function n(r){e.removeListener(t,s),i(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}m(e,t,s,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,n)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var n,s,o,c;if(a(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),o=s[t]),void 0===o)o=s[t]=r,++e._eventsCount;else if("function"==typeof o?o=s[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),(n=l(e))>0&&o.length>n&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=u.bind(i);return n.listener=r,i.wrapFn=n,n}function d(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(n):f(n,n.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}
2function m(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function n(s){i.once&&e.removeEventListener(t,n),r(s)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,s=this._events;if(void 0!==s)n=n&&void 0===s.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=f(l,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return a(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,i,n,s,o;if(a(t),void 0===(i=this._events))return this;if(void 0===(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,n=s;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,s=Object.keys(r);for(i=0;i<s.length;++i)"removeListener"!==(n=s[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},727(e){var t;t={},e.exports=t,t.simpleFilter=function(e,r){return r.filter((function(r){return t.test(e,r)}))},t.test=function(e,r){return null!==t.match(e,r)},t.match=function(e,t,r){r=r||{};var i,n=0,s=[],o=t.length,a=0,l=0,c=r.pre||"",u=r.post||"",h=r.caseSensitive&&t||t.toLowerCase();e=r.caseSensitive&&e||e.toLowerCase();for(var d=0;d<o;d++)i=t[d],h[d]===e[n]?(i=c+i+u,n+=1,l+=1+l):l=0,a+=l,s[s.length]=i;return n===e.length?(a=h===e?1/0:a,{rendered:s.join(""),score:a}):null},t.filter=function(e,r,i){return r&&0!==r.length?"string"!=typeof e?r:(i=i||{},r.reduce((function(r,n,s,o){var a=n;i.extract&&(a=i.extract(n));var l=t.match(e,a,i);return null!=l&&(r[r.length]={string:l.rendered,score:l.score,index:s,original:n}),r}),[]).sort((function(e,t){return t.score-e.score||e.index-t.index}))):[]}},977(e){var t=Object.prototype.toString;e.exports=function(e){var r;return"[object Object]"===t.call(e)&&(null===(r=Object.getPrototypeOf(e))||r===Object.getPrototypeOf({}))}},889(e,t,r){var i=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),h=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=s.test(e);return r||o.test(e)?a(e.slice(2),r?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,r){var i,n,s,o,a,l,c=0,u=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=i,s=n;return i=n=void 0,c=t,o=e.apply(s,r)}function _(e){var r=e-l;return void 0===l||r>=t||r<0||h&&e-c>=s}function b(){var e=f();if(_(e))return x(e);a=setTimeout(b,function(e){var r=t-(e-l);return h?p(r,s-(e-c)):r}(e))}function x(e){return a=void 0,y&&i?v(e):(i=n=void 0,o)}function w(){var e=f(),r=_(e);if(i=arguments,n=this,l=e,r){if(void 0===a)return function(e){return c=e,a=setTimeout(b,t),u?v(e):o}(l);if(h)return a=setTimeout(b,t),v(l)}return void 0===a&&(a=setTimeout(b,t)),o}return t=g(t)||0,m(r)&&(u=!!r.leading,s=(h="maxWait"in r)?d(g(r.maxWait)||0,t):s,y="trailing"in r?!!r.trailing:y),w.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=n=a=void 0},w.flush=function(){return void 0===a?o:x(f())},w}},79(e,t){var r,i;r=this,i=function(){var e,t,r;function i(i,n){if(e)if(t){var s="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",o={};e(o),r=n(o),"undefined"!=typeof window&&window&&window.URL&&window.URL.createObjectURL&&(r.workerUrl=window.URL.createObjectURL(new Blob([s],{type:"text/javascript"})))}else t=n;else e=n}return i(0,(function(e){var t="undefined"!=typeof self?self:{},r="3.0.1";let i;const n={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==i){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{i=null!={NODE_ENV:"production"}.API_URL_REGEX?new RegExp({NODE_ENV:"production"}.API_URL_REGEX):e}catch(t){i=e}}return i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!n.API_URL)return null;try{const e=new URL(n.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},s={supported:!1,testSupport:function(e){!l&&a&&(c?u(e):o=e)}};let o,a,l=!1,c=!1;function u(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.isContextLost())return;s.supported=!0}
2catch(e){}e.deleteTexture(t),l=!0}t.document&&(a=t.document.createElement("img"),a.onload=function(){o&&u(o),o=null,c=!0},a.onerror=function(){l=!0,o=null},a.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const h="01";function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p=f;function f(e,t,r,i){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(i-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=r,this.p2y=i}f.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,i=0;i<8;i++){var n=this.sampleCurveX(r)-e;if(Math.abs(n)<t)return r;var s=this.sampleCurveDerivativeX(r);if(Math.abs(s)<1e-6)break;r-=n/s}var o=0,a=1;for(r=e,i=0;i<20&&(n=this.sampleCurveX(r),!(Math.abs(n-e)<t));i++)e>n?o=r:a=r,r=.5*(a-o)+o;return r},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var m=d(p),g=y;function y(e,t){this.x=e,this.y=t}y.prototype={clone:function(){return new y(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},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(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),r=Math.sin(e),i=r*this.x+t*this.y;return this.x=t*this.x-r*this.y,this.y=i,this},_rotateAround:function(e,t){var r=Math.cos(e),i=Math.sin(e),n=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=t.x+r*(this.x-t.x)-i*(this.y-t.y),this.y=n,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},y.convert=function(e){return e instanceof y?e:Array.isArray(e)?new y(e[0],e[1]):e};var v=d(g);function _(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!_(e[r],t[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!_(e[r],t[r]))return!1;return!0}return e===t}const b=Math.PI/180,x=180/Math.PI;function w(e){return e*b}function A(e){return e*x}const E=[[0,0],[1,0],[1,1],[0,1]];function S(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function T(e){let t=1/0,r=1/0,i=-1/0,n=-1/0;for(const s of e)t=Math.min(t,s.x),r=Math.min(r,s.y),i=Math.max(i,s.x),n=Math.max(n,s.y);return{min:new v(t,r),max:new v(i,n)}}function C(e,t,r=0,i=!0){const n=new v(r,r),s=e.sub(n),o=t.add(n),a=[s,new v(o.x,s.y),o,new v(s.x,o.y)];return i&&a.push(s.clone()),a}
2function I(e,t,r,i){const n=new m(e,t,r,i);return function(e){return n.solve(e)}}const P=I(.25,.1,.25,1);function M(e,t,r){return Math.min(r,Math.max(t,e))}function k(e,t,r){return(r=M((r-e)/(t-e),0,1))*r*(3-2*r)}function O(e,t,r){const i=r-t,n=((e-t)%i+i)%i+t;return n===t?r:n}function R(e,t,r){if(!e.length)return r(null,[]);let i=e.length;const n=new Array(e.length);let s=null;e.forEach(((e,o)=>{t(e,((e,t)=>{e&&(s=e),n[o]=t,0==--i&&r(s,n)}))}))}function D(e){const t=[];for(const r in e)t.push(e[r]);return t}function L(e,...t){for(const r of t)for(const t in r)e[t]=r[t];return e}function B(e,t){const r={};for(let i=0;i<t.length;i++){const n=t[i];n in e&&(r[n]=e[n])}return r}let z=1;function j(){return z++}function F(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function N(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function U(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function V(e,t){e.forEach((e=>{t[e]&&(t[e]=t[e].bind(t))}))}function G(e,t){return-1!==e.indexOf(t,e.length-t.length)}function q(e,t,r){const i={};for(const n in e)i[n]=t.call(r||this,e[n],n,e);return i}function H(e,t,r){const i={};for(const n in e)t.call(r||this,e[n],n,e)&&(i[n]=e[n]);return i}function W(e){return Array.isArray(e)?e.map(W):"object"==typeof e&&e?q(e,W):e}const Y={};function Q(e){Y[e]||("undefined"!=typeof console&&console.warn(e),Y[e]=!0)}function Z(e,t,r){return(r.y-e.y)*(t.x-e.x)>(t.y-e.y)*(r.x-e.x)}function X(e){let t=0;for(let r,i,n=0,s=e.length,o=s-1;n<s;o=n++)r=e[n],i=e[o],t+=(i.x-r.x)*(r.y+i.y);return t}function K([e,t,r]){const i=w(t+90),n=w(r);return{x:e*Math.cos(i)*Math.sin(n),y:e*Math.sin(i)*Math.sin(n),z:e*Math.cos(n),azimuthal:t,polar:r}}function J(e,t,r){const i=Math.sqrt(e*e+t*t+r*r),n=i>0?Math.acos(r/i)*x:0;let s=0!==e||0!==t?Math.atan2(-t,-e)*x+90:0;return s<0&&(s+=360),[i,s,n]}function $(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function ee(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,r,i,n)=>{const s=i||n;return t[r]=!s||s.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let te=null;function re(){return!!t.document.fullscreenElement||!!t.document.webkitFullscreenElement}function ie(e){try{const r=t[e];return r.setItem("_mapbox_test_",1),r.removeItem("_mapbox_test_"),!0}catch(e){return!1}}function ne(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function se(e,t,r){e[4*t+0]=r[0],e[4*t+1]=r[1],e[4*t+2]=r[2],e[4*t+3]=r[3]}function oe(e,t){return[Math.pow(e[0],2.2)*t,Math.pow(e[1],2.2)*t,Math.pow(e[2],2.2)*t]}function ae(e){return[Math.pow(e[0],1/2.2),Math.pow(e[1],1/2.2),Math.pow(e[2],1/2.2)]}const le="mapbox-tiles";let ce,ue,he=500,de=50;function pe(){try{return t.caches}catch(e){}}function fe(){pe()&&!ce&&(ce=t.caches.open(le))}function me(e){const t=e.indexOf("?");if(t<0)return e;const r=function(e){const t=e.indexOf("?");return t>0?e.slice(t+1).split("&"):[]}(e),i=r.filter((e=>{const t=e.split("=");return"language"===t[0]||"worldview"===t[0]}));return i.length?`${e.slice(0,t)}?${i.join("&")}`:e.slice(0,t)}let ge=1/0;function ye(e){ge++,ge>de&&(e.getActor().send("enforceCacheSizeLimit",he),ge=0)}const ve={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};"function"==typeof Object.freeze&&Object.freeze(ve);class _e extends Error{constructor(e,t,r){401===t&&Oe(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const be=$()?()=>self.worker&&self.worker.referrer:()=>("blob:"===t.location.protocol?t.parent:t).location.href,xe=function(e,r){if(!(/^file:/.test(i=e.url)||/^file:/.test(be())&&!/^\w+:/.test(i))){if(t.fetch&&t.Request&&t.AbortController&&t.Request.prototype.hasOwnProperty("signal"))return function(e,r){const i=new t.AbortController,n=new t.Request
vendor: 8,511 bytes, line 2
2(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:be(),referrerPolicy:e.referrerPolicy,signal:i.signal});let s=!1,o=!1;const a=(l=n.url).indexOf("sku=")>0&&Oe(l);var l;"json"===e.type&&n.headers.set("Accept","application/json");const c=(i,s,l)=>{if(o)return;if(i&&"SecurityError"!==i.message&&Q(i.toString()),s&&l)return u(s);const c=Date.now();t.fetch(n).then((t=>{if(t.ok){const e=a?t.clone():null;return u(t,e,c)}return r(new _e(t.statusText,t.status,e.url))})).catch((t=>{"AbortError"!==t.name&&r(new Error(`${t.message} ${e.url}`))}))},u=(i,a,l)=>{("arrayBuffer"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then((e=>{o||(a&&l&&function(e,r,i){if(fe(),!ce)return;const n={status:r.status,statusText:r.statusText,headers:new t.Headers};r.headers.forEach(((e,t)=>n.headers.set(t,e)));const s=ee(r.headers.get("Cache-Control")||"");if(s["no-store"])return;s["max-age"]&&n.headers.set("Expires",new Date(i+1e3*s["max-age"]).toUTCString());const o=n.headers.get("Expires");o&&(new Date(o).getTime()-i<42e4||function(e,t){if(void 0===ue)try{new Response(new ReadableStream),ue=!0}catch(e){ue=!1}ue?t(e.body):e.blob().then(t)}(r,(r=>{const i=new t.Response(r,n);fe(),ce&&ce.then((t=>t.put(me(e.url),i))).catch((e=>Q(e.message)))})))}(n,a,l),s=!0,r(null,e,i.headers.get("Cache-Control"),i.headers.get("Expires")))})).catch((e=>{o||r(new Error(e.message))}))};return a?function(e,t){if(fe(),!ce)return t(null);const r=me(e.url);ce.then((e=>{e.match(r).then((i=>{const n=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),r=ee(e.headers.get("Cache-Control")||"");return t>Date.now()&&!r["no-cache"]}(i);e.delete(r),n&&e.put(r,i.clone()),t(null,i,n)})).catch(t)})).catch(t)}(n,c):c(null,null),{cancel:()=>{o=!0,s||i.abort()}}}(e,r);if($()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,r,void 0,!0)}var i;return function(e,r){const i=new t.XMLHttpRequest;i.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(i.responseType="arraybuffer");for(const t in e.headers)i.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=()=>{r(new Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let t=i.response;if("json"===e.type)try{t=JSON.parse(i.response)}catch(e){return r(e)}r(null,t,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else r(new _e(i.statusText,i.status,e.url))},i.send(e.body),{cancel:()=>i.abort()}}(e,r)},we=function(e,t){return xe(L(e,{type:"json"}),t)},Ae=function(e,t){return xe(L(e,{type:"arrayBuffer"}),t)};function Ee(e){const r=t.document.createElement("a");return r.href=e,r.protocol===t.document.location.protocol&&r.host===t.document.location.host}const Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Te,Ce;Te=[],Ce=0;const Ie=function(e,r){if(s.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Ce>=n.MAX_PARALLEL_IMAGE_REQUESTS){const t={requestParameters:e,callback:r,cancelled:!1,cancel(){this.cancelled=!0}};return Te.push(t),t}Ce++;let i=!1;const o=()=>{if(!i)for(i=!0,Ce--;Te.length&&Ce<n.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Te.shift(),{requestParameters:t,callback:r,cancelled:i}=e;i||(e.cancel=Ie(t,r).cancel)}},a=Ae(e,((e,i,n,s)=>{o(),e?r(e):i&&(t.createImageBitmap?function(e,r){const i=new t.Blob([new Uint8Array(e)],{type:"image/png"});t.createImageBitmap(i).then((e=>{r(null,e)})).catch((e=>{r(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))}))}(i,((e,t)=>r(e,t,n,s))):function(e,r){const i=new t.Image,n=t.URL;i.onload=()=>{r(null,i),n.revokeObjectURL(i.src),i.onload=null,t.requestAnimationFrame((()=>{i.src=Se}))},i.onerror=()=>r(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."));const s=new t.Blob([new Uint8Array(e)],{type:"image/png"});i.src=e.byteLength?n.createObjectURL(s):Se}(i,((e,t)=>r(e,t,n,s))))}));return{cancel:()=>{a.cancel(),o()}}},Pe="NO_ACCESS_TOKEN";class Me{constructor(e,t,r){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!r,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",h,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,t){if(!ke(e))return e;const i=ze(e);return i.params.push(`sdk=js-${r}`),i.path=`/styles/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||t)}normalizeGlyphsURL(e,t){if(!ke(e))return e;const r=ze(e);return r.path=`/fonts/v1${r.path}`,this._makeAPIURL(r,this._customAccessToken||t)}normalizeModelURL(e,t){if(!ke(e))return e;const r=ze(e);return r.path=`/models/v1${r.path}`,this._makeAPIURL(r,this._customAccessToken||t)}normalizeSourceURL(e,t,r,i){if(!ke(e))return e;const n=ze(e);return n.path=`/v4/${n.authority}.json`,n.params.push("secure"),r&&n.params.push(`language=${r}`),i&&n.params.push(`worldview=${i}`),this._makeAPIURL(n,this._customAccessToken||t)}normalizeSpriteURL(e,t,r,i){const n=ze(e);return ke(e)?(n.path=`/styles/v1${n.path}/sprite${t}${r}`,this._makeAPIURL(n,this._customAccessToken||i)):(n.path+=`${t}${r}`,je(n))}normalizeTileURL(e,t,r){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!ke(e))return e;const i=ze(e);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${t||r&&"raster"!==i.authority&&512===r?"@2x":""}${s.supported?".webp":"$1"}`),"raster"===i.authority?i.path=`/${n.RASTER_URL_PREFIX}${i.path}`:(i.path=i.path.replace(/^.+\/v4\//,"/"),i.path=`/${n.TILE_URL_VERSION}${i.path}`);const o=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(i.params)||n.ACCESS_TOKEN;return n.REQUIRE_ACCESS_TOKEN&&o&&this._skuToken&&i.params.push(`sku=${this._skuToken}`),this._makeAPIURL(i,o)}canonicalizeTileURL(e,t){const r=ze(e);if(!r.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!r.path.match(/\.[\w]+$/))return e;let i="mapbox://";r.path.match(/^\/raster\/v1\//)?i+=`raster/${r.path.replace(`/${n.RASTER_URL_PREFIX}/`,"")}`:i+=`tiles/${r.path.replace(`/${n.TILE_URL_VERSION}/`,"")}`;let s=r.params;return t&&(s=s.filter((e=>!e.match(/^access_token=/)))),s.length&&(i+=`?${s.join("&")}`),i}canonicalizeTileset(e,t){const r=!!t&&ke(t),i=[];for(const t of e.tiles||[])Oe(t)?i.push(this.canonicalizeTileURL(t,r)):i.push(t);return i}_makeAPIURL(e,t){const r="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",i=ze(n.API_URL);if(e.protocol=i.protocol,e.authority=i.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==i.path&&(e.path=`${i.path}${e.path}`),!n.REQUIRE_ACCESS_TOKEN)return je(e);if(t=t||n.ACCESS_TOKEN,!this._silenceAuthErrors){if(!t)throw new Error(`An API access token is required to use Mapbox GL. ${r}`);if("s"===t[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${r}`)}return e.params=e.params.filter((e=>-1===e.indexOf("access_token"))),e.params.push(`access_token=${t||""}`),je(e)}}function ke(e){return 0===e.indexOf("mapbox:")}function Oe(e){return n.API_URL_REGEX.test(e)}function Re(e){return n.API_CDN_URL_REGEX.test(e)}function De(e){return n.API_STYLE_REGEX.test(e)&&!Le(e)}function Le(e){return n.API_SPRITE_REGEX.test(e)}const Be=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ze(e){const t=e.match(Be);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function je(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}const Fe="mapbox.eventData";function Ne(e){if(!e)return null;const r=e.split(".");if(!r||3!==r.length)return null;try{return JSON.parse(decodeURIComponent(t.atob(r[1]).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))}catch(e){return null}}
2class Ue{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const r=Ne(n.ACCESS_TOKEN);let i="";return i=r&&r.u?t.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(Number("0x"+t))))):n.ACCESS_TOKEN||"",e?`${Fe}.${e}:${i}`:`${Fe}:${i}`}fetchEventData(){const e=ie("localStorage"),r=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{const e=t.localStorage.getItem(r);e&&(this.eventData=JSON.parse(e));const n=t.localStorage.getItem(i);n&&(this.anonId=n)}catch(e){Q("Unable to read from LocalStorage")}}saveEventData(){const e=ie("localStorage"),r=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{t.localStorage.setItem(i,this.anonId),Object.keys(this.eventData).length>=1&&t.localStorage.setItem(r,JSON.stringify(this.eventData))}catch(e){Q("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,t,r,i){if(!n.EVENTS_URL)return;const s=ze(n.EVENTS_URL);s.params.push(`access_token=${i||n.ACCESS_TOKEN||""}`);const o={event:this.type,created:new Date(e).toISOString()},a=t?L(o,t):o,l={url:je(s),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=function(e,t){return xe(L(e,{method:"POST"}),t)}(l,(e=>{this.pendingRequest=null,r(e),this.saveEventData(),this.processRequests(i)}))}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const Ve=new class extends Ue{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){n.EVENTS_URL&&n.ACCESS_TOKEN&&Array.isArray(e)&&e.some((e=>ke(e)||Oe(e)))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const t=Ne(n.ACCESS_TOKEN),i=t?t.u:n.ACCESS_TOKEN;let s=i!==this.eventData.tokenU;U(this.anonId)||(this.anonId=F(),s=!0);const o=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(o),r=(o-this.eventData.lastSuccess)/864e5;s=s||r>=1||r<-1||e.getDate()!==t.getDate()}else s=!0;s?this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:h,"enabled.telemetry":!1,userId:this.anonId},(e=>{e||(this.eventData.lastSuccess=o,this.eventData.tokenU=i)}),e):this.processRequests()}},Ge=Ve.postTurnstileEvent.bind(Ve),qe=new class extends Ue{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,r,i){this.skuToken=t,this.errorCb=i,n.EVENTS_URL&&(r||n.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},r):this.errorCb(new Error(Pe)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:i}=this.queue.shift();t&&this.success[t]||(this.anonId||this.fetchEventData(),U(this.anonId)||(this.anonId=F()),this.postEvent(i,{sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:h,skuToken:this.skuToken,userId:this.anonId},(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e))}},He=qe.postMapLoadEvent.bind(qe),We=new class extends Ue{constructor(){super("gljs.performance")}postPerformanceEvent(e,t){n.EVENTS_URL&&(e||n.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:t},e)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:i,performanceData:n}=this.queue.shift(),s=function(e){const i=t.performance.getEntriesByType("resource"),n=t.performance.getEntriesByType("mark"),s=function(e){const t={};if(e)for(const r in e)if("other"!==r)for(const i of e[r]){const e=`${r}ResolveRangeMin`,n=`${r}ResolveRangeMax`,s=`${r}RequestCount`,o=`${r}RequestCachedCount`;t[e]=Math.min(t[e]||1/0,i.startTime),t[n]=Math.max(t[n]||-1/0,i.responseEnd);const a=e=>{void 0===t[e]&&(t[e]=0),++t[e]};void 0!==i.transferSize&&0===i.transferSize&&a(o),a(s)}return t}(function(e,t){const r={};if(e)for(const i of e){const e=t(i);void 0===r[e]&&(r[e]=[]),r[e].push(i)}return r}(i,et)),o=t.devicePixelRatio,a=t.navigator.connection||t.navigator.mozConnection||t.navigator.webkitConnection,l={counters:[],metadata:[],attributes:[]},c=(e,t,r)=>{null!=r&&e.push({name:t,value:r.toString()})};for(const e in s)c(l.counters,e,s[e]);if(e.interactionRange[0]!==1/0&&e.interactionRange[1]!==-1/0&&(c(l.counters,"interactionRangeMin",e.interactionRange[0]),c(l.counters,"interactionRangeMax",e.interactionRange[1])),n)for(const e of Object.keys(Je)){const t=Je[e],r=n.find((e=>e.name===t));r&&c(l.counters,t,r.startTime)}return c(l.counters,"visibilityHidden",e.visibilityHidden),c(l.attributes,"style",function(e){if(e)for(const t of e){const e=t.name.split("?")[0];if(De(e)){const t=e.split("/").slice(-2);if(2===t.length)return`mapbox://styles/${t[0]}/${t[1]}`}}}(i)),c(l.attributes,"terrainEnabled",e.terrainEnabled?"true":"false"),c(l.attributes,"fogEnabled",e.fogEnabled?"true":"false"),c(l.attributes,"projection",e.projection),c(l.attributes,"zoom",e.zoom),c(l.metadata,"devicePixelRatio",o),c(l.metadata,"connectionEffectiveType",a?a.effectiveType:void 0),c(l.metadata,"navigatorUserAgent",t.navigator.userAgent),c(l.metadata,"screenWidth",t.screen.width),c(l.metadata,"screenHeight",t.screen.height),c(l.metadata,"windowWidth",t.innerWidth),c(l.metadata,"windowHeight",t.innerHe
2ight),c(l.metadata,"mapWidth",e.width/o),c(l.metadata,"mapHeight",e.height/o),c(l.metadata,"webglRenderer",e.renderer),c(l.metadata,"webglVendor",e.vendor),c(l.metadata,"sdkVersion",r),c(l.metadata,"sdkIdentifier","mapbox-gl-js"),l}(n);for(const e of s.metadata);for(const e of s.counters);for(const e of s.attributes);this.postEvent(i,s,(()=>{}),e)}},Ye=We.postPerformanceEvent.bind(We),Qe=new class extends Ue{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,r,i){if(!n.API_URL||!n.SESSION_PATH)return;const s=ze(n.API_URL+n.SESSION_PATH);s.params.push(`sku=${t||""}`),s.params.push(`access_token=${i||n.ACCESS_TOKEN||""}`);const o={url:je(s),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(e,t){return xe(L(e,{method:"GET"}),t)}(o,(e=>{this.pendingRequest=null,r(e),this.saveEventData(),this.processRequests(i)}))}getSessionAPI(e,t,r,i){this.skuToken=t,this.errorCb=i,n.SESSION_PATH&&n.API_URL&&(r||n.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},r):this.errorCb(new Error(Pe)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:r}=this.queue.shift();t&&this.success[t]||this.getSession(r,this.skuToken,(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e)}},Ze=Qe.getSessionAPI.bind(Qe),Xe=new Set;function Ke(e,t){t?Xe.add(e):Xe.delete(e)}const Je={create:"create",load:"load",fullLoad:"fullLoad"},$e={mark(e){t.performance.mark(e)},measure(e,r,i){t.performance.measure(e,r,i)}};function et(e){const t=e.name.split("?")[0];return Re(t)&&t.includes("mapbox-gl.js")?"javascript":Re(t)&&t.includes("mapbox-gl.css")?"css":function(e){return n.API_FONTS_REGEX.test(e)}(t)?"fontRange":Le(t)?"sprite":De(t)?"style":function(e){return n.API_TILEJSON_REGEX.test(e)}(t)?"tilejson":"other"}const tt=t.performance;function rt(e){const t=e?e.url.toString():void 0;return tt.getEntriesByName(t)}var it=nt;function nt(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":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 e,t,r=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(r);try{t=new Worker(i),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(i),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var r=t.getImageData(0,0,1,1);return r&&r.width===e.width}()?(void 0===st[t=e&&e.failIfMajorPerformanceCaveat]&&(st[t]=function(e){var t,r=function(e){var t=document.createElement("canvas"),r=Object.create(nt.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,t.getContext("webgl",r)||t.getContext("experimental-webgl",r)}(e);if(!r)return!1;try{t=r.createShader(r.VERTEX_SHADER)}catch(e){return!1}return!(!t||r.isContextLost())&&(r.shaderSource(t,"void main() {}"),r.compileShader(t),!0===r.getShaderParameter(t,r.COMPILE_STATUS))}(t)),st[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var st={};let ot,at,lt,ct;nt.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const ut={now:()=>void 0!==lt?lt:t.performance.now(),setNow(e){lt=e},restoreNow(){lt=void 0},frame(e){const r=t.requestAnimationFrame(e);return{cancel:()=>t.cancelAnimationFrame(r)}},getImageData(e,r=0){const{width:i,height:n}=e;ct||(ct=t.document.createElement("canvas"));const s=ct.getContext("2d",{willReadFrequently:!0});if(!s)throw new Error("failed to create canvas 2d context");return(i>ct.width||n>ct.height)&&(ct.width=i,ct.height=n),s.clearRect(-r,-r,i+2*r,n+2*r),s.drawImage(e,0,0,i,n),s.getImageData(-r,-r,i+2*r,n+2*r)},resolveURL:e=>(ot||(ot=t.document.createElement("a")),ot.href=e,ot.href),get devicePixelRatio(){return t.devicePixelRatio},get prefersReducedMotion(){return!!t.matchMedia&&(null==at&&(at=t.matchMedia("(prefers-reduced-motion: reduce)")),at.matches)}};function ht(e,r,i){const n=t.document.createElement(e);return void 0!==r&&(n.className=r),i&&i.appendChild(n),n}function dt(e,r,i){const n=t.document.createElementNS("http://www.w3.org/2000/svg",e);for(const e of Object.keys(r))n.setAttributeNS(null,e,r[e]);return i&&i.appendChild(n),n}const pt=t.document&&t.document.documentElement.style,ft=pt&&void 0!==pt.userSelect?"userSelect":"WebkitUserSelect";let mt;function gt(){pt&&ft&&(mt=pt[ft],pt[ft]="none")}function yt(){pt&&ft&&(pt[ft]=mt)}function vt(e){e.preventDefault(),e.stopPropagation(),t.removeEventListener("click",vt,!0)}function _t(){t.addEventListener("click",vt,!0),t.setTimeout((()=>{t.removeEventListener("click",vt,!0)}),0)}function bt(e,t){const r=e.getBoundingClientRect();return At(e,r,t)}function xt(e,t){const r=e.getBoundingClientRect(),i=[];for(let n=0;n<t.length;n++)i.push(At(e,r,t[n]));return i}function wt(e){return void 0!==t.InstallTrigger&&2===e.button&&e.ctrlKey&&t.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button}function At(e,t,r){const i=e.offsetWidth===t.width?1:e.offsetWidth/t.width;return new v((r.clientX-t.left)*i,(r.clientY-t.top)*i)}function Et(e,t,r){r[e]&&-1!==r[e].indexOf(t)||(r[e]=r[e]||[],r[e].push(t))}function St(e,t,r){if(r&&r[e]){const i=r[e].indexOf(t);-1!==i&&r[e].splice(i,1)}}class Tt{constructor(e,t={}){L(this,t),this.type=e}}class Ct extends Tt{constructor(e,t={}){super("error",L({error:e},t))}}class It{on(e,t){return this._listeners=this._listeners||{},Et(e,t,this._listeners),this}off(e,t){return St(e,t,this._listeners),St(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Et(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){"string"==typeof e&&(e=new Tt(e,t||{}));const r=e.type;if(this.listens(r)){e.target=this;const t=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];for(const r of t)r.call(this,e);const i=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];for(const t of i)St(r,t,this._oneTimeListeners),t.call(this,e);const n=this._eventedParent;n&&(L(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),n.fire(e))}else e instanceof Ct&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var Pt=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}}
2,"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"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":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"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},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"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},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0}
2,"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"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_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}
2,"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"}
2,"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","default":[0,1],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');
vendor: 9,531 bytes, line 2
2class Mt{constructor(e,t,r,i){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),null!=t&&t.__line__&&(this.line=t.__line__)}}class kt extends Mt{}function Ot(e,...t){for(const r of t)for(const t in r)e[t]=r[t];return e}function Rt(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Dt(e){if(Array.isArray(e))return e.map(Dt);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const r in e)t[r]=Dt(e[r]);return t}return Rt(e)}class Lt extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}var Bt=Lt;class zt{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,r]of t)this.bindings[e]=r}concat(e){return new zt(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}var jt=zt;const Ft={kind:"null"},Nt={kind:"number"},Ut={kind:"string"},Vt={kind:"boolean"},Gt={kind:"color"},qt={kind:"object"},Ht={kind:"value"},Wt={kind:"collator"},Yt={kind:"formatted"},Qt={kind:"resolvedImage"};function Zt(e,t){return{kind:"array",itemType:e,N:t}}function Xt(e){if("array"===e.kind){const t=Xt(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Kt=[Ft,Nt,Ut,Vt,Gt,Yt,qt,Zt(Ht),Qt];function Jt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Jt(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Kt)if(!Jt(e,t))return null}return`Expected ${Xt(e)} but found ${Xt(t)} instead.`}function $t(e,t){return t.some((t=>t.kind===e.kind))}function er(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}var tr,rr={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 ir(e){return(e=Math.round(e))<0?0:e>255?255:e}function nr(e){return ir("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function sr(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function or(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}try{tr={}.parseCSSColor=function(e){var t,r=e.replace(/ /g,"").toLowerCase();if(r in rr)return rr[r].slice();if("#"===r[0])return 4===r.length?(t=parseInt(r.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===r.length&&(t=parseInt(r.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var i=r.indexOf("("),n=r.indexOf(")");if(-1!==i&&n+1===r.length){var s=r.substr(0,i),o=r.substr(i+1,n-(i+1)).split(","),a=1;switch(s){case"rgba":if(4!==o.length)return null;a=sr(o.pop());case"rgb":return 3!==o.length?null:[nr(o[0]),nr(o[1]),nr(o[2]),a];case"hsla":if(4!==o.length)return null;a=sr(o.pop());case"hsl":if(3!==o.length)return null;var l=(parseFloat(o[0])%360+360)%360/360,c=sr(o[1]),u=sr(o[2]),h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h;return[ir(255*or(d,h,l+1/3)),ir(255*or(d,h,l)),ir(255*or(d,h,l-1/3)),a];default:return null}}return null}}catch(e){}class ar{constructor(e,t,r,i=1){this.r=e,this.g=t,this.b=r,this.a=i}static parse(e){if(!e)return;if(e instanceof ar)return e;if("string"!=typeof e)return;const t=tr(e);return t?new ar(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,r,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(r)},${i})`}toArray(){const{r:e,g:t,b:r,a:i}=this;return 0===i?[0,0,0,0]:[255*e/i,255*t/i,255*r/i,i]}toArray01(){const{r:e,g:t,b:r,a:i}=this;return 0===i?[0,0,0,0]:[e/i,t/i,r/i,i]}toArray01Scaled(e){const{r:t,g:r,b:i,a:n}=this;return 0===n?[0,0,0]:[t/n*e,r/n*e,i/n*e]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:r,a:i}=this;return[e,t,r,i]}toArray01Linear(){const{r:e,g:t,b:r,a:i}=this;return 0===i?[0,0,0,0]:[Math.pow(e/i,2.2),Math.pow(t/i,2.2),Math.pow(r/i,2.2),i]}}ar.black=new ar(0,0,0,1),ar.white=new ar(1,1,1,1),ar.transparent=new ar(0,0,0,0),ar.red=new ar(1,0,0,1),ar.blue=new ar(0,0,1,1);var lr=ar;class cr{constructor(e,t,r){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ur{constructor(e,t,r,i,n){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=n}}class hr{constructor(e){this.sections=e}static fromString(e){return new hr([new ur(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.namePrimary.length))}static factory(e){return e instanceof hr?e:hr.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.namePrimary]);continue}e.push(t.text);const r={};t.fontStack&&(r["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(r["font-scale"]=t.scale),t.textColor&&(r["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(r)}return e}}class dr{constructor(e){this.namePrimary=e.namePrimary,e.nameSecondary&&(this.nameSecondary=e.nameSecondary),this.available=e.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(e,t){return e?new dr({namePrimary:e,nameSecondary:t,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}
2function pr(e,t,r,i){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof i?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function fr(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 lr)return!0;if(e instanceof cr)return!0;if(e instanceof hr)return!0;if(e instanceof dr)return!0;if(Array.isArray(e)){for(const t of e)if(!fr(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!fr(e[t]))return!1;return!0}return!1}function mr(e){if(null===e)return Ft;if("string"==typeof e)return Ut;if("boolean"==typeof e)return Vt;if("number"==typeof e)return Nt;if(e instanceof lr)return Gt;if(e instanceof cr)return Wt;if(e instanceof hr)return Yt;if(e instanceof dr)return Qt;if(Array.isArray(e)){const t=e.length;let r;for(const t of e){const e=mr(t);if(r){if(r===e)continue;r=Ht;break}r=e}return Zt(r||Ht,t)}return qt}function gr(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof lr||e instanceof hr||e instanceof dr?e.toString():JSON.stringify(e)}class yr{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!fr(e[1]))return t.error("invalid value");const r=e[1];let i=mr(r);const n=t.expectedType;return"array"!==i.kind||0!==i.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(i=n),new yr(i,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof lr?["rgba"].concat(this.value.toArray()):this.value instanceof hr?this.value.serialize():this.value}}var vr=yr,_r=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const br={string:Ut,number:Nt,boolean:Vt,object:qt};class xr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let r,i=1;const n=e[0];if("array"===n){let n,s;if(e.length>2){const r=e[1];if("string"!=typeof r||!(r in br)||"object"===r)return t.error('The item type argument of "array" must be one of string, number, boolean',1);n=br[r],i++}else n=Ht;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);s=e[2],i++}r=Zt(n,s)}else r=br[n];const s=[];for(;i<e.length;i++){const r=t.parse(e[i],i,Ht);if(!r)return null;s.push(r)}return new xr(r,s)}evaluate(e){for(let t=0;t<this.args.length;t++){const r=this.args[t].evaluate(e);if(!Jt(this.type,mr(r)))return r;if(t===this.args.length-1)throw new _r(`Expected value to be of type ${Xt(this.type)}, but found ${Xt(mr(r))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const r=e.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){t.push(r.kind);const i=e.N;("number"==typeof i||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map((e=>e.serialize())))}}var wr=xr;class Ar{constructor(e){this.type=Yt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&"object"==typeof r)return t.error("First argument must be an image or text section.");const i=[];let n=!1;for(let r=1;r<=e.length-1;++r){const s=e[r];if(n&&"object"==typeof s&&!Array.isArray(s)){n=!1;let e=null;if(s["font-scale"]&&(e=t.parse(s["font-scale"],1,Nt),!e))return null;let r=null;if(s["text-font"]&&(r=t.parse(s["text-font"],1,Zt(Ut)),!r))return null;let o=null;if(s["text-color"]&&(o=t.parse(s["text-color"],1,Gt),!o))return null;const a=i[i.length-1];a.scale=e,a.font=r,a.textColor=o}else{const s=t.parse(e[r],1,Ht);if(!s)return null;const o=s.type.kind;if("string"!==o&&"value"!==o&&"null"!==o&&"resolvedImage"!==o)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,i.push({content:s,scale:null,font:null,textColor:null})}}return new Ar(i)}evaluate(e){return new hr(this.sections.map((t=>{const r=t.content.evaluate(e);return mr(r)===Qt?new ur("",r,null,null,null):new ur(gr(r),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const r={};t.scale&&(r["font-scale"]=t.scale.serialize()),t.font&&(r["text-font"]=t.font.serialize()),t.textColor&&(r["text-color"]=t.textColor.serialize()),e.push(r)}return e}}class Er{constructor(e,t){this.type=Qt,this.inputPrimary=e,this.inputSecondary=t}static parse(e,t){if(e.length<2)return t.error("Expected two or more arguments.");const r=t.parse(e[1],1,Ut);if(!r)return t.error("No image name provided.");if(2===e.length)return new Er(r);const i=t.parse(e[2],1,Ut);return i?new Er(r,i):t.error("Secondary image variant is not a string.")}evaluate(e){const t=dr.fromString(this.inputPrimary.evaluate(e),this.inputSecondary?this.inputSecondary.evaluate(e):void 0);return t&&e.availableImages&&(t.available=e.availableImages.indexOf(t.namePrimary)>-1,t.nameSecondary&&t.available&&e.availableImages&&(t.available=e.availableImages.indexOf(t.nameSecondary)>-1)),t}eachChild(e){e(this.inputPrimary),this.inputSecondary&&e(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function Sr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}const Tr={"to-boolean":Vt,"to-color":Gt,"to-number":Nt,"to-string":Ut};class Cr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const r=e[0],i=[];let n=Ft;if("to-array"===r){if(!Array.isArray(e[1]))return null;const r=e[1].length;if(t.expectedType){if("array"!==t.expectedType.kind)return t.error(`Expected ${t.expectedType.kind} but found array.`);n=Zt(t.expectedType.itemType,r)}else{if(!(r>0&&fr(e[1][0])))return null;n=Zt(mr(e[1][0]),r)}for(let s=0;s<r;s++){const r=e[1][s];let o;if("array"===Sr(r))o=t.parse(r,void 0,n.itemType);else{const e=Sr(r);if(e!==n.itemType.kind)return t.error(`Expected ${n.itemType.kind} but found ${e}.`);o=t.registry.literal.parse(["literal",void 0===r?null:r],t)}if(!o)return null;i.push(o)}}else{if(("to-boolean"===r||"to-string"===r)&&2!==e.length)return t.error("Expected one argument.");n=Tr[r];for(let r=1;r<e.length;r++){const n=t.parse(e[r],r,Ht);if(!n)return null;i.push(n)}}return new Cr(n,i)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,r;for(const i of this.args){if(t=i.evaluate(e),r=null,t instanceof lr)return t;if("string"==typeof t){const r=e.parseColor(t);if(r)return r}else if(Array.isArray(t)&&(r=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:pr(t[0],t[1],t[2],t[3]),!r))return new lr(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new _r(r||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const r of this.args){if(t=r.evaluate(e),null===t)return 0;const i=Number(t);if(!isNaN(i))return i}throw new _r(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?hr.fromString(gr(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?dr.fromString(gr(this.args[0].evaluate(e))):"array"===this.type.kind?this.args.map((t=>t.evaluate(e))):gr(this.args[0].evaluate(e))}
2eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new Ar([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Er(this.args[0]).serialize();const e="array"===this.type.kind?[]:[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Ir=Cr;const Pr=["Unknown","Point","LineString","Polygon"];var Mr=class{constructor(e){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.options=e}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Pr[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:r,y:i}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*t-e[0])+this.featureDistanceData.bearing[1]*(i*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=lr.parse(e)),t}getConfig(e){return this.options?this.options.get(e):null}};
vendor: 4,920 bytes, line 2
2class kr{constructor(e,t,r,i){this.name=e,this.type=t,this._evaluate=r,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const r=e[0],i=kr.definitions[r];if(!i)return t.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const n=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,o=s.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let a=null;for(const[i,s]of o){a=new Ui(t.registry,t.path,null,t.scope,void 0,t.options);const o=[];let l=!1;for(let t=1;t<e.length;t++){const r=e[t],n=Array.isArray(i)?i[t-1]:i.type,s=a.parse(r,1+o.length,n);if(!s){l=!0;break}o.push(s)}if(!l)if(Array.isArray(i)&&i.length!==o.length)a.error(`Expected ${i.length} arguments, but found ${o.length} instead.`);else{for(let e=0;e<o.length;e++){const t=Array.isArray(i)?i[e]:i.type,r=o[e];a.concat(e+1).checkSubtype(t,r.type)}if(0===a.errors.length)return new kr(r,n,s,o)}}if(1===o.length)t.errors.push(...a.errors);else{const r=(o.length?o:s).map((([e])=>{return t=e,Array.isArray(t)?`(${t.map(Xt).join(", ")})`:`(${Xt(t.type)}...)`;var t})).join(" | "),i=[];for(let r=1;r<e.length;r++){const n=t.parse(e[r],1+i.length);if(!n)return null;i.push(Xt(n.type))}t.error(`Expected arguments of type ${r}, but found (${i.join(", ")}) instead.`)}return null}static register(e,t){kr.definitions=t;for(const r in t)e[r]=kr}}var Or=kr;class Rr{constructor(e,t,r){this.type=Wt,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const r=e[1];if("object"!=typeof r||Array.isArray(r))return t.error("Collator options argument must be an object.");const i=t.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,Vt);if(!i)return null;const n=t.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,Vt);if(!n)return null;let s=null;return r.locale&&(s=t.parse(r.locale,1,Ut),!s)?null:new Rr(i,n,s)}evaluate(e){return new cr(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}var Dr={exports:{}};Dr.exports=function(){function e(r,i,n,s,o){for(;s>n;){if(s-n>600){var a=s-n+1,l=i-n+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);e(r,i,Math.max(n,Math.floor(i-l*u/a+h)),Math.min(s,Math.floor(i+(a-l)*u/a+h)),o)}var d=r[i],p=n,f=s;for(t(r,n,i),o(r[s],d)>0&&t(r,n,s);p<f;){for(t(r,p,f),p++,f--;o(r[p],d)<0;)p++;for(;o(r[f],d)>0;)f--}0===o(r[n],d)?t(r,n,f):t(r,++f,s),f<=i&&(n=f+1),i<=f&&(s=f-1)}}function t(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function r(e,t){return e<t?-1:e>t?1:0}return function(t,i,n,s,o){e(t,i,n||0,s||t.length-1,o||r)}}();var Lr=d(Dr.exports);function Br(e){let t=0;for(let r,i,n=0,s=e.length,o=s-1;n<s;o=n++)r=e[n],i=e[o],t+=(i.x-r.x)*(r.y+i.y);return t}function zr(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function jr(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Fr(e,t,r){const i=e[0]-t[0],n=e[1]-t[1],s=e[0]-r[0],o=e[1]-r[1];return i*o-s*n==0&&i*s<=0&&n*o<=0}function Nr(e,t,r=!1){let i=!1;for(let a=0,l=t.length;a<l;a++){const l=t[a];for(let t=0,a=l.length,c=a-1;t<a;c=t++){const a=l[c],u=l[t];if(Fr(e,a,u))return r;(s=a)[1]>(n=e)[1]!=(o=u)[1]>n[1]&&n[0]<(o[0]-s[0])*(n[1]-s[1])/(o[1]-s[1])+s[0]&&(i=!i)}}var n,s,o;return i}function Ur(e,t,r,i){const n=i[0]-r[0],s=i[1]-r[1],o=(e[0]-r[0])*s-n*(e[1]-r[1]),a=(t[0]-r[0])*s-n*(t[1]-r[1]);return o>0&&a<0||o<0&&a>0}function Vr(e,t,r,i){return 0!=(n=[i[0]-r[0],i[1]-r[1]])[0]*(s=[t[0]-e[0],t[1]-e[1]])[1]-n[1]*s[0]&&!(!Ur(e,t,r,i)||!Ur(r,i,e,t));var n,s}const Gr=8192;function qr(e,t){const r=(180+e[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,n=Math.pow(2,t.z);return[Math.round(r*n*Gr),Math.round(i*n*Gr)]}function Hr(e,t){for(let r=0;r<t.length;r++)if(Nr(e,t[r]))return!0;return!1}function Wr(e,t,r){for(const i of r)for(let r=0,n=i.length,s=n-1;r<n;s=r++)if(Vr(e,t,i[s],i[r]))return!0;return!1}function Yr(e,t){for(let r=0;r<e.length;++r)if(!Nr(e[r],t))return!1;for(let r=0;r<e.length-1;++r)if(Wr(e[r],e[r+1],t))return!1;return!0}function Qr(e,t){for(let r=0;r<t.length;r++)if(Yr(e,t[r]))return!0;return!1}function Zr(e,t,r){const i=[];for(let n=0;n<e.length;n++){const s=[];for(let i=0;i<e[n].length;i++){const o=qr(e[n][i],r);zr(t,o),s.push(o)}i.push(s)}return i}function Xr(e,t,r){const i=[];for(let n=0;n<e.length;
2n++){const s=Zr(e[n],t,r);i.push(s)}return i}function Kr(e,t,r,i){if(e[0]<r[0]||e[0]>r[2]){const t=.5*i;let n=e[0]-r[0]>t?-i:r[0]-e[0]>t?i:0;0===n&&(n=e[0]-r[2]>t?-i:r[2]-e[0]>t?i:0),e[0]+=n}zr(t,e)}function Jr(e,t,r,i){const n=Math.pow(2,i.z)*Gr,s=[i.x*Gr,i.y*Gr],o=[];if(!e)return o;for(const i of e)for(const e of i){const i=[e.x+s[0],e.y+s[1]];Kr(i,t,r,n),o.push(i)}return o}function $r(e,t,r,i){const n=Math.pow(2,i.z)*Gr,s=[i.x*Gr,i.y*Gr],o=[];if(!e)return o;for(const r of e){const e=[];for(const i of r){const r=[i.x+s[0],i.y+s[1]];zr(t,r),e.push(r)}o.push(e)}if(t[2]-t[0]<=n/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const e of o)for(const i of e)Kr(i,t,r,n)}var a;return o}class ei{constructor(e,t){this.type=Vt,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(fr(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const r=t.features[e].geometry.type;if("Polygon"===r||"MultiPolygon"===r)return new ei(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new ei(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new ei(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(!n)return!1;if("Polygon"===t.type){const s=Zr(t.coordinates,i,n),o=Jr(e.geometry(),r,i,n);if(!jr(r,i))return!1;for(const e of o)if(!Nr(e,s))return!1}if("MultiPolygon"===t.type){const s=Xr(t.coordinates,i,n),o=Jr(e.geometry(),r,i,n);if(!jr(r,i))return!1;for(const e of o)if(!Hr(e,s))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(!n)return!1;if("Polygon"===t.type){const s=Zr(t.coordinates,i,n),o=$r(e.geometry(),r,i,n);if(!jr(r,i))return!1;for(const e of o)if(!Yr(e,s))return!1}if("MultiPolygon"===t.type){const s=Xr(t.coordinates,i,n),o=$r(e.geometry(),r,i,n);if(!jr(r,i))return!1;for(const e of o)if(!Qr(e,s))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var ti=ei,ri={exports:{}};ri.exports=function(){var e={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},t=1/298.257223563,r=t*(2-t),i=Math.PI/180,n=function(t,n){if(void 0===t)throw new Error("No latitude given.");if(n&&!e[n])throw new Error("Unknown unit "+n+". Use one of: "+Object.keys(e).join(", "));var s=6378.137*i*(n?e[n]:1),o=Math.cos(t*i),a=1/(1-r*(1-o*o)),l=Math.sqrt(a);this.kx=s*l*o,this.ky=s*l*a*(1-r)},s={units:{configurable:!0}};function o(e,t){return e[0]===t[0]&&e[1]===t[1]}function a(e,t,r){var i=l(t[0]-e[0]);return[e[0]+i*r,e[1]+(t[1]-e[1])*r]}function l(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}return n.fromTile=function(e,t,r){var s=Math.PI*(1-2*(e+.5)/Math.pow(2,t)),o=Math.atan(.5*(Math.exp(s)-Math.exp(-s)))/i;return new n(o,r)},s.units.get=function(){return e},n.prototype.distance=function(e,t){var r=l(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)},n.prototype.bearing=function(e,t){var r=l(t[0]-e[0])*this.kx;return Math.atan2(r,(t[1]-e[1])*this.ky)/i},n.prototype.destination=function(e,t,r){var n=r*i;return this.offset(e,Math.sin(n)*t,Math.cos(n)*t)},n.prototype.offset=function(e,t,r){return[e[0]+t/this.kx,e[1]+r/this.ky]},n.prototype.lineDistance=function(e){for(var t=0,r=0;r<e.length-1;r++)t+=this.distance(e[r],e[r+1]);return t},n.prototype.area=function(e){for(var t=0,r=0;r<e.length;r++)for(var i=e[r],n=0,s=i.length,o=s-1;n<s;o=n++)t+=l(i[n][0]-i[o][0])*(i[n][1]+i[o][1])*(r?-1:1);return Math.abs(t)/2*this.kx*this.ky},n.prototype.along=function(e,t){var r=0;if(t<=0)return e[0];for(var i=0;i<e.length-1;i++){var n=e[i],s=e[i+1],o=this.distance(n,s);if((r+=o)>t)return a(n,s,(t-(r-o))/o)}return e[e.length-1]},n.prototype.pointToSegmentDistance=function(e,t,r){var i=t[0],n=t[1],s=l(r[0]-i)*this.kx,o=(r[1]-n)*this.ky,a=0;return 0===s&&0===o||((a=(l(e[0]-i)*this.kx*s+(e[1]-n)*this.ky*o)/(s*s+o*o))>1?(i=r[0],n=r[1]):a>0&&(i+=s/this.kx*a,n+=o/this.ky*a)),s=l(e[0]-i)*this.kx,o=(e[1]-n)*this.ky,Math.sqrt(s*s+o*o)},n.prototype.pointOnLine=function(e,t){for(var r,i,n,s,o=1/0,a=0;a<e.length-1;a++){var c=e[a][0],u=e[a][1],h=l(e[a+1][0]-c)*this.kx,d=(e[a+1][1]-u)*this.ky,p=0;0===h&&0===d||((p=(l(t[0]-c)*this.kx*h+(t[1]-u)*this.ky*d)/(h*h+d*d))>1?(c=e[a+1][0],u=e[a+1][1]):p>0&&(c+=h/this.kx*p,u+=d/this.ky*p));var f=(h=l(t[0]-c)*this.kx)*h+(d=(t[1]-u)*this.ky)*d;f<o&&(o=f,r=c,i=u,n=a,s=p)}return{point:[r,i],index:n,t:Math.max(0,Math.min(1,s))}},n.prototype.lineSlice=function(e,t,r){var i=this.pointOnLine(r,e),n=this.pointOnLine(r,t);if(i.index>n.index||i.index===n.index&&i.t>n.t){var s=i;i=n,n=s}var a=[i.point],l=i.index+1,c=n.index;!o(r[l],a[0])&&l<=c&&a.push(r[l]);for(var u=l+1;u<=c;u++)a.push(r[u]);return o(r[c],n.point)||a.push(n.point),a},n.prototype.lineSliceAlong=function(e,t,r){for(var i=0,n=[],s=0;s<r.length-1;s++){var o=r[s],l=r[s+1],c=this.distance(o,l);if((i+=c)>e&&0===n.length&&n.push(a(o,l,(e-(i-c))/c)),i>=t)return n.push(a(o,l,(t-(i-c))/c)),n;i>e&&n.push(l)}return n},n.prototype.bufferPoint=function(e,t){var r=t/this.ky,i=t/this.kx;return[e[0]-i,e[1]-r,e[0]+i,e[1]+r]},n.prototype.bufferBBox=function(e,t){var r=t/this.ky,i=t/this.kx;return[e[0]-i,e[1]-r,e[2]+i,e[3]+r]},n.prototype.insideBBox=function(e,t){return l(e[0]-t[0])>=0&&l(e[0]-t[2])<=0&&e[1]>=t[1]&&e[1]<=t[3]},Object.defineProperties(n,s),n}();
2var ii=d(ri.exports),ni={exports:{}};ni.exports=function(){var e=function(e,r){if(void 0===e&&(e=[]),void 0===r&&(r=t),this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)};function t(e,t){return e<t?-1:e>t?1:0}return e.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},e.prototype.pop=function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}},e.prototype.peek=function(){return this.data[0]},e.prototype._up=function(e){for(var t=this.data,r=this.compare,i=t[e];e>0;){var n=e-1>>1,s=t[n];if(r(i,s)>=0)break;t[e]=s,e=n}t[e]=i},e.prototype._down=function(e){for(var t=this.data,r=this.compare,i=this.length>>1,n=t[e];e<i;){var s=1+(e<<1),o=t[s],a=s+1;if(a<this.length&&r(t[a],o)<0&&(s=a,o=t[a]),r(o,n)>=0)break;t[e]=o,e=s}t[e]=n},e}();var si=d(ni.exports),oi=8192;function ai(e,t){return t.dist-e.dist}function li(e){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function ci(e){return e[1]-e[0]+1}function ui(e,t){const r=e[1]>=e[0]&&e[1]<t;return r||console.warn("Distance Expression: Index is out of range"),r}function hi(e,t){if(e[0]>e[1])return[null,null];const r=ci(e);if(t){if(2===r)return[e,null];const t=Math.floor(r/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}{if(1===r)return[e,null];const t=Math.floor(r/2)-1;return[[e[0],e[0]+t],[e[0]+t+1,e[1]]]}}function di(e,t){const r=[1/0,1/0,-1/0,-1/0];if(!ui(t,e.length))return r;for(let i=t[0];i<=t[1];++i)zr(r,e[i]);return r}function pi(e){const t=[1/0,1/0,-1/0,-1/0];for(let r=0;r<e.length;++r)for(let i=0;i<e[r].length;++i)zr(t,e[r][i]);return t}function fi(e,t,r){if(li(e)||li(t))return NaN;let i=0,n=0;return e[2]<t[0]&&(i=t[0]-e[2]),e[0]>t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(n=e[1]-t[3]),e[3]<t[1]&&(n=t[1]-e[3]),r.distance([0,0],[i,n])}function mi(e,t){const r=Math.pow(2,t.z);return[(n=(e.x/oi+t.x)/r,360*n-180),(i=(e.y/oi+t.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90)];var i,n}function gi(e,t){const r=[];for(let i=0;i<e.length;++i)r.push(mi(e[i],t));return r}function yi(e,t,r){const i=r.pointOnLine(t,e).point;return r.distance(e,i)}function vi(e,t,r,i,n){const s=r.slice(i[0],i[1]+1);let o=1/0;for(let r=t[0];r<=t[1];++r)if(0===(o=Math.min(o,yi(e[r],s,n))))return 0;return o}function _i(e,t,r,i,n){const s=Math.min(n.pointToSegmentDistance(e,r,i),n.pointToSegmentDistance(t,r,i)),o=Math.min(n.pointToSegmentDistance(r,e,t),n.pointToSegmentDistance(i,e,t));return Math.min(s,o)}function bi(e,t,r,i,n){if(!ui(t,e.length)||!ui(i,r.length))return NaN;let s=1/0;for(let o=t[0];o<t[1];++o)for(let t=i[0];t<i[1];++t){if(Vr(e[o],e[o+1],r[t],r[t+1]))return 0;s=Math.min(s,_i(e[o],e[o+1],r[t],r[t+1],n))}return s}function xi(e,t,r,i,n){if(!ui(t,e.length)||!ui(i,r.length))return NaN;let s=1/0;for(let o=t[0];o<=t[1];++o)for(let t=i[0];t<=i[1];++t)if(0===(s=Math.min(s,n.distance(e[o],r[t]))))return s;return s}function wi(e,t,r){if(Nr(e,t,!0))return 0;let i=1/0;for(const n of t){const t=n.length;if(t<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(n[0]!==n[t-1]&&0===(i=Math.min(i,r.pointToSegmentDistance(e,n[t-1],n[0]))))return i;if(0===(i=Math.min(i,yi(e,n,r))))return i}return i}function Ai(e,t,r,i){if(!ui(t,e.length))return NaN;for(let i=t[0];i<=t[1];++i)if(Nr(e[i],r,!0))return 0;let n=1/0;for(let s=t[0];s<t[1];++s)for(const t of r)for(let r=0,o=t.length,a=o-1;r<o;a=r++){if(Vr(e[s],e[s+1],t[a],t[r]))return 0;n=Math.min(n,_i(e[s],e[s+1],t[a],t[r],i))}return n}function Ei(e,t){for(const r of e)for(let e=0;e<=r.length-1;++e)if(Nr(r[e],t,!0))return!0;return!1}function Si(e,t,r,i=1/0){const n=pi(e),s=pi(t);if(i!==1/0&&fi(n,s,r)>=i)return i;if(jr(n,s)){if(Ei(e,t))return 0}else if(Ei(t,e))return 0;let o=i;for(const i of e)for(let e=0,n=i.length,s=n-1;e<n;s=e++)for(const n of t)for(let t=0,a=n.length,l=a-1;t<a;l=t++){if(Vr(i[s],i[e],n[l],n[t]))return 0;o=Math.min(o,_i(i[s],i[e],n[l],n[t],r))}return o}function Ti(e,t,r,i,n,s,o){if(null===s||null===o)return;const a=fi(di(i,s),di(n,o),r);a<t&&e.push({dist:a,range1:s,range2:o})}function Ci(e,t,r,i,n=1/0){let s=Math.min(i.distance(e[0],r[0][0]),n);if(0===s)return s;const o=new si([{dist:0,range1:[0,e.length-1],range2:[0,0]}],ai),a=t?50:100,l=pi(r);for(;o.length;){const n=o.pop();if(n.dist>=s)continue;const c=n.range1;if(ci(c)<=a){if(!ui(c,e.length))return NaN;if(t){const t=Ai(e,c,r,i);if(0===(s=Math.min(s,t)))return s}else for(let t=c[0];t<=c[1];++t){const n=wi(e[t],r,i);if(0===(s=Math.min(s,n)))return s}}else{const r=hi(c,t);if(null!==r[0]){const t=fi(di(e,r[0]),l,i);t<s&&o.push({dist:t,range1:r[0],range2:[0,0]})}if(null!==r[1]){const t=fi(di(e,r[1]),l,i);t<s&&o.push({dist:t,range1:r[1],range2:[0,0]})}}}return s}function Ii(e,t,r,i,n,s=1/0){let o=Math.min(s,n.distance(e[0],r[0]));if(0===o)return o;const a=new si([{dist:0,range1:[0,e.length-1],range2:[0,r.length-1]}],ai),l=t?50:100,c=i?50:100;for(;a.length;){const s=a.pop();if(s.dist>=o)continue;const u=s.range1,h=s.range2;if(ci(u)<=l&&ci(h)<=c){if(!ui(u,e.length)||!ui(h,r.length))return NaN;if(t&&i?o=Math.min(o,bi(e,u,r,h,n)):t||i?t&&!i?o=Math.min(o,vi(r,h,e,u,n)):!t&&i&&(o=Math.min(o,vi(e,u,r,h,n))):o=Math.min(o,xi(e,u,r,h,n)),0===o)return o}else{const s=hi(u,t),l=hi(h,i);Ti(a,o,n,e,r,s[0],l[0]),Ti(a,o,n,e,r,s[0],l[1]),Ti(a,o,n,e,r,s[1],l[0]),Ti(a,o,n,e,r,s[1],l[1])}}return o}function Pi(e,t,r,i,n=1/0){let s=n;const o=di(e,[0,e.length-1]);for(const n of r)if(!(s!==1/0&&fi(o,di(n,[0,n.length-1]),i)>=s)&&(s=Math.min(s,Ii(e,t,n,!0,i,s)),0===s))return s;return s}function Mi(e,t,r,i,n=1/0){let s=n;const o=di(e,[0,e.length-1]);for(const n of r){if(s!==1/0&&fi(o,pi(n),i)>=s)continue;const r=Ci(e,t,n,i,s);if(isNaN(r))return r;if(0===(s=Math.min(s,r)))return s}return s}function ki(e){return"Point"===e||"MultiPoint"===e||"LineString"===e||"MultiLineString"===e||"Polygon"===e||"MultiPolygon"===e}class Oi{constructor(e,t){this.type=Nt,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(fr(e[1])){const t=e[1];if("FeatureCollection"===t.type){for(let e=0;e<t.features.length;++e)if(ki(t.features[e].geometry.type))return new Oi(t,t.features[e].geometry)}else if("Feature"===t.type){if(ki(t.geometry.type))return new Oi(t,t.geometry)}else if(ki(t.type))return new Oi(t,t)}return t.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const t=e.geometry(),r=e.canonicalID();if(null!=t&&null!=r){if("Point"===e.geometryType())return function(e,t,r){const i=[];for(const r of e)for(const e of r)i.push(mi(e,t));const n=new ii(i[0][1],"meters");return"Point"===r.type||"MultiPoint"===r.type||"LineString"===r.type?Ii(i,!1,"Point"===r.type?[r.coordinates]:r.coordinates,"LineString"===r.type,n):"MultiLineString"===r.type?Pi(i,!1,r.coordinates,n):"Polygon"===r.type||"MultiPolygon"===r.type?Mi(i,!1,"Polygon"===r.type?[r.coordinates]:r.coordinates,n):null}(t,r,this.geometries);if("LineString"===e.geometryType())return function(e,t,r){const i=[];for(const r of e){const e=[];for(const i of r)e.push(mi(i,t));i.push(e)}const n=new ii(i[0][0][1],"meters");if("Point"===r.type||"MultiPoint"===r.type||"LineString"===r.type)return Pi("Point"===r.type?[r.coordinates]:r.coordinates,"LineString"===r.type,i,n);if("MultiLineString"===r.type){let e=1/0;for(let t=0;t<r.coordinates.length;t++){const s=Pi(r.coordinates[t],!0,i,n,e);if(isNaN(s))return s;if(0===(e=Math.min(e,s)))return e}return e}if("Polygon"===r.type||"MultiPolygon"===r.type){let e=1/0;for(let t=0;t<i.length;t++){const s=Mi(i[t],!0,"Polygon"===r.type?[r.coordinates]:r.coordinates,n,e);if(isNaN(s))return s;if(0===(e=Math.min(e,s)))return e}return e}return null}(t,r,this.geometries);if("Polygon"===e.geometryType())return function(e,t,r){const i=[];for(const r of function(e){const t=e.length;if(t<=1)return[e];const r=[];let i,n;for(let s=0;s<t;s++){const t=Br(e[s]);0!==t&&(e[s].area=Math.abs(t),void 0===n&&(n=t<0),n===t<0?(i&&r.push(i),i=[e[s]]):i.push(e[s]))}return i&&r.push(i),r}(e)){const e=[];for(let i=0;i<r.length;++i)e.push(gi(r[i],t));i.push(e)}const n=new ii(i[0][0][0][1],"meters");if("Point"===r.type||"MultiPoint"===r.type||"LineString"===r.type)return Mi("Point"===r.type?[r.coordinates]:r.coordinates,"LineString"===r.type,i,n);if("MultiLineString"===r.type){let e=1/0;for(let t=0;t<r.coordinates.length;t++){const s=Mi(r.coordinates[t],!0,i,n,e);if(isNaN(s))return s;if(0===(e=Math.min(e,s)))return e}return e}return"Polygon"===r.type||"MultiPolygon"===r.type?function(e,t,r){let i=1/0;for(const n of e)for(const e of t){const t=Si(n,e,r,i);if(isNaN(t))return t;if(0===(i=Math.min(i,t)))return i}return i}("Polygon"===r.type?[r.coordinates]:r.coordinates,i,n):null}(t,r,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var Ri=Oi;function Di(e){if(e instanceof Or){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof ti)return!1;if(e instanceof Ri)return!1;let t=!0;return e.eachChild((e=>{t&&!Di(e)&&(t=!1)})),t}function Li(e){if(e instanceof Or&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Li(e)&&(t=!1)})),t}function Bi(e){if(e instanceof Or&&"config"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Bi(e)&&(t=!1)})),t}function zi(e,t){if(e instanceof Or&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild((e=>{r&&!zi(e,t)&&(r=!1)})),r}class ji{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const r=e[1];return t.scope.has(r)?new ji(r,t.scope.get(r)):t.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Fi=ji;class Ni{constructor(e,t=[],r,i=new jt,n=[],s){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=i,this.errors=n,this.expectedType=r,this.options=s}parse(e,t,r,i,n={}){return t||r?this.concat(t,r,i)._parse(e,n):this._parse(e,n)}_parse(e,t){function r(e,t,r){return"assert"===r?new wr(t,[e]):"coerce"===r?new Ir(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i="string"==typeof e[0]?this.registry[e[0]]:void 0;if(i){let n=i.parse(e,this);if(!n)return null;if(this.expectedType){const e=this.expectedType,i=n.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==i.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(e,i))return null}else n=r(n,e,t.typeAnnotation||"coerce");else n=r(n,e,t.typeAnnotation||"assert")}if(!(n instanceof vr)&&"resolvedImage"!==n.type.kind&&Vi(n)){const t=new Mr(this.options);try{n=new vr(n.type,n.evaluate(t))}catch(e){return this.error(e.message),null}}return n}return Ir.parse(["to-array",e],this)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,r){const i="number"==typeof e?this.path.concat(e):this.path,n=r?this.scope.concat(r):this.scope;return new Ni(this.registry,i,t||null,n,this.errors,this.options)}error(e,...t){const r=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Bt(r,e))}checkSubtype(e,t){const r=Jt(e,t);return r&&this.error(r),r}}var Ui=Ni;function Vi(e){if(e instanceof Fi)return Vi(e.boundExpression);if(e instanceof Or&&"error"===e.name)return!1;if(e instanceof Or&&"config"===e.name)return!1;if(e instanceof Rr)return!1;if(e instanceof ti)return!1;if(e instanceof Ri)return!1;const t=e instanceof Ir||e instanceof wr;let r=!0;return e.eachChild((e=>{r=t?r&&Vi(e):r&&e instanceof vr})),!!r&&Di(e)&&zi(e,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light"])}function Gi(e,t){const r=e.length-1;let i,n,s=0,o=r,a=0;for(;s<=o;)if(a=Math.floor((s+o)/2),i=e[a],n=e[a+1],i<=t){if(a===r||t<n)return a;s=a+1}else{if(!(i>t))throw new _r("Input is not a number.");o=a-1}return 0}class qi{constructor(e,t,r){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of r)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const r=t.parse(e[1],1,Nt);if(!r)return null;const i=[];let n=null;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(let r=1;r<e.length;r+=2){const s=1===r?-1/0:e[r],o=e[r+1],a=r,l=r+1;if("number"!=typeof s)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
2omputed expressions) for the input values.',a);if(i.length&&i[i.length-1][0]>=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=t.parse(o,l,n);if(!c)return null;n=n||c.type,i.push([s,c])}return new qi(n,r,i)}evaluate(e){const t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return r[0].evaluate(e);const n=t.length;return i>=t[n-1]?r[n-1].evaluate(e):r[Gi(t,i)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var Hi=qi;function Wi(e,t,r){return e*(1-r)+t*r}function Yi(e,t,r){return e.map(((e,i)=>Wi(e,t[i],r)))}var Qi=Object.freeze({__proto__:null,array:Yi,color:function(e,t,r){return new lr(Wi(e.r,t.r,r),Wi(e.g,t.g,r),Wi(e.b,t.b,r),Wi(e.a,t.a,r))},number:Wi});const Zi=.95047,Xi=1.08883,Ki=4/29,Ji=6/29,$i=3*Ji*Ji,en=Ji*Ji*Ji,tn=Math.PI/180,rn=180/Math.PI;function nn(e){return e>en?Math.pow(e,1/3):e/$i+Ki}function sn(e){return e>Ji?e*e*e:$i*(e-Ki)}function on(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function an(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ln(e){const t=an(e.r),r=an(e.g),i=an(e.b),n=nn((.4124564*t+.3575761*r+.1804375*i)/Zi),s=nn((.2126729*t+.7151522*r+.072175*i)/1);return{l:116*s-16,a:500*(n-s),b:200*(s-nn((.0193339*t+.119192*r+.9503041*i)/Xi)),alpha:e.a}}function cn(e){let t=(e.l+16)/116,r=isNaN(e.a)?t:t+e.a/500,i=isNaN(e.b)?t:t-e.b/200;return t=1*sn(t),r=Zi*sn(r),i=Xi*sn(i),new lr(on(3.2404542*r-1.5371385*t-.4985314*i),on(-.969266*r+1.8760108*t+.041556*i),on(.0556434*r-.2040259*t+1.0572252*i),e.alpha)}function un(e,t,r){const i=t-e;return e+r*(i>180||i<-180?i-360*Math.round(i/360):i)}const hn={forward:ln,reverse:cn,interpolate:function(e,t,r){return{l:Wi(e.l,t.l,r),a:Wi(e.a,t.a,r),b:Wi(e.b,t.b,r),alpha:Wi(e.alpha,t.alpha,r)}}},dn={forward:function(e){const{l:t,a:r,b:i}=ln(e),n=Math.atan2(i,r)*rn;return{h:n<0?n+360:n,c:Math.sqrt(r*r+i*i),l:t,alpha:e.a}},reverse:function(e){const t=e.h*tn,r=e.c;return cn({l:e.l,a:Math.cos(t)*r,b:Math.sin(t)*r,alpha:e.alpha})},interpolate:function(e,t,r){return{h:un(e.h,t.h,r),c:Wi(e.c,t.c,r),l:Wi(e.l,t.l,r),alpha:Wi(e.alpha,t.alpha,r)}}};var pn=Object.freeze({__proto__:null,hcl:dn,lab:hn});class fn{constructor(e,t,r,i,n){this.type=e,this.operator=t,this.interpolation=r,this.input=i,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,r,i){let n=0;if("exponential"===e.name)n=mn(t,e.base,r,i);else if("linear"===e.name)n=mn(t,1,r,i);else if("cubic-bezier"===e.name){const s=e.controlPoints;n=new m(s[0],s[1],s[2],s[3]).solve(mn(t,1,r,i))}return n}static parse(e,t){let[r,i,n,...s]=e;if(!Array.isArray(i)||0===i.length)return t.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){const e=i[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:e}}else{if("cubic-bezier"!==i[0])return t.error(`Unknown interpolation type ${String(i[0])}`,1,0);{const e=i.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(n=t.parse(n,2,Nt),!n)return null;const o=[];let a=null;"interpolate-hcl"===r||"interpolate-lab"===r?a=Gt:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let e=0;e<s.length;e+=2){const r=s[e],i=s[e+1],n=e+3,l=e+4;if("number"!=typeof r)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not c
2omputed expressions) for the input values.',n);if(o.length&&o[o.length-1][0]>=r)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',n);const c=t.parse(i,l,a);if(!c)return null;a=a||c.type,o.push([r,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new fn(a,r,i,n,o):t.error(`Type ${Xt(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return r[0].evaluate(e);const n=t.length;if(i>=t[n-1])return r[n-1].evaluate(e);const s=Gi(t,i),o=fn.interpolationFactor(this.interpolation,i,t[s],t[s+1]),a=r[s].evaluate(e),l=r[s+1].evaluate(e);return"interpolate"===this.operator?Qi[this.type.kind.toLowerCase()](a,l,o):"interpolate-hcl"===this.operator?dn.reverse(dn.interpolate(dn.forward(a),dn.forward(l),o)):hn.reverse(hn.interpolate(hn.forward(a),hn.forward(l),o))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t}}function mn(e,t,r,i){const n=i-r,s=e-r;return 0===n?0:1===t?s/n:(Math.pow(t,s)-1)/(Math.pow(t,n)-1)}var gn=fn;class yn{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let r=null;const i=t.expectedType;i&&"value"!==i.kind&&(r=i);const n=[];for(const i of e.slice(1)){const e=t.parse(i,1+n.length,r,void 0,{typeAnnotation:"omit"});if(!e)return null;r=r||e.type,n.push(e)}const s=i&&n.some((e=>Jt(i,e.type)));return new yn(s?Ht:r,n)}evaluate(e){let t,r=null,i=0;for(const n of this.args){if(i++,r=n.evaluate(e),r&&r instanceof dr&&!r.available&&(t||(t=r),r=null,i===this.args.length))return t;if(null!==r)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var vn=yn;class _n{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let i=1;i<e.length-1;i+=2){const n=e[i];if("string"!=typeof n)return t.error(`Expected string, but found ${typeof n} instead.`,i);if(/[^a-zA-Z0-9_]/.test(n))return t.error("Variable names must contain only alphanumeric characters or '_'.",i);const s=t.parse(e[i+1],i+1);if(!s)return null;r.push([n,s])}const i=t.parse(e[e.length-1],e.length-1,t.expectedType,r);return i?new _n(r,i):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,r]of this.bindings)e.push(t,r.serialize());return e.push(this.result.serialize()),e}}var bn=_n;class xn{constructor(e,t,r){this.type=e,this.index=t,this.input=r}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=t.parse(e[1],1,Nt),i=t.parse(e[2],2,Zt(t.expectedType||Ht));return r&&i?new xn(i.type.itemType,r,i):null}evaluate(e){const t=this.index.evaluate(e),r=this.input.evaluate(e);if(t<0)throw new _r(`Array index out of bounds: ${t} < 0.`);if(t>=r.length)throw new _r(`Array index out of bounds: ${t} > ${r.length-1}.`);if(t!==Math.floor(t))throw new _r(`Array index must be an integer, but found ${t} instead.`);return r[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var wn=xn;class An{constructor(e,t){this.type=Vt,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=t.parse(e[1],1,Ht),i=t.parse(e[2],2,Ht);return r&&i?$t(r.type,[Vt,Ut,Nt,Ft,Ht])?new An(r,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Xt(r.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(null==r)return!1;if(!er(t,["boolean","string","number","null"]))throw new _r(`Expected first argument to be of type boolean, string, number or null, but found ${Xt(mr(t))} instead.`);if(!er(r,["string","array"]))throw new _r(`Expected second argument to be of type array or string, but found ${Xt(mr(r))} instead.`);return r.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var En=An;class Sn{constructor(e,t,r){this.type=Nt,this.needle=e,this.haystack=t,this.fromIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=t.parse(e[1],1,Ht),i=t.parse(e[2],2,Ht);if(!r||!i)return null;if(!$t(r.type,[Vt,Ut,Nt,Ft,Ht]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Xt(r.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,Nt);return n?new Sn(r,i,n):null}return new Sn(r,i)}evaluate(e){const t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!er(t,["boolean","string","number","null"]))throw new _r(`Expected first argument to be of type boolean, string, number or null, but found ${Xt(mr(t))} instead.`);if(!er(r,["string","array"]))throw new _r(`Expected second argument to be of type array or string, but found ${Xt(mr(r))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return r.indexOf(t,i)}return r.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Tn=Sn;class Cn{constructor(e,t,r,i,n,s){this.inputType=e,this.type=t,this.input=r,this.cases=i,this.outputs=n,this.otherwise=s}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let r,i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const n={},s=[];for(let o=2;o<e.length-1;o+=2){let a=e[o];const l=e[o+1];
vendor: 23,925 bytes, line 2
2Array.isArray(a)||(a=[a]);const c=t.concat(o);if(0===a.length)return c.error("Expected at least one branch label.");for(const e of a){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(r){if(c.checkSubtype(r,mr(e)))return null}else r=mr(e);if(void 0!==n[String(e)])return c.error("Branch labels must be unique.");n[String(e)]=s.length}const u=t.parse(l,o,i);if(!u)return null;i=i||u.type,s.push(u)}const o=t.parse(e[1],1,Ht);if(!o)return null;const a=t.parse(e[e.length-1],e.length-1,i);return a?"value"!==o.type.kind&&t.concat(1).checkSubtype(r,o.type)?null:new Cn(r,i,o,n,s,a):null}evaluate(e){const t=this.input.evaluate(e);return(mr(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),r=[],i={};for(const e of t){const t=i[this.cases[e]];void 0===t?(i[this.cases[e]]=r.length,r.push([this.cases[e],[e]])):r[t][1].push(e)}const n=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,i]of r)e.push(1===i.length?n(i[0]):i.map(n)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}var In=Cn;class Pn{constructor(e,t,r){this.type=e,this.branches=t,this.otherwise=r}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const i=[];for(let n=1;n<e.length-1;n+=2){const s=t.parse(e[n],n,Vt);if(!s)return null;const o=t.parse(e[n+1],n+1,r);if(!o)return null;i.push([s,o]),r=r||o.type}const n=t.parse(e[e.length-1],e.length-1,r);return n?new Pn(r,i,n):null}evaluate(e){for(const[t,r]of this.branches)if(t.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,r]of this.branches)e(t),e(r);e(this.otherwise)}outputDefined(){return this.branches.every((([e,t])=>t.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Mn=Pn;class kn{constructor(e,t,r,i){this.type=e,this.input=t,this.beginIndex=r,this.endIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=t.parse(e[1],1,Ht),i=t.parse(e[2],2,Nt);if(!r||!i)return null;if(!$t(r.type,[Zt(Ht),Ut,Ht]))return t.error(`Expected first argument to be of type array or string, but found ${Xt(r.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,Nt);return n?new kn(r.type,r,i,n):null}return new kn(r.type,r,i)}evaluate(e){const t=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!er(t,["string","array"]))throw new _r(`Expected first argument to be of type array or string, but found ${Xt(mr(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return t.slice(r,i)}return t.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var On=kn;function Rn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Dn(e,t,r,i){return 0===i.compare(t,r)}function Ln(e,t,r){const i="=="!==e&&"!="!==e;return class n{constructor(e,t,r){this.type=Vt,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const r=e[0];let s=t.parse(e[1],1,Ht);if(!s)return null;if(!Rn(r,s.type))return t.concat(1).error(`"${r}" comparisons are not supported for type '${Xt(s.type)}'.`);let o=t.parse(e[2],2,Ht);if(!o)return null;if(!Rn(r,o.type))return t.concat(2).error(`"${r}" comparisons are not supported for type '${Xt(o.type)}'.`);if(s.type.kind!==o.type.kind&&"value"!==s.type.kind&&"value"!==o.type.kind)return t.error(`Cannot compare types '${Xt(s.type)}' and '${Xt(o.type)}'.`);i&&("value"===s.type.kind&&"value"!==o.type.kind?s=new wr(o.type,[s]):"value"!==s.type.kind&&"value"===o.type.kind&&(o=new wr(s.type,[o])));let a=null;if(4===e.length){if("string"!==s.type.kind&&"string"!==o.type.kind&&"value"!==s.type.kind&&"value"!==o.type.kind)return t.error("Cannot use collator to compare non-string types.");if(a=t.parse(e[3],3,Wt),!a)return null}return new n(s,o,a)}evaluate(n){const s=this.lhs.evaluate(n),o=this.rhs.evaluate(n);if(i&&this.hasUntypedArgument){const t=mr(s),r=mr(o);if(t.kind!==r.kind||"string"!==t.kind&&"number"!==t.kind)throw new _r(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${r.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const e=mr(s),r=mr(o);if("string"!==e.kind||"string"!==r.kind)return t(n,s,o)}return this.collator?r(n,s,o,this.collator.evaluate(n)):t(n,s,o)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const Bn=Ln("==",(function(e,t,r){return t===r}),Dn),zn=Ln("!=",(function(e,t,r){return t!==r}),(function(e,t,r,i){return!Dn(0,t,r,i)})),jn=Ln("<",(function(e,t,r){return t<r}),(function(e,t,r,i){return i.compare(t,r)<0})),Fn=Ln(">",(function(e,t,r){return t>r}),(function(e,t,r,i){return i.compare(t,r)>0})),Nn=Ln("<=",(function(e,t,r){return t<=r}),(function(e,t,r,i){return i.compare(t,r)<=0})),Un=Ln(">=",(function(e,t,r){return t>=r}),(function(e,t,r,i){return i.compare(t,r)>=0}));class Vn{constructor(e,t,r,i,n,s){this.type=Ut,this.number=e,this.locale=t,this.currency=r,this.unit=i,this.minFractionDigits=n,this.maxFractionDigits=s}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const r=t.parse(e[1],1,Nt);if(!r)return null;const i=e[2];if("object"!=typeof i||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let n=null;if(i.locale&&(n=t.parse(i.locale,1,Ut),!n))return null;let s=null;if(i.currency&&(s=t.parse(i.currency,1,Ut),!s))return null;let o=null;if(i.unit&&(o=t.parse(i.unit,1,Ut),!o))return null;let a=null;if(i["min-fraction-digits"]&&(a=t.parse(i["min-fraction-digits"],1,Nt),!a))return null;let l=null;return i["max-fraction-digits"]&&(l=t.parse(i["max-fraction-digits"],1,Nt),!l)?null:new Vn(r,n,s,o,a,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Gn{constructor(e){this.type=Nt,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=t.parse(e[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?t.error(`Expected argument of type string or array, but found ${Xt(r.type)} instead.`):new Gn(r):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new _r(`Expected value to be of type string or array, but found ${Xt(mr(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}function qn(e){return function(){e=1831565813+(e|=0)|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const Hn={"==":Bn,"!=":zn,">":Fn,"<":jn,">=":Un,"<=":Nn,array:wr,at:wn,boolean:wr,case:Mn,coalesce:vn,collator:Rr,format:Ar,image:Er,in:En,"index-of":Tn,interpolate:gn,"interpolate-hcl":gn,"interpolate-lab":gn,length:Gn,let:bn,literal:vr,match:In,number:wr,"number-format":Vn,object:wr,slice:On,step:Hi,string:wr,"to-boolean":Ir,"to-color":Ir,"to-number":Ir,"to-string":Ir,var:Fi,within:ti,distance:Ri};function Wn(e,[t,r,i,n]){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);const s=n?n.evaluate(e):1,o=pr(t,r,i,s);if(o)throw new _r(o);return new lr(t/255*s,r/255*s,i/255*s,s)}function Yn(e,[t,r,i,n]){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);const s=n?n.evaluate(e):1,o=function(e,t,r,i){return"number"==typeof e&&e>=0&&e<=360?"number"==typeof t&&t>=0&&t<=100&&"number"==typeof r&&r>=0&&r<=100?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:`Invalid hsla value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${("number"==typeof i?[e,t,r,i]:[e,t,r]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${("number"==typeof i?[e,t,r,i]:[e,t,r]).join(", ")}]: 'h' must be between 0 and 360.`}(t,r,i,s);if(o)throw new _r(o);const a=`hsla(${t}, ${r}%, ${i}%, ${s})`,l=lr.parse(a);if(!l)throw new _r(`Failed to parse HSLA color: ${a}`);return l}function Qn(e,t){return e in t}function Zn(e,t){const r=t[e];return void 0===r?null:r}function Xn(e,t,r){r.length&&(t+=`�${r}`);const i=e.getConfig(t);return i?i.evaluate(e):null}function Kn(e){return{type:e}}Or.register(Hn,{error:[{kind:"error"},[Ut],(e,[t])=>{throw new _r(t.evaluate(e))}],typeof:[Ut,[Ht],(e,[t])=>Xt(mr(t.evaluate(e)))],"to-rgba":[Zt(Nt,4),[Gt],(e,[t])=>t.evaluate(e).toArray()],rgb:[Gt,[Nt,Nt,Nt],Wn],rgba:[Gt,[Nt,Nt,Nt,Nt],Wn],hsl:[Gt,[Nt,Nt,Nt],Yn],hsla:[Gt,[Nt,Nt,Nt,Nt],Yn],has:{type:Vt,overloads:[[[Ut],(e,[t])=>Qn(t.evaluate(e),e.properties())],[[Ut,qt],(e,[t,r])=>Qn(t.evaluate(e),r.evaluate(e))]]},get:{type:Ht,overloads:[[[Ut],(e,[t])=>Zn(t.evaluate(e),e.properties())],[[Ut,qt],(e,[t,r])=>Zn(t.evaluate(e),r.evaluate(e))]]},config:{type:Ht,overloads:[[[Ut],(e,[t])=>Xn(e,t.evaluate(e),"")],[[Ut,Ut],(e,[t,r])=>Xn(e,t.evaluate(e),r.evaluate(e))]]},"feature-state":[Ht,[Ut],(e,[t])=>Zn(t.evaluate(e),e.featureState||{})],properties:[qt,[],e=>e.properties()],"geometry-type":[Ut,[],e=>e.geometryType()],id:[Ht,[],e=>e.id()],zoom:[Nt,[],e=>e.globals.zoom],pitch:[Nt,[],e=>e.globals.pitch||0],"distance-from-center":[Nt,[],e=>e.distanceFromCenter()],"measure-light":[Nt,[Ut],(e,[t])=>e.measureLight(t.evaluate(e))],"heatmap-density":[Nt,[],e=>e.globals.heatmapDensity||0],"line-progress":[Nt,[],e=>e.globals.lineProgress||0],"raster-value":[Nt,[],e=>e.globals.rasterValue||0],"sky-radial-progress":[Nt,[],e=>e.globals.skyRadialProgress||0],accumulated:[Ht,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[Nt,Kn(Nt),(e,t)=>{let r=0;for(const i of t)r+=i.evaluate(e);return r}],"*":[Nt,Kn(Nt),(e,t)=>{let r=1;for(const i of t)r*=i.evaluate(e);return r}],"-":{type:Nt,overloads:[[[Nt,Nt],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[Nt],(e,[t])=>-t.evaluate(e)]]},"/":[Nt,[Nt,Nt],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[Nt,[Nt,Nt],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[Nt,[],()=>Math.LN2],pi:[Nt,[],()=>Math.PI],e:[Nt,[],()=>Math.E],"^":[Nt,[Nt,Nt],(e,[t,r])=>Math.pow(t.evaluate(e),r.evaluate(e))],sqrt:[Nt,[Nt],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[Nt,[Nt],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[Nt,[Nt],(e,[t])=>Math.log(t.evaluate(e))],log2:[Nt,[Nt],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[Nt,[Nt],(e,[t])=>Math.sin(t.evaluate(e))],cos:[Nt,[Nt],(e,[t])=>Math.cos(t.evaluate(e))],tan:[Nt,[Nt],(e,[t])=>Math.tan(t.evaluate(e))],asin:[Nt,[Nt],(e,[t])=>Math.asin(t.evaluate(e))],acos:[Nt,[Nt],(e,[t])=>Math.acos(t.evaluate(e))],atan:[Nt,[Nt],(e,[t])=>Math.atan(t.evaluate(e))],min:[Nt,Kn(Nt),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[Nt,Kn(Nt),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[Nt,[Nt],(e,[t])=>Math.abs(t.evaluate(e))],round:[Nt,[Nt],(e,[t])=>{const r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[Nt,[Nt],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[Nt,[Nt],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Vt,[Ut,Ht],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[Vt,[Ht],(e,[t])=>e.id()===t.value],"filter-type-==":[Vt,[Ut],(e,[t])=>e.geometryType()===t.value],"filter-<":[Vt,[Ut,Ht],(e,[t,r])=>{const i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i<n}],"filter-id-<":[Vt,[Ht],(e,[t])=>{const r=e.id(),i=t.value;return typeof r==typeof i&&r<i}],"filter->":[Vt,[Ut,Ht],(e,[t,r])=>{const i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Vt,[Ht],(e,[t])=>{const r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[Vt,[Ut,Ht],(e,[t,r])=>{const i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Vt,[Ht],(e,[t])=>{const r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[Vt,[Ut,Ht],(e,[t,r])=>{const i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Vt,[Ht],(e,[t])=>{const r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[Vt,[Ht],(e,[t])=>t.value in e.properties()],"filter-has-id":[Vt,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Vt,[Zt(Ut)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Vt,[Zt(Ht)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Vt,[Ut,Zt(Ht)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Vt,[Ut,Zt(Ht)],(e,[t,r])=>function(e,t,r,i){for(;r<=i;){const n=r+i>>1;if(t[n]===e)return!0;t[n]>e?i=n-1:r=n+1}return!1}(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:Vt,overloads:[[[Vt,Vt],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[Kn(Vt),(e,t)=>{for(const r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:Vt,overloads:[[[Vt,Vt],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[Kn(Vt),(e,t)=>{for(const r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[Vt,[Vt],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Vt,[Ut],(e,[t])=>{const r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[Ut,[Ut],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Ut,[Ut],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Ut,Kn(Ht),(e,t)=>t.map((t=>gr(t.evaluate(e)))).join("")],"resolved-locale":[Ut,[Wt],(e,[t])=>t.evaluate(e).resolvedLocale()],random:[Nt,[Nt,Nt,Ht],(e,t)=>{const[r,i,n]=t.map((t=>t.evaluate(e)));if(r>i)return r;if(r===i)return r;let s;if("string"==typeof n)s=function(e){let t=0;if(0===e.length)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(n);else{if("number"!=typeof n)throw new _r(`Invalid seed input: ${n}`);s=n}return r+qn(s)()*(i-r)}]});var Jn=Hn;function $n(e){return{result:"success",value:e}}function es(e){return{result:"error",value:e}}function ts(e,t){return!!e&&!!e.parameters&&e.parameters.indexOf(t)>-1}function rs(e){return"data-driven"===e["property-type"]}function is(e){return ts(e.expression,"measure-light")}function ns(e){return ts(e.expression,"zoom")}function ss(e){return!!e.expression&&e.expression.interpolated}function os(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function as(e){return e}function ls(e,t){const r="color"===t.type,i=e.stops&&"object"==typeof e.stops[0][0],n=i||!(i||void 0!==e.property),s=e.type||(ss(t)?"exponential":"interval");if(r&&((e=Ot({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],lr.parse(e[1])]))),e.default=lr.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!pn[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let o,a,l;if("exponential"===s)o=ds;else if("interval"===s)o=hs;else if("categorical"===s){o=us,a=Object.create(null);for(const t of e.stops)a[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==s)throw new Error(`Unknown function type "${s}"`);o=ps}if(i){const r={},i=[];for(let t=0;t<e.stops.length;t++){const n=e.stops[t],s=n[0].zoom;void 0===r[s]&&(r[s]={zoom:s,type:e.type,property:e.property,default:e.default,stops:[]},i.push(s)),r[s].stops.push([n[0].value,n[1]])}const n=[];for(const e of i)n.push([r[e].zoom,ls(r[e],t)]);const s={name:"linear"};return{kind:"composite",interpolationType:s,interpolationFactor:gn.interpolationFactor.bind(void 0,s),zoomStops:n.map((e=>e[0])),evaluate:({zoom:r},i)=>ds({stops:n,base:e.base},t,r).evaluate(r,i)}}if(n){const r="exponential"===s?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:r,interpolationFactor:gn.interpolationFactor.bind(void 0,r),zoomStops:e.stops.map((e=>e[0])),evaluate:({zoom:r})=>o(e,t,r,a,l)}}return{kind:"source",evaluate(r,i){const n=i&&i.properties?i.properties[e.property]:void 0;return void 0===n?cs(e.default,t.default):o(e,t,n,a,l)}}}function cs(e,t,r){return void 0!==e?e:void 0!==t?t:void 0!==r?r:void 0}function us(e,t,r,i,n){return cs(typeof r===n?i[r]:void 0,e.default,t.default)}function hs(e,t,r){if("number"!==Sr(r))return cs(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];const n=Gi(e.stops.map((e=>e[0])),r);return e.stops[n][1]}function ds(e,t,r){const i=void 0!==e.base?e.base:1;if("number"!==Sr(r))return cs(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];const s=Gi(e.stops.map((e=>e[0])),r),o=function(e,t,r,i){const n=i-r,s=e-r;return 0===n?0:1===t?s/n:(Math.pow(t,s)-1)/(Math.pow(t,n)-1)}(r,i,e.stops[s][0],e.stops[s+1][0]),a=e.stops[s][1],l=e.stops[s+1][1];let c=Qi[t.type]||as;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=pn[e.colorSpace];c=(e,r)=>t.reverse(t.interpolate(t.forward(e),t.forward(r),o))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),r=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==r)return c(t,r,o)}}:c(a,l,o)}function ps(e,t,r){return"color"===t.type?r=lr.parse(r):"formatted"===t.type?r=hr.fromString(r.toString()):"resolvedImage"===t.type?r=dr.fromString(r.toString()):Sr(r)===t.type||"enum"===t.type&&t.values[r]||(r=void 0),cs(r,e.default,t.default)}class fs{constructor(e,t,r){this.expression=e,this._warningHistory={},this._evaluator=new Mr(r),this._defaultValue=t?function(e){return"color"===e.type&&(os(e.default)||Array.isArray(e.default))?new lr(0,0,0,0):"color"===e.type?lr.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,r,i,n,s,o,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=s,this._evaluator.featureTileCoord=o||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,n,s,o,a){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=s||null,this._evaluator.featureTileCoord=o||null,this._evaluator.featureDistanceData=a||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new _r(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function ms(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Jn}function gs(e,t,r){const i=new Ui(Jn,[],t?function(e){const t={color:Gt,string:Ut,number:Nt,enum:Ut,boolean:Vt,formatted:Yt,resolvedImage:Qt};return"array"===e.type?Zt(t[e.value]||Ht,e.length):t[e.type]}(t):void 0,void 0,void 0,r),n=i.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?$n(new fs(n,t,r)):es(i.errors)}class ys{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isLightConstant=r,this.isStateDependent="constant"!==e&&!Li(t.expression),this.isConfigDependent=!Bi(t.expression)}evaluateWithoutErrorHandling(e,t,r,i,n,s){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,s)}evaluate(e,t,r,i,n,s){return this._styleExpression.evaluate(e,t,r,i,n,s)}}class vs{constructor(e,t,r,i,n){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Li(t.expression),this.isLightConstant=n,this.isConfigDependent=!Bi(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,t,r,i,n,s){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,s)}evaluate(e,t,r,i,n,s){return this._styleExpression.evaluate(e,t,r,i,n,s)}interpolationFactor(e,t,r){return this.interpolationType?gn.interpolationFactor(this.interpolationType,e,t,r):0}}function _s(e,t,r){if("error"===(e=gs(e,t,r)).result)return e;const i=e.value.expression,n=Di(i);if(!n&&!rs(t))return es([new Bt("","data expressions not supported")]);const s=zi(i,["zoom","pitch","distance-from-center"]);if(!s&&!ns(t))return es([new Bt("","zoom expressions not supported")]);const o=zi(i,["measure-light"]);if(!o&&!is(t))return es([new Bt("","measure-light expression not supported")]);const a=t.expression&&t.expression.relaxZoomRestriction,l=xs(i);return l||s||a?l instanceof Bt?es([l]):l instanceof gn&&!ss(t)?es([new Bt("",'"interpolate" expressions cannot be used with this property')]):$n(l?new vs(n?"camera":"composite",e.value,l.labels,l instanceof gn?l.interpolation:void 0,o):new ys(n?"constant":"source",e.value,o)):es([new Bt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class bs{constructor(e,t){this._parameters=e,this._specification=t,Ot(this,ls(this._parameters,this._specification))}static deserialize(e){return new bs(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function xs(e){let t=null;if(e instanceof bn)t=xs(e.result);else if(e instanceof vn){for(const r of e.args)if(t=xs(r),t)break}else(e instanceof Hi||e instanceof gn)&&e.input instanceof Or&&"zoom"===e.input.name&&(t=e);return t instanceof Bt||e.eachChild((e=>{const r=xs(e);r instanceof Bt?t=r:t&&r&&t!==r&&(t=new Bt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function ws(e){const t=e.key,r=e.value,i=e.valueSpec||{},n=e.objectElementValidators||{},s=e.style,o=e.styleSpec;let a=[];const l=Sr(r);if("object"!==l)return[new Mt(t,r,`object expected, ${l}
2 found`)];for(const e in r){const l=e.split(".")[0];let c;n[l]?c=n[l]:i[l]?c=no:n["*"]?c=n["*"]:i["*"]&&(c=no),c?a=a.concat(c({key:(t?`${t}.`:t)+e,value:r[e],valueSpec:i[l]||i["*"],style:s,styleSpec:o,object:r,objectKey:e},r)):a.push(new kt(t,r[e],`unknown property "${e}"`))}for(const e in i)n[e]||i[e].required&&void 0===i[e].default&&void 0===r[e]&&a.push(new Mt(t,r,`missing required property "${e}"`));return a}function As(e){const t=e.value,r=e.valueSpec,i=e.style,n=e.styleSpec,s=e.key,o=e.arrayElementValidator||no;if("array"!==Sr(t))return[new Mt(s,t,`array expected, ${Sr(t)} found`)];if(r.length&&t.length!==r.length)return[new Mt(s,t,`array length ${r.length} expected, length ${t.length} found`)];if(r["min-length"]&&t.length<r["min-length"])return[new Mt(s,t,`array length at least ${r["min-length"]} expected, length ${t.length} found`)];let a={type:r.value,values:r.values,minimum:r.minimum,maximum:r.maximum,function:void 0};n.$version<7&&(a.function=r.function),"object"===Sr(r.value)&&(a=r.value);let l=[];for(let e=0;e<t.length;e++)l=l.concat(o({array:t,arrayIndex:e,value:t[e],valueSpec:a,style:i,styleSpec:n,key:`${s}[${e}]`},!0));return l}function Es(e){const t=e.key,r=e.value,i=e.valueSpec;let n=Sr(r);if("number"===n&&r!=r&&(n="NaN"),"number"!==n)return[new Mt(t,r,`number expected, ${n} found`)];if("minimum"in i){let n=i.minimum;if("array"===Sr(i.minimum)&&(n=i.minimum[e.arrayIndex]),r<n)return[new Mt(t,r,`${r} is less than the minimum value ${n}`)]}if("maximum"in i){let n=i.maximum;if("array"===Sr(i.maximum)&&(n=i.maximum[e.arrayIndex]),r>n)return[new Mt(t,r,`${r} is greater than the maximum value ${n}`)]}return[]}function Ss(e){const t=e.valueSpec,r=Rt(e.value.type);let i,n,s,o={};const a="categorical"!==r&&void 0===e.value.property,l=!a,c="array"===Sr(e.value.stops)&&"array"===Sr(e.value.stops[0])&&"object"===Sr(e.value.stops[0][0]),u=ws({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===r)return[new Mt(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const i=e.value;return t=t.concat(As({key:e.key,value:i,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:h})),"array"===Sr(i)&&0===i.length&&t.push(new Mt(e.key,i,"array must have at least one stop")),t},default:function(e){return no({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===r&&a&&u.push(new Mt(e.key,e.value,'missing required property "property"')),"identity"===r||e.value.stops||u.push(new Mt(e.key,e.value,'missing required property "stops"')),"exponential"===r&&e.valueSpec.expression&&!ss(e.valueSpec)&&u.push(new Mt(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!rs(e.valueSpec)?u.push(new Mt(e.key,e.value,"property functions not supported")):a&&!ns(e.valueSpec)&&u.push(new Mt(e.key,e.value,"zoom functions not supported"))),"categorical"!==r&&!c||void 0!==e.value.property||u.push(new Mt(e.key,e.value,'"property" property is required')),u;function h(e){let r=[];const i=e.value,a=e.key;if("array"!==Sr(i))return[new Mt(a,i,`array expected, ${Sr(i)} found`)];if(2!==i.length)return[new Mt(a,i,`array length 2 expected, length ${i.length} found`)];if(c){if("object"!==Sr(i[0]))return[new Mt(a,i,`object expected, ${Sr(i[0])} found`)];if(void 0===i[0].zoom)return[new Mt(a,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new Mt(a,i,"object stop key must have value")];const t=Rt(i[0].zoom);if("number"!=typeof t)return[new Mt(a,i[0].zoom,"stop zoom values must be numbers")];if(s&&s>t)return[new Mt(a,i[0].zoom,"stop zoom values must appear in ascending order")];t!==s&&(s=t,n=void 0,o={}),r=r.concat(ws({key:`${a}[0]`,value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Es,value:d}}))}else r=r.concat(d({key:`${a}[0]`,value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return ms(Dt(i[1]))?r.concat([new Mt(`${a}[1]`,i[1],"expressions are not allowed in function stops.")]):r.concat(no({key:`${a}[1]`,value:i[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function d(e,s){const a=Sr(e.value),l=Rt(e.value),c=null!==e.value?e.value:s;if(i){if(a!==i)return[new Mt(e.key,c,`${a} stop domain type must match previous stop domain type ${i}`)]}else i=a;if("number"!==a&&"string"!==a&&"boolean"!==a&&"number"!=typeof l&&"string"!=typeof l&&"boolean"!=typeof l)return[new Mt(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==r){let i=`number expected, ${a} found`;return rs(t)&&void 0===r&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Mt(e.key,c,i)]}return"categorical"!==r||"number"!==a||"number"==typeof l&&isFinite(l)&&Math.floor(l)===l?"categorical"!==r&&"number"===a&&"number"==typeof l&&"number"==typeof n&&void 0!==n&&l<n?[new Mt(e.key,c,"stop domain values must appear in ascending order")]:(n=l,"categorical"===r&&l in o?[new Mt(e.key,c,"stop domain values must be unique")]:(o[l]=!0,[])):[new Mt(e.key,c,`integer expected, found ${String(l)}
2`)]}}function Ts(e){const t=("property"===e.expressionContext?_s:gs)(Dt(e.value),e.valueSpec);if("error"===t.result)return t.value.map((t=>new Mt(`${e.key}${t.key}`,e.value,t.message)));const r=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!r.outputDefined())return[new Mt(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!Li(r))return[new Mt(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext)return Cs(r,e);if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!zi(r,["zoom","feature-state"]))return[new Mt(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Di(r))return[new Mt(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Cs(e,t){const r=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(t.valueSpec&&t.valueSpec.expression)for(const e of t.valueSpec.expression.parameters)r.delete(e);if(0===r.size)return[];const i=[];return e instanceof Or&&r.has(e.name)?[new Mt(t.key,t.value,`["${e.name}"] expression is not supported in a filter for a ${t.object.type} layer with id: ${t.object.id}`)]:(e.eachChild((e=>{i.push(...Cs(e,t))})),i)}function Is(e){const t=e.key,r=e.value,i=e.valueSpec,n=[];return Array.isArray(i.values)?-1===i.values.indexOf(Rt(r))&&n.push(new Mt(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(i.values).indexOf(Rt(r))&&n.push(new Mt(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function Ps(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!Ps(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Ms(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Ps(e)||(e=zs(e));const r=e;let i=!0;try{i=function(e){if(!Rs(e))return e;let t=Dt(e);return Os(t),t=ks(t),t}(r)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(r,null,2)}\n `)}const n=Pt[`filter_${t}`],s=gs(i,n);let o=null;if("error"===s.result)throw new Error(s.value.map((e=>`${e.key}: ${e.message}`)).join(", "));o=(e,t,r)=>s.value.evaluate(e,t,{},r);let a=null,l=null;if(i!==r){const e=gs(r,n);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(t,r,i,n,s)=>e.value.evaluate(t,r,{},i,void 0,void 0,n,s),l=!Di(e.value.expression)}return{filter:o,dynamicFilter:a||void 0,needGeometry:Bs(i),needFeature:!!l}}function ks(e){if(!Array.isArray(e))return e;const t=function(e){if(Ds.has(e[0]))for(let t=1;t<e.length;t++)if(Rs(e[t]))return!0;return e}(e);return!0===t?t:t.map((e=>ks(e)))}function Os(e){let t=!1;const r=[];if("case"===e[0]){for(let i=1;i<e.length-1;i+=2)t=t||Rs(e[i]),r.push(e[i+1]);r.push(e[e.length-1])}else if("match"===e[0]){t=t||Rs(e[1]);for(let t=2;t<e.length-1;t+=2)r.push(e[t+1]);r.push(e[e.length-1])}else if("step"===e[0]){t=t||Rs(e[1]);for(let t=1;t<e.length-1;t+=2)r.push(e[t+1])}t&&(e.length=0,e.push("any",...r));for(let t=1;t<e.length;t++)Os(e[t])}function Rs(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let t=1;t<e.length;t++)if(Rs(e[t]))return!0;return!1}const Ds=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Ls(e,t){return e<t?-1:e>t?1:0}function Bs(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(Bs(e[t]))return!0;return!1}function zs(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?js(e[1],e[2],"=="):"!="===t?Us(js(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?js(e[1],e[2],t):"any"===t?(r=e.slice(1),["any"].concat(r.map(zs))):"all"===t?["all"].concat(e.slice(1).map(zs)):"none"===t?["all"].concat(e.slice(1).map(zs).map(Us)):"in"===t?Fs(e[1],e.slice(2)):"!in"===t?Us(Fs(e[1],e.slice(2))):"has"===t?Ns(e[1]):"!has"!==t||Us(Ns(e[1]));var r}function js(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function Fs(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(Ls)]]:["filter-in-small",e,["literal",t]]}}function Ns(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Us(e){return["!",e]}function Vs(e){return Ps(Dt(e.value))?Ts(Ot({},e,{expressionContext:"filter",valueSpec:e.styleSpec[`filter_${e.layerType||"fill"}`]})):Gs(e)}function Gs(e){const t=e.value,r=e.key;if("array"!==Sr(t))return[new Mt(r,t,`array expected, ${Sr(t)} found`)];const i=e.styleSpec;let n,s=[];if(t.length<1)return[new Mt(r,t,"filter array must have at least 1 element")];switch(s=s.concat(Is({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec}
2)),Rt(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Rt(t[1])&&s.push(new Mt(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&s.push(new Mt(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=Sr(t[1]),"string"!==n&&s.push(new Mt(`${r}[1]`,t[1],`string expected, ${n} found`)));for(let o=2;o<t.length;o++)n=Sr(t[o]),"$type"===Rt(t[1])?s=s.concat(Is({key:`${r}[${o}]`,value:t[o],valueSpec:i.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&s.push(new Mt(`${r}[${o}]`,t[o],`string, number, or boolean expected, ${n} found`));break;case"any":case"all":case"none":for(let i=1;i<t.length;i++)s=s.concat(Gs({key:`${r}[${i}]`,value:t[i],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=Sr(t[1]),2!==t.length?s.push(new Mt(r,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==n&&s.push(new Mt(`${r}[1]`,t[1],`string expected, ${n} found`))}return s}function qs(e,t){const r=e.key,i=e.style,n=e.layer,s=e.styleSpec,o=e.value,a=e.objectKey,l=s[`${t}_${e.layerType}`];if(!l)return[];const c=a.match(/^(.*)-transition$/);if("paint"===t&&c&&l[c[1]]&&l[c[1]].transition)return no({key:r,value:o,valueSpec:s.transition,style:i,styleSpec:s});const u=e.valueSpec||l[a];if(!u)return[new kt(r,o,`unknown property "${a}"`)];let h;if("string"===Sr(o)&&rs(u)&&!u.tokens&&(h=/^{([^}]+)}$/.exec(o))){const e=`\`{ "type": "identity", "property": ${h?JSON.stringify(h[1]):'"_"'} }\``;return[new Mt(r,o,`"${a}" does not support interpolation syntax\nUse an identity property function instead: ${e}.`)]}const d=[];if("symbol"===e.layerType)"text-field"!==a||!i||i.glyphs||i.imports||d.push(new Mt(r,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&os(Dt(o))&&"identity"===Rt(o.type)&&d.push(new Mt(r,o,'"text-font" does not support identity functions'));else if("model"===e.layerType&&"paint"===t&&n&&n.layout&&n.layout.hasOwnProperty("model-id")&&rs(u)&&(is(u)||ns(u))){const e=_s(Dt(o),u),t=e.value.expression||e.value._styleExpression.expression;t&&!zi(t,["measure-light"])&&d.push(new Mt(r,o,`${a} does not support measure-light expressions when the model layer source is vector tile or GeoJSON.`))}return d.concat(no({key:e.key,value:o,valueSpec:u,style:i,styleSpec:s,expressionContext:"property",propertyType:t,propertyKey:a}))}function Hs(e){return qs(e,"paint")}function Ws(e){return qs(e,"layout")}function Ys(e){let t=[];const r=e.value,i=e.key,n=e.style,s=e.styleSpec;r.type||r.ref||t.push(new Mt(i,r,'either "type" or "ref" is required'));let o=Rt(r.type);const a=Rt(r.ref);if(r.id){const s=Rt(r.id);for(let o=0;o<e.arrayIndex;o++){const e=n.layers[o];Rt(e.id)===s&&t.push(new Mt(i,r.id,`duplicate layer id "${r.id}", previously used at line ${e.id.__line__}`))}}if("ref"in r){let e;["type","source","source-layer","filter","layout"].forEach((e=>{e in r&&t.push(new Mt(i,r[e],`"${e}" is prohibited for ref layers`))})),n.layers.forEach((t=>{Rt(t.id)===a&&(e=t)})),e?e.ref?t.push(new Mt(i,r.ref,"ref cannot reference another ref layer")):o=Rt(e.type):"string"==typeof a&&t.push(new Mt(i,r.ref,`ref layer "${a}" not found`))}else if("background"!==o&&"sky"!==o&&"slot"!==o)if(r.source){const e=n.sources&&n.sources[r.source],s=e&&Rt(e.type);e?"vector"===s&&"raster"===o?t.push(new Mt(i,r.source,`layer "${r.id}" requires a raster source`)):"raster"===s&&"raster"!==o?t.push(new Mt(i,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==s||r["source-layer"]?"raster-dem"===s&&"hillshade"!==o?t.push(new Mt(i,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==o||!r.paint||!r.paint["line-gradient"]&&!r.paint["line-trim-offset"]||"geojson"===s&&e.lineMetrics||t.push(new Mt(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Mt(i,r,`layer "${r.id}" must specify a "source-layer"`)):t.push(new Mt(i,r.source,`source "${r.source}" not found`))}else t.push(new Mt(i,r,'missing required property "source"'));return t=t.concat(ws({key:i,value:r,valueSpec:s.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>no({key:`${i}.type`,value:r.type,valueSpec:s.layer.type,style:e.style,styleSpec:e.styleSpec,object:r,objectKey:"type"}),filter:e=>Vs(Ot({layerType:o},e)),layout:e=>ws({layer:r,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Ws(Ot({layerType:o},e))}}),paint:e=>ws({layer:r,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Hs(Ot({layerType:o,layer:r},e))}})}})),t}function Qs(e){const t=e.value,r=e.key,i=Sr(t);return"string"!==i?[new Mt(r,t,`string expected, ${i} found`)]:[]}const Zs={promoteId:function({key:e,value:t}
2){if("string"===Sr(t))return Qs({key:e,value:t});{const r=[];for(const i in t)r.push(...Qs({key:`${e}.${i}`,value:t[i]}));return r}}};function Xs(e){const t=e.value,r=e.key,i=e.styleSpec,n=e.style;if(!t.type)return[new Mt(r,t,'"type" is required')];const s=Rt(t.type);let o;switch(s){case"vector":case"raster":case"raster-dem":return o=ws({key:r,value:t,valueSpec:i[`source_${s.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:Zs}),o;case"geojson":if(o=ws({key:r,value:t,valueSpec:i.source_geojson,style:n,styleSpec:i,objectElementValidators:Zs}),t.cluster)for(const e in t.clusterProperties){const[i,n]=t.clusterProperties[e],s="string"==typeof i?[i,["accumulated"],["get",e]]:i;o.push(...Ts({key:`${r}.${e}.map`,value:n,expressionContext:"cluster-map"})),o.push(...Ts({key:`${r}.${e}.reduce`,value:s,expressionContext:"cluster-reduce"}))}return o;case"video":return ws({key:r,value:t,valueSpec:i.source_video,style:n,styleSpec:i});case"image":return ws({key:r,value:t,valueSpec:i.source_image,style:n,styleSpec:i});case"canvas":return[new Mt(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Is({key:`${r}.type`,value:t.type,valueSpec:{values:Ks(i)},style:n,styleSpec:i})}}function Ks(e){return e.source.reduce(((t,r)=>{const i=e[r];return"enum"===i.type.type&&(t=t.concat(Object.keys(i.type.values))),t}),[])}function Js(e){const t=e.value;let r=[];if(!t)return r;const i=Sr(t);return"string"!==i?(r=r.concat([new Mt(e.key,t,`string expected, "${i}" found`)]),r):(function(e){const t=-1===e.indexOf("://");try{return new URL(e,t?"http://example.com":void 0),!0}catch(e){return!1}}(t)||(r=r.concat([new Mt(e.key,t,`invalid url "${t}"`)])),r)}function $s(e){const t=e.value,r=e.styleSpec,i=r.light,n=e.style;let s=[];const o=Sr(t);if(void 0===t)return s;if("object"!==o)return s=s.concat([new Mt("light",t,`object expected, ${o} found`)]),s;for(const e in t){const o=e.match(/^(.*)-transition$/);s=s.concat(o&&i[o[1]]&&i[o[1]].transition?no({key:e,value:t[e],valueSpec:r.transition,style:n,styleSpec:r}):i[e]?no({key:e,value:t[e],valueSpec:i[e],style:n,styleSpec:r}):[new Mt(e,t[e],`unknown property "${e}"`)])}return s}function eo(e){const t=e.value;let r=[];if(!t)return r;const i=Sr(t);if("object"!==i)return r=r.concat([new Mt("light-3d",t,`object expected, ${i} found`)]),r;const n=e.styleSpec,s=n["light-3d"],o=e.key,a=e.style,l=e.style.lights;for(const e of["type","id"])if(!(e in t))return r=r.concat([new Mt("light-3d",t,`missing property ${e} on light`)]),r;if(t.type&&l)for(let i=0;i<e.arrayIndex;i++){const e=Rt(t.type),n=l[i];Rt(n.type)===e&&r.push(new Mt(o,t.id,`duplicate light type "${t.type}", previously defined at line ${n.id.__line__}`))}const c=`properties_light_${t.type}`;if(!(c in n))return r=r.concat([new Mt("light-3d",t,`Invalid light type ${t.type}`)]),r;const u=n[c];for(const i in t)if("properties"===i){const s=t[i],o=Sr(s);if("object"!==o)return r=r.concat([new Mt("properties",s,`object expected, ${o} found`)]),r;for(const t in s)r=r.concat(u[t]?no({key:t,value:s[t],valueSpec:u[t],style:a,styleSpec:n}):[new kt(e.key,s[t],`unknown property "${t}"`)])}else{const e=i.match(/^(.*)-transition$/);r=r.concat(e&&s[e[1]]&&s[e[1]].transition?no({key:i,value:t[i],valueSpec:n.transition,style:a,styleSpec:n}):s[i]?no({key:i,value:t[i],valueSpec:s[i],style:a,styleSpec:n}):[new kt(i,t[i],`unknown property "${i}"`)])}return r}function to(e){const t=e.value,r=e.key,i=e.style,n=e.styleSpec,s=n.terrain;let o=[];const a=Sr(t);if(void 0===t)return o;if("object"!==a)return o=o.concat([new Mt("terrain",t,`object expected, ${a} found`)]),o;for(const e in t){const r=e.match(/^(.*)-transition$/);o=o.concat(r&&s[r[1]]&&s[r[1]].transition?no({key:e,value:t[e],valueSpec:n.transition,style:i,styleSpec:n}):s[e]?no({key:e,value:t[e],valueSpec:s[e],style:i,styleSpec:n}):[new kt(e,t[e],`unknown property "${e}"`)])}if(t.source){const e=i.sources&&i.sources[t.source],n=e&&Rt(e.type);e?"raster-dem"!==n&&o.push(new Mt(r,t.source,`terrain cannot be used with a source of type ${String(n)}, it only be used with a "raster-dem" source type`)):o.push(new Mt(r,t.source,`source "${t.source}" not found`))}else o.push(new Mt(r,t,'terrain is missing required property "source"'));return o}function ro(e){const t=e.value,r=e.style,i=e.styleSpec,n=i.fog;let s=[];const o=Sr(t);if(void 0===t)return s;if("object"!==o)return s=s.concat([new Mt("fog",t,`object expected, ${o} found`)]),s;for(const e in t){const o=e.match(/^(.*)-transition$/);
2s=s.concat(o&&n[o[1]]&&n[o[1]].transition?no({key:e,value:t[e],valueSpec:i.transition,style:r,styleSpec:i}):n[e]?no({key:e,value:t[e],valueSpec:n[e],style:r,styleSpec:i}):[new kt(e,t[e],`unknown property "${e}"`)])}return s}const io={"*":()=>[],array:As,boolean:function(e){const t=e.value,r=e.key,i=Sr(t);return"boolean"!==i?[new Mt(r,t,`boolean expected, ${i} found`)]:[]},number:Es,color:function(e){const t=e.key,r=e.value,i=Sr(r);return"string"!==i?[new Mt(t,r,`color expected, ${i} found`)]:null===tr(r)?[new Mt(t,r,`color expected, "${r}" found`)]:[]},enum:Is,filter:Vs,function:Ss,layer:Ys,object:ws,source:Xs,model:Js,light:$s,"light-3d":eo,terrain:to,fog:ro,string:Qs,formatted:function(e){return 0===Qs(e).length?[]:Ts(e)},resolvedImage:function(e){return 0===Qs(e).length?[]:Ts(e)},projection:function(e){const t=e.value,r=e.styleSpec,i=r.projection,n=e.style;let s=[];const o=Sr(t);if("object"===o)for(const e in t)s=s.concat(no({key:e,value:t[e],valueSpec:i[e],style:n,styleSpec:r}));else"string"!==o&&(s=s.concat([new Mt("projection",t,`object or string expected, ${o} found`)]));return s},import:function(e){const{value:t,styleSpec:r}=e,{data:i,...n}=t;Object.defineProperty(n,"__line__",{value:t.__line__,enumerable:!1});let s=ws(Ot({},e,{value:n,valueSpec:r.import}));return""===Rt(n.id)&&s.push(new Mt(`${e.key}.id`,n,"import id can't be an empty string")),i&&(s=s.concat(oo(i,r,{key:`${e.key}.data`}))),s}};function no(e,t=!1){const r=e.value,i=e.valueSpec,n=e.styleSpec;if(i.expression&&os(Rt(r)))return Ss(e);if(i.expression&&ms(Dt(r)))return Ts(e);if(i.type&&io[i.type]){const r=io[i.type](e);return!0===t&&r.length>0&&"array"===Sr(e.value)?Ts(e):r}return ws(Ot({},e,{valueSpec:i.type?n[i.type]:i}))}function so(e){const t=e.value,r=e.key,i=Qs(e);return i.length||(-1===t.indexOf("{fontstack}")&&i.push(new Mt(r,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&i.push(new Mt(r,t,'"glyphs" url must include a "{range}" token'))),i}function oo(e,t=Pt,r={}){return no({key:r.key||"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:so,"*":()=>[]}})}function ao(e,t=Pt){return _o(oo(e,t))}const lo=e=>_o(Xs(e)),co=e=>_o($s(e)),uo=e=>_o(eo(e)),ho=e=>_o(to(e)),po=e=>_o(ro(e)),fo=e=>_o(Ys(e)),mo=e=>_o(Vs(e)),go=e=>_o(Hs(e)),yo=e=>_o(Ws(e)),vo=e=>_o(Js(e));function _o(e){return e.slice().sort(((e,t)=>e.line&&t.line?e.line-t.line:0))}function bo(e,t){let r=!1;if(t&&t.length)for(const i of t)i instanceof kt?Q(i.message):(e.fire(new Ct(new Error(i.message))),r=!0);return r}var xo=Ao,wo=3;function Ao(e,t,r){var i=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var n=new Int32Array(this.arrayBuffer);e=n[0],this.d=(t=n[1])+2*(r=n[2]);for(var s=0;s<this.d*this.d;s++){var o=n[wo+s],a=n[wo+s+1];i.push(o===a?null:n.subarray(o,a))}var l=n[wo+i.length+1];this.keys=n.subarray(n[wo+i.length],l),this.bboxes=n.subarray(l),this.insert=this._insertReadonly}else{this.d=t+2*r;for(var c=0;c<this.d*this.d;c++)i.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=r,this.scale=t/e,this.uid=0;var u=r/t*e;this.min=-u,this.max=e+u}Ao.prototype.insert=function(e,t,r,i,n){this._forEachCell(t,r,i,n,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(r),this.bboxes.push(i),this.bboxes.push(n)},Ao.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ao.prototype._insertCell=function(e,t,r,i,n,s){this.cells[n].push(s)},Ao.prototype.query=function(e,t,r,i,n){var s=this.min,o=this.max;if(e<=s&&t<=s&&o<=r&&o<=i&&!n)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(e,t,r,i,this._queryCell,a,{},n),a},Ao.prototype._queryCell=function(e,t,r,i,n,s,o,a){var l=this.cells[n];if(null!==l)for(var c=this.keys,u=this.bboxes,h=0;h<l.length;h++){var d=l[h];if(void 0===o[d]){var p=4*d;(a?a(u[p+0],u[p+1],u[p+2],u[p+3]):e<=u[p+2]&&t<=u[p+3]&&r>=u[p+0]&&i>=u[p+1])?(o[d]=!0,s.push(c[d])):o[d]=!1}}},Ao.prototype._forEachCell=function(e,t,r,i,n,s,o,a){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(r),h=this._convertToCellCoord(i),d=l;d<=u;d++)for(var p=c;p<=h;p++){var f=this.d*p+d;if((!a||a(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&n.call(this,e,t,r,i,f,s,o,a))return}},Ao.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Ao.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Ao.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=wo+this.cells.length+1+1,r=0,i=0;i<this.cells.length;i++)r+=this.cells[i].length;var n=new Int32Array(t+r+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;
2for(var s=t,o=0;o<e.length;o++){var a=e[o];n[wo+o]=s,n.set(a,s),s+=a.length}return n[wo+e.length]=s,n.set(this.keys,s),n[wo+e.length+1]=s+=this.keys.length,n.set(this.bboxes,s),s+=this.bboxes.length,n.buffer};var Eo=d(xo);const So={};function To(e,t,r={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),So[t]={klass:e,omit:r.omit||[]}}To(Object,"Object"),Eo.serialize=function(e,t){const r=e.toArrayBuffer();return t&&t.add(r),{buffer:r}},Eo.deserialize=function(e){return new Eo(e.buffer)},Object.defineProperty(Eo,"name",{value:"Grid"}),To(Eo,"Grid"),To(lr,"Color"),To(Error,"Error"),To(_e,"AJAXError"),To(dr,"ResolvedImage"),To(bs,"StylePropertyFunction"),To(fs,"StyleExpression",{omit:["_evaluator"]}),To(vs,"ZoomDependentExpression"),To(ys,"ZoomConstantExpression"),To(Or,"CompoundExpression",{omit:["_evaluate"]});for(const e in Jn)So[Jn[e]._classRegistryKey]||To(Jn[e],`Expression${e}`);function Co(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Io(e){return t.ImageBitmap&&e instanceof t.ImageBitmap}function Po(e,r){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(Co(e)||Io(e))return r&&r.add(e),e;if(ArrayBuffer.isView(e)){const t=e;return r&&r.add(t.buffer),t}if(e instanceof t.ImageData)return r&&r.add(e.data.buffer),e;if(Array.isArray(e)){const t=[];for(const i of e)t.push(Po(i,r));return t}if(e instanceof Map){const t={$name:"Map"};for(const[r,i]of e.entries())t[r]=Po(i);return t}if("object"==typeof e){const t=e.constructor,i=t._classRegistryKey;if(!i)throw new Error(`can't serialize object of unregistered class ${i}`);const n=t.serialize?t.serialize(e,r):{};if(!t.serialize){for(const t in e)e.hasOwnProperty(t)&&(So[i].omit.indexOf(t)>=0||(n[t]=Po(e[t],r)));e instanceof Error&&(n.message=e.message)}if(n.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==i&&(n.$name=i),n}throw new Error("can't serialize object of type "+typeof e)}function Mo(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||C
2o(e)||Io(e)||ArrayBuffer.isView(e)||e instanceof t.ImageData)return e;if(Array.isArray(e))return e.map(Mo);if("object"==typeof e){const t=e.$name||"Object";if("Map"===t){const t=new Map;for(const r of Object.keys(e))"$name"!==r&&t.set(r,Mo(e[r]));return t}const{klass:r}=So[t];if(!r)throw new Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);const i=Object.create(r.prototype);for(const t of Object.keys(e))"$name"!==t&&(i[t]=Mo(e[t]));return i}throw new Error("can't deserialize object of type "+typeof e)}const ko=e=>e>=128&&e<=255,Oo=e=>e>=1536&&e<=1791,Ro=e=>e>=1872&&e<=1919,Do=e=>e>=2208&&e<=2303,Lo=e=>e>=4352&&e<=4607,Bo=e=>e>=5120&&e<=5759,zo=e=>e>=6016&&e<=6143,jo=e=>e>=6320&&e<=6399,Fo=e=>e>=8192&&e<=8303,No=e=>e>=8448&&e<=8527,Uo=e=>e>=8528&&e<=8591,Vo=e=>e>=8960&&e<=9215,Go=e=>e>=9216&&e<=9279,qo=e=>e>=9280&&e<=9311,Ho=e=>e>=9312&&e<=9471,Wo=e=>e>=9632&&e<=9727,Yo=e=>e>=9728&&e<=9983,Qo=e=>e>=11008&&e<=11263,Zo=e=>e>=11904&&e<=12031,Xo=e=>e>=12032&&e<=12255,Ko=e=>e>=12272&&e<=12287,Jo=e=>e>=12288&&e<=12351,$o=e=>e>=12352&&e<=12447,ea=e=>e>=12448&&e<=12543,ta=e=>e>=12544&&e<=12591,ra=e=>e>=12592&&e<=12687,ia=e=>e>=12688&&e<=12703,na=e=>e>=12704&&e<=12735,sa=e=>e>=12736&&e<=12783,oa=e=>e>=12784&&e<=12799,aa=e=>e>=12800&&e<=13055,la=e=>e>=13056&&e<=13311,ca=e=>e>=13312&&e<=19903,ua=e=>e>=19904&&e<=19967,ha=e=>e>=19968&&e<=40959,da=e=>e>=40960&&e<=42127,pa=e=>e>=42128&&e<=42191,fa=e=>e>=43360&&e<=43391,ma=e=>e>=44032&&e<=55215,ga=e=>e>=55216&&e<=55295,ya=e=>e>=57344&&e<=63743,va=e=>e>=63744&&e<=64255,_a=e=>e>=64336&&e<=65023,ba=e=>e>=65040&&e<=65055,xa=e=>e>=65072&&e<=65103,wa=e=>e>=65104&&e<=65135,Aa=e=>e>=65136&&e<=65279,Ea=e=>e>=65280&&e<=65519,Sa=e=>e>=131072&&e<=173791;function Ta(e){for(const t of e)if(Pa(t.charCodeAt(0)))return!0;return!1}function Ca(e){for(const t of e)if(!Ia(t.charCodeAt(0)))return!1;return!0}function Ia(e){return!(Oo(e)||Ro(e)||Do(e)||_a(e)||Aa(e))}function Pa(e){return!(746!==e&&747!==e&&(e<4352||!(na(e)||ta(e)||xa(e)&&!(e>=65097&&e<=65103)||va(e)||la(e)||Zo(e)||sa(e)||!(!Jo(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||ca(e)||ha(e)||aa(e)||ra(e)||fa(e)||ga(e)||Lo(e)||ma(e)||$o(e)||Ko(e)||ia(e)||Xo(e)||oa(e)||ea(e)&&12540!==e||!(!Ea(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!wa(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Bo(e)||jo(e)||ba(e)||ua(e)||da(e)||pa(e))))}function Ma(e){return!(Pa(e)||function(e){return!!(ko(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Fo(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||No(e)||Uo(e)||Vo(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Go(e)&&9251!==e||qo(e)||Ho(e)||Wo(e)||Yo(e)&&!(e>=9754&&e<=9759)||Qo(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Jo(e)||ea(e)||ya(e)||xa(e)||wa(e)||Ea(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function ka(e){return e>=1424&&e<=2303||_a(e)||Aa(e)}function Oa(e,t){return!(!t&&ka(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||zo(e))}function Ra(e){for(const t of e)if(ka(t.charCodeAt(0)))return!0;return!1}const Da="deferred",La="loading",Ba="loaded";let za=null,ja="unavailable",Fa=null;const Na=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(ja="error"),za&&za(e)};function Ua(){Va.fire(new Tt("pluginStateChange",{pluginStatus:ja,pluginURL:Fa}))}const Va=new It,Ga=function(){return ja},qa=function(){if(ja!==Da||!Fa)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ja=La,Ua(),Fa&&Ae({url:Fa},(e=>{e?Na(e):(ja=Ba,Ua())}))},Ha={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>ja===Ba||null!=Ha.applyArabicShaping,isLoading:()=>ja===La,setState(e){ja=e.pluginStatus,Fa=e.pluginURL},isParsed:()=>null!=Ha.applyArabicShaping&&null!=Ha.processBidirectionalText&&null!=Ha.processStyledBidirectionalText,getPluginURL:()=>Fa};class Wa{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch,this.brightness=t.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(e,t){for(const r of e)if(!Oa(r.charCodeAt(0),t))return!1;return!0}(e,Ha.isLoaded())}}class Ya{constructor(e,t,r){this.property=e,this.value=t,this.expression=function(e,t,r){if(os(e))return new bs(e,t);if(ms(e)||Array.isArray(e)&&e.length>0){const i=_s(e,t,r);if("error"===i.result)throw new Error(i.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return i.value}{let r=e;return"string"==typeof e&&"color"===t.type&&(r=lr.parse(e)),{kind:"constant",isConfigDependent:!1,evaluate:()=>r}}}(void 0===t?e.specification.default:t,e.specification,r)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}}class Qa{constructor(e,t){this.property=e,this.value=new Ya(e,void 0,t)}transitioned(e,t){return new Xa(this.property,this.value,t,L({},e.transition,this.transition),e.now)}
2untransitioned(){return new Xa(this.property,this.value,null,{},0)}}class Za{constructor(e,t){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._options=t,this.isConfigDependent=!1}getValue(e){return W(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Qa(this._values[e].property,this._options)),this._values[e].value=new Ya(this._values[e].property,null===t?void 0:W(t),this._options),this.isConfigDependent=this.isConfigDependent||this._values[e].value.expression.isConfigDependent}setTransitionOrValue(e,t){t&&(this._options=t);const r=this._properties.properties;if(e)for(const t in e){const i=e[t];if(G(t,"-transition")){const e=t.slice(0,-11);r[e]&&this.setTransition(e,i)}else r[t]&&this.setValue(t,i)}}getTransition(e){return W(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Qa(this._values[e].property)),this._values[e].transition=W(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const r=this.getValue(t);void 0!==r&&(e[t]=r);const i=this.getTransition(t);void 0!==i&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){const r=new Ka(this._properties);for(const i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){const e=new Ka(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class Xa{constructor(e,t,r,i,n){const s=i.delay||0,o=i.duration||0;n=n||0,this.property=e,this.value=t,this.begin=n+s,this.end=this.begin+o,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){const i=e.now||0,n=this.value.possiblyEvaluate(e,t,r),s=this.prior;if(s){if(i>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(i<this.begin)return s.possiblyEvaluate(e,t,r);{const o=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(s.possiblyEvaluate(e,t,r),n,S(o))}}return n}}class Ka{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,r){const i=new el(this._properties);for(const n of Object.keys(this._values))i._values[n]=this._values[n].possiblyEvaluate(e,t,r);return i}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Ja{constructor(e,t){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._options=t,this.isConfigDependent=!1}getValue(e){return W(this._values[e].value)}setValue(e,t){this._values[e]=new Ya(this._values[e].property,null===t?void 0:W(t),this._options),this.isConfigDependent=this.isConfigDependent||this._values[e].expression.isConfigDependent}serialize(){const e={};for(const t of Object.keys(this._values)){const r=this.getValue(t);void 0!==r&&(e[t]=r)}return e}possiblyEvaluate(e,t,r){const i=new el(this._properties);for(const n of Object.keys(this._values))i._values[n]=this._values[n].possiblyEvaluate(e,t,r);return i}}class $a{constructor(e,t,r){this.property=e,this.value=t,this.parameters=r}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,r,i){return this.property.evaluate(this.value,this.parameters,e,t,r,i)}}class el{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class tl{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,r){const i=Qi[this.specification.type];return i?i(e,t,r):e}}class rl{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,r,i){return new $a(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},r,i)}:e.expression,t)}interpolate(e,t,r){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new $a(this,{kind:"constant",value:void 0},e.parameters);const i=Qi[this.specification.type];return i?new $a(this,{kind:"constant",value:i(e.value.value,t.value.value,r)},e.parameters):e}evaluate(e,t,r,i,n,s){return"constant"===e.kind?e.value:e.evaluate(t,r,i,n,s)}}class il{constructor(e){this.specification=e}
2possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}}class nl{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new Wa(0,{});for(const r in e){const i=e[r];i.specification.overridable&&this.overridableProperties.push(r);const n=this.defaultPropertyValues[r]=new Ya(i,void 0),s=this.defaultTransitionablePropertyValues[r]=new Qa(i);this.defaultTransitioningPropertyValues[r]=s.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=n.possiblyEvaluate(t)}}}function sl(e,t){return t?`${e}�${t}`:e}function ol(e){const t=e.indexOf("�");return t>=0?e.slice(0,t):e}To(rl,"DataDrivenProperty"),To(tl,"DataConstantProperty"),To(il,"ColorRampProperty");const al="-transition";class ll extends It{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.isConfigDependent=!1,"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&"slot"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),this.options=r,e.slot&&(this.slot=e.slot),t.layout&&(this._unevaluatedLayout=new Ja(t.layout,r),this.isConfigDependent=this.isConfigDependent||this._unevaluatedLayout.isConfigDependent),t.paint)){this._transitionablePaint=new Za(t.paint,r);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this.isConfigDependent=this.isConfigDependent||this._transitionablePaint.isConfigDependent,this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new el(t.paint)}}setScope(e){this.scope=e,this.fqid=sl(this.id,e)}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,r={}){if(null!=t&&this._validate(yo,`layers.${this.id}.layout.${e}`,e,t,r))return;if("custom"===this.type&&"visibility"===e)return void(this.visibility=t);const i=this._unevaluatedLayout;i._properties.properties[e]&&(i.setValue(e,t),this.isConfigDependent=this.isConfigDependent||i.isConfigDependent,"visibility"===e&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0})}getPaintProperty(e){return G(e,al)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){if(null!=t&&this._validate(go,`layers.${this.id}.paint.${e}`,e,t,r))return!1;const i=this._transitionablePaint,n=i._properties.properties;if(G(e,al)){const r=e.slice(0,-11);return n[r]&&i.setTransition(r,t||void 0),!1}if(!n[e])return!1;const s=i._values[e],o=s.value.isDataDriven(),a=s.value;i.setValue(e,t),this.isConfigDependent=this.isConfigDependent||i.isConfigDependent,this._handleSpecialPaintPropertyUpdate(e);const l=i._values[e].value,c=l.isDataDriven(),u=G(e,"pattern")||"line-dasharray"===e;return c||o||u||this._handleOverridablePaintPropertyUpdate(e,a,l)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,t){return null}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}
2serialize(){return H({id:this.id,type:this.type,slot:this.slot,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()},((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}_validate(e,t,r,i,n={}){return(!n||!1!==n.validate)&&bo(this,e.call(ao,{key:t,layerType:this.type,objectKey:r,value:i,styleSpec:Pt,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof $a&&rs(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=Ms(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}class cl{constructor(){this.changed=!1,this._updatedLayers={},this._removedLayers={},this.updatedSourceCaches={},this.updatedPaintProps=new Set,this.changedImages=new Set}updateLayer(e){const t=e.scope;this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._updatedLayers[t].add(e.id)}removeLayer(e){const t=e.scope;this._removedLayers[t]=this._removedLayers[t]||{},this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._removedLayers[t][e.id]=e,this._updatedLayers[t].delete(e.id),this.updatedPaintProps.delete(e.fqid)}getRemovedLayer(e){return this._removedLayers[e.scope]?this._removedLayers[e.scope][e.id]:null}discardLayerRemoval(e){this._removedLayers[e.scope]&&delete this._removedLayers[e.scope][e.id]}getLayerUpdatesByScope(){const e={};for(const t in this._updatedLayers)e[t]=e[t]||{},e[t].updatedIds=Array.from(this._updatedLayers[t].values());for(const t in this._removedLayers)e[t]=e[t]||{},e[t].removedIds=Object.keys(this._removedLayers[t]);return e}reset(){this.changed=!1,this._updatedLayers={},this._removedLayers={},this.updatedSourceCaches={},this.updatedPaintProps.clear(),this.changedImages.clear()}}const ul={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class hl{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class dl{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.add(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function pl(e,t=1){let r=0,i=0;return{members:e.map((e=>{const n=ul[e.type].BYTES_PER_ELEMENT,s=r=fl(r,Math.max(t,n)),o=e.components||1;return i=Math.max(i,n),r+=n*o,{name:e.name,type:e.type,components:o,offset:s}})),size:fl(r,Math.max(i,t)),alignment:t}}function fl(e,t){return Math.ceil(e/t)*t}class ml extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){const i=2*e;return this.int16[i+0]=t,this.int16[i+1]=r,e}}ml.prototype.bytesPerElement=4,To(ml,"StructArrayLayout2i4");class gl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}
vendor: 17,238 bytes, line 2
2emplace(e,t,r,i){const n=3*e;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,e}}gl.prototype.bytesPerElement=6,To(gl,"StructArrayLayout3i6");class yl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){const s=4*e;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,e}}yl.prototype.bytesPerElement=8,To(yl,"StructArrayLayout4i8");class vl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,i,n)}emplace(e,t,r,i,n,s){const o=5*e;return this.int16[o+0]=t,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=s,e}}vl.prototype.bytesPerElement=10,To(vl,"StructArrayLayout5i10");class _l extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n,s,o)}emplace(e,t,r,i,n,s,o,a){const l=6*e,c=12*e,u=3*e;return this.int16[l+0]=t,this.int16[l+1]=r,this.uint8[c+4]=i,this.uint8[c+5]=n,this.uint8[c+6]=s,this.uint8[c+7]=o,this.float32[u+2]=a,e}}_l.prototype.bytesPerElement=12,To(_l,"StructArrayLayout2i4ub1f12");class bl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){const s=4*e;return this.float32[s+0]=t,this.float32[s+1]=r,this.float32[s+2]=i,this.float32[s+3]=n,e}}bl.prototype.bytesPerElement=16,To(bl,"StructArrayLayout4f16");class xl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,i,n)}emplace(e,t,r,i,n,s){const o=6*e,a=3*e;return this.uint16[o+0]=t,this.uint16[o+1]=r,this.uint16[o+2]=i,this.uint16[o+3]=n,this.float32[a+2]=s,e}}xl.prototype.bytesPerElement=12,To(xl,"StructArrayLayout4ui1f12");class wl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){const s=4*e;return this.uint16[s+0]=t,this.uint16[s+1]=r,this.uint16[s+2]=i,this.uint16[s+3]=n,e}}wl.prototype.bytesPerElement=8,To(wl,"StructArrayLayout4ui8");class Al extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,s)}emplace(e,t,r,i,n,s,o){const a=6*e;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,this.int16[a+4]=s,this.int16[a+5]=o,e}}Al.prototype.bytesPerElement=12,To(Al,"StructArrayLayout6i12");class El extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o,a,l,c,u,h){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,r,i,n,s,o,a,l,c,u,h)}emplace(e,t,r,i,n,s,o,a,l,c,u,h,d){const p=12*e;return this.int16[p+0]=t,this.int16[p+1]=r,this.int16[p+2]=i,this.int16[p+3]=n,this.uint16[p+4]=s,this.uint16[p+5]=o,this.uint16[p+6]=a,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=h,this.int16[p+11]=d,e}}El.prototype.bytesPerElement=24,To(El,"StructArrayLayout4i4ui4i24");class Sl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,s)}emplace(e,t,r,i,n,s,o){const a=10*e,l=5*e;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,this.float32[l+2]=n,this.float32[l+3]=s,this.float32[l+4]=o,e}}Sl.prototype.bytesPerElement=20,To(Sl,"StructArrayLayout3i3f20");class Tl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}Tl.prototype.bytesPerElement=4,To(Tl,"StructArrayLayout1ul4");class Cl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){const i=2*e;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}}Cl.prototype.bytesPerElement=4,To(Cl,"StructArrayLayout2ui4");class Il extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o,a,l,c,u,h,d){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,r,i,n,s,o,a,l,c,u,h,d)}emplace(e,t,r,i,n,s,o,a,l,c,u,h,d,p){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=r,this.int16[f+2]=i,this.int16[f+3]=n,this.int16[f+4]=s,this.float32[m+3]=o,this.float32[m+4]=a,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=u,this.uint32[m+8]=h,this.uint16[f+18]=d,this.uint16[f+19]=p,e}}Il.prototype.bytesPerElement=40,To(Il,"StructArrayLayout5i4f1i1ul2ui40");class Pl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n,s,o)}emplace(e,t,r,i,n,s,o,a){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=r,this.int16[l+2]=i,this.int16[l+4]=n,this.int16[l+5]=s,this.int16[l+6]=o,this.int16[l+7]=a,e}}Pl.prototype.bytesPerElement=16,To(Pl,"StructArrayLayout3i2i2i16");class Ml extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,i,n)}emplace(e,t,r,i,n,s){const o=4*e,a=8*e;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[a+6]=n,this.int16[a+7]=s,e}}Ml.prototype.bytesPerElement=16,To(Ml,"StructArrayLayout2f1f2i16");class kl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){const s=12*e,o=3*e;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[o+1]=i,this.float32[o+2]=n,e}}kl.prototype.bytesPerElement=12,To(kl,"StructArrayLayout2ub2f12");class Ol extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){const n=3*e;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}}Ol.prototype.bytesPerElement=12,To(Ol,"StructArrayLayout3f12");class Rl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){const n=3*e;return this.uint16[n+0]=t,this.uint16[n+1]=r,this.uint16[n+2]=i,e}}Rl.prototype.bytesPerElement=6,To(Rl,"StructArrayLayout3ui6");class Dl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b){const x=this.length;return this.resize(x+1),this.emplace(x,e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b)}emplace(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b,x){const w=30*e,A=15*e,E=60*e;return this.int16[w+0]=t,this.int16[w+1]=r,this.int16[w+2]=i,this.float32[A+2]=n,this.float32[A+3]=s,this.uint16[w+8]=o,this.uint16[w+9]=a,this.uint32[A+5]=l,this.uint32[A+6]=c,this.uint32[A+7]=u,this.uint16[w+16]=h,this.uint16[w+17]=d,this.uint16[w+18]=p,this.float32[A+10]=f,this.float32[A+11]=m,this.uint8[E+48]=g,this.uint8[E+49]=y,this.uint8[E+50]=v,this.uint32[A+13]=_,this.int16[w+28]=b,this.uint8[E+58]=x,e}}Dl.prototype.bytesPerElement=60,To(Dl,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Ll extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b,x,w,A,E,S,T,C,I,P,M,k){const O=this.length;return this.resize(O+1),this.emplace(O,e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b,x,w,A,E,S,T,C,I,P,M,k)}emplace(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b,x,w,A,E,S,T,C,I,P,M,k,O){const R=20*e,D=40*e,L=80*e;return this.float32[R+0]=t,this.float32[R+1]=r,this.int16[D+4]=i,this.int16[D+5]=n,this.int16[D+6]=s,this.int16[D+7]=o,this.int16[D+8]=a,this.int16[D+9]=l,this.int16[D+10]=c,this.int16[D+11]=u,this.int16[D+12]=h,this.uint16[D+13]=d,this.uint16[D+14]=p,this.uint16[D+15]=f,this.uint16[D+16]=m,this.uint16[D+17]=g,this.uint16[D+18]=y,this.uint16[D+19]=v,this.uint16[D+20]=_,this.uint16[D+21]=b,this.uint16[D+22]=x,this.uint16[D+23]=w,this.uint16[D+24]=A,this.uint16[D+25]=E,this.uint16[D+26]=S,this.uint16[D+27]=T,this.uint32[R+14]=C,this.float32[R+15]=I,this.float32[R+16]=P,this.float32[R+17]=M,this.float32[R+18]=k,this.uint8[L+76]=O,e}}Ll.prototype.bytesPerElement=80,To(Ll,"StructArrayLayout2f9i15ui1ul4f1ub80");class Bl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}Bl.prototype.bytesPerElement=4,To(Bl,"StructArrayLayout1f4");class zl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,i,n)}emplace(e,t,r,i,n,s){const o=5*e;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.float32[o+3]=n,this.float32[o+4]=s,e}}zl.prototype.bytesPerElement=20,To(zl,"StructArrayLayout5f20");class jl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n,s,o)}emplace(e,t,r,i,n,s,o,a){const l=7*e;return this.float32[l+0]=t,this.float32[l+1]=r,this.float32[l+2]=i,this.float32[l+3]=n,this.float32[l+4]=s,this.float32[l+5]=o,this.float32[l+6]=a,e}}jl.prototype.bytesPerElement=28,To(jl,"StructArrayLayout7f28");class Fl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){const s=6*e;return this.uint32[3*e+0]=t,this.uint16[s+2]=r,this.uint16[s+3]=i,this.uint16[s+4]=n,e}}Fl.prototype.bytesPerElement=12,To(Fl,"StructArrayLayout1ul3ui12");class Nl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}Nl.prototype.bytesPerElement=2,To(Nl,"StructArrayLayout1ui2");class Ul extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){const i=2*e;return this.float32[i+0]=t,this.float32[i+1]=r,e}}Ul.prototype.bytesPerElement=8,To(Ul,"StructArrayLayout2f8");class Vl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m)}emplace(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g){const y=16*e;return this.float32[y+0]=t,this.float32[y+1]=r,this.float32[y+2]=i,this.float32[y+3]=n,this.float32[y+4]=s,this.float32[y+5]=o,this.float32[y+6]=a,this.float32[y+7]=l,this.float32[y+8]=c,this.float32[y+9]=u,this.float32[y+10]=h,this.float32[y+11]=d,this.float32[y+12]=p,this.float32[y+13]=f,this.float32[y+14]=m,this.float32[y+15]=g,e}}Vl.prototype.bytesPerElement=64,To(Vl,"StructArrayLayout16f64");class Gl extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,s,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n,s,o)}emplace(e,t,r,i,n,s,o,a){const l=10*e,c=5*e;return this.uint16[l+0]=t,this.uint16[l+1]=r,this.uint16[l+2]=i,this.uint16[l+3]=n,this.float32[c+2]=s,this.float32[c+3]=o,this.float32[c+4]=a,e}}Gl.prototype.bytesPerElement=20,To(Gl,"StructArrayLayout4ui3f20");class ql extends dl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint8[1*e+0]=t,e}}ql.prototype.bytesPerElement=1,To(ql,"StructArrayLayout1ub1");class Hl extends hl{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Hl.prototype.size=40;class Wl extends Il{get(e){return new Hl(this,e)}}To(Wl,"CollisionBoxArray");class Yl extends hl{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Yl.prototype.size=60;class Ql extends Dl{get(e){return new Yl(this,e)}}To(Ql,"PlacedSymbolArray");class Zl extends hl{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}
2get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}}Zl.prototype.size=80;class Xl extends Ll{get(e){return new Zl(this,e)}}To(Xl,"SymbolInstanceArray");class Kl extends Bl{getoffsetX(e){return this.float32[1*e+0]}}To(Kl,"GlyphOffsetArray");class Jl extends ml{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}To(Jl,"SymbolLineVertexArray");class $l extends hl{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}$l.prototype.size=12;class ec extends Fl{get(e){return new $l(this,e)}}To(ec,"FeatureIndexArray");class tc extends Cl{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}To(tc,"FillExtrusionCentroidArray");const rc=pl([{name:"a_pos",components:2,type:"Int16"}],4),ic=pl([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class nc{constructor(e=[]){this.segments=e}_prepareSegment(e,t,r,i){let n=this.segments[this.segments.length-1];return e>nc.MAX_VERTEX_ARRAY_LENGTH&&Q(`Max vertices per segment is ${nc.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!n||n.vertexLength+e>nc.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==i)&&(n={vertexOffset:t,primitiveOffset:r,vertexLength:0,primitiveLength:0},void 0!==i&&(n.sortKey=i),this.segments.push(n)),n}prepareSegment(e,t,r,i){return this._prepareSegment(e,t.length,r.length,i)}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,r,i){return new nc([{vertexOffset:e,primitiveOffset:t,vertexLength:r,primitiveLength:i,vaos:{},sortKey:0}])}}function sc(e,t){return 256*(e=M(Math.floor(e),0,255))+M(Math.floor(t),0,255)}nc.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,To(nc,"SegmentVector");const oc=pl([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),ac=pl([{name:"a_dash",components:4,type:"Uint16"}]);var lc={exports:{}},cc={exports:{}};!function(e){e.exports=function(e,t){var r,i,n,s,o,a,l,c;for(i=e.length-(r=3&e.length),n=t,o=3432918353,a=461845907,c=0;c<i;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,n=27492+(65535&(s=5*(65535&(n=(n^=l=(6
25535&(l=(l=(65535&l)*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(s>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:n^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return n^=e.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0}}(cc);var uc=cc.exports,hc={exports:{}};!function(e){e.exports=function(e,t){for(var r,i=e.length,n=t^i,s=0;i>=4;)r=1540483477*(65535&(r=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+((1540483477*(r>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),i-=4,++s;switch(i){case 3:n^=(255&e.charCodeAt(s+2))<<16;case 2:n^=(255&e.charCodeAt(s+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(s)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}}(hc);var dc=uc,pc=hc.exports;lc.exports=dc,lc.exports.murmur3=dc,lc.exports.murmur2=pc;var fc=d(lc.exports);class mc{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,t,r,i){this.ids.push(gc(e)),this.positions.push(t,r,i)}eachPosition(e,t){const r=gc(e);let i=0,n=this.ids.length-1;for(;i<n;){const e=i+n>>1;this.ids[e]>=r?n=e:i=e+1}for(;this.ids[i]===r;)t(this.positions[3*i],this.positions[3*i+1],this.positions[3*i+2]),i++}static serialize(e,t){const r=new Float64Array(e.ids),i=new Uint32Array(e.positions);return yc(r,i,0,r.length-1),t&&(t.add(r.buffer),t.add(i.buffer)),{ids:r,positions:i}}static deserialize(e){const t=new mc;let r;t.ids=e.ids,t.positions=e.positions;for(const e of t.ids)e!==r&&t.uniqueIds.push(e),r=e;return t.indexed=!0,t}}function gc(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:fc(String(e))}function yc(e,t,r,i){for(;r<i;){const n=e[r+i>>1];let s=r-1,o=i+1;for(;;){do{s++}while(e[s]<n);do{o--}while(e[o]>n);if(s>=o)break;vc(e,s,o),vc(t,3*s,3*o),vc(t,3*s+1,3*o+1),vc(t,3*s+2,3*o+2)}o-r<i-o?(yc(e,t,r,o),r=o+1):(yc(e,t,o+1,i),i=o)}}function vc(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}To(mc,"FeaturePositionMap");class _c{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}}class bc extends _c{constructor(e){super(e),this.current=0}set(e,t,r){this.fetchUniformLocation(e,t)&&this.current!==r&&(this.current=r,this.gl.uniform1i(this.location,r))}}class xc extends _c{constructor(e){super(e),this.current=0}set(e,t,r){this.fetchUniformLocation(e,t)&&this.current!==r&&(this.current=r,this.gl.uniform1f(this.location,r))}}class wc extends _c{constructor(e){super(e),this.current=[0,0]}set(e,t,r){this.fetchUniformLocation(e,t)&&(r[0]===this.current[0]&&r[1]===this.current[1]||(this.current=r,this.gl.uniform2f(this.location,r[0],r[1])))}}class Ac extends _c{constructor(e){super(e),this.current=[0,0,0]}set(e,t,r){this.fetchUniformLocation(e,t)&&(r[0]===this.current[0]&&r[1]===this.current[1]&&r[2]===this.current[2]||(this.current=r,this.gl.uniform3f(this.location,r[0],r[1],r[2])))}}class Ec extends _c{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,r){this.fetchUniformLocation(e,t)&&(r[0]===this.current[0]&&r[1]===this.current[1]&&r[2]===this.current[2]&&r[3]===this.current[3]||(this.current=r,this.gl.uniform4f(this.location,r[0],r[1],r[2],r[3])))}}class Sc extends _c{constructor(e){super(e),this.current=lr.transparent}set(e,t,r){this.fetchUniformLocation(e,t)&&(r.r===this.current.r&&r.g===this.current.g&&r.b===this.current.b&&r.a===this.current.a||(this.current=r,this.gl.uniform4f(this.location,r.r,r.g,r.b,r.a)))}}const Tc=new Float32Array(16);class Cc extends _c{constructor(e){super(e),this.current=Tc}set(e,t,r){if(this.fetchUniformLocation(e,t)){if(r[12]!==this.current[12]||r[0]!==this.current[0])return this.current=r,void this.gl.uniformMatrix4fv(this.location,!1,r);for(let e=1;e<16;e++)if(r[e]!==this.current[e]){this.current=r,this.gl.uniformMatrix4fv(this.location,!1,r);break}}}}const Ic=new Float32Array(9);class Pc extends _c{constructor(e){super(e),this.current=Ic}set(e,t,r){if(this.fetchUniformLocation(e,t))for(let e=0;e<9;e++)if(r[e]!==this.current[e]){this.current=r,this.gl.uniformMatrix3fv(this.location,!1,r);break}}}const Mc=new Float32Array(4);class kc extends _c{constructor(e){super(e),this.current=Mc}set(e,t,r){if(this.fetchUniformLocation(e,t))for(let e=0;e<4;e++)if(r[e]!==this.current[e]){this.current=r,this.gl.uniformMatrix2fv(this.location,!1,r);break}}}function Oc(e){return[sc(255*e.r,255*e.g),sc(255*e.b,255*e.a)]}class Rc{constructor(e,t,r){this.value=e,this.uniformNames=t.map((e=>`u_${e}`)),this.type=r}setUniform(e,t,r,i,n){t.set(e,n,i.constantOr(this.value))}getBinding(e,t){return"color"===this.type?new Sc(e):new xc(e)}}class Dc{constructor(e,t){this.uniformNames=t.map((e=>`u_${e}`)),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,t,r,i,n){const s="u_pattern"===n||"u_dash"===n?this.pattern:"u_pixel_ratio"===n?this.pixelRatio:null;s&&t.set(e,n,s)}getBinding(e,t){return"u_pattern"===t||"u_dash"===t?new Ec(e):new xc(e)}}
2class Lc{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===r?2:1,offset:0}))),this.paintVertexArray=new i}populatePaintArray(e,t,r,i,n,s,o){const a=this.paintVertexArray.length,l=this.expression.evaluate(new Wa(0,{brightness:s}),t,{},n,i,o);this.paintVertexArray.resize(e),this._setPaintValue(a,e,l)}updatePaintArray(e,t,r,i,n,s,o){const a=this.expression.evaluate({zoom:0,brightness:o},r,i,void 0,n);this._setPaintValue(e,t,a)}_setPaintValue(e,t,r){if("color"===this.type){const i=Oc(r);for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i[0],i[1])}else{for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Bc{constructor(e,t,r,i,n,s){this.expression=e,this.uniformNames=t.map((e=>`u_${e}_t`)),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===r?4:2,offset:0}))),this.paintVertexArray=new s}populatePaintArray(e,t,r,i,n,s,o){const a=this.expression.evaluate(new Wa(this.zoom,{brightness:s}),t,{},n,i,o),l=this.expression.evaluate(new Wa(this.zoom+1,{brightness:s}),t,{},n,i,o),c=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(c,e,a,l)}updatePaintArray(e,t,r,i,n,s,o){const a=this.expression.evaluate({zoom:this.zoom,brightness:o},r,i,void 0,n),l=this.expression.evaluate({zoom:this.zoom+1,brightness:o},r,i,void 0,n);this._setPaintValue(e,t,a,l)}_setPaintValue(e,t,r,i){if("color"===this.type){const n=Oc(r),s=Oc(i);for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n[0],n[1],s[0],s[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r,i);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,r,i,n){const s=this.useIntegerZoom?Math.floor(r.zoom):r.zoom,o=M(this.expression.interpolationFactor(s,this.zoom,this.zoom+1),0,1);t.set(e,n,o)}getBinding(e,t){return new xc(e)}}class zc{constructor(e,t,r,i,n){this.expression=e,this.layerId=n,this.paintVertexAttributes=("array"===r?ac:oc).members;for(let e=0;e<t.length;++e);this.paintVertexArray=new i}populatePaintArray(e,t,r){const i=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(i,e,t.patterns&&t.patterns[this.layerId],r)}updatePaintArray(e,t,r,i,n,s,o){this._setPaintValues(e,t,r.patterns&&r.patterns[this.layerId],s)}_setPaintValues(e,t,r,i){if(!i||!r)return;const n=i[r];if(!n)return;const{tl:s,br:o,pixelRatio:a}=n;for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,s[0],s[1],o[0],o[1],a)}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class jc{constructor(e,t,r=()=>!0){this.binders={},this._buffers=[];const i=[];for(const n in e.paint._values){const s=e.paint.get(n);if(!r(n))continue;if(!(s instanceof $a&&rs(s.property.specification)))continue;const o=Uc(n,e.type),a=s.value,l=s.property.specification.type,c=!!s.property.useIntegerZoom,u="line-dasharray"===n||n.endsWith("pattern"),h="line-dasharray"===n&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==a.kind||h)if("source"===a.kind||h||u){const t=qc(n,l,"
2source");this.binders[n]=u?new zc(a,o,l,t,e.id):new Lc(a,o,l,t),i.push(`/a_${n}`)}else{const e=qc(n,l,"composite");this.binders[n]=new Bc(a,o,l,c,t,e),i.push(`/z_${n}`)}else this.binders[n]=u?new Dc(a.value,o):new Rc(a.value,o,l),i.push(`/u_${n}`)}this.cacheKey=i.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Lc||t instanceof Bc?t.maxValue:0}populatePaintArrays(e,t,r,i,n,s,o){for(const a in this.binders){const l=this.binders[a];(l instanceof Lc||l instanceof Bc||l instanceof zc)&&l.populatePaintArray(e,t,r,i,n,s,o)}}setConstantPatternPositions(e){for(const t in this.binders){const r=this.binders[t];r instanceof Dc&&r.setConstantPatternPositions(e)}}updatePaintArrays(e,t,r,i,n,s,o,a){let l=!1;const c=Object.keys(e),u=0!==c.length,h=u?c:t.uniqueIds;for(const c in this.binders){const d=this.binders[c];if((d instanceof Lc||d instanceof Bc||d instanceof zc)&&(!0===d.expression.isStateDependent||!1===d.expression.isLightConstant)){const p=n.paint.get(c);d.expression=p.value;for(const r of h){const n=e[r.toString()];t.eachPosition(r,((e,t,r)=>{const l=i.feature(e);d.updatePaintArray(t,r,l,n,s,o,a)}))}if(!u)for(const t of r.uniqueIds){const n=e[t.toString()];r.eachPosition(t,((e,t,r)=>{const l=i.feature(e);d.updatePaintArray(t,r,l,n,s,o,a)}))}l=!0}}return l}defines(){const e=[];for(const t in this.binders){const r=this.binders[t];(r instanceof Rc||r instanceof Dc)&&e.push(...r.uniformNames.map((e=>`#define HAS_UNIFORM_${e}`)))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const r=this.binders[t];if(r instanceof Lc||r instanceof Bc||r instanceof zc)for(let t=0;t<r.paintVertexAttributes.length;t++)e.push(r.paintVertexAttributes[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const r=this.binders[t];if(r instanceof Rc||r instanceof Dc||r instanceof Bc)for(const t of r.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const r in this.binders){const i=this.binders[r];if(i instanceof Rc||i instanceof Dc||i instanceof Bc)for(const n of i.uniformNames)t.push({name:n,property:r,binding:i.getBinding(e,n)})}return t}setUniforms(e,t,r,i,n){for(const{name:t,property:s,binding:o}of r)this.binders[s].setUniform(e,o,n,i.get(s),t)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const t=this.binders[e];(t instanceof Lc||t instanceof Bc||t instanceof zc)&&t.paintVertexBuffer&&this._buffers.push(t.paintVertexBuffer)}}upload(e){for(const t in this.binders){const r=this.binders[t];(r instanceof Lc||r instanceof Bc||r instanceof zc)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Lc||t instanceof Bc||t instanceof zc)&&t.destroy()}}}class Fc{constructor(e,t,r=()=>!0){this.programConfigurations={};for(const i of e)this.programConfigurations[i.id]=new jc(i,t,r);this.needsUpload=!1,this._featureMap=new mc,this._featureMapWithoutIds=new mc,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,t,r,i,n,s,o,a){for(const r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(e,t,i,n,s,o,a);void 0!==t.id?this._featureMap.add(t.id,r,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,r,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i,n,s){for(const o of r)this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,t,o,i,n,s||0)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const Nc={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"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":["ga
2pwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function Uc(e,t){return Nc[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const Vc={"line-pattern":{source:xl,composite:xl},"fill-pattern":{source:xl,composite:xl},"fill-extrusion-pattern":{source:xl,composite:xl},"line-dasharray":{source:wl,composite:wl}},Gc={color:{source:Ul,composite:bl},number:{source:Bl,composite:Ul}};function qc(e,t,r){const i=Vc[e];return i&&i[r]||Gc[t][r]}To(Rc,"ConstantBinder"),To(Dc,"PatternConstantBinder"),To(Lc,"SourceExpressionBinder"),To(zc,"PatternCompositeBinder"),To(Bc,"CompositeExpressionBinder"),To(jc,"ProgramConfiguration",{omit:["_buffers"]}),To(Fc,"ProgramConfigurationSet");class Hc{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof Ip?new Ip(e.lng,e.lat):Ip.convert(e),this}setSouthWest(e){return this._sw=e instanceof Ip?new Ip(e.lng,e.lat):Ip.convert(e),this}extend(e){const t=this._sw,r=this._ne;let i,n;if(e instanceof Ip)i=e,n=e;else{if(!(e instanceof Hc))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Hc.convert(e)):this.extend(Ip.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(Ip.convert(e)):this;if(i=e._sw,n=e._ne,!i||!n)return this}return t||r?(t.lng=Math.min(i.lng,t.lng),t.lat=Math.min(i.lat,t.lat),r.lng=Math.max(n.lng,r.lng),r.lat=Math.max(n.lat,r.lat)):(this._sw=new Ip(i.lng,i.lat),this._ne=new Ip(n.lng,n.lat)),this}getCenter(){return new Ip((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Ip(this.getWest(),this.getNorth())}getSouthEast(){return new Ip(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:r}=Ip.convert(e);let i=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&i}static convert(e){return!e||e instanceof Hc?e:new Hc(e)}}var Wc={},Yc={};Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.setMatrixArrayType=function(e){Yc.ARRAY_TYPE=Zc=e},Yc.toRadian=function(e){return e*Kc},Yc.equals=function(e,t){return Math.abs(e-t)<=Qc*Math.max(1,Math.abs(e),Math.abs(t))},Yc.RANDOM=Yc.ARRAY_TYPE=Yc.EPSILON=void 0;var Qc=1e-6;Yc.EPSILON=Qc;var Zc="undefined"!=typeof Float32Array?Float32Array:Array;Yc.ARRAY_TYPE=Zc;var Xc=Math.random;Yc.RANDOM=Xc;var Kc=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Jc={};function $c(e){return $c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$c(e)}Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.create=function(){var e=new eu.ARRAY_TYPE(4);return eu.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},Jc.clone=function(e){var t=new eu.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},Jc.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},Jc.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e},Jc.fromValues=function(e,t,r,i){var n=new eu.ARRAY_TYPE(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n},Jc.set=function(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e},Jc.transpose=function(e,t){if(e===t){var r=t[1];e[1]=t[2],e[2]=r}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e},Jc.invert=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=r*s-n*i;return o?(e[0]=s*(o=1/o),e[1]=-i*o,e[2]=-n*o,e[3]=r*o,e):null},Jc.adjoint=function(e,t){var r=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=r,e},Jc.determinant=function(e){return e[0]*e[3]-e[2]*e[1]},Jc.multiply=ru,Jc.rotate=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+s*a,e[1]=n*l+o*a,e[2]=i*-a+s*l,e[3]=n*-a+o*l,e},Jc.scale=function(e,t,r){var i=t[1],n=t[2],s=t[3],o=r[0],a=r[1];return e[0]=t[0]*o,e[1]=i*o,e[2]=n*a,e[3]=s*a,e},Jc.fromRotation=function(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=-r,e[3]=i,e},Jc.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e},Jc.str=function(e){return"mat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},Jc.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},Jc.LDU=function(e,t,r,i){return e[2]=i[2]/i[0],r[0]=i[0],r[1]=i[1],r[3]=i[3]-e[2]*r[1],[e,t,r]},Jc.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e},Jc.subtract=iu,Jc.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},Jc.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=e[3],o=t[0],a=t[1],l=t[2],c=t[3];return Math.abs(r-o)<=eu.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-a)<=eu.EPSILON*Math.max(1,Math.abs(i),Math.abs(a)
2)&&Math.abs(n-l)<=eu.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-c)<=eu.EPSILON*Math.max(1,Math.abs(s),Math.abs(c))},Jc.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e},Jc.multiplyScalarAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e},Jc.sub=Jc.mul=void 0;var eu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==$c(e)&&"function"!=typeof e)return{default:e};var t=tu(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function tu(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(tu=function(e){return e?r:t})(e)}function ru(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=r[0],l=r[1],c=r[2],u=r[3];return e[0]=i*a+s*l,e[1]=n*a+o*l,e[2]=i*c+s*u,e[3]=n*c+o*u,e}function iu(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}Jc.mul=ru,Jc.sub=iu;var nu={};function su(e){return su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},su(e)}Object.defineProperty(nu,"__esModule",{value:!0}),nu.create=function(){var e=new ou.ARRAY_TYPE(6);return ou.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[4]=0,e[5]=0),e[0]=1,e[3]=1,e},nu.clone=function(e){var t=new ou.ARRAY_TYPE(6);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},nu.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},nu.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},nu.fromValues=function(e,t,r,i,n,s){var o=new ou.ARRAY_TYPE(6);return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=s,o},nu.set=function(e,t,r,i,n,s,o){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e},nu.invert=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=r*s-i*n;return l?(e[0]=s*(l=1/l),e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*a-s*o)*l,e[5]=(i*o-r*a)*l,e):null},nu.determinant=function(e){return e[0]*e[3]-e[1]*e[2]},nu.multiply=lu,nu.rotate=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=Math.sin(r),u=Math.cos(r);return e[0]=i*u+s*c,e[1]=n*u+o*c,e[2]=i*-c+s*u,e[3]=n*-c+o*u,e[4]=a,e[5]=l,e},nu.scale=function(e,t,r){var i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=r[0],c=r[1];return e[0]=t[0]*l,e[1]=i*l,e[2]=n*c,e[3]=s*c,e[4]=o,e[5]=a,e},nu.translate=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=r[0],u=r[1];
2return e[0]=i,e[1]=n,e[2]=s,e[3]=o,e[4]=i*c+s*u+a,e[5]=n*c+o*u+l,e},nu.fromRotation=function(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=-r,e[3]=i,e[4]=0,e[5]=0,e},nu.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e[4]=0,e[5]=0,e},nu.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=t[0],e[5]=t[1],e},nu.str=function(e){return"mat2d("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"},nu.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],1)},nu.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e},nu.subtract=cu,nu.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e},nu.multiplyScalarAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e},nu.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]},nu.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=e[3],o=e[4],a=e[5],l=t[0],c=t[1],u=t[2],h=t[3],d=t[4],p=t[5];return Math.abs(r-l)<=ou.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-c)<=ou.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(n-u)<=ou.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-h)<=ou.EPSILON*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(o-d)<=ou.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-p)<=ou.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))},nu.sub=nu.mul=void 0;var ou=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==su(e)&&"function"!=typeof e)return{default:e};var t=au(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function au(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(au=function(e){return e?r:t})(e)}function lu(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=r[0],u=r[1],h=r[2],d=r[3],p=r[4],f=r[5];return e[0]=i*c+s*u,e[1]=n*c+o*u,e[2]=i*h+s*d,e[3]=n*h+o*d,e[4]=i*p+s*f+a,e[5]=n*p+o*f+l,e}function cu(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e}nu.mul=lu,nu.sub=cu;var uu={};function hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}Object.defineProperty(uu,"__esModule",{value:!0}),uu.create=function(){var e=new du.ARRAY_TYPE(9);return du.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},uu.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},uu.clone=function(e){var t=new du.ARRAY_TYPE(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},uu.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},uu.fromValues=function(e,t,r,i,n,s,o,a,l){var c=new du.ARRAY_TYPE(9);return c[0]=e,c[1]=t,c[2]=r,c[3]=i,c[4]=n,c[5]=s,c[6]=o,c[7]=a,c[8]=l,c},uu.set=function(e,t,r,i,n,s,o,a,l,c){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e},uu.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},uu.transpose=function(e,t){if(e===t){var r=t[1],i=t[2],n=t[5];e[1]=t[3],e[2]=t[6],e[3]=r,e[5]=t[7],e[6]=i,e[7]=n}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},uu.invert=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],h=u*o-a*c,d=-u*s+a*l,p=c*s-o*l,f=r*h+i*d+n*p;return f?(e[0]=h*(f=1/f),e[1]=(-u*i+n*c)*f,e[2]=(a*i-n*o)*f,e[3]=d*f,e[4]=(u*r-n*l)*f,e[5]=(-a*r+n*s)*f,e[6]=p*f,e[7]=(-c*r+i*l)*f,e[8]=(o*r-i*s)*f,e):null},uu.adjoint=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8];return e[0]=o*u-a*c,e[1]=n*c-i*u,e[2]=i*a-n*o,e[3]=a*l-s*u,e[4]=r*u-n*l,e[5]=n*s-r*a,e[6]=s*c-o*l,e[7]=i*l-r*c,e[8]=r*o-i*s,e},uu.determinant=function(e){var t=e[3],r=e[4],i=e[5],n=e[6],s=e[7],o=e[8];return e[0]*(o*r-i*s)+e[1]*(-o*t+i*n)+e[2]*(s*t-r*n)},uu.multiply=fu,uu.translate=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=r[0],p=r[1];return e[0]=i,e[1]=n,e[2]=s,e[3]=o,e[4]=a,e[5]=l,e[6]=d*i+p*o+c,e[7]=d*n+p*a+u,e[8]=d*s+p*l+h,e},uu.rotate=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=Math.sin(r),p=Math.cos(r);return e[0]=p*i+d*o,e[1]=p*n+d*a,e[2]=p*s+d*l,e[3]=p*o-d*i,e[4]=p*a-d*n,e[5]=p*l-d*s,e[6]=c,e[7]=u,e[8]=h,e},uu.scale=function(e,t,r){var i=r[0],n=r[1];return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=n*t[3],e[4]=n*t[4],e[5]=n*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},uu.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},uu.fromRotation=function(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},uu.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},uu.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},uu.fromQuat=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=r+r,a=i+i,l=n+n,c=r*o,u=i*o,h=i*a,d=n*o,p=n*a,f=n*l,m=s*o,g=s*a,y=s*l;return e[0]=1-h-f,e[3]=u-y,e[6]=d+g,e[1]=u+y,e[4]=1-c-f,e[7]=p-m,e[2]=d-g,e[5]=p+m,e[8]=1-c-h,e},uu.normalFromMat4=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10
2],p=t[11],f=t[12],m=t[13],g=t[14],y=t[15],v=r*a-i*o,_=r*l-n*o,b=r*c-s*o,x=i*l-n*a,w=i*c-s*a,A=n*c-s*l,E=u*m-h*f,S=u*g-d*f,T=u*y-p*f,C=h*g-d*m,I=h*y-p*m,P=d*y-p*g,M=v*P-_*I+b*C+x*T-w*S+A*E;return M?(e[0]=(a*P-l*I+c*C)*(M=1/M),e[1]=(l*T-o*P-c*S)*M,e[2]=(o*I-a*T+c*E)*M,e[3]=(n*I-i*P-s*C)*M,e[4]=(r*P-n*T+s*S)*M,e[5]=(i*T-r*I-s*E)*M,e[6]=(m*A-g*w+y*x)*M,e[7]=(g*b-f*A-y*_)*M,e[8]=(f*w-m*b+y*v)*M,e):null},uu.projection=function(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},uu.str=function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},uu.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},uu.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e},uu.subtract=mu,uu.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e},uu.multiplyScalarAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e},uu.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},uu.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=t[0],d=t[1],p=t[2],f=t[3],m=t[4],g=t[5],y=t[6],v=t[7],_=t[8];return Math.abs(r-h)<=du.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(i-d)<=du.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(n-p)<=du.EPSILON*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(s-f)<=du.EPSILON*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(o-m)<=du.EPSILON*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-g)<=du.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(l-y)<=du.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(c-v)<=du.EPSILON*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(u-_)<=du.EPSILON*Math.max(1,Math.abs(u),Math.abs(_))},uu.sub=uu.mul=void 0;var du=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==hu(e)&&"function"!=typeof e)return{default:e};var t=pu(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function pu(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(pu=function(e){return e?r:t})(e)}function fu(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=r[0],p=r[1],f=r[2],m=r[3],g=r[4],y=r[5],v=r[6],_=r[7],b=r[8];return e[0]=d*i+p*o+f*c,e[1]=d*n+p*a+f*u,e[2]=d*s+p*l+f*h,e[3]=m*i+g*o+y*c,e[4]=m*n+g*a+y*u,e[5]=m*s+g*l+y*h,e[6]=v*i+_*o+b*c,e[7]=v*n+_*a+b*u,e[8]=v*s+_*l+b*h,e}function mu(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e}uu.mul=fu,uu.sub=mu;var gu={};function yu(e){return yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yu(e)}Object.defineProperty(gu,"__esModule",{value:!0}),gu.create=function(){var e=new vu.ARRAY_TYPE(16);return vu.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},gu.clone=function(e){var t=new vu.ARRAY_TYPE(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],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},gu.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},gu.fromValues=function(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m){var g=new vu.ARRAY_TYPE(16);return g[0]=e,g[1]=t,g[2]=r,g[3]=i,g[4]=n,g[5]=s,g[6]=o,g[7]=a,g[8]=l,g[9]=c,g[10]=u,g[11]=h,g[12]=d,g[13]=p,g[14]=f,g[15]=m,g},gu.set=function(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=u,e[10]=h,e[11]=d,e[12]=p,e[13]=f,e[14]=m,e[15]=g,e},gu.identity=bu,gu.transpose=function(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],s=t[6],o=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=n,e[13]=o,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e},gu.invert=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10
2],p=t[11],f=t[12],m=t[13],g=t[14],y=t[15],v=r*a-i*o,_=r*l-n*o,b=r*c-s*o,x=i*l-n*a,w=i*c-s*a,A=n*c-s*l,E=u*m-h*f,S=u*g-d*f,T=u*y-p*f,C=h*g-d*m,I=h*y-p*m,P=d*y-p*g,M=v*P-_*I+b*C+x*T-w*S+A*E;return M?(e[0]=(a*P-l*I+c*C)*(M=1/M),e[1]=(n*I-i*P-s*C)*M,e[2]=(m*A-g*w+y*x)*M,e[3]=(d*w-h*A-p*x)*M,e[4]=(l*T-o*P-c*S)*M,e[5]=(r*P-n*T+s*S)*M,e[6]=(g*b-f*A-y*_)*M,e[7]=(u*A-d*b+p*_)*M,e[8]=(o*I-a*T+c*E)*M,e[9]=(i*T-r*I-s*E)*M,e[10]=(f*w-m*b+y*v)*M,e[11]=(h*b-u*w-p*v)*M,e[12]=(a*S-o*C-l*E)*M,e[13]=(r*C-i*S+n*E)*M,e[14]=(m*_-f*x-g*v)*M,e[15]=(u*x-h*_+d*v)*M,e):null},gu.adjoint=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10],p=t[11],f=t[12],m=t[13],g=t[14],y=t[15];return e[0]=a*(d*y-p*g)-h*(l*y-c*g)+m*(l*p-c*d),e[1]=-(i*(d*y-p*g)-h*(n*y-s*g)+m*(n*p-s*d)),e[2]=i*(l*y-c*g)-a*(n*y-s*g)+m*(n*c-s*l),e[3]=-(i*(l*p-c*d)-a*(n*p-s*d)+h*(n*c-s*l)),e[4]=-(o*(d*y-p*g)-u*(l*y-c*g)+f*(l*p-c*d)),e[5]=r*(d*y-p*g)-u*(n*y-s*g)+f*(n*p-s*d),e[6]=-(r*(l*y-c*g)-o*(n*y-s*g)+f*(n*c-s*l)),e[7]=r*(l*p-c*d)-o*(n*p-s*d)+u*(n*c-s*l),e[8]=o*(h*y-p*m)-u*(a*y-c*m)+f*(a*p-c*h),e[9]=-(r*(h*y-p*m)-u*(i*y-s*m)+f*(i*p-s*h)),e[10]=r*(a*y-c*m)-o*(i*y-s*m)+f*(i*c-s*a),e[11]=-(r*(a*p-c*h)-o*(i*p-s*h)+u*(i*c-s*a)),e[12]=-(o*(h*g-d*m)-u*(a*g-l*m)+f*(a*d-l*h)),e[13]=r*(h*g-d*m)-u*(i*g-n*m)+f*(i*d-n*h),e[14]=-(r*(a*g-l*m)-o*(i*g-n*m)+f*(i*l-n*a)),e[15]=r*(a*d-l*h)-o*(i*d-n*h)+u*(i*l-n*a),e},gu.determinant=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],s=e[4],o=e[5],a=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],p=e[12],f=e[13],m=e[14],g=e[15];return(t*o-r*s)*(h*g-d*m)-(t*a-i*s)*(u*g-d*f)+(t*l-n*s)*(u*m-h*f)+(r*a-i*o)*(c*g-d*p)-(r*l-n*o)*(c*m-h*p)+(i*l-n*a)*(c*f-u*p)},gu.multiply=xu,gu.translate=function(e,t,r){var i,n,s,o,a,l,c,u,h,d,p,f,m=r[0],g=r[1],y=r[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],p=t[10],f=t[11],e[0]=i=t[0],e[1]=n,e[2]=s,e[3]=o,e[4]=a,e[5]=l,e[6]=c,e[7]=u,e[8]=h,e[9]=d,e[10]=p,e[11]=f,e[12]=i*m+a*g+h*y+t[12],e[13]=n*m+l*g+d*y+t[13],e[14]=s*m+c*g+p*y+t[14],e[15]=o*m+u*g+f*y+t[15]),e},gu.scale=function(e,t,r){var i=r[0],n=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},gu.rotate=function(e,t,r,i){var n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b,x,w,A,E,S,T,C,I=i[0],P=i[1],M=i[2],k=Math.hypot(I,P,M);return k<vu.EPSILON?null:(I*=k=1/k,P*=k,M*=k,n=Math.sin(r),s=Math.cos(r),l=t[1],c=t[2],u=t[3],d=t[5],p=t[6],f=t[7],g=t[9],y=t[10],v=t[11],w=I*P*(o=1-s)-M*n,A=P*P*o+s,E=M*P*o+I*n,S=I*M*o+P*n,T=P*M*o-I*n,C=M*M*o+s,e[0]=(a=t[0])*(_=I*I*o+s)+(h=t[4])*(b=P*I*o+M*n)+(m=t[8])*(x=M*I*o-P*n),e[1]=l*_+d*b+g*x,e[2]=c*_+p*b+y*x,e[3]=u*_+f*b+v*x,e[4]=a*w+h*A+m*E,e[5]=l*w+d*A+g*E,e[6]=c*w+p*A+y*E,e[7]=u*w+f*A+v*E,e[8]=a*S+h*T+m*C,e[9]=l*S+d*T+g*C,e[10]=c*S+p*T+y*C,e[11]=u*S+f*T+v*C,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)},gu.rotateX=function(e,t,r){var i=Math.sin(r),n=Math.cos(r),s=t[4],o=t[5],a=t[6],l=t[7],c=t[8],u=t[9],h=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*n+c*i,e[5]=o*n+u*i,e[6]=a*n+h*i,e[7]=l*n+d*i,e[8]=c*n-s*i,e[9]=u*n-o*i,e[10]=h*n-a*i,e[11]=d*n-l*i,e},gu.rotateY=function(e,t,r){var i=Math.sin(r),n=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],c=t[8],u=t[9],h=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*n-c*i,e[1]=o*n-u*i,e[2]=a*n-h*i,e[3]=l*n-d*i,e[8]=s*i+c*n,e[9]=o*i+u*n,e[10]=a*i+h*n,e[11]=l*i+d*n,e},gu.rotateZ=function(e,t,r){var i=Math.sin(r),n=Math.cos(r),s=t[0],o=t[1],a=t[2],l=t[3],c=t[4],u=t[5],h=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*n+c*i,e[1]=o*n+u*i,e[2]=a*n+h*i,e[3]=l*n+d*i,e[4]=c*n-s*i,e[5]=u*n-o*i,e[6]=h*n-a*i,e[7]=d*n-l*i,e},gu.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
2]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e},gu.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},gu.fromRotation=function(e,t,r){var i,n,s,o=r[0],a=r[1],l=r[2],c=Math.hypot(o,a,l);return c<vu.EPSILON?null:(o*=c=1/c,a*=c,l*=c,i=Math.sin(t),n=Math.cos(t),e[0]=o*o*(s=1-n)+n,e[1]=a*o*s+l*i,e[2]=l*o*s-a*i,e[3]=0,e[4]=o*a*s-l*i,e[5]=a*a*s+n,e[6]=l*a*s+o*i,e[7]=0,e[8]=o*l*s+a*i,e[9]=a*l*s-o*i,e[10]=l*l*s+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)},gu.fromXRotation=function(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},gu.fromYRotation=function(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},gu.fromZRotation=function(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},gu.fromRotationTranslation=wu,gu.fromQuat2=function(e,t){var r=new vu.ARRAY_TYPE(3),i=-t[0],n=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=i*i+n*n+s*s+o*o;return h>0?(r[0]=2*(a*o+u*i+l*s-c*n)/h,r[1]=2*(l*o+u*n+c*i-a*s)/h,r[2]=2*(c*o+u*s+a*n-l*i)/h):(r[0]=2*(a*o+u*i+l*s-c*n),r[1]=2*(l*o+u*n+c*i-a*s),r[2]=2*(c*o+u*s+a*n-l*i)),wu(e,t,r),e},gu.getTranslation=function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},gu.getScaling=Au,gu.getRotation=function(e,t){var r=new vu.ARRAY_TYPE(3);Au(r,t);var i=1/r[0],n=1/r[1],s=1/r[2],o=t[0]*i,a=t[1]*n,l=t[2]*s,c=t[4]*i,u=t[5]*n,h=t[6]*s,d=t[8]*i,p=t[9]*n,f=t[10]*s,m=o+u+f,g=0;return m>0?(g=2*Math.sqrt(m+1),e[3]=.25*g,e[0]=(h-p)/g,e[1]=(d-l)/g,e[2]=(a-c)/g):o>u&&o>f?(g=2*Math.sqrt(1+o-u-f),e[3]=(h-p)/g,e[0]=.25*g,e[1]=(a+c)/g,e[2]=(d+l)/g):u>f?(g=2*Math.sqrt(1+u-o-f),e[3]=(d-l)/g,e[0]=(a+c)/g,e[1]=.25*g,e[2]=(h+p)/g):(g=2*Math.sqrt(1+f-o-u),e[3]=(a-c)/g,e[0]=(d+l)/g,e[1]=(h+p)/g,e[2]=.25*g),e},gu.fromRotationTranslationScale=function(e,t,r,i){var n=t[0],s=t[1],o=t[2],a=t[3],l=n+n,c=s+s,u=o+o,h=n*l,d=n*c,p=n*u,f=s*c,m=s*u,g=o*u,y=a*l,v=a*c,_=a*u,b=i[0],x=i[1],w=i[2];return e[0]=(1-(f+g))*b,e[1]=(d+_)*b,e[2]=(p-v)*b,e[3]=0,e[4]=(d-_)*x,e[5]=(1-(h+g))*x,e[6]=(m+y)*x,e[7]=0,e[8]=(p+v)*w,e[9]=(m-y)*w,e[10]=(1-(h+f))*w,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e},gu.fromRotationTranslationScaleOrigin=function(e,t,r,i,n){var s=t[0],o=t[1],a=t[2],l=t[3],c=s+s,u=o+o,h=a+a,d=s*c,p=s*u,f=s*h,m=o*u,g=o*h,y=a*h,v=l*c,_=l*u,b=l*h,x=i[0],w=i[1],A=i[2],E=n[0],S=n[1],T=n[2],C=(1-(m+y))*x,I=(p+b)*x,P=(f-_)*x,M=(p-b)*w,k=(1-(d+y))*w,O=(g+v)*w,R=(f+_)*A,D=(g-v)*A,L=(1-(d+m))*A;return e[0]=C,e[1]=I,e[2]=P,e[3]=0,e[4]=M,e[5]=k,e[6]=O,e[7]=0,e[8]=R,e[9]=D,e[10]=L,e[11]=0,e[12]=r[0]+E-(C*E+M*S+R*T),e[13]=r[1]+S-(I*E+k*S+D*T),e[14]=r[2]+T-(P*E+O*S+L*T),e[15]=1,e},gu.fromQuat=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=r+r,a=i+i,l=n+n,c=r*o,u=i*o,h=i*a,d=n*o,p=n*a,f=n*l,m=s*o,g=s*a,y=s*l;return e[0]=1-h-f,e[1]=u+y,e[2]=d-g,e[3]=0,e[4]=u-y,e[5]=1-c-f,e[6]=p+m,e[7]=0,e[8]=d+g,e[9]=p-m,e[10]=1-c-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},gu.frustum=function(e,t,r,i,n,s,o){var a=1/(r-t),l=1/(n-i),c=1/(s-o);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(n+i)*l,e[10]=(o+s)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*s*2*c,e[15]=0,e},gu.perspectiveNO=Eu,gu.perspectiveZO=function(e,t,r,i,n){var s,o=1/Math.tan(t/2);return e[0]=o/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=n&&n!==1/0?(e[10]=n*(s=1/(i-n)),e[14]=n*i*s):(e[10]=-1,e[14]=-i),e},gu.perspectiveFromFieldOfView=function(e,t,r,i){var n=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+a),c=2/(n+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-a)*l*.5,e[9]=(n-s)*c*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},gu.orthoNO=Su,gu.orthoZO=function(e,t,r,i,n,s,o){var a=1/(t-r),l=1/(i-n),c=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
2]=c,e[11]=0,e[12]=(t+r)*a,e[13]=(n+i)*l,e[14]=s*c,e[15]=1,e},gu.lookAt=function(e,t,r,i){var n,s,o,a,l,c,u,h,d,p,f=t[0],m=t[1],g=t[2],y=i[0],v=i[1],_=i[2],b=r[0],x=r[1],w=r[2];return Math.abs(f-b)<vu.EPSILON&&Math.abs(m-x)<vu.EPSILON&&Math.abs(g-w)<vu.EPSILON?bu(e):(u=f-b,h=m-x,d=g-w,n=v*(d*=p=1/Math.hypot(u,h,d))-_*(h*=p),s=_*(u*=p)-y*d,o=y*h-v*u,(p=Math.hypot(n,s,o))?(n*=p=1/p,s*=p,o*=p):(n=0,s=0,o=0),a=h*o-d*s,l=d*n-u*o,c=u*s-h*n,(p=Math.hypot(a,l,c))?(a*=p=1/p,l*=p,c*=p):(a=0,l=0,c=0),e[0]=n,e[1]=a,e[2]=u,e[3]=0,e[4]=s,e[5]=l,e[6]=h,e[7]=0,e[8]=o,e[9]=c,e[10]=d,e[11]=0,e[12]=-(n*f+s*m+o*g),e[13]=-(a*f+l*m+c*g),e[14]=-(u*f+h*m+d*g),e[15]=1,e)},gu.targetTo=function(e,t,r,i){var n=t[0],s=t[1],o=t[2],a=i[0],l=i[1],c=i[2],u=n-r[0],h=s-r[1],d=o-r[2],p=u*u+h*h+d*d;p>0&&(u*=p=1/Math.sqrt(p),h*=p,d*=p);var f=l*d-c*h,m=c*u-a*d,g=a*h-l*u;return(p=f*f+m*m+g*g)>0&&(f*=p=1/Math.sqrt(p),m*=p,g*=p),e[0]=f,e[1]=m,e[2]=g,e[3]=0,e[4]=h*g-d*m,e[5]=d*f-u*g,e[6]=u*m-h*f,e[7]=0,e[8]=u,e[9]=h,e[10]=d,e[11]=0,e[12]=n,e[13]=s,e[14]=o,e[15]=1,e},gu.str=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},gu.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},gu.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},gu.subtract=Tu,gu.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},gu.multiplyScalarAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10
2]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},gu.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]},gu.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],p=e[11],f=e[12],m=e[13],g=e[14],y=e[15],v=t[0],_=t[1],b=t[2],x=t[3],w=t[4],A=t[5],E=t[6],S=t[7],T=t[8],C=t[9],I=t[10],P=t[11],M=t[12],k=t[13],O=t[14],R=t[15];return Math.abs(r-v)<=vu.EPSILON*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-_)<=vu.EPSILON*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(n-b)<=vu.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(s-x)<=vu.EPSILON*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(o-w)<=vu.EPSILON*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-A)<=vu.EPSILON*Math.max(1,Math.abs(a),Math.abs(A))&&Math.abs(l-E)<=vu.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-S)<=vu.EPSILON*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(u-T)<=vu.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-C)<=vu.EPSILON*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(d-I)<=vu.EPSILON*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-P)<=vu.EPSILON*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(f-M)<=vu.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(m-k)<=vu.EPSILON*Math.max(1,Math.abs(m),Math.abs(k))&&Math.abs(g-O)<=vu.EPSILON*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(y-R)<=vu.EPSILON*Math.max(1,Math.abs(y),Math.abs(R))},gu.sub=gu.mul=gu.ortho=gu.perspective=void 0;var vu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==yu(e)&&"function"!=typeof e)return{default:e};var t=_u(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function _u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_u=function(e){return e?r:t})(e)}function bu(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function xu(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],p=t[10],f=t[11],m=t[12],g=t[13],y=t[14],v=t[15],_=r[0],b=r[1],x=r[2],w=r[3];return e[0]=_*i+b*a+x*h+w*m,e[1]=_*n+b*l+x*d+w*g,e[2]=_*s+b*c+x*p+w*y,e[3]=_*o+b*u+x*f+w*v,e[4]=(_=r[4])*i+(b=r[5])*a+(x=r[6])*h+(w=r[7])*m,e[5]=_*n+b*l+x*d+w*g,e[6]=_*s+b*c+x*p+w*y,e[7]=_*o+b*u+x*f+w*v,e[8]=(_=r[8])*i+(b=r[9])*a+(x=r[10])*h+(w=r[11])*m,e[9]=_*n+b*l+x*d+w*g,e[10]=_*s+b*c+x*p+w*y,e[11]=_*o+b*u+x*f+w*v,e[12]=(_=r[12])*i+(b=r[13])*a+(x=r[14])*h+(w=r[15])*m,e[13]=_*n+b*l+x*d+w*g,e[14]=_*s+b*c+x*p+w*y,e[15]=_*o+b*u+x*f+w*v,e}function wu(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=i+i,l=n+n,c=s+s,u=i*a,h=i*l,d=i*c,p=n*l,f=n*c,m=s*c,g=o*a,y=o*l,v=o*c;return e[0]=1-(p+m),e[1]=h+v,e[2]=d-y,e[3]=0,e[4]=h-v,e[5]=1-(u+m),e[6]=f+g,e[7]=0,e[8]=d+y,e[9]=f-g,e[10]=1-(u+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function Au(e,t){var r=t[4],i=t[5],n=t[6],s=t[8],o=t[9],a=t[10];return e[0]=Math.hypot(t[0],t[1],t[2]),e[1]=Math.hypot(r,i,n),e[2]=Math.hypot(s,o,a),e}function Eu(e,t,r,i,n){var s,o=1/Math.tan(t/2);return e[0]=o/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=n&&n!==1/0?(e[10]=(n+i)*(s=1/(i-n)),e[14]=2*n*i*s):(e[10]=-1,e[14]=-2*i),e}function Su(e,t,r,i,n,s,o){var a=1/(t-r),l=1/(i-n),c=1/(s-o);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*a,e[13]=(n+i)*l,e[14]=(o+s)*c,e[15]=1,e}function Tu(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}gu.perspective=Eu,gu.ortho=Su,gu.mul=xu,gu.sub=Tu;var Cu={},Iu={};function Pu(e){return Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pu(e)}
2Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.create=Ou,Iu.clone=function(e){var t=new Mu.ARRAY_TYPE(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},Iu.length=Ru,Iu.fromValues=function(e,t,r){var i=new Mu.ARRAY_TYPE(3);return i[0]=e,i[1]=t,i[2]=r,i},Iu.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},Iu.set=function(e,t,r,i){return e[0]=t,e[1]=r,e[2]=i,e},Iu.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e},Iu.subtract=Du,Iu.multiply=Lu,Iu.divide=Bu,Iu.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},Iu.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},Iu.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e},Iu.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e},Iu.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},Iu.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e},Iu.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e},Iu.distance=zu,Iu.squaredDistance=ju,Iu.squaredLength=Fu,Iu.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},Iu.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},Iu.normalize=function(e,t){var r=t[0],i=t[1],n=t[2],s=r*r+i*i+n*n;return s>0&&(s=1/Math.sqrt(s)),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s,e},Iu.dot=Nu,Iu.cross=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=n*l-s*a,e[1]=s*o-i*l,e[2]=i*a-n*o,e},Iu.lerp=function(e,t,r,i){var n=t[0],s=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=o+i*(r[2]-o),e},Iu.hermite=function(e,t,r,i,n,s){var o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,c=o*(s-1),u=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+i[0]*c+n[0]*u,e[1]=t[1]*a+r[1]*l+i[1]*c+n[1]*u,e[2]=t[2]*a+r[2]*l+i[2]*c+n[2]*u,e},Iu.bezier=function(e,t,r,i,n,s){var o=1-s,a=o*o,l=s*s,c=a*o,u=3*s*a,h=3*l*o,d=l*s;return e[0]=t[0]*c+r[0]*u+i[0]*h+n[0]*d,e[1]=t[1]*c+r[1]*u+i[1]*h+n[1]*d,e[2]=t[2]*c+r[2]*u+i[2]*h+n[2]*d,e},Iu.random=function(e,t){t=t||1;var r=2*Mu.RANDOM()*Math.PI,i=2*Mu.RANDOM()-1,n=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*n,e[1]=Math.sin(r)*n,e[2]=i*t,e},Iu.transformMat4=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=r[3]*i+r[7]*n+r[11]*s+r[15];return e[0]=(r[0]*i+r[4]*n+r[8]*s+r[12])/(o=o||1),e[1]=(r[1]*i+r[5]*n+r[9]*s+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*s+r[14])/o,e},Iu.transformMat3=function(e,t,r){var i=t[0],n=t[1],s=t[2];return e[0]=i*r[0]+n*r[3]+s*r[6],e[1]=i*r[1]+n*r[4]+s*r[7],e[2]=i*r[2]+n*r[5]+s*r[8],e},Iu.transformQuat=function(e,t,r){var i=r[0],n=r[1],s=r[2],o=t[0],a=t[1],l=t[2],c=n*l-s*a,u=s*o-i*l,h=i*a-n*o,d=n*h-s*u,p=s*c-i*h,f=i*u-n*c,m=2*r[3];return u*=m,h*=m,p*=2,f*=2,e[0]=o+(c*=m)+(d*=2),e[1]=a+u+p,e[2]=l+h+f,e},Iu.rotateX=function(e,t,r,i){var n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),s[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},Iu.rotateY=function(e,t,r,i){var n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),s[1]=n[1],s[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},Iu.rotateZ=function(e,t,r,i){var n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),s[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},Iu.angle=function(e,t){var r=e[0],i=e[1],n=e[2],s=t[0],o=t[1],a=t[2],l=Math.sqrt(r*r+i*i+n*n)*Math.sqrt(s*s+o*o+a*a),c=l&&Nu(e,t)/l;return Math.acos(Math.min(Math.max(c,-1),1))},Iu.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e},Iu.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},Iu.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},Iu.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=t[0],o=t[1],a=t[2];return Math.abs(r-s)<=Mu.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-o)<=Mu.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(n-a)<=Mu.EPSILON*Math.max(1,Math.abs(n),Math.abs(a)
2)},Iu.forEach=Iu.sqrLen=Iu.len=Iu.sqrDist=Iu.dist=Iu.div=Iu.mul=Iu.sub=void 0;var Mu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==Pu(e)&&"function"!=typeof e)return{default:e};var t=ku(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function ku(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(ku=function(e){return e?r:t})(e)}function Ou(){var e=new Mu.ARRAY_TYPE(3);return Mu.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Ru(e){return Math.hypot(e[0],e[1],e[2])}function Du(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function Lu(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function Bu(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function zu(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])}function ju(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return r*r+i*i+n*n}function Fu(e){var t=e[0],r=e[1],i=e[2];return t*t+r*r+i*i}function Nu(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}Iu.sub=Du,Iu.mul=Lu,Iu.div=Bu,Iu.dist=zu,Iu.sqrDist=ju,Iu.len=Ru,Iu.sqrLen=Fu;var Uu,Vu=(Uu=Ou(),function(e,t,r,i,n,s){var o,a;for(t||(t=3),r||(r=0),a=i?Math.min(i*t+r,e.length):e.length,o=r;o<a;o+=t)Uu[0]=e[o],Uu[1]=e[o+1],Uu[2]=e[o+2],n(Uu,Uu,s),e[o]=Uu[0],e[o+1]=Uu[1],e[o+2]=Uu[2];return e});Iu.forEach=Vu;var Gu={};function qu(e){return qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qu(e)}Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.create=Yu,Gu.clone=function(e){var t=new Hu.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},Gu.fromValues=function(e,t,r,i){var n=new Hu.ARRAY_TYPE(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n},Gu.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},Gu.set=function(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e},Gu.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e},Gu.subtract=Qu,Gu.multiply=Zu,Gu.divide=Xu,Gu.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},Gu.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},Gu.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},Gu.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},Gu.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},Gu.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e},Gu.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e},Gu.distance=Ku,Gu.squaredDistance=Ju,Gu.length=$u,Gu.squaredLength=eh,Gu.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},Gu.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},Gu.normalize=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=r*r+i*i+n*n+s*s;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=s*o,e},Gu.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},Gu.cross=function(e,t,r,i){var n=r[0]*i[1]-r[1]*i[0],s=r[0]*i[2]-r[2]*i[0],o=r[0]*i[3]-r[3]*i[0],a=r[1]*i[2]-r[2]*i[1],l=r[1]*i[3]-r[3]*i[1],c=r[2]*i[3]-r[3]*i[2],u=t[0],h=t[1],d=t[2],p=t[3];return e[0]=h*c-d*l+p*a,e[1]=-u*c+d*o-p*s,e[2]=u*l-h*o+p*n,e[3]=-u*a+h*s-d*n,e},Gu.lerp=function(e,t,r,i){var n=t[0],s=t[1],o=t[2],a=t[3];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e[2]=o+i*(r[2]-o),e[3]=a+i*(r[3]-a),e},Gu.random=function(e,t){var r,i,n,s,o,a;t=t||1;do{o=(r=2*Hu.RANDOM()-1)*r+(i=2*Hu.RANDOM()-1)*i}while(o>=1);do{a=(n=2*Hu.RANDOM()-1)*n+(s=2*Hu.RANDOM()-1)*s}while(a>=1);var l=Math.sqrt((1-o)/a);return e[0]=t*r,e[1]=t*i,e[2]=t*n*l,e[3]=t*s*l,e},Gu.transformMat4=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*s+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*s+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*s+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*s+r[15]*o,e},Gu.transformQuat=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=r[0],a=r[1],l=r[2],c=r[3],u=c*i+a*s-l*n,h=c*n+l*i-o*s,d=c*s+o*n-a*i,p=-o*i-a*n-l*s;return e[0]=u*c+p*-o+h*-l-d*-a,e[1]=h*c+p*-a+d*-o-u*-l,e[2]=d*c+p*-l+u*-a-h*-o,e[3]=t[3],e},Gu.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},Gu.str=function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},Gu.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},Gu.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=e[3],o=t[0],a=t[1],l=t[2],c=t[3];return Math.abs(r-o)<=Hu.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-a)<=Hu.EPSILON*Math.max(1,Math.abs(i),Math.abs(a)
2)&&Math.abs(n-l)<=Hu.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(s-c)<=Hu.EPSILON*Math.max(1,Math.abs(s),Math.abs(c))},Gu.forEach=Gu.sqrLen=Gu.len=Gu.sqrDist=Gu.dist=Gu.div=Gu.mul=Gu.sub=void 0;var Hu=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==qu(e)&&"function"!=typeof e)return{default:e};var t=Wu(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function Wu(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Wu=function(e){return e?r:t})(e)}function Yu(){var e=new Hu.ARRAY_TYPE(4);return Hu.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Qu(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function Zu(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function Xu(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function Ku(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2],t[3]-e[3])}function Ju(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],s=t[3]-e[3];return r*r+i*i+n*n+s*s}function $u(e){return Math.hypot(e[0],e[1],e[2],e[3])}function eh(e){var t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n}Gu.sub=Qu,Gu.mul=Zu,Gu.div=Xu,Gu.dist=Ku,Gu.sqrDist=Ju,Gu.len=$u,Gu.sqrLen=eh;var th=function(){var e=Yu();return function(t,r,i,n,s,o){var a,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,a=i;a<l;a+=r)e[0]=t[a],e[1]=t[a+1],e[2]=t[a+2],e[3]=t[a+3],s(e,e,o),t[a]=e[0],t[a+1]=e[1],t[a+2]=e[2],t[a+3]=e[3];return t}}();function rh(e){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rh(e)}Gu.forEach=th,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.create=ch,Cu.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},Cu.setAxisAngle=uh,Cu.getAxisAngle=function(e,t){var r=2*Math.acos(t[3]),i=Math.sin(r/2);return i>ih.EPSILON?(e[0]=t[0]/i,e[1]=t[1]/i,e[2]=t[2]/i):(e[0]=1,e[1]=0,e[2]=0),r},Cu.getAngle=function(e,t){var r=yh(e,t);return Math.acos(2*r*r-1)},Cu.multiply=hh,Cu.rotateX=function(e,t,r){r*=.5;var i=t[0],n=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+o*a,e[1]=n*l+s*a,e[2]=s*l-n*a,e[3]=o*l-i*a,e},Cu.rotateY=function(e,t,r){r*=.5;var i=t[0],n=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l-s*a,e[1]=n*l+o*a,e[2]=s*l+i*a,e[3]=o*l-n*a,e},Cu.rotateZ=function(e,t,r){r*=.5;var i=t[0],n=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*a,e[1]=n*l-i*a,e[2]=s*l+o*a,e[3]=o*l-s*a,e},Cu.calculateW=function(e,t){var r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e},Cu.exp=dh,Cu.ln=ph,Cu.pow=function(e,t,r){return ph(e,t),gh(e,e,r),dh(e,e),e},Cu.slerp=fh,Cu.random=function(e){var t=ih.RANDOM(),r=ih.RANDOM(),i=ih.RANDOM(),n=Math.sqrt(1-t),s=Math.sqrt(t);return e[0]=n*Math.sin(2*Math.PI*r),e[1]=n*Math.cos(2*Math.PI*r),e[2]=s*Math.sin(2*Math.PI*i),e[3]=s*Math.cos(2*Math.PI*i),e},Cu.invert=function(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=r*r+i*i+n*n+s*s,a=o?1/o:0;return e[0]=-r*a,e[1]=-i*a,e[2]=-n*a,e[3]=s*a,e},Cu.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},Cu.fromMat3=mh,Cu.fromEuler=function(e,t,r,i){var n=.5*Math.PI/180;t*=n,r*=n,i*=n;var s=Math.sin(t),o=Math.cos(t),a=Math.sin(r),l=Math.cos(r),c=Math.sin(i),u=Math.cos(i);return e[0]=s*l*u-o*a*c,e[1]=o*a*u+s*l*c,e[2]=o*l*c-s*a*u,e[3]=o*l*u+s*a*c,e},Cu.str=function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},Cu.setAxes=Cu.sqlerp=Cu.rotationTo=Cu.equals=Cu.exactEquals=Cu.normalize=Cu.sqrLen=Cu.squaredLength=Cu.len=Cu.length=Cu.lerp=Cu.dot=Cu.scale=Cu.mul=Cu.add=Cu.set=Cu.copy=Cu.fromValues=Cu.clone=void 0;var ih=lh(Yc),nh=lh(uu),sh=lh(Iu),oh=lh(Gu);function ah(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(ah=function(e){return e?r:t})(e)}
2function lh(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==rh(e)&&"function"!=typeof e)return{default:e};var r=ah(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(i,s,o):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}function ch(){var e=new ih.ARRAY_TYPE(4);return ih.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function uh(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function hh(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=r[0],l=r[1],c=r[2],u=r[3];return e[0]=i*u+o*a+n*c-s*l,e[1]=n*u+o*l+s*a-i*c,e[2]=s*u+o*c+i*l-n*a,e[3]=o*u-i*a-n*l-s*c,e}function dh(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=Math.sqrt(r*r+i*i+n*n),a=Math.exp(s),l=o>0?a*Math.sin(o)/o:0;return e[0]=r*l,e[1]=i*l,e[2]=n*l,e[3]=a*Math.cos(o),e}function ph(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=Math.sqrt(r*r+i*i+n*n),a=o>0?Math.atan2(o,s)/o:0;return e[0]=r*a,e[1]=i*a,e[2]=n*a,e[3]=.5*Math.log(r*r+i*i+n*n+s*s),e}function fh(e,t,r,i){var n,s,o,a,l,c=t[0],u=t[1],h=t[2],d=t[3],p=r[0],f=r[1],m=r[2],g=r[3];return(s=c*p+u*f+h*m+d*g)<0&&(s=-s,p=-p,f=-f,m=-m,g=-g),1-s>ih.EPSILON?(n=Math.acos(s),o=Math.sin(n),a=Math.sin((1-i)*n)/o,l=Math.sin(i*n)/o):(a=1-i,l=i),e[0]=a*c+l*p,e[1]=a*u+l*f,e[2]=a*h+l*m,e[3]=a*d+l*g,e}function mh(e,t){var r,i=t[0]+t[4]+t[8];if(i>0)r=Math.sqrt(i+1),e[3]=.5*r,e[0]=(t[5]-t[7])*(r=.5/r),e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[3*n+n]&&(n=2);var s=(n+1)%3,o=(n+2)%3;r=Math.sqrt(t[3*n+n]-t[3*s+s]-t[3*o+o]+1),e[n]=.5*r,e[3]=(t[3*s+o]-t[3*o+s])*(r=.5/r),e[s]=(t[3*s+n]+t[3*n+s])*r,e[o]=(t[3*o+n]+t[3*n+o])*r}return e}Cu.clone=oh.clone,Cu.fromValues=oh.fromValues,Cu.copy=oh.copy,Cu.set=oh.set,Cu.add=oh.add,Cu.mul=hh;var gh=oh.scale;Cu.scale=gh;var yh=oh.dot;Cu.dot=yh,Cu.lerp=oh.lerp;var vh=oh.length;Cu.length=vh,Cu.len=vh;var _h=oh.squaredLength;Cu.squaredLength=_h,Cu.sqrLen=_h;var bh=oh.normalize;Cu.normalize=bh,Cu.exactEquals=oh.exactEquals,Cu.equals=oh.equals;var xh,wh,Ah,Eh=(xh=sh.create(),wh=sh.fromValues(1,0,0),Ah=sh.fromValues(0,1,0),function(e,t,r){var i=sh.dot(t,r);return i<-.999999?(sh.cross(xh,wh,t),sh.len(xh)<1e-6&&sh.cross(xh,Ah,t),sh.normalize(xh,xh),uh(e,xh,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(sh.cross(xh,t,r),e[0]=xh[0],e[1]=xh[1],e[2]=xh[2],e[3]=1+i,bh(e,e))});Cu.rotationTo=Eh;var Sh,Th,Ch=(Sh=ch(),Th=ch(),function(e,t,r,i,n,s){return fh(Sh,t,n,s),fh(Th,r,i,s),fh(e,Sh,Th,2*s*(1-s)),e});Cu.sqlerp=Ch;var Ih,Ph=(Ih=nh.create(),function(e,t,r,i){return Ih[0]=r[0],Ih[3]=r[1],Ih[6]=r[2],Ih[1]=i[0],Ih[4]=i[1],Ih[7]=i[2],Ih[2]=-t[0],Ih[5]=-t[1],Ih[8]=-t[2],bh(e,mh(e,Ih))});Cu.setAxes=Ph;var Mh={};function kh(e){return kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kh(e)}Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.create=function(){var e=new Oh.ARRAY_TYPE(8);return Oh.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[4]=0,e[5]=0,e[6]=0,e[7]=0),e[3]=1,e},Mh.clone=function(e){var t=new Oh.ARRAY_TYPE(8);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t},Mh.fromValues=function(e,t,r,i,n,s,o,a){var l=new Oh.ARRAY_TYPE(8);return l[0]=e,l[1]=t,l[2]=r,l[3]=i,l[4]=n,l[5]=s,l[6]=o,l[7]=a,l},Mh.fromRotationTranslationValues=function(e,t,r,i,n,s,o){var a=new Oh.ARRAY_TYPE(8);a[0]=e,a[1]=t,a[2]=r,a[3]=i;var l=.5*n,c=.5*s,u=.5*o;return a[4]=l*i+c*r-u*t,a[5]=c*i+u*e-l*r,a[6]=u*i+l*t-c*e,a[7]=-l*e-c*t-u*r,a},Mh.fromRotationTranslation=zh,Mh.fromTranslation=function(e,t){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=.5*t[0],e[5]=.5*t[1],e[6]=.5*t[2],e[7]=0,e},Mh.fromRotation=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},Mh.fromMat4=function(e,t){var r=Rh.create();Dh.getRotation(r,t);var i=new Oh.ARRAY_TYPE(3);return Dh.getTranslation(i,t),zh(e,r,i),e},Mh.copy=jh,Mh.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},Mh.set=function(e,t,r,i,n,s,o,a,l){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e[4]=s,e[5]=o,e[6]=a,e[7]=l,e},Mh.getDual=function(e,t){return e[0]=t[4],e[1]=t[5],e[2]=t[6],e[3]=t[7],e},Mh.setDual=function(e,t){return e[4]=t[0],e[5]=t[1],e[6]=t[2],e[7]=t[3],e},Mh.getTranslation=function(e,t){var r=t[4],i=t[5],n=t[6],s=t[7],o=-t[0],a=-t[1],l=-t[2],c=t[3];return e[0]=2*(r*c+s*o+i*l-n*a),e[1]=2*(i*c+s*a+n*o-r*l),e[2]=2*(n*c+s*l+r*a-i*o),e},Mh.translate=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=.5*r[0],l=.5*r[1],c=.5*r[2],u=t[4],h=t[5],d=t[6],p=t[7];return e[0]=i,e[1]=n,e[2]=s,e[3]=o,e[4]=o*a+n*c-s*l+u,e[5]=o*l+s*a-i*c+h,e[6]=o*c+i*l-n*a+d,e[7]=-i*a-n*l-s*c+p,e},Mh.rotateX=function(e,t,r){var i=-t[0],n=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=a*o+u*i+l*s-c*n,d=l*o+u*n+c*i-a*s,p=c*o+u*s+a*n-l*i,f=u*o-a*i-l*n-c*s;return Rh.rotateX(e,t,r),e[4]=h*(o=e[3])+f*(i=e[0])+d*(s=e[2])-p*(n=e[1]),e[5]=d*o+f*n+p*i-h*s,e[6]=p*o+f*s+h*n-d*i,e[7]=f*o-h*i-d*n-p*s,e},Mh.rotateY=function(e,t,r){var i=-t[0],n=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=a*o+u*i+l*s-c*n,d=l*o+u*n+c*i-a*s,p=c*o+u*s+a*n-l*i,f=u*o-a*i-l*n-c*s;return Rh.rotateY(e,t,r),e[4]=h*(o=e[3])+f*(i=e[0])+d*(s=e[2])-p*(n=e[1]),e[5]=d*o+f*n+p*i-h*s,e[6]=p*o+f*s+h*n-d*i,e[7]=f*o-h*i-d*n-p*s,e},Mh.rotateZ=function(e,t,r){var i=-t[0],n=-t[1],s=-t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=a*o+u*i+l*s-c*n,d=l*o+u*n+c*i-a*s,p=c*o+u*s+a*n-l*i,f=u*o-a*i-l*n-c*s;return Rh.rotateZ(e,t,r),e[4]=h*(o=e[3])+f*(i=e[0])+d*(s=e[2])-p*(n=e[1]),e[5]=d*o+f*n+p*i-h*s,e[6]=p*o+f*s+h*n-d*i,e[7]=f*o-h*i-d*n-p*s,e},Mh.rotateByQuatAppend=function(e,t,r){var i=r[0],n=r[1],s=r[2],o=r[3],a=t[0],l=t[1],c=t[2],u=t[3];return e[0]=a*o+u*i+l*s-c*n,e[1]=l*o+u*n+c*i-a*s,e[2]=c*o+u*s+a*n-l*i,e[3]=u*o-a*i-l*n-c*s,e[4]=(a=t[4])*o+(u=t[7])*i+(l=t[5])*s-(c=t[6])*n,e[5]=l*o+u*n+c*i-a*s,e[6]=c*o+u*s+a*n-l*i,e[7]=u*o-a*i-l*n-c*s,e},Mh.rotateByQuatPrepend=function(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=r[0],l=r[1],c=r[2],u=r[3];return e[0]=i*u+o*a+n*c-s*l,e[1]=n*u+o*l+s*a-i*c,e[2]=s*u+o*c+i*l-n*a,e[3]=o*u-i*a-n*l-s*c,e[4]=i*(u=r[7])+o*(a=r[4])+n*(c=r[6])-s*(l=r[5]),e[5]=n*u+o*l+s*a-i*c,e[6]=s*u+o*c+i*l-n*a,e[7]=o*u-i*a-n*l-s*c,e}
2,Mh.rotateAroundAxis=function(e,t,r,i){if(Math.abs(i)<Oh.EPSILON)return jh(e,t);var n=Math.hypot(r[0],r[1],r[2]);i*=.5;var s=Math.sin(i),o=s*r[0]/n,a=s*r[1]/n,l=s*r[2]/n,c=Math.cos(i),u=t[0],h=t[1],d=t[2],p=t[3];e[0]=u*c+p*o+h*l-d*a,e[1]=h*c+p*a+d*o-u*l,e[2]=d*c+p*l+u*a-h*o,e[3]=p*c-u*o-h*a-d*l;var f=t[4],m=t[5],g=t[6],y=t[7];return e[4]=f*c+y*o+m*l-g*a,e[5]=m*c+y*a+g*o-f*l,e[6]=g*c+y*l+f*a-m*o,e[7]=y*c-f*o-m*a-g*l,e},Mh.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e},Mh.multiply=Fh,Mh.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e},Mh.lerp=function(e,t,r,i){var n=1-i;return Nh(t,r)<0&&(i=-i),e[0]=t[0]*n+r[0]*i,e[1]=t[1]*n+r[1]*i,e[2]=t[2]*n+r[2]*i,e[3]=t[3]*n+r[3]*i,e[4]=t[4]*n+r[4]*i,e[5]=t[5]*n+r[5]*i,e[6]=t[6]*n+r[6]*i,e[7]=t[7]*n+r[7]*i,e},Mh.invert=function(e,t){var r=Vh(t);return e[0]=-t[0]/r,e[1]=-t[1]/r,e[2]=-t[2]/r,e[3]=t[3]/r,e[4]=-t[4]/r,e[5]=-t[5]/r,e[6]=-t[6]/r,e[7]=t[7]/r,e},Mh.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e[4]=-t[4],e[5]=-t[5],e[6]=-t[6],e[7]=t[7],e},Mh.normalize=function(e,t){var r=Vh(t);if(r>0){r=Math.sqrt(r);var i=t[0]/r,n=t[1]/r,s=t[2]/r,o=t[3]/r,a=t[4],l=t[5],c=t[6],u=t[7],h=i*a+n*l+s*c+o*u;e[0]=i,e[1]=n,e[2]=s,e[3]=o,e[4]=(a-i*h)/r,e[5]=(l-n*h)/r,e[6]=(c-s*h)/r,e[7]=(u-o*h)/r}return e},Mh.str=function(e){return"quat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+")"},Mh.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]},Mh.equals=function(e,t){var r=e[0],i=e[1],n=e[2],s=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=t[0],h=t[1],d=t[2],p=t[3],f=t[4],m=t[5],g=t[6],y=t[7];return Math.abs(r-u)<=Oh.EPSILON*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-h)<=Oh.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-d)<=Oh.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(s-p)<=Oh.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(o-f)<=Oh.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-m)<=Oh.EPSILON*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-g)<=Oh.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-y)<=Oh.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))},Mh.sqrLen=Mh.squaredLength=Mh.len=Mh.length=Mh.dot=Mh.mul=Mh.setReal=Mh.getReal=void 0;var Oh=Bh(Yc),Rh=Bh(Cu),Dh=Bh(gu);function Lh(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Lh=function(e){return e?r:t})(e)}function Bh(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==kh(e)&&"function"!=typeof e)return{default:e};var r=Lh(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(i,s,o):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}function zh(e,t,r){var i=.5*r[0],n=.5*r[1],s=.5*r[2],o=t[0],a=t[1],l=t[2],c=t[3];return e[0]=o,e[1]=a,e[2]=l,e[3]=c,e[4]=i*c+n*l-s*a,e[5]=n*c+s*o-i*l,e[6]=s*c+i*a-n*o,e[7]=-i*o-n*a-s*l,e}function jh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function Fh(e,t,r){var i=t[0],n=t[1],s=t[2],o=t[3],a=r[4],l=r[5],c=r[6],u=r[7],h=t[4],d=t[5],p=t[6],f=t[7],m=r[0],g=r[1],y=r[2],v=r[3];return e[0]=i*v+o*m+n*y-s*g,e[1]=n*v+o*g+s*m-i*y,e[2]=s*v+o*y+i*g-n*m,e[3]=o*v-i*m-n*g-s*y,e[4]=i*u+o*a+n*c-s*l+h*v+f*m+d*y-p*g,e[5]=n*u+o*l+s*a-i*c+d*v+f*g+p*m-h*y,e[6]=s*u+o*c+i*l-n*a+p*v+f*y+h*g-d*m,e[7]=o*u-i*a-n*l-s*c+f*v-h*m-d*g-p*y,e}Mh.getReal=Rh.copy,Mh.setReal=Rh.copy,Mh.mul=Fh;var Nh=Rh.dot;Mh.dot=Nh;var Uh=Rh.length;Mh.length=Uh,Mh.len=Uh;var Vh=Rh.squaredLength;Mh.squaredLength=Vh,Mh.sqrLen=Vh;var Gh={};function qh(e){return qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qh(e)}Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.create=Yh,Gh.clone=function(e){var t=new Hh.ARRAY_TYPE(2);return t[0]=e[0],t[1]=e[1],t},Gh.fromValues=function(e,t){var r=new Hh.ARRAY_TYPE(2);return r[0]=e,r[1]=t,r},Gh.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},Gh.set=function(e,t,r){return e[0]=t,e[1]=r,e},Gh.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}
2,Gh.subtract=Qh,Gh.multiply=Zh,Gh.divide=Xh,Gh.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e},Gh.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e},Gh.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e},Gh.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e},Gh.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e},Gh.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e},Gh.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e},Gh.distance=Kh,Gh.squaredDistance=Jh,Gh.length=$h,Gh.squaredLength=ed,Gh.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},Gh.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e},Gh.normalize=function(e,t){var r=t[0],i=t[1],n=r*r+i*i;return n>0&&(n=1/Math.sqrt(n)),e[0]=t[0]*n,e[1]=t[1]*n,e},Gh.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},Gh.cross=function(e,t,r){var i=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=i,e},Gh.lerp=function(e,t,r,i){var n=t[0],s=t[1];return e[0]=n+i*(r[0]-n),e[1]=s+i*(r[1]-s),e},Gh.random=function(e,t){t=t||1;var r=2*Hh.RANDOM()*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e},Gh.transformMat2=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n,e[1]=r[1]*i+r[3]*n,e},Gh.transformMat2d=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e},Gh.transformMat3=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[3]*n+r[6],e[1]=r[1]*i+r[4]*n+r[7],e},Gh.transformMat4=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e},Gh.rotate=function(e,t,r,i){var n=t[0]-r[0],s=t[1]-r[1],o=Math.sin(i),a=Math.cos(i);return e[0]=n*a-s*o+r[0],e[1]=n*o+s*a+r[1],e},Gh.angle=function(e,t){var r=e[0],i=e[1],n=t[0],s=t[1],o=Math.sqrt(r*r+i*i)*Math.sqrt(n*n+s*s);return Math.acos(Math.min(Math.max(o&&(r*n+i*s)/o,-1),1))},Gh.zero=function(e){return e[0]=0,e[1]=0,e},Gh.str=function(e){return"vec2("+e[0]+", "+e[1]+")"},Gh.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gh.equals=function(e,t){var r=e[0],i=e[1],n=t[0],s=t[1];return Math.abs(r-n)<=Hh.EPSILON*Math.max(1,Math.abs(r),Math.abs(n))&&Math.abs(i-s)<=Hh.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))},Gh.forEach=Gh.sqrLen=Gh.sqrDist=Gh.dist=Gh.div=Gh.mul=Gh.sub=Gh.len=void 0;var Hh=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==qh(e)&&"function"!=typeof e)return{default:e};var t=Wh(void 0);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var s=i?Object.getOwnPropertyDescriptor(e,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=e[n]}return r.default=e,t&&t.set(e,r),r}(Yc);function Wh(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Wh=function(e){return e?r:t})(e)}function Yh(){var e=new Hh.ARRAY_TYPE(2);return Hh.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0),e}function Qh(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Zh(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function Xh(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Kh(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}function Jh(e,t){var r=t[0]-e[0],i=t[1]-e[1];return r*r+i*i}function $h(e){return Math.hypot(e[0],e[1])}function ed(e){var t=e[0],r=e[1];return t*t+r*r}Gh.len=$h,Gh.sub=Qh,Gh.mul=Zh,Gh.div=Xh,Gh.dist=Kh,Gh.sqrDist=Jh,Gh.sqrLen=ed;var td=function(){var e=Yh();return function(t,r,i,n,s,o){var a,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,a=i;a<l;a+=r)e[0]=t[a],e[1]=t[a+1],s(e,e,o),t[a]=e[0],t[a+1]=e[1];return t}}();function rd(e){return rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rd(e)}Gh.forEach=td,Object.defineProperty(Wc,"__esModule",{value:!0});var id=Wc.vec4=yd=Wc.vec3=Wc.vec2=Wc.quat2=pd=Wc.quat=hd=Wc.mat4=cd=Wc.mat3=Wc.mat2d=od=Wc.mat2=Wc.glMatrix=void 0,nd=bd(Yc);Wc.glMatrix=nd;var sd=bd(Jc),od=Wc.mat2=sd,ad=bd(nu);Wc.mat2d=ad;var ld=bd(uu),cd=Wc.mat3=ld,ud=bd(gu),hd=Wc.mat4=ud,dd=bd(Cu),pd=Wc.quat=dd,fd=bd(Mh);Wc.quat2=fd;var md=bd(Gh);Wc.vec2=md;var gd=bd(Iu),yd=Wc.vec3=gd,vd=bd(Gu);function _d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_d=function(e){return e?r:t})(e)}
2function bd(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==rd(e)&&"function"!=typeof e)return{default:e};var r=_d(t);if(r&&r.has(e))return r.get(e);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(i,s,o):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}id=Wc.vec4=vd;const xd=pl([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:wd}=xd,Ad=pl([{name:"a_pos_3",components:3,type:"Int16"}]);var Ed=pl([{name:"a_pos",type:"Int16",components:2}]),Sd={};!function(e,t){!function(e){function t(e,t,i){var n=r(256*e,256*(t=Math.pow(2,i)-t-1),i),s=r(256*(e+1),256*(t+1),i);return n[0]+","+n[1]+","+s[0]+","+s[1]}function r(e,t,r){var i=2*Math.PI*6378137/256/Math.pow(2,r);return[e*i-2*Math.PI*6378137/2,t*i-2*Math.PI*6378137/2]}e.getURL=function(e,r,i,n,s,o){return o=o||{},e+"?"+["bbox="+t(i,n,s),"format="+(o.format||"image/png"),"service="+(o.service||"WMS"),"version="+(o.version||"1.1.1"),"request="+(o.request||"GetMap"),"srs="+(o.srs||"EPSG:3857"),"width="+(o.width||256),"height="+(o.height||256),"layers="+r].join("&")},e.getTileBBox=t,e.getMercCoords=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,Sd);var Td=Sd;class Cd{constructor(e,t,r){this.z=e,this.x=t,this.y=r,this.key=Md(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const r=Td.getTileBBox(this.x,this.y,this.z),i=function(e,t,r){let i,n="";for(let s=e;s>0;s--)i=1<<s-1,n+=(t&i?1:0)+(r&i?2:0);return n}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",i).replace("{bbox-epsg-3857}",r)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Id{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Md(e,t.z,t.z,t.x,t.y)}}class Pd{constructor(e,t,r,i,n){this.overscaledZ=e,this.wrap=t,this.canonical=new Cd(r,+i,+n),this.key=0===t&&e===r?this.canonical.key:Md(t,e,r,i,n)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new Pd(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Pd(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return Md(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const r=this.canonical.z-e;return Md(this.wrap*+t,e,e,this.canonical.x>>r,this.canonical.y>>r)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.z<this.canonical.z&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new Pd(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,r=2*this.canonical.x,i=2*this.canonical.y;return[new Pd(t,this.wrap,t,r,i),new Pd(t,this.wrap,t,r+1,i),new Pd(t,this.wrap,t,r,i+1),new Pd(t,this.wrap,t,r+1,i+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new Pd(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new Pd(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Id(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Md(e,t,r,i,n){const s=1<<Math.min(r,22);let o=s*(n%s)+i%s;return e&&r<22&&(o+=s*s*((e<0?-2*e-1:2*e)%(1<<2*(22-r)))),16*(32*o+r)+(t-r)}const kd=[e=>{let t=e.canonical.x-1,r=e.wrap;return t<0&&(t=(1<<e.canonical.z)-1,r--),new Pd(e.overscaledZ,r,e.canonical.z,t,e.canonical.y)},e=>{let t=e.canonical.x+1,r=e.wrap;return t===1<<e.canonical.z&&(t=0,r++),new Pd(e.overscaledZ,r,e.canonical.z,t,e.canonical.y)},e=>new Pd(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new Pd(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)];To(Cd,"CanonicalTileID"),To(Pd,"OverscaledTileID",{omit:["projMatrix"]});class Od{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,r){const i=yd.dot(t,this.dir);if(Math.abs(i)<1e-6)return!1;const n=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/i;return r[0]=this.pos[0]+this.dir[0]*n,r[1]=this.pos[1]+this.dir[1]*n,r[2]=this.pos[2]+this.dir[2]*n,!0}closestPointOnSphere(e,t,r){if(yd.equals(this.pos,e)||0===t)return r[0]=r[1]=r[2]=0,!1;const[i,n,s]=this.dir,o=this.pos[0]-e[0],a=this.pos[1]-e[1],l=this.pos[2]-e[2],c=i*i+n*n+s*s,u=2*(o*i+a*n+l*s),h=u*u-4*c*(o*o+a*a+l*l-t*t);if(h<0){const e=Math.max(-u/2,0),c=o+i*e,h=a+n*e,d=l+s*e,p=Math.hypot(c,h,d);return r[0]=c*t/p,r[1]=h*t/p,r[2]=d*t/p,!1}{const e=(-u-Math.sqrt(h))/(2*c);if(e<0){const e=Math.hypot(o,a,l);return r[0]=o*t/e,r[1]=a*t/e,r[2]=l*t/e,!1}return r[0]=o+i*e,r[1]=a+n*e,r[2]=l+s*e,!0}}}class Rd{constructor(e,t,r,i,n){this.TL=e,this.TR=t,this.BR=r,this.BL=i,this.horizon=n}static fromInvProjectionMatrix(e,t,r){const i=[-1,1,1],n=[1,1,1],s=[1,-1,1],o=[-1,-1,1],a=yd.transformMat4(i,i,e),l=yd.transformMat4(n,n,e),c=yd.transformMat4(s,s,e),u=yd.transformMat4(o,o,e);return new Rd(a,l,c,u,t/r)}}function Dd(e,t,r){let i=1/0,n=-1/0;const s=[];for(const o of e){yd.sub(s,o,t);const e=yd.dot(s,r);i=Math.min(i,e),n=Math.max(n,e)}return[i,n]}function Ld(e,t){let r=!0;for(let i=0;
2i<e.planes.length;i++){const n=e.planes[i];let s=0;for(let e=0;e<t.length;e++)s+=yd.dot(n,t[e])+n[3]>=0;if(0===s)return 0;s!==t.length&&(r=!1)}return r?2:1}function Bd(e,t){for(const r of e.projections){const i=Dd(t,e.points[0],r.axis);if(r.projection[1]<i[0]||r.projection[0]>i[1])return 0}return 1}function zd(e,t){let r=0;const i=[0,0,0,0];for(let n=0;n<e.length;n++)i[0]=e[n][0],i[1]=e[n][1],i[2]=e[n][2],i[3]=1,id.dot(i,t)>=0&&r++;return r}class jd{constructor(e,t){this.points=e||new Array(8).fill([0,0,0]),this.planes=t||new Array(6).fill([0,0,0,0]),this.bounds=Fd.fromPoints(this.points),this.projections=[],this.frustumEdges=[yd.sub([],this.points[2],this.points[3]),yd.sub([],this.points[0],this.points[3]),yd.sub([],this.points[4],this.points[0]),yd.sub([],this.points[5],this.points[1]),yd.sub([],this.points[6],this.points[2]),yd.sub([],this.points[7],this.points[3])];for(const e of this.frustumEdges){const t=[0,-e[2],e[1]],r=[e[2],0,-e[0]];this.projections.push({axis:t,projection:Dd(this.points,this.points[0],t)}),this.projections.push({axis:r,projection:Dd(this.points,this.points[0],r)})}}static fromInvProjectionMatrix(e,t,r,i){const n=Math.pow(2,r),s=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((r=>{const s=id.transformMat4([],r,e),o=1/s[3]/t*n;return id.mul(s,s,[o,o,i?1/s[3]:o,o])})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((e=>{const t=yd.sub([],s[e[0]],s[e[1]]),r=yd.sub([],s[e[2]],s[e[1]]),i=yd.normalize([],yd.cross([],t,r)),n=-yd.dot(i,s[e[1]]);return i.concat(n)})),a=[];for(let e=0;e<s.length;e++)a.push([s[e][0],s[e][1],s[e][2]]);return new jd(a,o)}intersectsPrecise(e,t,r){for(let r=0;r<t.length;r++)if(!zd(e,t[r]))return 0;for(let t=0;t<this.planes.length;t++)if(!zd(e,this.planes[t]))return 0;for(const t of r)for(const r of this.frustumEdges){const i=yd.cross([],t,r),n=yd.length(i);if(0===n)continue;yd.scale(i,i,1/n);const s=Dd(this.points,this.points[0],i),o=Dd(e,this.points[0],i);if(s[0]>o[1]||o[0]>s[1])return 0}return 1}}class Fd{static fromPoints(e){const t=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0];for(const i of e)yd.min(t,t,i),yd.max(r,r,i);return new Fd(t,r)}static fromTileIdAndHeight(e,t,r){const i=1<<e.canonical.z,n=e.canonical.x,s=e.canonical.y;return new Fd([n/i,s/i,t],[(n+1)/i,(s+1)/i,r])}static applyTransform(e,t){const r=e.getCorners();for(let e=0;e<r.length;++e)yd.transformMat4(r[e],r[e],t);return Fd.fromPoints(r)}static projectAabbCorners(e,t){const r=e.getCorners();for(let e=0;e<r.length;++e)yd.transformMat4(r[e],r[e],t);return r}constructor(e,t){this.min=e,this.max=t,this.center=yd.scale([],yd.add([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],r=yd.clone(this.min),i=yd.clone(this.max);for(let e=0;e<t.length;e++)r[e]=t[e]?this.min[e]:this.center[e],i[e]=t[e]?this.center[e]:this.max[e];return i[2]=this.max[2],new Fd(r,i)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){return this.intersectsAabb(e.bounds)?Ld(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?Ld(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,t){return t||this.intersects(e)?Bd(e,this.getCorners()):0}intersectsPreciseFlat(e,t){return t||this.intersectsFlat(e)?Bd(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let t=0;t<3;++t)if(this.min[t]>e.max[t]||e.min[t]>this.max[t])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e.min[t]),this.max[t]=Math.max(this.max[t],e.max[t])}encapsulatePoint(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e[t]),this.max[t]=Math.max(this.max[t],e[t])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}To(Fd,"Aabb");const Nd=oi/Math.PI/2,Ud=64,Vd=[Ud,32,16],Gd=-Nd,qd=Nd,Hd=[new Fd([Gd,Gd,Gd],[qd,qd,qd]),new Fd([Gd,Gd,Gd],[0,0,qd]),new Fd([0,Gd,Gd],[qd,0,qd]),new Fd([Gd,0,Gd],[0,qd,qd]),new Fd([0,0,Gd],[qd,qd,qd])];function Wd(e){return e*Nd/Sp}function Yd(e,t,r,i=!0){const n=yd.scale([],e._camera.position,e.worldSize),s=[t,r,1,1];id.transformMat4(s,s,e.pixelMatrixInverse),id.scale(s,s,1/s[3]);const o=yd.sub([],s,n),a=yd.normalize([],o),l=e.globeMatrix,c=[l[12],l[13],l[14]],u=yd.sub([],c,n),h=yd.length(u),d=yd.normalize([],u),p=e.worldSize/(2*Math.PI),f=yd.dot(d,a),m=Math.asin(p/h);if(m<Math.acos(f)){if(!i)return null;const e=[],t=[];yd.scale(e,a,h/f),yd.normalize(t,yd.sub(t,e,u)),yd.normalize(a,yd.add(a,u,yd.scale(a,t,Math.tan(m)*h)))}const g=[];new Od(n,a).closestPointOnSphere(c,p,g);const y=yd.normalize([],ne(l,0)),v=yd.normalize([],ne(l,1)),_=yd.normalize([],ne(l,2)),b=yd.dot(y,g),x=yd.dot(v,g),w=yd.dot(_,g),E=A(Math.asin(-x/p));let S=A(Math.atan2(b,w));S=e.center.lng+function(e,t){const r=(t-e+180)%360-180;return r<-180?r+360:r}(e.center.lng,S);const T=Mp(S),C=M(kp(E),0,1);return new Up(T,C)}class Qd{constructor(e,t,r){this.a=yd.sub([],e,r),this.b=yd.sub([],t,r),this.center=r;const i=yd.normalize([],this.a),n=yd.normalize([],this.b);this.angle=Math.acos(yd.dot(i,n))}}function Zd(e,t){if(0===e.angle)return null;let r;return r=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),r<0||r>1?null:function(e,t,r,i){const n=Math.sin(r);return e*(Math.sin((1-i)*r)/n)+t*(Math.sin(i*r)/n)}(e.a[t],e.b[t],e.angle,M(r,0,1))+e.center[t]}function Xd(e){if(e.z<=1)return Hd[e.z+2*e.y+e.x];const t=rp(tp(e));return Fd.fromPoints(t)}function Kd(e,t,r){return yd.scale(e,e,1-r),yd.scaleAndAdd(e,e,t,r)}function Jd(e,t){const r=pp(t.zoom);if(0===r)return Xd(e);const i=tp(e),n=rp(i),s=Mp(i.getWest())*t.worldSize,o=Mp(i.getEast())*t.worldSize,a=kp(i.getNorth())*t.worldSize,l=kp(i.get
2South())*t.worldSize,c=[s,a,0],u=[o,a,0],h=[s,l,0],d=[o,l,0],p=hd.invert([],t.globeMatrix);return yd.transformMat4(c,c,p),yd.transformMat4(u,u,p),yd.transformMat4(h,h,p),yd.transformMat4(d,d,p),n[0]=Kd(n[0],h,r),n[1]=Kd(n[1],d,r),n[2]=Kd(n[2],u,r),n[3]=Kd(n[3],c,r),Fd.fromPoints(n)}function $d(e,t,r){for(const i of e)yd.transformMat4(i,i,t),yd.scale(i,i,r)}function ep(e,t,r,i){const n=t/e.worldSize,s=e.globeMatrix;if(r.z<=1){const e=Xd(r).getCorners();return $d(e,s,n),Fd.fromPoints(e)}const o=tp(r,i),a=rp(o);$d(a,s,n);const l=Number.MAX_VALUE,c=[-l,-l,-l],u=[l,l,l];if(o.contains(e.center)){for(const e of a)yd.min(u,u,e),yd.max(c,c,e);c[2]=0;const t=e.point,r=[t.x*n,t.y*n,0];return yd.min(u,u,r),yd.max(c,c,r),new Fd(u,c)}const h=[s[12]*n,s[13]*n,s[14]*n],d=o.getCenter(),p=M(e.center.lat,-Bp,Bp),f=M(d.lat,-Bp,Bp),m=Mp(e.center.lng),g=kp(p);let y=m-Mp(d.lng);const v=g-kp(f);y>.5?y-=1:y<-.5&&(y+=1);let _=0;if(Math.abs(y)>Math.abs(v))_=y>=0?1:3;else{_=v>=0?0:2;const e=[s[4]*n,s[5]*n,s[6]*n],t=-Math.sin(w(v>=0?o.getSouth():o.getNorth()))*Nd;yd.scaleAndAdd(h,h,e,t)}const b=a[_],x=a[(_+1)%4],A=new Qd(b,x,h),E=[Zd(A,0)||b[0],Zd(A,1)||b[1],Zd(A,2)||b[2]],S=pp(e.zoom);if(S>0){const i=function({x:e,y:t,z:r},i,n,s,o){const a=1/(1<<r);let l=e*a,c=l+a,u=t*a,h=u+a,d=0;const p=(l+c)/2-s;return p>.5?d=-1:p<-.5&&(d=1),l=((l+d)*i-(s*=i))*n+s,c=((c+d)*i-s)*n+s,u=(u*i-(o*=i))*n+o,h=(h*i-o)*n+o,[[l,h,0],[c,h,0],[c,u,0],[l,u,0]]}(r,t,e._pixelsPerMercatorPixel,m,g);for(let e=0;e<a.length;e++)Kd(a[e],i[e],S);const n=yd.add([],i[_],i[(_+1)%4]);yd.scale(n,n,.5),Kd(E,n,S)}for(const e of a)yd.min(u,u,e),yd.max(c,c,e);return u[2]=Math.min(b[2],x[2]),yd.min(u,u,E),yd.max(c,c,E),new Fd(u,c)}function tp({x:e,y:t,z:r},i=!1){const n=1/(1<<r),s=new Ip(Rp(e*n),t===(1<<r)-1&&i?-90:Dp((t+1)*n)),o=new Ip(Rp((e+1)*n),0===t&&i?90:Dp(t*n));return new Hc(s,o)}function rp(e){const t=w(e.getNorth()),r=w(e.getSouth()),i=Math.cos(t),n=Math.cos(r),s=Math.sin(t),o=Math.sin(r),a=e.getWest(),l=e.getEast();return[ip(n,o,a),ip(n,o,l),ip(i,s,l),ip(i,s,a)]}function ip(e,t,r,i=Nd){return r=w(r),[e*Math.sin(r)*i,-t*i,e*Math.cos(r)*i]}function np(e,t,r){return ip(Math.cos(w(e)),Math.sin(w(e)),t,r)}function sp(e,t,r,i){const n=1<<r.z,s=(e/oi+r.x)/n;return np(Dp((t/oi+r.y)/n),Rp(s),i)}function op({min:e,max:t}){return 16383/Math.max(t[0]-e[0],t[1]-e[1],t[2]-e[2])}const ap=new Float64Array(16);function lp(e){const t=op(e),r=hd.fromScaling(ap,[t,t,t]);return hd.translate(r,r,yd.negate([],e.min))}function cp(e){const t=hd.fromTranslation(ap,e.min),r=1/op(e);return hd.scale(t,t,[r,r,r])}function up(e){const t=oi/(2*Math.PI);return e/(2*Math.PI)/t}function hp(e,t){return oi/(512*Math.pow(2,e))*op(Xd(t))}function dp(e,t,r,i,n){const s=up(r),o=[e,t,-r/(2*Math.PI)],a=hd.identity(new Float64Array(16));return hd.translate(a,a,o),hd.scale(a,a,[s,s,s]),hd.rotateX(a,a,w(-n)),hd.rotateY(a,a,w(-i)),a}function pp(e){return k(5,6,e)}function fp(e,t,r){const i=hd.identity(new Float64Array(16)),n=(t/(1<<e)-.5)*Math.PI*2;return hd.rotateY(i,r.globeMatrix,n),Float32Array.from(i)}function mp(e,t,r){const i=pp(r.zoom),n=e.style.map._antialias,s=t.extStandardDerivativesForceOff||e.terrain&&e.terrain.exaggeration()>0;return 0===i&&!n&&!s}function gp(e,t,r,i){const n=t.getNorth(),s=t.getSouth(),o=t.getWest(),a=t.getEast(),l=1<<e.z,c=a-o,u=n-s,h=c/Ud,d=-u/Vd[r],p=[0,h,0,d,0,0,n,o,0];if(e.z>0){const e=180/i;cd.multiply(p,p,[e/c+1,0,0,0,e/u+1,0,-.5*e/h,.5*e/d,1])}return p[2]=l,p[5]=e.x,p[8]=e.y,p}function yp(e){const t=Bp-5;e=M(e,-t,t)/t*90;const r=Math.pow(Math.abs(Math.sin(w(e))),3);return Math.round(r*(Vd.length-1))}function vp(e){const t=[0,0,0],r=hd.identity(new Float64Array(16));return hd.multiply(r,e.pixelMatrix,e.globeMatrix),yd.transformMat4(t,t,r),new v(t[0],t[1])}function _p(e,t){const r=np(t.lat,t.lng),i=function(e){const t=np(e._center.lat,e._center.lng),r=yd.fromValues(0,1,0);let i=yd.cross([],r,t);const n=hd.fromRotation([],-e.angle,t);i=yd.transformMat4(i,i,n),hd.fromRotation(n,-e._pitch,i);const s=yd.normalize([],t);return yd.scale(s,s,Wd(e.cameraToCenterDistance/e.pixelsPerMeter)),yd.transformMat4(s,s,n),yd.add([],t,s)}(e),n=yd.subtract([],i,r);return yd.angle(n,r)}function bp(e,t){return _p(e,t)>
vendor: 4,366 bytes, line 2
2Math.PI/2*1.01}const xp=w(85),wp=Math.cos(xp),Ap=Math.sin(xp);class Ep{constructor(e){this._createGrid(e),this._createPoles(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();for(const e of this._gridSegments)e.withSkirts.destroy(),e.withoutSkirts.destroy()}_fillGridMeshWithLods(e,t){const r=new ml,i=new Rl,n=[],s=e+1+2,o=t[0]+1,a=t[0]+1+(1+t.length),l=(e,t,r)=>{let i=e===s-1?e-2:0===e?e:e-1;return i+=r?24575:0,[i,t]};for(let e=0;e<s;++e)r.emplaceBack(...l(e,0,!0));for(let e=0;e<o;++e)for(let t=0;t<s;++t)r.emplaceBack(...l(t,e,(0===t||t===s-1)&&!0));for(let e=0;e<t.length;++e){const i=t[e];for(let e=0;e<s;++e)r.emplaceBack(...l(e,i,!0))}for(let e=0;e<t.length;++e){const o=i.length,l=t[e]+1+2,c=new Rl;for(let r=0;r<l-1;r++){const n=r===l-2,o=n?s*(a-t.length+e-r):s;for(let e=0;e<s-1;e++){const t=r*s+e;0===r||n||0===e||e===s-2?(c.emplaceBack(t+1,t,t+o),c.emplaceBack(t+o,t+o+1,t+1)):(i.emplaceBack(t+1,t,t+o),i.emplaceBack(t+o,t+o+1,t+1))}}const u=nc.simpleSegment(0,o,r.length,i.length-o);for(let e=0;e<c.uint16.length;e+=3)i.emplaceBack(c.uint16[e],c.uint16[e+1],c.uint16[e+2]);const h=nc.simpleSegment(0,o,r.length,i.length-o);n.push({withoutSkirts:u,withSkirts:h})}return{vertices:r,indices:i,segments:n}}_createGrid(e){const t=this._fillGridMeshWithLods(Ud,Vd);this._gridSegments=t.segments,this._gridBuffer=e.createVertexBuffer(t.vertices,Ed.members),this._gridIndexBuffer=e.createIndexBuffer(t.indices,!0)}_createPoles(e){const t=new Rl;for(let e=0;e<=Ud;e++)t.emplaceBack(0,e+1,e+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const r=new zl,i=new zl,n=new zl,s=new zl;this._poleSegments=[];for(let e=0,t=0;e<5;e++){const o=360/(1<<e);r.emplaceBack(0,-Nd,0,.5,0),i.emplaceBack(0,-Nd,0,.5,1),n.emplaceBack(0,-Nd,0,.5,.5),s.emplaceBack(0,-Nd,0,.5,.5);for(let e=0;e<=Ud;e++){let t=e/Ud,a=0;const l=Wi(0,o,t),[c,u,h]=ip(wp,Ap,l,Nd);r.emplaceBack(c,u,h,t,a),i.emplaceBack(c,u,h,t,1-a);const d=w(l);t=.5+.5*Math.sin(d),a=.5+.5*Math.cos(d),n.emplaceBack(c,u,h,t,a),s.emplaceBack(c,u,h,t,1-a)}this._poleSegments.push(nc.simpleSegment(t,0,66,64)),t+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(r,wd,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(i,wd,!1),this._texturedPoleNorthVertexBuffer=e.createVertexBuffer(n,wd,!1),this._texturedPoleSouthVertexBuffer=e.createVertexBuffer(s,wd,!1)}getGridBuffers(e,t){return[this._gridBuffer,this._gridIndexBuffer,t?this._gridSegments[e].withSkirts:this._gridSegments[e].withoutSkirts]}getPoleBuffers(e,t){return[t?this._texturedPoleNorthVertexBuffer:this._poleNorthVertexBuffer,t?this._texturedPoleSouthVertexBuffer:this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}}const Sp=6371008.8,Tp=2*Math.PI*Sp;class Cp{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Cp(O(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,r=this.lat*t,i=e.lat*t,n=Math.sin(r)*Math.sin(i)+Math.cos(r)*Math.cos(i)*Math.cos((e.lng-this.lng)*t);return Sp*Math.acos(Math.min(n,1))}toBounds(e=0){const t=360*e/40075017,r=t/Math.cos(Math.PI/180*this.lat);return new Hc(new Cp(this.lng-r,this.lat-t),new Cp(this.lng+r,this.lat+t))}toEcef(e){const t=Wd(e);return np(this.lat,this.lng,Nd+t)}static convert(e){if(e instanceof Cp)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Cp(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Cp(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}var Ip=Cp;function Pp(e){return Tp*Math.cos(e*Math.PI/180)}function Mp(e){return(180+e)/360}function kp(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Op(e,t){return e/Pp(t)}function Rp(e){return 360*e-180}function Dp(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180)
vendor: 3,104 bytes, line 2
2)-90}function Lp(e,t){return e*Pp(Dp(t))}const Bp=85.051129;function zp(e){return Math.cos(w(M(e,-Bp,Bp)))}function jp(e,t){const r=M(t,0,25.5),i=Math.pow(2,r);return zp(e)*Tp/(512*i)}function Fp(e){return 1/Math.cos(e*Math.PI/180)}function Np(e,t=0){const r=Math.exp(Math.PI*(1-(e.y+t/oi)/(1<<e.z)*2));return 80150034*r/(r*r+1)/oi/(1<<e.z)}class Up{constructor(e,t,r=0){this.x=+e,this.y=+t,this.z=+r}static fromLngLat(e,t=0){const r=Ip.convert(e);return new Up(Mp(r.lng),kp(r.lat),Op(t,r.lat))}toLngLat(){return new Ip(Rp(this.x),Dp(this.y))}toAltitude(){return Lp(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Tp*Fp(Dp(this.y))}}function Vp(e,t,r,i,n,s,o,a,l){const c=(t+i)/2,u=(r+n)/2,h=new v(c,u);a(h),function(e,t,r,i,n,s){const o=r-n,a=i-s;return Math.abs((i-t)*o-(r-e)*a)/Math.hypot(o,a)}(h.x,h.y,s.x,s.y,o.x,o.y)>=l?(Vp(e,t,r,c,u,s,h,a,l),Vp(e,c,u,i,n,h,o,a,l)):e.push(o)}function Gp(e,t,r){let i=e[0],n=i.x,s=i.y;t(i);const o=[i];for(let a=1;a<e.length;a++){const l=e[a],{x:c,y:u}=l;t(l),Vp(o,n,s,c,u,i,l,t,r),n=c,s=u,i=l}return o}function qp(e,t,r,i){if(i(t,r)){const n=t.add(r)._mult(.5);qp(e,t,n,i),qp(e,n,r,i)}else e.push(r)}function Hp(e,t){let r=e[0];const i=[r];for(let n=1;n<e.length;n++){const s=e[n];qp(i,r,s,t),r=s}return i}const Wp=Math.pow(2,14)-1,Yp=-Wp-1;function Qp(e,t){const r=Math.round(e.x*t),i=Math.round(e.y*t);return e.x=M(r,Yp,Wp),e.y=M(i,Yp,Wp),(r<e.x||r>e.x+1||i<e.y||i>e.y+1)&&Q("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function Zp(e,t,r){const i=e.loadGeometry(),n=e.extent,s=oi/n;if(t&&r&&r.projection.isReprojectedInTileSpace){const s=1<<t.z,{scale:o,x:a,y:l,projection:c}=r,u=e=>{const r=Rp((t.x+e.x/n)/s),i=Dp((t.y+e.y/n)/s),u=c.project(r,i);e.x=(u.x*o-a)*n,e.y=(u.y*o-l)*n};for(let t=0;t<i.length;t++)if(1!==e.type)i[t]=Gp(i[t],u,1);else{const e=[];for(const r of i[t])r.x<0||r.x>=n||r.y<0||r.y>=n||(u(r),e.push(r));i[t]=e}}for(const e of i)for(const t of e)Qp(t,s);return i}function Xp(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Zp(e):[]}}function Kp(e,t,r,i,n){e.emplaceBack(2*t+(i+1)/2,2*r+(n+1)/2)}function Jp(e,t,r){const i=16384;e.emplaceBack(t.x,t.y,t.z,r[0]*i,r[1]*i,r[2]*i)}class $p{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ml,this.indexArray=new Rl,this.segments=new nc,this.programConfigurations=new Fc(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,r,i){const n=this.layers[0],s=[];let o=null;"circle"===n.type&&(o=n.layout.get("circle-sort-key"));for(const{feature:t,id:n,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=Xp(t,e);if(!this.layers[0]._featureFilter.filter(new Wa(this.zoom),c,r))continue;const u=o?o.evaluate(c,{},r):void 0,h={id:n,properties:t.properties,type:t.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:Zp(t,r,i),patterns:{},sortKey:u};s.push(h)}o&&s.sort(((e,t)=>
2e.sortKey-t.sortKey));let a=null;"globe"===i.projection.name&&(this.globeExtVertexArray=new Al,a=i.projection);for(const i of s){const{geometry:n,index:s,sourceLayerIndex:o}=i,l=e[s].feature;this.addFeature(i,n,s,t.availableImages,r,a,t.brightness),t.featureIndex.insert(l,n,s,o,this.index)}}update(e,t,r,i,n){const s=0!==Object.keys(e).length;s&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(e,t,s?this.stateDependentLayers:this.layers,r,i,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,rc.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,ic.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,r,i,n,s,o){for(const r of t)for(const t of r){const r=t.x,i=t.y;if(r<0||r>=oi||i<0||i>=oi)continue;if(s){const e=s.projectTilePoint(r,i,n),t=s.upVector(n,r,i),o=this.globeExtVertexArray;Jp(o,e,t),Jp(o,e,t),Jp(o,e,t),Jp(o,e,t)}const o=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),a=o.vertexLength;Kp(this.layoutVertexArray,r,i,-1,-1),Kp(this.layoutVertexArray,r,i,1,-1),Kp(this.layoutVertexArray,r,i,1,1),Kp(this.layoutVertexArray,r,i,-1,1),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),o.vertexLength+=4,o.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{},i,n,o)}}function ef(e,t){for(let r=0;r<e.length;r++)if(uf(t,e[r]))return!0;for(let r=0;r<t.length;r++)if(uf(e,t[r]))return!0;return!!sf(e,t)}function tf(e,t,r){return!!uf(e,t)||!!af(t,e,r)}function rf(e,t){if(1===e.length)return cf(t,e[0]);for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<i.length;t++)if(uf(e,i[t]))return!0}for(let r=0;r<e.length;r++)if(cf(t,e[r]))return!0;for(let r=0;r<t.length;r++)if(sf(e,t[r]))return!0;return!1}function nf(e,t,r){if(e.length>1){if(sf(e,t))return!0;for(let i=0;i<t.length;i++)if(af(t[i],e,r))return!0}for(let i=0;i<e.length;i++)if(af(e[i],t,r))return!0;return!1}function sf(e,t){if(0===e.length||0===t.length)return!1;for(let r=0;r<e.length-1;r++){const i=e[r],n=e[r+1];for(let e=0;e<t.length-1;e++)if(of(i,n,t[e],t[e+1]))return!0}return!1}function of(e,t,r,i){return Z(e,r,i)!==Z(t,r,i)&&Z(e,t,r)!==Z(e,t,i)}function af(e,t,r){const i=r*r;if(1===t.length)return e.distSqr(t[0])<i;for(let r=1;r<t.length;r++)if(lf(e,t[r-1],t[r])<i)return!0;return!1}function lf(e,t,r){const i=t.distSqr(r);if(0===i)return e.distSqr(t);const n=((e.x-t.x)*(r.x-t.x)+(e.y-t.y)*(r.y-t.y))/i;return e.distSqr(n<0?t:n>1?r:r.sub(t)._mult(n)._add(t))}function cf(e,t){let r,i,n,s=!1;for(let o=0;o<e.length;o++){r=e[o];for(let e=0,o=r.length-1;e<r.length;o=e++)i=r[e],n=r[o],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(s=!s)}return s}function uf(e,t){let r=!1;for(let i=0,n=e.length-1;i<e.length;n=i++){const s=e[i],o=e[n];s.y>t.y!=o.y>t.y&&t.x<(o.x-s.x)*(t.y-s.y)/(o.y-s.y)+s.x&&(r=!r)}return r}function hf(e,t,r,i,n){for(const s of e)if(t<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;const s=[new v(t,r),new v(t,n),new v(i,n),new v(i,r)];if(e.length>2)for(const t of s)if(uf(e,t))return!0;for(let t=0;t<e.length-1;t++)if(df(e[t],e[t+1],s))return!0;return!1}function df(e,t,r){const i=r[0],n=r[2];if(e.x<i.x&&t.x<i.x||e.x>n.x&&t.x>n.x||e.y<i.y&&t.y<i.y||e.y>n.y&&t.y>n.y)return!1;const s=Z(e,t,r[0]);return s!==Z(e,t,r[1])||s!==Z(e,t,r[2])||s!==Z(e,t,r[3])}function pf(e,t,r,i,n,s){let o=t.y-e.y,a=e.x-t.x;if(s=s||0){const e=o*o+a*a;if(0===e)return!0;const t=Math.sqrt(e);o/=t,a/=t}return!((r.x-e.x)*o+(r.y-e.y)*a-s<0||(i.x-e.x)*o+(i.y-e.y)*a-s<0||(n.x-e.x)*o+(n.y-e.y)*a-s<0)}function ff(e,t,r,i,n,s,o){return!(pf(e,t,i,n,s,o)||pf(t,r,i,n,s,o)||pf(r,e,i,n,s,o)||pf(i,n,e,t,r,o)||pf(n,s,e,t,r,o)||pf(s,i,e,t,r,o))}function mf(e,t,r){const i=t.paint.get(e).value;return"constant"===i.kind?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function gf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function yf(e,t,r,i,n){if(!t[0]&&!t[1])return e;const s=v.convert(t)._mult(n);"viewport"===r&&s._rotate(-i);const o=[];for(let t=0;t<e.length;t++)o.push(e[t].sub(s));return o}
2function vf(e,t,r,i){const n=v.convert(e)._mult(i);return"viewport"===t&&n._rotate(-r),n}To($p,"CircleBucket",{omit:["layers"]});const _f=new nl({"circle-sort-key":new rl(Pt.layout_circle["circle-sort-key"]),visibility:new tl(Pt.layout_circle.visibility)});var bf={paint:new nl({"circle-radius":new rl(Pt.paint_circle["circle-radius"]),"circle-color":new rl(Pt.paint_circle["circle-color"]),"circle-blur":new rl(Pt.paint_circle["circle-blur"]),"circle-opacity":new rl(Pt.paint_circle["circle-opacity"]),"circle-translate":new tl(Pt.paint_circle["circle-translate"]),"circle-translate-anchor":new tl(Pt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new tl(Pt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new tl(Pt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new rl(Pt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new rl(Pt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new rl(Pt.paint_circle["circle-stroke-opacity"]),"circle-emissive-strength":new tl(Pt.paint_circle["circle-emissive-strength"])}),layout:_f};const xf=hd.create(),wf=(e,t,r,i,n,s)=>{const o=e.transform,a="globe"===o.projection.name;let l;if("map"===s.paint.get("circle-pitch-alignment"))if(a){const e=hp(o.zoom,t.canonical)*o._pixelsPerMercatorPixel;l=Float32Array.from([e,0,0,e])}else l=o.calculatePixelsToTileUnitsMatrix(r);else l=new Float32Array([o.pixelsToGLUnits[0],0,0,o.pixelsToGLUnits[1]]);const c={u_camera_to_center_distance:e.transform.getCameraToCenterDistance(o.projection),u_matrix:e.translatePosMatrix(t.projMatrix,r,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_device_pixel_ratio:ut.devicePixelRatio,u_extrude_scale:l,u_inv_rot_matrix:xf,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0],u_emissive_strength:s.paint.get("circle-emissive-strength")};if(a){c.u_inv_rot_matrix=i,c.u_merc_center=n,c.u_tile_id=[t.canonical.x,t.canonical.y,1<<t.canonical.z],c.u_zoom_transition=pp(o.zoom);const e=n[0]*oi,r=n[1]*oi;c.u_up_dir=o.projection.upVector(new Cd(0,0,0),e,r)}return c},Af=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t};function Ef(e,t,r,i,n,s,o,a,l){if(s&&e.queryGeometry.isAboveHorizon)return!1;s&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,u=r.projection.upVectorScale(c,r.center.lat,r.worldSize).metersToTile;for(const h of t)for(const t of h){const h=t.add(a),d=n&&r.elevation?r.elevation.exaggeration()*n.getElevationAt(h.x,h.y,!0):0,p=r.projection.projectTilePoint(h.x,h.y,c);if(d>0){const e=r.projection.upVector(c,h.x,h.y);p.x+=e[0]*u*d,p.y+=e[1]*u*d,p.z+=e[2]*u*d}const f=s?h:Sf(p.x,p.y,p.z,i),m=s?e.tilespaceRays.map((e=>If(e,d))):e.queryGeometry.screenGeometry,g=id.transformMat4([],[p.x,p.y,p.z,1],i);if(!o&&s?l*=g[3]/r.cameraToCenterDistance:o&&!s&&(l*=r.cameraToCenterDistance/g[3]),s){const e=Dp((t.y/oi+c.y)/(1<<c.z));l/=r.projection.pixelsPerMeter(e,1)/Op(1,e)}if(tf(m,f,l))return!0}return!1}function Sf(e,t,r,i){const n=id.transformMat4([],[e,t,r,1],i);return new v(n[0]/n[3],n[1]/n[3])}const Tf=yd.fromValues(0,0,0),Cf=yd.fromValues(0,0,1);function If(e,t){const r=yd.create();return Tf[2]=t,e.intersectsPlane(Tf,Cf,r),new v(r[0],r[1])}class Pf extends $p{}function Mf(e,{width:t,height:r},i,n){if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*r*i)throw new RangeError("mismatched image size")}else n=new Uint8Array(t*r*i);return e.width=t,e.height=r,e.data=n,e}function kf(e,t,r){const{width:i,height:n}=t;i===e.width&&n===e.height||(Of(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,i),height:Math.min(e.height,n)},r),e.width=i,e.height=n,e.data=t.data)}function Of(e,t,r,i,n,s){if(0===n.width||0===n.height)return t;if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw new RangeError("out of range destination coordinates for image copy");const o=e.data,a=t.data;for(let l=0;l<n.height;l++){const c=((r.y+l)*e.width+r.x)*s,u=((i.y+l)*t.width+i.x)*s;for(let e=0;e<n.width*s;e++)a[u+e]=o[c+e]}return t}To(Pf,"HeatmapBucket",{omit:["layers"]});class Rf{constructor(e,t){Mf(this,e,1,t)}resize(e){kf(this,new Rf(e),1)}clone(){return new Rf({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,r,i,n){Of(e,t,r,i,n,1)}}class Df{constructor(e,t){Mf(this,e,4,t)}resize(e){kf(this,new Df(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new Df({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,r,i,n){Of(e,t,r,i,n,4)}}class Lf{constructor(e,t){this.width=e.width,this.height=e.height,this.data=t instanceof Uint8Array?new Float32Array(t.buffer):t}}To(Rf,"AlphaImage"),To(Df,"RGBAImage");const Bf=new nl({visibility:new tl(Pt.layout_heatmap.visibility)});var zf={paint:new nl({"heatmap-radius":new rl(Pt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new rl(Pt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new tl(Pt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new il(Pt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new tl(Pt.paint_heatmap["heatmap-opacity"])}),layout:Bf};function jf(e){const t={},r=e.resolution||256,i=e.clips?e.clips.length:1,n=e.image||new Df({width:r,height:i}),s=(r,i,s)=>{t[e.evaluationKey]=s;const o=e.expression.evaluate(t);o&&(n.data[r+i+0]=Math.floor(255*o.r/o.a),n.data[r+i+1]=Math.floor(255*o.g/o.a),n.data[r+i+2]=Math.floor(255*o.b/o.a),n.data[r+i+3]=Math.floor(255*o.a))};if(e.clips)for(let t=0,n=0;t<i;++t,n+=4*r)for(let i=0,o=0;i<r;i++,o+=4){const a=i/(r-1),{start:l,end:c}=e.clips[t];s(n,o,l*(1-a)+c*a)}else for(let e=0,t=0;e<r;e++,t+=4)s(0,t,e/(r-1));return n}const Ff=new nl({visibility:new tl(Pt.layout_hillshade.visibility)});var Nf={paint:new nl({"hillshade-illumination-direction":new tl(Pt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new tl(Pt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new tl(Pt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new tl(Pt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new tl(Pt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new tl(Pt.paint_hillshade["hillshade-accent-color"]),"hillshade-emissive-strength":new tl(Pt.paint_hillshade["hillshade-emissive-strength"])}),layout:Ff};const Uf=pl([{name:"a_pos",components:2,type:"Int16"}],4),{members:Vf}=Uf;var Gf={exports:{}};function qf(e,t,r){r=r||2;var i,n,s,o,a,l,c,u=t&&t.length,h=u?t[0]*r:e.length,d=Hf(e,0,h,r,!0),p=[];if(!d||d.next===d.prev)return p;if(u&&(d=function(e,t,r,i){var n,s,o,a=[];for(n=0,s=t.length;n<s;
vendor: 4,232 bytes, line 2
2n++)(o=Hf(e,t[n]*i,n<s-1?t[n+1]*i:e.length,i,!1))===o.next&&(o.steiner=!0),a.push(rm(o));for(a.sort(Jf),n=0;n<a.length;n++)r=$f(a[n],r);return r}(e,t,d,r)),e.length>80*r){i=s=e[0],n=o=e[1];for(var f=r;f<h;f+=r)(a=e[f])<i&&(i=a),(l=e[f+1])<n&&(n=l),a>s&&(s=a),l>o&&(o=l);c=0!==(c=Math.max(s-i,o-n))?32767/c:0}return Yf(d,p,r,i,n,c,0),p}function Hf(e,t,r,i,n){var s,o;if(n===mm(e,t,r,i)>0)for(s=t;s<r;s+=i)o=dm(s,e[s],e[s+1],o);else for(s=r-i;s>=t;s-=i)o=dm(s,e[s],e[s+1],o);return o&&om(o,o.next)&&(pm(o),o=o.next),o}function Wf(e,t){if(!e)return e;t||(t=e);var r,i=e;do{if(r=!1,i.steiner||!om(i,i.next)&&0!==sm(i.prev,i,i.next))i=i.next;else{if(pm(i),(i=t=i.prev)===i.next)break;r=!0}}while(r||i!==t);return t}function Yf(e,t,r,i,n,s,o){if(e){!o&&s&&function(e,t,r,i){var n=e;do{0===n.z&&(n.z=tm(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,function(e){var t,r,i,n,s,o,a,l,c=1;do{for(r=e,e=null,s=null,o=0;r;){for(o++,i=r,a=0,t=0;t<c&&(a++,i=i.nextZ);t++);for(l=c;a>0||l>0&&i;)0!==a&&(0===l||!i||r.z<=i.z)?(n=r,r=r.nextZ,a--):(n=i,i=i.nextZ,l--),s?s.nextZ=n:e=n,n.prevZ=s,s=n;r=i}s.nextZ=null,c*=2}while(o>1)}(n)}(e,i,n,s);for(var a,l,c=e;e.prev!==e.next;)if(a=e.prev,l=e.next,s?Zf(e,i,n,s):Qf(e))t.push(a.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),pm(e),e=l.next,c=l.next;else if((e=l)===c){o?1===o?Yf(e=Xf(Wf(e),t,r),t,r,i,n,s,2):2===o&&Kf(e,t,r,i,n,s):Yf(Wf(e),t,r,i,n,s,1);break}}}function Qf(e){var t=e.prev,r=e,i=e.next;if(sm(t,r,i)>=0)return!1;for(var n=t.x,s=r.x,o=i.x,a=t.y,l=r.y,c=i.y,u=n<s?n<o?n:o:s<o?s:o,h=a<l?a<c?a:c:l<c?l:c,d=n>s?n>o?n:o:s>o?s:o,p=a>l?a>c?a:c:l>c?l:c,f=i.next;f!==t;){if(f.x>=u&&f.x<=d&&f.y>=h&&f.y<=p&&im(n,a,s,l,o,c,f.x,f.y)&&sm(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Zf(e,t,r,i){var n=e.prev,s=e,o=e.next;if(sm(n,s,o)>=0)return!1;for(var a=n.x,l=s.x,c=o.x,u=n.y,h=s.y,d=o.y,p=a<l?a<c?a:c:l<c?l:c,f=u<h?u<d?u:d:h<d?h:d,m=a>l?a>c?a:c:l>c?l:c,g=u>h?u>d?u:d:h>d?h:d,y=tm(p,f,t,r,i),v=tm(m,g,t,r,i),_=e.prevZ,b=e.nextZ;_&&_.z>=y&&b&&b.z<=v;){if(_.x>=p&&_.x<=m&&_.y>=f&&_.y<=g&&_!==n&&_!==o&&im(a,u,l,h,c,d,_.x,_.y)&&sm(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==n&&b!==o&&im(a,u,l,h,c,d,b.x,b.y)&&sm(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;_&&_.z>=y;){if(_.x>=p&&_.x<=m&&_.y>=f&&_.y<=g&&_!==n&&_!==o&&im(a,u,l,h,c,d,_.x,_.y)&&sm(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==n&&b!==o&&im(a,u,l,h,c,d,b.x,b.y)&&sm(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Xf(e,t,r){var i=e;do{var n=i.prev,s=i.next.next;!om(n,s)&&am(n,i,i.next,s)&&um(n,s)&&um(s,n)&&(t.push(n.i/r|0),t.push(i.i/r|0),t.push(s.i/r|0),pm(i),pm(i.next),i=e=s),i=i.next}while(i!==e);return Wf(i)}function Kf(e,t,r,i,n,s){var o=e;do{for(var a=o.next.next;a!==o.prev;){if(o.i!==a.i&&nm(o,a)){var l=hm(o,a);return o=Wf(o,o.next),l=Wf(l,l.next),Yf(o,t,r,i,n,s,0),void Yf(l,t,r,i,n,s,0)}a=a.next}o=o.next}while(o!==e)}function Jf(e,t){return e.x-t.x}function $f(e,t){var r=function(e,t){var r,i=t,n=e.x,s=e.y,o=-1/0;do{if(s<=i.y&&s>=i.next.y&&i.next.y!==i.y){var a=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(a<=n&&a>o&&(o=a,r=i.x<i.next.x?i:i.next,a===n))return r}i=i.next}while(i!==t);if(!r)return null;var l,c=r,u=r.x,h=r.y,d=1/0;i=r;do{n>=i.x&&i.x>=u&&n!==i.x&&im(s<h?n:o,s,u,h,s<h?o:n,s,i.x,i.y)&&(l=Math.abs(s-i.y)/(n-i.x),um(i,e)&&(l<d||l===d&&(i.x>r.x||i.x===r.x&&em(r,i)))&&(r=i,d=l)),i=i.next}while(i!==c);return r}(e,t);if(!r)return t;var i=hm(r,e);return Wf(i,i.next),Wf(r,r.next)}function em(e,t){return sm(e.prev,e,t.prev)<0&&sm(t.next,e,e.next)<0}function tm(e,t,r,i,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function rm(e){var t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function im(e,t,r,i,n,s,o,a){return(n-o)*(t-a)>=(e-o)*(s-a)&&(e-o)*(i-a)>=(r-o)*(t-a)&&(r-o)*(s-a)>=(n-o)*(i-a)}function nm(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&am(r,r.next,e,t))return!0;r=r.next}
vendor: 67,094 bytes, line 2
2while(r!==e);return!1}(e,t)&&(um(e,t)&&um(t,e)&&function(e,t){var r=e,i=!1,n=(e.x+t.x)/2,s=(e.y+t.y)/2;do{r.y>s!=r.next.y>s&&r.next.y!==r.y&&n<(r.next.x-r.x)*(s-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next}while(r!==e);return i}(e,t)&&(sm(e.prev,e,t.prev)||sm(e,t.prev,t))||om(e,t)&&sm(e.prev,e,e.next)>0&&sm(t.prev,t,t.next)>0)}function sm(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function om(e,t){return e.x===t.x&&e.y===t.y}function am(e,t,r,i){var n=cm(sm(e,t,r)),s=cm(sm(e,t,i)),o=cm(sm(r,i,e)),a=cm(sm(r,i,t));return n!==s&&o!==a||!(0!==n||!lm(e,r,t))||!(0!==s||!lm(e,i,t))||!(0!==o||!lm(r,e,i))||!(0!==a||!lm(r,t,i))}function lm(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function cm(e){return e>0?1:e<0?-1:0}function um(e,t){return sm(e.prev,e,e.next)<0?sm(e,t,e.next)>=0&&sm(e,e.prev,t)>=0:sm(e,t,e.prev)<0||sm(e,e.next,t)<0}function hm(e,t){var r=new fm(e.i,e.x,e.y),i=new fm(t.i,t.x,t.y),n=e.next,s=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,s.next=i,i.prev=s,i}function dm(e,t,r,i){var n=new fm(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function pm(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function fm(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function mm(e,t,r,i){for(var n=0,s=t,o=r-i;s<r;s+=i)n+=(e[o]-e[s])*(e[s+1]+e[o+1]),o=s;return n}Gf.exports=qf,Gf.exports.default=qf,qf.deviation=function(e,t,r,i){var n=t&&t.length,s=Math.abs(mm(e,0,n?t[0]*r:e.length,r));if(n)for(var o=0,a=t.length;o<a;o++)s-=Math.abs(mm(e,t[o]*r,o<a-1?t[o+1]*r:e.length,r));var l=0;for(o=0;o<i.length;o+=3){var c=i[o]*r,u=i[o+1]*r,h=i[o+2]*r;l+=Math.abs((e[c]-e[h])*(e[u+1]-e[c+1])-(e[c]-e[u])*(e[h+1]-e[c+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},qf.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},i=0,n=0;n<e.length;n++){for(var s=0;s<e[n].length;s++)for(var o=0;o<t;o++)r.vertices.push(e[n][s][o]);n>0&&r.holes.push(i+=e[n-1].length)}return r};var gm=d(Gf.exports);function ym(e,t){const r=e.length;if(r<=1)return[e];const i=[];let n,s;for(let t=0;t<r;t++){const r=X(e[t]);0!==r&&(e[t].area=Math.abs(r),void 0===s&&(s=r<0),s===r<0?(n&&i.push(n),n=[e[t]]):n.push(e[t]))}if(n&&i.push(n),t>1)for(let e=0;e<i.length;e++)i[e].length<=t||(Lr(i[e],t,1,i[e].length-1,vm),i[e]=i[e].slice(0,t));return i}function vm(e,t){return t.area-e.area}function _m(e,t,r){const i=r.patternDependencies;let n=!1;for(const r of t){const t=r.paint.get(`${e}-pattern`);t.isConstant()||(n=!0);const s=t.constantOr(null);s&&(n=!0,i[s]=!0)}return n}function bm(e,t,r,i,n){const s=n.patternDependencies;for(const o of t){const t=o.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:i},r,{},n.availableImages);e=e&&e.name?e.name:e,s[e]=!0,r.patterns[o.id]=e}}return r}class xm{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ml,this.indexArray=new Rl,this.indexArray2=new Cl,this.programConfigurations=new Fc(e.layers,e.zoom),this.segments=new nc,this.segments2=new nc,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.projection=e.projection}populate(e,t,r,i){this.hasPattern=_m("fill",this.layers,t);const n=this.layers[0].layout.get("fill-sort-key"),s=[];for(const{feature:o,id:a,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,u=Xp(o,e);if(!this.layers[0]._featureFilter.filter(new Wa(this.zoom),u,r))continue;const h=n?n.evaluate(u,{},r,t.availableImages):void 0,d={id:a,properties:o.properties,type:o.type,sourceLayerIndex:c,index:l,geometry:e?u.geometry:Zp(o,r,i),patterns:{},sortKey:h};s.push(d)}n&&s.sort(((e,t)=>e.sortKey-t.sortKey));for(const i of s){const{geometry:n,index:s,sourceLayerIndex:o}=i;if(this.hasPattern){const e=bm("fill",this.layers,i,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(i,n,s,r,{},t.availableImages,t.brightness);t.featureIndex.insert(e[s].feature,n,s,o,this.index)}}update(e,t,r,i,n){const s=0!==Object.keys(e).length;s&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(e,t,s?this.stateDependentLayers:this.layers,r,i,n)}addFeatures(e,t,r,i,n,s){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,r,i,s)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Vf),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,n,s=[],o){for(const e of ym(t,500)){let t=0;for(const r of e)t+=r.length;const r=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),i=r.vertexLength,n=[],s=[];for(const t of e){if(0===t.length)continue;t!==e[0]&&s.push(n.length/2);const r=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),i=r.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(i+t.length-1,i),n.push(t[0].x),n.push(t[0].y);for(let e=1;e<t.length;e++)this.layoutVertexArray.emplaceBack(t[e].x,t[e].y),this.indexArray2.emplaceBack(i+e-1,i+e),n.push(t[e].x),n.push(t[e].y);r.vertexLength+=t.length,r.primitiveLength+=t.length}const o=gm(n,s);for(let e=0;e<o.length;e+=3)this.indexArray.emplaceBack(i+o[e],i+o[e+1],i+o[e+2]);r.vertexLength+=t,r.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,n,s,i,o)}}To(xm,"FillBucket",{omit:["layers","patternFeatures"]});const wm=new nl({"fill-sort-key":new rl(Pt.layout_fill["fill-sort-key"]),visibility:new tl(Pt.layout_fill.visibility)});var Am={paint:new nl({"fill-antialias":new tl(Pt.paint_fill["fill-antialias"]),"fill-opacity":new rl(Pt.paint_fill["fill-opacity"]),"fill-color":new rl(Pt.paint_fill["fill-color"]),"fill-outline-color":new rl(Pt.paint_fill["fill-outline-color"]),"fill-translate":new tl(Pt.paint_fill["fill-translate"]),"fill-translate-anchor":new tl(Pt.paint_fill["fill-translate-anchor"]),"fill-pattern":new rl(Pt.paint_fill["fill-pattern"]),"fill-emissive-strength":new tl(Pt.paint_fill["fill-emissive-strength"])}),layout:wm};const Em=pl([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),Sm=pl([{name:"a_pos_end",components:4,type:"Int16"},{name:"a_angular_offset_factor",components:1,type:"Int16"}]),Tm=pl([{name:"a_centroid_pos",components:2,type:"Uint16"}]),Cm=pl([{name:"a_hidden_by_landmark",components:1,type:"Uint8"}]),Im=pl([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:Pm}=Em;var Mm={},km=g,Om=Rm;function Rm(e,t,r,i,n){this.properties={},this.extent=r,this.type=0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=n,e.readFields(Dm,this,t)}function Dm(e,t,r){1==e?t.id=r.readVarint():2==e?function(e,t){for(var r=e.readVarint()+e.pos;e.pos<r;){var i=t._keys[e.readVarint()],n=t._values[e.readVarint()];t.properties[i]=n}}(r,t):3==e?t.type=r.readVarint():4==e&&(t._geometry=r.pos)}function Lm(e){for(var t,r,i=0,n=0,s=e.length,o=s-1;n<s;o=n++)i+=((r=e[o]).x-(t=e[n]).x)*(t.y+r.y);return i}Rm.types=["Unknown","Point","LineString","Polygon"],Rm.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,r=e.readVarint()+e.pos,i=1,n=0,s=0,o=0,a=[];e.pos<r;){if(n<=0){var l=e.readVarint();i=7&l,n=l>>3}if(n--,1===i||2===i)s+=e.readSVarint(),o+=e.readSVarint(),1===i&&(t&&a.push(t),t=[]),t.push(new km(s,o));else{if(7!==i)throw new Error("unknown command "+i);t&&t.push(t[0].clone())}}return t&&a.push(t),a},Rm.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,r=1,i=0,n=0,s=0,o=1/0,a=-1/0,l=1/0,c=-1/0;e.pos<t;){if(i<=0){var u=e.readVarint();r=7&u,i=u>>3}if(i--,1===r||2===r)(n+=e.readSVarint())<o&&(o=n),n>a&&(a=n),(s+=e.readSVarint())<l&&(l=s),s>c&&(c=s);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,a,c]},Rm.prototype.toGeoJSON=function(e,t,r){var i,n,s=this.extent*Math.pow(2,r),o=this.extent*e,a=this.extent*t,l=this.loadGeometry(),c=Rm.types[this.type];function u(e){for(var t=0;t<e.length;t++){var r=e[t];e[t]=[360*(r.x+o)/s-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+a)/s)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(i=0;i<l.length;i++)h[i]=l[i][0];u(l=h);break;case 2:for(i=0;i<l.length;i++)u(l[i]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var r,i,n=[],s=0;s<t;s++){var o=Lm(e[s]);0!==o&&(void 0===i&&(i=o<0),i===o<0?(r&&n.push(r),r=[e[s]]):r.push(e[s]))}return r&&n.push(r),n}(l),i=0;i<l.length;i++)for(n=0;n<l[i].length;n++)u(l[i][n])}1===l.length?l=l[0]:c="Multi"+c;var d={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(d.id=this.id),d};var Bm=Om,zm=jm;function jm(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(Fm,this,t),this.length=this._features.length}function Fm(e,t,r){15===e?t.version=r.readVarint():1===e?t.name=r.readString():5===e?t.extent=r.readVarint():2===e?t._features.push(r.pos):3===e?t._keys.push(r.readString()):4===e&&t._values.push(function(e){for(var t=null,r=e.readVarint()+e.pos;e.pos<r;){var i=e.readVarint()>>3;t=1===i?e.readString():2===i?e.readFloat():3===i?e.readDouble():4===i?e.readVarint64():5===i?e.readVarint():6===i?e.readSVarint():7===i?e.readBoolean():null}return t}(r))}jm.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Bm(this._pbf,t,this.extent,this._keys,this._values)};var Nm=zm;function Um(e,t,r){if(3===e){var i=new Nm(r,r.readVarint()+r.pos);i.length&&(t[i.name]=i)}}var Vm=Mm.VectorTile=function(e,t){this.layers=e.readFields(Um,{},t)},Gm=Mm.VectorTileFeature=Om;function qm(e,t,r,i){const n=[],s=0===i?(e,t,r,i,n,s)=>{e.push(new v(s,r+(s-t)/(i-t)*(n-r)))}:(e,t,r,i,n,s)=>{e.push(new v(t+(s-r)/(n-r)*(i-t),s))};for(const o of e){const e=[];for(const n of o){if(n.length<=2)continue;const o=[];for(let e=0;e<n.length-1;e++){const a=n[e].x,l=n[e].y,c=n[e+1].x,u=n[e+1].y,h=0===i?a:l,d=0===i?c:u;h<t?d>t&&s(o,a,l,c,u,t):h>r?d<r&&s(o,a,l,c,u,r):o.push(n[e]),d<t&&h>=t&&s(o,a,l,c,u,t),d>r&&h<=r&&s(o,a,l,c,u,r)}let a=n[n.length-1];const l=0===i?a.x:a.y;l>=t&&l<=r&&o.push(a),o.length&&(a=o[o.length-1],o[0].x===a.x&&o[0].y===a.y||o.push(o[0]),e.push(o))}e.length&&n.push(e)}return n}Mm.VectorTileLayer=zm;class Hm{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const r=e[t];this._stringToNumber[r]=t,this._numberToString[t]=r}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}var Wm={read:function(e,t,r,i,n){var s,o,a=8*n-i-1,l=(1<<a)-1,c=l>>1,u=-7,h=r?n-1:0,d=r?-1:1,p=e[t+h];for(h+=d,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+e[t+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=i;u>0;o=256*o+e[t+h],h+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),s-=c}return(p?-1:1)*o*Math.pow(2,s-i)},write:function(e,t,r,i,n,s){var o,a,l,c=8*s-n-1,u=(1<<c)-1,h=u>>1,d=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:s-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(t*l-1)*Math.pow(2,n),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,n),o=0));n>=8;e[r+p]=255&a,p+=f,a/=256,n-=8);for(o=o<<n|a,c+=n;c>0;e[r+p]=255&o,p+=f,o/=256,c-=8);e[r+p-f]|=128*m}},Ym=Zm,Qm=Wm;function Zm(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Zm.Varint=0,Zm.Fixed64=1,Zm.Bytes=2,Zm.Fixed32=5;var Xm=4294967296,Km=1/Xm,Jm="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function $m(e){return e.type===Zm.Bytes?e.readVarint()+e.pos:e.pos+1}function eg(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function tg(e,t,r){var i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));r.realloc(i);for(var n=r.pos-1;n>=e;n--)r.buf[n+i]=r.buf[n]}function rg(e,t){for(var r=0;r<e.length;r++)t.writeVarint(e[r])}function ig(e,t){for(var r=0;r<e.length;r++)t.writeSVarint(e[r])}function ng(e,t){for(var r=0;r<e.length;r++)t.writeFloat(e[r])}function sg(e,t){for(var r=0;r<e.length;r++)t.writeDouble(e[r])}function og(e,t){for(var r=0;r<e.length;r++)t.writeBoolean(e[r])}function ag(e,t){for(var r=0;r<e.length;r++)t.writeFixed32(e[r])}function lg(e,t){for(var r=0;r<e.length;r++)t.writeSFixed32(e[r])}function cg(e,t){for(var r=0;r<e.length;r++)t.writeFixed64(e[r])}function ug(e,t){for(var r=0;r<e.length;r++)t.writeSFixed64(e[r])}function hg(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function dg(e,t,r){e[r]=t,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24}function pg(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}Zm.prototype={destroy:function(){this.buf=null},readFields:function(e,t,r){for(r=r||this.length;this.pos<r;){var i=this.readVarint(),n=i>>3,s=this.pos;this.type=7&i,e(n,t,this),this.pos===s&&this.skip(i)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=hg(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=pg(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=hg(this.buf,this.pos)+hg(this.buf,this.pos+4)*Xm;return this.pos+=8,e},readSFixed64:function(){var e=hg(this.buf,this.pos)+pg(this.buf,this.pos+4)*Xm;return this.pos+=8,e},readFloat:function(){var e=Qm.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Qm.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,r,i=this.buf;return t=127&(r=i[this.pos++]),r<128?t:(t|=(127&(r=i[this.pos++]))<<7,r<128?t:(t|=(127&(r=i[this.pos++]))<<14,r<128?t:(t|=(127&(r=i[this.pos++]))<<21,r<128?t:function(e,t,r){var i,n,s=r.buf;if(i=(112&(n=s[r.pos++]))>>4,n<128)return eg(e,i,t);if(i|=(127&(n=s[r.pos++]))<<3,n<128)return eg(e,i,t);if(i|=(127&(n=s[r.pos++]))<<10,n<128)return eg(e,i,t);if(i|=(127&(n=s[r.pos++]))<<17,n<128)return eg(e,i,t);if(i|=(127&(n=s[r.pos++]))<<24,n<128)return eg(e,i,t);if(i|=(1&(n=s[r.pos++]))<<31,n<128)return eg(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(r=i[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Jm?function(e,t,r){return Jm.decode(e.subarray(t,r))}(this.buf,t,e):function(e,t,r){for(var i="",n=t;n<r;){var s,o,a,l=e[n],c=null,u=l>239?4:l>223?3:l>191?2:1;if(n+u>r)break;1===u?l<128&&(c=l):2===u?128==(192&(s=e[n+1]))&&(c=(31&l)<<6|63&s)<=127&&(c=null):3===u?(o=e[n+2],128==(192&(s=e[n+1]))&&128==(192&o)&&((c=(15&l)<<12|(63&s)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(o=e[n+2],a=e[n+3],128==(192&(s=e[n+1]))&&128==(192&o)&&128==(192&a)&&((c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,i+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),i+=String.fromCharCode(c),n+=u}return i}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==Zm.Bytes)return e.push(this.readVarint(t));var r=$m(this);for(e=e||[];this.pos<r;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==Zm.Bytes)return e.push(this.readSVarint());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==Zm.Bytes)return e.push(this.readBoolean());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==Zm.Bytes)return e.push(this.readFloat());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==Zm.Bytes)return e.push(this.readDouble());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==Zm.Bytes)return e.push(this.readFixed32());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==Zm.Bytes)return e.push(this.readSFixed32());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==Zm.Bytes)return e.push(this.readFixed64());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==Zm.Bytes)return e.push(this.readSFixed64());var t=$m(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===Zm.Varint)for(;this.buf[this.pos++]>127;);else if(t===Zm.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Zm.Fixed32)this.pos+=4;else{if(t!==Zm.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),dg(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),dg(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),dg(this.buf,-1&e,this.pos),dg(this.buf,Math.floor(e*Km),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),dg(this.buf,-1&e,this.pos),dg(this.buf,Math.floor(e*Km),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var r,i;if(e>=0?(r=e%4294967296|0,i=e/4294967296|0):(i=~(-e/4294967296),4294967295^(r=~(-e%4294967296))?r=r+1|0:(r=0,i=i+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,r.buf[r.pos]=127&(e>>>=7)}(r,0,t),function(e,t){var r=(7&e)<<4;t.buf[t.pos++]|=r|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(i,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,r){for(var i,n,s=0;s<t.length;s++){if((i=t.charCodeAt(s))>55295&&i<57344){if(!n){i>56319||s+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):n=i;continue}if(i<56320){e[r++]=239,e[r++]=191,e[r++]=189,n=i;continue}i=n-55296<<10|i-56320|65536,n=null}else n&&(e[r++]=239,e[r++]=191,e[r++]=189,n=null);i<128?e[r++]=i:(i<2048?e[r++]=i>>6|192:(i<65536?e[r++]=i>>12|224:(e[r++]=i>>18|240,e[r++]=i>>12&63|128),e[r++]=i>>6&63|128),e[r++]=63&i|128)}return r}(this.buf,e,this.pos);var r=this.pos-t;r>=128&&tg(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeFloat:function(e){this.realloc(4),Qm.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Qm.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var r=0;r<t;r++)this.buf[this.pos++]=e[r]},writeRawMessage:function(e,t){this.pos++;var r=this.pos;e(t,this);var i=this.pos-r;i>=128&&tg(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i},writeMessage:function(e,t,r){this.writeTag(e,Zm.Bytes),this.writeRawMessage(t,r)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,rg,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,ig,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,og,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,ng,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,sg,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,ag,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,lg,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,cg,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,ug,t)},writeBytesField:function(e,t){this.writeTag(e,Zm.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Zm.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Zm.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Zm.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Zm.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Zm.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Zm.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Zm.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Zm.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Zm.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var fg=d(Ym);const mg=["tile","layer","source","sourceLayer","state"];class gg{constructor(e,t,r,i,n){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=r,this._y=i,this.properties=e.properties,this.id=n}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};void 0!==this.id&&(e.id=this.id);for(const t of mg)void 0!==this[t]&&(e[t]=this[t]);return e}}class yg{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,r){const i=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][i]=this.stateChanges[e][i]||{},L(this.stateChanges[e][i],r),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==i&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][i]){this.deletedStates[e][i]={};for(const t in this.state[e][i])r[t]||(this.deletedStates[e][i][t]=null)}else for(const t in r)this.deletedStates[e]&&this.deletedStates[e][i]&&null===this.deletedStates[e][i][t]&&delete this.deletedStates[e][i][t]}removeFeatureState(e,t,r){if(null===this.deletedStates[e])return;const i=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},r&&void 0!==t)null!==this.deletedStates[e][i]&&(this.deletedStates[e][i]=this.deletedStates[e][i]||{},this.deletedStates[e][i][r]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][i])for(r in this.deletedStates[e][i]={},this.stateChanges[e][i])this.deletedStates[e][i][r]=null;else this.deletedStates[e][i]=null;else this.deletedStates[e]=null}getState(e,t){const r=String(t),i=L({},(this.state[e]||{})[r],(this.stateChanges[e]||{})[r]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const r=this.deletedStates[e][t];if(null===r)return{};for(const e in r)delete i[e]}return i}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const r={};for(const e in this.stateChanges){this.state[e]=this.state[e]||{};const t={};for(const r in this.stateChanges[e])this.state[e][r]||(this.state[e][r]={}),L(this.state[e][r],this.stateChanges[e][r]),t[r]=this.state[e][r];r[e]=t}for(const e in this.deletedStates){this.state[e]=this.state[e]||{};const t={};if(null===this.deletedStates[e])for(const r in this.state[e])t[r]={},this.state[e][r]={};else for(const r in this.deletedStates[e]){if(null===this.deletedStates[e][r])this.state[e][r]={};else if(this.state[e][r])for(const t of Object.keys(this.deletedStates[e][r]))delete this.state[e][r][t];t[r]=this.state[e][r]}r[e]=r[e]||{},L(r[e],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(const i in e)e[i].setFeatureState(r,t)}}class vg{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const r=this.toIdx(e,t);return{min:this.minimums[r],max:this.maximums[r]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function _g(e,t,r,i){let n=0,s=Number.MAX_VALUE;for(let o=0;o<3;o++)if(Math.abs(i[o])<1e-15){if(r[o]<e[o]||r[o]>t[o])return null}else{const a=1/i[o];let l=(e[o]-r[o])*a,c=(t[o]-r[o])*a;if(l>c){const e=l;l=c,c=e}if(l>n&&(n=l),c<s&&(s=c),n>s)return null}return n}function bg(e,t,r,i,n,s,o,a,l,c,u){const h=i-e,d=n-t,p=s-r,f=o-e,m=a-t,g=l-r,y=u[1]*g-u[2]*m,v=u[2]*f-u[0]*g,_=u[0]*m-u[1]*f,b=h*y+d*v+p*_;if(Math.abs(b)<1e-15)return null;const x=1/b,w=c[0]-e,A=c[1]-t,E=c[2]-r,S=(w*y+A*v+E*_)*x;if(S<0||S>1)return null;const T=A*p-E*d,C=E*h-w*p,I=w*d-A*h,P=(u[0]*T+u[1]*C+u[2]*I)*x;return P<0||S+P>1?null:(f*T+m*C+g*I)*x}function xg(e,t,r){return(e-t)/(r-t)}function wg(e,t,r,i,n,s,o,a,l){const c=1<<r,u=s-i,h=o-n,d=(e+1)/c*u+i,p=(t+0)/c*h+n,f=(t+1)/c*h+n;a[0]=(e+0)/c*u+i,a[1]=p,l[0]=d,l[1]=f}class Ag{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),r=[];let i=Math.ceil(Math.pow(2,t));const n=1/i,s=(e,t,r,i,n)=>{const s=i?1:0,o=(e+1)*r-s,a=t*r,l=(t+1)*r-s;n[0]=e*r,n[1]=a,n[2]=o,n[3]=l};let o=new vg(i);const a=[];for(let t=0;t<i*i;t++){s(t%i,Math.floor(t/i),n,!1,a);const r=Sg(a[0],a[1],e),l=Sg(a[2],a[1],e),c=Sg(a[2],a[3],e),u=Sg(a[0],a[3],e);o.minimums.push(Math.min(r,l,c,u)),o.maximums.push(Math.max(r,l,c,u)),o.leaves.push(1)}for(r.push(o),i/=2;i>=1;i/=2){const e=r[r.length-1];o=new vg(i);for(let t=0;t<i*i;t++){s(t%i,Math.floor(t/i),2,!0,a);const r=e.getElevation(a[0],a[1]),n=e.getElevation(a[2],a[1]),l=e.getElevation(a[2],a[3]),c=e.getElevation(a[0],a[3]),u=e.isLeaf(a[0],a[1]),h=e.isLeaf(a[2],a[1]),d=e.isLeaf(a[2],a[3]),p=e.isLeaf(a[0],a[3]),f=Math.min(r.min,n.min,l.min,c.min),m=Math.max(r.max,n.max,l.max,c.max),g=u&&h&&d&&p;o.maximums.push(m),o.minimums.push(f),o.leaves.push(m-f<=5&&g?1:0)}r.push(o)}return r}(this.dem),r=t.length-1,i=t[r];this._addNode(i.minimums[0],i.maximums[0],i.leaves[0]),this._construct(t,0,0,r,0)}raycastRoot(e,t,r,i,n,s,o=1){return _g([e,t,-100],[r,i,this.maximums[0]*o],n,s)}raycast(e,t,r,i,n,s,o=1){if(!this.nodeCount)return null;const a=this.raycastRoot(e,t,r,i,n,s,o);if(null==a)return null;const l=[],c=[],u=[],h=[],d=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;d.length>0;){const{idx:a,t:p,nodex:f,nodey:m,depth:g}=d.pop();if(this.leaves[a]){wg(f,m,g,e,t,r,i,u,h);const a=1<<g,l=(f+0)/a,c=(f+1)/a,d=(m+0)/a,y=(m+1)/a,v=Sg(l,d,this.dem)*o,_=Sg(c,d,this.dem)*o,b=Sg(c,y,this.dem)*o,x=Sg(l,y,this.dem)*o,w=bg(u[0],u[1],v,h[0],u[1],_,h[0],h[1],b,n,s),A=bg(h[0],h[1],b,u[0],h[1],x,u[0],u[1],v,n,s),E=Math.min(null!==w?w:Number.MAX_VALUE,null!==A?A:Number.MAX_VALUE);if(E!==Number.MAX_VALUE)return E;{const e=yd.scaleAndAdd([],n,s,p);if(Eg(v,_,x,b,xg(e[0],u[0],h[0]),xg(e[1],u[1],h[1]))>=e[2])return p}continue}let y=0;for(let d=0;d<this._siblingOffset.length;d++){wg((f<<1)+this._siblingOffset[d][0],(m<<1)+this._siblingOffset[d][1],g+1,e,t,r,i,u,h),u[2]=-100,h[2]=this.maximums[this.childOffsets[a]+d]*o;const p=_g(u,h,n,s);if(null!=p){const e=p;l[d]=e;let t=!1;for(let r=0;r<y&&!t;r++)e>=l[c[r]]&&(c.splice(r,0,d),t=!0);t||(c[y]=d),y++}}for(let e=0;e<y;e++){const t=c[e];d.push({idx:this.childOffsets[a]+t,t:l[t],nodex:(f<<1)+this._siblingOffset[t][0],nodey:(m<<1)+this._siblingOffset[t][1],depth:g+1})}}return null}_addNode(e,t,r){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(r),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,r,i,n){if(1===e[i].isLeaf(t,r))return;this.childOffsets[n]||(this.childOffsets[n]=this.nodeCount);const s=i-1,o=e[s];let a=0,l=0;for(let e=0;e<this._siblingOffset.length;e++){const i=2*t+this._siblingOffset[e][0],n=2*r+this._siblingOffset[e][1],s=o.getElevation(i,n),c=o.isLeaf(i,n),u=this._addNode(s.min,s.max,c);c&&(a|=1<<e),l||(l=u)}for(let i=0;i<this._siblingOffset.length;i++)a&1<<i||this._construct(e,2*t+this._siblingOffset[i][0],2*r+this._siblingOffset[i][1],s,l+i)}}function Eg(e,t,r,i,n,s){return Wi(Wi(e,r,s),Wi(t,i,s),n)}function Sg(e,t,r){const i=r.dim,n=M(e*i-.5,0,i-1),s=M(t*i-.5,0,i-1),o=Math.floor(n),a=Math.floor(s),l=Math.min(o+1,i-1),c=Math.min(a+1,i-1);return Eg(r.get(o,a),r.get(l,a),r.get(o,c),r.get(l,c),n-o,s-a)}const Tg={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768],float:[1,1,1,1]};function Cg(e,t,r){return(256*e*256+256*t+r)/10-1e4}function Ig(e,t,r){return 256*e+t+r/256-32768}class Pg{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,r,i,n=!1){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(r&&"mapbox"!==r&&"terrarium"!==r)return Q(`"${r}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const s=this.dim=t.height-2,o=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.encoding=r||"mapbox",this.borderReady=n,this._modifiedForSources={},!n){for(let e=0;e<s;e++)o[this._idx(-1,e)]=o[this._idx(0,e)],o[this._idx(s,e)]=o[this._idx(s-1,e)],o[this._idx(e,-1)]=o[this._idx(e,0)],o[this._idx(e,s)]=o[this._idx(e,s-1)];o[this._idx(-1,-1)]=o[this._idx(0,0)],o[this._idx(s,-1)]=o[this._idx(s-1,0)],o[this._idx(-1,s)]=o[this._idx(0,s-1)],o[this._idx(s,s)]=o[this._idx(s-1,s-1)]}if(i){const e=new Float32Array(t.data.buffer),r="terrarium"===this.encoding?Ig:Cg;for(let t=0;t<o.length;++t){const i=4*t;e[t]=r(this.pixels[i],this.pixels[i+1],this.pixels[i+2])}this.encoding="float"}this._timestamp=ut.now()}_buildQuadTree(){this._tree=new Ag(this)}get(e,t,r=!1){r&&(e=M(e,-1,this.dim),t=M(t,-1,this.dim));const i=this._idx(e,t);if("float"===this.encoding)return this.floatView||(this.floatView=new Float32Array(this.pixels.buffer)),this.floatView[i];const n=4*i;return("terrarium"===this.encoding?Ig:Cg)(this.pixels[n],this.pixels[n+1],this.pixels[n+2])}set(e,t,r){const i=this._idx(e,t);if("float"===this.encoding){this.floatView||(this.floatView=new Float32Array(this.pixels.buffer));const e=this.floatView[i];return this.floatView[i]=r,r-e}const n=4*i,s=("terrarium"===this.encoding?Ig:Cg)(this.pixels[n],this.pixels[n+1],this.pixels[n+2]),o=Pg.pack(r,"terrarium"===this.encoding?"terrarium":"mapbox");return this.pixels[n]=o[0],this.pixels[n+1]=o[1],this.pixels[n+2]=o[2],r-s}static getUnpackVector(e){return Tg[e]}get unpackVector(){return Tg[this.encoding]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}static pack(e,t){const r=[0,0,0,0],i=Pg.getUnpackVector(t);let n=Math.floor((e+i[3])/i[2]);return r[2]=n%256,n=Math.floor(n/256),r[1]=n%256,n=Math.floor(n/256),r[0]=n,r}getPixels(){return"float"===this.encoding?new Lf({width:this.stride,height:this.stride},this.pixels):new Df({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,r){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let i=t*this.dim,n=t*this.dim+this.dim,s=r*this.dim,o=r*this.dim+this.dim;switch(t){case-1:i=n-1;break;case 1:n=i+1}switch(r){case-1:s=o-1;break;case 1:o=s+1}const a=-t*this.dim,l=-r*this.dim;for(let t=s;t<o;t++)for(let r=i;r<n;r++){const i=4*this._idx(r,t),n=4*this._idx(r+a,t+l);this.pixels[i+0]=e.pixels[n+0],this.pixels[i+1]=e.pixels[n+1],this.pixels[i+2]=e.pixels[n+2],this.pixels[i+3]=e.pixels[n+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}To(Pg,"DEMData"),To(Ag,"DemMinMaxQuadTree",{omit:["dem"]});class Mg{isDataAvailableAtPoint(e){const t=this._source();if(this.isUsingMockSource()||!t||e.y<0||e.y>1)return!1;const r=t.getSource().maxzoom,i=1<<r,n=Math.floor(e.x),s=Math.floor((e.x-n)*i),o=Math.floor(e.y*i),a=this.findDEMTileFor(new Pd(r,n,r,s,o));return!(!a||!a.dem)}getAtPointOrZero(e,t=0){return this.getAtPoint(e,t)||0}getAtPoint(e,t,r=!0){if(this.isUsingMockSource())return null;null==t&&(t=null);const i=this._source();if(!i)return t;if(e.y<0||e.y>1)return t;const n=i.getSource().maxzoom,s=1<<n,o=Math.floor(e.x),a=e.x-o,l=new Pd(n,o,n,Math.floor(a*s),Math.floor(e.y*s)),c=this.findDEMTileFor(l);if(!c||!c.dem)return t;const u=c.dem,h=1<<c.tileID.canonical.z,d=(a*h-c.tileID.canonical.x)*u.dim,p=(e.y*h-c.tileID.canonical.y)*u.dim,f=Math.floor(d),m=Math.floor(p);return(r?this.exaggeration():1)*Wi(Wi(u.get(f,m),u.get(f,m+1),p-m),Wi(u.get(f+1,m),u.get(f+1,m+1),p-m),d-f)}getAtTileOffset(e,t,r){const i=1<<e.canonical.z;return this.getAtPointOrZero(new Up(e.wrap+(e.canonical.x+t/oi)/i,(e.canonical.y+r/oi)/i))}getAtTileOffsetFunc(e,t,r,i){return n=>{const s=this.getAtTileOffset(e,n.x,n.y),o=i.upVector(e.canonical,n.x,n.y),a=i.upVectorScale(e.canonical,t,r).metersToTile;return yd.scale(o,o,s*a),o}}getForTilePoints(e,t,r,i){if(this.isUsingMockSource())return!1;const n=kg.create(this,e,i);return!!n&&(t.forEach((e=>{e[2]=this.exaggeration()*n.getElevationAt(e[0],e[1],r)})),!0)}getMinMaxForTile(e){if(this.isUsingMockSource())return null;const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const r=t.dem.tree,i=t.tileID,n=1<<e.canonical.z-i.canonical.z;let s=e.canonical.x/n-i.canonical.x,o=e.canonical.y/n-i.canonical.y,a=0;for(let t=0;t<e.canonical.z-i.canonical.z&&!r.leaves[a];t++){s*=2,o*=2;const e=2*Math.floor(o)+Math.floor(s);a=r.childOffsets[a]+e,s%=1,o%=1}return{min:this.exaggeration()*r.minimums[a],max:this.exaggeration()*r.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,r){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}}class kg{constructor(e,t,r){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=r}static create(e,t,r){const i=r||e.findDEMTileFor(t);if(!i||!i.dem)return;const n=i.dem,s=i.tileID,o=1<<t.canonical.z-s.canonical.z;return new kg(i,n.dim/oi/o,[(t.canonical.x/o-s.canonical.x)*n.dim,(t.canonical.y/o-s.canonical.y)*n.dim])}tileCoordToPixel(e,t){const r=t*this._scale+this._offset[1],i=Math.floor(e*this._scale+this._offset[0]),n=Math.floor(r);return new v(i,n)}getElevationAt(e,t,r,i){const n=e*this._scale+this._offset[0],s=t*this._scale+this._offset[1],o=Math.floor(n),a=Math.floor(s),l=this._dem;return i=!!i,r?Wi(Wi(l.get(o,a,i),l.get(o,a+1,i),s-a),Wi(l.get(o+1,a,i),l.get(o+1,a+1,i),s-a),n-o):l.get(o,a,i)}getElevationAtPixel(e,t,r){return this._dem.get(e,t,!!r)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*Op(1,e)*this._dem.stride}}class Og{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Eo(oi,16,0),this.featureIndexArray=new ec,this.promoteId=t}insert(e,t,r,i,n,s=0){const o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n,s);const a=this.grid;for(let e=0;e<t.length;e++){const r=t[e],i=[1/0,1/0,-1/0,-1/0];for(let e=0;e<r.length;e++){const t=r[e];i[0]=Math.min(i[0],t.x),i[1]=Math.min(i[1],t.y),i[2]=Math.max(i[2],t.x),i[3]=Math.max(i[3],t.y)}i[0]<oi&&i[1]<oi&&i[2]>=0&&i[3]>=0&&a.insert(o,i[0],i[1],i[2],i[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new Vm(new fg(this.rawTileData)).layers,this.sourceLayerCoder=new Hm(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t,r,i){this.loadVTLayers();const n=e.params||{},s=Ms(n.filter),o=e.tileResult,a=e.transform,l=o.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,((e,t,r,i)=>hf(o.bufferedTilespaceGeometry,e,t,r,i)));c.sort(Dg);let u=null;a.elevation&&c.length>0&&(u=kg.create(a.elevation,this.tileID));const h={};let d;for(let a=0;a<c.length;a++){const l=c[a];if(l===d)continue;d=l;const p=this.featureIndexArray.get(l);let f=null;this.loadMatchingFeature(h,p,s,n.layers,n.availableImages,t,r,i,((t,r,i,n=0)=>(f||(f=Zp(t,this.tileID.canonical,e.tileTransform)),r.queryIntersectsFeature(o,t,i,f,this.z,e.transform,e.pixelPosMatrix,u,n))))}return h}loadMatchingFeature(e,t,r,i,n,s,o,a,l){const{featureIndex:c,bucketIndex:u,sourceLayerIndex:h,layoutVertexArrayOffset:d}=t,p=this.bucketLayerIDs[u];if(i&&!function(e,t){for(let r=0;r<e.length;r++)if(t.indexOf(e[r])>=0)return!0;return!1}(i,p))return;const f=this.sourceLayerCoder.decode(h),m=this.vtLayers[f].feature(c);if(r.needGeometry){const e=Xp(m,!0);if(!r.filter(new Wa(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!r.filter(new Wa(this.tileID.overscaledZ),m))return;const g=this.getId(m,f);for(let t=0;t<p.length;t++){const r=p[t];if(i&&i.indexOf(r)<0)continue;const u=s[r];if(!u)continue;let h={};void 0!==g&&a&&(h=a.getState(u.sourceLayer||"_geojsonTileLayer",g));const f=L({},o[r]);f.paint=Rg(f.paint,u.paint,m,h,n),f.layout=Rg(f.layout,u.layout,m,h,n);const y=!l||l(m,u,h,d);if(!y)continue;const v=new gg(m,this.z,this.x,this.y,g);v.layer=f;let _=e[r];void 0===_&&(_=e[r]=[]),_.push({featureIndex:c,feature:v,intersectionZ:y})}}lookupSymbolFeatures(e,t,r,i,n,s,o,a){const l={};this.loadVTLayers();const c=Ms(n);for(const n of e)this.loadMatchingFeature(l,{bucketIndex:r,sourceLayerIndex:i,featureIndex:n,layoutVertexArrayOffset:0},c,s,o,a,t);return l}loadFeature(e){const{featureIndex:t,sourceLayerIndex:r}=e;this.loadVTLayers();const i=this.sourceLayerCoder.decode(r),n=this.vtFeatures[i];if(n[t])return n[t];const s=this.vtLayers[i].feature(t);return n[t]=s,s}hasLayer(e){for(const t of this.bucketLayerIDs)for(const r of t)if(e===r)return!0;return!1}getId(e,t){let r=e.id;if(this.promoteId){const i="string"==typeof this.promoteId?this.promoteId:this.promoteId[t];null!=i&&(r=e.properties[i]),"boolean"==typeof r&&(r=Number(r))}return r}}function Rg(e,t,r,i,n){return q(e,((e,s)=>{const o=t instanceof el?t.get(s):null;return o&&o.evaluate?o.evaluate(r,i,n):o}))}function Dg(e,t){return t-e}To(Og,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});const Lg=pl([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Bg=pl([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),zg=pl([{name:"a_projected_pos",components:4,type:"Float32"}],4);pl([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const jg=pl([{name:"a_z_offset",components:1,type:"Float32"}],4),Fg=pl([{name:"a_texb",components:2,type:"Uint16"}]),Ng=pl([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),Ug=pl([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);pl([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Vg=pl([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Gg=pl([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);pl([{name:"triangle",components:3,type:"Uint16"}]),pl([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{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:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),pl([{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Float32",name:"zOffset"},{type:"Uint8",name:"hasIconTextFit"}]),pl([{type:"Float32",name:"offsetX"}]),pl([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var qg=24;const Hg=128;function Wg(e,t){const{expression:r}=t;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new Wa(e+1))};if("source"===r.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:i}=r;let n=0;for(;n<t.length&&t[n]<=e;)n++;n=Math.max(0,n-1);let s=n;for(;s<t.length&&t[s]<e+1;)s++;s=Math.min(t.length-1,s);const o=t[n],a=t[s];return"composite"===r.kind?{kind:"composite",minZoom:o,maxZoom:a,interpolationType:i}:{kind:"camera",minZoom:o,maxZoom:a,minSize:r.evaluate(new Wa(o)),maxSize:r.evaluate(new Wa(a)),interpolationType:i}}}function Yg(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:n}){return"source"===e.kind?i/Hg:"composite"===e.kind?Wi(i/Hg,n/Hg,r):t}function Qg(e,t){let r=0,i=0;if("constant"===e.kind)i=e.layoutSize;else if("source"!==e.kind){const{interpolationType:n,minZoom:s,maxZoom:o}=e,a=n?M(gn.interpolationFactor(n,t,s,o),0,1):0;"camera"===e.kind?i=Wi(e.minSize,e.maxSize,a):r=a}return{uSizeT:r,uSize:i}}var Zg=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:Hg,evaluateSizeForFeature:Yg,evaluateSizeForZoom:Qg,getSizeData:Wg});function Xg(e,t,r){return e.sections.forEach((e=>{e.text=function(e,t,r){const i=t.layout.get("text-transform").evaluate(r,{});return"uppercase"===i?e=e.toLocaleUpperCase():"lowercase"===i&&(e=e.toLocaleLowerCase()),Ha.applyArabicShaping&&(e=Ha.applyArabicShaping(e)),e}(e.text,t,r)})),e}const Kg={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼
","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹","â":"â","â":"â"};function Jg(e){return"︶"===e||"ï¹"===e||"︸"===e||"ï¹"===e||"ï¹"===e||"︾"===e||"︼"===e||"︺"===e||"ï¸"===e||"ï¹"===e||"ï¸"===e||"ï¸"===e||"ï¸"===e||"ï½"===e||"ï¿£"===e||"ï¸"===e||"ï¸"===e}function $g(e){return"︵"===e||"ï¹"===e||"︷"===e||"ï¹"===e||"ï¹"===e||"︽"===e||"︻"===e||"︹"===e||"ï¸"===e||"︿"===e}function ey(e,t,r){t.glyphs=[],1===e&&r.readMessage(ty,t)}function ty(e,t,r){if(3===e){const{id:e,bitmap:i,width:n,height:s,left:o,top:a,advance:l}=r.readMessage(ry,{});t.glyphs.push({id:e,bitmap:new Rf({width:n+6,height:s+6},i),metrics:{width:n,height:s,left:o,top:a,advance:l}})}else 4===e?t.ascender=r.readSVarint():5===e&&(t.descender=r.readSVarint())}function ry(e,t,r){1===e?t.id=r.readVarint():2===e?t.bitmap=r.readBytes():3===e?t.width=r.readVarint():4===e?t.height=r.readVarint():5===e?t.left=r.readSVarint():6===e?t.top=r.readSVarint():7===e&&(t.advance=r.readVarint())}function iy(e){let t=0,r=0;for(const i of e)t+=i.w*i.h,r=Math.max(r,i.w);e.sort(((e,t)=>t.h-e.h));const i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}];let n=0,s=0;for(const t of e)for(let e=i.length-1;e>=0;e--){const r=i[e];if(!(t.w>r.w||t.h>r.h)){if(t.x=r.x,t.y=r.y,s=Math.max(s,t.y+t.h),n=Math.max(n,t.x+t.w),t.w===r.w&&t.h===r.h){const t=i.pop();e<i.length&&(i[e]=t)}else t.h===r.h?(r.x+=t.w,r.w-=t.w):t.w===r.w?(r.y+=t.h,r.h-=t.h):(i.push({x:r.x+t.w,y:r.y,w:r.w-t.w,h:t.h}),r.y+=t.h,r.h-=t.h);break}}return{w:n,h:s,fill:t/(n*s)||0}}class ny{constructor(e,{pixelRatio:t,version:r,stretchX:i,stretchY:n,content:s}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=i,this.stretchY=n,this.content=s,this.version=r}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class sy{constructor(e,t){const r={},i={};this.haveRenderCallbacks=[];const n=[];this.addImages(e,r,n),this.addImages(t,i,n);const{w:s,h:o}=iy(n),a=new Df({width:s||1,height:o||1});for(const t in e){const i=e[t],n=r[t].paddedRect;Df.copy(i.data,a,{x:0,y:0},{x:n.x+1,y:n.y+1},i.data)}for(const e in t){const r=t[e],n=i[e].paddedRect,s=n.x+1,o=n.y+1,l=r.data.width,c=r.data.height;Df.copy(r.data,a,{x:0,y:0},{x:s,y:o},r.data),Df.copy(r.data,a,{x:0,y:c-1},{x:s,y:o-1},{width:l,height:1}),Df.copy(r.data,a,{x:0,y:0},{x:s,y:o+c},{width:l,height:1}),Df.copy(r.data,a,{x:l-1,y:0},{x:s-1,y:o},{width:1,height:c}),Df.copy(r.data,a,{x:0,y:0},{x:s+l,y:o},{width:1,height:c})}this.image=a,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(const i in e){const n=e[i],s={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(s),t[i]=new ny(s,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t,r){this.haveRenderCallbacks=this.haveRenderCallbacks.filter((t=>e.hasImage(t,r))),e.dispatchRenderCallbacks(this.haveRenderCallbacks,r);for(const i in e.getUpdatedImages(r))this.patchUpdatedImage(this.iconPositions[i],e.getImage(i,r),t),this.patchUpdatedImage(this.patternPositions[i],e.getImage(i,r),t)}patchUpdatedImage(e,t,r){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[i,n]=e.tl;r.update(t.data,void 0,{x:i,y:n})}}To(ny,"ImagePosition"),To(sy,"ImageAtlas");const oy={horizontal:1,vertical:2,horizontalOnly:3};class ay{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const r=new ay;return r.scale=e||1,r.fontStack=t,r}static forImage(e){const t=new ay;return t.imageName=e,t}}class ly{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const r=new ly;for(let i=0;i<e.sections.length;i++){const n=e.sections[i];n.image?r.addImageSection(n):r.addTextSection(n,t)}return r}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSections(){return this.sections}getSectionIndex(e){return this.sectionIndex[e]}getCodePoint(e){return this.text.codePointAt(e)}verticalizePunctuation(e){this.text=function(e,t){let r="";for(let i=0;i<e.length;i++){const n=e.charCodeAt(i+1)||null,s=e.charCodeAt(i-1)||null;r+=!t&&(n&&Ma(n)&&!Kg[e[i+1]]||s&&Ma(s)&&!Kg[e[i-1]])||!Kg[e[i]]?e[i]:Kg[e[i]]}return r}(this.text,e)}trim(){let e=0;for(let t=0;t<this.text.length&&uy[this.text.charCodeAt(t)];t++)e++;let t=this.text.length;for(let r=this.text.length-1;r>=0&&r>=e&&uy[this.text.charCodeAt(r)];r--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const r=new ly;return r.text=this.text.substring(e,t),r.sectionIndex=this.sectionIndex.slice(e,t),r.sections=this.sections,r}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(ay.forText(e.scale,e.fontStack||t));const r=this.sections.length-1;for(let t=0;t<e.text.length;++t)this.sectionIndex.push(r)}addImageSection(e){const t=e.image?e.image.namePrimary:"";if(0===t.length)return void Q("Can't add FormattedSection with an empty image.");const r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCodePoint(r),this.sections.push(ay.forImage(t)),this.sectionIndex.push(this.sections.length-1)):Q("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function cy(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f){const m=ly.fromFeature(e,n);h===oy.vertical&&m.verticalizePunctuation(d);let g=[];const y=function(e,t,r,i,n,s){if(!e)return[];const o=[],a=function(e,t,r,i,n,s){let o=0;for(let r=0;r<e.length();r++){const a=e.getSection(r);o+=dy(e.getCodePoint(r),a,i,n,t,s)}return o/Math.max(1,Math.ceil(o/r))}(e,t,r,i,n,s),l=e.text.indexOf("â")>=0;let c=0;for(let r=0;r<e.length();r++){const h=e.getSection(r),d=e.getCodePoint(r);if(uy[d]||(c+=dy(d,h,i,n,t,s)),r<e.length()-1){const t=!((u=d)<11904||!(na(u)||ta(u)||xa(u)||va(u)||la(u)||Zo(u)||sa(u)||Jo(u)||ca(u)||ha(u)||aa(u)||Ea(u)||$o(u)||Ko(u)||Xo(u)||oa(u)||ea(u)||ba(u)||pa(u)||da(u)));(hy[d]||t||h.imageName)&&o.push(my(r+1,c,a,o,fy(d,e.getCodePoint(r+1),t&&l),!1))}}var u;return gy(my(e.length(),c,a,o,0,!0))}(m,c,s,t,i,p),{processBidirectionalText:v,processStyledBidirectionalText:_}=Ha;if(v&&1===m.sections.length){const e=v(m.toString(),y);for(const t of e){const e=new ly;e.text=t,e.sections=m.sections;for(let r=0;r<t.length;r++)e.sectionIndex.push(0);g.push(e)}}else if(_){const e=_(m.text,m.sectionIndex,y);for(const t of e){const e=new ly;e.text=t[0],e.sectionIndex=t[1],e.sections=m.sections,g.push(e)}}else g=function(e,t){const r=[],i=e.text;let n=0;for(const i of t)r.push(e.substring(n,i)),n=i;return n<i.length&&r.push(e.substring(n,i.length)),r}(m,y);const b=[],x={positionedLines:b,text:m.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:h,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(e,t,r,i,n,s,o,a,l,c,u,h){let d=0,p=0,f=0;const m="right"===a?1:"left"===a?0:.5;let g=!1;for(const e of n){const r=e.getSections();for(const e of r){if(e.imageName)continue;const r=t[e.fontStack];if(r&&(g=void 0!==r.ascender&&void 0!==r.descender,!g))break}if(!g)break}let y=0;for(const o of n){o.trim();const n=o.getMaxScale(),a=(n-1)*qg,_={positionedGlyphs:[],lineOffset:0};e.positionedLines[y]=_;const b=_.positionedGlyphs;let x=0;if(!o.length()){p+=s,++y;continue}let w=0,A=0;for(let s=0;s<o.length();s++){const a=o.getSection(s),f=o.getSectionIndex(s),m=o.getCodePoint(s);let y=a.scale,_=null,E=null,S=null,T=qg,C=0;const I=!(l===oy.horizontal||!u&&!Pa(m)||u&&(uy[m]||(v=m,Oo(v)||Ro(v)||Do(v)||_a(v)||Aa(v))));if(a.imageName){const t=i[a.imageName];if(!t)continue;S=a.imageName,e.iconsInText=e.iconsInText||!0,E=t.paddedRect;const r=t.displaySize;y=y*qg/h,_={width:r[0],height:r[1],left:1,top:-3,advance:I?r[1]:r[0],localGlyph:!1},C=g?-_.height*y:n*qg-17-r[1]*y,T=_.advance;const s=(I?r[0]:r[1])*y-qg*n;s>0&&s>x&&(x=s)}else{const e=r[a.fontStack];if(!e)continue;e[m]&&(E=e[m]);const i=t[a.fontStack];if(!i)continue;const s=i.glyphs[m];if(!s)continue;if(_=s.metrics,T=8203!==m?qg:0,g){const e=void 0!==i.ascender?Math.abs(i.ascender):0,t=void 0!==i.descender?Math.abs(i.descender):0,r=(e+t)*y;w<r&&(w=r,A=(e-t)/2*y),C=-e*y}else C=(n-y)*qg-17}I?(e.verticalizable=!0,b.push({glyph:m,imageName:S,x:d,y:p+C,vertical:I,scale:y,localGlyph:_.localGlyph,fontStack:a.fontStack,sectionIndex:f,metrics:_,rect:E}),d+=T*y+c):(b.push({glyph:m,imageName:S,x:d,y:p+C,vertical:I,scale:y,localGlyph:_.localGlyph,fontStack:a.fontStack,sectionIndex:f,metrics:_,rect:E}),d+=_.advance*y+c)}0!==b.length&&(f=Math.max(d-c,f),g?vy(b,m,x,A,s*n/2):vy(b,m,x,0,s/2)),d=0;const E=s*n+x;_.lineOffset=Math.max(x,a),p+=E,++y}var v;const _=p,{horizontalAlign:b,verticalAlign:x}=yy(o);(function(e,t,r,i,n,s){const o=(t-r)*n,a=-s*i;for(const t of e)for(const e of t.positionedGlyphs)e.x+=o,e.y+=a})(e.positionedLines,m,b,x,f,_),e.top+=-x*_,e.bottom=e.top+_,e.left+=-b*f,e.right=e.left+f,e.hasBaseline=g}(x,t,r,i,g,o,a,l,h,c,d,f),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(b)&&x}const uy={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},hy={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function dy(e,t,r,i,n,s){if(t.imageName){const e=i[t.imageName];return e?e.displaySize[0]*t.scale*qg/s+n:0}{const i=r[t.fontStack],s=i&&i.glyphs[e];return s?s.metrics.advance*t.scale+n:0}}function py(e,t,r,i){const n=Math.pow(e-t,2);return i?e<t?n/2:2*n:n+Math.abs(r)*r}function fy(e,t,r){let i=0;return 10===e&&(i-=1e4),r&&(i+=150),40!==e&&65288!==e||(i+=50),41!==t&&65289!==t||(i+=50),i}function my(e,t,r,i,n,s){let o=null,a=py(t,r,n,s);for(const e of i){const i=py(t-e.x,r,n,s)+e.badness;i<=a&&(o=e,a=i)}return{index:e,x:t,priorBreak:o,badness:a}}function gy(e){return e?gy(e.priorBreak).concat(e.index):[]}function yy(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function vy(e,t,r,i,n){if(!(t||r||i||n))return;const s=e.length-1,o=e[s],a=(o.x+o.metrics.advance*o.scale)*t;for(let t=0;t<=s;t++)e[t].x-=a,e[t].y+=r+i+n}function _y(e,t,r,i){const{horizontalAlign:n,verticalAlign:s}=yy(i),o=r[0]-e.displaySize[0]*n,a=r[1]-e.displaySize[1]*s;return{imagePrimary:e,imageSecondary:t,top:a,bottom:a+e.displaySize[1],left:o,right:o+e.displaySize[0]}}function by(e,t,r,i,n,s){const o=e.imagePrimary;let a;if(o.content){const e=o.content,t=o.pixelRatio||1;a=[e[0]/t,e[1]/t,o.displaySize[0]-e[2]/t,o.displaySize[1]-e[3]/t]}const l=t.left*s,c=t.right*s;let u,h,d,p;"width"===r||"both"===r?(p=n[0]+l-i[3],h=n[0]+c+i[1]):(p=n[0]+(l+c-o.displaySize[0])/2,h=p+o.displaySize[0]);const f=t.top*s,m=t.bottom*s;return"height"===r||"both"===r?(u=n[1]+f-i[0],d=n[1]+m+i[2]):(u=n[1]+(f+m-o.displaySize[1])/2,d=u+o.displaySize[1]),{imagePrimary:o,imageSecondary:void 0,top:u,right:h,bottom:d,left:p,collisionPadding:a}}class xy extends v{constructor(e,t,r,i,n){super(e,t),this.angle=i,this.z=r,void 0!==n&&(this.segment=n)}clone(){return new xy(this.x,this.y,this.z,this.angle,this.segment)}}function wy(e,t,r,i,n){if(void 0===t.segment)return!0;let s=t,o=t.segment+1,a=0;for(;a>-r/2;){if(o--,o<0)return!1;a-=e[o].dist(s),s=e[o]}a+=e[o].dist(e[o+1]),o++;const l=[];let c=0;for(;a<r/2;){const t=e[o],r=e[o+1];if(!r)return!1;let s=e[o-1].angleTo(t)-t.angleTo(r);for(s=Math.abs((s+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:a,angleDelta:s}),c+=s;a-l[0].distance>i;)c-=l.shift().angleDelta;if(c>n)return!1;o++,a+=t.dist(r)}return!0}function Ay(e){let t=0;for(let r=0;r<e.length-1;r++)t+=e[r].dist(e[r+1]);return t}function Ey(e,t,r){return e?.6*t*r:0}function Sy(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Ty(e,t,r,i,n,s){const o=Ey(r,n,s),a=Sy(r,i)*s;let l=0;const c=Ay(e)/2;for(let r=0;r<e.length-1;r++){const i=e[r],n=e[r+1],s=i.dist(n);if(l+s>c){const u=(c-l)/s,h=Wi(i.x,n.x,u),d=Wi(i.y,n.y,u),p=new xy(h,d,0,n.angleTo(i),r);return!o||wy(e,p,a,o,t)?p:void 0}l+=s}}function Cy(e,t,r,i,n,s,o,a,l){const c=Ey(i,s,o),u=Sy(i,n),h=u*o,d=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h<t/4&&(t=h+t/4),Iy(e,d?t/2*a%t:(u/2+2*s)*o*a%t,t,c,r,h,d,!1,l)}function Iy(e,t,r,i,n,s,o,a,l){const c=s/2,u=Ay(e);let h=0,d=t-r,p=[];for(let t=0;t<e.length-1;t++){const o=e[t],a=e[t+1],f=o.dist(a),m=a.angleTo(o);for(;d+r<h+f;){d+=r;const g=(d-h)/f,y=Wi(o.x,a.x,g),v=Wi(o.y,a.y,g);if(y>=0&&y<l&&v>=0&&v<l&&d-c>=0&&d+c<=u){const r=new xy(y,v,0,m,t);i&&!wy(e,r,s,i,n)||p.push(r)}}h+=f}return a||p.length||o||(p=Iy(e,h/2,r,i,n,s,o,!0,l)),p}function Py(e,t,r,i,n){const s=[];for(let o=0;o<e.length;o++){const a=e[o];let l;for(let e=0;e<a.length-1;e++){let o=a[e],c=a[e+1];o.x<t&&c.x<t||(o.x<t?o=new v(t,o.y+(t-o.x)/(c.x-o.x)*(c.y-o.y))._round():c.x<t&&(c=new v(t,o.y+(t-o.x)/(c.x-o.x)*(c.y-o.y))._round()),o.y<r&&c.y<r||(o.y<r?o=new v(o.x+(r-o.y)/(c.y-o.y)*(c.x-o.x),r)._round():c.y<r&&(c=new v(o.x+(r-o.y)/(c.y-o.y)*(c.x-o.x),r)._round()),o.x>=i&&c.x>=i||(o.x>=i?o=new v(i,o.y+(i-o.x)/(c.x-o.x)*(c.y-o.y))._round():c.x>=i&&(c=new v(i,o.y+(i-o.x)/(c.x-o.x)*(c.y-o.y))._round()),o.y>=n&&c.y>=n||(o.y>=n?o=new v(o.x+(n-o.y)/(c.y-o.y)*(c.x-o.x),n)._round():c.y>=n&&(c=new v(o.x+(n-o.y)/(c.y-o.y)*(c.x-o.x),n)._round()),l&&o.equals(l[l.length-1])||(l=[o],s.push(l)),l.push(c)))))}}return s}To(xy,"Anchor");const My=1e20;function ky(e,t,r,i,n,s,o,a,l){for(let c=t;c<t+i;c++)Oy(e,r*s+c,s,n,o,a,l);for(let c=r;c<r+n;c++)Oy(e,c*s+t,1,i,o,a,l)}function Oy(e,t,r,i,n,s,o){s[0]=0,o[0]=-My,o[1]=My,n[0]=e[t];for(let a=1,l=0,c=0;a<i;a++){n[a]=e[t+a*r];const i=a*a;do{const e=s[l];c=(n[a]-n[e]+i-e*e)/(a-e)/2}while(c<=o[l]&&--l>-1);l++,s[l]=a,o[l]=c,o[l+1]=My}for(let a=0,l=0;a<i;a++){for(;o[l+1]<a;)l++;const i=s[l],c=a-i;e[t+a*r]=n[i]+c*c}}class Ry{constructor(e,t,r){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=r,this.urls={},this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e,t){this.urls[t]=e}getGlyphs(e,t,r){const i=[],s=this.urls[t]||n.GLYPHS_URL;for(const t in e)for(const r of e[t])i.push({stack:t,id:r});R(i,(({stack:e,id:t},r)=>{let i=this.entries[e];i||(i=this.entries[e]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let n=i.glyphs[t];if(void 0!==n)return void r(null,{stack:e,id:t,glyph:n});if(n=this._tinySDF(i,e,t),n)return i.glyphs[t]=n,void r(null,{stack:e,id:t,glyph:n});const o=Math.floor(t/256);if(256*o>65535)return void r(new Error("glyphs > 65535 not supported"));if(i.ranges[o])return void r(null,{stack:e,id:t,glyph:n});let a=i.requests[o];a||(a=i.requests[o]=[],Ry.loadGlyphRange(e,o,s,this.requestManager,((e,t)=>{if(t){i.ascender=t.ascender,i.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(i.glyphs[+e]=t.glyphs[+e]);i.ranges[o]=!0}for(const r of a)r(e,t);delete i.requests[o]}))),a.push(((i,n)=>{i?r(i):n&&r(null,{stack:e,id:t,glyph:n.glyphs[t]||null})}))}),((e,t)=>{if(e)r(e);else if(t){const e={};for(const{stack:r,id:i,glyph:n}of t)void 0===e[r]&&(e[r]={}),void 0===e[r].glyphs&&(e[r].glyphs={}),e[r].glyphs[i]=n&&{id:n.id,bitmap:n.bitmap.clone(),metrics:n.metrics},e[r].ascender=this.entries[r].ascender,e[r].descender=this.entries[r].descender;r(null,e)}}))}_doesCharSupportLocalGlyph(e){return 0!==this.localGlyphMode&&(2===this.localGlyphMode?!!this.localFontFamily:!!this.localFontFamily&&(ha(e)||ma(e)||$o(e)||ea(e)||Jo(e)||ca(e)||Sa(e)))}_tinySDF(e,t,r){const i=this.localFontFamily;if(!i||!this._doesCharSupportLocalGlyph(r))return;let n=e.tinySDF;if(!n){let r="400";/bold/i.test(t)?r="900":/medium/i.test(t)?r="500":/light/i.test(t)&&(r="200"),n=e.tinySDF=new Ry.TinySDF({fontFamily:i,fontWeight:r,fontSize:48,buffer:6,radius:16}),n.fontWeight=r}if(this.localGlyphs[n.fontWeight][r])return this.localGlyphs[n.fontWeight][r];const s=String.fromCodePoint(r),{data:o,width:a,height:l,glyphWidth:c,glyphHeight:u,glyphLeft:h,glyphTop:d,glyphAdvance:p}=n.draw(s);return this.localGlyphs[n.fontWeight][r]={id:r,bitmap:new Rf({width:a,height:l},o),metrics:{width:c/2,height:u/2,left:h/2,top:d/2-27,advance:p/2,localGlyph:!0}}}}Ry.loadGlyphRange=function(e,t,r,i,n){const s=256*t,o=s+255,a=i.transformRequest(i.normalizeGlyphsURL(r).replace("{fontstack}",e).replace("{range}",`${s}-${o}`),ve.Glyphs);Ae(a,((e,t)=>{if(e)n(e);else if(t){const e={},r=function(e){return new fg(e).readFields(ey,{})}(t);for(const t of r.glyphs)e[t.id]=t;n(null,{glyphs:e,ascender:r.ascender,descender:r.descender})}}))},Ry.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:n="sans-serif",fontWeight:s="normal",fontStyle:o="normal"}={}){this.buffer=t,this.cutoff=i,this.radius=r;const a=this.size=e+4*t,l=this._createCanvas(a),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${s} ${e}px ${n}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Uint16Array(a)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:n,actualBoundingBoxRight:s}=this.ctx.measureText(e),o=Math.ceil(r),a=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(s-n))),l=Math.min(this.size-this.buffer,o+Math.ceil(i)),c=a+2*this.buffer,u=l+2*this.buffer,h=Math.max(c*u,0),d=new Uint8ClampedArray(h),p={data:d,width:c,height:u,glyphWidth:a,glyphHeight:l,glyphTop:o,glyphLeft:0,glyphAdvance:t};if(0===a||0===l)return p;const{ctx:f,buffer:m,gridInner:g,gridOuter:y}=this;f.clearRect(m,m,a,l),f.fillText(e,m,m+o);const v=f.getImageData(m,m,a,l);y.fill(My,0,h),g.fill(0,0,h);for(let e=0;e<l;e++)for(let t=0;t<a;t++){const r=v.data[4*(e*a+t)+3]/255;if(0===r)continue;const i=(e+m)*c+t+m;if(1===r)y[i]=0,g[i]=My;else{const e=.5-r;y[i]=e>0?e*e:0,g[i]=e<0?e*e:0}}ky(y,0,0,c,u,c,this.f,this.v,this.z),ky(g,m,m,a,l,c,this.f,this.v,this.z);for(let e=0;e<h;e++){const t=Math.sqrt(y[e])-Math.sqrt(g[e]);d[e]=Math.round(255-255*(t/this.radius+this.cutoff))}return p}};function Dy(e,t,r,i){const n=[],s=e.imagePrimary,o=s.pixelRatio,a=s.paddedRect.w-2,l=s.paddedRect.h-2,c=e.right-e.left,u=e.bottom-e.top,h=s.stretchX||[[0,a]],d=s.stretchY||[[0,l]],p=(e,t)=>e+t[1]-t[0],f=h.reduce(p,0),m=d.reduce(p,0),g=a-f,y=l-m;let _=0,b=f,x=0,w=m,A=0,E=g,S=0,T=y;if(s.content&&i){const e=s.content;_=Ly(h,0,e[0]),x=Ly(d,0,e[1]),b=Ly(h,e[0],e[2]),w=Ly(d,e[1],e[3]),A=e[0]-_,S=e[1]-x,E=e[2]-e[0]-b,T=e[3]-e[1]-w}const C=(i,n,a,l)=>{const h=zy(i.stretch-_,b,c,e.left),d=jy(i.fixed-A,E,i.stretch,f),p=zy(n.stretch-x,w,u,e.top),g=jy(n.fixed-S,T,n.stretch,m),y=zy(a.stretch-_,b,c,e.left),C=jy(a.fixed-A,E,a.stretch,f),I=zy(l.stretch-x,w,u,e.top),P=jy(l.fixed-S,T,l.stretch,m),M=new v(h,p),k=new v(y,p),O=new v(y,I),R=new v(h,I),D=new v(d/o,g/o),L=new v(C/o,P/o),B=t*Math.PI/180;if(B){const e=Math.sin(B),t=Math.cos(B),r=[t,-e,e,t];M._matMult(r),k._matMult(r),R._matMult(r),O._matMult(r)}const z=i.stretch+i.fixed,j=a.stretch+a.fixed,F=n.stretch+n.fixed,N=l.stretch+l.fixed,U=e.imageSecondary;return{tl:M,tr:k,bl:R,br:O,texPrimary:{x:s.paddedRect.x+1+z,y:s.paddedRect.y+1+F,w:j-z,h:N-F},texSecondary:U?{x:U.paddedRect.x+1+z,y:U.paddedRect.y+1+F,w:j-z,h:N-F}:void 0,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:L,minFontScaleX:E/o/c,minFontScaleY:T/o/u,isSDF:r}};if(i&&(s.stretchX||s.stretchY)){const e=By(h,g,f),t=By(d,y,m);for(let r=0;r<e.length-1;r++){const i=e[r],s=e[r+1];for(let e=0;e<t.length-1;e++)n.push(C(i,t[e],s,t[e+1]))}}else n.push(C({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:a+1},{fixed:0,stretch:l+1}));return n}function Ly(e,t,r){let i=0;for(const n of e)i+=Math.max(t,Math.min(r,n[1]))-Math.max(t,Math.min(r,n[0]));return i}function By(e,t,r){const i=[{fixed:-1,stretch:0}];for(const[t,r]of e){const e=i[i.length-1];i.push({fixed:t-e.stretch,stretch:e.stretch}),i.push({fixed:t-e.stretch,stretch:e.stretch+(r-t)})}return i.push({fixed:t+1,stretch:r}),i}function zy(e,t,r,i){return e/t*r+i}function jy(e,t,r,i){return e-t*r/i}function Fy(e,t,r,i){const n=t+e.positionedLines[i].lineOffset;return 0===i?r+n/2:r+(n+(t+e.positionedLines[i-1].lineOffset))/2}function Ny(e,t=1,r=!1){let i=1/0,n=1/0,s=-1/0,o=-1/0;const a=e[0];for(let e=0;e<a.length;e++){const t=a[e];(!e||t.x<i)&&(i=t.x),(!e||t.y<n)&&(n=t.y),(!e||t.x>s)&&(s=t.x),(!e||t.y>o)&&(o=t.y)}const l=Math.min(s-i,o-n);let c=l/2;const u=new si([],Uy);if(0===l)return new v(i,n);for(let t=i;t<s;t+=l)for(let r=n;r<o;r+=l)u.push(new Vy(t+c,r+c,c,e));let h=function(e){let t=0,r=0,i=0;const n=e[0];for(let e=0,s=n.length,o=s-1;e<s;o=e++){const s=n[e],a=n[o],l=s.x*a.y-a.x*s.y;r+=(s.x+a.x)*l,i+=(s.y+a.y)*l,t+=3*l}return new Vy(r/t,i/t,0,e)}(e),d=u.length;for(;u.length;){const i=u.pop();(i.d>h.d||!h.d)&&(h=i,r&&console.log("found best %d after %d probes",Math.round(1e4*i.d)/1e4,d)),i.max-h.d<=t||(c=i.h/2,u.push(new Vy(i.p.x-c,i.p.y-c,c,e)),u.push(new Vy(i.p.x+c,i.p.y-c,c,e)),u.push(new Vy(i.p.x-c,i.p.y+c,c,e)),u.push(new Vy(i.p.x+c,i.p.y+c,c,e)),d+=4)}return r&&(console.log(`num probes: ${d}`),console.log(`best distance: ${h.d}`)),h.p}function Uy(e,t){return t.max-e.max}
2class Vy{constructor(e,t,r,i){this.p=new v(e,t),this.h=r,this.d=function(e,t){let r=!1,i=1/0;for(let n=0;n<t.length;n++){const s=t[n];for(let t=0,n=s.length,o=n-1;t<n;o=t++){const n=s[t],a=s[o];n.y>e.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r),i=Math.min(i,lf(e,n,a))}}return(r?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}}const Gy=Number.POSITIVE_INFINITY,qy=Math.sqrt(2);function Hy(e,[t,r]){let i=0,n=0;if(r===Gy){t<0&&(t=0);const r=t/qy;switch(e){case"top-right":case"top-left":n=r-7;break;case"bottom-right":case"bottom-left":n=7-r;break;case"bottom":n=7-t;break;case"top":n=t-7}switch(e){case"top-right":case"bottom-right":i=-r;break;case"top-left":case"bottom-left":i=r;break;case"left":i=t;break;case"right":i=-t}}else{switch(t=Math.abs(t),r=Math.abs(r),e){case"top-right":case"top-left":case"top":n=r-7;break;case"bottom-right":case"bottom-left":case"bottom":n=7-r}switch(e){case"top-right":case"bottom-right":case"right":i=-t;break;case"top-left":case"bottom-left":case"left":i=t}}return[i,n]}function Wy(e,t,r,i,n,s,o,a,l,c,u){e.createArrays(),e.tilePixelRatio=oi/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const h=e.layers[0].layout,d=e.layers[0]._unevaluatedLayout._values,p={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:r}=e.textSizeData;p.compositeTextSizes=[d["text-size"].possiblyEvaluate(new Wa(t),a),d["text-size"].possiblyEvaluate(new Wa(r),a)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:r}=e.iconSizeData;p.compositeIconSizes=[d["icon-size"].possiblyEvaluate(new Wa(t),a),d["icon-size"].possiblyEvaluate(new Wa(r),a)]}p.layoutTextSize=d["text-size"].possiblyEvaluate(new Wa(l+1),a),p.layoutIconSize=d["icon-size"].possiblyEvaluate(new Wa(l+1),a),p.textMaxSize=d["text-size"].possiblyEvaluate(new Wa(18),a);const f="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),m=h.get("text-size");let g=!1;for(const t of e.features)if(t.icon&&t.icon.nameSecondary){g=!0;break}for(const s of e.features){const l=h.get("text-font").evaluate(s,{},a).join(","),d=m.evaluate(s,{},a),y=p.layoutTextSize.evaluate(s,{},a),v=(p.layoutIconSize.evaluate(s,{},a),{horizontal:{},vertical:void 0}),_=s.text;let b,x=[0,0];if(_){const i=_.toString(),o=h.get("text-letter-spacing").evaluate(s,{},a)*qg,c=h.get("text-line-height").evaluate(s,{},a)*qg,u=Ca(i)?o:0,p=h.get("text-anchor").evaluate(s,{},a),m=h.get("text-variable-anchor");if(!m){const e=h.get("text-radial-offset").evaluate(s,{},a);x=e?Hy(p,[e*qg,Gy]):h.get("text-offset").evaluate(s,{},a).map((e=>e*qg))}let g=f?"center":h.get("text-justify").evaluate(s,{},a);const b="point"===h.get("symbol-placement"),w=b?h.get("text-max-width").evaluate(s,{},a)*qg:1/0,A=s=>{e.allowVerticalPlacement&&Ta(i)&&(v.vertical=cy(_,t,r,n,l,w,c,p,s,u,x,oy.vertical,!0,y,d))};if(!f&&m){const e="auto"===g?m.map((e=>Yy(e))):[g];let i=!1;for(let s=0;s<e.length;s++){const o=e[s];if(!v.horizontal[o])if(i)v.horizontal[o]=v.horizontal[0];else{const e=cy(_,t,r,n,l,w,c,"center",o,u,x,oy.horizontal,!1,y,d);e&&(v.horizontal[o]=e,i=1===e.positionedLines.length)}}A("left")}else{if("auto"===g&&(g=Yy(p)),b||h.get("text-writing-mode").indexOf("horizontal")>=0||!Ta(i)){const e=cy(_,t,r,n,l,w,c,p,g,u,x,oy.horizontal,!1,y,d);e&&(v.horizontal[g]=e)}A(b?"left":g)}}let w=!1;if(s.icon&&s.icon.namePrimary){const t=i[s.icon.namePrimary];t&&(b=_y(n[s.icon.namePrimary],s.icon.nameSecondary?n[s.icon.nameSecondary]:void 0,h.get("icon-offset").evaluate(s,{},a),h.get("icon-anchor").evaluate(s,{},a)),w=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&Q("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==h.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const A=Jy(v.horizontal)||v.vertical;e.iconsInText||(e.iconsInText=!!A&&A.iconsInText),(A||b)&&Qy(e,s,v,b,i,p,y,0,x,w,o,a,c,u,g)}s&&e.generateCollisionDebugBuffers(l,e.collisionBoxArray)}function Yy(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Qy(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f){let m=s.textMaxSize.evaluate(t,{},h);void 0===m&&(m=o);const g=e.layers[0].layout,y=g.get("icon-offset").evaluate(t,{},h),v=Jy(r.horizontal)||r.vertical,_="globe"===d.name,b=o/24,x=e.tilePixelRatio*m/24,A=(k=e.overscaling,e.zoom>18&&k>2&&(k>>
2=1),Math.max(oi/(512*k),1)*g.get("symbol-spacing")),E=g.get("text-padding")*e.tilePixelRatio,S=g.get("icon-padding")*e.tilePixelRatio,T=w(g.get("text-max-angle")),C="map"===g.get("text-rotation-alignment")&&"point"!==g.get("symbol-placement"),I="map"===g.get("icon-rotation-alignment")&&"point"!==g.get("symbol-placement"),P=g.get("symbol-placement"),M=A/2;var k;const O=g.get("icon-text-fit").evaluate(t,{},h),R=g.get("icon-text-fit-padding").evaluate(t,{},h),D="none"!==O;let L;!1===e.hasAnyIconTextFit&&D&&(e.hasAnyIconTextFit=!0),i&&D&&(e.allowVerticalPlacement&&r.vertical&&(L=by(i,r.vertical,O,R,y,b)),v&&(i=by(i,v,O,R,y,b)));const B=(o,a,m)=>{if(a.x<0||a.x>=oi||a.y<0||a.y>=oi)return;let g=null;if(_){const{x:e,y:t,z:r}=d.projectTilePoint(a.x,a.y,m);g={anchor:new xy(e,t,r,0,void 0),up:d.upVector(m,a.x,a.y)}}!function(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v,_,b,x,w,A,E,S,T){const C=e.addToLineVertexArray(t,i);let I,P,M,k,O,R,D,L=0,B=0,z=0,j=0,F=-1,N=-1;const U={};let V=fc("");const G=r?r.anchor:t,q="none"!==l.layout.get("icon-text-fit").evaluate(b,{},E);let H=0,W=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[H,W]=l.layout.get("text-offset").evaluate(b,{},E).map((e=>e*qg)):(H=l.layout.get("text-radial-offset").evaluate(b,{},E)*qg,W=Gy),e.allowVerticalPlacement&&n.vertical){const e=n.vertical;if(f)R=ev(e),a&&(D=ev(a));else{const r=l.layout.get("text-rotate").evaluate(b,{},E)+90;M=$y(c,G,t,u,h,d,e,p,r,m),a&&(k=$y(c,G,t,u,h,d,a,y,r))}}if(s){const i=l.layout.get("icon-rotate").evaluate(b,{},E),n=Dy(s,i,w,q),o=a?Dy(a,i,w,q):void 0;P=$y(c,G,t,u,h,d,s,y,i),L=4*n.length;const p=e.iconSizeData;let f=null;"source"===p.kind?(f=[Hg*l.layout.get("icon-size").evaluate(b,{},E)],f[0]>Xy&&Q(`${e.layerIds[0]}: Value for "icon-size" is >= ${Zy}. Reduce your "icon-size".`)):"composite"===p.kind&&(f=[Hg*x.compositeIconSizes[0].evaluate(b,{},E),Hg*x.compositeIconSizes[1].evaluate(b,{},E)],(f[0]>Xy||f[1]>Xy)&&Q(`${e.layerIds[0]}: Value for "icon-size" is >= ${Zy}. Reduce your "icon-size".`)),e.addSymbols(e.icon,n,f,_,v,b,!1,r,t,C.lineStartIndex,C.lineLength,-1,A,E,S,T),F=e.icon.placedSymbolArray.length-1,o&&(B=4*o.length,e.addSymbols(e.icon,o,f,_,v,b,oy.vertical,r,t,C.lineStartIndex,C.lineLength,-1,A,E,S,T),N=e.icon.placedSymbolArray.length-1)}for(const i in n.horizontal){const s=n.horizontal[i];I||(V=fc(s.text),f?O=ev(s):I=$y(c,G,t,u,h,d,s,p,l.layout.get("text-rotate").evaluate(b,{},E),m));const a=1===s.positionedLines.length;if(z+=Ky(e,r,t,s,o,l,f,b,m,C,n.vertical?oy.horizontal:oy.horizontalOnly,a?Object.keys(n.horizontal):[i],U,F,x,A,E,S),a)break}n.vertical&&(j+=Ky(e,r,t,n.vertical,o,l,f,b,m,C,oy.vertical,["vertical"],U,N,x,A,E,S));let Y=-1;const Z=(e,t)=>e?Math.max(e,t):t;Y=Z(O,Y),Y=Z(R,Y),Y=Z(D,Y);const X=Y>-1?1:0;e.glyphOffsetArray.length>=Gv.MAX_GLYPHS&&Q("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,G.x,G.y,G.z,U.right>=0?U.right:-1,U.center>=0?U.center:-1,U.left>=0?U.left:-1,U.vertical>=0?U.vertical:-1,F,N,V,void 0!==I?I:e.collisionBoxArray.length,void 0!==I?I+1:e.collisionBoxArray.length,void 0!==M?M:e.collisionBoxArray.length,void 0!==M?M+1:e.collisionBoxArray.length,void 0!==P?P:e.collisionBoxArray.length,void 0!==P?P+1:e.collisionBoxArray.length,k||e.collisionBoxArray.length,k?k+1:e.collisionBoxArray.length,u,z,j,L,B,X,0,H,W,Y,0,q?1:0)}(e,a,g,o,r,i,n,L,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,E,C,l,0,S,I,y,t,s,c,u,h,p,f)};if("line"===P)for(const n of Py(t.geometry,0,0,oi,oi)){const t=Cy(n,A,T,r.vertical||v,i,24,x,e.overscaling,oi);for(const r of t)v&&tv(e,v.text,M,r)||B(n,r,h)}else if("line-center"===P){for(const e of t.geometry)if(e.length>1){const t=Ty(e,T,r.vertical||v,i,24,x);t&&B(e,t,h)}}else if("Polygon"===t.type)for(const e of ym(t.geometry,0)){const t=Ny(e,16);B(e[0],new xy(t.x,t.y,0,0,void 0),h)}else if("LineString"===t.type)for(const e of t.geometry)B(e,new xy(e[0].x,e[0].y,0,0,void 0),h);else if("Point"===t.type)for(const e of t.geometry)for(const t of e)B([t],new xy(t.x,t.y,0,0,void 0),h)}const Zy=255,Xy=Zy*Hg;function Ky(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y){const _=function(e,t,r,i,n,s,o,a){const l=[];
vendor: 4,288 bytes, line 2
2if(0===t.positionedLines.length)return l;const c=i.layout.get("text-rotate").evaluate(s,{})*Math.PI/180,u=function(e){const t=e[0],r=e[1],i=t*r;return i>0?[t,-r]:i<0?[-t,r]:0===t?[r,t]:[r,-t]}(r);let h=Math.abs(t.top-t.bottom);for(const e of t.positionedLines)h-=e.lineOffset;const d=t.positionedLines.length,p=h/d;let f=t.top-r[1];for(let e=0;e<d;++e){const i=t.positionedLines[e];f=Fy(t,p,f,e);for(const e of i.positionedGlyphs){if(!e.rect)continue;const i=e.rect||{};let s=4,h=!0,d=1,p=0;if(e.imageName){const t=o[e.imageName];if(!t)continue;if(t.sdf){Q("SDF images are not supported in formatted text and will be ignored.");continue}h=!1,d=t.pixelRatio,s=1/d}const m=(n||a)&&e.vertical,g=e.metrics.advance*e.scale/2,y=e.metrics,_=e.rect;if(null===_)continue;a&&t.verticalizable&&(p=e.imageName?g-e.metrics.width*e.scale/2:0);const b=n?[e.x+g,e.y]:[0,0];let x=[0,0],w=[0,0],A=!1;n||(m?(w=[e.x+g+u[0],e.y+u[1]-p],A=!0):x=[e.x+g+r[0],e.y+r[1]-p]);const E=_.w*e.scale/(d*(e.localGlyph?2:1)),S=_.h*e.scale/(d*(e.localGlyph?2:1));let T,C,I,P;if(m){const t=e.y-f,r=new v(-g,g-t),i=-Math.PI/2,n=new v(...w);T=new v(-g+x[0],x[1]),T._rotateAround(i,r)._add(n),T.x+=-t+g,T.y-=(y.left-s)*e.scale;const o=e.imageName?y.advance*e.scale:qg*e.scale,a=String.fromCodePoint(e.glyph);Jg(a)?T.x+=(1-s)*e.scale:$g(a)?T.x+=o-y.height*e.scale+(-s-1)*e.scale:T.x+=e.imageName||y.width+2*s===_.w&&y.height+2*s===_.h?(o-S)/2:(o-(y.height+2*s)*e.scale)/2,C=new v(T.x,T.y-E),I=new v(T.x+S,T.y),P=new v(T.x+S,T.y-E)}else{const t=(y.left-s)*e.scale-g+x[0],r=(-y.top-s)*e.scale+x[1],i=t+E,n=r+S;T=new v(t,r),C=new v(i,r),I=new v(t,n),P=new v(i,n)}if(c){let e;e=n?new v(0,0):A?new v(u[0],u[1]):new v(r[0],r[1]),T._rotateAround(c,e),C._rotateAround(c,e),I._rotateAround(c,e),P._rotateAround(c,e)}const M=new v(0,0),k=new v(0,0);l.push({tl:T,tr:C,bl:I,br:P,texPrimary:i,texSecondary:void 0,writingMode:t.writingMode,glyphOffset:b,sectionIndex:e.sectionIndex,isSDF:h,pixelOffsetTL:M,pixelOffsetBR:k,minFontScaleX:0,minFontScaleY:0})}}return l}(0,i,l,s,o,a,n,e.allowVerticalPlacement),b=e.textSizeData;let x=null;"source"===b.kind?(x=[Hg*s.layout.get("text-size").evaluate(a,{},g)],x[0]>Xy&&Q(`${e.layerIds[0]}: Value for "text-size" is >= ${Zy}. Reduce your "text-size".`)):"composite"===b.kind&&(x=[Hg*f.compositeTextSizes[0].evaluate(a,{},g),Hg*f.compositeTextSizes[1].evaluate(a,{},g)],(x[0]>Xy||x[1]>Xy)&&Q(`${e.layerIds[0]}: Value for "text-size" is >= ${Zy}. Reduce your "text-size".`)),e.addSymbols(e.text,_,x,l,o,a,u,t,r,c.lineStartIndex,c.lineLength,p,m,g,y,!1);for(const t of h)d[t]=e.text.placedSymbolArray.length-1;return 4*_.length}function Jy(e){for(const t in e)return e[t];return null}function $y(e,t,r,i,n,s,o,a,l,c){let u=o.top,h=o.bottom,d=o.left,p=o.right;const f=o.collisionPadding;if(f&&(d-=f[0],u-=f[1],p+=f[2],h+=f[3]),l){const e=new v(d,u),t=new v(p,u),r=new v(d,h),i=new v(p,h),n=w(l);let s=new v(0,0);c&&(s=new v(c[0],c[1])),e._rotateAround(n,s),t._rotateAround(n,s),r._rotateAround(n,s),i._rotateAround(n,s),d=Math.min(e.x,t.x,r.x,i.x),p=Math.max(e.x,t.x,r.x,i.x),u=Math.min(e.y,t.y,r.y,i.y),h=Math.max(e.y,t.y,r.y,i.y)}return e.emplaceBack(t.x,t.y,t.z,r.x,r.y,d,u,p,h,a,i,n,s),e.length-1}function ev(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function tv(e,t,r,i){const n=e.compareText;if(t in n){const e=n[t];for(let t=e.length-1;t>=0;t--)if(i.dist(e[t])<r)return!0}else n[t]=[];return n[t].push(i),!1}function rv(e,t){const r=e.fovAboveCenter,i=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,n=(e._camera.position[2]*e.worldSize-i)/Math.cos(e._pitch),s=Math.sin(r)*n/Math.sin(Math.max(Math.PI/2-e._pitch-r,.01)),o=Math.sin(e._pitch)*s+n;return Math.min(1.01*o,n*(1/e._horizonShift))}function iv(e,t){if(!t.isReprojectedInTileSpace)return{scale:1<<e.z,x:e.x,y:e.y,x2:e.x+1,y2:e.y+1,projection:t};const r=Math.pow(2,-e.z),i=e.x*r,n=(e.x+1)*r,s=e.y*r,o=(e.y+1)*r,a=Rp(i),l=Rp(n),c=Dp(s),u=Dp(o),h=t.project(a,c),d=t.project(l,c),p=t.project(l,u),f=t.project(a,u);let m=Math.min(h.x,d.x,p.x,f.x),g=Math.min(h.y,d.y,p.y,f.y),y=Math.max(h.x,d.x,p.x,f.x),v=Math.max(h.y,d.y,p.y,f.y);const _=r/16;function b(e,r,i,n,s,o){const a=(i+s)/2,l=(n+o)/2,c=t.project(Rp(a),Dp(l)),u=Math.max(0,m-c.x,g
vendor: 1,548 bytes, line 2
2-c.y,c.x-y,c.y-v);m=Math.min(m,c.x),y=Math.max(y,c.x),g=Math.min(g,c.y),v=Math.max(v,c.y),u>_&&(b(e,c,i,n,a,l),b(c,r,a,l,s,o))}b(h,d,i,s,n,s),b(d,p,n,s,n,o),b(p,f,n,o,i,o),b(f,h,i,o,i,s),m-=_,g-=_,y+=_,v+=_;const x=1/Math.max(y-m,v-g);return{scale:x,x:m*x,y:g*x,x2:y*x,y2:v*x,projection:t}}function nv(e,t,r,i,n,s,o,a,l){if("globe"===l.name)return ep(e,t,new Cd(r,i,n),!1);const c=iv({z:r,x:i,y:n},l);return new Fd([(s+c.x/c.scale)*t,t*(c.y/c.scale),o],[(s+c.x2/c.scale)*t,t*(c.y2/c.scale),a])}function sv(e,{x:t,y:r},i=0){return new v(((t-i)*e.scale-e.x)*oi,(r*e.scale-e.y)*oi)}function ov(e,t,r=0){return yd.fromValues(((t.x-r)*e.scale-e.x)*oi,(t.y*e.scale-e.y)*oi,Lp(t.z,t.y))}const av=hd.identity(new Float32Array(16));class lv{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new Ip(0,0)}projectTilePoint(e,t,r){return{x:e,y:t,z:0}}locationPoint(e,t,r=!0){return e._coordinatePoint(e.locationCoordinate(t),r)}pixelsPerMeter(e,t){return Op(1,e)*t}pixelSpaceConversion(e,t,r){return 1}farthestPixelDistance(e){return rv(e,e.pixelsPerMeter)}pointCoordinate(e,t,r,i){const n=e.horizonLineFromTop(!1),s=new v(t,Math.max(n,r));return e.rayIntersectionCoordinate(e.pointRayIntersection(s,i))}pointCoordinate3D(e,t,r){const i=new v(t,r);
vendor: 6,716 bytes, line 2
2if(e.elevation)return e.elevation.pointCoordinate(i);{const t=this.pointCoordinate(e,i.x,i.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation)return!this.pointCoordinate3D(e,t.x,t.y);const r=e.horizonLineFromTop();return t.y<r}createInversionMatrix(e,t){return av}createTileMatrix(e,t,r){let i,n,s;const o=r.canonical,a=hd.identity(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=iv(o,this);i=1,n=l.x+r.wrap*l.scale,s=l.y,hd.scale(a,a,[i/l.scale,i/l.scale,e.pixelsPerMeter/t])}else i=t/e.zoomScale(o.z),n=(o.x+Math.pow(2,o.z)*r.wrap)*i,s=o.y*i;return hd.translate(a,a,[n,s,0]),hd.scale(a,a,[i/oi,i/oi,1]),a}upVector(e,t,r){return[0,0,1]}upVectorScale(e,t,r){return{metersToTile:1}}}class cv extends lv{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,r]=this.parallels=e.parallels||[29.5,45.5],i=Math.sin(w(t));this.n=(i+Math.sin(w(r)))/2,this.c=1+i*(2*this.n-i),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:r,c:i,r0:n}=this,s=w(e-this.center[0]),o=w(t),a=Math.sqrt(i-2*r*Math.sin(o))/r;return{x:a*Math.sin(s*r),y:a*Math.cos(s*r)-n,z:0}}unproject(e,t){const{n:r,c:i,r0:n}=this,s=n+t;let o=Math.atan2(e,Math.abs(s))*Math.sign(s);s*r<0&&(o-=Math.PI*Math.sign(e)*Math.sign(s));const a=w(this.center[0])*r;o=O(o,-Math.PI-a,Math.PI-a);const l=M(A(o/r)+this.center[0],-180,180),c=Math.asin(M((i-(e*e+s*s)*r*r)/(2*r),-1,1)),u=M(A(c),-Bp,Bp);return new Ip(l,u)}}const uv=1.340264,hv=-.081106,dv=893e-6,pv=.003796,fv=Math.sqrt(3)/2;class mv extends lv{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const r=Math.asin(fv*Math.sin(t)),i=r*r,n=i*i*i;return{x:.5*(e*Math.cos(r)/(fv*(uv+3*hv*i+n*(7*dv+9*pv*i)))/Math.PI+.5),y:1-.5*(r*(uv+hv*i+n*(dv+pv*i))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let r=t=(2*(1-t)-1)*Math.PI,i=r*r,n=i*i*i;for(let e,s,o,a=0;a<12&&(s=r*(uv+hv*i+n*(dv+pv*i))-t,o=uv+3*hv*i+n*(7*dv+9*pv*i),e=s/o,r=M(r-e,-Math.PI/3,Math.PI/3),i=r*r,n=i*i*i,!(Math.abs(e)<1e-12));++a);const s=fv*e*(uv+3*hv*i+n*(7*dv+9*pv*i))/Math.cos(r),o=Math.asin(Math.sin(r)/fv),a=M(180*s/Math.PI,-180,180),l=M(180*o/Math.PI,-Bp,Bp);return new Ip(a,l)}}class gv extends lv{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){return{x:.5+e/360,y:.5-t/360,z:0}}unproject(e,t){const r=360*(e-.5),i=M(360*(.5-t),-Bp,Bp);return new Ip(r,i)}}const yv=Math.PI/2;function vv(e){return Math.tan((yv+e)/2)}class _v extends lv{constructor(e){super(e),this.center=e.center||[0,30];const[t,r]=this.parallels=e.parallels||[30,30];let i=w(t),n=w(r);this.southernCenter=i+n<0,this.southernCenter&&(i=-i,n=-n);const s=Math.cos(i),o=vv(i);this.n=i===n?Math.sin(i):Math.log(s/Math.cos(n))/Math.log(vv(n)/o),this.f=s*Math.pow(vv(i),this.n)/this.n}project(e,t){t=w(t),this.southernCenter&&(t=-t),e=w(e-this.center[0]);const r=1e-6,{n:i,f:n}=this;n>0?t<-yv+r&&(t=-yv+r):t>yv-r&&(t=yv-r);const s=n/Math.pow(vv(t),i);let o=s*Math.sin(i*e),a=n-s*Math.cos(i*e);return o=.5*(o/Math.PI+.5),a=.5*(a/Math.PI+.5),{x:o,y:this.southernCenter?a:1-a,z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,this.southernCenter&&(t=1-t),t=(2*(1-t)-.5)*Math.PI;const{n:r,f:i}=this,n=i-t,s=Math.sign(n),o=Math.sign(r)*Math.sqrt(e*e+n*n);let a=Math.atan2(e,Math.abs(n))*s;n*r<0&&(a-=Math.PI*Math.sign(e)*s);const l=M(A(a/r)+this.center[0],-180,180),c=M(A(2*Math.atan(Math.pow(i/o,1/r))-yv),-Bp,Bp);return new Ip(l,this.southernCenter?-c:c)}}class bv extends lv{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:Mp(e),y:kp(t),z:0}}unproject(e,t){const r=Rp(e),i=Dp(t);return new Ip(r,i)}}const xv=w(Bp);class wv extends lv{project(e,t){const r=(t=w(t))*t,i=r*r;return{x:.5*((e=w(e))*(.8707-.131979*r+i*(i*(.003971*r-.001529*i)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+r*(.015085+i*(.028874*r-.044475-.005916*i)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let r=t=(2*(1-t)-1)*Math.PI,i=25,n=0,s=r*r;do{s=r*r;const e=s*s;n=(r*(1.007226+s*(.015085+e*(.028874*s-.044475-.005916*e)))-t)/(1.007226+s*(.045255+e*(.259866*s-.311325-.005916*11*e))),r=M(r-n,-xv,xv)}while(Math.abs(n)>1e-6&&--i>0);s=r*r;const o=M(A(e/(.8707+s*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979))),-180,180),a=A(r);return new Ip(o,a)}}const Av=w(Bp);class Ev extends lv{project(e,t){t=w(t),e=w(e);const r=Math.cos(t),i=2/Math.PI,n=Math.acos(r*Math.cos(e/2)),s=Math.sin(n)/n,o=.5*(e*i+2*r*Math.sin(e/2)/s)||0,a=.5*(t+Math.sin(t)/s)||0;return{x:.5*(o/Math.PI+.5),y:1-.5*(a/Math.PI+1),z:0}}unproject(e,t){let r=e=(2*e-.5)*Math.PI,i=t=(2*(1-t)-1)*Math.PI,n=25;const s=1e-6;let o=0,a=0;do{const n=Math.cos(i),s=Math.sin(i),l=2*s*n,c=s*s,u=n*n,h=Math.cos(r/2),d=Math.sin(r/2),p=2*h*d,f=d*d,m=1-u*h*h,g=m?1/m:0,y=m?Math.acos(n*h)*Math.sqrt(1/m):0,v=.5*(2*y*n*d+2*r/Math.PI)-e,_=.5*(y*s+i)-t,b=.5*g*(u*f+y*n*h*c)+1/Math.PI,x=g*(p*l/4-y*s*d),w=.125*g*(l*d-y*s*u*p),A=.5*g*(c*h+y*f*n)+.5,E=x*w-A*b;o=(_*x-v*A)/E,a=(v*w-_*b)/E,r=M(r-o,-Math.PI,Math.PI),i=M(i-a,-Av,Av)}while((Math.abs(o)>s||Math.abs(a)>s)&&--n>0);return new Ip(A(r),A(i))}}class Sv extends lv{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(w(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:r,cosPhi:i}=this;return{x:w(e)*i*r+.5,y:-Math.sin(w(t))/i*r+.5,z:0}}unproject(e,t){const{scale:r,cosPhi:i}=this,n=-(t-.5)/r,s=M(A((e-.5)/r)/i,-180,180),o=Math.asin(M(n*i,-1,1)),a=M(A(o),-Bp,Bp);return new Ip(s,a)}}class Tv extends bv{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(e,t,r){const i=sp(e,t,r),n=lp(Xd(r));return yd.transformMat4(i,i,n),{x:i[0],y:i[1],z:i[2]}}locationPoint(e,t){const r=np(t.lat,t.lng),i=yd.normalize([],r),n=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(t),e._centerAltitude):e._centerAltitude,s=Op(1,0)*oi*n;yd.scaleAndAdd(r,r,i,s);const o=hd.identity(new Float64Array(16));return hd.multiply(o,e.pixelMatrix,e.globeMatrix),yd.transformMat4(r,r,o),new v(r[0],r[1])}pixelsPerMeter(e,t){return Op(1,0)*t}pixelSpaceConversion(e,t,r){const i=Op(1,e)*t,n=Wi(Op(1,45)*t,i,r);return this.pixelsPerMeter(e,t)/n}createTileMatrix(e,t,r){const i=cp(Xd(r.canonical));return hd.multiply(new Float64Array(16),e.globeMatrix,i)}createInversionMatrix(e,t){const{center:r}=e,i=lp(Xd(t));return hd.rotateY(i,i,w(r.lng)),hd.rotateX(i,i,w(r.lat)),hd.scale(i,i,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(i)}
vendor: 8,907 bytes, line 2
2pointCoordinate(e,t,r,i){return Yd(e,t,r,!0)||new Up(0,0)}pointCoordinate3D(e,t,r){const i=this.pointCoordinate(e,t,r,0);return[i.x,i.y,i.z]}isPointAboveHorizon(e,t){return!Yd(e,t.x,t.y,!1)}farthestPixelDistance(e){const t=function(e,t){const r=e.cameraToCenterDistance,i=e._centerAltitude*t,n=e._camera,s=e._camera.forward(),o=yd.add([],yd.scale([],s,-r),[0,0,i]),a=e.worldSize/(2*Math.PI),l=[0,0,-a],c=e.width/e.height,u=Math.tan(e.fovAboveCenter),h=yd.scale([],n.up(),u),d=yd.scale([],n.right(),u*c),p=yd.normalize([],yd.add([],yd.add([],s,h),d)),f=[];let m;if(new Od(o,p).closestPointOnSphere(l,a,f)){const t=yd.add([],f,l),r=yd.sub([],t,o);m=Math.cos(e.fovAboveCenter)*yd.length(r)}else{const e=yd.sub([],o,l),t=yd.sub([],l,o);yd.normalize(t,t);const r=yd.length(e)-a;m=Math.sqrt(r*(r+2*a));const i=Math.acos(m/(a+r))-Math.acos(yd.dot(s,t));m*=Math.cos(i)}return 1.01*m}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),r=pp(e.zoom);if(r>0){const i=rv(e,Op(1,e.center.lat)*e.worldSize),n=e.worldSize/(2*Math.PI),s=Math.max(e.width,e.height)/e.worldSize*Math.PI;return Wi(t,i+n*(1-Math.cos(s)),Math.pow(r,10))}return t}upVector(e,t,r){return sp(t,r,e,1)}upVectorScale(e){return{metersToTile:Wd(op(Xd(e)))}}}function Cv(e){const t=e.parallels,r=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new bv(e);case"equirectangular":return new gv(e);case"naturalEarth":return new wv(e);case"equalEarth":return new mv(e);case"winkelTripel":return new Ev(e);case"albers":return r?new Sv(e):new cv(e);case"lambertConformalConic":return r?new Sv(e):new _v(e);case"globe":return new Tv(e)}throw new Error(`Invalid projection name: ${e.name}`)}const Iv=new nl({"symbol-placement":new tl(Pt.layout_symbol["symbol-placement"]),"symbol-spacing":new tl(Pt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new tl(Pt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new rl(Pt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new tl(Pt.layout_symbol["symbol-z-order"]),"symbol-z-elevate":new tl(Pt.layout_symbol["symbol-z-elevate"]),"icon-allow-overlap":new tl(Pt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new tl(Pt.layout_symbol["icon-ignore-placement"]),"icon-optional":new tl(Pt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new tl(Pt.layout_symbol["icon-rotation-alignment"]),"icon-size":new rl(Pt.layout_symbol["icon-size"]),"icon-text-fit":new rl(Pt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new rl(Pt.layout_symbol["icon-text-fit-padding"]),"icon-image":new rl(Pt.layout_symbol["icon-image"]),"icon-rotate":new rl(Pt.layout_symbol["icon-rotate"]),"icon-padding":new tl(Pt.layout_symbol["icon-padding"]),"icon-keep-upright":new tl(Pt.layout_symbol["icon-keep-upright"]),"icon-offset":new rl(Pt.layout_symbol["icon-offset"]),"icon-anchor":new rl(Pt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new tl(Pt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new tl(Pt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new tl(Pt.layout_symbol["text-rotation-alignment"]),"text-field":new rl(Pt.layout_symbol["text-field"]),"text-font":new rl(Pt.layout_symbol["text-font"]),"text-size":new rl(Pt.layout_symbol["text-size"]),"text-max-width":new rl(Pt.layout_symbol["text-max-width"]),"text-line-height":new rl(Pt.layout_symbol["text-line-height"]),"text-letter-spacing":new rl(Pt.layout_symbol["text-letter-spacing"]),"text-justify":new rl(Pt.layout_symbol["text-justify"]),"text-radial-offset":new rl(Pt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new tl(Pt.layout_symbol["text-variable-anchor"]),"text-anchor":new rl(Pt.layout_symbol["text-anchor"]),"text-max-angle":new tl(Pt.layout_symbol["text-max-angle"]),"text-writing-mode":new tl(Pt.layout_symbol["text-writing-mode"]),"text-rotate":new rl(Pt.layout_symbol["text-rotate"]),"text-padding":new tl(Pt.layout_symbol["text-padding"]),"text-keep-upright":new tl(Pt.layout_symbol["text-keep-upright"]),"text-transform":new rl(Pt.layout_symbol["text-transform"]),"text-offset":new rl(Pt.layout_symbol["text-offset"]),"text-allow-overlap":new tl(Pt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new tl(Pt.layout_symbol["text-ignore-placement"]),"text-optional":new tl(Pt.layout_symbol["text-optional"]),visibility:new tl(Pt.layout_symbol.visibility)});var Pv={paint:new nl({"icon-opacity":new rl(Pt.paint_symbol["icon-opacity"]),"icon-emissive-strength":new rl(Pt.paint_symbol["icon-emissive-strength"]),"text-emissive-strength":new rl(Pt.paint_symbol["text-emissive-strength"]),"icon-color":new rl(Pt.paint_symbol["icon-color"]),"icon-halo-color":new rl(Pt.paint_symbol["icon-halo-color"]),"icon-halo-width":new rl(Pt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new rl(Pt.paint_symbol["icon-halo-blur"]),"icon-translate":new tl(Pt.paint_symbol["icon-translate"]),"icon-translate-anchor":new tl(Pt.paint_symbol["icon-translate-anchor"]),"icon-image-cross-fade":new rl(Pt.paint_symbol["icon-image-cross-fade"]),"text-opacity":new rl(Pt.paint_symbol["text-opacity"]),"text-color":new rl(Pt.paint_symbol["text-color"],{runtimeType:Gt,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new rl(Pt.paint_symbol["text-halo-color"]),"text-halo-width":new rl(Pt.paint_symbol["text-halo-width"]),"text-halo-blur":new rl(Pt.paint_symbol["text-halo-blur"]),"text-translate":new tl(Pt.paint_symbol["text-translate"]),"text-translate-anchor":new tl(Pt.paint_symbol["text-translate-anchor"])}),layout:Iv};class Mv{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Ft,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}To(Mv,"FormatSectionOverride",{omit:["defaultValue"]});class kv extends ll{constructor(e,t){super(e,Pv,t)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"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"));const r=this.layout.get("text-writing-mode");if(r){const e=[];for(const t of r)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,t,r,i){const n=this.layout.get(e).evaluate(t,{},r,i),s=this._unevaluatedLayout._values[e];return s.isDataDriven()||ms(s.value)||!n?n:function(e,t){return t.replace(/{([^{}]+)}/g,((t,r)=>r in e?String(e[r]):""))}(t.properties,n)}createBucket(e){return new Gv(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of Pv.paint.overridableProperties){if(!kv.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),r=new Mv(t),i=new fs(r,t.property.specification);let n=null;n="constant"===t.value.kind||"source"===t.value.kind?new ys("source",i):new vs("composite",i,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new $a(t.property,n,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,r){return!(!this.layout||t.isDataDriven()||r.isDataDriven())&&kv.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const r=e.get("text-field"),i=Pv.paint.properties[t];let n=!1;const s=e=>{for(const t of e)if(i.overrides&&i.overrides.hasOverride(t))return void(n=!0)};if("constant"===r.value.kind&&r.value.value instanceof hr)s(r.value.value.sections);else if("source"===r.value.kind){const e=t=>{n||(t instanceof vr&&mr(t.value)===Yt?s(t.value.sections):t instanceof Ar?s(t.sections):t.eachChild(e))},t=r.value;t._styleExpression&&e(t._styleExpression.expression)}return n}getProgramIds(){const e=0!==this.paint.get("icon-opacity").constantOr(1),t=0!==this.paint.get("text-opacity").constantOr(1),r=[];return e&&r.push("symbolIcon"),t&&r.push("symbolSDF"),r}getDefaultProgramParams(e,t){return{config:new jc(this,t),overrideFog:!1}}}const Ov=Gm.types,Rv=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Dv(e,t,r,i,n,s,o,a,l,c,u,h,d){const p=a?Math.min(Xy,Math.round(a[0])):0,f=
vendor: 3,076 bytes, line 2
2a?Math.min(Xy,Math.round(a[1])):0;e.emplaceBack(t,r,Math.round(32*i),Math.round(32*n),s,o,(p<<1)+(l?1:0),f,16*c,16*u,256*h,256*d)}function Lv(e,t,r){e.emplaceBack(t,r)}function Bv(e,t,r,i,n,s,o){e.emplaceBack(t,r,i,n,s,o)}function zv(e,t,r,i,n){const s=5*t+2;e.float32[s+0]=r,e.float32[s+1]=i,e.float32[s+2]=n}function jv(e,t,r,i,n){e.emplaceBack(t,r,i,n),e.emplaceBack(t,r,i,n),e.emplaceBack(t,r,i,n),e.emplaceBack(t,r,i,n)}function Fv(e){for(const t of e.sections)if(Ra(t.text))return!0;return!1}class Nv{constructor(e){this.layoutVertexArray=new El,this.indexArray=new Rl,this.programConfigurations=e,this.segments=new nc,this.dynamicLayoutVertexArray=new bl,this.opacityVertexArray=new Tl,this.placedSymbolArray=new Ql,this.iconTransitioningVertexArray=new Cl,this.globeExtVertexArray=new Sl,this.zOffsetVertexArray=new Bl}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length&&0===this.iconTransitioningVertexArray.length}upload(e,t,r,i,n){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Lg.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,zg.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Rv,!0),this.iconTransitioningVertexArray.length>0&&(this.iconTransitioningVertexBuffer=e.createVertexBuffer(this.iconTransitioningVertexArray,Fg.members,!0)),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Bg.members,!0)),!this.zOffsetVertexBuffer&&(this.zOffsetVertexArray.length>0||n)&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,jg.members,!0)),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.iconTransitioningVertexBuffer&&this.iconTransitioningVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy())}}To(Nv,"SymbolBuffers");class Uv{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new nc,this.collisionVertexArray=new kl,this.collisionVertexArrayExt=new Ol}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Ng.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Ug.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
2stroy())}}To(Uv,"CollisionBuffers");class Vv{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.hasAnyIconTextFit=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=hd.identity([]),this.placementViewportMatrix=hd.identity([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wg(this.zoom,t["text-size"]),this.iconSizeData=Wg(this.zoom,t["icon-size"]);const r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==n&&void 0!==i.constantOr(1),this.sortFeaturesByY=("viewport-y"===n||"auto"===n&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=r.get("text-writing-mode").map((e=>oy[e])),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=e.sourceID,this.projection=e.projection,this.hasAnyZOffset=!1,this.zOffsetSortDirty=!1,this.zOffsetBuffersNeedUpload=r.get("symbol-z-elevate")}createArrays(){this.text=new Nv(new Fc(this.layers,this.zoom,(e=>/^text/.test(e)))),this.icon=new Nv(new Fc(this.layers,this.zoom,(e=>/^icon/.test(e)))),this.glyphOffsetArray=new Kl,this.lineVertexArray=new Jl,this.symbolInstances=new Xl}calculateGlyphDependencies(e,t,r,i,n){for(let r=0;r<e.length;r++){const s=e.codePointAt(r);if(void 0===s)break;if(t[s]=!0,i&&n&&s<=65535){const i=Kg[e.charAt(r)];i&&(t[i.charCodeAt(0)]=!0)}}}populate(e,t,r,i){const n=this.layers[0],s=n.layout,o="globe"===this.projection.name,a=s.get("text-font"),l=s.get("text-field"),c=s.get("icon-image"),u=("constant"!==l.value.kind||l.value.value instanceof hr&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),h="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,d=s.get("symbol-sort-key");if(this.features=[],!u&&!h)return;const p=t.iconDependencies,f=t.glyphDependencies,m=t.availableImages,g=new Wa(this.zoom);for(const{feature:t,id:l,index:c,sourceLayerIndex:y}of e){const e=n._featureFilter.needGeometry,v=Xp(t,e);if(!n._featureFilter.filter(g,v,r))continue;if(e||(v.geometry=Zp(t,r,i)),o&&1!==t.type&&r.z<=5){const e=v.geometry,t=.98078528056,i=(e,i)=>{const n=sp(e.x,e.y,r,1),s=sp(i.x,i.y,r,1);return yd.dot(n,s)<t};for(let t=0;t<e.length;t++)e[t]=Hp(e[t],i)}let _,b;if(u){const e=n.getValueAndResolveTokens("text-field",v,r,m),t=hr.factory(e);Fv(t)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Ga()||this.hasRTLText&&Ha.isParsed())&&(_=Xg(t,n,v))}if(h){const e=n.getValueAndResolveTokens("icon-image",v,r,m);b=e instanceof dr?e:dr.fromString(e)}if(!_&&!b)continue;const x=this.sortFeaturesByKey?d.evaluate(v,{},r):void 0;if(this.features.push({id:l,text:_,icon:b,index:c,sourceLayerIndex:y,geometry:v.geometry,properties:t.properties,type:Ov[t.type],sortKey:x}),b&&(p[b.namePrimary]=!0,b.nameSecondary&&(p[b.nameSecondary]=!0)),_){const e=a.evaluate(v,{},r).join(","),t="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(oy.vertical)>=0;for(const r of _.sections)if(r.image)p[r.image.namePrimary]=!0;else{const i=Ta(_.toString()),n=r.fontStack||e,s=f[n]=f[n]||{};this.calculateGlyphDependencies(r.text,s,t,this.allowVerticalPlacement,i)}}}"line"===s.get("symbol-placement")&&(this.features=function(e){const t={},r={},i=[];let n=0;function s(t){i.push(e[t]),n++}function o(e,t,n){const s=r[e];return delete r[e],r[t]=s,i[s].geometry[0].pop(),i[s].geometry[0]=i[s].geometry[0].concat(n[0]),s}function a(e,r,n){const s=t[r];return delete t[r],t[e]=s,i[s].geometry[0].shift(),i[s].geometry[0]=n[0].concat(i[s].geometry[0]),s}function l(e,t,r){const i=r?t[0][t[0].length-1]:t[0][0];return`${e}:${i.x}:${i.y}`}for(let c=0;c<e.length;c++){const u=e[c],h=u.geometry,d=u.text?u.text.toString():null;if(!d){s(c);continue}const p=l(d,h),f=l(d,h,!0);if(p in r&&f in t&&r[p]!==t[f]){const e=a(p,f,h),n=o(p,f,i[e].geometry);delete t[p],delete r[f],r[l(d,i[n].geometry,!0)]=n,i[e].geometry=null}else p in r?o(p,f,h):f in t?a(p,f,h):(s(c),t[p]=n-1,r[f]=n-1)}return i.filter((e=>e.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>
2e.sortKey-t.sortKey))}update(e,t,r,i,n){const s=0!==Object.keys(e).length;if(s&&!this.stateDependentLayers.length)return;const o=s?this.stateDependentLayers:this.layers;this.text.programConfigurations.updatePaintArrays(e,t,o,r,i,n),this.icon.programConfigurations.updatePaintArrays(e,t,o,r,i,n)}updateZOffset(){const e=(e,t,i)=>{r+=t,r>e.length&&e.resize(r);for(let n=-t;n<0;n++)e.emplace(n+r,i)},t=(e,t,r)=>{i+=t,i>e.length&&e.resize(i);for(let n=-t;n<0;n++)e.emplace(n+i,r)};if(!this.zOffsetBuffersNeedUpload)return;this.zOffsetBuffersNeedUpload=!1;let r=0,i=0;for(let r=0;r<this.symbolInstances.length;r++){const i=this.symbolInstances.get(r),{numHorizontalGlyphVertices:n,numVerticalGlyphVertices:s,numIconVertices:o}=i,a=i.zOffset,l=o>0;if((n>0||s>0)&&(e(this.text.zOffsetVertexArray,n,a),e(this.text.zOffsetVertexArray,s,a)),l){const{placedIconSymbolIndex:e,verticalPlacedIconSymbolIndex:r}=i;e>=0&&t(this.icon.zOffsetVertexArray,o,a),r>=0&&t(this.icon.zOffsetVertexArray,i.numVerticalIconVertices,a)}}this.text.zOffsetVertexBuffer&&this.text.zOffsetVertexBuffer.updateData(this.text.zOffsetVertexArray),this.icon.zOffsetVertexBuffer&&this.icon.zOffsetVertexBuffer.updateData(this.icon.zOffsetVertexArray)}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Cv(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const r=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:e,y:r}of t)this.lineVertexArray.emplaceBack(e,r);return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}}addSymbols(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m){const g=e.indexArray,y=e.layoutVertexArray,v=e.globeExtVertexArray,_=e.segments.prepareSegment(4*t.length,y,g,this.canOverlap?s.sortKey:void 0),b=this.glyphOffsetArray.length,x=_.vertexLength,w=this.allowVerticalPlacement&&o===oy.vertical?Math.PI/2:0,A=s.text&&s.text.sections;for(let i=0;i<t.length;i++){const{tl:n,tr:o,bl:c,br:u,texPrimary:h,texSecondary:b,pixelOffsetTL:x,pixelOffsetBR:E,minFontScaleX:S,minFontScaleY:T,glyphOffset:C,isSDF:I,sectionIndex:P}=t[i],M=_.vertexLength,k=C[1];if(Dv(y,l.x,l.y,n.x,k+n.y,h.x,h.y,r,I,x.x,x.y,S,T),Dv(y,l.x,l.y,o.x,k+o.y,h.x+h.w,h.y,r,I,E.x,x.y,S,T),Dv(y,l.x,l.y,c.x,k+c.y,h.x,h.y+h.h,r,I,x.x,E.y,S,T),Dv(y,l.x,l.y,u.x,k+u.y,h.x+h.w,h.y+h.h,r,I,E.x,E.y,S,T),a){const{x:t,y:r,z:i}=a.anchor,[n,s,o]=a.up;Bv(v,t,r,i,n,s,o),Bv(v,t,r,i,n,s,o),Bv(v,t,r,i,n,s,o),Bv(v,t,r,i,n,s,o),jv(e.dynamicLayoutVertexArray,t,r,i,w)}else jv(e.dynamicLayoutVertexArray,l.x,l.y,l.z,w);if(m){const t=b||h;Lv(e.iconTransitioningVertexArray,t.x,t.y),Lv(e.iconTransitioningVertexArray,t.x+t.w,t.y),Lv(e.iconTransitioningVertexArray,t.x,t.y+t.h),Lv(e.iconTransitioningVertexArray,t.x+t.w,t.y+t.h)}g.emplaceBack(M,M+1,M+2),g.emplaceBack(M+1,M+2,M+3),_.vertexLength+=4,_.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),i!==t.length-1&&P===t[i+1].sectionIndex||e.programConfigurations.populatePaintArrays(y.length,s,s.index,{},d,p,f,A&&A[P])}const E=a?a.anchor:l;e.placedSymbolArray.emplaceBack(E.x,E.y,E.z,l.x,l.y,b,this.glyphOffsetArray.length-b,x,c,u,l.segment,r?r[0]:0,r?r[1]:0,i[0],i[1],o,0,!1,0,h,0)}_commitLayoutVertex(e,t,r,i,n,s,o){e.emplaceBack(t,r,i,n,s,Math.round(o.x),Math.round(o.y))}_addCollisionDebugVertices(e,t,r,i,n,s,o){const a=r.segments.prepareSegment(4,r.layoutVertexArray,r.indexArray),l=a.vertexLength,c=o.tileAnchorX,u=o.tileAnchorY;for(let e=0;e<4;e++)r.collisionVertexArray.emplaceBack(0,0,0,0);r.collisionVertexArrayExt.emplaceBack(t,-e.padding,-e.padding),r.collisionVertexArrayExt.emplaceBack(t,e.padding,-e.padding),r.collisionVertexArrayExt.emplaceBack(t,e.padding,e.padding),r.collisionVertexArrayExt.emplaceBack(t,-e.padding,e.padding),this._commitLayoutVertex(r.layoutVertexArray,i,n,s,c,u,new v(e.x1,e.y1)),this._commitLayoutVertex(r.layoutVertexArray,i,n,s,c,u,new v(e.x2,e.y1)),this._commitLayoutVertex(r.layoutVertexArray,i,n,s,c,u,new v(e.x2,e.y2)),this._commitLayoutVertex(r.layoutVertexArray,i,n,s,c,u,new v(e.x1,e.y2)),a.vertexLength+=4;const h=r.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),a.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,r,i,n,s){for(let o=i;o<n;o++){const i=r.get(o),n=this.getSymbolInstanceTextSize(e,s,t,o);this._addCollisionDebugVertices(i,n,this.textCollisionBox,i.projectedAnchorX,i.projectedAnchorY,i.projectedAnchorZ,s)}}_addIconDebugCollisionBoxes(e,t,r,i,n,s){for(let o=i;o<n;o++){const i=r.get(o),n=this.getSymbolInstanceIconSize(e,t,s.placedIconSymbolIndex);this._addCollisionDebugVertices(i,n,this.iconCollisionBox,i.projectedAnchorX,i.projectedAnchorY,i.projectedAnchorZ,s)}}generateCollisionDebugBuffers(e,t){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Uv(Pl,Vg.members,Cl),this.iconCollisionBox=new Uv(Pl,Vg.members,Cl);const r=Qg(this.iconSizeData,e),i=Qg(this.textSizeData,e);for(let n=0;n<this.symbolInstances.length;n++){const s=this.symbolInstances.get(n);this._addTextDebugCollisionBoxes(i,e,t,s.textBoxStartIndex,s.textBoxEndIndex,s),this._addTextDebugCollisionBoxes(i,e,t,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._addIconDebugCollisionBoxes(r,e,t,s.iconBoxStartIndex,s.iconBoxEndIndex,s),this._addIconDebugCollisionBoxes(r,e,t,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s)}}
vendor: 4,611 bytes, line 2
2getSymbolInstanceTextSize(e,t,r,i){const n=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:i),s=Yg(this.textSizeData,e,n)/qg;return this.tilePixelRatio*s}getSymbolInstanceIconSize(e,t,r){const i=this.icon.placedSymbolArray.get(r),n=Yg(this.iconSizeData,e,i);return this.tilePixelRatio*n}_commitDebugCollisionVertexUpdate(e,t,r){e.emplaceBack(t,-r,-r),e.emplaceBack(t,r,-r),e.emplaceBack(t,r,r),e.emplaceBack(t,-r,r)}_updateTextDebugCollisionBoxes(e,t,r,i,n,s){for(let o=i;o<n;o++){const i=r.get(o),n=this.getSymbolInstanceTextSize(e,s,t,o);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,n,i.padding)}}_updateIconDebugCollisionBoxes(e,t,r,i,n,s){for(let o=i;o<n;o++){const i=r.get(o),n=this.getSymbolInstanceIconSize(e,t,s);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,n,i.padding)}}updateCollisionDebugBuffers(e,t){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const r=Qg(this.iconSizeData,e),i=Qg(this.textSizeData,e);for(let n=0;n<this.symbolInstances.length;n++){const s=this.symbolInstances.get(n);this._updateTextDebugCollisionBoxes(i,e,t,s.textBoxStartIndex,s.textBoxEndIndex,s),this._updateTextDebugCollisionBoxes(i,e,t,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s),this._updateIconDebugCollisionBoxes(r,e,t,s.iconBoxStartIndex,s.iconBoxEndIndex,s.placedIconSymbolIndex),this._updateIconDebugCollisionBoxes(r,e,t,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s.placedIconSymbolIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,r,i,n,s,o,a,l){const c={};if(t<r){const{x1:r,y1:i,x2:n,y2:s,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(t);c.textBox={x1:r,y1:i,x2:n,y2:s,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.textFeatureIndex=p}if(i<n){const{x1:t,y1:r,x2:n,y2:s,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(i);c.verticalTextBox={x1:t,y1:r,x2:n,y2:s,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.verticalTextFeatureIndex=p}if(s<o){const{x1:t,y1:r,x2:i,y2:n,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(s);c.iconBox={x1:t,y1:r,x2:i,y2:n,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.iconFeatureIndex=p}if(a<l){const{x1:t,y1:r,x2:i,y2:n,padding:s,projectedAnchorX:o,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d,featureIndex:p}=e.get(a);c.verticalIconBox={x1:t,y1:r,x2:i,y2:n,padding:s,projectedAnchorX:o,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:h,tileAnchorY:d},c.verticalIconFeatureIndex=p}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const r=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}hasIconTextFit(){return this.hasAnyIconTextFit}addIndicesForPlacedSymbol(e,t){const r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+4*r.numGlyphs;for(let t=r.vertexStartIndex;t<i;t+=4)e.indexArray.emplaceBack(t,t+1,t+2),e.indexArray.emplaceBack(t+1,t+2,t+3)}
2getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),r=Math.cos(e),i=[],n=[],s=[];for(let e=0;e<this.symbolInstances.length;++e){s.push(e);const o=this.symbolInstances.get(e);i.push(0|Math.round(t*o.tileAnchorX+r*o.tileAnchorY)),n.push(o.featureIndex)}return s.sort(((e,t)=>i[e]-i[t]||n[t]-n[e])),s}getSortedIndexesByZOffset(){if(!this.zOffsetSortDirty)return this.symbolInstanceIndexesSortedZOffset;if(!this.symbolInstanceIndexesSortedZOffset){this.symbolInstanceIndexesSortedZOffset=[];for(let e=0;e<this.symbolInstances.length;++e)this.symbolInstanceIndexesSortedZOffset.push(e)}return this.zOffsetSortDirty=!1,this.symbolInstanceIndexesSortedZOffset.sort(((e,t)=>this.symbolInstances.get(t).zOffset-this.symbolInstances.get(e).zOffset))}addToSortKeyRanges(e,t){const r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&&r.sortKey===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex);const{rightJustifiedTextSymbolIndex:r,centerJustifiedTextSymbolIndex:i,leftJustifiedTextSymbolIndex:n,verticalPlacedTextSymbolIndex:s,placedIconSymbolIndex:o,verticalPlacedIconSymbolIndex:a}=t;r>=0&&this.addIndicesForPlacedSymbol(this.text,r),i>=0&&i!==r&&this.addIndicesForPlacedSymbol(this.text,i),n>=0&&n!==i&&n!==r&&this.addIndicesForPlacedSymbol(this.text,n),s>=0&&this.addIndicesForPlacedSymbol(this.text,s),o>=0&&this.addIndicesForPlacedSymbol(this.icon,o),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}To(Vv,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Vv.MAX_GLYPHS=65535,Vv.addDynamicAttributes=jv;var Gv=Vv;const qv=pl([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Hv}=qv,Wv=pl([{name:"a_packed",components:4,type:"Float32"}]),{members:Yv}=Wv,Qv=Gm.types,Zv=Math.cos(Math.PI/180*37.5);class Xv{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new _l,this.layoutVertexArray2=new bl,this.indexArray=new Rl,this.programConfigurations=new Fc(e.layers,e.zoom),this.segments=new nc,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,r,i){this.hasPattern=_m("line",this.layers,t);const n=this.layers[0].layout.get("line-sort-key"),s=[];for(const{feature:t,id:o,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=Xp(t,e);if(!this.layers[0]._featureFilter.filter(new Wa(this.zoom),c,r))continue;const u=n?n.evaluate(c,{},r):void 0,h={id:o,properties:t.properties,type:t.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:Zp(t,r,i),patterns:{},sortKey:u};s.push(h)}n&&s.sort(((e,t)=>
vendor: 5,398 bytes, line 2
2e.sortKey-t.sortKey));const{lineAtlas:o,featureIndex:a}=t,l=this.addConstantDashes(o);for(const i of s){const{geometry:n,index:s,sourceLayerIndex:c}=i;if(l&&this.addFeatureDashes(i,o),this.hasPattern){const e=bm("line",this.layers,i,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(i,n,s,r,o.positions,t.availableImages,t.brightness);a.insert(e[s].feature,n,s,c,this.index)}}addConstantDashes(e){let t=!1;for(const r of this.layers){const i=r.paint.get("line-dasharray").value,n=r.layout.get("line-cap").value;if("constant"!==i.kind||"constant"!==n.kind)t=!0;else{const t=n.value,r=i.value;if(!r)continue;e.addDash(r,t)}}return t}addFeatureDashes(e,t){const r=this.zoom;for(const i of this.layers){const n=i.paint.get("line-dasharray").value,s=i.layout.get("line-cap").value;if("constant"===n.kind&&"constant"===s.kind)continue;let o,a;if("constant"===n.kind){if(o=n.value,!o)continue}else o=n.evaluate({zoom:r},e);a="constant"===s.kind?s.value:s.evaluate({zoom:r},e),t.addDash(o,a),e.patterns[i.id]=t.getKey(o,a)}}update(e,t,r,i,n){const s=0!==Object.keys(e).length;s&&!this.stateDependentLayers.length||this.programConfigurations.updatePaintArrays(e,t,s?this.stateDependentLayers:this.layers,r,i,n)}addFeatures(e,t,r,i,n,s){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,r,i,s)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Yv)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Hv),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,r,i,n,s,o){const a=this.layers[0].layout,l=a.get("line-join").evaluate(e,{}),c=a.get("line-cap").evaluate(e,{}),u=a.get("line-miter-limit"),h=a.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const r of t)this.addLine(r,e,l,c,u,h);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,n,s,i,o)}addLine(e,t,r,i,n,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const o="Polygon"===Qv[t.type];let a=e.length;for(;a>=2&&e[a-1].equals(e[a-2]);)a--;let l=0;for(;l<a-1&&e[l].equals(e[l+1]);)l++;if(a<(o?3:2))return;"bevel"===r&&(n=1.05);const c=this.overscaling<=16?15*oi/(512*this.overscaling):0,u=this.segments.prepareSegment(10*a,this.layoutVertexArray,this.indexArray);let h,d,p,f,m;this.e1=this.e2=-1,o&&(h=e[a-2],m=e[l].sub(h)._unit()._perp());for(let t=l;t<a;t++){if(p=t===a-1?o?e[l+1]:void 0:e[t+1],p&&e[t].equals(p))continue;m&&(f=m),h&&(d=h),h=e[t],m=p?p.sub(h)._unit()._perp():f,f=f||m;let g=f.add(m);0===g.x&&0===g.y||g._unit();const y=f.x*m.x+f.y*m.y,v=g.x*m.x+g.y*m.y,_=0!==v?1/v:1/0,b=2*Math.sqrt(2-2*v),x=v<Zv&&d&&p,w=f.x*m.y-f.y*m.x>0;if(x&&t>l){const e=h.dist(d);if(e>2*c){const t=h.sub(h.sub(d)._mult(c/e)._round());this.updateDistance(d,t),this.addCurrentVertex(t,f,0,0,u),d=t}}const A=d&&p;let E=A?r:o?"butt":i;if(A&&"round"===E&&(_<s?E="miter":_<=2&&(E="fakeround")),"miter"===E&&_>n&&(E="bevel"),"bevel"===E&&(_>2&&(E="flipbevel"),_<n&&(E="miter")),d&&this.updateDistance(d,h),"miter"===E)g._mult(_),this.addCurrentVertex(h,g,0,0,u);else if("flipbevel"===E){if(_>100)g=m.mult(-1);else{const e=_*f.add(m).mag()/f.sub(m).mag();g._perp()._mult(e*(w?-1:1))}this.addCurrentVertex(h,g,0,0,u),this.addCurrentVertex(h,g.mult(-1),0,0,u)}else if("bevel"===E||"fakeround"===E){const e=-Math.sqrt(_*_-1),t=w?e:0,r=w?0:e;if(d&&this.addCurrentVertex(h,f,t,r,u),"fakeround"===E){const e=Math.round(180*b/Math.PI/20);for(let t=1;t<e;t++){let r=t/e;if(.5!==r){const e=r-.5;r+=r*e*(r-1)*((1.0904+y*(y*(3.55645-1.43519*y)-3.2452))*e*e+(.848013+y*(.215638*y-1.06021)))}const i=m.sub(f)._mult(r)._add(f)._unit()._mult(w?-1:1);this.addHalfVertex(h,i.x,i.y,!1,w,0,u)}}p&&this.addCurrentVertex(h,m,-t,-r,u)}else if("butt"===E)this.addCurrentVertex(h,g,0,0,u);else if("square"===E){const e=d?1:-1;d||this.addCurrentVertex(h,g,e,e,u),this.addCurrentVertex(h,g,0,0,u),d&&this.addCurrentVertex(h,g,e,e,u)}else"round"===E&&(d&&(this.addCurrentVertex(h,f,0,0,u),this.addCurrentVertex(h,f,1,1,u,!0)),p&&(this.addCurrentVertex(h,m,-1,-1,u,!0),this.addCurrentVertex(h,m,0,0,u)));if(x&&t<a-1){const e=h.dist(p);if(e>2*c){const t=h.add(p.sub(h)._mult(c/e)._round());this.updateDistance(h,t),this.addCurrentVertex(t,m,0,0,u),h=t}}}}addCurrentVertex(e,t,r,i,n,s=!1){const o=t.y*i-t.x,a=-t.y-t.x*i;this.addHalfVertex(e,t.x+t.y*r,t.y-t.x*r,s,!1,r,n),this.addHalfVertex(e,o,a,s,!0,-i,n)}addHalfVertex({x:e,y:t},r,i,n,s,o,a){this.layoutVertexArray.emplaceBack((e<<1)+(n?1:0),(t<<1)+(s?1:0),Math.round(63*r)+128,Math.round(63*i)+128,1+(0===o?0:o<0?-1:1),0,this.lineS
2oFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),s?this.e2=l:this.e1=l}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}To(Xv,"LineBucket",{omit:["layers","patternFeatures"]});class Kv{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this.update(t,i)}update(e,r,i){const{width:n,height:s}=e,{context:o}=this,{gl:a}=o,{HTMLImageElement:l,HTMLCanvasElement:c,HTMLVideoElement:u,ImageData:h,ImageBitmap:d}=t;if(a.bindTexture(a.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!r||!1!==r.premultiply)),i||this.size&&this.size[0]===n&&this.size[1]===s){const{x:t,y:r}=i||{x:0,y:0};if(e instanceof l||e instanceof c||e instanceof u||e instanceof h||d&&e instanceof d)a.texSubImage2D(a.TEXTURE_2D,0,t,r,a.RGBA,a.UNSIGNED_BYTE,e);else{let i=this.format,o=a.UNSIGNED_BYTE;this.format===a.R32F&&(i=a.RED,o=a.FLOAT),a.texSubImage2D(a.TEXTURE_2D,0,t,r,n,s,i,o,e.data)}}else if(this.size=[n,s],e instanceof l||e instanceof c||e instanceof u||e instanceof h||d&&e instanceof d){let t=this.format;this.format===a.R8&&(t=a.RED),a.texImage2D(a.TEXTURE_2D,0,this.format,t,a.UNSIGNED_BYTE,e)}else{let t=this.format,r=this.format,i=a.UNSIGNED_BYTE;this.format===a.DEPTH_COMPONENT&&(t=a.DEPTH_COMPONENT16,i=a.UNSIGNED_SHORT),this.format===a.R32F&&(i=a.FLOAT,r=a.RED),a.texImage2D(a.TEXTURE_2D,0,t,n,s,0,r,i,e.data)}this.useMipmap=Boolean(r&&r.useMipmap),this.useMipmap&&a.generateMipmap(a.TEXTURE_2D)}bind(e,t){const{context:r}=this,{gl:i}=r;i.bindTexture(i.TEXTURE_2D,this.texture),e!==this.minFilter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,this.useMipmap?e===i.NEAREST?i.NEAREST_MIPMAP_NEAREST:i.LINEAR_MIPMAP_NEAREST:e),this.minFilter=e),t!==this.wrapS&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,t),this.wrapS=t)}bindExtraParam(e,t,r,i){const{context:n}=this,{gl:s}=n;s.bindTexture(s.TEXTURE_2D,this.texture),t!==this.magFilter&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,t),this.magFilter=t),e!==this.minFilter&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,this.useMipmap?e===s.NEAREST?s.NEAREST_MIPMAP_NEAREST:s.LINEAR_MIPMAP_NEAREST:e),this.minFilter=e),r!==this.wrapS&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,r),this.wrapS=r),i!==this.wrapT&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,i),this.wrapT=i)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class Jv{constructor(e,t){this.context=e,this.texture=t}bind(e,t){const{context:r}=this,{gl:i}=r;i.bindTexture(i.TEXTURE_2D,this.texture),e!==this.minFilter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,t),this.wrapS=t)}}
2const $v=32,e_=33,t_=new Uint16Array(8184);for(let e=0;e<2046;e++){let t=e+2,r=0,i=0,n=0,s=0,o=0,a=0;for(1&t?n=s=o=$v:r=i=a=$v;(t>>=1)>1;){const e=r+n>>1,l=i+s>>1;1&t?(n=r,s=i,r=o,i=a):(r=n,i=s,n=o,s=a),o=e,a=l}const l=4*e;t_[l+0]=r,t_[l+1]=i,t_[l+2]=n,t_[l+3]=s}const r_=new Uint16Array(2178),i_=new Uint8Array(1089),n_=new Uint16Array(1089);function s_(e){return 0===e?-.03125:32===e?.03125:0}var o_=pl([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const a_={type:2,extent:oi,loadGeometry:()=>[[new v(0,0),new v(8193,0),new v(8193,8193),new v(0,8193),new v(0,0)]]};class l_{constructor(e,t,r,i,n){this.tileID=e,this.uid=j(),this.uses=0,this.tileSize=t,this.tileZoom=r,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=n,i&&i.style&&(this._lastUpdatedBrightness=i.style.getBrightness()),this.expiredRequestCount=0,this.state="loading",i&&i.transform&&(this.projection=i.transform.projection)}registerFadeDuration(e){const t=e+this.timeAdded;t<ut.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=iv(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(e,t,r){if(this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){const r={};if(!t)return r;for(const i of e){const e=i.layerIds.map((e=>t.getLayer(e))).filter(Boolean);if(0!==e.length){i.layers=e,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)r[t.fqid]=i}}return r}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Gv){if(this.hasSymbolBuckets=!0,!r)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Gv&&t.hasRTLText){this.hasRTLText=!0,Ha.isLoading()||Ha.isLoaded()||"deferred"!==Ga()||qa();break}}this.queryPadding=0;for(const e in this.buckets){const r=this.buckets[e],i=t.style.getOwnLayer(e);if(!i)continue;const n=i.queryRadius(r);this.queryPadding=Math.max(this.queryPadding,n)}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas),this._lastUpdatedBrightness=e.brightness}else this.collisionBoxArray=new Wl}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.fqid]}upload(e){for(const t in this.buckets){const r=this.buckets[t];r.uploadPending()&&r.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Kv(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Kv(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Kv(e,this.lineAtlas.image,t.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e,t,r){if(this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture,r),!t||!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData)return;const i=t.style.getBrightness();(this._lastUpdatedBrightness||i)&&(this._lastUpdatedBrightness&&i&&Math.abs(this._lastUpdatedBrightness-i)<.001||(this._lastUpdatedBrightness=i,this.updateBuckets(void 0,t)))}queryRenderedFeatures(e,t,r,i,n,s,o,a){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:i,pixelPosMatrix:o,transform:s,params:n,tileTransform:this.tileTransform},e,t,r):{}}querySourceFeatures(e,t){const r=this.latestFeatureIndex;if(!r||!r.rawTileData)return;const i=r.loadVTLayers(),n=t?t.sourceLayer:"",s=i._geojsonTileLayer||i[n];if(!s)return;const o=Ms(t&&t.filter),{z:a,x:l,y:c}=this.tileID.canonical,u={z:a,x:l,y:c};for(let t=0;t<s.length;t++){const i=s.feature(t);if(o.needGeometry){const e=Xp(i,!0);
2if(!o.filter(new Wa(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!o.filter(new Wa(this.tileID.overscaledZ),i))continue;const h=r.getId(i,n),d=new gg(i,a,l,c,h);d.tile=u,e.push(d)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}bucketsLoaded(){for(const e in this.buckets)if(this.buckets[e].uploadPending())return!1;return!0}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=ee(e.cacheControl);t["max-age"]&&(this.expirationTime=Date.now()+1e3*t["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const e=Date.now();let r=!1;if(this.expirationTime>e)r=!1;else if(t)if(this.expirationTime<t)r=!0;else{const i=this.expirationTime-t;i?this.expirationTime=e+Math.max(i,3e4):r=!0}else r=!0;r?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){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)}setFeatureState(e,t){this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(e).length&&t&&this.updateBuckets(e,t)}updateBuckets(e,t){if(!this.latestFeatureIndex)return;const r=this.latestFeatureIndex.loadVTLayers(),i=t.style.listImages(),n=t.style.getBrightness();for(const s in this.buckets){if(!t.style.hasLayer(s))continue;const o=this.buckets[s],a=o.layers[0].sourceLayer||"_geojsonTileLayer",l=r[a];let c={};if(e&&(c=e[a],!l||!c||0===Object.keys(c).length))continue;if(o.update(c,l,i,this.imageAtlas&&this.imageAtlas.patternPositions||{},n),o instanceof Xv||o instanceof xm){const e=t.style.getOwnSourceCache(o.layers[0].source);t._terrain&&t._terrain.enabled&&e&&o.programConfigurations.needsUpload&&t._terrain._clearRenderCacheForTile(e.id,this.tileID)}const u=t&&t.style&&t.style.getOwnLayer(s);u&&(this.queryPadding=Math.max(this.queryPadding,u.queryRadius(o)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<ut.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=ut.now()+e}setTexture(e,t){const r=t.context,i=r.gl;this.texture=this.texture||t.getTileTexture(e.width),this.texture?this.texture.update(e,{useMipmap:!0}):(this.texture=new Kv(r,e,i.RGBA,{useMipmap:!0}),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE))}setDependencies(e,t){const r={};for(const e of t)r[e]=!0;this.dependencies[e]=r}hasDependency(e,t){for(const r of e){const e=this.dependencies[r];if(e)for(const r of t)if(e[r])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(e,t){if(!t||"mercator"===t.name||this._tileDebugBuffer)return;const r=Zp(a_,this.tileID.canonical,this.tileTransform)[0],i=new ml,n=new Nl;for(let e=0;e<r.length;e++){const{x:t,y:s}=r[e];i.emplaceBack(t,s),n.emplaceBack(e)}n.emplaceBack(0),this._tileDebugIndexBuffer=e.createIndexBuffer(n),this._tileDebugBuffer=e.createVertexBuffer(i,Ed.members),this._tileDebugSegments=nc.simpleSegment(0,0,i.length,n.length)}_makeTileBoundsBuffers(e,t){if(this._tileBoundsBuffer||!t||"mercator"===t.name)return;const r=Zp(a_,this.tileID.canonical,this.tileTransform)[0];let i,n;if(this.isRaster){const e=function(e,t){const r=iv(e,t),i=Math.pow(2,e.z);for(let n=0;n<e_;n++)for(let s=0;s<e_;s++){const o=Rp((e.x+(s+s_(s))/$v)/i),a=Dp((e.y+(n+s_(n))/$v)/i),l=t.project(o,a),c=n*e_+s;r_[2*c+0]=Math.round((l.x*r.scale-r.x)*oi),r_[2*c+1]=Math.round((l.y*r.scale-r.y)*oi)}i_.fill(0),n_.fill(0);for(let e=2045;e>=0;e--){const t=4*e,r=t_[t+0],i=t_[t+1],n=t_[t+2],s=t_[t+3],o=r+n>>1,a=i+s>>1,l=o+a-i,c=a+r-o,u=i*e_+r,h=s*e_+n,d=a*e_+o,p=Math.hypot((r_[2*u+0]+r_[2*h+0])/2-r_[2*d+0],(r_[2*u+1]+r_[2*h+1])/2-r_[2*d+1])>=16;i_[d]=i_[d]||(p?1:0),e<1022&&(i_[d]=i_[d]||i_[(i+c>>1)*e_+(r+l>>1)]||i_[(s+c>>1)*e_+(n+l>>1)])}const n=new yl,s=new Rl;let o=0;function a(e,t){const r=t*e_+e;return 0===n_[r]&&(n.emplaceBack(r_[2*r+0],r_[2*r+1],e*oi/$v,t*oi/$v),n_[r]=++o),n_[r]-1}function l(e,t,r,i,n,o){const c=e+r>>1,u=t+i>>1;if(Math.abs(e-n)+Math.abs(t-o)>1&&i_[u*e_+c])l(n,o,e,t,c,u),l(r,i,n,o,c,u);else{const l=a(e,t),c=a(r,i),u=a(n,o);s.emplaceBack(l,c,u)}}return l(0,0,$v,$v,$v,0),l($v,$v,0,0,0,$v),{vertices:n,indices:s}}(this.tileID.canonical,t);i=e.vertices,n=e.indices}else{i=new yl,n=new Rl;for(const{x:e,y:t}of r)i.emplaceBack(e,t,0,0);const e=gm(i.int16,void 0,4);for(let t=0;t<e.length;t+=3)n.emplaceBack(e[t],e[t+1],e[t+2])}this._tileBoundsBuffer=e.createVertexBuffer(i,o_.members),this._tileBoundsIndexBuffer=e.createIndexBuffer(n),this._tileBoundsSegments=nc.simpleSegment(0,0,i.length,n.length)}_makeGlobeTileDebugBuffers(e,t){const r=t.projection;if(!r||"globe"!==r.name||t.freezeTileCoverage)return;const i=this.tileID.canonical,n=lp(Jd(i,t)),s=pp(t.zoom);let o;s>0&&(o=hd.invert(new Float64Array(16),t.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(e,i,t,n,o,s),this._makeGlobeTileDebugTextBuffer(e,i,t,n,o,s)}_globePoint(e,t,r,i,n,s,o){let a=sp(e,t,r);if(s){const n=1<<r.z,l=Mp(i.center.lng),c=kp(i.center.lat),u=(r.x+.5)/n-l;let h=0;u>.5?h=-1:u<-.5&&(h=1);let d=(e/oi+r.x)/n+h,p=(t/oi+r.y)/n;d=(d-l)*i._pixelsPerMercatorPixel+l,p=(p-c)*i._pixelsPerMercatorPixel+c;const f=[d*i.worldSize,p*i.worldSize,0];yd.transformMat4(f,f,s),a=Kd(a,f,o)}return yd.transformMat4(a,a,n)}_makeGlobeTileDebugBorderBuffer(e,t,r,i,n,s){const o=new ml,a=new Nl,l=new gl,c=(e,c,u,h,d)=>{const p=(u-e)/(d-1),f=(h-c)/(d-1),m=o.length;for(let u=0;u<d;u++){const h=e+u*p,d=c+u*f;o.emplaceBack(h,d);const g=this._globePoint(h,d,t,r,i,n,s);l.emplaceBack(g[0],g[1],g[2]),a.emplaceBack(m+u)}},u=oi;c(0,0,u,0,16),c(u,0,u,u,16),c(u,u,0,u,16),c(0,u,0,0,16),this._tileDebugIndexBuffer=e.createIndexBuffer(a),this._tileDebugBuffer=e.createVertexBuffer(o,Ed.members),this._globeTileDebugBorderBuffer=e.createVertexBuffer(l,Ad.members),this._tileDebugSegments=nc.simpleSegment(0,0,o.length,a.length)}_makeGlobeTileDebugTextBuffer(e,t,r,i,n,s){const o=new ml,a=new Rl,l=new gl,c=25;a.reserve(32),o.reserve(c),l.reserve(c);const u=(e,t)=>
vendor: 2,107 bytes, line 2
2c*e+t;for(let e=0;e<c;e++){const a=2048*e;for(let e=0;e<c;e++){const c=2048*e;o.emplaceBack(c,a);const u=this._globePoint(c,a,t,r,i,n,s);l.emplaceBack(u[0],u[1],u[2])}}for(let e=0;e<4;e++)for(let t=0;t<4;t++){const r=u(e,t),i=u(e,t+1),n=u(e+1,t),s=u(e+1,t+1);a.emplaceBack(r,i,n),a.emplaceBack(n,i,s)}this._tileDebugTextIndexBuffer=e.createIndexBuffer(a),this._tileDebugTextBuffer=e.createVertexBuffer(o,Ed.members),this._globeTileDebugTextBuffer=e.createVertexBuffer(l,Ad.members),this._tileDebugTextSegments=nc.simpleSegment(0,0,c,32)}}class c_{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){const i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);const n={value:t,timeout:void 0};if(void 0!==r&&(n.timeout=setTimeout((()=>{this.remove(e,n)}),r)),this.data[i].push(n),this.order.push(i),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const r=e.wrapped().key,i=void 0===t?0:this.data[r].indexOf(t),n=this.data[r][i];return this.data[r].splice(i,1),n.timeout&&clearTimeout(n.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const r in this.data)for(const i of this.data[r])e(i.value)||t.push(i);for(const e of t)this.remove(e.value.tileID,e)}}
2class u_{constructor(e,t,r,i){this.id=u_.uniqueIdxCounter,u_.uniqueIdxCounter++,this.context=e;const n=e.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||i||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){this.id=u_.uniqueIdxCounter,u_.uniqueIdxCounter++;const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}u_.uniqueIdxCounter=0;const h_={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class d_{constructor(e,t,r,i,n,s){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.instanceCount=s,this.context=e;const o=e.gl;this.buffer=o.createBuffer(),e.bindVertexBuffer.set(this.buffer),o.bufferData(o.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?o.DYNAMIC_DRAW:o.STATIC_DRAW),this.dynamicDraw||n||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r=0;r<this.attributes.length;r++){const i=t.attributes[this.attributes[r].name];void 0!==i&&e.enableVertexAttribArray(i)}}setVertexAttribPointers(e,t,r){for(let i=0;i<this.attributes.length;i++){const n=this.attributes[i],s=t.attributes[n.name];void 0!==s&&e.vertexAttribPointer(s,n.components,e[h_[n.type]],!1,this.itemSize,n.offset+this.itemSize*(r||0))}}setVertexAttribDivisor(e,t,r){for(let i=0;i<this.attributes.length;i++){const n=t.attributes[this.attributes[i].name];void 0!==n&&this.instanceCount&&this.instanceCount>0&&e.vertexAttribDivisor(n,r)}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class p_{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class f_ extends p_{getDefault(){return lr.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class m_ extends p_{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class g_ extends p_{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class y_ extends p_{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class v_ extends p_{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class __ extends p_{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class b_ extends p_{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class x_ extends p_{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class w_ extends p_{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class A_ extends p_{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class E_ extends p_{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class S_ extends p_{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class T_ extends p_{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class C_ extends p_{getDefault(){const e=this.gl;return[e.ONE,e.ZERO,e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.blendFuncSeparate(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class I_ extends p_{getDefault(){return lr.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor
vendor: 9,212 bytes, line 2
2(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class P_ extends p_{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquationSeparate(e,e),this.current=e,this.dirty=!1)}}class M_ extends p_{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class k_ extends p_{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class O_ extends p_{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}let R_=class extends p_{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}};class D_ extends p_{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class L_ extends p_{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class B_ extends p_{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class z_ extends p_{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class j_ extends p_{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class F_ extends p_{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class N_ extends p_{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class U_ extends p_{getDefault(){return null}set(e){this.gl&&(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}}class V_ extends p_{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class G_ extends p_{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class q_ extends p_{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class H_ extends p_{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class W_ extends H_{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class Y_ extends H_{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Q_ extends H_{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,this.attachment(),t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class Z_ extends Y_{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class X_{constructor(e,t,r,i,n){this.context=e,this.width=t,this.height=r;const s=this.framebuffer=e.gl.createFramebuffer();i&&(this.colorAttachment=new W_(e,s)),n&&(this.depthAttachmentType=n,this.depthAttachment="renderbuffer"===n?new Y_(e,s):new Q_(e,s))}destroy(){const e=this.context.gl;if(this.colorAttachment){const t=this.colorAttachment.get();t&&e.deleteTexture(t)}if(this.depthAttachment&&this.depthAttachmentType)if("renderbuffer"===this.depthAttachmentType){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}else{const t=this.depthAttachment.get();t&&e.deleteTexture(t)}e.deleteFramebuffer(this.framebuffer)}}class K_{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}}K_.ReadOnly=!1,K_.ReadWrite=!0,K_.disabled=new K_(519,K_.ReadOnly,[0,1]);const J_=7680;class $_{constructor(e,t,r,i,n,s){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=n,this.pass=s}}$_.disabled=new $_({func:519,mask:0},0,0,J_,J_,J_);const eb=771;class tb{constructor(e,t,r,i){this.blendFunction=e,this.blendColor=t,this.mask=r,this.blendEquation=i}}tb.Replace=[1,0,1,0],tb.disabled=new tb(tb.Replace,lr.transparent,[!1,!1,!1,!1]),tb.unblended=new tb(tb.Replace,lr.transparent,[!0,!0,!0,!0]),tb.alphaBlended=new tb([1,eb,1,eb],lr.transparent,[!0,!0,!0,!0]),tb.multiply=new tb([774,0,774,0],lr.transparent,[!0,!0,!0,!0]);const rb=1029,ib=2305;class nb{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}}nb.disabled=new nb(!1,rb,ib),nb.backCCW=new nb(!0,rb,ib),nb.backCW=new nb(!0,rb,2304),nb.frontCW=new nb(!0,1028,2304),nb.frontCCW=new nb(!0,1028,ib);class sb{constructor(e){this.gl=e,this.clearColor=new f_(this),this.clearDepth=new m_(this),this.clearStencil=new g_(this),this.colorMask=new y_(this),this.depthMask=new v_(this),this.stencilMask=new __(this),this.stencilFunc=new b_(this),this.stencilOp=new x_(this),this.stencilTest=new w_(this),this.depthRange=new A_(this),this.depthTest=new E_(this),this.depthFunc=new S_(this),this.blend=new T_(this),this.blendFunc=new C_(this),this.blendColor=new I_(this),this.blendEquation=new P_(this),this.cullFace=new M_(this),this.cullFaceSide=new k_(this),this.frontFace=new O_(this),this.program=new R_(this),this.activeTexture=new D_(this),this.viewport=new L_(this),this.bindFramebuffer=new B_(this),this.bindRenderbuffer=new z_(this),this.bindTexture=new j_(this),this.bindVertexBuffer=new F_(this),this.bindElementBuffer=new N_(this),this.bindVertexArrayOES=new U_(this),this.pixelStoreUnpack=new V_(this),this.pixelStoreUnpackPremultiplyAlpha=new G_(this),this.pixelStoreUnpackFlipY=new q_(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extDebugRendererInfo=e.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=e.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=e.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),this.extTextureFloatLinear=e.getExtension("OES_texture_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query_webgl2"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){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.bindVertexArrayOES.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t,r){return new u_(this,e,t,r)}createVertexBuffer(e,t,r,i,n){return new d_(this,e,t,r,i,n)}createRenderbuffer(e,t,r){const i=this.gl,n=i.createRenderbuffer();return this.bindRenderbuffer.set(n),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),n}
2createFramebuffer(e,t,r,i){return new X_(this,e,t,r,i)}clear({color:e,depth:t,stencil:r,colorMask:i}){const n=this.gl;let s=0;e&&(s|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set(i||[!0,!0,!0,!0])),void 0!==t&&(s|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==r&&(s|=n.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),n.clear(s)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(e){_(e.blendFunction,tb.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor),e.blendEquation?this.blendEquation.set(e.blendEquation):this.blendEquation.setDefault()),this.colorMask.set(e.mask)}unbindVAO(){this.bindVertexArrayOES.set(null)}}class ob extends It{constructor(e,t,r){super(),this.id=e,this._onlySymbols=r,t.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))})),t.on("error",(()=>{this._sourceErrored=!0})),this._source=t,this._tiles={},this._cache=new c_(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this.castsShadows=!1,this._coveredTiles={},this._shadowCasterTiles={},this._state=new yg,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("errored"!==t.state&&("loaded"!==t.state||!t.bucketsLoaded()))return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,e.isExtraShadowCaster=this._shadowCasterTiles[e.tileID.key],this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,(()=>{}))}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,(()=>{}))}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const r=this._tiles[t];r.upload(e),r.prepare(this.map.style.imageManager,this.map?this.map.painter:null,this._source.scope)}}getIds(){return D(this._tiles).map((e=>e.tileID)).sort(ab).map((e=>e.key))}getRenderableIds(e,t){const r=[];for(const i in this._tiles)this._isIdRenderable(+i,e,t)&&r.push(this._tiles[i]);return e?r.sort(((e,t)=>{const r=e.tileID,i=t.tileID,n=new v(r.canonical.x,r.canonical.y)._rotate(this.transform.angle),s=new v(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return r.overscaledZ-i.overscaledZ||s.y-n.y||s.x-n.x})).map((e=>e.tileID.key)):r.map((e=>e.tileID)).sort(ab).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t,r){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())&&(r||!this._shadowCasterTiles[e])}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const r=this._tiles[e];r&&("loading"!==r.state&&(r.state=t),this._loadTile(r,this._tileLoaded.bind(this,r,e,t)))}_tileLoaded(e,t,r,i){if(i)if(e.state="errored",404!==i.status)this._source.fire(new Ct
vendor: 5,312 bytes, line 2
2(i,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=ut.now(),"expired"===r&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Tt("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let i=0;i<t.length;i++){const n=t[i];if(e.neighboringTiles&&e.neighboringTiles[n]){const t=this.getTileByID(n);r(e,t),r(t,e)}}function r(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x;const i=t.tileID.canonical.y-e.tileID.canonical.y,n=Math.pow(2,e.tileID.canonical.z),s=t.tileID.key;0===r&&0===i||Math.abs(i)>1||(Math.abs(r)>1&&(1===Math.abs(r+n)?r+=n:1===Math.abs(r-n)&&(r-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),e.neighboringTiles&&e.neighboringTiles[s]&&(e.neighboringTiles[s].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,r,i){for(const n in this._tiles){let s=this._tiles[n];if(i[n]||!s.hasData()||s.tileID.overscaledZ<=t||s.tileID.overscaledZ>r)continue;let o=s.tileID;for(;s&&s.tileID.overscaledZ>t+1;){const e=s.tileID.scaledTo(s.tileID.overscaledZ-1);s=this._tiles[e.key],s&&s.hasData()&&(o=e)}let a=o;for(;a.overscaledZ>t;)if(a=a.scaledTo(a.overscaledZ-1),e[a.key]){i[o.key]=o;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const r=this._loadedParentTiles[e.key];return r&&r.tileID.overscaledZ>=t?r:null}for(let r=e.overscaledZ-1;r>=t;r--){const t=e.scaledTo(r),i=this._getLoadedTile(t);if(i)return i}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const r=Math.ceil(e.width/t)+1,i=Math.ceil(e.height/t)+1,n=Math.floor(r*i*5),s="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,n):n,o="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,s):s;this._cache.setMaxSize(o)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const r in this._tiles){const i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),e[i.tileID.key]=i}this._tiles=e;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(+e,this._tiles[e])}}update(e,t,r,i){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!r)return;let n;if(this.updateCacheSize(e,t),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._shadowCasterTiles={},this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?n=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e=>new Pd(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y))):(n=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!r,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(n=n.filter((e=>this._source.hasTile(e))))):n=[],n.length>0&&this.castsShadows&&i&&"globe"!==this.transform.projection.name&&!this.usedForTerrain&&!lb(this._source.type)){const s=e.coveringZoomLevel({tileSize:t||this._source.tileSize,roundZoom:this._source.roundZoom&&!r}),o=Math.min(s,this._source.maxzoom),a=e.extendTileCoverForShadows(n,i,o);for(const e of a)this._shadowCasterTiles[e.key]=!0,n.push(e)}const s=this._updateRetainedTiles(n);if(lb(this._source.type)&&0!==n.length){const e={},t={},r=Object.keys(s);for(const i of r){const r=s[i],n=this._tiles[i];if(!n||n.fadeEndTime&&n.fadeEndTime<=ut.now())continue;const o=this.findLoadedParent(r,Math.max(r.overscaledZ-ob.maxOverzooming,this._source.minzoom));o&&(this._addTile(o.tileID),e[o.tileID.key]=o.tileID),t[i]=r}const i=n[n.length-1].overscaledZ;for(const e in this._tiles){const r=this._tiles[e];if(s[e]||!r.hasData())continue;let n=r.tileID;for(;n.overscaledZ>i;){n=n.scaledTo(n.overscaledZ-1);const i=this._tiles[n.key];if(i&&i.hasData()&&t[n.key]){s[e]=r.tileID;break}}}for(const t in e)s[t]||(this._coveredTiles[t]=!0,s[t]=e[t])}for(const e in s)this._tiles[e].clearFadeHold();const o=function(e,t){const r=[];for(const i in e)i in t||r.push(i);return r}(this._tiles,s);for(const e of o){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+e)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const r={},i=e.reduce(((e,t)=>
2Math.min(e,t.overscaledZ)),1/0),n=e[0].overscaledZ,s=Math.max(n-ob.maxOverzooming,this._source.minzoom),o=Math.max(n+ob.maxUnderzooming,this._source.minzoom),a={};for(const r of e){const e=this._addTile(r);t[r.key]=r,e.hasData()||i<this._source.maxzoom&&(a[r.key]=r)}this._retainLoadedChildren(a,i,o,t);for(const i of e){let e=this._tiles[i.key];if(e.hasData())continue;if(i.canonical.z>=this._source.maxzoom){const e=i.children(this._source.maxzoom)[0],r=this.getTile(e);if(r&&r.hasData()){t[e.key]=e;continue}}else{const e=i.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let n=e.wasRequested();for(let o=i.overscaledZ-1;o>=s;--o){const s=i.scaledTo(o);if(r[s.key])break;if(r[s.key]=!0,e=this.getTile(s),!e&&n&&(e=this._addTile(s)),e&&(t[s.key]=s,n=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let r,i=this._tiles[e].tileID;for(;i.overscaledZ>0;){if(i.key in this._loadedParentTiles){r=this._loadedParentTiles[i.key];break}t.push(i.key);const e=i.scaledTo(i.overscaledZ-1);if(r=this._getLoadedTile(e),r)break;i=e}for(const e of t)this._loadedParentTiles[e]=r}}_addTile(e){let t=this._tiles[e.key];if(t)return!0!==t.isExtraShadowCaster||!!this._shadowCasterTiles[e.key]||this._reloadTile(e.key,"reloading"),t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const r=Boolean(t);if(!r){const r=this.map?this.map.painter:null;t=new l_(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,r,this._isRaster),this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))}return t?(t.uses++,this._tiles[e.key]=t,r||this._source.fire(new Tt("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),r))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,t,r){const i=[],n=this.transform;if(!n)return i;const s="globe"===n.projection.name,o=Mp(n.center.lng);for(const a in this._tiles){const l=this._tiles[a];if(r&&l.clearQueryDebugViz(),l.holdingForFade())continue;let c;if(s){const e=l.tileID.canonical;if(0===e.z){const t=[Math.abs(M(o,...cb(e,-1))-o),Math.abs(M(o,...cb(e,1))-o)];c=[0,2*t.indexOf(Math.min(...t))-1]}else{const t=[Math.abs(M(o,...cb(e,-1))-o),Math.abs(M(o,...cb(e,0))-o),Math.abs(M(o,...cb(e,1))-o)];c=[t.indexOf(Math.min(...t))-1]}}else c=[0];for(const r of c){const s=e.containsTile(l,n,t,r);s&&i.push(s)}}return i}getShadowCasterCoordinates(){return this._getRenderableCoordinates(!1,!0)}getVisibleCoordinates(e){return this._getRenderableCoordinates(e)}_getRenderableCoordinates(e,t){const r=this.getRenderableIds(e,t).map((e=>this._tiles[e].tileID));for(const e of r)e.projMatrix=this.transform.calculateProjMatrix(e.toUnwrapped());return r}sortCoordinatesByDistance(e){const t=e.slice(),r=this.transform._camera.position,i=this.transform._camera.forward(),n={};for(const e of t){const t=1/(1<<e.canonical.z);n[e.key]=((e.canonical.x+.5)*t+e.wrap-r[0])*i[0]+((e.canonical.y+.5)*t-r[1])*i[1]-r[2]*i[2]}return t.sort(((e,t)=>n[e.key]-n[t.key])),t}hasTransition(){if(this._source.hasTransition())return!0;if(lb(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=ut.now())return!0}return!1}setFeatureState(e,t,r){this._state.updateState(e=e||"_geojsonTileLayer",t,r)}removeFeatureState(e,t,r){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,r)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}
2setDependencies(e,t,r){const i=this._tiles[e];i&&i.setDependencies(t,r)}reloadTilesForDependencies(e,t){for(const r in this._tiles)this._tiles[r].hasDependency(e,t)&&this._reloadTile(+r,"reloading");this._cache.filter((r=>!r.hasDependency(e,t)))}_preloadTiles(e,t){if(!this._sourceLoaded){const r=()=>{this._sourceLoaded&&(this._source.off("data",r),this._preloadTiles(e,t))};return void this._source.on("data",r)}const r=new Map,i=Array.isArray(e)?e:[e],n=this.map.painter.terrain,s=this.usedForTerrain&&n?n.getScaledDemTileSize():this._source.tileSize;for(const e of i){const t=e.coveringTiles({tileSize:s,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const e of t)r.set(e.key,e);this.usedForTerrain&&e.updateElevation(!1)}R(Array.from(r.values()),((e,t)=>{const r=new l_(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(r,(e=>{"raster-dem"===this._source.type&&r.dem&&this._backfillDEM(r),t(e,r)}))}),t)}}function ab(e,t){const r=Math.abs(2*e.wrap)-+(e.wrap<0),i=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||i-r||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function lb(e){return"raster"===e||"image"===e||"video"===e||"custom"===e}function cb(e,t){const r=1<<e.z;return[e.x/r+t,(e.x+1)/r+t]}ob.maxOverzooming=10,ob.maxUnderzooming=3;const ub=pl([{name:"a_pos_3f",components:3,type:"Float32"}]),hb=pl([{name:"a_color_3f",components:3,type:"Float32"}]),db=pl([{name:"a_color_4f",components:4,type:"Float32"}]),pb=pl([{name:"a_uv_2f",components:2,type:"Float32"}]),fb=pl([{name:"a_normal_3f",components:3,type:"Float32"}]),mb=pl([{name:"a_normal_matrix0",components:4,type:"Float32"},{name:"a_normal_matrix1",components:4,type:"Float32"},{name:"a_normal_matrix2",components:4,type:"Float32"},{name:"a_normal_matrix3",components:4,type:"Float32"}]),gb=pl([{name:"a_pbr",components:4,type:"Uint16"},{name:"a_heightBasedEmissiveStrength",components:3,type:"Float32"}]);class yb{constructor(e=0,t=0,r=0,i=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=r,this.right=i}interpolate(e,t,r){return null!=t.top&&null!=e.top&&(this.top=Wi(e.top,t.top,r)),null!=t.bottom&&null!=e.bottom&&(this.bottom=Wi(e.bottom,t.bottom,r)),null!=t.left&&null!=e.left&&(this.left=Wi(e.left,t.left,r)),null!=t.right&&null!=e.right&&(this.right=Wi(e.right,t.right,r)),this}getCenter(e,t){const r=M((this.left+e-this.right)/2,0,e),i=M((this.top+t-this.bottom)/2,0,t);return new v(r,i)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new yb(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function vb(e,t){const r=ne(e,3);hd.fromQuat(e,t),se(e,3,r)}function _b(e,t){const r=pd.identity([]);return pd.rotateZ(r,r,-t),pd.rotateX(r,r,-e),r}function bb(e,t){const r=[e[0],e[1],0],i=[t[0],t[1],0];if(yd.length(r)>=1e-15){const e=yd.normalize([],r);yd.scale(i,e,yd.dot(i,e)),t[0]=i[0],t[1]=i[1]}const n=yd.cross([],t,e);if(yd.len(n)<1e-15)return null;const s=Math.atan2(-n[1],n[0]);return _b(Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2]),s)}class xb{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(e){if(e){const t=e instanceof Up?e:new Up(e[0],e[1],e[2]);
2this._renderWorldCopies&&(t.x=O(t.x,0,1)),this._position=t}else this._position=null}lookAtPoint(e,t){if(this.orientation=null,!this.position)return;const r=this.position,i=this._elevation?this._elevation.getAtPointOrZero(Up.fromLngLat(e)):0,n=Up.fromLngLat(e,i),s=[n.x-r.x,n.y-r.y,n.z-r.z];t||(t=[0,0,1]),t[2]=Math.abs(t[2]),this.orientation=bb(s,t)}setPitchBearing(e,t){this.orientation=_b(w(e),w(-t))}}class wb{constructor(e,t){this._transform=hd.identity([]),this.orientation=t,this.position=e}get mercatorPosition(){const e=this.position;return new Up(e[0],e[1],e[2])}get position(){const e=ne(this._transform,3);return[e[0],e[1],e[2]]}set position(e){var t;e&&se(this._transform,3,[(t=e)[0],t[1],t[2],1])}get orientation(){return this._orientation}set orientation(e){this._orientation=e||pd.identity([]),e&&vb(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=_b(e,t),vb(this._transform,this._orientation)}forward(){const e=ne(this._transform,2);return[-e[0],-e[1],-e[2]]}up(){const e=ne(this._transform,1);return[-e[0],-e[1],-e[2]]}right(){const e=ne(this._transform,0);return[e[0],e[1],e[2]]}getCameraToWorld(e,t){const r=new Float64Array(16);return hd.invert(r,this.getWorldToCamera(e,t)),r}getCameraToWorldMercator(){return this._transform}getWorldToCameraPosition(e,t,r){const i=this.position;yd.scale(i,i,-e);const n=new Float64Array(16);return hd.fromScaling(n,[r,r,r]),hd.translate(n,n,i),n[10]*=t,n}getWorldToCamera(e,t){const r=new Float64Array(16),i=new Float64Array(4),n=this.position;return pd.conjugate(i,this._orientation),yd.scale(n,n,-e),hd.fromQuat(r,i),hd.translate(r,r,n),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=t,r[9]*=t,r[10]*=t,r[11]*=t,r}
2getCameraToClipPerspective(e,t,r,i){const n=new Float64Array(16);return hd.perspective(n,e,t,r,i),n}getCameraToClipOrthographic(e,t,r,i,n,s){const o=new Float64Array(16);return hd.ortho(o,e,t,r,i,n,s),o}getDistanceToElevation(e,t=!1){const r=0===e?0:Op(e,t?Dp(this.position[1]):this.position[1]),i=this.forward();return(r-this.position[2])/i[2]}clone(){return new wb([...this.position],[...this.orientation])}}function Ab(e,t){const r=Sb(e.projection,e.zoom,e.width,e.height),i=function(e,t,r,i,n){const s=new Ip(r.lng-180*Tb,r.lat),o=new Ip(r.lng+180*Tb,r.lat),a=e.project(s.lng,s.lat),l=e.project(o.lng,o.lat),c=-Math.atan2(l.y-a.y,l.x-a.x),u=Up.fromLngLat(r);u.y=M(u.y,-1+Tb,1-Tb);const h=u.toLngLat(),d=e.project(h.lng,h.lat),p=Up.fromLngLat(h);p.x+=Tb;const f=p.toLngLat(),m=e.project(f.lng,f.lat),g=Ib(m.x-d.x,m.y-d.y,c),y=Up.fromLngLat(h);y.y+=Tb;const v=y.toLngLat(),_=e.project(v.lng,v.lat),b=Ib(_.x-d.x,_.y-d.y,c),x=Math.abs(g.x)/Math.abs(b.y),w=hd.identity([]);hd.rotateZ(w,w,-c*(1-(n?0:i)));const A=hd.identity([]);return hd.scale(A,A,[1,1-(1-x)*i,1]),A[4]=-b.x/b.y*i,hd.rotateZ(A,A,c),hd.multiply(A,w,A),A}(e.projection,0,e.center,r,t),n=Eb(e);return hd.scale(i,i,[n,n,1]),i}function Eb(e){const t=e.projection,r=Sb(e.projection,e.zoom,e.width,e.height),i=Cb(t,e.center),n=Cb(t,Ip.convert(t.center));return Math.pow(2,i*r+(1-r)*n)}function Sb(e,t,r,i,n=1/0){const s=e.range;if(!s)return 0;const o=Math.min(n,Math.max(r,i)),a=Math.log(o/1024)/Math.LN2;return k(s[0]+a,s[1]+a,t)}const Tb=1/4e4;function Cb(e,t){const r=M(t.lat,-Bp,Bp),i=new Ip(t.lng-180*Tb,r),n=new Ip(t.lng+180*Tb,r),s=e.project(i.lng,r),o=e.project(n.lng,r),a=Up.fromLngLat(i),l=Up.fromLngLat(n),c=o.x-s.x,u=o.y-s.y,h=l.x-a.x,d=l.y-a.y,p=Math.sqrt((h*h+d*d)/(c*c+u*u));return Math.log(p)/Math.LN2}function Ib(e,t,r){const i=Math.cos(r),n=Math.sin(r);return{x:e*i-t*n,y:e*n+t*i}}function Pb(e,t,r){return t*(oi/(e.tileSize*Math.pow(2,r-e.tileID.overscaledZ)))}const Mb=0,kb=1,Ob=2,Rb=Math.tan(85*Math.PI/180);function Db(e,t,r,i,n,s,o){const a=hd.create();if(r)if("globe"===s.name){const e=function(e,t){const{x:r,y:i}=e.point,n=dp(r,i,e.worldSize/e._pixelsPerMercatorPixel,0,0);return hd.multiply(n,n,cp(Xd(t)))}(n,t);hd.multiply(a,a,e)}else{const e=od.invert([],o);a[0]=e[0],a[1]=e[1],a[4]=e[2],a[5]=e[3],i||hd.rotateZ(a,a,n.angle)}else hd.multiply(a,n.labelPlaneMatrix,e);return a}function Lb(e,t,r,i,n,s,o){const a=Db(e,t,r,i,n,s,o);return"globe"===s.name&&r||(a[2]=a[6]=a[10]=a[14]=0),a}function Bb(e,t,r,i,n,s,o){if(r){if("globe"===s.name){const a=Db(e,t,r,i,n,s,o);return hd.invert(a,a),hd.multiply(a,e,a),a}{const t=hd.clone(e),r=hd.identity([]);return r[0]=o[0],r[1]=o[1],r[4]=o[2],r[5]=o[3],hd.multiply(t,t,r),i||hd.rotateZ(t,t,-n.angle),t}}return n.glCoordMatrix}function zb(e,t,r,i){const n=[e,t,r,1];r?id.transformMat4(n,n,i):Qb(n,n,i);const s=n[3];return n[0]/=s,n[1]/=s,n[2]/=s,n}function jb(e,t){return Math.min(.5+e/t*.5,1.5)}function Fb(e,t){const r=e[0]/e[3],i=e[1]/e[3];return r>=-t[0]&&r<=t[0]&&i>=-t[1]&&i<=t[1]}function Nb(e,t,r,i,n,s,o,a,l,c){const u=r.transform,h=i?e.textSizeData:e.iconSizeData,d=Qg(h,r.transform.zoom),p="globe"===u.projection.name,f=[256/r.width*2+1,256/r.height*2+1],m=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;m.clear();let g=null;p&&(g=i?e.text.globeExtVertexArray:e.icon.globeExtVertexArray);const y=e.lineVertexArray,_=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,b=r.transform.width/r.transform.height;let x,w=!1;for(let i=0;i<_.length;i++){const p=_.get(i),{numGlyphs:A,writingMode:E}=p;if(E!==oy.vertical||w||x===oy.horizontal||(w=!0),x=E,(p.hidden||E===oy.vertical)&&!w){Yb(A,m);continue}w=!1;const S=new v(p.tileAnchorX,p.tileAnchorY);let{x:T,y:C,z:I}=u.projection.projectTilePoint(S.x,S.y,c.canonical);if(l){const[e,t,r]=l(S);T+=e,C+=t,I+=r}const P=[T,C,I,1];if(id.transformMat4(P,P,t),!Fb(P,f)){Yb(A,m);continue}const M=P[3],k=jb(r.transform.getCameraToCenterDistance(u.projection),M),O=Yg(h,d,p),R=o?O/k:O*k,D=zb(T,C,I,n);if(D[3]<=0){Yb(A,m);continue}let L={};const B=o?null:l,z=Gb(p,R,!1,a,t,n,s,e.glyphOffsetArray,y,m,g,D,S,L,b,B,u.projection,c,o);w=z.useVertical,B&&z.needsFlipping&&(L={}),(z.notEnoughRoom||w||z.needsFlipping&&Gb(p,R,!0,a,t,n,s,e.glyphOffsetArray,y,m,g,D,S,L,b,B,u.projection,c,o).notEnoughRoom)&&Yb(A,m)}i?(e.text.dynamicLayoutVertexBuffer.updateData(m),g&&e.text.globeExtVertexBuffer&&e.text.globeExtVertexBuffer.updateData(g)):(e.icon.dynamicLayoutVertexBuffer.updateData(m),g&&e.icon.globeExtVertexBuffer&&e.icon.globeExtVertexBuffer.updateData(g))}function Ub(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m){const{lineStartIndex:g,glyphStartIndex:y,segment:v}=a,_=y+a.numGlyphs,b=g+a.lineLength,x=t.getoffsetX(y),w=t.getoffsetX(_-1),A=Wb(e*x,r,i,n,s,o,v,g,b,l,c,u,h,d,!0,p,f,m);if(!A)return null;const E=Wb(e*w,r,i,n,s,o,v,g,b,l,c,u,h,d,!0,p,f,m);return E?{first:A,last:E}:null}
2function Vb(e,t,r,i){return e===oy.horizontal&&Math.abs(i)>Math.abs(r)?{useVertical:!0}:e===oy.vertical?i>0?{needsFlipping:!0}:null:t!==Mb&&function(e,t){return 0===e||Math.abs(t/e)>Rb}(r,i)?t===kb?{needsFlipping:!0}:null:r<0?{needsFlipping:!0}:null}function Gb(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,_){const b=t/24,x=e.lineOffsetX*b,w=e.lineOffsetY*b,{lineStartIndex:A,glyphStartIndex:E,numGlyphs:S,segment:T,writingMode:C,flipState:I}=e,P=A+e.lineLength,M=e=>{if(u){const[t,r,i]=e.up,n=c.length;zv(u,n+0,t,r,i),zv(u,n+1,t,r,i),zv(u,n+2,t,r,i),zv(u,n+3,t,r,i)}const[t,r,i]=e.point;jv(c,t,r,i,e.angle)};if(S>1){const t=Ub(b,a,x,w,r,h,d,e,l,s,p,m,!1,g,y,_);if(!t)return{notEnoughRoom:!0};if(i&&!r){let[r,i,n]=t.first.point,[s,a,l]=t.last.point;[r,i]=zb(r,i,n,o),[s,a]=zb(s,a,l,o);const c=Vb(C,I,(s-r)*f,a-i);if(e.flipState=c&&c.needsFlipping?kb:Ob,c)return c}M(t.first);for(let e=E+1;e<E+S-1;e++){const t=Wb(b*a.getoffsetX(e),x,w,r,h,d,T,A,P,l,s,p,m,!1,!1,g,y,_);if(!t)return c.length-=4*(e-E),{notEnoughRoom:!0};M(t)}M(t.last)}else{if(i&&!r){const t=zb(d.x,d.y,0,n),r=A+T+1,i=new v(l.getx(r),l.gety(r)),s=zb(i.x,i.y,0,n),o=s[3]>0?s:Hb(d,i,t,1,n,void 0,g,y.canonical),a=Vb(C,I,(o[0]-t[0])*f,o[1]-t[1]);if(e.flipState=a&&a.needsFlipping?kb:Ob,a)return a}const t=Wb(b*a.getoffsetX(E),x,w,r,h,d,T,A,P,l,s,p,m,!1,!1,g,y,_);if(!t)return{notEnoughRoom:!0};M(t)}return{}}function qb(e,t,r,i,n){const{x:s,y:o,z:a}=i.projectTilePoint(e.x,e.y,t);if(!n)return zb(s,o,a,r);const[l,c,u]=n(e);return zb(s+l,o+c,a+u,r)}function Hb(e,t,r,i,n,s,o,a){const l=qb(e.sub(t)._unit()._add(e),a,n,o,s);return yd.sub(l,r,l),yd.normalize(l,l),yd.scaleAndAdd(l,r,l,i)}function Wb(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y){const _=i?e-t:e+t;let b=_>0?1:-1,x=0;i&&(b*=-1,x=Math.PI),b<0&&(x+=Math.PI);let w=a+o+(b>0?0:1)|0,A=n,E=n,S=0,T=0;const C=Math.abs(_),I=[],P=[];let M=s,k=M;const O=()=>Hb(k,M,E,C-S+1,u,d,m,g.canonical);for(;S+T<=C;){if(w+=b,w<a||w>=l)return null;if(E=A,k=M,I.push(E),p&&P.push(k),M=new v(c.getx(w),c.gety(w)),A=h[w],!A){const e=qb(M,g.canonical,u,m,d);A=e[3]>0?h[w]=e:O()}S+=T,T=yd.distance(E,A)}f&&d&&(h[w]&&(A=O(),T=yd.distance(E,A)),h[w]=A);const R=(C-S)/T,D=M.sub(k)._mult(R)._add(k),L=yd.sub([],A,E),B=yd.scaleAndAdd([],E,L,R);let z=[0,0,1],j=L[0],F=L[1];if(y&&(z=m.upVector(g.canonical,D.x,D.y),0!==z[0]||0!==z[1]||1!==z[2])){const e=[z[2],0,-z[0]],t=yd.cross([],z,e);yd.normalize(e,e),yd.normalize(t,t),j=yd.dot(L,e),F=yd.dot(L,t)}if(r){const e=yd.cross([],z,L);yd.normalize(e,e),yd.scaleAndAdd(B,B,e,r*b)}const N=x+Math.atan2(F,j);return I.push(B),p&&P.push(D),{point:B,angle:N,path:I,tilePath:P,up:z}}function Yb(e,t){const r=t.length,i=r+4*e;t.resize(i),t.float32.fill(-1/0,4*r,4*i)}function Qb(e,t,r){const i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e[3]=r[3]*i+r[7]*n+r[15],e}const Zb=(e,t,r)=>(1-r)*e+r*t,Xb=e=>e*e*e*e*e;class Kb{constructor(e,t,r,i,n,s,o){this.tileSize=512,this._renderWorldCopies=void 0===n||n,this._minZoom=e||0,this._maxZoom=t||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setProjection(s),this.setMaxBounds(o),this.width=0,this.height=0,this._center=new Ip(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new yb,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new wb,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1,this._orthographicProjectionAtLowPitch=!1}clone(){const e=new Kb(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForE
2xaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.mercatorFromTransition=this.mercatorFromTransition,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}get isOrthographic(){return"globe"!==this.projection.name&&this._orthographicProjectionAtLowPitch&&this.pitch<15}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}get depthOcclusionForSymbolsAndCircles(){return"globe"!==this.projection.name&&!this.isOrthographic}updateElevation(e,t=!1){const r=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForE
vendor: 3,797 bytes, line 2
2xaggeration;(null==this._seaLevelZoom||r)&&this._updateCameraOnTerrain(),(e||r)&&this._constrainCamera(t),this._calcMatrices()}getProjection(){return B(this.projection,["name","center","parallels"])}setProjection(e){this.projectionOptions=e||{name:"mercator"};const t=this.projection?this.getProjection():void 0;this.projection=Cv(this.projectionOptions);const r=!_(t,this.getProjection());return r&&this._calcMatrices(),this.mercatorFromTransition=!1,r}setOrthographicProjectionAtLowPitch(e){return this._orthographicProjectionAtLowPitch!==e&&(this._orthographicProjectionAtLowPitch=e,this._calcMatrices(),!0)}setMercatorFromTransition(){const e=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=Cv({name:"mercator"});const t=e!==this.projection.name;return t&&this._calcMatrices(),t}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return Op(1,this.center.lat)*this.cameraWorldSizeForFog}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new v(this.width,this.height)}get bearing(){return O(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(e){const t=-e*Math.PI/180;this.angle!==t&&(this._unmodified=!1,this.angle=t,this._calcMatrices(),this.rotationMatrix=od.create(),od.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const t=M(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==t&&(this._unmodified=!1,this._pitch=t,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const e=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/e)}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=w(e),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}_updateCameraOnTerrain(){const e=this.elevation?this.elevation.getAtPoint(this.locationCoordinate(this.center),Number.NEGATIVE_INFINITY):Number.NEGATIVE_INFINITY,t=this.elevation&&e===Number.NEGATIVE_INFINITY&&this.elevation.visibleDemTiles.length>0&&this.elevation.exaggeration()>
vendor: 4,727 bytes, line 2
20&&this._centerAltitudeValidForExaggeration;if(!this._elevation||e===Number.NEGATIVE_INFINITY&&(!t||!this._centerAltitude))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const r=this._elevation;t||this._centerAltitude&&this._centerAltitudeValidForExaggeration&&r.exaggeration()&&this._centerAltitudeValidForExaggeration!==r.exaggeration()?(this._centerAltitude=this._centerAltitude/this._centerAltitudeValidForExaggeration*r.exaggeration(),this._centerAltitudeValidForExaggeration=r.exaggeration()):(this._centerAltitude=e||0,this._centerAltitudeValidForExaggeration=r.exaggeration()),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const e=this._elevation,t=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop();let i=0,n=0;for(let s=0;s<t.length;s++){const o=new v(t[s][0]*this.width,r+t[s][1]*(this.height-r)),a=e.pointCoordinate(o);if(!a)continue;const l=1/Math.hypot(a[0]-this._camera.position[0],a[1]-this._camera.position[1]);i+=a[3]*l,n+=l}return 0===n?NaN:i/n}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const e=this._seaLevelZoom,t=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),r=this.pixelsPerMeter/this.worldSize*t,i=this._mercatorZfromZoom(e),n=this._mercatorZfromZoom(this._maxZoom),s=Math.max(i-r,n);this._setZoom(this._zoomFromMercatorZ(s))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(e){const t=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,e.toAltitude()));let r;r=e.z<this._camera.position[2]?[t.x,t.y,t.z]:[e.x,e.y,e.z];const i=yd.length(yd.sub([],this._camera.position,r));return M(this._zoomFromMercatorZ(i),this._minZoom,this._maxZoom)}setFreeCameraOptions(e){if(!this.height)return;if(!e.position&&!e.orientation)return;this._updateCameraState();let t=!1;if(e.orientation&&!pd.exactEquals(e.orientation,this._camera.orientation)&&(t=this._setCameraOrientation(e.orientation)),e.position){const r=[e.position.x,e.position.y,e.position.z];yd.exactEquals(r,this._camera.position)||(this._setCameraPosition(r),t=!0)}t&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const e=this._camera.position,t=new xb;return t.position=new Up(e[0],e[1],e[2]),t.orientation=this._camera.orientation,t._elevation=this.elevation,t._renderWorldCopies=this.renderWorldCopies,t}_setCameraOrientation(e){if(!pd.length(e))return!1;pd.normalize(e,e);const t=yd.transformQuat([],[0,0,-1],e),r=yd.transformQuat([],[0,-1,0],e);if(r[2]<0)return!1;const i=bb(t,r);return!!i&&(this._camera.orientation=i,!0)}_setCameraPosition(e){const t=this.zoomScale(this.minZoom)*this.tileSize,r=this.zoomScale(this.maxZoom)*this.tileSize,i=this.cameraToCenterDistance;e[2]=M(e[2],i/r,i/t),this._camera.position=e}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(e){const t=[new Id(0,e)];if(this.renderWorldCopies){const r=this.pointCoordinate(new v(0,0)),i=this.pointCoordinate(new v(this.width,0)),n=this.pointCoordinate(new v(this.width,this.height)),s=this.pointCoordinate(new v(0,this.height)),o=Math.floor(Math.min(r.x,i.x,n.x,s.x)),a=Math.floor(Math.max(r.x,i.x,n.x,s.x)),l=1;for(let r=o-l;r<=a+l;r++)0!==r&&t.push(new Id(r,e))}return t}isLODDisabled(e){return(!e||this.pitch<=60)&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace}extendTileCoverForShadows(e,t,r){let i=[];if(0===t[0]&&0===t[1])return i;for(const r of e){const e=r.canonical,n=r.overscaledZ,s=r.wrap,o=1<<e.z,a=e.x+1<o,l=e.x>0,c=e.y+1<o,u=e.y>
20,h=r.wrap-(l?0:1),d=r.wrap+(a?0:1),p=l?e.x-1:o-1,f=a?e.x+1:0;t[0]<0?(i.push(new Pd(n,d,e.z,f,e.y)),t[1]<0&&c&&(i.push(new Pd(n,s,e.z,e.x,e.y+1)),i.push(new Pd(n,d,e.z,f,e.y+1))),t[1]>0&&u&&(i.push(new Pd(n,s,e.z,e.x,e.y-1)),i.push(new Pd(n,d,e.z,f,e.y-1)))):t[0]>0?(i.push(new Pd(n,h,e.z,p,e.y)),t[1]<0&&c&&(i.push(new Pd(n,s,e.z,e.x,e.y+1)),i.push(new Pd(n,h,e.z,p,e.y+1))),t[1]>0&&u&&(i.push(new Pd(n,s,e.z,e.x,e.y-1)),i.push(new Pd(n,h,e.z,p,e.y-1)))):t[1]<0&&c?i.push(new Pd(n,s,e.z,e.x,e.y+1)):u&&i.push(new Pd(n,s,e.z,e.x,e.y-1))}if(i.length>1){i.sort(((e,t)=>e.overscaledZ-t.overscaledZ||e.wrap-t.wrap||e.canonical.z-t.canonical.z||e.canonical.x-t.canonical.x||e.canonical.y-t.canonical.y));let e=0,t=0;for(;t<i.length;)i[t].equals(i[e])?++t:i[++e]=i[t++];i.length=e+1}const n=[];for(const e of i)i.some((t=>e.isChildOf(t)))||n.push(e);return i=n.filter((t=>!e.some((e=>!!(t.overscaledZ<r&&e.isChildOf(t))||t.equals(e)||t.isChildOf(e))))),i}coveringTiles(e){let t=this.coveringZoomLevel(e);const r=t,i=this.elevation&&this.elevation.exaggeration(),n=i&&!e.isTerrainDEM,s="mercator"===this.projection.name;if(void 0!==e.minzoom&&t<e.minzoom)return[];void 0!==e.maxzoom&&t>e.maxzoom&&(t=e.maxzoom);const o=this.locationCoordinate(this.center),a=this.center.lat,l=1<<t,c=[l*o.x,l*o.y,0],u="globe"===this.projection.name,h=!u,d=jd.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,t,h),p=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),f=l*Op(1,this.center.lat),m=this._camera.position[2]/Op(1,this.center.lat),g=[l*p.x,l*p.y,m*(h?1:f)],y=u||i,v=this.cameraToCenterDistance/e.tileSize*(e.roundZoom?1:.502),_=this.isLODDisabled(!0)?t:0,b=e.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,x=e.isTerrainDEM?-b:this._elevation?this._elevation.getMinElevationBelowMSL():0,w=this.projection.isReprojectedInTileSpace?Eb(this):1,A=e=>{const t=1/4e4,r=new Up(e.x+t,e.y,e.z),i=new Up(e.x,e.y+t,e.z),n=e.toLngLat(),s=r.toLngLat(),o=i.toLngLat(),a=this.locationCoordinate(n),l=this.locationCoordinate(s),c=this.locationCoordinate(o),u=Math.hypot(l.x-a.x,l.y-a.y),h=Math.hypot(c.x-a.x,c.y-a.y);return Math.sqrt(u*h)*w/t},S=e=>{const t=b,r=x;return{aabb:nv(this,l,0,0,0,e,r,t,this.projection),zoom:0,x:0,y:0,minZ:r,maxZ:t,wrap:e,fullyVisible:!1}},T=[];let C=[];const I=t,P=e.reparseOverscaled?r:t,M=e=>e*e,k=M((m-this._centerAltitude)*f),O=e=>{if(!this._elevation||!e.tileID||!s)return;const t=this._elevation.getMinMaxForTile(e.tileID),r=e.aabb;t?(r.min[2]=t.min,r.max[2]=t.max,r.center[2]=(r.min[2]+r.max[2])/2):(e.shouldSplit=R(e),e.shouldSplit||(r.min[2]=r.max[2]=r.center[2]=this._centerAltitude))},R=e=>{if(e.zoom<_)return!0;if(e.zoom===I)return!1;if(null!=e.shouldSplit)return e.shouldSplit;const t=e.aabb.distanceX(g),i=e.aabb.distanceY(g);let s=k,o=1;if(u){s=M(e.aabb.distanceZ(g));const t=Math.pow(2,e.zoom),r=Dp((e.y+1)/t),i=Dp(e.y/t),n=Math.min(Math.max(a,r),i),l=Pp(n)/Pp(a);if(o=n===a?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,l/this._mercatorScaleRatio),this.zoom<=5&&e.zoom===I-1&&l>=.9)return!0}else if(n&&(s=M(e.aabb.distanceZ(g)*f)),this.projection.isReprojectedInTileSpace&&r<=5){const t=Math.pow(2,e.zoom),r=A(new Up((e.x+.5)/t,(e.y+.5)/t));o=r>.85?1:r}const l=t*t+i*i+s,c=M((1<<I-e.zoom)*v*o*((e,t)=>{if(t*M(.707)<e)return 1;const r=Math.sqrt(t/e);return r/(1.4144271570014144+(Math.pow(1.1,r-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(s,k),l));return l<c};if(this.renderWorldCopies)for(let e=1;e<=3;e++)T.push(S(-e)),T.push(S(e));for(T.push(S(0));T.length>0;){const r=T.pop(),i=r.x,o=r.y;let a=r.fullyVisible;const h=()=>"globe"===this.projection.name&&(0===r.y||r.y===(1<<r.zoom)-1);if(!a){let e=y?r.aabb.intersects(d):r.aabb.intersectsFlat(d);if(0===e&&h()){const t=new Cd(r.zoom,i,o);e=ep(this,l,t,!0).intersects(d)}if(0===e)continue;a=2===e}if(r.zoom!==I&&R(r))for(let e=0;e<4;e++){const t=(i<<1)+e%2,c=(o<<1)+(e>>1),h={aabb:s?r.aabb.quadrant(e):nv(this,l,r.zoom+1,t,c,r.wrap,r.minZ,r.maxZ,this.projection),zoom:r.zoom+1,x:t,y:c,wrap:r.wrap,fullyVisible:a,tileID:void 0,shouldSplit:void 0,minZ:r.minZ,maxZ:r.maxZ};n&&!u&&(h.tileID=new Pd(r.zoom+1===I?P:r.zoom+1,r.wrap,r.zoom+1,t,c),O(h)),T.push(h)}else{const n=r.zoom===I?P:r.zoom;if(e.minzoom&&e.minzoom>n)continue;if(!a){let e=y?r.aabb.intersectsPrecise(d):r.aabb.intersectsPreciseFlat(d);if(0===e&&h()){const t=new Cd(r.zoom,i,o);e=ep(this,l,t,!0).intersectsPrecise(d)}if(0===e)continue}const s=c[0]-(.5+i+(r.wrap<<r.zoom))*(1<<t-r.zoom),u=c[1]-.5-o,p=r.tileID?r.tileID:new Pd(n,r.wrap,r.zoom,i,o);C.push({tileID:p,distanceSq:s*s+u*u})}}if(this.fogCullDistSq){const t=this.fogCullDistSq,r=this.horizonLineFromTop();C=C.filter((i=>{const n=[0,0,0,1],s=[oi,oi,0,1],o=this.calculateFogTileMatrix(i.tileID.toUnwrapped());id.transformMat4(n,n,o),id.transformMat4(s,s,o);const a=function(e,t){let r=0;for(let i=0;i<2;++i){const n=0;e[i]>n&&(r+=(e[i]-n)*(e[i]-n)),t[i]<n&&(r+=(n-t[i])*(n-t[i]))}return r}(id.min([],n,s),id.max([],n,s));if(0===a)return!0;let l=!1;const c=this._elevation;if(c&&a>t&&0!==r){const t=this.calculateProjMatrix(i.tileID.toUnwrapped());let n;e.isTerrainDEM||(n=c.getMinMaxForTile(i.tileID)),n||(n={min:x,max:b});const s=function(e){const t=Math.round((e+45+360)%360/90)%4;return E[t]}(this.rotation),o=[s[0]*oi,s[1]*oi,n.max];
2yd.transformMat4(o,o,t),l=(1-o[1])*this.height*.5<r}return a<t||l}))}return C.sort(((e,t)=>e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(e){const t=M(e.lat,-Bp,Bp),r=this.projection.project(e.lng,t);return new v(r.x*this.worldSize,r.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/Op(1,this.center.lat)/this.worldSize}setLocationAtPoint(e,t){let r,i;const n=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;r=(t.x-n.x)/e,i=(t.y-n.y)/e}else{const e=this.pointCoordinate(t),s=this.pointCoordinate(n);r=e.x-s.x,i=e.y-s.y}const s=this.locationCoordinate(e);this.setLocation(new Up(s.x-r,s.y-i))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this.projection.locationPoint(this,e,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(e,t){const r=t?Op(t,e.lat):void 0,i=this.projection.project(e.lng,e.lat);return new Up(i.x,i.y,r)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(e,t){const r=null!=t?t:this._centerAltitude,i=[e.x,e.y,0,1],n=[e.x,e.y,1,1];id.transformMat4(i,i,this.pixelMatrixInverse),id.transformMat4(n,n,this.pixelMatrixInverse);const s=n[3];id.scale(i,i,1/i[3]),id.scale(n,n,1/s);const o=i[2],a=n[2];return{p0:i,p1:n,t:o===a?0:(r-o)/(a-o)}}screenPointToMercatorRay(e){const t=[e.x,e.y,0,1],r=[e.x,e.y,1,1];return id.transformMat4(t,t,this.pixelMatrixInverse),id.transformMat4(r,r,this.pixelMatrixInverse),id.scale(t,t,1/t[3]),id.scale(r,r,1/r[3]),t[2]=Op(t[2],this._center.lat)*this.worldSize,r[2]=Op(r[2],this._center.lat)*this.worldSize,id.scale(t,t,1/this.worldSize),id.scale(r,r,1/this.worldSize),new Od([t[0],t[1],t[2]],yd.normalize([],yd.sub([],r,t)))}rayIntersectionCoordinate(e){const{p0:t,p1:r,t:i}=e,n=Op(t[2],this._center.lat),s=Op(r[2],this._center.lat);return new Up(Wi(t[0],r[0],i)/this.worldSize,Wi(t[1],r[1],i)/this.worldSize,Wi(n,s,i))}pointCoordinate(e,t=this._centerAltitude){return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(e){if(!this.elevation)return this.pointCoordinate(e);let t=this.projection.pointCoordinate3D(this,e.x,e.y);if(t)return new Up(t[0],t[1],t[2]);let r=0,i=this.horizonLineFromTop();if(e.y>i)return this.pointCoordinate(e);const n=.02*i,s=e.clone();for(let e=0;e<10&&i-r>n;e++){s.y=Wi(r,i,.66);const e=this.projection.pointCoordinate3D(this,s.x,s.y);e?(i=s.y,t=e):r=s.y}return t?new Up(t[0],t[1],t[2]):this.pointCoordinate(e)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}isPointOnSurface(e){if(e.y<0||e.y>this.height||e.x<0||e.x>this.width)return!1;if(this.elevation||this.zoom>=6)return!this.isPointAboveHorizon(e);const t=this.pointCoordinate(e);return t.y>=0&&t.y<=1}_coordinatePoint(e,t){const r=t&&this.elevation?this.elevation.getAtPointOrZero(e,this._centerAltitude):this._centerAltitude,i=[e.x*this.worldSize,e.y*this.worldSize,r+e.toAltitude(),1];return id.transformMat4(i,i,this.pixelMatrix),i[3]>0?new v(i[0]/i[3],i[1]/i[3]):new v(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:e,left:t}=this._edgeInsets,r=this.height-this._edgeInsets.bottom,i=this.width-this._edgeInsets.right,n=this.pointLocation3D(new v(t,e)),s=this.pointLocation3D(new v(i,e)),o=this.pointLocation3D(new v(i,r)),a=this.pointLocation3D(new v(t,r));let l=Math.min(n.lng,s.lng,o.lng,a.lng),c=Math.max(n.lng,s.lng,o.lng,a.lng),u=Math.min(n.lat,s.lat,o.lat,a.lat),h=Math.max(n.lat,s.lat,o.lat,a.lat);const d=Math.pow(2,-this.zoom)/16*270,p="globe"===this.projection.name?1:4,f=(e,t,r,i,n)=>{const s=(e+r)/2,o=(t+i)/2,a=new v(s,o),{lng:m,lat:g}=this.pointLocation3D(a),y=Math.max(0,l-m,u-g,m-c,g-h);l=Math.min(l,m),c=Math.max(c,m),u=Math.min(u,g),h=Math.max(h,g),(n<p||y>d)&&(f(e,t,s,o,n+1),f(s,o,r,i,n+1))};if(f(t,e,i,e,1),f(i,e,i,r,1),f(i,r,t,r,1),f(t,r,t,e,1),"globe"===this.projection.name){const[e,t]=function(e){const t=hd.identity(new Float64Array(16));hd.multiply(t,e.pixelMatrix,e.globeMatrix);const r=[0,Gd,0],i=[0,qd,0];return yd.transformMat4(r,r,t),yd.transformMat4(i,i,t),[r[0]>0&&r[0]<=e.width&&r[1]>0&&r[1]<=e.height&&!bp(e,new Ip(e.center.lat,90)),i[0]>0&&i[0]<=e.width&&i[1]>0&&i[1]<=e.height&&!bp(e,new Ip(e.center.lat,-90))]}(this);e?(h=90,c=180,l=-180):t&&(u=-90,c=180,l=-180)}return new Hc(new Ip(l,u),new Ip(c,h))}_getBoundsRectangular(e,t){const{top:r,left:i}=this._edgeInsets,n=this.height-this._edgeInsets.bottom,s=this.width-this._edgeInsets.right,o=new v(i,r),a=new v(s,r),l=new v(s,n),c=new v(i,n);let u=this.pointCoordinate(o,e),h=this.pointCoordinate(a,e);const d=this.pointCoordinate(l,t),p=this.pointCoordinate(c,t),f=(e,t)=>(t.y-e.y)/(t.x-e.x);return u.y>1&&h.y>=0?u=new Up((1-p.y)/f(p,u)+p.x,1):u.y<0&&h.y<=1&&(u=new Up(-p.y/f(p,u)+p.x,0)),h.y>1&&u.y>
vendor: 5,827 bytes, line 2
2=0?h=new Up((1-d.y)/f(d,h)+d.x,1):h.y<0&&u.y<=1&&(h=new Up(-d.y/f(d,h)+d.x,0)),(new Hc).extend(this.coordinateLocation(u)).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(p)).extend(this.coordinateLocation(d))}_getBoundsRectangularTerrain(){const e=this.elevation;if(!e.visibleDemTiles.length||e.isUsingMockSource())return this._getBoundsRectangular(0,0);const t=e.visibleDemTiles.reduce(((e,t)=>{if(t.dem){const r=t.dem.tree;e.min=Math.min(e.min,r.minimums[0]),e.max=Math.max(e.max,r.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))-this.centerOffset.y,r=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,r):r}getMaxBounds(){return this.maxBounds}setMaxBounds(e){this.maxBounds=e,this.minLat=-Bp,this.maxLat=Bp,this.minLng=-180,this.maxLng=180,e&&(this.minLat=e.getSouth(),this.maxLat=e.getNorth(),this.minLng=e.getWest(),this.maxLng=e.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=Mp(this.minLng)*this.tileSize,this.worldMaxX=Mp(this.maxLng)*this.tileSize,this.worldMinY=kp(this.maxLat)*this.tileSize,this.worldMaxY=kp(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(e){const t=e.key,r=this._distanceTileDataCache;if(r[t])return r[t];const i=e.canonical,n=1/this.height,s=this.cameraWorldSize,o=s/this.zoomScale(i.z),a=(i.x+Math.pow(2,i.z)*e.wrap)*o,l=i.y*o,c=this.point;c.x*=s/this.worldSize,c.y*=s/this.worldSize;const u=this.angle,h=Math.sin(-u),d=-Math.cos(-u);return r[t]={bearing:[h,d],center:[(c.x-a)*n,(c.y-l)*n],scale:o/oi*n},r[t]}calculateFogTileMatrix(e){const t=e.key,r=this._fogTileMatrixCache;if(r[t])return r[t];const i=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,e);return hd.multiply(i,this.worldToFogMatrix,i),r[t]=new Float32Array(i),r[t]}calculateProjMatrix(e,t=!1){const r=e.key,i=t?this._alignedProjMatrixCache:this._projMatrixCache;if(i[r])return i[r];const n=this.calculatePosMatrix(e,this.worldSize);return hd.multiply(n,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:t?this.alignedProjMatrix:this.projMatrix,n),i[r]=new Float32Array(n),i[r]}calculatePixelsToTileUnitsMatrix(e){const t=e.tileID.key,r=this._pixelsToTileUnitsCache;if(r[t])return r[t];const i=function(e,t){const{scale:r}=e.tileTransform,i=r*oi/(e.tileSize*Math.pow(2,t.zoom-e.tileID.overscaledZ+e.tileID.canonical.z));return od.scale(new Float32Array(4),t.inverseAdjustmentMatrix,[i,i])}(e,this);return r[t]=i,r[t]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){const e=1/this.worldSize,t=hd.fromScaling([],[e,e,e]);return hd.multiply(t,t,this.globeMatrix),t}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const e=this._elevation;this._updateCameraState();const t=Op(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(t),i=this._camera.forward(),n=Op(1,this._center.lat);r[2]/=n,i[2]/=n,yd.normalize(i,i);const s=e.raycast(r,i,e.exaggeration());if(s){const e=yd.scaleAndAdd([],r,i,s),t=new Up(e[0],e[1],Op(e[2],Dp(e[1]))),o=(t.z+yd.length([t.x-r[0],t.y-r[1],t.z-r[2]*n]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(o),this._centerAltitude=t.toAltitude(),this._center=this.coordinateLocation(t),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(e=!1){if(!this._elevation)return;const t=this._elevation,r=Op(1,this._center.lat)*this.worldSize,i=this._computeCameraPosition(r),n=t.getAtPointOrZero(new Up(...i)),s=this.pixelsPerMeter/this.worldSize*n,o=this._minimumHeightOverTerrain(),a=i[2]-s;if(a<=o)if(a<0||e){const e=this.locationCoordinate(this._center,this._centerAltitude),t=[i[0],i[1],e.z-i[2]],r=yd.length(t);t[2]-=(o-a)/this._pixelsPerMercatorPixel;const n=yd.length(t);if(0===n)return;yd.scale(t,t,r/n*this._pixelsPerMercatorPixel),this._camera.position=[i[0],i[1],e.z*this._pixelsPerMercatorPixel-t[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const e="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||e){const t=this.center;return t.lat=M(t.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!e)&&(t.lng=M(t.lng,this.minLng,this.maxLng)),this.center=t,void(this._constraining=!1)}const t=this._unmodified,{x:r,y:i}=this.point;let n=0,s=r,o=i;const a=this.width/2,l=this.height/2,c=this.worldMinY*this.scale,u=this.worldMaxY*this.scale;if(i-l<c&&(o=c+l),i+l>u&&(o=u-l),u-c<this.height&&(n=Math.max(n,this.height/(u-c)),o=(u+c)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const e=this.worldMinX*this.scale,t=this.worldMaxX*this.scale,i=this.worldSize/2-(e+t)/2;s=(r+i+this.worldSize)%this.worldSize-i,s-a<e&&(s=e+a),s+a>t&&(s=t-a),t-e<this.width&&(n=Math.max(n,this.width/(t-e)),s=(t+e)/2)}s===r&&o===i||(this.center=this.unproject(new v(s,o))),n&&(this.zoom+=this.scaleZoom(n)),this._constrainCamera(),this._unmodified=t,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(e=Math.max(e,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),e}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}
2_calcMatrices(){if(!this.height)return;const e=this.centerOffset,t="globe"===this.projection.name,r=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=Op(1,this.center.lat)/Op(1,45));const i=Sb(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,i),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const n="meters"===this.projection.zAxisUnit?r:1,s=this._camera.getWorldToCamera(this.worldSize,n);let o;const a=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);if(a[8]=2*-e.x/this.width,a[9]=2*e.y/this.height,this.isOrthographic){let t=.5*this.height/Math.tan(this._fov/2)*1*Math.tan(.5*this._fov),r=t*this.aspect,i=-r,n=-t;r-=e.x,i-=e.x,t+=e.y,n+=e.y,o=this._camera.getCameraToClipOrthographic(i,r,n,t,this._nearZ,this._farZ),((e,t,r,i)=>{for(let n=0;n<16;n++)e[n]=Zb(t[n],r[n],i)})(o,o,a,Xb(this.pitch>=15?1:this.pitch/15))}else o=a;const l=hd.mul([],a,s);let c=hd.mul([],o,s);if(this.projection.isReprojectedInTileSpace){const e=this.locationCoordinate(this.center),t=hd.identity([]);hd.translate(t,t,[e.x*this.worldSize,e.y*this.worldSize,0]),hd.multiply(t,t,Ab(this)),hd.translate(t,t,[-e.x*this.worldSize,-e.y*this.worldSize,0]),hd.multiply(c,c,t),hd.multiply(l,l,t),this.inverseAdjustmentMatrix=function(e){const t=Ab(e,!0);return od.invert([],[t[0],t[1],t[4],t[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=hd.scale([],c,[this.worldSize,this.worldSize,this.worldSize/n,1]),this.projMatrix=c,this.invProjMatrix=hd.invert(new Float64Array(16),this.projMatrix);const u=hd.invert([],o);this.frustumCorners=Rd.fromInvProjectionMatrix(u,this.horizonLineFromTop(),this.height),this.cameraFrustum=jd.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,0,!t);const h=new Float32Array(16);hd.identity(h),hd.scale(h,h,[1,-1,1]),hd.rotateX(h,h,this._pitch),hd.rotateZ(h,h,this.angle);const d=hd.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ);this.starsProjMatrix=hd.clone(d);const p=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;d[8]=2*-e.x/this.width,d[9]=2*(e.y+p)/this.height,this.skyboxMatrix=hd.multiply(h,d,h);const f=this.point,m=f.x,g=f.y,y=this.width%2/2,v=this.height%2/2,_=Math.cos(this.angle),b=Math.sin(this.angle),x=m-Math.round(m)+_*y+b*v,w=g-Math.round(g)+_*v+b*y,A=new Float64Array(c);if(hd.translate(A,A,[x>.5?x-1:x,w>.5?w-1:w,0]),this.alignedProjMatrix=A,c=hd.create(),hd.scale(c,c,[this.width/2,-this.height/2,1]),hd.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=hd.create(),hd.scale(c,c,[1,-1,1]),hd.translate(c,c,[-1,-1,0]),hd.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=hd.multiply(new Float64Array(16),this.labelPlaneMatrix,l),this._calcFogMatrices(),this._distanceTileDataCache={},c=hd.invert(new Float64Array(16),this.pixelMatrix),!c)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=c,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=function(e){const{x:t,y:r}=e.point,{lng:i,lat:n}=e._center;return dp(t,r,e.worldSize,i,n)}(this);const e=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=yd.transformMat4(e,e,s),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=c;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const e=this.cameraWorldSizeForFog,t=this.cameraPixelsPerMeter,r=this._camera.position,i=1/this.height/this._pixelsPerMercatorPixel,n=[e,e,t];yd.scale(n,n,i),yd.scale(r,r,-1),yd.multiply(r,r,n);const s=hd.create();hd.translate(s,s,r),hd.scale(s,s,n),this.mercatorFogMatrix=s,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(e,t,i)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,r=this._camera.forward(),i=this.point,
2n=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[i.x/this.worldSize-r[0]*n,i.y/this.worldSize-r[1]*n,e/this.worldSize*this._centerAltitude-r[2]*n]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(e){const t=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=this._camera.position[2],i=e[2];let n=1;this.projection.wrap&&(this.center=this.center.wrap()),i>0&&(n=Math.min((t-r)/i,1)),this._camera.position=yd.scaleAndAdd([],this._camera.position,e,n),this._updateStateFromCamera()}_updateStateFromCamera(){const e=this._camera.position,t=this._camera.forward(),{pitch:r,bearing:i}=this._camera.getPitchBearing(),n=Op(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(w(this._maxPitch)),o=Math.max((e[2]-n)/Math.cos(r),s),a=this._zoomFromMercatorZ(o);yd.scaleAndAdd(e,e,t,o),this._pitch=M(r,w(this.minPitch),w(this.maxPitch)),this.angle=O(i,-Math.PI,Math.PI),this._setZoom(M(a,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new Up(e[0],e[1],e[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}zoomFromMercatorZAdjusted(e){let t=0,r=6,i=0,n=1/0;for(;r-t>1e-6&&r>t;){const s=t+.5*(r-t),o=this.tileSize*Math.pow(2,s),a=this.getCameraToCenterDistance(this.projection,s,o),l=this.scaleZoom(a/(e*this.tileSize)),c=Math.abs(s-l);c<n&&(n=c,i=s),s<l?t=s:r=s}return i}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(Q("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(e,t){const r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),n=Math.min(e.y,t.y),s=Math.max(e.y,t.y);if(n<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const o=[new v(r,n),new v(i,s),new v(r,s),new v(i,n)],a=this.renderWorldCopies?-3:0,l=this.renderWorldCopies?4:1;for(const e of o){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const r=this.rayIntersectionCoordinate(t);if(r.x<a||r.y<0||r.x>l||r.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+A(this.fovAboveCenter)>88||this.anyCornerOffEdge(new v(0,0),new v(this.width,this.height))}zoomDeltaToMovement(e,t){const r=yd.length(yd.sub([],this._camera.position,e)),i=this._zoomFromMercatorZ(r)+t;return r-this._mercatorZfromZoom(i)}getCameraPoint(){if("globe"===this.projection.name){const e=function([e,t,r],i){const n=[e,t,r,1];id.transformMat4(n,n,i);const s=n[3]=Math.max(n[3],1e-6);return n[0]/=s,n[1]/=s,n[2]/=s,n}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new v(e[0],e[1])}{const e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new v(0,e))}}getCameraToCenterDistance(e,t=this.zoom,r=this.worldSize){const i=Sb(e,t,this.width,this.height,1024),n=e.pixelSpaceConversion(this.center.lat,r,i);let s=.5/Math.tan(.5*this._fov)*this.height*n;return this.isOrthographic&&(s=Zb(1,s,Xb(this.pitch>=15?1:this.pitch/15))),s}getWorldToCameraMatrix(){const e=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&hd.multiply(e,e,this.globeMatrix),e}getFrustum(e){return jd.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,e,"meters"===this.projection.zAxisUnit)}}function Jb(e,t,r){hd.identity(e),hd.rotateZ(e,e,w(t[2])),hd.rotateX(e,e,w(t[0])),hd.rotateY(e,e,w(t[1])),hd.scale(e,e,r),hd.multiply(e,e,[1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1])}function $b(e,t,r,i,n,s,o,a){const l=[r[0]-t[0],r[1]-t[1],0],c=[i[0]-t[0],i[1]-t[1],0];if(yd.length(l)<1e-12||yd.length(c)<1e-12)return pd.identity(e);const u=yd.cross([],l,c);yd.normalize(u,u),yd.subtract(c,i,t),l[2]=(s-n)*a,c[2]=(o-n)*a;const h=l;return yd.cross(h,l,c),yd.normalize(h,h),pd.rotationTo(e,u,h)}function ex(e,t,r=!1){const i=pp(t.zoom),n=function(e,t,r){const i=t.
2worldSize,n=[e[12],e[13],e[14]],s=Dp(n[1]/i),o=Rp(n[0]/i),a=hd.identity([]),l=Op(1,s)*i,c=Op(1,0)*i*jp(s,t.zoom),u=1/up(i);let h=c*u;if(r){const e=Sb(t.projection,t.zoom,t.width,t.height,1024);h=u*t.projection.pixelSpaceConversion(t.center.lat,i,e)}const d=np(s,o);yd.add(d,d,yd.scale([],yd.normalize([],d),l*h*n[2]));const p=function(e){const t=[e[0],e[1],e[2]];let r=[0,1,0];const i=yd.cross([],r,t);return yd.cross(r,t,i),0===yd.squaredLength(r)&&(r=[0,1,0],yd.cross(i,t,r)),yd.normalize(i,i),yd.normalize(r,r),yd.normalize(t,t),[i[0],i[1],i[2],0,r[0],r[1],r[2],0,t[0],t[1],t[2],0,e[0],e[1],e[2],1]}(d);hd.scale(a,a,[h,h,h*l]),hd.translate(a,a,[-n[0],-n[1],-n[2]]);const f=hd.multiply([],t.globeMatrix,p);return hd.multiply(f,f,a),hd.multiply(f,f,e),f}(e,t,r);if(i>0){const r=function(e,t){const r=t.worldSize,i=Op(1,0)*r*jp(t.center.lat,t.zoom)/up(r),n=Op(1,t.center.lat)*r,s=hd.identity([]);return hd.rotateY(s,s,w(t.center.lng)),hd.rotateX(s,s,w(t.center.lat)),hd.translate(s,s,[0,0,Nd]),hd.scale(s,s,[i,i,i*n]),hd.translate(s,s,[t.point.x-.5*r,t.point.y-.5*r,0]),hd.multiply(s,s,e),hd.multiply(s,t.globeMatrix,s)}(e,t);return function(e,t,r){const i=(e,t,r)=>{const i=yd.length(e),n=yd.length(t),s=Kd(e,t,r);return yd.scale(s,s,1/yd.length(s)*Wi(i,n,r))},n=i([e[0],e[1],e[2]],[t[0],t[1],t[2]],r),s=i([e[4],e[5],e[6]],[t[4],t[5],t[6]],r),o=i([e[8],e[9],e[10]],[t[8],t[9],t[10]],r),a=Kd([e[12],e[13],e[14]],[t[12],t[13],t[14]],r);return[n[0],n[1],n[2],0,s[0],s[1],s[2],0,o[0],o[1],o[2],0,a[0],a[1],a[2],1]}(n,r,i)}return n}const tx=64,rx=[1,1,1];
2class ix{constructor(e,t,r,i){this.id=e,this.position=null!=t?new Ip(t[0],t[1]):new Ip(0,0),this.orientation=null!=r?r:[0,0,0],this.nodes=i,this.uploaded=!1,this.aabb=new Fd([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),this.matrix=[]}_applyTransformations(e,t){if(hd.multiply(e.matrix,t,e.matrix),e.meshes)for(const t of e.meshes){const r=Fd.applyTransform(t.aabb,e.matrix);this.aabb.encapsulate(r)}if(e.children)for(const t of e.children)this._applyTransformations(t,e.matrix)}computeBoundsAndApplyParent(){const e=hd.identity([]);for(const t of this.nodes)this._applyTransformations(t,e)}_positionModelOnTerrain(e,t){const r=e.elevation;if(!r)return 0;const i=Fd.projectAabbCorners(this.aabb,this.matrix),n=Op(1,this.position.lat)*e.worldSize,s=function(e,t){const r=[0,0,1],i=[{corners:[0,1,3,2],dotProductWithUp:0},{corners:[1,5,2,6],dotProductWithUp:0},{corners:[0,4,1,5],dotProductWithUp:0},{corners:[2,6,3,7],dotProductWithUp:0},{corners:[4,7,5,6],dotProductWithUp:0},{corners:[0,3,4,7],dotProductWithUp:0}];for(const n of i){const i=e[n.corners[0]],s=e[n.corners[1]],o=e[n.corners[2]],a=[s[0]-i[0],s[1]-i[1],t*(s[2]-i[2])],l=yd.cross(a,a,[o[0]-i[0],o[1]-i[1],t*(o[2]-i[2])]);yd.normalize(l,l),n.dotProductWithUp=yd.dot(l,r)}return i.sort(((e,t)=>e.dotProductWithUp-t.dotProductWithUp)),i[0].corners}(i,n),o=i[s[0]],a=i[s[1]],l=i[s[2]],c=i[s[3]],u=r.getAtPointOrZero(new Up(o[0]/e.worldSize,o[1]/e.worldSize),0),h=r.getAtPointOrZero(new Up(a[0]/e.worldSize,a[1]/e.worldSize),0),d=r.getAtPointOrZero(new Up(l[0]/e.worldSize,l[1]/e.worldSize),0),p=r.getAtPointOrZero(new Up(c[0]/e.worldSize,c[1]/e.worldSize),0),f=(u+p)/2,m=(h+d)/2;return f>m?h<d?$b(t,a,c,o,h,p,u,n):$b(t,l,o,c,d,u,p,n):u<p?$b(t,o,a,l,u,h,d,n):$b(t,c,l,a,p,d,h,n),Math.max(f,m)}computeModelMatrix(e,t,r,i,n,s,o=!1){const a=e.transform,l=a.zoom,c=a.project(this.position),u=jp(this.position.lat,l),h=1/u;hd.identity(this.matrix),hd.translate(this.matrix,this.matrix,[c.x+i[0]*h,c.y+i[1]*h,i[2]]);let d=1,p=1;const f=a.worldSize;if(o){if("mercator"===a.projection.name){let e=0;a.elevation&&(e=a.elevation.getAtPointOrZero(new Up(c.x/f,c.y/f),0));const t=id.transformMat4([],[c.x,c.y,e,1],a.projMatrix)[3]/a.cameraToCenterDistance;d=t,p=t*jp(a.center.lat,l)}else if("globe"===a.projection.name){const e=ex(this.matrix,a),t=hd.multiply([],a.projMatrix,e),r=[0,0,0,1];id.transformMat4(r,r,t);const i=r[3]/a.cameraToCenterDistance,n=pp(l),s=a.projection.pixelsPerMeter(this.position.lat,f)*jp(this.position.lat,l),o=a.projection.pixelsPerMeter(a.center.lat,f)*jp(a.center.lat,l);d=i/Wi(s,zp(a.center.lat),n),p=i*u/s,d*=o,p*=o}}else d=h;hd.scale(this.matrix,this.matrix,[d,d,p]);const m=[...this.matrix],g=this.orientation,y=[];if(Jb(y,[g[0]+t[0],g[1]+t[1],g[2]+t[2]],r),hd.multiply(this.matrix,m,y),n&&a.elevation){let e=0;const t=[];if(s&&a.elevation){e=this._positionModelOnTerrain(a,t);const r=hd.fromQuat([],t),i=hd.multiply([],r,y);hd.multiply(this.matrix,m,i)}else e=a.elevation.getAtPointOrZero(new Up(c.x/f,c.y/f),0);0!==e&&(this.matrix[14]+=e)}}upload(e){if(!this.uploaded){for(const t of this.nodes)ox(t,e);for(const e of this.nodes)ax(e);this.uploaded=!0}}destroy(){for(const e of this.nodes)lx(e)}}function nx(e,t,r=!1){e.uploaded||(e.gfxTexture=new Kv(t,e.image,r?t.gl.R8:t.gl.RGBA,{useMipmap:e.sampler.minFilter>=t.gl.NEAREST_MIPMAP_NEAREST}),e.uploaded=!0,e.image=null)}function sx(e,t,r){e.indexBuffer=t.createIndexBuffer(e.indexArray,!1,!0),e.vertexBuffer=t.createVertexBuffer(e.vertexArray,ub.members,!1,!0),e.normalArray&&(e.normalBuffer=t.createVertexBuffer(e.normalArray,fb.members,!1,!0)),e.texcoordArray&&(e.texcoordBuffer=t.createVertexBuffer(e.texcoordArray,pb.members,!1,!0)),e.colorArray&&(e.colorBuffer=t.createVertexBuffer(e.colorArray,(12===e.colorArray.bytesPerElement?hb:db).members,!1,!0)),e.featureArray&&(e.pbrBuffer=t.createVertexBuffer(e.featureArray,gb.members,!0)),e.segments=nc.simpleSegment(0,0,e.vertexArray.length,e.indexArray.length);const i=e.material;i.pbrMetallicRoughness.baseColorTexture&&nx(i.pbrMetallicRoughness.baseColorTexture,t),i.pbrMetallicRoughness.metallicRoughnessTexture&&nx(i.pbrMetallicRoughness.metallicRoughnessTexture,t),i.normalTexture&&nx(i.normalTexture,t),i.occlusionTexture&&nx(i.occlusionTexture,t,r),i.emissionTexture&&nx(i.emissionTexture,t)}function ox(e,t,r){if(e.meshes)for(const i of e.meshes)sx(i,t,r);if(e.children)for(const i of e.children)ox(i,t,r)}function ax(e){if(e.meshes)for(const t of e.meshes)t.indexArray.destroy(),t.vertexArray.destroy(),t.colorArray&&t.colorArray.destroy(),t.normalArray&&t.normalArray.destroy(),t.texcoordArray&&t.texcoordArray.destroy(),t.featureArray&&t.featureArray.destroy();if(e.children)for(const t of e.children)ax(t)}function lx(e){if(e.meshes)for(const r of e.meshes)r.vertexBuffer&&(r.vertexBuffer.destroy(),r.indexBuffer.destroy(),r.normalBuffer&&r.n
2ormalBuffer.destroy(),r.texcoordBuffer&&r.texcoordBuffer.destroy(),r.colorBuffer&&r.colorBuffer.destroy(),r.pbrBuffer&&r.pbrBuffer.destroy(),r.segments.destroy(),r.material&&((t=r.material).pbrMetallicRoughness.baseColorTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture.destroy(),t.pbrMetallicRoughness.metallicRoughnessTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture.destroy(),t.normalTexture&&t.normalTexture.gfxTexture&&t.normalTexture.gfxTexture.destroy(),t.emissionTexture&&t.emissionTexture.gfxTexture&&t.emissionTexture.gfxTexture.destroy(),t.occlusionTexture&&t.occlusionTexture.gfxTexture&&t.occlusionTexture.gfxTexture.destroy()));var t;if(e.children)for(const t of e.children)lx(t)}class cx{constructor(e,t){this.feature=e,this.instancedDataOffset=t,this.instancedDataCount=0,this.rotation=[0,0,0],this.scale=[1,1,1],this.translation=[0,0,0]}}class ux{constructor(){this.instancedDataArray=new Vl,this.instancesEvaluatedElevation=[],this.features=[],this.idToFeaturesIndex={}}}class hx{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.projection=e.projection,this.index=e.index,this.hasZoomDependentProperties=this.layers[0].isZoomDependent(),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.hasPattern=!1,this.instancesPerModel={},this.validForExaggeration=0,this.maxVerticalOffset=0,this.maxScale=0,this.maxHeight=0,this.lookupDim=this.zoom>this.canonical.z?256:this.zoom>15?75:100,this.instanceCount=0,this.terrainElevationMin=0,this.terrainElevationMax=0,this.validForDEMTile={id:null,timestamp:0}}populate(e,t,r,i){this.tileToMeter=Np(r);const n=this.layers[0]._featureFilter.needGeometry;this.lookup=new Uint8Array(this.lookupDim*this.lookupDim);for(const{feature:s,id:o,index:a,sourceLayerIndex:l}of e){const e=Xp(s,n);if(!this.layers[0]._featureFilter.filter(new Wa(this.zoom),e,r))continue;const c={id:o,sourceLayerIndex:l,index:a,geometry:n?e.geometry:Zp(s,r,i),properties:s.properties,type:s.type,patterns:{}},u=this.addFeature(c,c.geometry,e);u&&t.featureIndex.insert(s,c.geometry,a,l,this.index,this.instancesPerModel[u].instancedDataArray.length)}this.lookup=null}update(e,t,r,i){for(const t in this.instancesPerModel){const r=this.instancesPerModel[t];for(const t in e)r.idToFeaturesIndex.hasOwnProperty(t)&&this.evaluate(r.features[r.idToFeaturesIndex[t]],e[t],r,!0)}this.maxHeight=0}updateZoomBasedPaintProperties(){if(!this.hasZoomDependentProperties)return!1;let e=!1;for(const t in this.instancesPerModel){const r=this.instancesPerModel[t];for(const t of r.features){const i=this.layers[0],n=t.feature,s=this.canonical,o=i.paint.get("model-rotation").evaluate(n,{},s),a=i.paint.get("model-scale").evaluate(n,{},s),l=i.paint.get("model-translation").evaluate(n,{},s);yd.exactEquals(t.rotation,o)&&yd.exactEquals(t.scale,a)&&yd.exactEquals(t.translation,l)||(this.evaluate(t,t.featureStates,r,!0),e=!0)}}return e}isEmpty(){for(const e in this.instancesPerModel)if(0!==this.instancesPerModel[e].instancedDataArray.length)return!1;return!0}uploadPending(){return!this.uploaded}upload(e){if(!this.uploaded)for(const t in this.instancesPerModel){const r=this.instancesPerModel[t];r.instancedDataArray.length<0||0===r.instancedDataArray.length||(r.instancedDataBuffer?r.instancedDataBuffer.updateData(r.instancedDataArray):r.instancedDataBuffer=e.createVertexBuffer(r.instancedDataArray,mb.members,!0,void 0,this.instanceCount))}this.uploaded=!0}destroy(){for(const e in this.instancesPerModel){const t=this.instancesPerModel[e];0!==t.instancedDataArray.length&&t.instancedDataBuffer&&t.instancedDataBuffer.destroy()}}addFeature(e,t,r){const i=this.layers[0],n=i.layout.get("model-id").evaluate(r,{},this.canonical);if(!n)return Q(`modelId is not evaluated for layer ${i.id} and it is not going to get rendered.`),n;this.instancesPerModel[n]||(this.instancesPerModel[n]=new ux);const s=this.instancesPerModel[n],o=s.instancedDataArray,a=new cx(r,o.length);for(const e of t)for(const t of e){if(t.x<0||t.x>=oi||t.y<0||t.y>=oi)continue;const e=(this.lookupDim-1)/oi,r=this.lookupDim*(t.y*e|0)+t.x*e|0;if(this.lookup){if(0!==this.lookup[r])continue;this.lookup[r]=1}this.instanceCount++;const i=o.length;o.resize(i+1),s.instancesEvaluatedElevation.push(0),o.float32[16*i]=t.x,o.float32[16*i+1]=t.y}return a.instancedDataCount=s.instancedDataArray.length-a.instancedDataOffset,a.instancedDataCount>0&&(e.id&&(s.idToFeaturesIndex[e.id]=s.features.length),s.features.push(a),this.evaluate(a,{},s,!1)),n}
2evaluate(e,t,r,i){const n=this.layers[0],s=e.feature,o=this.canonical,a=e.rotation=n.paint.get("model-rotation").evaluate(s,t,o),l=e.scale=n.paint.get("model-scale").evaluate(s,t,o),c=e.translation=n.paint.get("model-translation").evaluate(s,t,o),u=n.paint.get("model-color").evaluate(s,t,o);u.a=n.paint.get("model-color-mix-intensity").evaluate(s,t,o);const h=[];this.maxVerticalOffset<c[2]&&(this.maxVerticalOffset=c[2]),this.maxScale=Math.max(Math.max(this.maxScale,l[0]),Math.max(l[1],l[2])),Jb(h,a,l);const d=Math.round(100*u.a)+u.b/1.05;for(let t=0;t<e.instancedDataCount;++t){const n=e.instancedDataOffset+t,s=16*n,a=r.instancedDataArray.float32;let l=0;i&&(l=a[s+6]-r.instancesEvaluatedElevation[n]);const p=0|a[s+1];a[s]=(0|a[s])+u.r/1.05,a[s+1]=p+u.g/1.05,a[s+2]=d,a[s+3]=1/(o.z>10?this.tileToMeter:Np(o,p)),a[s+4]=c[0],a[s+5]=c[1],a[s+6]=c[2]+l,a[s+7]=h[0],a[s+8]=h[1],a[s+9]=h[2],a[s+10]=h[4],a[s+11]=h[5],a[s+12]=h[6],a[s+13]=h[8],a[s+14]=h[9],a[s+15]=h[10],r.instancesEvaluatedElevation[n]=c[2]}}}To(hx,"ModelBucket",{omit:["layers"]}),To(ux,"PerModelAttributes"),To(cx,"ModelFeature");const dx=new nl({visibility:new tl(Pt.layout_model.visibility),"model-id":new rl(Pt.layout_model["model-id"])});var px={paint:new nl({"model-opacity":new tl(Pt.paint_model["model-opacity"]),"model-rotation":new rl(Pt.paint_model["model-rotation"]),"model-scale":new rl(Pt.paint_model["model-scale"]),"model-translation":new rl(Pt.paint_model["model-translation"]),"model-color":new rl(Pt.paint_model["model-color"]),"model-color-mix-intensity":new rl(Pt.paint_model["model-color-mix-intensity"]),"model-type":new tl(Pt.paint_model["model-type"]),"model-cast-shadows":new tl(Pt.paint_model["model-cast-shadows"]),"model-receive-shadows":new tl(Pt.paint_model["model-receive-shadows"]),"model-ambient-occlusion-intensity":new tl(Pt.paint_model["model-ambient-occlusion-intensity"]),"model-emissive-strength":new rl(Pt.paint_model["model-emissive-strength"]),"model-roughness":new rl(Pt.paint_model["model-roughness"]),"model-height-based-emissive-strength-multiplier":new rl(Pt.paint_model["model-height-based-emissive-strength-multiplier"]),"model-cutoff-fade-range":new tl(Pt.paint_model["model-cutoff-fade-range"])}),layout:dx};const fx=new Float32Array(262144),mx=new Uint8Array(262144);function gx(e){let t=0;if(e.meshes)for(const r of e.meshes)t=Math.max(t,r.aabb.max[2]);if(e.children)for(const r of e.children)t=Math.max(t,gx(r));return t}const yx=["","wall","door","roof","window","lamp","logo"];class vx{constructor(e){this.node=e,this.evaluatedRMEA=[[1,0,0,1],[1,0,0,1],[1,0,0,1],[1,0,0,1],[.4,1,0,1],[1,0,0,1],[1,0,0,1]],this.hiddenByReplacement=!1,this.evaluatedScale=[1,1,1],this.evaluatedColor=[],this.emissionHeightBasedParams=[],this.feature={type:"Point",id:e.id,geometry:[],properties:{height:gx(e)}}}}
2class _x{constructor(e,t,r,i){this.nodes=e,this.id=t,this.modelTraits|=1,this.uploaded=!1,this.hasPattern=!1,r&&(this.modelTraits|=4),this.zoom=-1,this.terrainExaggeration=1,this.projection={name:"mercator"},this.replacementUpdateTime=0,this.elevationReadFromZ=255,this.brightness=i,this.dirty=!0,this.needsUpload=!1}update(){console.log("Update 3D model bucket")}populate(){console.log("populate 3D model bucket")}uploadPending(){return!this.uploaded||this.needsUpload}upload(e){if(!this.needsUpload)return;const t=this.getNodesInfo();for(const r of t){const t=r.node;this.uploaded?this.updatePbrBuffer(t):ox(t,e,!0)}for(const e of t)ax(e.node);this.uploaded=!0,this.needsUpload=!1}updatePbrBuffer(e){let t=!1;if(!e.meshes)return t;for(const r of e.meshes)r.pbrBuffer&&(r.pbrBuffer.updateData(r.featureArray),t=!0);return t}needsReEvaluation(e,t,r){const i=e.transform.projectionOptions,n=e.style.getBrightness(),s=this.brightness!==n;return!!(!this.uploaded||this.dirty||i.name!==this.projection.name||bx(r.paint.get("model-color").value,s)||bx(r.paint.get("model-color-mix-intensity").value,s)||bx(r.paint.get("model-roughness").value,s)||bx(r.paint.get("model-emissive-strength").value,s)||bx(r.paint.get("model-height-based-emissive-strength-multiplier").value,s))&&(this.projection=i,this.brightness=n,!0)}evaluateScale(e,t){if(e.transform.zoom===this.zoom)return;this.zoom=e.transform.zoom;const r=this.getNodesInfo(),i=this.id.canonical;for(const e of r){const r=e.feature;e.evaluatedScale=t.paint.get("model-scale").evaluate(r,{},i)}}evaluate(e){const t=this.getNodesInfo();for(const r of t){if(!r.node.meshes)continue;const t=r.feature,i=r.node.meshes&&r.node.meshes[0].featureData,n=r.evaluatedColor[2],s=r.evaluatedRMEA[2],o=this.id.canonical;if(r.hasTranslucentParts=!1,i){for(let i=0;i<yx.length;i++){const n=yx[i];n.length&&(t.properties.part=n);const s=e.paint.get("model-color").evaluate(t,{},o),a=e.paint.get("model-color-mix-intensity").evaluate(t,{},o);r.evaluatedColor[i]=[s.r,s.g,s.b,a],r.evaluatedRMEA[i][0]=e.paint.get("model-roughness").evaluate(t,{},o),r.evaluatedRMEA[i][2]=e.paint.get("model-emissive-strength").evaluate(t,{},o),r.evaluatedRMEA[i][3]=s.a,r.emissionHeightBasedParams[i]=e.paint.get("model-height-based-emissive-strength-multiplier").evaluate(t,{},o),!r.hasTranslucentParts&&s.a<1&&(r.hasTranslucentParts=!0)}delete t.properties.part,wx(r,n!==r.evaluatedColor[2]||s!==r.evaluatedRMEA[2])}r.evaluatedScale=e.paint.get("model-scale").evaluate(t,{},o),this.updatePbrBuffer(r.node)||(this.needsUpload=!0)}this.dirty=!1}elevationUpdate(e,t,r,i){const n=e.findDEMTileFor(r);if(n&&(n.tileID.canonical!==this.terrainTile||t!==this.terrainExaggeration)){if(n.dem&&n.tileID.overscaledZ!==this.elevationReadFromZ){this.elevationReadFromZ=n.tileID.overscaledZ;const t=kg.create(e,r,n);if(!t)return;4&this.modelTraits&&this.updateDEM(e,t,r,i);for(const e of this.getNodesInfo()){const r=e.node;if(!r.footprint||!r.footprint.vertices||!r.footprint.vertices.length)continue;const i=r.footprint.vertices;let n=t.getElevationAt(i[0].x,i[0].y,!0,!0);for(let e=1;e<i.length;e++)n=Math.min(n,t.getElevationAt(i[e].x,i[e].y,!0,!0));r.elevation=n}}this.terrainTile=n.tileID.canonical,this.terrainExaggeration=t}}updateDEM(e,t,r,i){let n=t._dem._modifiedForSources[i];if(void 0===n&&(t._dem._modifiedForSources[i]=[],n=t._dem._modifiedForSources[i]),n.includes(r.canonical))return;const s=t._dem.dim;n.push(r.canonical);let o=!1;for(const e of this.getNodesInfo()){const r=e.node;if(!r.footprint||!r.footprint.grid)continue;const i=r.footprint.grid,n=t.tileCoordToPixel(i.min.x,i.min.y),a=t.tileCoordToPixel(i.max.x,i.max.y),l=Math.min(Math.min(s-a.y,n.x),Math.min(n.y,s-a.x));if(l<0)continue;const c=M(l,2,5);let u=Math.max(0,n.x-c),h=Math.max(0,n.y-c),d=Math.min(a.x+c,s-1),p=Math.min(a.y+c,s-1);for(let e=h;e<=p;++e)for(let t=u;t<=d;++t)mx[e*s+t]=255;let f=0,m=0;for(let e=0;e<i.cellsY;++e)for(let r=0;r<i.cellsX;++r){if(!i.cells[e*i.cellsX+r])continue;const n=t.tileCoordToPixel(i.min.x+r/i.xScale,i.min.y+e/i.yScale),o=t.tileCoordToPixel(i.min.x+(r+1)/i.xScale,i.min.y+(e+1)/i.yScale);for(let e=n.y;e<=Math.min(o.y+1,s-1);++e)for(let r=n.x;r<=Math.min(o.x+1,s-1);++r)255===mx[e*s+r]&&(mx[e*s+r]=0,f+=t.getElevationAtPixel(r,e),m++)}const g=f/m;u=Math.max(1,n.x-c),h=Math.max(1,n.y-c),d=Math.min(a.x+c,s-2),p=Math.min(a.y+c,s-2),o=!0;for(let e=h;e<=p;++e)for(let r=u;r<=d;++r)0===mx[e*s+r]&&(fx[e*s+r]=t._dem.set(r,e,g));for(let e=1;e<c;++e){u=Math.max(1,n.x-e),h=Math.max(1,n.y-e),d=Math.min(a.x+e,s-2),p=Math.min(a.y+e,s-2);for(let r=h;r<=p;++r)for(let i=u;i<=d;++i){const n=r*s+i;
2if(255===mx[n]){let o=0,a=0,l=-1,u=-1;for(let t=-1;t<=1;++t)for(let n=-1;n<=1;++n){const c=(r+t)*s+i+n;if(mx[c]>=e)continue;const h=fx[c],d=Math.abs(h);d>a&&(o=h,a=d,l=n,u=t)}if(a>.1){const s=1-(e+.5*Math.abs(l*u))/c;let a=t._dem.get(i,r)+o*s;const h=t._dem.get(i+l,r+u),d=t._dem.get(i-l,r-u,!0);(a-h)*(a-d)>0&&(a=(h+d)/2),fx[n]=t._dem.set(i,r,a),mx[n]=e}}}}}o&&(t._demTile.needsDEMTextureUpload=!0,t._dem._timestamp=ut.now())}getNodesInfo(){if(!this.nodesInfo){this.nodesInfo=[];for(const e of this.nodes)this.nodesInfo.push(new vx(e));this.freeNodes()}return this.nodesInfo}freeNodes(){if(this.nodes){for(const e of this.nodes)lx(e);this.nodes.splice(0,this.nodes.length)}}destroy(){this.freeNodes();const e=this.getNodesInfo();for(const t of e)ax(t.node),lx(t.node)}isEmpty(){return!this.nodes.length}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const r=t.getReplacementRegionsForTile(e.toUnwrapped()),i=this.getNodesInfo();for(let e=0;e<this.nodesInfo.length;e++){const t=i[e].node;i[e].hiddenByReplacement=!!t.footprint&&!r.find((e=>e.footprint===t.footprint))}}getHeightAtTileCoord(e,t){const r=this.getNodesInfo(),i=[];for(let n=0;n<this.nodesInfo.length;n++){const s=r[n],o=s.node.meshes[0];if(e<o.aabb.min[0]||t<o.aabb.min[1]||e>o.aabb.max[0]||t>o.aabb.max[1])continue;const a=(e-o.aabb.min[0])/(o.aabb.max[0]-o.aabb.min[0])*tx|0,l=Math.min(63,(t-o.aabb.min[1])/(o.aabb.max[1]-o.aabb.min[1])*tx|0)*tx+Math.min(63,a);if(!(o.heightmap[l]<0&&s.node.footprint)){if(s.hiddenByReplacement)return;return{height:o.heightmap[l],maxHeight:s.feature.properties.height,hidden:!1,verticalScale:s.evaluatedScale[2]}}if(s.node.footprint.grid.query(new v(e,t),new v(e,t),i),i.length>0)return{height:void 0,maxHeight:s.feature.properties.height,hidden:s.hiddenByReplacement,verticalScale:s.evaluatedScale[2]}}}}function bx(e,t){return!e.isLightConstant&&t}function xx(e,t,r,i,n,s,o,a){let l=(61440&t|(61440&t)>>4)>>8,c=(3840&t|(3840&t)>>4)>>4,u=240&t|(240&t)>>4;r[3]>0&&(l=Wi(l,255*r[0],r[3]),c=Wi(c,255*r[1],r[3]),u=Wi(u,255*r[2],r[3]));const h=l<<8|c,d=u<<8|Math.floor(255*i[3]),p=function(e){const t=M(e,0,2);return Math.min(Math.round(.5*t*255),255)}(i[2])<<8|15*i[0]<<4|15*i[1],f=M(n[0],0,1),m=M(n[1],0,1),g=M(n[2],0,1),y=M(n[3],0,1);let v,_,b,x;if(f!==m&&o!==s&&m!==f){const e=o-s;_=1/(e*(m-f)),b=-(s+e*f)/(e*(m-f));const t=M(n[4],-1,1);x=Math.pow(10,t),v=255*g<<8|255*y}else v=65535,_=0,b=1,x=1;if(e.emplaceBack(h,d,p,v,_,b,x),a){const e=a.length;a.clear();for(let t=0;t<e;t++)a.emplaceBack(h,d,p,v,_,b,x)}}function wx(e,t){const r=e.node;let i=0;for(const n of r.meshes){if(r.lights&&r.lightMeshIndex===i)continue;if(!n.featureData)continue;n.featureArray=new Gl,n.featureArray.reserve(n.featureData.length);let s=t;for(const t of n.featureData){let i;const o=65535&t,a=(15&o)<8?15&o:0,l=t>>16&65535,c=e.evaluatedRMEA[a],u=e.evaluatedColor[a],h=e.emissionHeightBasedParams[a];if(s&&2===a&&r.lights&&(i=new Gl,i.resize(10*r.lights.length)),xx(n.featureArray,l,u,c,h,n.aabb.min[2],n.aabb.max[2],i),i&&s){s=!1;const e=r.meshes[r.lightMeshIndex];e.featureArray=i,e.featureArray._trim()}}n.featureArray._trim(),i++}}To(_x,"Tiled3dModelBucket",{omit:["layers"]}),To(vx,"Tiled3dModelFeature");class Ax{constructor(){this._updateTime=0,this._sourceIds=[],this._activeRegions=[],this._prevRegions=[]}clear(){this._activeRegions.length>0&&++this._updateTime,this._activeRegions=[],this._prevRegions=[]}get updateTime(){return this._updateTime}getReplacementRegionsForTile(e){const t=Cx(new v(0,0),new v(oi,oi),e),r=[];for(const i of this._activeRegions){if(i.hiddenByOverlap)continue;if(!Tx(t,i))continue;const n=Ix(i.min,i.max,e);r.push({min:n.min,max:n.max,sourceId:this._sourceIds[i.priority],footprint:i.footprint,footprintTileId:i.tileId})}return r}setSources(e){this._setSources(e.map((e=>({getSourceId:()=>e.cache.id,getFootprints:()=>{const t=[];for(const r of e.cache.getVisibleCoordinates()){const i=e.cache.getTile(r).buckets[e.layer];if(i)for(const e of i.getNodesInfo()){const i=e.node;i.footprint&&t.push({footprint:i.footprint,id:r.toUnwrapped()})}}return t}}))))}_addSource(e){const t=e.getFootprints();if(0!==t.length){for(const e of t){if(!e.footprint)continue;const t=Cx(e.footprint.min,e.footprint.max,e.id);this._activeRegions.push({min:t.min,max:t.max,hiddenByOverlap:!1,priority:this._sourceIds.length,tileId:e.id,footprint:e.footprint})}this._sourceIds.push(e.getSourceId())}}_computeReplacement(){this._activeRegions.sort(((e,t)=>e.priority-t.priority||Ex(e.min,t.min)||Ex(e.max,t.max)));let e=this._activeRegions.length!==this._prevRegions.length;if(!e){let t=0,r=0;for(;!e&&t!==this._activeRegions.length;){const i=this._activeRegions[t],n=this._prevRegions[r];e=i.priority!==n.priority||!Sx(i,n),++t,++r}}if(e){++this._updateTime;const e=e=>{const t=this._activeRegions;if(e>=t.length)return e;const r=t[e].priority;for(;e<t.length&&t[e].priority===r;)++e;return e};if(this._sourceIds.length>1){let t=0,r=e(t);for(;t!==r;){let i=t;const n=t;for(;i!==r;){const e=this._activeRegions[i];e.hiddenByOverlap=!1;for(let t=0;t<n;t++){const r=this._activeRegions[t];if(!r.hiddenByOverlap&&Tx(e,r)&&(e.hiddenByOverlap=Mx(e.footprint,e.tileId,r.footprint,r.tileId),e.hiddenByOverlap))break}++i}t=r,r=e(t)}}}}_setSources(e){[this._prevRegions,this._activeRegions]=[this._activeRegions,[]],this._sourceIds=[];for(let t=e.length-1;t>=0;t--)this._addSource(e[t]);this._computeReplacement()}}function Ex(e,t){return e.x-t.x||e.y-t.y}function Sx(e,t){return 0===Ex(e.min,t.min)&&0===Ex(e.max,t.max)}function Tx(e,t){return!(e.min.x>t.max.x||e.max.x<t.min.x||e.min.y>t.max.y||e.max.y<t.min.y)}function Cx(e,t,r){const i=1/oi,n=1/(1<<r.canonical.z),s=(t.x*i+r.canonical.x)*n+r.wrap,o=(t.y*i+r.canonical.y)*n;return{min:new v((e.x*i+r.canonical.x)*n+r.wrap,(e.y*i+r.canonical.y)*n),max:new v(s,o)}}function Ix(e,t,r){const i=1<<r.canonical.z,n=((t.x-r.wrap)*i-r.canonical.x)*oi,s=(t.y*i-r.canonical.y)*oi;return{min:new v(((e.x-r.wrap)*i-r.canonical.x)*oi,(e.y*i-r.canonical.y)*oi),max:new v(n,s)}}function Px(e,t,r,i,n,s,o){const a=e.indices,l=e.vertices,c=[];for(let u=i;u<i+n;u+=3){const i=t[r[u+0]+s],n=t[r[u+1]+s],h=t[r[u+2]+s],d=Math.min(i.x,n.x,h.x),p=Math.max(i.x,n.x,h.x),f=Math.min(i.y,n.y,h.y),m=Math.max(i.y,n.y,h.y);c.length=0,e.grid.query(new v(d,f),new v(p,m),c);for(let e=0;e<c.length;e++){const t=c[e];if(ff(l[a[3*t+0]],l[a[3*t+1]],l[a[3*t+2]],i,n,h,o))return!0}}return!1}function Mx(e,t,r,i){if(!e||!r)return!1;let n=e.vertices;if(!t.canonical.equals(i.canonical)||t.wrap!==i.wrap){if(r.vertices.length<e.vertices.length)return Mx(r,i,e,t);const s=t.canonical,o=i.canonical,a=Math.pow(2,o.z-s.z);n=e.vertices.map((e=>new v(e.x*s.x*oi*a-o.x*oi,e.y*s.y*oi*a-o.y*oi)))}return Px(r,n,e.indices,0,e.indices.length,0,0)}const kx=Gm.types,Ox=["fill-extrusion-base","fill-extrusion-height","fill-extrusion-color","fill-extrusion-pattern","fill-extrusion-flood-light-wall-radius"],Rx=["fill-extrusion-flood-light-ground-radius"],Dx=Math.pow(2,13),Lx=Math.pow(2,15)-1,Bx=new v(0,1),zx=2147483648;function jx(e,t,r,i,n,s,o,a){e.emplaceBack((t<<1)+o,(r<<1)+s,(Math.floor(i*Dx)<<1)+n,Math.round(a))}function Fx(e,t,r,i,n,s){e.emplaceBack(t.x,t.y,(r.x<<1)+i,(r.y<<1)+n,s)}function Nx(e,t,r){const i=16384;e.emplaceBack(t.x,t.y,t.z,r[0]*i,r[1]*i,r[2]*i)}class Ux{constructor(){this.vertexOffset=0,this.vertexCount=0,this.indexOffset=0,this.indexCount=0}}class Vx{constructor(){this.centroidXY=new v(0,0),this.vertexArrayOffset=0,this.vertexCount=0,this.groundVertexArrayOffset=0,this.groundVertexCount=0,this.flags=0,this.footprintSegIdx=-1,this.footprintSegLen=0,this.min=new v(Number.MAX_VALUE,Number.MAX_VALUE),this.max=new v(-Number.MAX_VALUE,-Number.MAX_VALUE),this.height=0}span(){return new v(this.max.x-this.min.x,this.max.y-this.min.y)}}class Gx{constructor(){this.acc=new v(0,0),this.accCount=0,this.centroidDataIndex=0}startRing(e,t){e.min.x===Number.MAX_VALUE&&(e.min.x=e.max.x=t.x,e.min.y=e.max.y=t.y)}appendEdge(e,t,r){this.accCount++,this.acc._add(t);let i=!!this.borders;t.x<e.min.x?(e.min.x=t.x,i=!0):t.x>e.max.x&&(e.max.x=t.x,i=!0),t.y<e.min.y?(e.min.y=t.y,i=!0):t.y>e.max.y&&(e.max.y=t.y,i=!0),((0===t.x||t.x===oi)&&t.x===r.x)!=((0===t.y||t.y===oi)&&t.y===r.y)&&this.processBorderOverlap(t,r),i&&this.checkBorderIntersection(t,r)}checkBorderIntersection(e,t){t.x<0!=e.x<0&&this.addBorderIntersection(0,Wi(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>oi!=e.x>oi&&this.addBorderIntersection(1,Wi(t.y,e.y,(oi-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,Wi(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>oi!=e.y>oi&&this.addBorderIntersection(3,Wi(t.x,e.x,(oi-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const r=this.borders[e];t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const r=0===e.x?0:1;this.addBorderIntersection(r,t.y),this.addBorderIntersection(r,e.y)}else{const r=0===e.y?2:3;this.addBorderIntersection(r,t.x),this.addBorderIntersection(r,e.x)}}centroid(){return 0===this.accCount?new v(0,0):new v(Math.floor(Math.max(0,this.acc.x)/this.accCount),Math.floor(Math.max(0,this.acc.y)/this.accCount))}intersectsCount(){return this.borders?this.borders.reduce(((e,t)=>e+ +(t[0]!==Number.MAX_VALUE)),0):0}}function qx(e,t){const r=e.add(t)._unit(),i=M(e.x*r.x+e.y*r.y,-1,1);var n,s,o;return n=Math.acos(i),Math.min(4,Math.max(-4,Math.tan(n)))/4*Lx*((s=e).x*(o=t).y-s.y*o.x<0?-1:1)}const Hx=[e=>e.x<0,e=>e.x>oi,e=>e.y<0,e=>e.y>oi];function Wx(e,t,r,i){const n=[4];if(0===i)return n;r._mult(i);const s=e.sub(r),o=t.sub(r),a=[e,t,s,o];for(let e=0;e<4;e++)for(const t of a)if(Hx[e](t)){n.push(e);break}return n}class Yx{constructor(e){this.vertexArray=new vl,this.indexArray=new Rl,this.programConfigurations=new Fc(e.layers,e.zoom,(e=>Rx.includes(e))),this._segments=new nc,this.hiddenByLandmarkVertexArray=new ql,this._segmentToGroundQuads={},this._segmentToGroundQuads[0]=[],this._segmentToRegionTriCounts={},this._segmentToRegionTriCounts[0]=[0,0,0,0,0],this.regionSegments={},this.regionSegments[4]=new nc}getDefaultSegment(){return this.regionSegments[4]}hasData(){return 0!==this.vertexArray.length}addData(e,t,r,i=!1){const n=e.length;if(n>2){let s=Math.max(0,this._segments.get().length-1);const o=this._segments._prepareSegment(4*n,this.vertexArray.length,2*this._segmentToGroundQuads[s].length);let a;s!==this._segments.get().length-1&&(s++,this._segmentToGroundQuads[s]=[],this._segmentToRegionTriCounts[s]=[0,0,0,0,0]);{const t=e[0],r=e[1];a=qx(t.sub(e[n-1])._perp()._unit(),r.sub(t)._perp()._unit())}for(let l=0;l<n;l++){const c=l===n-1?0:l+1,u=e[l],h=e[c],d=e[c===n-1?0:c+1],p=h.sub(u)._perp()._unit(),f=qx(p,d.sub(h)._perp()._unit()),m=a,g=f;if(Jx(u,h,t)||i&&$x(u,t)&&$x(h,t)){a=f;continue}const y=o.vertexLength;Fx(this.vertexArray,u,h,1,1,m),Fx(this.vertexArray,u,h,1,0,m),Fx(this.vertexArray,u,h,0,1,g),Fx(this.vertexArray,u,h,0,0,g),o.vertexLength+=4;const v=Wx(u,h,p,r);for(const e of v)this._segmentToGroundQuads[s].push({id:y,region:e}),this._segmentToRegionTriCounts[s][e]+=2,o.primitiveLength+=2;a=f}}}prepareBorderSegments(){if(!this.hasData())return;const e=this._segments.get(),t=e.length;for(let e=0;e<t;e++)this._segmentToGroundQuads[e].sort(((e,t)=>e.region-t.region));for(let r=0;r<t;r++){const t=this._segmentToGroundQuads[r],i=e[r],n=this._segmentToRegionTriCounts[r];n.reduce(((e,t)=>e+t),0);let s=0;for(let e=0;e<=4;e++){const t=n[e];if(0!==t){let r=this.regionSegments[e];r||(r=this.regionSegments[e]=new nc);const n={vertexOffset:i.vertexOffset,primitiveOffset:i.primitiveOffset+s,vertexLength:i.vertexLength,primitiveLength:t};r.get().push(n)}s+=t}for(let e=0;e<t.length;e++){const r=t[e].id;this.indexArray.emplaceBack(r,r+1,r+3),this.indexArray.emplaceBack(r,r+3,r+2)}}this._segmentToGroundQuads=null,this._segmentToRegionTriCounts=null,this._segments.destroy(),this._segments=null}addPaintPropertiesData(e,t,r,i,n,s){this.hasData()&&this.programConfigurations.populatePaintArrays(this.vertexArray.length,e,t,r,i,n,s)}upload(e){this.hasData()&&(this.vertexBuffer=e.createVertexBuffer(this.vertexArray,Sm.members),this.indexBuffer=e.createIndexBuffer(this.indexArray))}uploadPaintProperties(e){this.hasData()&&this.programConfigurations.upload(e)}update(e,t,r,i,n,s){this.hasData()&&this.programConfigurations.updatePaintArrays(e,t,r,i,n,s)}updateHiddenByLandmark(e){if(!this.hasData())return;const t=e.groundVertexCount+e.groundVertexArrayOffset;if(0===e.groundVertexCount)return;const r=e.flags&zx?1:0;for(let i=e.groundVertexArrayOffset;i<t;++i)this.hiddenByLandmarkVertexArray.emplace(i,r);this._needsHiddenByLandmarkUpdate=!0}uploadHiddenByLandmark(e){this.hasData()&&this._needsHiddenByLandmarkUpdate&&(!this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexArray.length>0?this.hiddenByLandmarkVertexBuffer=e.createVertexBuffer(this.hiddenByLandmarkVertexArray,Cm.members,!0):this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.updateData(this.hiddenByLandmarkVertexArray),this._needsHiddenByLandmarkUpdate=!1)}destroy(){if(this.vertexBuffer){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.destroy(),this._segments&&this._segments.destroy(),this.programConfigurations.destroy();for(let e=0;e<=4;e++){const t=this.regionSegments[e];t&&t.destroy()}}}}class Qx{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.activeReplacements=[],this.replacementUpdateTime=0,this.centroidData=[],this.footprintIndices=new Rl,this.footprintVertices=new ml,this.footprintSegments=[],this.layoutVertexArray=new yl,this.centroidVertexArray=new tc,this.indexArray=new Rl,this.programConfigurations=new Fc(e.layers,e.zoom,(e=>Ox.includes(e))),this.segments=new nc,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.groundEffect=new Yx(e),this.maxHeight=0,this.partLookup={}}
2populate(e,t,r,i){this.features=[],this.hasPattern=_m("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borderFeatureIndices=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=Np(r),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:n,id:s,index:o,sourceLayerIndex:a}of e){const e=this.layers[0]._featureFilter.needGeometry,l=Xp(n,e);if(!this.layers[0]._featureFilter.filter(new Wa(this.zoom),l,r))continue;const c={id:s,sourceLayerIndex:a,index:o,geometry:e?l.geometry:Zp(n,r,i),properties:n.properties,type:n.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(bm("fill-extrusion",this.layers,c,this.zoom,t)):this.addFeature(c,c.geometry,o,r,{},t.availableImages,i,t.brightness),t.featureIndex.insert(n,c.geometry,o,a,this.index,u)}this.sortBorders(),this.groundEffect.prepareBorderSegments()}addFeatures(e,t,r,i,n,s){for(const e of this.features){const{geometry:o}=e;this.addFeature(e,o,e.index,t,r,i,n,s)}this.sortBorders()}update(e,t,r,i,n){const s=0!==Object.keys(e).length;if(s&&!this.stateDependentLayers.length)return;const o=s?this.stateDependentLayers:this.layers;this.programConfigurations.updatePaintArrays(e,t,o,r,i,n),this.groundEffect.update(e,t,o,r,i,n)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload||this.groundEffect.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pm),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,Im.members,!0)),this.groundEffect.upload(e)),this.groundEffect.uploadPaintProperties(e),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){this.groundEffect.uploadHiddenByLandmark(e),this.needsCentroidUpdate&&(!this.centroidVertexBuffer&&this.centroidVertexArray.length>0?this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Tm.members,!0):this.centroidVertexBuffer&&this.centroidVertexBuffer.updateData(this.centroidVertexArray),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.groundEffect.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,n,s,o,a){const l=this.layers[0].paint.get("fill-extrusion-flood-light-ground-radius").evaluate(e,{})/this.tileToMeter,c=[new v(0,0),new v(oi,oi)],u=o.projection,h="globe"===u.name,d="Polygon"===kx[e.type],p=new Gx;p.centroidDataIndex=this.centroidData.length;const f=new Vx,m=this.layers[0].paint.get("fill-extrusion-base").evaluate(e,{},i)<=0,g=this.layers[0].paint.get("fill-extrusion-height").evaluate(e,{},i);f.height=g,f.vertexArrayOffset=this.layoutVertexArray.length,f.groundVertexArrayOffset=this.groundEffect.vertexArray.length,h&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Al);const y=ym(t,500);for(let e=y.length-1;e>=0;e--){const t=y[e];(0===t.length||(_=t[0]).every((e=>e.x<=0))||_.every((e=>e.x>=oi))||_.every((e=>e.y<=0))||_.every((e=>e.y>=oi)))&&y.splice(e,1)}var _;let b;if(h)b=iw(y,c,i);else{b=[];for(const e of y)b.push({polygon:e,bounds:c})}const x=d?this.edgeRadius:0,w=x>0&&this.zoom<17,A=(e,t)=>{if(0===e.length)return!1;const r=e[e.length-1];return t.x===r.x&&t.y===r.y};for(const{polygon:e,bounds:t}of b){let r=0,n=0;for(const t of e)d&&!t[0].equals(t[t.length-1])&&t.push(t[0]),n+=d?t.length-1:t.length;const s=this.segments.prepareSegment((d?5:4)*n,this.layoutVertexArray,this.indexArray);f.footprintSegIdx<0&&(f.footprintSegIdx=this.footprintSegments.length);const o=new Ux;if(o.vertexOffset=this.footprintVertices.length,o.indexOffset=3*this.footprintIndices.length,o.ringIndices=[],d){const n=[],a=[];r=s.vertexLength;for(let r=0;r<e.length;r++){const c=e[r];c.length&&0!==r&&a.push(n.length/2);const d=[];let p,f;p=c[1].sub(c[0])._perp()._unit(),o.ringIndices.push(c.length-1);for(let e=1;e<c.length;e++){const t=c[e],r=c[e===c.length-1?1:e+1],o=t.clone();if(x){f=r.sub(t)._perp()._unit();const e=p.add(f)._unit(),i=x*Math.min(4,1/(p.x*e.x+p.y*e.y));o.x+=i*e.x,o.y+=i*e.y,o.x=Math.round(o.x),o.y=Math.round(o.y),p=f}!m||0!==x&&!w||A(d,o)||d.push(o),jx(this.layoutVertexArray,o.x,o.y,0,0,1,1,0),s.vertexLength++,this.footprintVertices.emplaceBack(t.x,t.y),n.push(t.x,t.y),h&&Nx(this.layoutVertexExtArray,u.projectTilePoint(o.x,o.y,i),u.upVector(i,o.x,o.y))}m&&(0===x||w)&&(0!==d.length&&A(d,d[0])&&d.pop(),this.groundEffect.addData(d,t,l))}const c=gm(n,a);for(let e=0;e<c.length;e+=3)this.footprintIndices.emplaceBack(o.vertexOffset+c[e+0],o.vertexOffset+c[e+1],o.vertexOffset+c[e+2]),this.indexArray.emplaceBack(r+c[e],r+c[e+2],r+c[e+1]),s.primitiveLength++;o.indexCount+=c.length,o.vertexCount+=this.footprintVertices.length-o.vertexOffset}for(let n=0;n<e.length;n++){const o=e[n];p.startRing(f,o[0]);let a=o.length>4&&ew(o[o.length-2],o[0],o[1]),c=x?Xx(o[o.length-2],o[0],o[1],x):0;const g=[];let y,v,_;v=o[1].sub(o[0])._perp()._unit();let b=!0;for(let e=1,n=0;e<o.length;e++){let l=o[e-1],d=o[e];const w=o[e===o.length-1?1:e+1];if(p.appendEdge(f,d,l),Jx(d,l,t)){x&&(v=w.sub(d)._perp()._unit(),b=!b);continue}const E=d.sub(l)._perp(),S=E.x/(Math.abs(E.x)+Math.abs(E.y)),T=E.y>0?1:0,C=l.dist(d);if(n+C>32768&&(n=0),x){_=w.sub(d)._perp()._unit();let e=Kx(l,d,w,Zx(v,_),x);isNaN(e)&&(e=0);const t=d.sub(l)._unit();l=l.add(t.mult(c))._round(),d=d.add(t.mult(-e))._round(),c=e,v=_,m&&this.zoom>=17&&(A(g,l)||g.push(l),A(g,d)||g.push(d))}const I=s.vertexLength,P=o.length>4&&ew(l,d,w);let M=tw(n,a,b);if(jx(this.layoutVertexArray,l.x,l.y,S,T,0,0,M),jx(this.layoutVertexArray,l.x,l.y,S,T,0,1,M),n+=C,M=tw(n,P,!b),a=P,jx(this.layoutVertexArray,d.x,d.y,S,T,0,0,M),jx(this.layoutVertexArray,d.x,d.y,S,T,0,1,M),s.vertexLength+=4,this.indexArray.emplaceBack(I+0,I+1,I+2),this.indexArray.emplaceBack(I+1,I+3,I+2),s.primitiveLength+=2,x){const i=r+(1===e?o.length-2:e-2),n=1===e?r:i+1;if(this.indexArray.emplaceBack(I+1,i,I+3),this.indexArray.emplaceBack(i,n,I+3),s.primitiveLength+=2,void 0===y&&(y=I),!Jx(w,o[e],t)){const t=e===o.length-1?y:s.vertexLength;this.indexArray.emplaceBack(I+2,I+3,t),this.indexArray.emplaceBack(I+3,t+1,t),this.indexArray.emplaceBack(I+3,n,t+1),s.primitiveLength+=3}b=!b}if(h){const e=this.layoutVertexExtArray,t=u.projectTilePoint(l.x,l.y,i),r=u.projectTilePoint(d.x,d.y,i),n=u.upVector(i,l.x,l.y),s=u.upVector(i,d.x,d.y);Nx(e,t,n),Nx(e,t,n),Nx(e,r,s),Nx(e,r,s)}}d&&(r+=o.length-1),m&&x&&this.zoom>=17&&(0!==g.length&&A(g,g[0])&&g.pop(),this.groundEffect.addData(g,t,l,x>0))}this.footprintSegments.push(o),++f.footprintSegLen}if(f.vertexCount=this.layoutVertexArray.length-f.vertexArrayOffset,f.groundVertexCount=this.groundEffect.vertexArray.length-f.groundVertexArrayOffset,0!==f.vertexCount){if(f.centroidXY=p.borders?Bx:this.encodeCentroid(p,f),this.centroidData.push(f),p.borders){this.featuresOnBorder.push(p);const e=this.featuresOnBorder.length-1;for(let t=0;t<p.borders.length;t++)p.borders[t][0]!==Number.MAX_VALUE&&this.borderFeatureIndices[t].push(e)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,n,s,i,a),this.groundEffect.addPaintPropertiesData(e,r,n,s,i,a),this.maxHeight=Math.max(this.maxHeight,g)}}sortBorders(){for(let e=0;e<this.borderFeatureIndices.length;e++)this.borderFeatureIndices[e].sort(((t,r)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[r].borders[e][0]))}encodeCentroid(e,t){const r=e.centroid(),i=t.span(),n=Math.min(7,Math.round(i.x*this.tileToMeter/10)),s=Math.min(7,Math.round(i.y*this.tileToMeter/10));return new v(M(r.x,1,8191)<<3|n,M(r.y,1,8191)<<3|s)}showCentroid(e){const t=this.centroidData[e.centroidDataIndex];t.flags&=zx,t.centroidXY.x=0,t.centroidXY.y=0,this.writeCentroidToBuffer(t)}writeCentroidToBuffer(e){this.groundEffect.updateHiddenByLandmark(e);const t=e.vertexArrayOffset,r=e.vertexCount+e.vertexArrayOffset,i=e.flags&zx?Bx:e.centroidXY,n=this.centroidVertexArray.geta_centroid_pos0(t);if(this.centroidVertexArray.geta_centroid_pos1(t)!==i.y||n!==i.x){for(let e=t;e<r;++e)this.centroidVertexArray.emplace(e,i.x,i.y);this.needsCentroidUpdate=!0}}createCentroidsBuffer(){this.centroidVertexArray.resize(this.layoutVertexArray.length),this.groundEffect.hiddenByLandmarkVertexArray.resize(this.groundEffect.vertexArray.length);for(const e of this.centroidData)this.writeCentroidToBuffer(e)}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const r=t.getReplacementRegionsForTile(e.toUnwrapped());if(function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;
vendor: 6,965 bytes, line 2
2r++)if(e[r].sourceId!==t[r].sourceId||!Sx(e[r],t[r]))return!1;return!0}(this.activeReplacements,r))return;if(this.activeReplacements=r,0===this.centroidVertexArray.length)this.createCentroidsBuffer();else for(const e of this.centroidData)e.flags&=2147483647;const i=[];for(const t of this.activeReplacements){const r=Math.pow(2,t.footprintTileId.canonical.z-e.canonical.z);for(const n of this.centroidData)if(!(n.flags&zx||t.min.x>n.max.x||n.min.x>t.max.x||t.min.y>n.max.y||n.min.y>t.max.y))for(let s=0;s<n.footprintSegLen;s++){const o=this.footprintSegments[n.footprintSegIdx+s];if(i.length=0,nw(this.footprintVertices,o.vertexOffset,o.vertexCount,t.footprintTileId.canonical,e.canonical,i),Px(t.footprint,i,this.footprintIndices.uint16,o.indexOffset,o.indexCount,-o.vertexOffset,-r)){n.flags|=zx;break}}}for(const e of this.centroidData)this.writeCentroidToBuffer(e);this.borderDoneWithNeighborZ=[-1,-1,-1,-1]}footprintContainsPoint(e,t,r){let i=!1;for(let n=0;n<r.footprintSegLen;n++){const s=this.footprintSegments[r.footprintSegIdx+n];let o=0;for(const r of s.ringIndices){for(let n=o,a=r+o-1;n<r+o;a=n++){const r=this.footprintVertices.int16[2*(n+s.vertexOffset)+0],o=this.footprintVertices.int16[2*(n+s.vertexOffset)+1],l=this.footprintVertices.int16[2*(a+s.vertexOffset)+1];o>t!=l>t&&e<(this.footprintVertices.int16[2*(a+s.vertexOffset)+0]-r)*(t-o)/(l-o)+r&&(i=!i)}o=r}}return i}getHeightAtTileCoord(e,t){let r=Number.NEGATIVE_INFINITY,i=!0;const n=4*(e+oi)*oi+(t+oi);if(this.partLookup.hasOwnProperty(n)){const e=this.partLookup[n];return e?{height:e.height,hidden:!!(e.flags&zx)}:void 0}for(const s of this.centroidData)e>s.max.x||s.min.x>e||t>s.max.y||s.min.y>t||this.footprintContainsPoint(e,t,s)&&s&&s.height>r&&(r=s.height,this.partLookup[n]=s,i=!!(s.flags&zx));if(r!==Number.NEGATIVE_INFINITY)return{height:r,hidden:i};this.partLookup[n]=void 0}}function Zx(e,t){const r=e.add(t)._unit();return e.x*r.x+e.y*r.y}function Xx(e,t,r,i){const n=t.sub(e)._perp()._unit(),s=r.sub(t)._perp()._unit();return Kx(e,t,r,Zx(n,s),i)}function Kx(e,t,r,i,n){const s=Math.sqrt(1-i*i);return Math.min(e.dist(t)/3,t.dist(r)/3,n*s/i)}function Jx(e,t,r){return e.x<r[0].x&&t.x<r[0].x||e.x>r[1].x&&t.x>r[1].x||e.y<r[0].y&&t.y<r[0].y||e.y>r[1].y&&t.y>r[1].y}function $x(e,t){return e.x<t[0].x||e.x>t[1].x||e.y<t[0].y||e.y>t[1].y}function ew(e,t,r){if(e.x<0||e.x>=oi||t.x<0||t.x>=oi||r.x<0||r.x>=oi)return!1;const i=r.sub(t),n=i.perp(),s=e.sub(t);return(i.x*s.x+i.y*s.y)/Math.sqrt((i.x*i.x+i.y*i.y)*(s.x*s.x+s.y*s.y))>-.866&&n.x*s.x+n.y*s.y<0}function tw(e,t,r){const i=t?2|e:-3&e;return r?1|i:-2&i}function rw(){const e=Math.PI/32,t=Math.tan(e),r=Sp;return r*Math.sqrt(1+2*t*t)-r}function iw(e,t,r){const i=1<<r.z,n=Rp(r.x/i),s=Rp((r.x+1)/i),o=Dp(r.y/i),a=Dp((r.y+1)/i);return function(e,t,r,i,n=0,s){const o=[];if(!e.length||!r||!i)return o;const a=(e,t)=>{for(const r of e)o.push({polygon:r,bounds:t})},l=Math.ceil(Math.log2(r)),c=Math.ceil(Math.log2(i)),u=l-c,h=[];for(let e=0;e<Math.abs(u);e++)h.push(u>0?0:1);for(let e=0;e<Math.min(l,c);e++)h.push(0),h.push(1);let d=e;if(d=qm(d,t[0].y-n,t[1].y+n,1),d=qm(d,t[0].x-n,t[1].x+n,0),!d.length)return o;const p=[];for(h.length?p.push({polygons:d,bounds:t,depth:0}):a(d,t);p.length;){const e=p.pop(),t=e.depth,r=h[t],i=e.bounds[0],o=e.bounds[1],l=0===r?i.x:i.y,c=0===r?o.x:o.y,u=s?s(r,l,c):.5*(l+c),d=qm(e.polygons,l-n,u+n,r),f=qm(e.polygons,u-n,c+n,r);if(d.length){const e=[i,new v(0===r?u:o.x,1===r?u:o.y)];h.length>t+1?p.push({polygons:d,bounds:e,depth:t+1}):a(d,e)}if(f.length){const e=[new v(0===r?u:i.x,1===r?u:i.y),o];h.length>t+1?p.push({polygons:f,bounds:e,depth:t+1}):a(f,e)}}return o}(e,t,Math.ceil((s-n)/11.25),Math.ceil((o-a)/11.25),1,((e,t,n)=>{if(0===e)return.5*(t+n);{const e=Dp((r.y+t/oi)/i);return(kp(.5*(Dp((r.y+n/oi)/i)+e))*i-r.y)*oi}}))}function nw(e,t,r,i,n,s){const o=Math.pow(2,i.z-n.z);for(let a=0;a<r;a++){let r=e.int16[2*(a+t)+0],l=e.int16[2*(a+t)+1];r=(r+n.x*oi)*o-i.x*oi,l=(l+n.y*oi)*o-i.y*oi,s.push(new v(r,l))}}To(Qx,"FillExtrusionBucket",{omit:["layers","features"]}),To(Vx,"PartData"),To(Ux,"FootprintSegment"),To(Gx,"BorderCentroidData"),To(Yx,"GroundEffect");const sw=new nl({visibility:new tl(Pt["layout_fill-extrusion"].visibility),"fill-extrusion-edge-radius":new tl(Pt["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var ow={paint:new nl({"fill-extrusion-opacity":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new rl(Pt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new rl(Pt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new rl(Pt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new rl(Pt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-ambient-occlusion-wall-radius":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-wall-radius"]),"fill-extrusion-ambient-occlusion-ground-radius":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-ground-radius"]),"fill-extrusion-ambient-occlusion-ground-attenuation":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-ground-attenuation"]),"fill-extrusion-flood-light-color":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-flood-light-color"]),"fill-extrusion-flood-light-intensity":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-flood-light-intensity"]),"fill-extrusion-flood-light-wall-radius":new rl(Pt["paint_fill-extrusion"]["fill-extrusion-flood-light-wall-radius"]),"fill-extrusion-flood-light-ground-radius":new rl(Pt["paint_fill-extrusion"]["fill-extrusion-flood-light-ground-radius"]),"fill-extrusion-flood-light-ground-attenuation":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-flood-light-ground-attenuation"]),"fill-extrusion-vertical-scale":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-vertical-scale"]),"fill-extrusion-rounded-roof":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-rounded-roof"]),"fill-extrusion-cutoff-fade-range":new tl(Pt["paint_fill-extrusion"]["fill-extrusion-cutoff-fade-range"])}),layout:sw};class aw extends v{constructor(e,t,r){super(e,t),this.z=r}}function lw(e,t){return e.x*t.x+e.y*t.y}function cw(e,t){if(1===e.length){let r=0;const i=t[r++];let n;for(;!n||i.equals(n);)if(n=t[r++],!n)return 1/0;for(;r<t.length;r++){const s=t[r],o=e[0],a=n.sub(i),l=s.sub(i),c=o.sub(i),u=lw(a,a),h=lw(a,l),d=lw(l,l),p=lw(c,a),f=lw(c,l),m=u*d-h*h,g=(d*p-h*f)/m,
2y=(u*f-h*p)/m,v=i.z*(1-g-y)+n.z*g+s.z*y;if(isFinite(v))return v}return 1/0}{let e=1/0;for(const r of t)e=Math.min(e,r.z);return e}}function uw(e,t,r,i,n,s,o,a){const l=o*n.getElevationAt(e,t,!0,!0),c=0!==s[0],u=c?0===s[1]?o*(s[0]/7-450):o*function(e,t,r){const i=Math.floor(t[0]/8),n=Math.floor(t[1]/8),s=10*(t[0]-8*i),o=10*(t[1]-8*n),a=e.getElevationAt(i,n,!0,!0),l=e.getMeterToDEM(r),c=Math.floor(.5*(s*l-1)),u=Math.floor(.5*(o*l-1)),h=e.tileCoordToPixel(i,n),d=2*c+1,p=2*u+1,f=function(e,t,r,i,n){return[e.getElevationAtPixel(t,r,!0),e.getElevationAtPixel(t+n,r,!0),e.getElevationAtPixel(t,r+n,!0),e.getElevationAtPixel(t+i,r+n,!0)]}(e,h.x-c,h.y-u,d,p),m=Math.abs(f[0]-f[1]),g=Math.abs(f[2]-f[3]),y=Math.abs(f[0]-f[2])+Math.abs(f[1]-f[3]),v=Math.min(.25,.5*l*(m+g)/d),_=Math.min(.25,.5*l*y/p);return a+Math.max(v*s,_*o)}(n,s,a):l;return{base:l+(0===r)?-1:r,top:c?Math.max(u+i,l+r+2):l+i}}const hw=new nl({"line-cap":new rl(Pt.layout_line["line-cap"]),"line-join":new rl(Pt.layout_line["line-join"]),"line-miter-limit":new tl(Pt.layout_line["line-miter-limit"]),"line-round-limit":new tl(Pt.layout_line["line-round-limit"]),"line-sort-key":new rl(Pt.layout_line["line-sort-key"]),visibility:new tl(Pt.layout_line.visibility)});var dw={paint:new nl({"line-opacity":new rl(Pt.paint_line["line-opacity"]),"line-color":new rl(Pt.paint_line["line-color"]),"line-translate":new tl(Pt.paint_line["line-translate"]),"line-translate-anchor":new tl(Pt.paint_line["line-translate-anchor"]),"line-width":new rl(Pt.paint_line["line-width"]),"line-gap-width":new rl(Pt.paint_line["line-gap-width"]),"line-offset":new rl(Pt.paint_line["line-offset"]),"line-blur":new rl(Pt.paint_line["line-blur"]),"line-dasharray":new rl(Pt.paint_line["line-dasharray"]),"line-pattern":new rl(Pt.paint_line["line-pattern"]),"line-gradient":new il(Pt.paint_line["line-gradient"]),"line-trim-offset":new tl(Pt.paint_line["line-trim-offset"]),"line-emissive-strength":new tl(Pt.paint_line["line-emissive-strength"]),"line-border-width":new rl(Pt.paint_line["line-border-width"]),"line-border-color":new rl(Pt.paint_line["line-border-color"])}),layout:hw};const pw=(e,t,r,i,n,s,o)=>{const a=e.transform,l=a.calculatePixelsToTileUnitsMatrix(t);return{u_matrix:gw(e,t,r,i),u_pixels_to_tile_units:l,u_device_pixel_ratio:s,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:n,u_texsize:vw(r)?t.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:mw(t,e.transform),u_alpha_discard_threshold:0,u_trim_offset:o,u_emissive_strength:r.paint.get("line-emissive-strength")}},fw=(e,t,r,i,n)=>{const s=e.transform;return{u_matrix:gw(e,t,r,i),u_texsize:t.imageAtlasTexture.size,u_pixels_to_tile_units:s.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:n,u_image:0,u_tile_units_to_pixels:mw(t,s),u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function mw(e,t){return 1/Pb(e,1,t.tileZoom)}function gw(e,t,r,i){return e.translatePosMatrix(i||t.tileID.projMatrix,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}const yw=e=>{const t=[];vw(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const r=e.paint.get("line-trim-offset");return 0===r[0]&&0===r[1]||t.push("RENDER_LINE_TRIM_OFFSET"),0!==e.paint.get("line-border-width").constantOr(1)&&t.push("RENDER_LINE_BORDER"),t};function vw(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}const _w=new class extends rl{possiblyEvaluate(e,t){return t=new Wa(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=L({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}}(dw.paint.properties["line-width"].specification);function bw(e,t){return t>0?t+2*e:e}_w.useIntegerZoom=!0;const xw=new nl({visibility:new tl(Pt.layout_background.visibility)});var ww={paint:new nl({"background-color":new tl(Pt.paint_background["background-color"]),"background-pattern":new tl(Pt.paint_background["background-pattern"]),"background-opacity":new tl(Pt.paint_background["background-opacity"]),"background-emissive-strength":new tl(Pt.paint_background["background-emissive-strength"])}),layout:xw};const Aw=new nl({visibility:new tl(Pt.layout_raster.visibility)});var Ew={paint:new nl({"raster-opacity":new tl(Pt.paint_raster["raster-opacity"]),"raster-color":new il(Pt.paint_raster["raster-color"]),"raster-color-mix":ne
2w tl(Pt.paint_raster["raster-color-mix"]),"raster-color-range":new tl(Pt.paint_raster["raster-color-range"]),"raster-hue-rotate":new tl(Pt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new tl(Pt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new tl(Pt.paint_raster["raster-brightness-max"]),"raster-saturation":new tl(Pt.paint_raster["raster-saturation"]),"raster-contrast":new tl(Pt.paint_raster["raster-contrast"]),"raster-resampling":new tl(Pt.paint_raster["raster-resampling"]),"raster-fade-duration":new tl(Pt.paint_raster["raster-fade-duration"])}),layout:Aw};function Sw(e,t,r,i,n,s,o,a){const l=[e,r,n,t,i,s,1,1,1],c=[o,a,1],u=cd.adjoint([],l),[h,d,p]=yd.transformMat3(c,c,cd.transpose(u,u));return cd.multiply(l,[h,0,0,0,d,0,0,0,p],l)}class Tw extends It{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.onNorthPole=!1,this.onSouthPole=!1,this.setEventedParent(i),this.options=t,this._dirty=!1}load(e,r){if(this._loaded=r||!1,this.fire(new Tt("dataloading",{dataType:"source"})),this.url=this.options.url,!this.url)return e&&(this.coordinates=e),this._loaded=!0,void this._finishLoading();this._imageRequest=Ie(this.map._requestManager.transformRequest(this.url,ve.Image),((r,i)=>{if(this._imageRequest=null,this._loaded=!0,r)this.fire(new Ct(r));else if(i){const{HTMLImageElement:r}=t;this.image=i instanceof r?ut.getImageData(i):i,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,e&&(this.coordinates=e),this._finishLoading()}}))}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this._imageRequest&&e.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}setTexture(e){if(!(e.handle instanceof WebGLTexture))throw new Error("The provided handle is not a WebGLTexture instance");return this.texture=new Jv(this.map.painter.context,e.handle),this.width=e.dimensions[0],this.height=e.dimensions[1],this._dirty=!1,this._loaded=!0,this._finishLoading(),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Tt("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),!this.texture||this.texture instanceof Jv||this.texture.destroy()}setCoordinates(e){if(this.coordinates=e,this._boundsArray=void 0,!e.length)return this;this.onNorthPole=!1,this.onSouthPole=!1;let t=e[0][1],r=e[0][1];for(const i of e)i[1]>r&&(r=i[1]),i[1]<t&&(t=i[1]);const i=(r+t)/2;if(i>Bp?this.onNorthPole=!0:i<-Bp&&(this.onSouthPole=!0),!this.onNorthPole&&!this.onSouthPole){const t=e.map(Up.fromLngLat);this.tileID=function(e){let t=1/0,r=1/0,i=-1/0,n=-1/0;for(const s of e)t=Math.min(t,s.x),r=Math.min(r,s.y),i=Math.max(i,s.x),n=Math.max(n,s.y);const s=Math.max(i-t,n-r),o=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),a=Math.pow(2,o);return new Cd(o,Math.floor((t+i)/2*a),Math.floor((r+n)/2*a))}(t),this.minzoom=this.maxzoom=this.tileID.z}return this.fire(new Tt("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(e){for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}if(this._boundsArray)return;const t=iv(this.tileID,this.map.transform.projection),[r,i,n,s]=this.coordinates.map((e=>{const r=t.projection.project(e[0],e[1]);return sv(t,r)._round()}));this.perspectiveTransform=function(e,t,r,i,n,s,o,a,l,c){const u=Sw(0,0,e,0,0,t,e,t),h=Sw(r,i,n,s,o,a,l,c);return cd.multiply(h,cd.adjoint(u,u),h),[h[6]/h[8]*e/oi,h[7]/h[8]*t/oi]}(this.width,this.height,r.x,r.y,i.x,i.y,s.x,s.y,n.x,n.y);const o=this._boundsArray=new yl;o.emplaceBack(r.x,r.y,0,0),o.emplaceBack(i.x,i.y,oi,0),o.emplaceBack(s.x,s.y,0,oi),o.emplaceBack(n.x,n.y,oi,oi),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=e.createVertexBuffer(o,o_.members),this.boundsSegments=nc.simpleSegment(0,0,4,2)}prepare(){const e=0!==Object.keys(this.tiles).length;if(this.tileID&&!e)return;const t=this.map.painter.context,r=t.gl;!this._dirty||this.texture instanceof Jv||(this.texture?this.texture.update(this.image):(this.texture=new Kv(t,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this._dirty=!1),e&&this._prepareData(t)}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Cw extends ll{constructor(e){super(e,{}),this.implementation=e,e.slot&&(this.slot=e.slot)}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(e){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}const Iw=new nl({visibility:new tl(Pt.layout_sky.visibility)});var Pw={paint:new nl({"sky-type":new tl(Pt.paint_sky["sky-type"]),"sky-atmosphere-sun":new tl(Pt.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new tl(Pt.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new tl(Pt.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new tl(Pt.paint_sky["sky-gradient-radius"]),"sky-gradient":new il(Pt.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new tl(Pt.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new tl(Pt.paint_sky["sky-atmosphere-color"]),"sky-opacity":new tl(Pt.paint_sky["sky-opacity"])}),layout:Iw}
2;function Mw(e,t,r){const i=[0,0,1],n=pd.identity([]);return pd.rotateY(n,n,r?-w(e)+Math.PI:w(e)),pd.rotateX(n,n,-w(t)),yd.transformQuat(i,i,n),yd.normalize(i,i)}var kw={paint:new nl({})};const Ow={circle:class extends ll{constructor(e,t){super(e,bf,t)}createBucket(e){return new $p(e)}queryRadius(e){const t=e;return mf("circle-radius",this,t)+mf("circle-stroke-width",this,t)+gf(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,r,i,n,s,o,a){const l=vf(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r);return Ef(e,i,s,o,a,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getDefaultProgramParams(e,t){const r=Af(this);return{config:new jc(this,t),defines:r,overrideFog:!1}}},heatmap:class extends ll{createBucket(e){return new Pf(e)}constructor(e,t){super(e,zf,t),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=jf({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(e){return mf("heatmap-radius",this,e)}queryIntersectsFeature(e,t,r,i,n,s,o,a){const l=this.paint.get("heatmap-radius").evaluate(t,r);return Ef(e,i,s,o,a,!0,!0,new v(0,0),l)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getDefaultProgramParams(e,t){return"heatmap"===e?{config:new jc(this,t),overrideFog:!1}:{}}},hillshade:class extends ll{constructor(e,t){super(e,Nf,t)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}getDefaultProgramParams(e,t){return{overrideFog:!1}}},fill:class extends ll{constructor(e,t){super(e,Am,t)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),r=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&r.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),r}getDefaultProgramParams(e,t){return{config:new jc(this,t),overrideFog:!1}}recalculate(e,t){super.recalculate(e,t);const r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new xm(e)}queryRadius(){return gf(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,r,i,n,s){return!e.queryGeometry.isAboveHorizon&&rf(yf(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),i)}isTileClipped(){return!0}},"fill-extrusion":class extends ll{constructor(e,t){super(e,ow,t)}createBucket(e){return new Qx(e)}queryRadius(){return gf(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}hasShadowPass(){return!0}cutoffRange(){return this.paint.get("fill-extrusion-cutoff-fade-range")}canCastShadows(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}queryIntersectsFeature(e,t,r,i,n,s,o,a,l){const c=vf(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),u=this.paint.get("fill-extrusion-height").evaluate(t,r),h=this.paint.get("fill-extrusion-base").evaluate(t,r),d=[0,0],p=a&&s.elevation,f=s.elevation?s.elevation.exaggeration():1,m=e.tile.getBucket(this);if(p&&m instanceof Qx){const e=m.centroidVertexArray,t=l+1;t<e.length&&(d[0]=e.geta_centroid_pos0(t),d[1]=e.geta_centroid_pos1(t))}if(0===d[0]&&1===d[1])return!1;"globe"===s.projection.name&&(i=iw([i],[new v(0,0),new v(oi,oi)],e.tileID.canonical).map((e=>e.polygon)).flat());const g=p?a:null,[y,_]=function(e,t,r,i,n,s,o,a,l,c,u){return"globe"===e.projection.name?function(e,t,r,i,n,s,o,a,l,c,u){const h=[],d=[],p=e.projection.upVectorScale(u,e.center.lat,e.worldSize).metersToTile,f=[0,0,0,1],m=[0,0,0,1],g=(e,t,r,i)=>{e[0]=t,e[1]=r,e[2]=i,e[3]=1},y=rw();r>0&&(r+=y),i+=y;for(const y of t){const t=[],v=[];for(const h of y){const d=h.x+n.x,y=h.y+n.y,_=e.projection.projectTilePoint(d,y,u),b=e.projection.upVector(u,h.x,h.y);let x=r,w=i;if(o){const e=uw(d,y,r,i,o,a,l,c);x+=e.base,w+=e.top}0!==r?g(f,_.x+b[0]*p*x,_.y+b[1]*p*x,_.z+b[2]*p*x):g(f,_.x,_.y,_.z),g(m,_.x+b[0]*p*w,_.y+b[1]*p*w,_.z+b[2]*p*w),yd.transformMat4(f,f,s),yd.transformMat4(m,m,s),t.push(new aw(f[0],f[1],f[2])),v.push(new aw(m[0],m[1],m[2]))}h.push(t),d.push(v)}return[h,d]}(e,t,r,i,n,s,o,a,l,c,u):o?function(e,t,r,i,n,s,o,a,l){const c=[],u=[],h=[0,0,0,1];for(const d of e){const e=[],p=[];for(const c of d){const u=c.x+i.x,d=c.y+i.y,f=uw(u,d,t,r,s,o,a,l);h[0]=u,h[1]=d,h[2]=f.base,h[3]=1,id.transformMat4(h,h,n),h[3]=Math.max(h[3],1e-5);const m=new aw(h[0]/h[3],h[1]/h[3],h[2]/h[3]);h[0]=u,h[1]=d,h[2]=f.top,h[3]=1,id.transformMat4(h,h,n),h[3]=Math.max(h[3],1e-5);const g=new aw(h[0]/h[3],h[1]/h[3],h[2]/h[3]);e.push(m),p.push(g)}c.push(e),u.push(p)}return[c,u]}(t,r,i,n,s,o,a,l,c):function(e,t,r,i,n){const s=[],o=[],a=n[8]*t,l=n[9]*t,c=n[10]*t,u=n[11]*t,h=n[8]*r,d=n[9]*r,p=n[10]*r,f=n[11]*r;for(const t of e){const e=[],r=[];for(const s of t){const t=s.x+i.x,o=s.y+i.y,m=n[0]*t+n[4]*o+n[12],g=n[1]*t+n[5]*o+n[13],y=n[2]*t+n[6]*o+n[14],v=n[3]*t+n[7]*o+n[15],_=m+a,b=g+l,x=y+c,w=Math.max(v+u,1e-5),A=m+h,E=g+d,S=y+p,T=Math.max(v+f,1e-5);e.push(new aw(_/w,b/w,x/w)),r.push(new aw(A/T,E/T,S/T))}s.push(e),o.push(r)}return[s,o]}(t,r,i,n,s)}(s,i,h,u,c,o,g,d,f,s.center.lat,e.tileID.canonical),b=e.queryGeometry;return function(e,t,r){let i=1/0;rf(r,t)&&(i=cw(r,t[0]));for(let n=0;n<t.length;n++){const s=t[n],o=e[n];for(let e=0;e<s.length-1;e++){const t=s[e],n=[t,s[e+1],o[e+1],o[e],t];ef(r,n)&&(i=Math.min(i,cw(r,n)))}}return i!==1/0&&i}(y,_,b.isPointQuery()?b.screenBounds:b.screenGeometry)}},line:class extends ll{constructor(e,t){super(e,dw,t),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof Hi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=_w.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Xv(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getDefaultProgramParams(e,t){const r=yw(this);return{config:new jc(this,t),defines:r,overrideFog:!1}}queryRadius(e){const t=e,r=bw(mf("line-width",this,t),mf("line-gap-width",this,t)),i=mf("line-offset",this,t);return r/2+Math.abs(i)+gf(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,r,i,n,s){if(e.queryGeometry.isAboveHorizon)return!1;const o=yf(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),a=e.pixelToTileUnitsFactor/2*bw(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=function(e,t){const r=[],i=new v(0,0);for(let n=0;n<e.length;n++){const s=e[n],o=[];for(let e=0;e<s.length;e++){const r=s[e],n=s[e+1],a=0===e?i:r.sub(s[e-1])._unit()._perp(),l=e===s.length-1?i:n.sub(r)._unit()._perp(),c=a._add(l)._unit();c._mult(1/(c.x*l.x+c.y*l.y)),o.push(c._mult(t)._add(r))}r.push(o)}return r}(i,l*e.pixelToTileUnitsFactor)),function(e,t,r){for(let i=0;i<t.length;i++){const n=t[i];if(e.length>=3)for(let t=0;t<n.length;t++)if(uf(e,n[t]))return!0;
2if(nf(e,n,r))return!0}return!1}(o,i,a)}isTileClipped(){return!0}},symbol:kv,background:class extends ll{constructor(e,t){super(e,ww,t)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}getDefaultProgramParams(e,t){return{overrideFog:!1}}},raster:class extends ll{constructor(e,t){super(e,Ew,t),this._updateColorRamp()}getProgramIds(){return["raster"]}hasColorMap(){return!!this._transitionablePaint._values["raster-color"].value.value}isLayerDraped(e){return!(e&&e._source instanceof Tw&&(e._source.onNorthPole||e._source.onSouthPole))}_handleSpecialPaintPropertyUpdate(e){"raster-color"!==e&&"raster-color-range"!==e||this._updateColorRamp()}_updateColorRamp(){if(!this.hasColorMap())return;const e=this._transitionablePaint._values["raster-color"].value.expression,[t,r]=this._transitionablePaint._values["raster-color-range"].value.expression.evaluate({zoom:0});this.colorRamp=jf({expression:e,evaluationKey:"rasterValue",image:this.colorRamp,clips:[{start:t,end:r}],resolution:256}),this.colorRampTexture=null}},sky:class extends ll{constructor(e,t){super(e,Pw,t),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=jf({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}return!1}getCenter(e,t){if("atmosphere"===this.paint.get("sky-type")){const r=this.paint.get("sky-atmosphere-sun"),i=!r,n=e.style.light,s=n.properties.get("position");return i&&"viewport"===n.properties.get("anchor")&&Q("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),i?Mw(s.azimuthal,90-s.polar,t):Mw(r[0],90-r[1],t)}const r=this.paint.get("sky-gradient-center");return Mw(r[0],90-r[1],t)}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}},slot:class extends ll{constructor(e,t){super(e,kw)}},model:class extends ll{constructor(e,t){super(e,px,t)}createBucket(e){return new hx(e)}getProgramIds(){return["model"]}is3D(){return!0}hasShadowPass(){return!0}canCastShadows(){return!0}hasLightBeamPass(){return!0}cutoffRange(){return this.paint.get("model-cutoff-fade-range")}queryRadius(){return 0}queryIntersectsFeature(){return!1}_handleOverridablePaintPropertyUpdate(e,t,r){return!(!this.layout||t.isDataDriven()||r.isDataDriven()||"model-color"!==e&&"model-color-mix-intensity"!==e&&"model-rotation"!==e&&"model-scale"!==e&&"model-translation"!==e&&"model-emissive-strength"!==e)}_isPropertyZoomDependent(e){const t=this._transitionablePaint._values[e];return null!=t&&null!=t.value&&null!=t.value.expression&&t.value.expression instanceof vs}isZoomDependent(){return this._isPropertyZoomDependent("model-scale")||this._isPropertyZoomDependent("model-rotation")||this._isPropertyZoomDependent("model-translation")}}};function Rw(e,t){return"custom"===e.type?new Cw(e):new Ow[e.type](e,t)}function Dw(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class Lw extends It{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded={},this.requestors=[],this.patterns={},this.atlasImage={},this.atlasTexture={},this.dirty=!0}createScope(e){this.images[e]={},this.loaded[e]=!1,this.updatedImages[e]={},this.patterns[e]={},this.callbackDispatchedThisFrame[e]={},this.atlasImage[e]=new Df({width:1,height:1})}isLoaded(){for(const e in this.loaded)if(!this.loaded[e])return!1;return!0}setLoaded(e,t){if(this.loaded[t]!==e&&(this.loaded[t]=e,e)){for(const{ids:e,callback:r}of this.requestors)this._notify(e,t,r);this.requestors=[]}}hasImage(e,t){return!!this.getImage(e,t)}getImage(e,t){return this.images[t][e]}
2addImage(e,t,r){this._validate(e,r)&&(this.images[t][e]=r)}_validate(e,t){let r=!0;return this._validateStretch(t.stretchX,t.data&&t.data.width)||(this.fire(new Ct(new Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,t.data&&t.data.height)||(this.fire(new Ct(new Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new Ct(new Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(const i of e){if(i[0]<r||i[1]<i[0]||t<i[1])return!1;r=i[1]}return!0}_validateContent(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))}updateImage(e,t,r){r.version=this.images[t][e].version+1,this.images[t][e]=r,this.updatedImages[t][e]=!0}removeImage(e,t){const r=this.images[t][e];delete this.images[t][e],delete this.patterns[t][e],r.userImage&&r.userImage.onRemove&&r.userImage.onRemove()}listImages(e){return Object.keys(this.images[e])}getImages(e,t,r){let i=!0;const n=!!this.loaded[t];if(!n)for(const r of e)this.images[t][r]||(i=!1);n||i?this._notify(e,t,r):this.requestors.push({ids:e,scope:t,callback:r})}getUpdatedImages(e){return this.updatedImages[e]}_notify(e,t,r){const i={};for(const r of e){this.images[t][r]||this.fire(new Tt("styleimagemissing",{id:r}));const e=this.images[t][r];e?i[r]={data:e.data.clone(),pixelRatio:e.pixelRatio,sdf:e.sdf,version:e.version,stretchX:e.stretchX,stretchY:e.stretchY,content:e.content,hasRenderCallback:Boolean(e.userImage&&e.userImage.render)}:Q(`Image "${r}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}r(null,i)}getPixelSize(e){const{width:t,height:r}=this.atlasImage[e];return{width:t,height:r}}getPattern(e,t){const r=this.patterns[t][e],i=this.getImage(e,t);if(!i)return null;if(r&&r.position.version===i.version)return r.position;if(r)r.position.version=i.version;else{const r={w:i.data.width+2,h:i.data.height+2,x:0,y:0},n=new ny(r,i);this.patterns[t][e]={bin:r,position:n}}return this._updatePatternAtlas(t),this.patterns[t][e].position}bind(e,t){const r=e.gl;let i=this.atlasTexture[t];i?this.dirty&&(i.update(this.atlasImage[t]),this.dirty=!1):(i=new Kv(e,this.atlasImage[t],r.RGBA),this.atlasTexture[t]=i),i.bind(r.LINEAR,r.CLAMP_TO_EDGE)}_updatePatternAtlas(e){const t=[];for(const r in this.patterns[e])t.push(this.patterns[e][r].bin);const{w:r,h:i}=iy(t),n=this.atlasImage[e];n.resize({width:r||1,height:i||1});for(const t in this.patterns[e]){const{bin:r}=this.patterns[e][t],i=r.x+1,s=r.y+1,o=this.images[e][t].data,a=o.width,l=o.height;Df.copy(o,n,{x:0,y:0},{x:i,y:s},{width:a,height:l}),Df.copy(o,n,{x:0,y:l-1},{x:i,y:s-1},{width:a,height:1}),Df.copy(o,n,{x:0,y:0},{x:i,y:s+l},{width:a,height:1}),Df.copy(o,n,{x:a-1,y:0},{x:i-1,y:s},{width:1,height:l}),Df.copy(o,n,{x:0,y:0},{x:i+a,y:s},{width:1,height:l})}this.dirty=!0}beginFrame(){for(const e in this.images)this.callbackDispatchedThisFrame[e]={}}dispatchRenderCallbacks(e,t){for(const r of e){if(this.callbackDispatchedThisFrame[t][r])continue;this.callbackDispatchedThisFrame[t][r]=!0;const e=this.images[t][r];Dw(e)&&this.updateImage(r,t,e)}}}const Bw=new nl({anchor:new tl(Pt.light.anchor),position:new class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return K(e.expression.evaluate(t))}interpolate(e,t,r){return{x:Wi(e.x,t.x,r),y:Wi(e.y,t.y,r),z:Wi(e.z,t.z,r),azimuthal:Wi(e.azimuthal,t.azimuthal,r),polar:Wi(e.polar,t.polar,r)}}}(Pt.light.position),color:new tl(Pt.light.color),intensity:new tl(Pt.light.intensity)});class zw extends It{constructor(e,t="flat"){super(),this._transitionable=new Za(Bw),this.setLight(e,t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,t,r={}){this._validate(co,e,r)||(this._transitionable.setTransitionOrValue(e),this.id=t)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return(!r||!1!==r.validate)&&bo(this,e.call(ao,L({value:t,style:{glyphs:!0,sprite:!0},styleSpec:Pt})))}}const jw=new nl({source:new tl(Pt.terrain.source),exaggeration:new tl
2(Pt.terrain.exaggeration)});let Fw=class extends It{constructor(e,t){super(),this._transitionable=new Za(jw),this.set(e),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=t}setScope(e){this.scope=e}get(){return this._transitionable.serialize()}set(e){this._transitionable.setTransitionOrValue(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}getExaggeration(e){return this._transitioning.possiblyEvaluate(new Wa(e)).get("exaggeration")}isZoomDependent(){const e=this._transitionable._values.exaggeration;return null!=e&&null!=e.value&&null!=e.value.expression&&e.value.expression instanceof vs}};const Nw=.05;function Uw(e,t,r,i){const n=k(45,65,r),[s,o]=Vw(e,i);let a=1-Math.min(1,Math.exp((t-s)/(o-s)*-6));return a*=a*a,a=Math.min(1,1.00747*a),a*n*e.alpha}function Vw(e,t){const r=.5/Math.tan(.5*t);return[e.range[0]+r,e.range[1]+r]}function Gw(e,t,r,i,n){const s=yd.transformMat4([],[t,r,i],n.mercatorFogMatrix);return Uw(e,yd.length(s),n.pitch,n._fov)}function qw(e,t,r,i,n,s,o){const a=[[r,i,0],[n,i,0],[n,s,0],[r,s,0]];let l=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(const e of a){const r=yd.transformMat4([],e,t),i=yd.length(r);l=Math.min(l,i),c=Math.max(c,i)}return[Uw(e,l,o.pitch,o._fov),Uw(e,c,o.pitch,o._fov)]}const Hw=new nl({range:new tl(Pt.fog.range),color:new tl(Pt.fog.color),"high-color":new tl(Pt.fog["high-color"]),"space-color":new tl(Pt.fog["space-color"]),"horizon-blend":new tl(Pt.fog["horizon-blend"]),"star-intensity":new tl(Pt.fog["star-intensity"]),"vertical-range":new tl(Pt.fog["vertical-range"])});class Ww extends It{constructor(e,t){super(),this._transitionable=new Za(Hw),this.set(e),this._transitioning=this._transitionable.untransitioned(),this._transform=t}get state(){const e=this._transform,t="globe"===e.projection.name,r=pp(e.zoom),i=this.properties.get("range"),n=[.5,3];return{range:t?[Wi(n[0],i[0],r),Wi(n[1],i[1],r)]:i,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(e,t={}){if(this._validate(po,e,t))return;const r=L({},e);for(const e of Object.keys(Pt.fog))void 0===r[e]&&(r[e]=Pt.fog[e].default);this._transitionable.setTransitionOrValue(r)}getOpacity(e){if(!this._transform.projection.supportsFog)return 0;const t=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:k(45,65,e))*t.a}getOpacityAtLatLng(e,t){return this._transform.projection.supportsFog?function(e,t,r){const i=Up.fromLngLat(t),n=r.elevation?r.elevation.getAtPointOrZero(i):0;return Gw(e,i.x,i.y,n,r)}(this.state,e,t):0}getOpacityForTile(e){if(!this._transform.projection.supportsFog)return[1,1];const t=this._transform.calculateFogTileMatrix(e.toUnwrapped());return qw(this.state,t,0,0,oi,oi,this._transform)}getOpacityForBounds(e,t,r,i,n){return this._transform.projection.supportsFog?qw(this.state,e,t,r,i,n,this._transform):[1,1]}getFovAdjustedRange(e){return this._transform.projection.supportsFog?Vw(this.state,e):[0,1]}isVisibleOnFrustum(e){if(!this._transform.projection.supportsFog)return!1;const t=[4,5,6,7];for(const r of t){const t=e.points[r];let i;if(t[2]>=0)i=t;else{const n=e.points[r-4];i=Yi(n,t,n[2]/(n[2]-t[2]))}if(Gw(this.state,i[0],i[1],0,this._transform)>=Nw)return!0}return!1}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return(!r||!1!==r.validate)&&bo(this,e.call(ao,L({value:t,style:{glyphs:!0,sprite:!0},styleSpec:Pt})))}}class Yw{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){this._channel=void 0,this._callback=()=>{}}}class Qw{constructor(){this.tasks={},this.taskQueue=[],V(["process"],this),this.invoker=new Yw(this.process),this.nextId=0}add(e,t){const r=this.nextId++,i=function({type:e,isSymbolTile:t,zoom:r}){return r=r||0,"message"===e?0:"maybePrepare"!==e||t?"parseTile"!==e||t?"parseTile"===e&&t?300-r:"maybePrepare"===e&&t?400-r:500:200-r:100-r}(t);if(0===i){$();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[r]={fn:e,metadata:t,priority:i,id:r},this.taskQueue.push(r),this.invoker.trigger(),{cancel:()=>{delete this.tasks[r]}}}process(){$();try{if(this.taskQueue=this.taskQueue.filter((e=>!!this.tasks[e])),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let r=0;r<this.taskQueue.length;r++){const i=this.tasks[this.taskQueue[r]];i.priority<t&&(t=i.priority,e=r)}if(null===e)return null;const r=this.taskQueue[e];return this.taskQueue.splice(e,1),r}remove(){this.invoker.remove()}}class Zw{constructor(e,t,r){this.target=e,this.parent=t,this.mapId=r,this.callbacks={},this.cancelCallbacks={},V(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.scheduler
vendor: 2,069 bytes, line 2
2=new Qw}send(e,t,r,i,n=!1,s){const o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(r.metadata=s,this.callbacks[o]=r);const a=new Set;return this.target.postMessage({id:o,type:e,hasCallback:!!r,targetMapId:i,mustQueue:n,sourceMapId:this.mapId,data:Po(t,a)},a),{cancel:()=>{r&&delete this.callbacks[o],this.target.postMessage({id:o,type:"<cancel>",targetMapId:i,sourceMapId:this.mapId})}}}receive(e){const t=e.data,r=t.id;if(r&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[r];delete this.cancelCallbacks[r],e&&e.cancel()}else if(t.mustQueue||$()){const e=this.callbacks[r];this.cancelCallbacks[r]=this.scheduler.add((()=>this.processTask(r,t)),e&&e.metadata||{type:"message"})}else this.processTask(r,t)}processTask(e,t){if("<response>"===t.type){const r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(Mo(t.error)):r(null,Mo(t.data)))}else{const r=new Set,i=t.hasCallback?(t,i)=>{delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?Po(t):null,data:Po(i,r)},r)}:e=>{},n=Mo(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,n,i);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],n.source,n.scope)[e[1]](n,i)}else i(new Error(`Could not find function ${t.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}}class Xw{constructor(e,t){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=j();const r=this.workerPool.acquire(this.id);for(let e=0;e<r.length;e++){const i=new Xw.Actor(r[e],t,this.id);i.name=`Worker ${e}`,this.actors.push(i)}this.ready=!1,this.broadcast("checkIfReady",null,(()=>{this.ready=!0}))}broadcast(e,t,r){R(this.actors,((r,i)=>{r.send(e,t,i)}),r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach((e=>{e.remove()})),this.actors=[],this.workerPool.release(this.id)}}Xw.Actor=Zw;
2class Kw extends It{constructor(e,t,r,i){super(),this.scope=r,this._options=e,this.properties=new el(t),this._transitionable=new Za(t,new Map(i)),this._transitionable.setTransitionOrValue(e.properties),this._transitioning=this._transitionable.untransitioned()}updateConfig(e){this._transitionable.setTransitionOrValue(this._options.properties,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}get(){return this._options.properties=this._transitionable.serialize(),this._options}set(e,t){this._options=e,this._transitionable.setTransitionOrValue(e.properties,t)}shadowsEnabled(){return!!this.properties&&!0===this.properties.get("cast-shadows")}}const Jw=new nl({color:new tl(Pt.properties_light_ambient.color),intensity:new tl(Pt.properties_light_ambient.intensity)}),$w=new nl({direction:new class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return function([e,t]){const r=K([1,e,t]);return{x:r.x,y:r.y,z:r.z}}(e.expression.evaluate(t))}interpolate(e,t,r){return{x:Wi(e.x,t.x,r),y:Wi(e.y,t.y,r),z:Wi(e.z,t.z,r)}}}(Pt.properties_light_directional.direction),color:new tl(Pt.properties_light_directional.color),intensity:new tl(Pt.properties_light_directional.intensity),"cast-shadows":new tl(Pt.properties_light_directional["cast-shadows"]),"shadow-intensity":new tl(Pt.properties_light_directional["shadow-intensity"])});
2class eA{constructor(e,t,r,i){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=r,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,i)}static createFromScreenPoints(e,t){let r,i;if(e instanceof v||"number"==typeof e[0]){const n=v.convert(e);r=[n],i=t.isPointAboveHorizon(n)}else{const n=v.convert(e[0]),s=v.convert(e[1]);r=[n,s],i=C(n,s).every((e=>t.isPointAboveHorizon(e)))}return new eA(r,t.getCameraPoint(),i,t)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(e){return C(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],e)}bufferedCameraGeometry(e){const t=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new v(1,1)):this.screenBounds[1],i=C(t,r,0,!1);return this.cameraPoint.y>r.y&&(this.cameraPoint.x>t.x&&this.cameraPoint.x<r.x?i.splice(3,0,this.cameraPoint):this.cameraPoint.x>=r.x?i[2]=this.cameraPoint:this.cameraPoint.x<=t.x&&(i[3]=this.cameraPoint)),function(e,t){const r=[];for(let i=0;i<e.length;i++){const n=O(i-1,-1,e.length-1),s=O(i+1,-1,e.length-1),o=e[i],a=e[s],l=e[n].sub(o).unit(),c=a.sub(o).unit(),u=c.angleWithSep(l.x,l.y),h=l.add(c).unit().mult(-1*t/Math.sin(u/2));
2r.push(o.add(h))}return r}(i,e)}bufferedCameraGeometryGlobe(e){const t=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new v(1,1)):this.screenBounds[1],i=C(t,r,e),n=this.cameraPoint.clone();switch(3*((n.y>t.y)+(n.y>r.y))+((n.x>t.x)+(n.x>r.x))){case 0:i[0]=n,i[4]=n.clone();break;case 1:i.splice(1,0,n);break;case 2:i[1]=n;break;case 3:i.splice(4,0,n);break;case 5:i.splice(2,0,n);break;case 6:i[3]=n;break;case 7:i.splice(3,0,n);break;case 8:i[2]=n}return i}containsTile(e,t,r,i=0){const n=e.queryPadding/t._pixelsPerMercatorPixel+1,s=r?this._bufferedCameraMercator(n,t):this._bufferedScreenMercator(n,t);let o=e.tileID.wrap+(s.unwrapped?i:0);const a=s.polygon.map((t=>sv(e.tileTransform,t,o)));if(!hf(a,0,0,oi,oi))return;o=e.tileID.wrap+(this.screenGeometryMercator.unwrapped?i:0);const l=this.screenGeometryMercator.polygon.map((t=>ov(e.tileTransform,t,o))),c=l.map((e=>new v(e[0],e[1]))),u=t.getFreeCameraOptions().position||new Up(0,0,0),h=ov(e.tileTransform,u,o),d=l.map((e=>{const t=yd.sub(e,e,h);return yd.normalize(t,t),new Od(h,t)})),p=Pb(e,1,t.zoom)*t._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:c,tilespaceRays:d,bufferedTilespaceGeometry:a,bufferedTilespaceBounds:(f=T(a),f.min.x=M(f.min.x,0,oi),f.min.y=M(f.min.y,0,oi),f.max.x=M(f.max.x,0,oi),f.max.y=M(f.max.y,0,oi),f),tile:e,tileID:e.tileID,pixelToTileUnitsFactor:p};var f}_bufferedScreenMercator(e,t){const r=iA(e);if(this._screenRaycastCache[r])return this._screenRaycastCache[r];{let i;return i="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._screenRaycastCache[r]=i,i}}_bufferedCameraMercator(e,t){const r=iA(e);if(this._cameraRaycastCache[r])return this._cameraRaycastCache[r];{let i;return i="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._cameraRaycastCache[r]=i,i}}_projectAndResample(e,t){const r=function(e,t){const r=hd.multiply([],t.pixelMatrix,t.globeMatrix),i=[0,-Nd,0,1],n=[0,Nd,0,1],s=[0,0,0,1];id.transformMat4(i,i,r),id.transformMat4(n,n,r),id.transformMat4(s,s,r);const o=new v(i[0]/i[3],i[1]/i[3]),a=new v(n[0]/n[3],n[1]/n[3]),l=uf(e,o)&&i[3]<s[3],c=uf(e,a)&&n[3]<s[3];if(!l&&!c)return null;const u=function(e,t,r){for(let i=1;i<e.length;i++){const n=rA(t.pointCoordinate3D(e[i-1]).x),s=rA(t.pointCoordinate3D(e[i]).x);if(r<0){if(n<s)return{idx:i,t:-n/(s-1-n)}}else if(s<n)return{idx:i,t:(1-n)/(s+1-n)}}return null}(e,t,l?-1:1);if(!u)return null;const{idx:h,t:d}=u;let p=h>1?tA(e.slice(0,h),t):[],f=h<e.length?tA(e.slice(h),t):[];p=p.map((e=>new v(rA(e.x),e.y))),f=f.map((e=>new v(rA(e.x),e.y)));const m=[...p];0===m.length&&m.push(f[f.length-1]);const g=Wi(m[m.length-1].y,(0===f.length?p[0]:f[0]).y,d);let y;return y=l?[new v(0,g),new v(0,0),new v(1,0),new v(1,g)]:[new v(1,g),new v(1,1),new v(0,1),new v(0,g)],m.push(...y),0===f.length?m.push(p[0]):m.push(...f),{polygon:m.map((e=>new Up(e.x,e.y))),unwrapped:!1}}(e,t);if(r)return r;const i=function(e,t){let r=!1,i=-1/0,n=0;for(let t=0;t<e.length-1;t++)e[t].x>i&&(i=e[t].x,n=t);for(let t=0;t<e.length-1;t++){const i=(n+t)%(e.length-1),s=e[i],o=e[i+1];Math.abs(s.x-o.x)>.5&&(s.x<o.x?(s.x+=1,0===i&&(e[e.length-1].x+=1)):(o.x+=1,i+1===e.length-1&&(e[0].x+=1)),r=!0)}const s=Mp(t.center.lng);return r&&s<Math.abs(s-1)&&e.forEach((e=>{e.x-=1})),{polygon:e,unwrapped:r}}(tA(e,t).map((e=>new v(rA(e.x),e.y))),t);return{polygon:i.polygon.map((e=>new Up(e.x,e.y))),unwrapped:i.unwrapped}}}function tA(e,t){return Gp(e,(e=>{const r=t.pointCoordinate3D(e);e.x=r.x,e.y=r.y}),1/256)}function rA(e){return e<0?1+e%1:e%1}function iA(e){return 100*e|0}function nA(e,t,r,i,n){const s=function(r,i){if(r)return n(r);if(i){e.url&&i.tiles&&e.tiles&&delete e.tiles;const r=B(L(i,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);i.vector_layers&&(r.vectorLayers=i.vector_layers,r.vectorLayerIds=r.vectorLayers.map((e=>e.id))),r.tiles=t.canonicalizeTileset(r,e.url),n(null,r)}};return e.url?we(t.transformRequest(t.normalizeSourceURL(e.url,null,r,i),ve.Source),s):ut.frame((()=>s(null,e)))}class sA{constructor(e,t,r){this.bounds=Hc.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}
vendor: 4,225 bytes, line 2
2validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(e){const t=Math.pow(2,e.z),r=Math.floor(Mp(this.bounds.getWest())*t),i=Math.floor(kp(this.bounds.getNorth())*t),n=Math.ceil(Mp(this.bounds.getEast())*t),s=Math.ceil(kp(this.bounds.getSouth())*t);return e.x>=r&&e.x<n&&e.y>=i&&e.y<s}}class oA{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new Rf({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const r=this.getKey(e,t);return this.positions[r]}trim(){const e=this.width,t=this.height=N(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,r){const i=[];let n=e.length%2==1?-e[e.length-1]*r:0,s=e[0]*r,o=!0;i.push({left:n,right:s,isDash:o,zeroLength:0===e[0]});let a=e[0];for(let t=1;t<e.length;t++){o=!o;const l=e[t];n=a*r,a+=l,s=a*r,i.push({left:n,right:s,isDash:o,zeroLength:0===l})}return i}addRoundDash(e,t,r){const i=t/2;for(let t=-r;t<=r;t++){const n=this.width*(this.nextRow+r+t);let s=0,o=e[s];for(let a=0;a<this.width;a++){a/o.right>1&&(o=e[++s]);const l=Math.abs(a-o.left),c=Math.abs(a-o.right),u=Math.min(l,c);let h;const d=t/r*(i+1);if(o.isDash){const e=i-Math.abs(d);h=Math.sqrt(u*u+e*e)}else h=i-Math.sqrt(u*u+d*d);this.image.data[n+a]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(e,t){for(let t=e.length-1;t>=0;--t){const r=e[t],i=e[t+1];r.zeroLength?e.splice(t,1):i&&i.isDash===r.isDash&&(i.left=r.left,e.splice(t,1))}const r=e[0],i=e[e.length-1];r.isDash===i.isDash&&(r.left=i.left-this.width,i.right=r.right+this.width);const n=this.width*this.nextRow;let s=0,o=e[s];for(let r=0;r<this.width;r++){r/o.right>1&&(o=e[++s]);const i=Math.abs(r-o.left),a=Math.abs(r-o.right),l=Math.min(i,a);this.image.data[n+r]=Math.max(0,Math.min(255,(o.isDash?l:-l)+t+128))}}addDash(e,t){const r=this.getKey(e,t);if(this.positions[r])return this.positions[r];const i="round"===t,n=i?7:0,s=2*n+1;if(this.nextRow+s>this.height)return Q("LineAtlas out of space"),null;0===e.length&&e.push(1);let o=0;for(let t=0;t<e.length;t++)e[t]<0&&(Q("Negative value is found in line dasharray, replacing values with 0"),e[t]=0),o+=e[t];if(0!==o){const r=this.width/o,s=this.getDashRanges(e,this.width,r);i?this.addRoundDash(s,r,n):this.addRegularDash(s,"square"===t?.5*r:0)}const a=this.nextRow+n;this.nextRow+=s;const l={tl:[a,n],br:[o,0]};return this.positions[r]=l,l}}To(oA,"LineAtlas");class aA{constructor(e){const t={},r=[];for(const i in e){const n=e[i],s=t[i]={};for(const e in n.glyphs){const t=n.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const i=t.metrics.localGlyph?2:1,o={x:0,y:0,w:t.bitmap.width+2*i,h:t.bitmap.height+2*i};r.push(o),s[e]=o}}const{w:i,h:n}=iy(r),s=new Rf({width:i||1,height:n||1});for(const r in e){const i=e[r];for(const e in i.glyphs){const n=i.glyphs[+e];if(!n||0===n.bitmap.width||0===n.bitmap.height)continue;const o=t[r][e],a=n.metrics.localGlyph?2:1;Rf.copy(n.bitmap,s,{x:0,y:0},{x:o.x+a,y:o.y+a},n.bitmap)}}this.image=s,this.positions=t}}To(aA,"GlyphAtlas");class lA{constructor(e){this.tileID=new Pd(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.tileZoom=e.tileZoom,this.uid=e.uid,this.zoom=e.zoom,this.canonical=e.tileID.canonical,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.scope=e.scope,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.promoteId=e.promoteId,this.isSymbolTile=e.isSymbolTile,this.tileTransform=iv(e.tileID.canonical,e.projection),this.projection=e.projection,this.brightness=e.brightness,this.extraShadowCaster=!!e.extraShadowCaster}parse(e,t,r,i,n){this.status="parsing",this.data=e,this.collisionBoxArray=new Wl;const s=new Hm(Object.keys(e.layers).sort()),o=new Og(this.tileID,this.promoteId);o.bucketLayerIDs=[];const a={},l=new oA(256,256),c={featureIndex:o,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:l,availableImages:r,brightness:this.brightness},u=t.familiesBySource[this.source];for(const t in u){const i=e.layers[t];
2if(!i)continue;let n=!1,l=!1,h=!1;for(const e of u[t])"symbol"===e[0].type?n=!0:l=!0,e[0].is3D()&&"model"!==e[0].type&&(h=!0);if(this.extraShadowCaster&&!h)continue;if(!0===this.isSymbolTile&&!n)continue;if(!1===this.isSymbolTile&&!l)continue;1===i.version&&Q(`Vector tile source "${this.source}" layer "${t}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const d=s.encode(t),p=[];for(let e=0;e<i.length;e++){const r=i.feature(e),n=o.getId(r,t);p.push({feature:r,id:n,index:e,sourceLayerIndex:d})}for(const e of u[t]){const t=e[0];(!this.extraShadowCaster||t.is3D()&&"model"!==t.type)&&(void 0!==this.isSymbolTile&&"symbol"===t.type!==this.isSymbolTile||t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(cA(e,this.zoom,c.brightness,r),(a[t.id]=t.createBucket({index:o.bucketLayerIDs.length,layers:e,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:d,sourceID:this.source,projection:this.projection.spec})).populate(p,c,this.tileID.canonical,this.tileTransform),o.bucketLayerIDs.push(e.map((e=>e.id)))))}}let h,d,p,f;l.trim();const m={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},g=()=>{if(h)return n(h);if(this.extraShadowCaster)this.status="done",n(null,{buckets:D(a).filter((e=>!e.isEmpty())),featureIndex:o,collisionBoxArray:null,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:c.brightness,glyphMap:null,iconMap:null,glyphPositions:null});else if(d&&p&&f){const e=new aA(d),t=new sy(p,f);for(const i in a){const n=a[i];n instanceof Gv?(cA(n.layers,this.zoom,c.brightness,r),Wy(n,d,e.positions,p,t.iconPositions,this.showCollisionBoxes,r,this.tileID.canonical,this.tileZoom,this.projection,this.brightness)):n.hasPattern&&(n instanceof Xv||n instanceof xm||n instanceof Qx)&&(cA(n.layers,this.zoom,c.brightness,r),n.addFeatures(c,this.tileID.canonical,t.patternPositions,r,this.tileTransform,this.brightness))}this.status="done",n(null,{buckets:D(a).filter((e=>!e.isEmpty())),featureIndex:o,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,lineAtlas:l,imageAtlas:t,brightness:c.brightness})}};if(!this.extraShadowCaster){const e=q(c.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(e).length?i.send("getGlyphs",{uid:this.uid,stacks:e,scope:this.scope},((e,t)=>{h||(h=e,d=t,g())}),void 0,!1,m):d={};const t=Object.keys(c.iconDependencies);t.length?i.send("getImages",{icons:t,source:this.source,scope:this.scope,tileID:this.tileID,type:"icons"},((e,t)=>{h||(h=e,p=t,g())}),void 0,!1,m):p={};const r=Object.keys(c.patternDependencies);r.length?i.send("getImages",{icons:r,source:this.source,scope:this.scope,tileID:this.tileID,type:"patterns"},((e,t)=>{h||(h=e,f=t,g())}),void 0,!1,m):f={}}g()}}function cA(e,t,r,i){const n=new Wa(t,{brightness:r});for(const t of e)t.recalculate(n,i)}class uA{constructor(e){this.entries={},this.scheduler=e}request(e,t,r,i){const n=this.entries[e]=this.entries[e]||{callbacks:[]};if(n.result){const[e,r]=n.result;return this.scheduler?this.scheduler.add((()=>{i(e,r)}),t):i(e,r),()=>{}}return n.callbacks.push(i),n.cancel||(n.cancel=r(((r,i)=>{n.result=[r,i];for(const e of n.callbacks)this.scheduler?this.scheduler.add((()=>{e(r,i)}),t):e(r,i);setTimeout((()=>delete this.entries[e]),3e3)}))),()=>{n.result||(n.callbacks=n.callbacks.filter((e=>e!==i)),n.callbacks.length||(n.cancel(),delete this.entries[e]))}}}function hA(e,t,r){const i=JSON.stringify(e.request);return e.data&&(this.deduped.entries[i]={result:[null,e.data]}),this.deduped.request(i,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},(t=>{const i=Ae(e.request,((e,i,n,s)=>{e?t(e):i&&t(null,{vectorTile:r?void 0:new Vm(new fg(i)),rawData:i,cacheControl:n,expires:s})}));return()=>{i.cancel(),t()}}),t)}
2class dA extends It{constructor(e,t,r,i){if(super(),this.id=e,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,L(this,B(t,["url","scheme","tileSize","promoteId"])),this._options=L({type:"vector"},t),this._collectResourceTiming=!!t.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i),this._tileWorkers={},this._deduped=new uA}load(e){this._loaded=!1,this.fire(new Tt("dataloading",{dataType:"source"}));const t=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map._worldview;this._tileJSONRequest=nA(this._options,this.map._requestManager,t,r,((i,n)=>{this._tileJSONRequest=null,this._loaded=!0,i?(t&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${t}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new Ct(i))):n&&(L(this,n),n.bounds&&(this.tileBounds=new sA(n.bounds,this.minzoom,this.maxzoom)),Ge(n.tiles,this.map._requestManager._customAccessToken),this.fire(new Tt("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Tt("data",{dataType:"source",sourceDataType:"content"}))),e&&e(i)}))}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const e=sl(this.id,this.scope);this.load((()=>this.map.style.clearSource(e)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return L({},this._options)}loadTile(e,t){const r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,ve.Tile),data:void 0,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.t
2ype,source:this.id,scope:this.scope,pixelRatio:ut.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:e.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0,extraShadowCaster:e.isExtraShadowCaster};if(i.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state)"loading"===e.state?e.reloadCallback=t:e.request=e.actor.send("reloadTile",i,n.bind(this));else if(e.actor=this._tileWorkers[r]=this._tileWorkers[r]||this.dispatcher.getActor(),this.dispatcher.ready)e.request=e.actor.send("loadTile",i,n.bind(this),void 0,!0);else{const t=hA.call({deduped:this._deduped},i,((t,r)=>{t||!r?n.call(this,t):(i.data={cacheControl:r.cacheControl,expires:r.expires,rawData:r.rawData.slice(0)},e.actor&&e.actor.send("loadTile",i,n.bind(this),void 0,!0))}),!0);e.request={cancel:t}}function n(r,i){return delete e.request,e.aborted?t(null):r&&404!==r.status?t(r):(i&&i.resourceTiming&&(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&e.setExpiryData(i),e.loadVectorData(i,this.map.painter),ye(this.dispatcher),t(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.t
2ype,source:this.id,scope:this.scope})}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class pA extends It{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=L({type:"raster"},t),L(this,B(t,["url","scheme","tileSize"]))}load(e){this._loaded=!1,this.fire(new Tt("dataloading",{dataType:"source"})),this._tileJSONRequest=nA(this._options,this.map._requestManager,null,null,((t,r)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new Ct(t)):r&&(L(this,r),r.bounds&&(this.tileBounds=new sA(r.bounds,this.minzoom,this.maxzoom)),Ge(r.tiles),this.fire(new Tt("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Tt("data",{dataType:"source",sourceDataType:"content"}))),e&&e(t)}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const e=sl(this.id,this.scope);this.load((()=>this.map.style.clearSource(e)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return L({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,t){const r=ut.devicePixelRatio>=2,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),r,this.tileSize);e.request=Ie(this.map._requestManager.transformRequest(i,ve.Tile),((r,i,n,s)=>(delete e.request,e.aborted?(e.state="unloaded",t(null)):r?(e.state="errored",t(r)):i?(this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:n,expires:s}),e.setTexture(i,this.map.painter),e.state="loaded",ye(this.dispatcher),void t(null)):t(null))))}static loadTileData(e,t,r){e.setTexture(t,r)}static unloadTileData(e,t){e.texture&&t.saveTileTexture(e.texture)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}let fA;function mA(){return null!=YI.workerClass?new YI.workerClass:new t.Worker(YI.workerUrl)}const gA="mapboxgl_preloaded_worker_pool";class yA{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<yA.workerCount;)this.workers.push(new mA);return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],this.workers&&0===this.numActive()&&(this.workers.forEach((e=>{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[gA]}numActive(){return Object.keys(this.active).length}}let vA;function _A(){return vA||(vA=new yA),vA}yA.workerCount=2;let bA,xA,wA,AA=null;function EA(){return $()&&self.worker&&self.worker.dracoUrl?self.worker.dracoUrl:xA||n.DRACO_URL}const SA=5123,TA=5126,CA={5120:Int8Array,5121:Uint8Array,5122:Int16Array,[SA]:Uint16Array,5125:Uint32Array,[TA]:Float32Array},IA={5120:"DT_INT8",5121:"DT_UINT8",5122:"DT_INT16",[SA]:"DT_UINT16",5125:"DT_UINT32",[TA]:"DT_FLOAT32"},PA={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function MA(e,t,r){const i=r.json.bufferViews.length,n=r.buffers.length;t.bufferView=i,r.json.bufferViews[i]={buffer:n,byteLength:e.byteLength},r.buffers[n]=e}const kA="KHR_draco_mesh_compression";function OA(e,t){const r=e.extensions&&e.extensions[kA];if(!r)return;const i=new wA.Decoder,n=zA(t,r.bufferView),s=new wA.Mesh;if(!i.DecodeArrayToMesh(n,n.byteLength,s))throw new Error("Failed to decode Draco mesh");const o=t.json.accessors[e.indices],a=CA[o.componentType],l=o.count*a.BYTES_PER_ELEMENT,c=wA._malloc(l);a===Uint16Array?i.GetTrianglesUInt16Array(s,l,c):i.GetTrianglesUInt32Array(s,l,c),MA(wA.memory.buffer.slice(c,c+l),o,t),wA._free(c);for(const n of Object.keys(r.attributes)){const o=i.GetAttributeByUniqueId(s,r.attributes[n]),a=t.json.accessors[e.attributes[n]],l=IA[a.componentType],c=a.count*PA[a.type]*CA[a.componentType].BYTES_PER_ELEMENT,u=wA._malloc(c);i.GetAttributeDataArrayForAllPoints(s,o,wA[l],c,u),MA(wA.memory.buffer.slice(u,u+c),a,t),wA._free(u)}i.destroy(),s.destroy(),delete e.extensions[kA]}const RA=1179937895,DA=new TextDecoder("utf8");function LA(e,t){return new URL(e,t).href}
2function BA(e,t,r,i){return fetch(LA(e.uri,i)).then((e=>e.arrayBuffer())).then((e=>{t.buffers[r]=e}))}function zA(e,t){const r=e.json.bufferViews[t];return new Uint8Array(e.buffers[r.buffer],r.byteOffset||0,r.byteLength)}function jA(e,r,i,n){if(e.uri){const s=LA(e.uri,n);return fetch(s).then((e=>e.blob())).then((e=>t.createImageBitmap(e))).then((e=>{r.images[i]=e}))}if(void 0!==e.bufferView){const n=zA(r,e.bufferView),s=new t.Blob([n],{type:e.mimeType});return t.createImageBitmap(s).then((e=>{r.images[i]=e}))}}function FA(e,t=0,r){const i={json:null,images:[],buffers:[]};if(new Uint32Array(e,t,1)[0]===RA){const r=new Uint32Array(e,t);let n=2;const s=(r[n++]>>2)-3,o=r[n++]>>2;if(n++,i.json=JSON.parse(DA.decode(r.subarray(n,n+o))),n+=o,n<s){const s=r[n++];n++;const o=t+(n<<2);i.buffers[0]=e.slice(o,o+s)}}else i.json=JSON.parse(DA.decode(new Uint8Array(e,t)));const{buffers:n,images:s,meshes:o,extensionsUsed:a}=i.json;let l=Promise.resolve();if(n){const e=[];for(let t=0;t<n.length;t++){const s=n[t];s.uri?e.push(BA(s,i,t,r)):i.buffers[t]||(i.buffers[t]=null)}l=Promise.all(e)}return l.then((()=>{const e=[],t=a&&a.includes(kA);if(t&&e.push(function(){if(!wA)return bA||(bA=function(e){let t,r=null;function i(){t=new Uint8Array(r.buffer)}function n(){throw new Error("Unexpected Draco error.")}const s={a:{a:n,d:function(e,r,i){return t.copyWithin(e,r,r+i)},c:function(e){const n=t.length,s=Math.max(e>>>0,Math.ceil(1.2*n)),o=Math.ceil((s-n)/65536);try{return r.grow(o),i(),!0}catch(e){return!1}},b:n}};return(WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(e,s):e.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,s)))).then((e=>{const{Rb:n,Qb:s,P:o,T:a,X:l,Ja:c,La:u,Qa:h,Va:d,Wa:p,eb:f,jb:m,f:g,e:y,yb:v,zb:_,Ab:b,Bb:x,Db:w,Gb:A}=e.instance.exports;r=y;const E=(()=>{let e=0,r=0,i=0,o=0;return a=>{i&&(n(o),n(e),r+=i,i=e=0),e||(r+=128,e=s(r));const l=a.length+7&-8;let c=e;l>=r&&(i=l,c=o=s(l));for(let e=0;e<a.length;e++)t[c+e]=a[e];return c}})();return i(),g(),{memory:y,_free:n,_malloc:s,Mesh:class{constructor(){this.ptr=o()}destroy(){a(this.ptr)}},Decoder:class{constructor(){this.ptr=c()}destroy(){m(this.ptr)}DecodeArrayToMesh(e,t,r){const i=E(e),n=u(this.ptr,i,t,r.ptr);return!!l(n)}GetAttributeByUniqueId(e,t){return{ptr:h(this.ptr,e.ptr,t)}}GetTrianglesUInt16Array(e,t,r){d(this.ptr,e.ptr,t,r)}GetTrianglesUInt32Array(e,t,r){p(this.ptr,e.ptr,t,r)}GetAttributeDataArrayForAllPoints(e,t,r,i,n){f(this.ptr,e.ptr,t.ptr,r,i,n)}},DT_INT8:v(),DT_UINT8:_(),DT_INT16:b(),DT_UINT16:x(),DT_UINT32:w(),DT_FLOAT32:A()}}))}(fetch(EA())),bA.then((e=>{wA=e,bA=void 0})))}()),s)for(let t=0;t<s.length;t++)e.push(jA(s[t],i,t,r));return(e.length?Promise.all(e):Promise.resolve()).then((()=>
2{if(t&&o)for(const{primitives:e}of o)for(const t of e)OA(t,i);return i}))}))}function NA(e){return fetch(e).then((e=>e.arrayBuffer())).then((t=>FA(t,0,e)))}class UA{constructor(e,t,r){if(this.triangleCount=t.length/3,this.min=new v(0,0),this.max=new v(0,0),this.xScale=0,this.yScale=0,this.cellsX=0,this.cellsY=0,this.cells=[],this.payload=[],0===this.triangleCount||0===e.length||0===r)return;const i=e.map((e=>e.x)),n=e.map((e=>e.y));this.min=new v(Math.min(...i),Math.min(...n)),this.max=new v(Math.max(...i),Math.max(...n));const s=this.max.sub(this.min);s.x=Math.max(s.x,1),s.y=Math.max(s.y,1);const o=Math.max(s.x,s.y)/r;this.cellsX=Math.max(1,Math.ceil(s.x/o)),this.cellsY=Math.max(1,Math.ceil(s.y/o)),this.xScale=1/o,this.yScale=1/o;const a=[];for(let r=0;r<this.triangleCount;r++){const i=e[t[3*r+0]].sub(this.min),n=e[t[3*r+1]].sub(this.min),s=e[t[3*r+2]].sub(this.min),l=VA(Math.floor(Math.min(i.x,n.x,s.x)),this.xScale,this.cellsX),c=VA(Math.floor(Math.max(i.x,n.x,s.x)),this.xScale,this.cellsX),u=VA(Math.floor(Math.min(i.y,n.y,s.y)),this.yScale,this.cellsY),h=VA(Math.floor(Math.max(i.y,n.y,s.y)),this.yScale,this.cellsY),d=new v(0,0),p=new v(0,0),f=new v(0,0),m=new v(0,0);for(let e=u;e<=h;++e){d.y=p.y=e*o,f.y=m.y=(e+1)*o;for(let t=l;t<=c;++t)d.x=f.x=t*o,p.x=m.x=(t+1)*o,(ff(i,n,s,d,p,m)||ff(i,n,s,d,m,f))&&a.push({cellIdx:e*this.cellsX+t,triIdx:r})}}if(0===a.length)return;a.sort(((e,t)=>e.cellIdx-t.cellIdx||e.triIdx-t.triIdx));let l=0;for(;l<a.length;){const e=a[l].cellIdx,t={start:this.payload.length,len:0};for(;l<a.length&&a[l].cellIdx===e;)++t.len,this.payload.push(a[l++].triIdx);this.cells[e]=t}}query(e,t,r){if(0===this.triangleCount||0===this.cells.length)return;if(e.x>this.max.x||this.min.x>t.x)return;if(e.y>this.max.y||this.min.y>t.y)return;this.lookup||(this.lookup=new Uint8Array(Math.ceil(this.triangleCount/8)));for(let e=0;e<this.lookup.length;e++)this.lookup[e]=0;const i=VA(e.x-this.min.x,this.xScale,this.cellsX),n=VA(t.x-this.min.x,this.xScale,this.cellsX),s=VA(e.y-this.min.y,this.yScale,this.cellsY),o=VA(t.y-this.min.y,this.yScale,this.cellsY);for(let e=s;e<=o;e++)for(let t=i;t<=n;t++){const i=this.cells[e*this.cellsX+t];if(i)for(let e=0;e<i.len;e++){const t=this.payload[i.start+e],n=Math.floor(t/8),s=1<<t%8;if(!(this.lookup[n]&s)&&(this.lookup[n]|=s,r.push(t),r.length===this.triangleCount))return}}}}function VA(e,t,r){return Math.max(0,Math.min(r-1,Math.floor(e*t)))}function GA(e,t){const r=e.json.bufferViews[t.bufferView];return new(0,CA[t.componentType])(e.buffers[r.buffer],(t.byteOffset||0)+(r.byteOffset||0),t.count*PA[t.type])}function qA(e,t,r){const i=e.indices,n=e.attributes,s={};s.indexArray=new Rl;const o=t.json.accessors[i],a=o.count/3;s.indexArray.reserve(a);const l=GA(t,o);for(let e=0;e<a;e++)s.indexArray.emplaceBack(l[3*e],l[3*e+1],l[3*e+2]);s.indexArray._trim(),s.vertexArray=new Ol;const c=t.json.accessors[n.POSITION];s.vertexArray.reserve(c.count);const u=GA(t,c);for(let e=0;e<c.count;e++)s.vertexArray.emplaceBack(u[3*e],u[3*e+1],u[3*e+2]);if(s.vertexArray._trim(),s.aabb=new Fd(c.min,c.max),s.centroid=function(e,t){const r=[0,0,0],i=e.length;if(i>0){for(let n=0;n<i;n++){const i=3*e[n];r[0]+=t[i],r[1]+=t[i+1],r[2]+=t[i+2]}r[0]/=i,r[1]/=i,r[2]/=i}return r}(l,u),void 0!==n.COLOR_0){const e=t.json.accessors[n.COLOR_0],r=PA[e.type];if(e.componentType===TA){s.colorArray=3===r?new Ol:new bl,s.colorArray.reserve(e.count);const i=GA(t,e);if(3===r)for(let t=0;t<e.count;t++)s.colorArray.emplaceBack(i[3*t],i[3*t+1],i[3*t+2]);else for(let t=0;t<e.count;t++)s.colorArray.emplaceBack(i[4*t],i[4*t+1],i[4*t+2],i[4*t+3]);s.colorArray._trim()}else if(e.componentType===SA&&4===r){s.colorArray=new bl,s.colorArray.resize(e.count);const r=GA(t,e),i=1/65535,n=s.colorArray.float32;for(let e=0;e<4*r.length;++e)n[e]=r[e]*i}else Q(`glTF color buffer parsing for accessor ${JSON.stringify(e)} is not supported`)}if(void 0!==n.NORMAL){s.normalArray=new Ol;const e=t.json.accessors[n.NORMAL];s.normalArray.reserve(e.count);const r=GA(t,e);for(let t=0;t<e.count;t++)s.normalArray.emplaceBack(r[3*t],r[3*t+1],r[3*t+2]);s.normalArray._trim()}if(void 0!==n.TEXCOORD_0&&r.length>0){s.texcoordArray=new Ul;const e=t.json.accessors[n.TEXCOORD_0];s.texcoordArray.reserve(e.count);const r=GA(t,e);for(let t=0;t<e.count;t++)s.texcoordArray.emplaceBack(r[2*t],r[2*t+1]);s.texcoordArray._trim()}const h=e.material;return s.material=function(e,t){const{emissiveFactor:r=[0,0,0],alphaMode:i="OPAQUE",alphaCutoff:n=.5,normalTexture:s,occlusionTexture:o,emissiveTexture:a,doubleSided:l}=e,{baseColorFactor:c=[1,1,1,1],metallicFactor:u=1,roughnessFactor:h=1,baseColorTexture:d,metallicRoughnessTexture:p}=e.pbrMetallicRoughness||{};return{pbrMetallicRoughness:{baseColorFactor:new lr(...c),metallicFactor:u,roughnessFactor:h,baseColorTexture:d?t[d.index]:void 0,metallicRoughnessTexture:p?t[p.index]:void 0},doubleSided:l,emissiveFactor:r,alphaMode:i,alphaCutoff:n,normalTexture:s?t[s.index]:void 0,occlusionTexture:o?t[o.index]:void 0,emissionTexture:a?t[a.index]:void 0,defined:void 0===e.defined}}(void 0!==h?t.json.materials[h]:{defined:!1},r),void 0!==n._FEATURE_RGBA4444&&(s.featureData=new Uint32Array(GA(t,t.json.accessors[n._FEATURE_RGBA4444]).buffer)),s}function HA(e,t,r){const{matrix:i,rotation:n,translation:s,scale:o,mesh:a,extras:l,children:c}=e,u={};if(u.matrix=i||hd.fromRotationTranslationScale([],n||[0,0,0,1],s||[0,0,0],o||[1,1,1]),void 0!==a){u.meshes=r[a];const e=u.anchor=[0,0];for(const t of u.meshes){const{min:r,max:i}=t.aabb;e[0]+=r[0]+i[0],e[1]+=r[1]+i[1]}e[0]=Math.floor(e[0]/u.meshes.length/2),e[1]=Math.floor(e[1]/u.meshes.length/2)}if(l&&(l.id&&(u.id=l.id),l.lights&&(u.lights=function(e){if(!e.length)return[];const t=function(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.codePointAt(e);return r}(e),r=[],i=t.length/24,n=new Uint16Array(t.buffer),s=new Float32Array(t.buffer);for(let e=0;e<i;e++){const t=n[2*e*6]/30,i=n[2*e*6+1]/30,o=n[2*e*6+10]/100,a=s[6*e+1],l=s[6*e+2],c=s[6*e+3],u=s[6*e+4],h=c-a,d=u-l,p=Math.hypot(h,d);
2r.push({pos:[a+.5*h,l+.5*d,i],normal:[d/p,-h/p,0],width:p,height:t,depth:o,points:[a,l,c,u]})}return r}(l.lights))),c){const e=[];for(const i of c)e.push(HA(t.json.nodes[i],t,r));u.children=e}return u}function WA(e){if(0===e.vertices.length||0===e.indices.length)return null;const[t,r]=[e.vertices[0].clone(),e.vertices[0].clone()];for(let i=1;i<e.vertices.length;++i){const n=e.vertices[i];t.x=Math.min(t.x,n.x),t.y=Math.min(t.y,n.y),r.x=Math.max(r.x,n.x),r.y=Math.max(r.y,n.y)}const i=Math.ceil(Math.max(r.x-t.x,r.y-t.y)/256),n=Math.max(8,i),s=new UA(e.vertices,e.indices,n);return{vertices:e.vertices,indices:e.indices,grid:s,min:t,max:r}}function YA(e){if(!e.extras||!e.extras.ground)return null;const t=e.extras.ground;if(!t||!Array.isArray(t)||0===t.length)return null;const r=t[0];if(!r||!Array.isArray(r)||0===r.length)return null;const i=[];for(const e of r){if(!Array.isArray(e)||2!==e.length)continue;const t=e[0],r=e[1];"number"==typeof t&&"number"==typeof r&&i.push(new v(t,r))}if(i.length<3)return null;i.length>1&&i[i.length-1].equals(i[0])&&i.pop();let n=0;for(let e=0;e<i.length;e++){const t=i[e],r=i[(e+1)%i.length],s=i[(e+2)%i.length];n+=(t.x-r.x)*(s.y-r.y)-(s.x-r.x)*(t.y-r.y)}n>0&&i.reverse();const s=gm(i.flatMap((e=>[e.x,e.y])),[]);return 0===s.length?null:{vertices:i,indices:s}}function QA(e){const t=[],r=[];let i=0;for(const n of e){i=t.length;const e=n.vertexArray.float32,s=n.indexArray.uint16;for(let r=0;r<n.vertexArray.length;r++)t.push(new v(e[3*r+0],e[3*r+1]));for(let e=0;e<3*n.indexArray.length;e++)r.push(s[e]+i)}if(r.length%3!=0)return null;for(let e=0;e<r.length;e+=3){const i=t[r[e+0]],n=t[r[e+1]],s=t[r[e+2]];(i.x-n.x)*(s.y-n.y)-(s.x-n.x)*(i.y-n.y)>0&&([r[e+1],r[e+2]]=[r[e+2],r[e+1]])}return{vertices:t,indices:r}}function ZA(e){const r=function(e,r){const i=[],n=t.WebGL2RenderingContext;if(e.json.textures)for(const t of e.json.textures){const s={magFilter:n.LINEAR,minFilter:n.NEAREST,wrapS:n.REPEAT,wrapT:n.REPEAT};void 0!==t.sampler&&Object.assign(s,e.json.samplers[t.sampler]),i.push({image:r[t.source],sampler:s,uploaded:!1})}return i}(e,e.images),i=function(e,t){const r=[];for(const i of e.json.meshes){const n=[];for(const r of i.primitives)n.push(qA(r,e,t));r.push(n)}return r}(e,r),{scenes:n,scene:s,nodes:o}=e.json,a=n?n[s||0].nodes:o,l=[];for(const t of a)l.push(HA(o[t],e,i));return function(e,t,r){const i={},n=new Set;for(let s=0;s<e.length;s++){const e=r[t[s]];if(!e.extras)continue;const o=e.extras["mapbox:footprint:version"],a=e.extras["mapbox:footprint:id"];(o||a)&&n.add(s),"1.0.0"===o&&a&&(i[a]=s)}for(let s=0;s<e.length;s++){if(n.has(s))continue;const o=e[s],a=r[t[s]];if(!a.extras)continue;let l=null;o.id in i&&(l=QA(e[i[o.id]].meshes)),l||(l=YA(a)),l&&(o.footprint=WA(l))}if(n.size>0){const t=Array.from(n.values()).sort(((e,t)=>e-t));for(let r=t.length-1;r>=0;r--)e.splice(t[r],1)}}(l,a,e.json.nodes),l}function XA(e){e.heightmap=new Float32Array(4096),e.heightmap.fill(-1);const t=e.vertexArray.float32,r=e.aabb.min[0]-1,i=e.aabb.min[1]-1,n=tx/(e.aabb.max[0]-r+2),s=tx/(e.aabb.max[1]-i+2);for(let o=0;o<t.length;o+=3){const a=t[o+2],l=(t[o+0]-r)*n|0,c=(t[o+1]-i)*s|0;a>e.heightmap[c*tx+l]&&(e.heightmap[c*tx+l]=a)}}function KA(e,t){const r={};r.indexArray=new Rl,r.indexArray.reserve(4*e.length),r.vertexArray=new Ol,r.vertexArray.reserve(10*e.length),r.colorArray=new bl,r.vertexArray.reserve(10*e.length);let i=0;for(const n of e){const e=Math.min(10,Math.max(4,1.3*n.height))*t,s=[-n.normal[1],n.normal[0],0],o=Math.min(.29,.1*n.width/n.depth),a=n.width-2*n.depth*t*(o+.01),l=yd.scaleAndAdd([],n.pos,s,a/2),c=yd.scaleAndAdd([],n.pos,s,-a/2),u=[l[0],l[1],l[2]+n.height],h=[c[0],c[1],c[2]+n.height],d=yd.scaleAndAdd([],n.normal,s,o);yd.scale(d,d,e);const p=yd.scaleAndAdd([],n.normal,s,-o);yd.scale(p,p,e),yd.add(d,l,d),yd.add(p,c,p),l[2]+=.1,c[2]+=.1,r.vertexArray.emplaceBack(d[0],d[1],d[2]),r.vertexArray.emplaceBack(p[0],p[1],p[2]),r.vertexArray.emplaceBack(l[0],l[1],l[2]),r.vertexArray.emplaceBack(c[0],c[1],c[2]),r.vertexArray.emplaceBack(u[0],u[1],u[2]),r.vertexArray.emplaceBack(h[0],h[1],h[2]),r.vertexArray.emplaceBack(l[0],l[1],l[2]),r.vertexArray.emplaceBack(c[0],c[1],c[2]),r.vertexArray.emplaceBack(d[0],d[1],d[2]),r.vertexArray.emplaceBack(p[0],p[1],p[2]);const f=a/e/2;r.colorArray.emplaceBack(-f-o,-1,f,.8),r.colorArray.emplaceBack(f+o,-1,f,.8),r.colorArray.emplaceBack(-f,0,f,1.3),r.colorArray.emplaceBack(f,0,f,1.3),r.colorArray.emplaceBack(f+o,-.8,f,.7),r.colorArray.emplaceBack(f+o,-.8,f,.7),r.colorArray.emplaceBack(0,0,f,1.3),r.colorArray.emplaceBack(0,0,f,1.3),r.colorArray.emplaceBack(f+o,-1.2,f,.8),r.colorArray.emplaceBack(f+o,-1.2,f,.8),r.indexArray.emplaceBack(6+i,4+i,8+i),r.indexArray.emplaceBack(7+i,9+i,5+i),r.indexArray.emplaceBack(0+i,1+i,2+i),r.indexArray.emplaceBack(1+i,3+i,2+i),i+=10}const n={defined:!0,emissiveFactor:[0,0,0]},s={};return s.baseColorFactor=lr.white,n.pbrMetallicRoughness=s,r.material=n,r.aabb=new Fd([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),r}To(UA,"TriangleGridIndex");const JA={vector:dA,raster:pA,"raster-dem":class extends pA{constructor(e,t,r,i
2){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=L({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox"}loadTile(e,r){const i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);e.request=Ie(this.map._requestManager.transformRequest(i,ve.Tile),function(i,o,a,l){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(i)e.state="errored",r(i);else if(o){this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:a,expires:l});const r=t.ImageBitmap&&o instanceof t.ImageBitmap&&(null==fA&&(fA=t.OffscreenCanvas&&new t.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof t.createImageBitmap),fA),i=1-(o.width-((c=o.width)<=1?1:Math.pow(2,Math.floor(Math.log(c)/Math.LN2))))/2;i<1||e.neighboringTiles||(e.neighboringTiles=this._getNeighboringTiles(e.tileID));const u=r?o:ut.getImageData(o,i),h={uid:e.uid,coord:e.tileID,source:this.id,scope:this.scope,rawImageData:u,encoding:this.encoding,padding:i,convertToFloat:n};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",h,s.bind(this),void 0,!0))}var c}.bind(this));const n=this.map?.painter?.terrainUseFloatDEM();function s(t,i){t&&(e.state="errored",r(t)),i&&(e.dem=i,e.dem.onDeserialize(),e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0,e.state="loaded",r(null))}}_getNeighboringTiles(e){const t=e.canonical,r=Math.pow(2,t.z),i=(t.x-1+r)%r,n=0===t.x?e.wrap-1:e.wrap,s=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,a={};return a[new Pd(e.overscaledZ,n,t.z,i,t.y).key]={backfilled:!1},a[new Pd(e.overscaledZ,o,t.z,s,t.y).key]={backfilled:!1},t.y>0&&(a[new Pd(e.overscaledZ,n,t.z,i,t.y-1).key]={backfilled:!1},a[new Pd(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},a[new Pd(e.overscaledZ,o,t.z,s,t.y-1).key]={backfilled:!1}),t.y+1<r&&(a[new Pd(e.overscaledZ,n,t.z,i,t.y+1).key]={backfilled:!1},a[new Pd(e.overscaledZ,e.wrap,t.z,t.x,t.y+1).key]={backfilled:!1},a[new Pd(e.overscaledZ,o,t.z,s,t.y+1).key]={backfilled:!1}),a}unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.hillshadeFBO&&(e.hillshadeFBO.destroy(),delete e.hillshadeFBO),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded"}}
2,geojson:class extends It{constructor(e,t,r,i){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=r.getActor(),this.setEventedParent(i),this._data=t.data,this._options=L({},t),this._collectResourceTiming=t.collectResourceTiming,void 0!==t.maxzoom&&(this.maxzoom=t.maxzoom),t.type&&(this.type=t.type),t.attribution&&(this.attribution=t.attribution),this.promoteId=t.promoteId;const n=oi/this.tileSize;this.workerOptions=L({source:this.id,scope:this.scope,cluster:t.cluster||!1,geojsonVtOptions:{buffer:(void 0!==t.buffer?t.buffer:128)*n,tolerance:(void 0!==t.tolerance?t.tolerance:.375)*n,extent:oi,maxZoom:this.maxzoom,lineMetrics:t.lineMetrics||!1,generateId:t.generateId||!1},superclusterOptions:{maxZoom:void 0!==t.clusterMaxZoom?t.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,t.clusterMinPoints||2),extent:oi,radius:(void 0!==t.clusterRadius?t.clusterRadius:50)*n,log:!1,generateId:t.generateId||!1},clusterProperties:t.clusterProperties,filter:t.filter},t.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterLeaves(e,t,r,i){return this.actor.send("geojson.getClusterLeaves",{source:this.id,scope:this.scope,clusterId:e,limit:t,offset:r},i),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new Tt("dataloading",{dataType:"source"})),this._loaded=!1;const e=L({},this.workerOptions);e.scope=this.scope;const t=this._data;"string"==typeof t?(e.request=this.map._requestManager.transformRequest(ut.resolveURL(t),ve.Source),e.request.collectResourceTiming=this._collectResourceTiming):e.data=JSON.stringify(t),this._pendingLoad=this.actor.send(`${this.type}.loadData`,e,((e,t)=>{if(this._loaded=!0,this._pendingLoad=null,e)this.fire(new Ct(e));else{const e={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&t&&t.resourceTiming&&t.resourceTiming[this.id]&&(e.resourceTiming=t.resourceTiming[this.id]),this.fire(new Tt("data",e)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)}))}loaded(){return this._loaded}loadTile(e,t){const r=e.actor?"reloadTile":"loadTile";e.actor=this.actor;const i={type:this.type,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,scope:this.scope,pixelRatio:ut.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,brightness:this.map.style&&this.map.style.getBrightness()||0};e.request=this.actor.send(r,i,((i,n)=>(delete e.request,e.unloadVectorData(),e.aborted?t(null):i?t(i):(e.loadVectorData(n,this.map.painter,"reloadTile"===r),t(null)))),void 0,"loadTile"===r)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.t
2ype,source:this.id,scope:this.scope})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return L({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Tw{constructor(e,t,r,i){super(e,t,r,i),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const e=this.options;this.urls=[];for(const t of e.urls)this.urls.push(this.map._requestManager.transformRequest(t,ve.Source).url);!function(e,r){const i=t.document.createElement("video");i.muted=!0,i.onloadstart=function(){r(null,i)};for(let r=0;r<e.length;r++){const n=t.document.createElement("source");Ee(e[r])||(i.crossOrigin="Anonymous"),n.src=e[r],i.appendChild(n)}}(this.urls,((e,t)=>{this._loaded=!0,e?this.fire(new Ct(e)):t&&(this.video=t,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){const t=this.video.seekable;e<t.start(0)||e>t.end(0)?this.fire(new Ct(new Mt(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new Kv(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(e)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}
2,image:Tw,model:class extends It{constructor(e,t,r,i){super(),this.id=e,this.type="model",this.models=[],this._loaded=!1,this._options=t}load(){const e=[];for(const t in this._options.models){const r=this._options.models[t],i=NA(this.map._requestManager.transformRequest(r.uri,ve.Model).url).then((e=>{if(!e)return;const i=ZA(e),n=new ix(t,r.position,r.orientation,i);n.computeBoundsAndApplyParent(),this.models.push(n)})).catch((e=>{this.fire(new Ct(new Error(`Could not load model ${t} from ${r.uri}: ${e.message}`)))}));e.push(i)}return Promise.allSettled(e).then((()=>{this._loaded=!0,this.fire(new Tt("data",{dataType:"source",sourceDataType:"metadata"}))})).catch((e=>{this.fire(new Ct(new Error(`Could not load models: ${e.message}`)))}))}onAdd(e){this.map=e,this.load()}hasTransition(){return!1}loaded(){return this._loaded}getModels(){return this.models}loadTile(e,t){}serialize(){return{type:"model"}}},"batched-model":class extends It{constructor(e,t,r,i){super(),this.type="batched-model",this.id=e,this.tileSize=512,this._options=t,this.tiles=this._options.tiles,this.maxzoom=t.maxzoom||19,this.minzoom=t.minzoom||0,this.roundZoom=!0,this.usedInConflation=!0,this.dispatcher=r,this.reparseOverscaled=!1,this.scheme="xyz",this._loaded=!1,this.setEventedParent(i)}onAdd(e){this.map=e,this.load()}load(e){this._loaded=!1,this.fire(new Tt("dataloading",{dataType:"source"}));const t=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map._worldview;this._tileJSONRequest=nA(this._options,this.map._requestManager,t,r,((i,n)=>{this._tileJSONRequest=null,this._loaded=!0,i?(t&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${t}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new Ct(i))):n&&(L(this,n),n.bounds&&(this.tileBounds=new sA(n.bounds,this.minzoom,this.maxzoom)),Ge(n.tiles,this.map._requestManager._customAccessToken),this.fire(new Tt("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Tt("data",{dataType:"source",sourceDataType:"content"}))),e&&e(i)}))}hasTransition(){return!1}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loaded(){return this._loaded}loadTile(e,t){const r=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,ve.Tile),data:void 0,uid:e.uid,tileID:e.tileID,tileZoom:e.tileZoom,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.t
2ype,source:this.id,scope:this.scope,showCollisionBoxes:this.map.showCollisionBoxes,isSymbolTile:e.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0};if(e.actor&&"expired"!==e.state)if("loading"===e.state)e.reloadCallback=t;else{if(e.buckets){const t=Object.values(e.buckets);for(const e of t)e.dirty=!0;return void(e.state="loaded")}e.request=e.actor.send("reloadTile",i,n.bind(this))}else e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",i,n.bind(this),void 0,!0);function n(r,i){return e.aborted?t(null):r&&404!==r.status?t(r):(i&&(i.resourceTiming&&(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&e.setExpiryData(i),e.buckets={...e.buckets,...i.buckets}),e.state="loaded",void t(null))}}serialize(){return L({},this._options)}},canvas:class extends Tw{constructor(e,r,i,n){super(e,r,i,n),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new Ct(new Mt(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new Ct(new Mt(`sources.${e}`,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new Ct(new Mt(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof t.HTMLCanvasElement||this.fire(new Ct(new Mt(`sources.${e}`,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 Ct(new Mt(`sources.${e}`,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.HTMLCanvasElement?this.options.canvas:t.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new Ct(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&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let 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())return;if(0===Object.keys(this.tiles).length)return;const t=this.map.painter.context;this.texture?!e&&!this._playing||this.texture instanceof Jv||this.texture.update(this.canvas,{premultiply:!0}):this.texture=new Kv(t,this.canvas,t.gl.RGBA,{premultiply:!0}),this._prepareData(t)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}
2,custom:class extends It{constructor(e,t,r,i){super(),this.id=e,this.type="custom",this._dataType="raster",this._dispatcher=r,this._implementation=t,this.setEventedParent(i),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new Ct(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new Ct(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new sA(this._implementation.bounds,this.minzoom,this.maxzoom)),t.update=this._update.bind(this),t.clearTiles=this._clearTiles.bind(this),t.coveringTiles=this._coveringTiles.bind(this),L(this,B(t,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return B(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new Tt("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new Tt("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(e){this._map=e,this._loaded=!1,this.fire(new Tt("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(e),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:r,z:i}=e.canonical;return this._implementation.hasTile({x:t,y:r,z:i})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,r){const{x:i,y:n,z:s}=e.tileID.canonical,o=new t.AbortController;e.request=Promise.resolve(this._implementation.loadTile({x:i,y:n,z:s},{signal:o.signal})).then(function(i){return delete e.request,e.aborted?(e.state="unloaded",r(null)):void 0===i?(e.state="errored",r(null)):null===i?(this.loadTileData(e,{width:this.tileSize,height:this.tileSize,data:null}),e.state="loaded",r(null)):function(e){return e instanceof t.ImageData||e instanceof t.HTMLCanvasElement||e instanceof t.ImageBitmap||e instanceof t.HTMLImageElement}(i)?(this.loadTileData(e,i),e.state="loaded",void r(null)):(e.state="errored",r(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}.bind(this)).catch((t=>{20!==t.code&&(e.state="errored",r(t))})),e.request.cancel=()=>o.abort()}loadTileData(e,t){pA.loadTileData(e,t,this._map.painter)}unloadTileData(e){pA.unloadTileData(e,this._map.painter)}unloadTile(e,t){if(this.unloadTileData(e),this._implementation.unloadTile){const{x:t,y:r,z:i}=e.tileID.canonical;this._implementation.unloadTile({x:t,y:r,z:i})}t()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map((e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z})))}_clearTiles(){const e=sl(this.id,this.scope);this._map.style.clearSource(e)}_update(){this.fire(new Tt("data",{dataType:"source",sourceDataType:"content"}))}}},$A=function(e,t,r,i){const n=new JA[t.type](e,t,r,i);if(n.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${n.id}`);return V(["load","abort","unload","serialize","prepare"],n),n};function eE(e,t){const r=hd.identity([]);return hd.scale(r,r,[.5*e.width,.5*-e.height,1]),hd.translate(r,r,[1,-1,0]),hd.multiply(r,r,e.calculateProjMatrix(t.toUnwrapped())),Float32Array.from(r)}function tE(e,t,r,i,n,s,o,a=!1){const l=e.tilesIn(i,o,a);l.sort(iE);const c=[];for(const i of l)c.push({wrappedTileID:i.tile.tileID.wrapped().key,queryResults:i.tile.queryRenderedFeatures(t,r,e._state,i,n,s,eE(e.transform,i.tile.tileID),a)});const u=function(e){const t={},r={};for(const i of e){const e=i.queryResults,n=i.wrappedTileID,s=r[n]=r[n]||{};for(const r in e){const i=e[r],n=s[r]=s[r]||{},o=t[r]=t[r]||[];for(const e of i)n[e.featureIndex]||(n[e.featureIndex]=!0,o.push(e))}}return t}(c);for(const t in u)u[t].forEach((t=>{const r=t.feature,i=r.layer;i&&"background"!==i.type&&"sky"!==i.type&&"slot"!==i.type&&(r.source=i.source,i["source-layer"]&&(r.sourceLayer=i["source-layer"]),r.state=void 0!==r.id?e.getFeatureState(i["source-layer"],r.id):{})}));return u}function rE(e,t){const r=e.getRenderableIds().map((t=>e.getTileByID(t))),i=[],n={};for(let e=0;e<r.length;e++){const s=r[e],o=s.tileID.canonical.key;n[o]||(n[o]=!0,s.querySourceFeatures(i,t))}return i}function iE(e,t){const r=e.tileID,i=t.tileID;
2return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}class nE{constructor(e){this.style=e}processLayersChanged(){this.layers=[];for(const e in this.style._mergedLayers){const t=this.style._mergedLayers[e];if("fill-extrusion"===t.type)this.layers.push(t);else if("model"===t.type){const e=this.style.getLayerSource(t);e&&"batched-model"===e.type&&this.layers.push(t)}}}updateZOffset(e,t){this.currentBuildingBuckets=[];for(let e=0;e<this.layers.length;++e){const r=this.layers[e],i=this.style.getLayerSourceCache(r);let n=1;"fill-extrusion"===r.type&&(n=r.paint.get("fill-extrusion-opacity")>0?r.paint.get("fill-extrusion-vertical-scale"):0);let s=i?i.getTile(t):null;if(!s&&i&&t.canonical.z>i.getSource().minzoom){let e=t.scaledTo(Math.min(i.getSource().maxzoom,t.overscaledZ-1));for(;e.overscaledZ>=i.getSource().minzoom&&(s=i.getTile(e),!s&&0!==e.overscaledZ);)e=e.scaledTo(e.overscaledZ-1)}this.currentBuildingBuckets.push({bucket:s?s.getBucket(r):null,tileID:s?s.tileID:t,verticalScale:n})}e.hasAnyZOffset=!1;let r=!1;for(let i=0;i<e.symbolInstances.length;i++){const n=e.symbolInstances.get(i),s=n.zOffset,o=this._getHeightAtTileOffset(t,n.tileAnchorX,n.tileAnchorY);n.zOffset=-1!==o?o:s,r||s===n.zOffset||(r=!0),e.hasAnyZOffset||0===n.zOffset||(e.hasAnyZOffset=!0)}r&&(e.zOffsetBuffersNeedUpload=!0,e.zOffsetSortDirty=!0)}
2_mapCoordToOverlappingTile(e,t,r,i){let n=t,s=r;if(e.canonical.z!==i.canonical.z){const o=i.canonical,a=1/(1<<e.canonical.z-o.z);n=(t+e.canonical.x*oi)*a-o.x*oi|0,s=(r+e.canonical.y*oi)*a-o.y*oi|0}return{tileX:n,tileY:s}}_getHeightAtTileOffset(e,t,r){let i;for(let n=0;n<this.layers.length;++n){if("fill-extrusion"!==this.layers[n].type)continue;const{bucket:s,tileID:o,verticalScale:a}=this.currentBuildingBuckets[n];if(!s)continue;const{tileX:l,tileY:c}=this._mapCoordToOverlappingTile(e,t,r,o),u=s.getHeightAtTileCoord(l,c);if(u&&void 0!==u.height){if(!u.hidden)return u.height*a;i=u.height}}for(let n=0;n<this.layers.length;++n){if("model"!==this.layers[n].type)continue;const{bucket:s,tileID:o}=this.currentBuildingBuckets[n];if(!s)continue;const{tileX:a,tileY:l}=this._mapCoordToOverlappingTile(e,t,r,o),c=s.getHeightAtTileCoord(a,l);if(c&&!c.hidden)return void 0===c.height&&void 0!==i?Math.min(c.maxHeight,i)*c.verticalScale:(c.height||0)*c.verticalScale}return-1}}var sE=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function oE(e,t){const r={};for(const t in e)"ref"!==t&&(r[t]=e[t]);return sE.forEach((e=>{e in t&&(r[e]=t[e])})),r}function aE(e){e=e.slice();const t=Object.create(null);for(let r=0;r<e.length;r++)t[e[r].id]=e[r];for(let r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=oE(e[r],t[e[r].ref]));return e}const lE={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setSlot:"setSlot",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",setTerrain:"setTerrain",setFog:"setFog",setCamera:"setCamera",setLights:"setLights",setProjection:"setProjection",addImport:"addImport",removeImport:"removeImport",setImportUrl:"setImportUrl",setImportData:"setImportData",setImportConfig:"setImportConfig"};function cE(e,t,r){r.push({command:lE.addSource,args:[e,t[e]]})}function uE(e,t,r){t.push({command:lE.removeSource,args:[e]}),r[e]=!0}function hE(e,t,r,i){uE(e,r,i),cE(e,t,r)}function dE(e,t,r){let i;for(i in e[r])if(e[r].hasOwnProperty(i)&&"data"!==i&&!_(e[r][i],t[r][i]))return!1;for(i in t[r])if(t[r].hasOwnProperty(i)&&"data"!==i&&!_(e[r][i],t[r][i]))return!1;return!0}function pE(e,t,r,i,n,s){let o;for(o in t=t||{},e=e||{})e.hasOwnProperty(o)&&(_(e[o],t[o])||r.push({command:s,args:[i,o,t[o],n]}));for(o in t)t.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(_(e[o],t[o])||r.push({command:s,args:[i,o,t[o],n]}))}function fE(e){return e.id}function mE(e,t){return e[t.id]=t,e}class gE{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let e=1;e<this.points.length;e++)this._distances[e]=this._distances[e-1]+this.points[e].dist(this.points[e-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(e){if(1===this.points.length)return this.points[0];e=M(e,0,1);let t=1,r=this._distances[t];const i=e*this.paddedLength+this.padding;for(;r<i&&t<this._distances.length;)r=this._distances[++t];const n=t-1,s=this._distances[n],o=r-s,a=o>0?(i-s)/o:0;return this.points[n].mult(1-a).add(this.points[t].mult(a))}}class yE{constructor(e,t,r){const i=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let e=0;e<this.xCellCount*this.yCellCount;e++)i.push([]),n.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,r,i,n){this._forEachCell(t,r,i,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(r),this.bboxes.push(i),this.bboxes.push(n)}
vendor: 4,245 bytes, line 2
2insertCircle(e,t,r,i){this._forEachCell(t-i,r-i,t+i,r+i,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(r),this.circles.push(i)}_insertBoxCell(e,t,r,i,n,s){this.boxCells[n].push(s)}_insertCircleCell(e,t,r,i,n,s){this.circleCells[n].push(s)}_query(e,t,r,i,n,s){if(r<0||e>this.width||i<0||t>this.height)return!n&&[];const o=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(n)return!0;for(let e=0;e<this.boxKeys.length;e++)o.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],r=this.circles[3*e+1],i=this.circles[3*e+2];o.push({key:this.circleKeys[e],x1:t-i,y1:r-i,x2:t+i,y2:r+i})}return s?o.filter(s):o}return this._forEachCell(e,t,r,i,this._queryCell,o,{hitTest:n,seenUids:{box:{},circle:{}}},s),n?o.length>0:o}_queryCircle(e,t,r,i,n){const s=e-r,o=e+r,a=t-r,l=t+r;if(o<0||s>this.width||l<0||a>this.height)return!i&&[];const c=[];return this._forEachCell(s,a,o,l,this._queryCellCircle,c,{hitTest:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}},n),i?c.length>0:c}query(e,t,r,i,n){return this._query(e,t,r,i,!1,n)}hitTest(e,t,r,i,n){return this._query(e,t,r,i,!0,n)}hitTestCircle(e,t,r,i){return this._queryCircle(e,t,r,!0,i)}_queryCell(e,t,r,i,n,s,o,a){const l=o.seenUids,c=this.boxCells[n];if(null!==c){const n=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(e<=n[c+2]&&t<=n[c+3]&&r>=n[c+0]&&i>=n[c+1]&&(!a||a(this.boxKeys[u]))){if(o.hitTest)return s.push(!0),!0;s.push({key:this.boxKeys[u],x1:n[c],y1:n[c+1],x2:n[c+2],y2:n[c+3]})}}}const u=this.circleCells[n];if(null!==u){const n=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(n[u],n[u+1],n[u+2],e,t,r,i)&&(!a||a(this.circleKeys[c]))){if(o.hitTest)return s.push(!0),!0;{const e=n[u],t=n[u+1],r=n[u+2];s.push({key:this.circleKeys[c],x1:e-r,y1:t-r,x2:e+r,y2:t+r})}}}}}_queryCellCircle(e,t,r,i,n,s,o,a){const l=o.circle,c=o.seenUids,u=this.boxCells[n];if(null!==u){const e=this.bboxes;for(const t of u)if(!c.box[t]){c.box[t]=!0;const r=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[r+0],e[r+1],e[r+2],e[r+3])&&(!a||a(this.boxKeys[t])))return s.push(!0),!0}}const h=this.circleCells[n];if(null!==h){const e=this.circles;for(const t of h)if(!c.circle[t]){c.circle[t]=!0;const r=3*t;if(this._circlesCollide(e[r],e[r+1],e[r+2],l.x,l.y,l.radius)&&(!a||a(this.circleKeys[t])))return s.push(!0),!0}}}_forEachCell(e,t,r,i,n,s,o,a){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(r),h=this._convertToYCellCoord(i);for(let d=l;d<=u;d++)for(let l=c;l<=h;l++)if(n.call(this,e,t,r,i,this.xCellCount*l+d,s,o,a))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,n,s){const o=i-e,a=n-t,l=r+s;return l*l>o*o+a*a}_circleAndRectCollide(e,t,r,i,n,s,o){const a=(s-i)/2,l=Math.abs(e-(i+a));if(l>a+r)return!1;const c=(o-n)/2,u=Math.abs(t-(n+c));if(u>c+r)return!1;if(l<=a||u<=c)return!0;const h=l-a,d=u-c;return h*h+d*d<=r*r}}const vE=100;class _E{constructor(e,t,r=new yE(e.width+200,e.height+200,25),i=new yE(e.width+200,e.height+200,25)){this.transform=e,this.grid=r,this.ignoredGrid=i,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+vE,this.screenBottomBoundary=e.height+vE,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,r,i,n,s,o,a){let l=r.projectedAnchorX,c=r.projectedAnchorY,u=r.projectedAnchorZ;const h=r.elevation,d=r.tileID,p=e.getProjection();if(h&&d){const[e,t,i]=p.upVector(d.canonical,r.tileAnchorX,r.tileAnchorY),n=p.upVectorScale(d.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=e*h*n,c+=t*h*n,u+=i*h*n}const f=this.projectAndGetPerspectiveRatio(o,l,c,u,r.tileID,"globe"===p.name||!!h||this.transform.pitch>0,p),m=s*f.perspectiveRatio,g=(r.x1*t+i.x-r.padding)*m+f.point.x,y=(r.y1*t+i.y-r.padding)*m+f.point.y,v=(r.x2*t+i.x+r.padding)*m+f.point.x,_=(r.y2*t
2+i.y+r.padding)*m+f.point.y,b=f.perspectiveRatio<=.55||f.occluded;return!this.isInsideGrid(g,y,v,_)||!n&&this.grid.hitTest(g,y,v,_,a)||b?{box:[],offscreen:!1,occluded:f.occluded}:{box:[g,y,v,_],offscreen:this.isOffscreen(g,y,v,_),occluded:!1}}placeCollisionCircles(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f){const m=[],g=this.transform.elevation,y=e.getProjection(),_=g?g.getAtTileOffsetFunc(f,this.transform.center.lat,this.transform.worldSize,y):null,b=new v(r.tileAnchorX,r.tileAnchorY);let{x,y:w,z:A}=y.projectTilePoint(b.x,b.y,f.canonical);if(_){const[e,t,r]=_(b);x+=e,w+=t,A+=r}const E="globe"===y.name,S=this.projectAndGetPerspectiveRatio(o,x,w,A,f,E||!!g||this.transform.pitch>0,y),{perspectiveRatio:T}=S,C=(u?s/T:s*T)/qg,I=zb(x,w,A,a),P=S.signedDistanceFromCamera>0?Ub(C,n,r.lineOffsetX*C,r.lineOffsetY*C,!1,I,b,r,i,a,{},g&&!u?_:null,u&&!!g,y,f,u):null;let M=!1,k=!1,O=!0;if(P&&!S.occluded){const e=.5*d*T+p,r=new v(-100,-100),i=new v(this.screenRightBoundary,this.screenBottomBoundary),n=new gE,{first:s,last:o}=P,a=s.path.length;let u=[];for(let e=a-1;e>=1;e--)u.push(s.path[e]);for(let e=1;e<o.path.length;e++)u.push(o.path[e]);const f=2.5*e;l&&(u=u.map((([e,t,r],i)=>(_&&!E&&(r=_(i<a-1?s.tilePath[a-1-i]:o.tilePath[i-a+2])[2]),zb(e,t,r,l)))),u.some((e=>e[3]<=0))&&(u=[]));let g=[];if(u.length>0){let e=1/0,t=-1/0,n=1/0,s=-1/0;for(const r of u)e=Math.min(e,r[0]),n=Math.min(n,r[1]),t=Math.max(t,r[0]),s=Math.max(s,r[1]);t>=r.x&&e<=i.x&&s>=r.y&&n<=i.y&&(g=[u.map((e=>new v(e[0],e[1])))],(e<r.x||t>i.x||n<r.y||s>i.y)&&(g=Py(g,r.x,r.y,i.x,i.y)))}for(const r of g){n.reset(r,.25*e);let i=0;i=n.length<=.5*e?1:Math.ceil(n.paddedLength/f)+1;for(let r=0;r<i;r++){const s=r/Math.max(i-1,1),o=n.lerp(s),a=o.x+vE,l=o.y+vE;m.push(a,l,e,0);const u=a-e,d=l-e,p=a+e,f=l+e;if(O=O&&this.isOffscreen(u,d,p,f),k=k||this.isInsideGrid(u,d,p,f),!t&&this.grid.hitTestCircle(a,l,e,h)&&(M=!0,!c))return{circles:[],offscreen:!1,collisionDetected:M,occluded:!1}}}}return{circles:!c&&M||!k?[]:m,offscreen:O,collisionDetected:M,occluded:S.occluded}}queryRenderedSymbols(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const t=[];let r=1/0,i=1/0,n=-1/0,s=-1/0;for(const o of e){const e=new v(o.x+vE,o.y+vE);r=Math.min(r,e.x),i=Math.min(i,e.y),n=Math.max(n,e.x),s=Math.max(s,e.y),t.push(e)}const o=this.grid.query(r,i,n,s).concat(this.ignoredGrid.query(r,i,n,s)),a={},l={};for(const e of o){const r=e.key;void 0===a[r.bucketInstanceId]&&(a[r.bucketInstanceId]={}),a[r.bucketInstanceId][r.featureIndex]||ef(t,[new v(e.x1,e.y1),new v(e.x2,e.y1),new v(e.x2,e.y2),new v(e.x1,e.y2)])&&(a[r.bucketInstanceId][r.featureIndex]=!0,void 0===l[r.bucketInstanceId]&&(l[r.bucketInstanceId]=[]),l[r.bucketInstanceId].push(r.featureIndex))}return l}insertCollisionBox(e,t,r,i,n){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:i,collisionGroupID:n},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,r,i,n){const s=t?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:i,collisionGroupID:n};for(let t=0;t<e.length;t+=4)s.insertCircle(o,e[t],e[t+1],e[t+2])}projectAndGetPerspectiveRatio(e,t,r,i,n,s,o){const a=[t,r,i,1];let l=!1;if(i||this.transform.pitch>0){if(id.transformMat4(a,a,e),this.fogState&&n&&"globe"!==o.name){const e=function(e,t,r,i,n,s){const o=s.calculateFogTileMatrix(n),a=[t,r,i];return yd.transformMat4(a,a,o),Uw(e,yd.length(a),s.pitch,s._fov)}(this.fogState,t,r,i,n.toUnwrapped(),this.transform);l=e>.9}}else Qb(a,a,e);const c=a[3];return{point:new v((a[0]/c+1)/2*this.transform.width+vE,(-a[1]/c+1)/2*this.transform.height+vE),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(o)/c*.5,1.5),signedDistanceFromCamera:c,occluded:s&&a[2]>c||l}}isOffscreen(e,t,r,i){return r<vE||e>=this.screenRightBoundary||i<vE||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e<this.gridRightBoundary&&i>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const e=hd.identity([]);return hd.translate(e,e,[-100,-100,0]),e}}function bE(e,t,r){const i=t.createTileMatrix(e,e.worldSize,r.toUnwrapped());return hd.multiply(new Float32Array(16),e.projMatrix,i)}function xE(e,t,r){if(t.projection.name===r.projection.name)return e.projMatrix;const i=r.clone();return i.setProjection(t.projection),bE(i,t.getProjection(),e)}function wE(e,t,r){return t.name===r.projection.name?e.projMatrix:bE(r,t,e)}
2class AE{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return 0===this.opacity&&!this.placed}}class EE{constructor(e,t,r,i,n,s=!1){this.text=new AE(e?e.text:null,t,r,n),this.icon=new AE(e?e.icon:null,t,i,n),this.clipped=s}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class SE{constructor(e,t,r,i=!1){this.text=e,this.icon=t,this.skipFade=r,this.clipped=i}}class TE{constructor(){this.invProjMatrix=hd.create(),this.viewportMatrix=hd.create(),this.circles=[]}}class CE{constructor(e,t,r,i,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n}}class IE{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function PE(e,t,r,i,n){const{horizontalAlign:s,verticalAlign:o}=yy(e),a=-(s-.5)*t,l=-(o-.5)*r,c=Hy(e,i);return new v(a+c[0]*n,l+c[1]*n)}function ME(e,t,r,i,n){const s=new v(e,t);return r&&s._rotate(i?n:-n),s}class kE{constructor(e,t,r,i,n,s){this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new _E(this.transform,n),this.buildingIndex=s,this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new IE(r),this.collisionCircleArrays={},this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(e,t,r,i){const n=r.getBucket(t),s=r.latestFeatureIndex;if(!n||!s||t.fqid!==n.layerIds[0])return;const o=n.layers[0].layout,a=r.collisionBoxArray,l=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/oi,u=r.tileID.toUnwrapped();this.transform.setProjection(n.projection);const h=(d=r.tileID,p=n.getProjection(),f=this.transform,p.name===this.projection?f.calculateProjMatrix(d.toUnwrapped()):bE(f,p,d));var d,p,f;const m="map"===o.get("text-pitch-alignment"),g="map"===o.get("text-rotation-alignment");t.compileFilter();const y=t.dynamicFilter(),v=t.dynamicFilterNeedsFeature(),_=this.transform.calculatePixelsToTileUnitsMatrix(r),b=Lb(h,r.tileID.canonical,m,g,this.transform,n.getProjection(),_);let x=null;if(m){const e=Bb(h,r.tileID.canonical,m,g,this.transform,n.getProjection(),_);x=hd.multiply([],this.transform.labelPlaneMatrix,e)}let w=null;y&&r.latestFeatureIndex&&(w={unwrappedTileID:u,dynamicFilter:y,dynamicFilterNeedsFeature:v,featureIndex:r.latestFeatureIndex}),this.retainedQueryData[n.bucketInstanceId]=new CE(n.bucketInstanceId,s,n.sourceLayerIndex,n.index,r.tileID);const A={bucket:n,layout:o,posMatrix:h,textLabelPlaneMatrix:b,labelToScreenMatrix:x,clippingData:w,scale:l,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:a,partiallyEvaluatedTextSize:Qg(n.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:Qg(n.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(i)for(const t of n.sortKeyRanges){const{sortKey:r,symbolInstanceStart:i,symbolInstanceEnd:n}=t;e.push({sortKey:r,symbolInstanceStart:i,symbolInstanceEnd:n,parameters:A})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:A})}attemptAnchorPlacement(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y){const{textOffset0:v,textOffset1:_,crossTileID:b}=h,x=[v,_],w=PE(e,r,i,x,n),A=this.collisionIndex.placeCollisionBox(p,n,t,ME(w.x,w.y,s,o,this.transform.angle),u,a,l,c.predicate);if(m){const e=p.getSymbolInstanceIconSize(y,this.transform.zoom,h.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(p,e,m,ME(w.x,w.y,s,o,this.transform.angle),u,a,l,c.predicate).box.length)return}if(A.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[b]&&this.prevPlacement.placements[b]&&this.prevPlacement.placements[b].text&&(t=this.prevPlacement.variableOffsets[b].anchor),this.variableOffsets[b]={textOffset:x,width:r,height:i,anchor:e,textScale:n,prevAnchor:t},this.markUsedJustification(p,e,h,f),p.allowVerticalPlacement&&(this.markUsedOrientation(p,f,h),this.placedOrientations[b]=f),{shift:w,placedGlyphBoxes:A}}}
2placeLayerBucketPart(e,t,r,i){const{bucket:n,layout:s,posMatrix:o,textLabelPlaneMatrix:a,labelToScreenMatrix:l,clippingData:c,textPixelRatio:u,holdingForFade:h,collisionBoxArray:d,partiallyEvaluatedTextSize:p,partiallyEvaluatedIconSize:f,collisionGroup:m}=e.parameters,g=s.get("text-optional"),y=s.get("icon-optional"),_=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),w="map"===s.get("text-pitch-alignment"),A="viewport-y"===s.get("symbol-z-order"),E=s.get("symbol-z-elevate");this.transform.setProjection(n.projection);let S=_&&(b||!n.hasIconData()||y),T=b&&(_||!n.hasTextData()||g);!n.collisionArrays&&d&&n.deserializeCollisionBoxes(d),r&&i&&n.updateCollisionDebugBuffers(this.transform.zoom,d);const C=(e,i,d)=>{const{crossTileID:A,numVerticalGlyphVertices:E}=e;if(c){const r={zoom:this.transform.zoom,pitch:this.transform.pitch};let i=null;if(c.dynamicFilterNeedsFeature){const t=this.retainedQueryData[n.bucketInstanceId];i=c.featureIndex.loadFeature({featureIndex:e.featureIndex,bucketIndex:t.bucketIndex,sourceLayerIndex:t.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,c.dynamicFilter)(r,i,this.retainedQueryData[n.bucketInstanceId].tileID.canonical,new v(e.tileAnchorX,e.tileAnchorY),this.transform.calculateDistanceTileData(c.unwrappedTileID)))return this.placements[A]=new SE(!1,!1,!1,!0),void t.add(A)}if(t.has(A))return;if(h)return void(this.placements[A]=new SE(!1,!1,!1));let C=!1,I=!1,P=!0,M=!1,k=!1,O=null,R={box:null,offscreen:null,occluded:null},D={box:null,offscreen:null,occluded:null},L=null,B=null,z=null,j=0,F=0,N=0;d.textFeatureIndex?j=d.textFeatureIndex:e.useRuntimeCollisionCircles&&(j=e.featureIndex),d.verticalTextFeatureIndex&&(F=d.verticalTextFeatureIndex);const U=t=>{t.tileID=this.retainedQueryData[n.bucketInstanceId].tileID;const r=this.transform.elevation;t.elevation=e.zOffset+(r?r.getAtTileOffset(t.tileID,t.tileAnchorX,t.tileAnchorY):0)},V=d.textBox;if(V){U(V);const t=t=>{let r=oy.horizontal;if(n.allowVerticalPlacement&&!t&&this.prevPlacement){const t=this.prevPlacement.placedOrientations[A];t&&(this.placedOrientations[A]=t,r=t,this.markUsedOrientation(n,r,e))}return r},r=(e,t)=>{if(n.allowVerticalPlacement&&E>0&&d.verticalTextBox){for(const r of n.writingModes)if(r===oy.vertical?(R=t(),D=R):R=e(),R&&R.box&&R.box.length)break}else R=e()};if(s.get("text-variable-anchor")){let a=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[A]){const e=this.prevPlacement.variableOffsets[A];a.indexOf(e.anchor)>0&&(a=a.filter((t=>t!==e.anchor)),a.unshift(e.anchor))}const l=(t,r,s)=>{const l=n.getSymbolInstanceTextSize(p,e,this.transform.zoom,i),c=(t.x2-t.x1)*l+2*t.padding,h=(t.y2-t.y1)*l+2*t.padding,d=e.hasIconTextFit&&!b?r:null;d&&U(d);let g={box:[],offscreen:!1,occluded:!1};const y=_?2*a.length:a.length;for(let r=0;r<y;++r){const y=this.attemptAnchorPlacement(a[r%a.length],t,c,h,l,x,w,u,o,m,r>=a.length,e,i,n,s,d,p,f);if(y&&(g=y.placedGlyphBoxes,g&&g.box&&g.box.length)){C=!0,O=y.shift;break}}return g};r((()=>l(V,d.iconBox,oy.horizontal)),(()=>{const e=d.verticalTextBox;return e&&U(e),n.allowVerticalPlacement&&!(R&&R.box&&R.box.length)&&E>0&&e?l(e,d.verticalIconBox,oy.vertical):{box:null,offscreen:null,occluded:null}})),R&&(C=R.box,P=R.offscreen,M=R.occluded);const c=t(!(!R||!R.box));if(!C&&this.prevPlacement){const t=this.prevPlacement.variableOffsets[A];t&&(this.variableOffsets[A]=t,this.markUsedJustification(n,t.anchor,e,c))}}else{const s=(t,r)=>{const s=n.getSymbolInstanceTextSize(p,e,this.transform.zoom,i),a=this.collisionIndex.placeCollisionBox(n,s,t,new v(0,0),_,u,o,m.predicate);return a&&a.box&&a.box.length&&(this.markUsedOrientation(n,r,e),this.placedOrientations[A]=r),a};r((()=>s(V,oy.horizontal)),(()=>{const e=d.verticalTextBox;return n.allowVerticalPlacement&&E>0&&e?(U(e),s(e,oy.vertical)):{box:null,offscreen:null,occluded:null}})),t(!!(R&&R.box&&R.box.length))}}if(L=R,C=L&&L.box&&L.box.length>0,P=L&&L.offscreen,M=L&&L.occluded,e.useRuntimeCollisionCircles){const t=n.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex>=0?e.centerJustifiedTextSymbolIndex:e.verticalPlacedTextSymbolIndex),i=Yg(n.textSizeData,p,t),c=s.get("text-padding");B=this.collisionIndex.placeCollisionCircles(n,_,t,n.lineVertexArray,n.glyphOffsetArray,i,o,a,l,r,w,m.predicate,e.collisionCircleDiameter*i/qg,c,this.retainedQueryData[n.bucketInstanceId].tileID),C=_||B.circles.length>0&&!B.collisionDetected,P=P&&B.offscreen,M=B.occluded}if(d.iconFeatureIndex&&(N=d.iconFeatureIndex),d.iconBox){const t=t=>{U(t);const r=e.hasIconTextFit&&O?ME(O.x,O.y,x,w,this.transform.angle):new v(0,0),i=n.getSymbolInstanceIconSize(f,this.transform.zoom,e.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(n,i,t,r,b,u,o,m.predicate)};D&&D.box&&D.box.length&&d.verticalIconBox?(z=t(d.verticalIconBox),I=z.box.length>0):(z=t(d.iconBox),I=z.box.length>0),P=P&&z.offscreen,k=z.occluded}const G=g||0===e.numHorizontalGlyphVertices&&0===E,q=y||0===e.numIconVertices;if(G||q?q?G||(I=I&&C):C=I&&C:I=C=I&&C,C&&L&&L.box&&this.collisionIndex.insertCollisionBox(L.box,s.get("text-ignore-placement"),n.bucketInstanceId,D&&D.box&&F?F:j,m.ID),I&&z&&this.collisionIndex.insertCollisionBox(z.box,s.get("icon-ignore-placement"),n.bucketInstanceId,N,m.ID),B&&(C&&this.collisionIndex.insertCollisionCircles(B.circles,s.get("text-ignore-placement"),n.bucketInstanceId,j,m.ID),r)){const e=n.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new TE);for(let e=0;e<B.circles.length;
2e+=4)t.circles.push(B.circles[e+0]),t.circles.push(B.circles[e+1]),t.circles.push(B.circles[e+2]),t.circles.push(B.collisionDetected?1:0)}const H="globe"!==n.projection.name;S=S&&(H||!M),T=T&&(H||!k),this.placements[A]=new SE(C||S,I||T,P||n.justReloaded),t.add(A)};if(E&&this.buildingIndex&&(this.buildingIndex.updateZOffset(n,this.retainedQueryData[n.bucketInstanceId].tileID),n.updateZOffset()),A){const e=n.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const r=e[t];C(n.symbolInstances.get(r),r,n.collisionArrays[r])}n.hasAnyZOffset&&Q(`${n.layerIds[0]} layer symbol-z-elevate: symbols are not sorted by elevation if symbol-z-order is evaluated to viewport-y`)}else if(n.hasAnyZOffset){const e=n.getSortedIndexesByZOffset();for(let t=0;t<e.length;++t){const r=e[t];C(n.symbolInstances.get(r),r,n.collisionArrays[r])}}else for(let t=e.symbolInstanceStart;t<e.symbolInstanceEnd;t++)C(n.symbolInstances.get(t),t,n.collisionArrays[t]);if(r&&n.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[n.bucketInstanceId];hd.invert(e.invProjMatrix,o),e.viewportMatrix=this.collisionIndex.getViewportMatrix()}n.justReloaded=!1}markUsedJustification(e,t,r,i){const{leftJustifiedTextSymbolIndex:n,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:o,verticalPlacedTextSymbolIndex:a,crossTileID:l}=r,c=Yy(t),u=i===oy.vertical?a:"left"===c?n:"center"===c?s:"right"===c?o:-1;n>=0&&(e.text.placedSymbolArray.get(n).crossTileID=u>=0&&n!==u?0:l),s>=0&&(e.text.placedSymbolArray.get(s).crossTileID=u>=0&&s!==u?0:l),o>=0&&(e.text.placedSymbolArray.get(o).crossTileID=u>=0&&o!==u?0:l),a>=0&&(e.text.placedSymbolArray.get(a).crossTileID=u>=0&&a!==u?0:l)}markUsedOrientation(e,t,r){const i=t===oy.horizontal||t===oy.horizontalOnly?t:0,n=t===oy.vertical?t:0,{leftJustifiedTextSymbolIndex:s,centerJustifiedTextSymbolIndex:o,rightJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:l}=r,c=e.text.placedSymbolArray;s>=0&&(c.get(s).placedOrientation=i),o>=0&&(c.get(o).placedOrientation=i),a>=0&&(c.get(a).placedOrientation=i),l>=0&&(c.get(l).placedOrientation=n)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const i=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},s=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(const e in this.placements){const t=this.placements[e],s=n[e];s?(this.opacities[e]=new EE(s,i,t.text,t.icon,null,t.clipped),r=r||t.text!==s.text.placed||t.icon!==s.icon.placed):(this.opacities[e]=new EE(null,i,t.text,t.icon,t.skipFade,t.clipped),r=r||t.text||t.icon)}for(const e in n){const t=n[e];if(!this.opacities[e]){const n=new EE(t,i,!1,!1);n.isHidden()||(this.opacities[e]=n,r=r||t.text.placed||t.icon.placed)}}for(const e in s)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=s[e]);for(const e in o)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=o[e]);r?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const r=new Set;for(const i of t){const t=i.getBucket(e);t&&i.latestFeatureIndex&&e.fqid===t.layerIds[0]&&(this.updateBucketOpacities(t,r,i.collisionBoxArray),t.layers[0].layout.get("symbol-z-elevate")&&this.buildingIndex&&(this.buildingIndex.updateZOffset(t,i.tileID),t.updateZOffset()))}}updateBucketOpacities(e,t,r){e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();const i=e.layers[0].layout,n=!!e.layers[0].dynamicFilter(),s=new EE(null,0,!1,!1,!0),o=i.get("text-allow-overlap"),a=i.get("icon-allow-overlap"),l=i.get("text-variable-anchor"),c="map"===i.get("text-rotation-alignment"),u="map"===i.get("text-pitch-alignment"),h=new EE(null,0,o&&(a||!e.hasIconData()||i.get("icon-optional")),a&&(o||!e.hasTextData()||i.get("text-optional")),!0);!e.collisionArrays&&r&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(r);const d=(e,t,r)=>{for(let i=0;i<t/4;i++)e.opacityVertexArray.emplaceBack(r)};let p=0;for(let r=0;r<e.symbolInstances.length;r++){const i=e.symbolInstances.get(r),{numHorizontalGlyphVertices:o,numVerticalGlyphVertices:a,crossTileID:f,numIconVertices:m}=i,g=t.has(f);let y=this.opacities[f];g?y=s:y||(y=h,this.opacities[f]=y),t.add(f);const _=o>0||a>0,b=m>0,x=this.placedOrientations[f],w=x===oy.vertical,A=x===oy.horizontal||x===oy.horizontalOnly;if(!_&&!b||y.isHidden()||p++,_){const t=NE(y.text);d(e.text,o,w?UE:t),d(e.text,a,A?UE:t);const r=y.text.isHidden(),{leftJustifiedTextSymbolIndex:n,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:c}=i,u=e.text.placedSymbolArray,h=r||w?1:0;n>=0&&(u.get(n).hidden=h),s>=0&&(u.get(s).hidden=h),l>=0&&(u.get(l).hidden=h),c>=0&&(u.get(c).hidden=r||A?1:0);const p=this.variableOffsets[f];
2p&&this.markUsedJustification(e,p.anchor,i,x);const m=this.placedOrientations[f];m&&(this.markUsedJustification(e,"left",i,m),this.markUsedOrientation(e,m,i))}if(b){const t=NE(y.icon),{placedIconSymbolIndex:r,verticalPlacedIconSymbolIndex:n}=i,s=e.icon.placedSymbolArray,o=y.icon.isHidden()?1:0;r>=0&&(d(e.icon,m,w?UE:t),s.get(r).hidden=o),n>=0&&(d(e.icon,i.numVerticalIconVertices,A?UE:t),s.get(n).hidden=o)}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){const t=e.collisionArrays[r];if(t){let r=new v(0,0),s=!0;if(t.textBox||t.verticalTextBox){if(l){const e=this.variableOffsets[f];e?(r=PE(e.anchor,e.width,e.height,e.textOffset,e.textScale),c&&r._rotate(u?this.transform.angle:-this.transform.angle)):s=!1}n&&(s=!y.clipped),t.textBox&&OE(e.textCollisionBox.collisionVertexArray,y.text.placed,!s||w,r.x,r.y),t.verticalTextBox&&OE(e.textCollisionBox.collisionVertexArray,y.text.placed,!s||A,r.x,r.y)}const o=s&&Boolean(!A&&t.verticalIconBox);t.iconBox&&OE(e.iconCollisionBox.collisionVertexArray,y.icon.placed,o,i.hasIconTextFit?r.x:0,i.hasIconTextFit?r.
vendor: 2,616 bytes, line 2
2y:0),t.verticalIconBox&&OE(e.iconCollisionBox.collisionVertexArray,y.icon.placed,!o,i.hasIconTextFit?r.x:0,i.hasIconTextFit?r.y:0)}}}if(e.fullyClipped=0===p,e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=t.invProjMatrix,e.placementViewportMatrix=t.viewportMatrix,e.collisionCircleArray=t.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const r=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*r>e}setStale(){this.stale=!0}}function OE(e,t,r,i,n){e.emplaceBack(t?1:0,r?1:0,i||0,n||0),e.emplaceBack(t?1:0,r?1:0,i||0,n||0),e.emplaceBack(t?1:0,r?1:0,i||0,n||0),e.emplaceBack(t?1:0,r?1:0,i||0,n||0)}const RE=Math.pow(2,25),DE=Math.pow(2,24),LE=Math.pow(2,17),BE=Math.pow(2,16),zE=Math.pow(2,9),jE=Math.pow(2,8),FE=Math.pow(2,1);function NE(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,r=Math.floor(127*e.opacity);return r*RE+t*DE+r*LE+t*BE+r*zE+t*jE+r*FE+t}const UE=0;class VE{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(e,t,r,i,n){const s=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(s,i,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,n())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,s.sort(((e,t)=>
2e.sortKey-t.sortKey)));this._currentPartIndex<s.length;){const e=s[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,r,0===e.symbolInstanceStart),this._currentPartIndex++,n())return!0}return!1}}class GE{constructor(e,t,r,i,n,s,o,a,l){this.placement=new kE(e,n,s,o,a,l),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=i,this._done=!1}isDone(){return this._done}continuePlacement(e,t,r,i){const n=ut.now(),s=()=>{const e=ut.now()-n;return!this._forceFullPlacement&&e>2};for(;this._currentPlacementIndex>=0;){const n=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if("symbol"===n.type&&(!n.minzoom||n.minzoom<=o)&&(!n.maxzoom||n.maxzoom>o)){const e=n,t=e.layout.get("symbol-z-elevate"),o=this._inProgressLayer=this._inProgressLayer||new VE(e),a=sl(n.source,n.scope);if(o.continuePlacement(t?i[a]:r[a],this.placement,this._showCollisionBoxes,n,s))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const qE=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class HE{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,r]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const i=r>>4;if(1!==i)throw new Error(`Got v${i} data when expected v1.`);const n=qE[15&r];if(!n)throw new Error("Unrecognized array type.");const[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new HE(o,s,n,e)}constructor(e,t=64,r=Float64Array,i){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const n=qE.indexOf(this.ArrayType),s=2*e*this.ArrayType.BYTES_PER_ELEMENT,o=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-o%8)%8;if(n<0)throw new Error(`Unexpected typed array class: ${r}.`);i&&i instanceof ArrayBuffer?(this.data=i,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+o+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+s+o+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+o+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+n]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return WE(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:s,nodeSize:o}=this,a=[0,n.length-1,0],l=[];for(;a.length;){const c=a.pop()||0,u=a.pop()||0,h=a.pop()||0;if(u-h<=o){for(let o=h;o<=u;o++){const a=s[2*o],c=s[2*o+1];a>=e&&a<=r&&c>=t&&c<=i&&l.push(n[o])}continue}const d=h+u>>1,p=s[2*d],f=s[2*d+1];p>=e&&p<=r&&f>=t&&f<=i&&l.push(n[d]),(0===c?e<=p:t<=f)&&(a.push(h),a.push(d-1),a.push(1-c)),(0===c?r>=p:i>=f)&&(a.push(d+1),a.push(u),a.push(1-c))}return l}within(e,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:n,nodeSize:s}=this,o=[0,i.length-1,0],a=[],l=r*r;for(;o.length;){const c=o.pop()||0,u=o.pop()||0,h=o.pop()||0;if(u-h<=s){for(let r=h;r<=u;r++)XE(n[2*r],n[2*r+1],e,t)<=l&&a.push(i[r]);continue}const d=h+u>>1,p=n[2*d],f=n[2*d+1];XE(p,f,e,t)<=l&&a.push(i[d]),(0===c?e-r<=p:t-r<=f)&&(o.push(h),o.push(d-1),o.push(1-c)),(0===c?e+r>=p:t+r>=f)&&(o.push(d+1),o.push(u),o.push(1-c))}return a}}function WE(e,t,r,i,n,s){if(n-i<=r)return;const o=i+n>>1;YE(e,t,o,i,n,s),WE(e,t,r,i,o-1,1-s),WE(e,t,r,o+1,n,1-s)}function YE(e,t,r,i,n,s){for(;n>i;){if(n-i>600){const o=n-i+1,a=r-i+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(a-o/2<0?-1:1);YE(e,t,r,Math.max(i,Math.floor(r-a*c/o+u)),Math.min(n,Math.floor(r+(o-a)*c/o+u)),s)}const o=t[2*r+s];let a=i,l=n;for(QE(e,t,i,r),t[2*n+s]>o&&QE(e,t,i,n);a<l;){for(QE(e,t,a,l),a++,l--;t[2*a+s]<o;)a++;for(;t[2*l+s]>o;)l--}t[2*i+s]===o?QE(e,t,i,l):(l++,QE(e,t,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function QE(e,t,r,i){ZE(e,r,i),ZE(t,2*r,2*i),ZE(t,2*r+1,2*i+1)}function ZE(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}
vendor: 4,541 bytes, line 2
2function XE(e,t,r,i){const n=e-r,s=t-i;return n*n+s*s}const KE=.03125;class JE{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this.index=new HE(t.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const i=e.canonical.x*oi,n=e.canonical.y*oi;for(let e=0;e<t.length;e++){const{key:r,crossTileID:s,tileAnchorX:o,tileAnchorY:a}=t.get(e),l=Math.floor((i+o)*KE),c=Math.floor((n+a)*KE);this.index.add(l,c),this.keys.push(r),this.crossTileIDs.push(s)}this.index.finish()}findMatches(e,t,r){const i=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z),n=KE/Math.pow(2,t.canonical.z-this.tileID.canonical.z),s=t.canonical.x*oi,o=t.canonical.y*oi;for(let t=0;t<e.length;t++){const a=e.get(t);if(a.crossTileID)continue;const{key:l,tileAnchorX:c,tileAnchorY:u}=a,h=Math.floor((s+c)*n),d=Math.floor((o+u)*n),p=this.index.range(h-i,d-i,h+i,d+i);for(const e of p){const t=this.crossTileIDs[e];if(this.keys[e]===l&&!r.has(t)){r.add(t),a.crossTileID=t;break}}}}}class $E{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class eS{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const e in this.indexes){const r=this.indexes[e],i={};for(const e in r){const n=r[e];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+t),i[n.tileID.key]=n}this.indexes[e]=i}this.lng=e}addBucket(e,t,r){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let e=0;e<t.symbolInstances.length;e++)t.symbolInstances.get(e).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]=new Set);const i=this.usedCrossTileIDs[e.overscaledZ];for(const r in this.indexes){const n=this.indexes[r];if(Number(r)>e.overscaledZ)for(const r in n){const s=n[r];s.tileID.isChildOf(e)&&s.findMatches(t.symbolInstances,e,i)}else{const s=n[e.scaledTo(Number(r)).key];s&&s.findMatches(t.symbolInstances,e,i)}}for(let e=0;e<t.symbolInstances.length;e++){const n=t.symbolInstances.get(e);n.crossTileID||(n.crossTileID=r.generate(),i.add(n.crossTileID))}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new JE(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const r of t.crossTileIDs)this.usedCrossTileIDs[e].delete(r)}removeStaleBuckets(e){let t=!1;for(const r in this.indexes){const i=this.indexes[r];for(const n in i)e[i[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,i[n]),delete i[n],t=!0)}return t}}class tS{constructor(){this.layerIndexes={},this.crossTileIDs=new $E,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,r,i){let n=this.layerIndexes[e.fqid];void 0===n&&(n=this.layerIndexes[e.fqid]=new eS);let s=!1;const o={};"globe"!==i.name&&n.handleWrapJump(r);for(const r of t){const t=r.getBucket(e);t&&e.fqid===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(r.tileID,t,this.crossTileIDs)&&(s=!0),o[t.bucketInstanceId]=!0)}return n.removeStaleBuckets(o)&&(s=!0),s}pruneUnusedLayers(e){const t={};e.forEach((e=>{t[e]=!0}));for(const e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}var rS="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0\nvec3 linearTosRGB(vec3 color)\n{return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn)\n{return pow(srgbIn,vec3(2.2));}vec3 linearProduct(vec3 srgbIn,vec3 k)\n{return srgbIn*pow(k,vec3(1./2.2));}\n#if __VERSION__ >=300\n#define _HANDLE_WIREFRAME_DEPTH gl_FragDepth=gl_FragCoord.z-0.0001;\n#else\n#define _HANDLE_WIREFRAME_DEPTH\n#endif\n#ifdef DEBUG_WIREFRAME\n#define HANDLE_WIREFRAME_DEBUG \\\ngl_FragColor=vec4(0.7,0.0,0.0,0.7); \\\n_HANDLE_WIREFRAME_DEPTH;\n#else\n#define HANDLE_WIREFRAME_DEBUG\n#endif\n#ifdef RENDER_CUTOFF\nfloat cutoff_opacity(vec4 cutoff_params,float depth) {float near=cutoff_params.x;float far=cutoff_params.y;float cutoffStart=cutoff_params.z;float cutoffEnd=cutoff_params.w-0.0001;float linearDepth=(depth-near)/(far-near);return clamp((linearDepth-cutoffStart)/(cutoffEnd-cutoffStart),0.0,1.0);}\n#endif",iS="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;
2void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",nS="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem,pos).r;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));float tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem_prev,pos).r;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(off.x,0.0)).r;float bl=texture(u_dem,pos+vec2(0.0,off.y)).r;float br=texture(u_dem,pos+off).r;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);
2vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",sS="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",oS="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump vec2 u_fog_vertical_limit;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec4 fog_apply_premultiplied(vec4 color,vec3 pos,float heightMeters) {float verticalProgress=(u_fog_vertical_limit.x > 0.0 || u_fog_vertical_limit.y > 0.0) ? smoothstep(u_fog_vertical_limit.x,u_fog_vertical_limit.y,heightMeters) : 0.0;float opacityLimit=1.0-smoothstep(0.9,1.0,fog_opacity(pos));
2return mix(fog_apply_premultiplied(color,pos),color,min(verticalProgress,opacityLimit));}vec3 fog_dither(vec3 color) {\n#ifdef FOG_DITHERING\nvec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);\n#else\nreturn color;\n#endif\n}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif",aS="#ifdef RENDER_SHADOWS\nuniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_normal_offset;vec3 shadow_normal_offset(vec3 normal) {float tileInMeters=u_shadow_normal_offset[0];vec3 n=vec3(-normal.xy,tileInMeters*normal.z);float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return n*dotScale;}vec3 shadow_normal_offset_model(vec3 normal) {float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return normal*dotScale;}float shadow_normal_offset_multiplier0() {return u_shadow_normal_offset[1];}float shadow_normal_offset_multiplier1() {return u_shadow_normal_offset[2];}\n#endif//RENDER_SHADOWS",lS="#ifdef RENDER_SHADOWS\n#if defined(NATIVE) && __VERSION__ >=300\n#define TEXTURE_GATHER\n#endif\n#ifdef DEPTH_TEXTURE\nuniform highp sampler2D u_shadowmap_0;uniform highp sampler2D u_shadowmap_1;\n#else\nuniform sampler2D u_shadowmap_0;uniform sampler2D u_shadowmap_1;\n#endif\nuniform float u_shadow_intensity;uniform float u_shadow_map_resolution;uniform float u_shadow_texel_size;uniform highp vec3 u_shadow_normal_offset;uniform vec2 u_fade_range;uniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_bias;highp float shadow_sample_1(highp vec2 uv,highp float compare) {highp float shadow_depth;\n#ifdef DEPTH_TEXTURE\nshadow_depth=texture2D(u_shadowmap_1,uv).r;\n#else\nshadow_depth=unpack_depth(texture2D(u_shadowmap_1,uv))*0.5+0.5;\n#endif\nreturn step(shadow_depth,compare);}highp float shadow_sample_0(highp vec2 uv,highp float compare) {highp float shadow_depth;\n#ifdef DEPTH_TEXTURE\nshadow_depth=texture2D(u_shadowmap_0,uv).r;\n#else\nshadow_depth=unpack_depth(texture2D(u_shadowmap_0,uv))*0.5+0.5;\n#endif\nreturn step(shadow_depth,compare);}float shadow_occlusion_1(highp vec4 pos,highp float bias) {highp vec2 uv=pos.xy;return shadow_sample_1(uv,pos.z-bias);}float shadow_occlusion_0(highp vec4 pos,highp float bias) {highp float compare0=pos.z-bias;\n#ifdef TEXTURE_GATHER\nhighp vec2 uv=pos.xy;highp vec4 samples=textureGather(u_shadowmap_0,uv,0);lowp vec4 stepSamples=step(samples,vec4(compare0));\n#else\nhighp vec2 uv00=pos.xy-vec2(0.5*u_shadow_texel_size);highp vec2 uv10=uv00+vec2(u_shadow_texel_size,0.0);highp vec2 uv01=uv00+vec2(0.0,u_shadow_texel_size);highp vec2 uv11=uv01+vec2(u_shadow_texel_size,0.0);lowp vec4 stepSamples=vec4(\nshadow_sample_0(uv01,compare0),shadow_sample_0(uv11,compare0),shadow_sample_0(uv10,compare0),shadow_sample_0(uv00,compare0)\n);\n#endif\nvec2 f=fract(pos.xy*u_shadow_map_resolution-vec2(0.5));lowp vec2 lerpx=mix(stepSamples.wx,stepSamples.zy,f.xx);return mix(lerpx.x,lerpx.y,f.y);}float shadow_occlusion(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,highp float bias) {\n#ifdef SHADOWS_SINGLE_CASCADE\nlight_view_pos0.xyz=light_view_pos0.xyz/light_view_pos0.w*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);\n#else\nlight_view_pos0.xyz/=light_view_pos0.w;light_view_pos1.xyz/=light_view_pos1.w;vec4 uv=vec4(light_view_pos0.xy,light_view_pos1.xy);vec4 abs_bounds=abs(uv);if (abs_bounds.x < 1.0 && abs_bounds.y < 1.0) {light_view_pos0.xyz=light_view_pos0.xyz*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);}if (abs_bounds.z >=1.0 || abs_bounds.w >=1.0) {return 0.0;}light_view_pos1.xyz=light_view_pos1.xyz*0.5+0.5;float occlusion1=shadow_occlusion_1(light_view_pos1,bias);return mix(occlusion1,0.0,smoothstep(u_fade_range.x,u_fade_range.y,view_depth));\n#endif\n}highp float calculate_shadow_bias(float NDotL) {\n#ifdef NORMAL_OFFSET\nreturn 0.5*u_shadow_bias.x;\n#else\nreturn 0.5*(u_shadow_bias.x+clamp(u_shadow_bias.y*tan(acos(NDotL)),0.0,u_shadow_bias.z));\n#endif\n}float shadowed_light_factor_normal(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_unbiased(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadow_occlusion(float ndotl,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=calculate_shadow_bias(ndotl);return shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);}\n#endif";const cS=[];mS(rS,cS);const uS={"_prelude_fog.vertex.glsl":sS,"_prelude_terrain.vertex.glsl":nS,"_prelude_shadow.vertex.glsl":aS,"_prelude_fog.fragment.glsl":oS,"_prelude_shadow.fragment.glsl":lS,"_prelude_lighting.glsl":"\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0
2));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);}\n#endif//LIGHTING_3D_MODE"},hS={};gS("",nS),gS(oS,sS),gS(lS,aS);const dS=gS("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#ifdef INDICATOR_CUTOUT\nuniform vec2 u_indicator_cutout_centers;uniform vec4 u_indicator_cutout_params;\n#endif\nvec4 applyCutout(vec4 color) {\n#ifdef INDICATOR_CUTOUT\nfloat holeMinOpacity=u_indicator_cutout_params.x;float holeRadius=max(u_indicator_cutout_params.y,0.0);float holeAspectRatio=u_indicator_cutout_params.z;float fadeStart=u_indicator_cutout_params.w;float distA=distance(vec2(gl_FragCoord.x,gl_FragCoord.y*holeAspectRatio),vec2(u_indicator_cutout_centers[0],u_indicator_cutout_centers[1]*holeAspectRatio));return color*min(smoothstep(fadeStart,holeRadius,distA)+holeMinOpacity,1.0);\n#else\nreturn color;\n#endif\n}\n#ifdef RENDER_CUTOFF\nuniform highp vec4 u_cutoff_params;varying float v_cutoff_opacity;\n#endif","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);
2return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef RENDER_CUTOFF\nuniform vec4 u_cutoff_params;varying float v_cutoff_opacity;\n#endif\nconst vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),pS=rS;var fS={background:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_lighting.glsl"\nattribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec4 u_color;varying vec4 v_color;uniform float u_emissive_strength;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting_with_emission_ground(u_color,u_emissive_strength);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),backgroundPattern:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform float u_emissive_strength;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),circle:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nvarying vec3 v_data;varying float v_visibility;\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\nuniform float u_emissive_strength;void 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\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\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\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*v
2iew_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void 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\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}'),clippingMask:gS("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:gS('#include "_prelude_fog.fragment.glsl"\nuniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),heatmapTexture:gS("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:gS("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",'#include "_prelude_terrain.vertex.glsl"\nattribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}'),collisionCircle:gS("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:gS("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",'#include "_prelude_terrain.vertex.glsl"\nattribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1
2);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}'),fill:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nuniform float u_emissive_strength;void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nattribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillOutline:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nvarying vec2 v_pos;uniform float u_emissive_strength;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nattribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillOutlinePattern:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_emissive_strength;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillPattern:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;uniform float u_emissive_strength;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillExtrusion:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nuniform lowp float u_opacity;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec2 v_ao;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nvarying highp vec3 v_normal;\n#endif\nuniform vec3 u_flood_light_color;uniform highp float u_vertical_scale;uniform float u_flood_light_intensity;uniform vec3 u_ground_shadow_factor;\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nvarying float v_flood_radius;varying float v_has_floodlight;\n#endif\nvarying float v_height;void main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nvec3 normal=normalize(v_normal);\n#endif\nfloat z;vec4 color=v_color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);\n#ifdef LIGHTING_3D_MODE\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#else\ncolor=mix(v_color,v_roof_color,z);\n#endif\n#endif\nfloat h=max(0.0,v_height);float ao_shade=1.0;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h_floors=h/(u_ao[1]*u_vertical_scale);float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);ao_shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);ao_shade*=mix(1.0,x_shade*x_shade*x_shade,concave);\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\ncolor.rgb*=mix(ao_shade,1.0,v_has_floodlight);\n#else\ncolor.rgb*=ao_shade;\n#endif\n#else\ncolor.rgb*=ao_shade;\n#endif\n#endif\n#ifdef LIGHTING_3D_MODE\nfloat flood_radiance=0.0;\n#ifdef FLOOD_LIGHT\nflood_radiance=(1.0-min(h/v_flood_radius,1.0))*u_flood_light_intensity*v_has_floodlight;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef FLOOD_LIGHT\nfloat ndotl_unclamped=dot(normal,u_shadow_direction);float ndotl=max(0.0,ndotl_unclamped);float occlusion=ndotl_unclamped < 0.0 ? 1.0 : shadow_occlusion(ndotl,v_pos_light_view_0,v_pos_light_view_1,v_depth);vec3 litColor=apply_lighting(color.rgb,normal,(1.0-u_shadow_intensity*occlusion)*ndotl);vec3 floodLitColor=compute_flood_lighting(u_flood_light_color*u_opacity,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=mix(litColor,floodLitColor,flood_radiance);\n#else\nfloat shadowed_lighting_factor=shadowed_light_factor_normal(normal,v_pos_light_view_0,v_pos_light_view_1,v_depth);color.rgb=apply_lighting(color.rgb,normal,shadowed_lighting_factor);\n#endif\n#else\ncolor.rgb=apply_lighting(color.rgb,normal);\n#ifdef FLOOD_LIGHT\ncolor.rgb=mix(color.rgb,u_flood_light_color*u_opacity,flood_radiance);\n#endif\n#endif\ncolor*=u_opacity;\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos,h));\n#endif\n#ifdef RENDER_CUTOFF\ncolor*=v_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color);\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_lighting.glsl"\n#if __VERSION__ >=300\n#ifdef RENDER_CUTOFF\ninvariant gl_Position;\n#endif\n#endif\nuniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nuniform highp float u_vertical_scale;varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec2 v_ao;\n#endif\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nvarying float v_flood_radius;varying float v_has_floodlight;\n#endif\nvarying float v_height;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define highp float flood_light_wall_radius\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize highp float flood_light_wall_radius\nbase*=u_vertical_scale;height*=u_vertical_scale;vec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);h=h-ele;v_height=h;\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=pos;vec3 shd_pos1=pos;\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(normal);shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifndef LIGHTING_3D_MODE\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);if (normal.y !=0.0) {float r=0.84;r=mix(0.7,0.98,1.0-u_lightintensity);NdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}
2\n#endif\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec2(mix(concave,-concave,start),y_ground);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\nfloat is_wall=1.0-float(t > 0.0 && top_up_ny.y > 0.0);v_has_floodlight=float(flood_light_wall_radius > 0.0 && is_wall > 0.0);v_flood_radius=flood_light_wall_radius*u_vertical_scale;\n#endif\nv_color=vec4(color.rgb,1.0);\n#else\nv_color=vec4(0.0,0.0,0.0,1.0);v_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color=vec4(0.0,0.0,0.0,1.0);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n}'),fillExtrusionDepth:gS("varying highp float v_depth;void main() {\n#ifndef DEPTH_TEXTURE\ngl_FragColor=pack_depth(v_depth);\n#endif\n}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_edge_radius;uniform float u_vertical_scale;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\nvarying highp float v_depth;void main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\nbase*=u_vertical_scale;height*=u_vertical_scale;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nvec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base);pos=vec3(pos_nx.xy,h);\n#else\npos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);v_depth=gl_Position.z/gl_Position.w;}'),fillExtrusionPattern:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying vec3 v_normal;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define highp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize highp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,normalize(v_normal))*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
2),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color);\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_lighting.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying vec3 v_normal;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define highp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize highp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(ce
2ntroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_normal=normal;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}'),groundShadow:gS('#include "_prelude_shadow.fragment.glsl"\n#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec3 u_ground_shadow_factor;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nvoid main() {float light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);vec3 shadow=mix(u_ground_shadow_factor,vec3(1.0),light);\n#ifdef RENDER_CUTOFF\nshadow=mix(vec3(1.0),shadow,cutoff_opacity(u_cutoff_params,v_depth));\n#endif\n#ifdef FOG\nshadow=mix(shadow,vec3(1.0),v_fog_opacity);\n#endif\n#ifdef INDICATOR_CUTOUT\nshadow=mix(shadow,vec3(1.0),1.0-applyCutout(vec4(1.0)).r);\n#endif\ngl_FragColor=vec4(shadow,1.0);}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;attribute vec2 a_pos;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0.0,1.0);v_pos_light_view_0=u_light_matrix_0*vec4(a_pos,0.0,1.0);v_pos_light_view_1=u_light_matrix_1*vec4(a_pos,0.0,1.0);v_depth=gl_Position.w;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);v_fog_opacity=fog(v_fog_pos);\n#endif\n}'),fillExtrusionGroundEffect:gS("uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size;\n#ifdef SDF_SUBPASS\nvarying highp vec2 v_pos;varying highp vec4 v_line_segment;varying highp float v_flood_light_radius_tile;varying highp vec2 v_ao;float line_df(highp vec2 a,highp vec2 b,highp vec2 p) {highp vec2 ba=b-a;highp vec2 pa=p-a;highp float r=clamp(dot(pa,ba)/dot(ba,ba),0.0,1.0);return length(pa-r*ba);}\n#ifdef FOG\nvarying highp float v_fog;\n#endif\n#endif\nvoid main() {\n#ifdef CLEAR_SUBPASS\nvec4 color=vec4(1.0);\n#ifdef CLEAR_FROM_TEXTURE\ncolor=texture2D(u_fb,gl_FragCoord.xy/vec2(u_fb_size));\n#endif\ngl_FragColor=color;\n#else\n#ifdef SDF_SUBPASS\nhighp float d=line_df(v_line_segment.xy,v_line_segment.zw,v_pos);highp float effect_radius=mix(v_flood_light_radius_tile,v_ao.y,u_ao_pass);d/=effect_radius;d=min(d,1.0);d=1.0-pow(1.0-d,u_attenuation);highp float effect_intensity=mix(u_flood_light_intensity,v_ao.x,u_ao_pass);highp float fog=1.0;\n#ifdef FOG\nfog=v_fog;\n#endif\n#ifdef RENDER_CUTOFF\nfog*=v_cutoff_opacity;\n#endif\ngl_FragColor=vec4(vec3(0.0),mix(1.0,d,effect_intensity*u_opacity*fog));\n#else\nvec4 color=mix(vec4(u_flood_light_color,1.0),vec4(vec3(0.0),1.0),u_ao_pass);\n#ifdef OVERDRAW_INSPECTOR\ncolor=vec4(1.0);\n#endif\ngl_FragColor=color;HANDLE_WIREFRAME_DEBUG;\n#endif\n#endif\n}",'#include "_prelude_fog.vertex.glsl"\nattribute highp vec4 a_pos_end;attribute highp float a_angular_offset_factor;attribute highp float a_hidden_by_landmark;\n#ifdef SDF_SUBPASS\nvarying highp vec2 v_pos;varying highp vec4 v_line_segment;varying highp float v_flood_light_radius_tile;varying highp vec2 v_ao;\n#ifdef FOG\nvarying highp float v_fog;\n#endif\n#endif\nuniform highp float u_flood_light_intensity;uniform highp mat4 u_matrix;uniform highp float u_ao_pass;uniform highp float u_meter_to_tile;uniform highp float u_edge_radius;uniform highp vec2 u_ao;\n#pragma mapbox: define highp float flood_light_ground_radius\nconst float TANGENT_CUTOFF=4.0;const float NORM=32767.0;void main() {\n#pragma mapbox: initialize highp float flood_light_ground_radiu
2s\nvec2 p=a_pos_end.xy;vec2 q=floor(a_pos_end.zw*0.5);vec2 start_bottom=a_pos_end.zw-q*2.0;float fl_ground_radius=flood_light_ground_radius;\n#ifdef FORCE_ABS_FL_GROUND_RADIUS\nfl_ground_radius=abs(flood_light_ground_radius);\n#endif\nfloat flood_radius_tile=fl_ground_radius*u_meter_to_tile;vec2 v=normalize(q-p);float ao_radius=u_ao.y/3.5;float effect_radius=mix(flood_radius_tile,ao_radius,u_ao_pass)+u_edge_radius;float angular_offset_factor=a_angular_offset_factor/NORM*TANGENT_CUTOFF;float angular_offset=angular_offset_factor*effect_radius;float top=1.0-start_bottom.y;float side=(0.5-start_bottom.x)*2.0;vec2 extrusion_parallel=v*side*mix(1.0,angular_offset,top);vec2 perp=vec2(v.y,-v.x);vec2 extrusion_perp=perp*effect_radius*top;vec3 pos=vec3(mix(q,p,start_bottom.x),0.0);pos.xy+=extrusion_parallel+extrusion_perp;\n#ifdef SDF_SUBPASS\nv_pos=pos.xy;v_line_segment=vec4(p,q)+perp.xyxy*u_edge_radius;v_flood_light_radius_tile=flood_radius_tile;v_ao=vec2(u_ao.x,ao_radius);\n#ifdef FOG\nv_fog_pos=fog_position(pos);v_fog=1.0-fog(v_fog_pos);\n#endif\n#endif\nfloat hidden_by_landmark=0.0;\n#ifdef HAS_CENTROID\nhidden_by_landmark=a_hidden_by_landmark;\n#endif\nfloat isFloodlit=float(fl_ground_radius > 0.0 && u_flood_light_intensity > 0.0);float hidden=mix(1.0-isFloodlit,isFloodlit,u_ao_pass);hidden+=hidden_by_landmark;gl_Position=mix(u_matrix*vec4(pos,1.0),AWAY,float(hidden > 0.0));\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n}'),hillshadePrepare:gS("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture(u_image,coord).r/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;uniform float u_emissive_strength;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting_with_emission_ground(gl_FragColor,u_emissive_strength);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),line:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nfloat luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}uniform float u_emissive_strength;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\nfloat linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;
2float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\nif (u_alpha_discard_threshold !=0.0) {if (alpha < u_alpha_discard_threshold) {discard;}}\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);if (border_color.a==0.0) { \nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}} else {out_color.rgb=mix(border_color.rgb*border_color.a*trimmed,out_color.rgb,smoothAlpha);}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nout_color*=(alpha*opacity);\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color);\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\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 border_width\n#pragma mapbox: define lowp vec4 border_color\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\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 border_width\n#pragma mapbox: initialize lowp vec4 border_color\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),linePattern:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting_ground(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=(alpha*opacity);\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color);\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\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 float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\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 lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),raster:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;\n#ifdef RASTER_COLOR\nuniform sampler2D u_color_ramp;uniform highp vec2 u_colorization_scale;uniform highp vec4 u_colorization_mix;highp vec4 colormap (highp float value) {highp float scaled_value=value*u_colorization_scale.y+u_colorization_scale.x;highp vec2 coords=vec2(scaled_value,0.5);return texture2D(u_color_ramp,coords);}\n#endif\nvoid main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);vec4 color;\n#ifdef RASTER_COLOR\nhighp vec4 fadedColor=mix(color0,color1,u_fade_t);color=colormap(dot(vec4(fadedColor.rgb,1),u_colorization_mix));color.a*=fadedColor.a;if (color.a > 0.0) {color.rgb/=color.a;}\n#else\nif (color0.a > 0.0) {color0.rgb/=color0.a;}if (color1.a > 0.0) {color1.rgb/=color1.a;}color=mix(color0,color1,u_fade_t);\n#endif\ncolor.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_ground(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;attribute vec2 a_texture_pos;\n#endif\nvarying vec2 v_pos0;varying vec2 v_pos1;void main() {vec2 uv;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*u_globe_matrix*vec4(a_globe_pos,1.0);uv=a_uv;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(a_globe_pos,1.0)).xyz);\n#endif\n#else\nfloat w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\nuv=a_texture_pos/8192.0;\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}'),symbolIcon:gS('#include "_prelude_lighting.glsl"\nuniform sampler2D u_texture;\n#ifdef ICON_TRANSITION\nuniform float u_icon_transition;\n#endif\nvarying float v_fade_opacity;varying vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nvarying vec2 v_tex_b;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float emissive_strength\nlowp float alpha=opacity*v_fade_opacity;vec4 out_color;\n#ifdef ICON_TRANSITION\nvec4 a=texture2D(u_texture,v_tex_a)*(1.0-u_icon_transition);vec4 b=texture2D(u_texture,v_tex_b)*u_icon_transition;out_color=(a+b)*alpha;\n#else\nout_color=texture2D(u_texture,v_tex_a)*alpha;\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nattribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef Z_OFFSET\nattribute float a_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\n#ifdef ICON_TRANSITION\nattribute vec2 a_texb;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nvarying vec2 v_tex_b;\n#endif\nvarying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float emissive_strength\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float out_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nv_tex_a=a_tex/u_texsize;\n#ifdef ICON_TRANSITION\nv_tex_b=a_texb/u_texsize;\n#endif\nv_fade_opacity=out_fade_opacity;}'),symbolSDF:gS('#include "_prelude_lighting.glsl"\n#define SDF_PX 8.0\nuniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;uniform bool u_is_halo;\n#if __VERSION__ >=300\nflat varying float v_draw_halo;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\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#pragma mapbox: define lowp float emissive_strength\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#pragma mapbox: initialize lowp float emissive_strength\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;bool draw_halo;\n#if __VERSION__ >=300\ndraw_halo=v_draw_halo > 0.0;\n#else\ndraw_halo=u_is_halo;\n#endif\nif (draw_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);vec4 out_color=color*(alpha*opacity*fade_opacity);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nattribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef Z_OFFSET\nattribute float a_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform bool u_is_halo;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\n#if __VERSION__ >=300\nflat varying float v_draw_halo;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\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#pragma mapbox: define lowp float emissive_strength\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#pragma mapbox: initialize lowp float emissive_strength\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nfloat gamma_scale=gl_Position.w;\n#if __VERSION__ >=300\nv_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;\n#endif\nv_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,out_fade_opacity);}'),symbolTextAndIcon:gS('#include "_prelude_lighting.glsl"\n#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_halo;\n#if __VERSION__ >=300\nflat varying float v_draw_halo;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\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#pragma mapbox: define lowp float emissive_strength\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#pragma mapbox: initialize lowp float emissive_strength\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
2gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;bool draw_halo;\n#if __VERSION__ >=300\ndraw_halo=v_draw_halo > 0.0;\n#else\ndraw_halo=u_is_halo;\n#endif\nif (draw_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);vec4 out_color=color*(alpha*opacity*fade_opacity);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nattribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef Z_OFFSET\nattribute float a_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;uniform bool u_is_halo;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\n#if __VERSION__ >=300\nflat varying float v_draw_halo;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\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#pragma mapbox: define lowp float emissive_strength\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#pragma mapbox: initialize lowp float emissive_strength\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nfloat out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;float alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nfloat gamma_scale=gl_Position.w;\n#if __VERSION__ >=300\nv_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,out_fade_opacity,is_sdf);}'),terrainRaster:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nuniform vec3 u_ground_shadow_factor;void main() {vec4 image_color=texture2D(u_image0,v_pos0);vec4 color;\n#ifdef LIGHTING_3D_MODE\nconst vec3 normal=vec3(0.0,0.0,1.0);\n#ifdef RENDER_SHADOWS\nfloat cutoffOpacity=1.0;\n#ifdef RENDER_CUTOFF\ncutoffOpacity=cutoff_opacity(u_cutoff_params,v_depth);\n#endif\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nvec3 unlit_base=image_color.rgb*(1.0-image_color.a);vec3 emissive_base=image_color.rgb*image_color.a;float ndotl=u_shadow_direction.z;float occlusion=ndotl < 0.0 ? 1.0 : shadow_occlusion(v_pos_light_view_0,v_pos_light_view_1,v_depth,0.0);ndotl=max(0.0,ndotl);vec3 lit=apply_lighting(unlit_base,normal,mix(1.0,(1.0-(u_shadow_intensity*occlusion))*ndotl,cutoffOpacity));vec3 emissive=compute_emissive_draped(emissive_base,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=lit+emissive;color.a=1.0;\n#else\nfloat lighting_factor=shadowed_light_factor_normal_unbiased(normal,v_pos_light_view_0,v_pos_light_view_1,v_depth);color=apply_lighting(image_color,normal,mix(1.0,lighting_factor,cutoffOpacity));\n#endif\n#else\nfloat lighting_factor=u_lighting_directional_dir.z;color=apply_lighting(image_color,normal,lighting_factor);\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\ncolor.rgb=mix(color.rgb,image_color.rgb,image_color.a);color.a=1.0;\n#endif\n#endif\n#else\ncolor=image_color;\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;v_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}'),terrainDepth:gS("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}'),skybox:gS('#include "_prelude_fog.fragment.glsl"\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
2nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}',iS),skyboxGradient:gS('#include "_prelude_fog.fragment.glsl"\nvarying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}',iS),skyboxCapture:gS
vendor: 3,851 bytes, line 2
2("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:
2gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nraster=apply_lighting_with_emission_ground(raster,raster.a);color=vec4(raster.rgb*antialias,antialias);\n#else\nraster=apply_lighting_ground(raster);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=texture2D(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\ncolor=apply_lighting_with_emission_ground(color,color.a);color.a=1.0;\n#else\ncolor=apply_lighting_ground(color);\n#endif\n#endif\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);globe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}'),globeAtmosphere:gS('#include "_prelude_fog.fragment.glsl"\nuniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec4 u_color;uniform vec4 u_high_color;uniform vec4 u_space_color;uniform float u_horizon_angle;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {\n#ifdef ALPHA_PASS\ngl_FragColor=vec4(0,0,0,0);return;\n#else\n#ifdef NATIVE\ngl_FragColor=vec4(1,1,1,1);\n#else\ngl_FragColor=vec4(0,0,0,1);\n#endif\nreturn;\n#endif\n}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(clamp(dot(dir,horizon_dir),-1.0,1.0)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;highp float closest_point_to_center=length(closest_point-u_globe_pos);highp float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;
2vec3 color_stop_2=u_space_color.rgb;\n#ifdef ALPHA_PASS\nfloat a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);gl_FragColor=vec4(1.0,1.0,1.0,a);\n#else\nvec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c=c2;\n#ifndef NATIVE\nc=dither(c,gl_FragCoord.xy+u_temporal_offset);\n#endif\ngl_FragColor=vec4(c*t,t);\n#endif\n}',"attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}"),model:gS('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_opacity;uniform vec3 u_lightcolor;uniform vec3 u_lightpos;uniform float u_lightintensity;uniform vec4 u_baseColorFactor;uniform vec4 u_emissiveFactor;uniform float u_metallicFactor;uniform float u_roughnessFactor;uniform float u_emissive_strength;varying highp vec4 v_position_height;varying lowp vec4 v_color_mix;\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth_shadows;\n#endif\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#ifdef HAS_ATTRIBUTE_a_pbr\nvarying lowp vec4 v_roughness_metallic_emissive_alpha;varying mediump vec4 v_height_based_emission_params;\n#endif\n#ifdef HAS_TEXTURE_u_baseColorTexture\nuniform sampler2D u_baseColorTexture;uniform bool u_baseTextureIsAlpha;uniform bool u_alphaMask;uniform float u_alphaCutoff;\n#endif\n#ifdef HAS_TEXTURE_u_metallicRoughnessTexture\nuniform sampler2D u_metallicRoughnessTexture;\n#endif\n#ifdef HAS_TEXTURE_u_occlusionTexture\nuniform sampler2D u_occlusionTexture;uniform float u_aoIntensity;\n#endif\n#ifdef HAS_TEXTURE_u_normalTexture\nuniform sampler2D u_normalTexture;\n#endif\n#ifdef HAS_TEXTURE_u_emissionTexture\nuniform sampler2D u_emissionTexture;\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nvarying highp float v_depth;uniform sampler2D u_depthTexture;uniform vec2 u_inv_depth_size;bool isOccluded() {vec2 coord=gl_FragCoord.xy*u_inv_depth_size;highp float depth=unpack_depth(texture2D(u_depthTexture,coord));return v_depth > depth+0.0005;}\n#endif\nconst float M_PI=3.141592653589793;\n#define saturate(_x) clamp(_x,0.,1.)\nfloat calculate_NdotL(vec3 normal,vec3 lightDir) {const float ext=0.70710678118;return (clamp(dot(normal,lightDir),-ext,1.0)+ext)/(1.0+ext);}vec3 getDiffuseShadedColor(vec3 albedo,vec3 normal,vec3 lightDir,vec3 lightColor)\n{\n#ifdef LIGHTING_3D_MODE\nvec3 transformed_normal=vec3(-normal.xy,normal.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=saturate(dot(transformed_normal,u_lighting_directional_dir));\n#endif\nreturn apply_lighting(albedo,transformed_normal,lighting_factor);\n#else\nvec3 n=normal;float colorvalue=((albedo.x*0.2126)+(albedo.y*0.7152))+(albedo.z*0.0722);vec3 c=vec3(0.03,0.03,0.03);float directional=clamp(dot(n,vec3(lightDir)),0.0,1.0);directional=mix(1.0-u_lightintensity,max((1.0-colorvalue)+u_lightintensity,1.0),directional);vec3 c3=c+clamp((albedo*directional)*lightColor,mix(vec3(0.0),vec3(0.3),vec3(1.0)-lightColor),vec3(1.0));return c3;\n#endif\n}vec4 getBaseColor() {vec4 albedo=u_baseColorFactor;
2\n#ifdef HAS_ATTRIBUTE_a_color_3f\nalbedo*=vec4(color_3f,1.0);\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#else\n#ifdef HAS_ATTRIBUTE_a_color_4f\nalbedo*=color_4f;\n#endif\n#endif\n#if defined (HAS_TEXTURE_u_baseColorTexture) && defined (HAS_ATTRIBUTE_a_uv_2f)\nvec4 texColor=texture2D(u_baseColorTexture,uv_2f);if(u_alphaMask) {if (texColor.w < u_alphaCutoff) {discard;}}\n#ifdef UNPREMULT_TEXTURE_IN_SHADER\nif(texColor.w > 0.0) {texColor.rgb/=texColor.w;}texColor.w=1.0;\n#endif\ntexColor.rgb=sRGBToLinear(texColor.rgb);if(u_baseTextureIsAlpha) {if (texColor.w < 0.5) {discard;}albedo*=mix(vec4(texColor.rgb,texColor.a),vec4(texColor.a),float(u_baseTextureIsAlpha));} else {albedo*=texColor;}\n#endif\nreturn vec4(mix(albedo.rgb,v_color_mix.rgb,v_color_mix.a),albedo.a);}highp mat3 cotangentFrame(highp vec3 N,highp vec3 p,highp vec2 uv ) {\n#ifdef HAS_TEXTURE_u_normalTexture\nhighp vec3 dp1=vec3(dFdx(p.x),dFdx(p.y),dFdx(p.z));highp vec3 dp2=vec3(dFdy(p.x),dFdy(p.y),dFdy(p.z));highp vec2 duv1=vec2(dFdx(uv.x),dFdx(uv.y));highp vec2 duv2=vec2(dFdy(uv.x),dFdy(uv.y));highp vec3 dp2perp=cross( dp2,N );highp vec3 dp1perp=cross( N,dp1 );highp vec3 T=dp2perp*duv1.x+dp1perp*duv2.x;highp vec3 B=dp2perp*duv1.y+dp1perp*duv2.y;highp float lengthT=dot(T,T);highp float lengthB=dot(B,B);highp float maxLength=max(lengthT,lengthB);highp float invmax=inversesqrt( maxLength );highp mat3 res=mat3( T*invmax,B*invmax,N );return res;\n#else\nreturn mat3(1.0);\n#endif\n}highp vec3 getNormal(){highp vec3 n;\n#ifdef HAS_ATTRIBUTE_a_normal_3f\nn=normalize(normal_3f);\n#else\nhighp vec3 fdx=vec3(dFdx(v_position_height.x),dFdx(v_position_height.y),dFdx(v_position_height.z));highp vec3 fdy=vec3(dFdy(v_position_height.x),dFdy(v_position_height.y),dFdy(v_position_height.z));n=normalize(cross(fdx,fdy))*-1.0;\n#endif\n#if defined(HAS_TEXTURE_u_normalTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nvec3 nMap=texture2D( u_normalTexture,uv_2f).xyz;nMap=normalize(2.0*nMap-vec3(1.0));highp vec3 v=normalize(-v_position_height.xyz);highp mat3 TBN=cotangentFrame(n,v,uv_2f);n=normalize(TBN*nMap);\n#endif\nreturn n;}struct Material {float perceptualRoughness;float alphaRoughness;float metallic;vec3 f90;vec4 baseColor;vec3 diffuseColor;vec3 specularColor;highp vec3 normal;};Material getPBRMaterial() {Material mat;mat.baseColor=getBaseColor();mat.perceptualRoughness=u_roughnessFactor;mat.metallic=u_metallicFactor;\n#ifdef HAS_ATTRIBUTE_a_pbr\nmat.perceptualRoughness=v_roughness_metallic_emissive_alpha.x;mat.metallic=v_roughness_metallic_emissive_alpha.y;mat.baseColor.w*=v_roughness_metallic_emissive_alpha.w;\n#endif\n#if defined(HAS_TEXTURE_u_metallicRoughnessTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) \nvec4 mrSample=texture2D(u_metallicRoughnessTexture,uv_2f);mat.perceptualRoughness*=mrSample.g;mat.metallic*=mrSample.b;\n#endif\nconst float c_minRoughness=0.04;mat.perceptualRoughness=clamp(mat.perceptualRoughness,c_minRoughness,1.0);mat.metallic=saturate(mat.metallic);mat.alphaRoughness=mat.perceptualRoughness*mat.perceptualRoughness;const vec3 f0=vec3(0.04);mat.diffuseColor=mat.baseColor.rgb*(vec3(1.0)-f0);mat.diffuseColor*=1.0-mat.metallic;mat.specularColor=mix(f0,mat.baseColor.rgb,mat.metallic);highp float reflectance=max(max(mat.specularColor.r,mat.specularColor.g),mat.specularColor.b);highp float reflectance90=saturate(reflectance*25.0);mat.f90=vec3(reflectance90);mat.normal=getNormal();return mat;}float V_GGX(float NdotL,float NdotV,float roughness)\n{float a2=roughness*roughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-a2)+a2);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-a2)+a2);return 0.5/(GGXV+GGXL);}float V_GGXFast(float NdotL,float NdotV,float roughness) {float a=roughness;float GGXV=NdotL*(NdotV*(1.0-a)+a);float GGXL=NdotV*(NdotL*(1.0-a)+a);return 0.5/(GGXV+GGXL);}vec3 F_Schlick(vec3 specularColor,vec3 f90,float VdotH)\n{return specularColor+(f90-specularColor)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}vec3 F_SchlickFast(vec3 specularColor,float VdotH)\n{float x=1.0-VdotH;float x4=x*x*x*x;return specularColor+(1.0-specularColor)*x4*x;}float D_GGX(highp float NdotH,float alphaRoughness)\n{highp float a4=alphaRoughness*alphaRoughness;highp float f=(NdotH*a4-NdotH)*NdotH+1.0;return a4/(M_PI*f*f);}vec3 diffuseBurley(Material mat,float LdotH,float NdotL,float NdotV)\n{float f90=2.0*LdotH*LdotH*mat.alphaRoughness-0.5;return (mat.diffuseColor/M_PI)*(1.0+f90*pow((1.0-NdotL),5.0))*(1.0+f90*pow((1.0-NdotV),5.0));}vec3 diffuseLambertian(Material mat)\n{\n#ifdef LIGHTING_3D_MODE\nreturn mat.diffuseColor;\n#else\nreturn mat.diffuseColor/M_PI;\n#endif\n}vec3 EnvBRDFApprox(vec3 specularColor,float roughness,highp float NdotV)\n{vec4 c0=vec4(-1,-0.0275,-0.572,0.022);vec4 c1=vec4(1,0.0425,1.04,-0.04);highp vec4 r=roughness*c0+c1;highp float a004=min(r.x*r.x,exp2(-9.28*NdotV))*r.x+r.y;vec2 AB=vec2(-1.04,1.04)*a004+r.zw;return specularColor*AB.x+AB.y;}vec3 computeIndirectLightContribution(Material mat,float NdotV,vec3 normal)\n{vec3 env_light=vec3(0.65,0.65,0.65);\n#ifdef LIGHTING_3D_MODE\nfloat ambient_factor=calculate_ambient_directional_factor(normal);env_light=u_lighting_ambient_color*ambient_factor;\n#endif\nvec3 envBRDF=EnvBRDFApprox(mat.specularColor,mat.perceptualRoughness,NdotV);vec3 indirectSpecular= envBRDF*env_light;vec3 indirectDiffuse=mat.diffuseColor*env_light;return indirectSpecular+indirectDiffuse;}vec3 computeLightContribution(Material mat,vec3 lightPosition,vec3 lightColor)\n{highp vec3 n=mat.normal;highp vec3 v=normalize(-v_position_height.xyz);highp vec3 l=normalize(lightPosition);highp vec3 h=normalize(v+l);float NdotV=clamp(abs(dot(n,v)),0.001,1.0);float NdotL=saturate(dot(n,l));highp float NdotH=saturate(dot(n,h));float VdotH=saturate(dot(v,h));vec3 f=F_SchlickFast(mat.specularColor,VdotH);float g=V_GGXFast(NdotL,NdotV,mat.alphaRoughness);float d=D_GGX(NdotH,mat.alphaRoughness);vec3 diffuseTerm=(1.0-f)*diffuseLambertian(mat);vec3 specularTerm=f*g*d;vec3 transformed_normal=vec3(-n.xy,n.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=NdotL;\n#endif\nvec3 directLightColor=(specularTerm+diffuseTerm)*lighting_factor*light
2Color;vec3 indirectLightColor=computeIndirectLightContribution(mat,NdotV,transformed_normal);vec3 color=(saturate(directLightColor)+indirectLightColor);float intensityFactor=1.0;\n#if !defined(LIGHTING_3D_MODE)\nconst vec3 luminosityFactor=vec3(0.2126,0.7152,0.0722);float luminance=dot(diffuseTerm,luminosityFactor);intensityFactor=mix((1.0-u_lightintensity),max((1.0-luminance+u_lightintensity),1.0),NdotL);\n#endif\ncolor*=intensityFactor;return color;}void main() {\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nif (isOccluded()) {discard;}\n#endif\nvec3 lightDir=u_lightpos;vec3 lightColor=u_lightcolor;\n#ifdef LIGHTING_3D_MODE\nlightDir=u_lighting_directional_dir;lightDir.xy=-lightDir.xy;lightColor=u_lighting_directional_color;\n#endif\nvec4 finalColor;\n#ifdef DIFFUSE_SHADED\nvec3 N=getNormal();vec3 diffuse=getDiffuseShadedColor(getBaseColor().rgb,N,lightDir,lightColor);\n#ifdef HAS_TEXTURE_u_occlusionTexture\nfloat ao=(texture2D(u_occlusionTexture,uv_2f).r-1.0)*u_aoIntensity+1.0;diffuse*=ao;\n#endif\nfinalColor=vec4(diffuse,1.0)*u_opacity;\n#else\nMaterial mat=getPBRMaterial();vec3 color=computeLightContribution(mat,lightDir,lightColor);\n#if defined (HAS_TEXTURE_u_occlusionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nfloat ao=(texture2D(u_occlusionTexture,uv_2f).x-1.0)*u_aoIntensity+1.0;color*=ao;\n#endif\nvec4 emissive=u_emissiveFactor;\n#if defined(HAS_TEXTURE_u_emissionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nemissive.rgb*=sRGBToLinear(texture2D(u_emissionTexture,uv_2f).rgb);\n#endif\ncolor+=emissive.rgb;float opacity=mat.baseColor.w*u_opacity;\n#ifdef HAS_ATTRIBUTE_a_pbr\nfloat resEmission=v_roughness_metallic_emissive_alpha.z;resEmission*=v_height_based_emission_params.z+v_height_based_emission_params.w*pow(clamp(v_height_based_emission_params.x,0.0,1.0),v_height_based_emission_params.y);color=mix(color,v_color_mix.rgb,min(1.0,resEmission));\n#ifdef HAS_ATTRIBUTE_a_color_4f\nfloat distance=length(vec2(1.3*max(0.0,abs(color_4f.x)-color_4f.z),color_4f.
2y));distance+= mix(0.5,0.0,clamp(resEmission-1.0,0.0,1.0));opacity*=v_roughness_metallic_emissive_alpha.w*saturate(1.0-distance*distance);\n#endif\n#endif\ncolor=mix(color,mat.baseColor.rgb,u_emissive_strength);color=linearTosRGB(color);color*=opacity;finalColor=vec4(color,opacity);\n#endif\n#ifdef FOG\nfinalColor=fog_dither(fog_apply_premultiplied(finalColor,v_fog_pos,v_position_height.w));\n#endif\n#ifdef RENDER_CUTOFF\nfinalColor*=v_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\nfinalColor=applyCutout(finalColor);\n#endif\ngl_FragColor=finalColor;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nattribute vec3 a_pos_3f;\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute-vertex-shader-only highp vec4 pbr\n#pragma mapbox: define-attribute-vertex-shader-only highp vec3 heightBasedEmissiveStrength\nuniform mat4 u_matrix;uniform mat4 u_lighting_matrix;uniform vec3 u_camera_pos;uniform vec4 u_color_mix;\n#ifdef INSTANCED_ARRAYS\nattribute vec4 a_normal_matrix0;attribute vec4 a_normal_matrix1;attribute vec4 a_normal_matrix2;attribute vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_normal_matrix;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth_shadows;\n#endif\nvarying vec4 v_position_height;varying lowp vec4 v_color_mix;\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nvarying highp float v_depth;\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\nvarying lowp vec4 v_roughness_metallic_emissive_alpha;varying mediump vec4 v_height_based_emission_params;\n#endif\nvoid main() {\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute-custom highp vec4 pbr\n#pragma mapbox: initialize-attribute-custom highp vec3 heightBasedEmissiveStrength\nhighp mat4 normal_matrix;\n#ifdef INSTANCED_ARRAYS\nnormal_matrix=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\nnormal_matrix=u_normal_matrix;\n#endif\nvec3 local_pos;mat3 rs;\n#ifdef MODEL_POSITION_ON_GPU\nvec3 pos_color=normal_matrix[0].xyz;vec4 translate=normal_matrix[1];vec3 pos_a=floor(pos_color);vec3 rgb=1.05*(pos_color-pos_a);float color_mix=pos_a.z/100.0;v_color_mix=vec4(sRGBToLinear(rgb),color_mix);float meter_to_tile=normal_matrix[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);rs[0].x=normal_matrix[1].w;rs[0].yz=normal_matrix[2].xy;rs[1].xy=normal_matrix[2].zw;rs[1].z=normal_matrix[3].x;rs[2].xyz=normal_matrix[3].yzw;vec4 pos_node=u_lighting_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;local_pos=pos.xyz;gl_Position=u_matrix*pos;pos.z*=meter_to_tile;v_position_height.xyz=pos.xyz-u_camera_pos;\n#else\nlocal_pos=a_pos_3f;gl_Position=u_matrix*vec4(a_pos_3f,1);v_position_height.xyz=vec3(u_lighting_matrix*vec4(a_pos_3f,1));v_color_mix=vec4(sRGBToLinear(u_color_mix.rgb),u_color_mix.a);\n#endif\nv_position_height.w=a_pos_3f.z;\n#ifdef HAS_ATTRIBUTE_a_pbr\nvec4 albedo_c=decode_color(pbr.xy);vec2 e_r_m=unpack_float(pbr.z);vec2 r_m= unpack_float(e_r_m.y*16.0);r_m.r=r_m.r*16.0;v_color_mix=vec4(albedo_c.rgb,1.0);v_roughness_metallic_emissive_alpha=vec4(vec3(r_m,e_r_m.x)/255.0,albedo_c.a);v_roughness_metallic_emissive_alpha.z*=2.0;float heightBasedRelativeIntepolation=a_pos_3f.z*heightBasedEmissiveStrength.x+heightBasedEmissiveStrength.y;v_height_based_emission_params.x=heightBasedRelativeIntepolation;v_height_based_emission_params.y=heightBasedEmissiveStrength.z;vec2 emissionMultiplierValues=unpack_float(pbr.w)/256.0;v_height_based_emission_params.z=emissionMultiplierValues.x;v_height_based_emission_params.w=emissionMultiplierValues.y-emissionMultiplierValues.x;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(local_pos);\n#endif\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nfloat x_squared_scale=dot(rs[0],rs[0]);float y_squared_scale=dot(rs[1],rs[1]);float z_squared_scale=dot(rs[2],rs[2]);vec3 squared_scale=vec3(x_squared_scale,y_squared_scale,z_squared_scale);normal_3f=rs*((u_lighting_matrix*vec4(normal_3f,0.0)).xyz/squared_scale);normal_3f=normalize(normal_3f);
2\n#else\nnormal_3f=vec3(normal_matrix*vec4(normal_3f,0));\n#endif\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#ifdef HAS_ATTRIBUTE_a_color_4f\nv_roughness_metallic_emissive_alpha.w=clamp(color_4f.a*v_roughness_metallic_emissive_alpha.w*(v_roughness_metallic_emissive_alpha.z-1.0),0.0,1.0);\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 shadow_pos=local_pos;\n#ifdef NORMAL_OFFSET\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nvec3 offset=shadow_normal_offset(vec3(-normal_3f.xy,normal_3f.z));shadow_pos+=offset*shadow_normal_offset_multiplier0();\n#else\nvec3 offset=shadow_normal_offset_model(normalize(normal_3f));shadow_pos+=offset*shadow_normal_offset_multiplier0();\n#endif\n#endif\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shadow_pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(shadow_pos,1);v_depth_shadows=gl_Position.w;\n#endif\n}'),modelDepth:gS("varying highp float v_depth;void main() {\n#ifndef DEPTH_TEXTURE\ngl_FragColor=pack_depth(v_depth);\n#endif\n}","attribute vec3 a_pos_3f;uniform mat4 u_matrix;varying highp float v_depth;\n#ifdef MODEL_POSITION_ON_GPU\n#ifdef INSTANCED_ARRAYS\nattribute vec4 a_normal_matrix0;attribute vec4 a_normal_matrix1;attribute vec4 a_normal_matrix2;attribute vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_instance;\n#endif\nuniform highp mat4 u_node_matrix;\n#endif\nvoid main() {\n#ifdef MODEL_POSITION_ON_GPU\nhighp mat4 instance;\n#ifdef INSTANCED_ARRAYS\ninstance=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\ninstance=u_instance;\n#endif\nvec3 pos_color=instance[0].xyz;vec4 translate=instance[1];vec3 pos_a=floor(pos_color);float meter_to_tile=instance[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);mat3 rs;rs[0].x=instance[1].w;rs[0].yz=instance[2].xy;
2rs[1].xy=instance[2].zw;rs[1].z=instance[3].x;rs[2].xyz=instance[3].yzw;vec4 pos_node=u_node_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;gl_Position=u_matrix*pos;\n#else\ngl_Position=u_matrix*vec4(a_pos_3f,1);\n#endif\nv_depth=gl_Position.z/gl_Position.w;}"),stars:gS("varying highp vec2 v_uv;varying mediump float v_intensity;float shapeCircle(in vec2 uv)\n{float beginFade=0.6;float lengthFromCenter=length(v_uv);return 1.0-clamp((lengthFromCenter-beginFade)/(1.0-beginFade),0.0,1.0);}void main() {float alpha=shapeCircle(v_uv);vec3 color=vec3(1.0,1.0,1.0);alpha*=v_intensity;gl_FragColor=vec4(color*alpha,alpha);HANDLE_WIREFRAME_DEBUG;}","\nattribute vec3 a_pos_3f;attribute vec2 a_uv;attribute float a_size_scale;attribute float a_fade_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;varying highp vec2 v_uv;varying mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_fade_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}")};function mS(e,t){const r=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let e of r)if(e=e.trim(),"#"===e[0]&&e.includes("if")&&!e.includes("endif")){e=e.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const r=e.split(" ");for(const e of r)t.includes(e)||t.push(e)}}function gS(e,t){const r=/#include\s+"([^"]+)"/g,i=/#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g;let n=t.match(/attribute(\S*) (highp |mediump |lowp )?([\w]+) ([\w]+)/g);n&&(n=n.filter(((e,t)=>n.indexOf(e)===t)));const s={},o=[],a=[];e=e.replace(r,((e,t)=>
2(a.push(t),""))),t=t.replace(r,((e,t)=>(o.push(t),"")));let l=[...cS];mS(e,l),mS(t,l);for(const e of[...o,...a])uS[e]||console.error(`Undefined include: ${e}`),hS[e]||(hS[e]=[],mS(uS[e],hS[e])),l=[...l,...hS[e]];return{fragmentSource:e=e.replace(i,((e,t,r,i,n)=>(s[n]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${n}\nvarying ${r} ${i} ${n};\n#else\nuniform ${r} ${i} u_${n};\n#endif\n`:"initialize"===t?`\n#ifdef HAS_UNIFORM_u_${n}\n ${r} ${i} ${n} = u_${n};\n#endif\n`:"define-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${n}\n varying ${r} ${i} ${n};\n#endif\n`:"initialize-attribute"===t?"":void 0))),vertexSource:t=t.replace(i,((e,t,r,i,n)=>{const o="float"===i?"vec2":i,a=n.match(/color/)?"color":o;return"define-attribute-vertex-shader-only"===t?`\n#ifdef HAS_ATTRIBUTE_a_${n}\nattribute ${r} ${i} a_${n};\n#endif\n`:s[n]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${n}\nuniform lowp float u_${n}_t;\nattribute ${r} ${o} a_${n};\nvarying ${r} ${i} ${n};\n#else\nuniform ${r} ${i} u_${n};\n#endif\n`:"initialize"===t?"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${n}\n ${n} = a_${n};\n#else\n ${r} ${i} ${n} = u_${n};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${n}\n ${n} = unpack_mix_${a}(a_${n}, u_${n}_t);\n#else\n ${r} ${i} ${n} = u_${n};\n#endif\n`:"define-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${n}\n attribute ${r} ${i} a_${n};\n varying ${r} ${i} ${n};\n#endif\n`:"initialize-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${n}\n ${n} = a_${n};\n#endif\n`:void 0:"define"===t?`\n#ifndef HAS_UNIFORM_u_${n}\nuniform lowp float u_${n}_t;\nattribute ${r} ${o} a_${n};\n#else\nuniform ${r} ${i} u_${n};\n#endif\n`:"define-instanced"===t?"mat4"===a?`\n#ifdef INSTANCED_ARRAYS\nattribute vec4 a_${n}0;\nattribute vec4 a_${n}1;\nattribute vec4 a_${n}2;\nattribute vec4 a_${n}3;\n#else\nuniform ${r} ${i} u_${n};\n#endif\n`:`\n#ifdef INSTANCED_ARRAYS\nattribute ${r} ${o} a_${n};\n#else\nuniform ${r} ${i} u_${n};\n#endif\n`:"initialize-attribute-custom"===t?`\n#ifdef HAS_ATTRIBUTE_a_${n}\n ${r} ${i} ${n} = a_${n};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${n}\n ${r} ${i} ${n} = a_${n};\n#else\n ${r} ${i} ${n} = u_${n};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${n}\n ${r} ${i} ${n} = unpack_mix_${a}(a_${n}, u_${n}_t);\n#else\n ${r} ${i} ${n} = u_${n};\n#endif\n`})),staticAttributes:n,usedDefines:l,vertexIncludes:o,fragmentIncludes:a}}class yS{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,r,i,n,s,o,a){this.context=e;let l=this.boundPaintVertexBuffers.length!==i.length;for(let e=0;!l&&e<i.length;e++)this.boundPaintVertexBuffers[e]!==i[e]&&(l=!0);let c=this.boundDynamicVertexBuffers.length!==o.length;for(let e=0;!c&&e<o.length;e++)this.boundDynamicVertexBuffers[e]!==o[e]&&(c=!0);if(!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==r||l||c||this.boundIndexBuffer!==n||this.boundVertexOffset!==s)this.freshBind(t,r,i,n,s,o,a);else{e.bindVertexArrayOES.set(this.vao);for(const r of o)r&&(r.bind(),a&&r.instanceCount&&r.setVertexAttribDivisor(e.gl,t,a));n&&n.dynamicDraw&&n.bind()}}freshBind(e,t,r,i,n,s,o){const a=e.numAttributes,l=this.context,c=l.gl;this.vao&&this.destroy(),this.vao=l.gl.createVertexArray(),l.bindVertexArrayOES.set(this.vao),this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=i,this.boundVertexOffset=n,this.boundDynamicVertexBuffers=s,t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,n);for(const t of r)t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,n);for(const t of s)t&&(t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,n),o&&t.instanceCount&&t.setVertexAttribDivisor(c,e,o));i&&i.bind(),l.currentNumAttributes=a}destroy(){this.vao&&(this.context.gl.deleteVertexArray(this.vao),this.vao=null)}}function vS(e,t){const r=Math.pow(2,t.canonical.z),i=t.canonical.y;return[new Up(0,i/r).toLngLat().lat,new Up(0,(i+1)/r).toLngLat().lat]}function _S(e,t,r,i,n,s,o){const a=e.context,l=a.gl,c=r.hillshadeFBO;if(!c)return;e.prepareDrawTile();const u=e.isTileAffectedByFog(t),h=e.getOrCreateProgram("hillshade",{overrideFog:u});a.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());const d=((e,t,r,i)=>{const n=r.paint.get("hillshade-shadow-color"),s=r.paint.get("hillshade-highlight-color"),o=r.paint.get("hillshade-accent-color"),a=r.paint.get("hillshade-emissive-strength");let l=w(r.paint.get("hillshade-illumination-direction"));if("viewport"===r.paint.get("hillshade-illumination-anchor"))l-=e.transform.angle;else if(e.style&&e.style.enable3dLights()&&e.style.directionalLight){const t=e.style.directionalLight.properties.get("direction");l=w(J(t.x,t.y,t.z)[1])}const c=!e.options.moving;return{u_matrix:i||e.transform.calculateProjMatrix(t.tileID.toUnwrapped(),c),u_image:0,u_latrange:vS(0,t.tileID),u_light:[r.paint.get("hillshade-exaggeration"),l],u_shadow:n,u_highlight:s,u_emissive_strength:a,u_accent:o}})(e,r,i,e.terrain?t.projMatrix:null);e.uploadCommonUniforms(a,h,t.toUnwrapped());const{tileBoundsBuffer:p,tileBoundsIndexBuffer:f,tileBoundsSegments:m}=e.getTileBoundsBuffers(r);h.draw(e,l.TRIANGLES,n,s,o,nb.disabled,d,i.id,p,f,m)}function bS(e,t,r){if(!t.needsDEMTextureUpload)return;const i=e.context,n=i.gl;i.pixelStoreUnpackPremultiplyAlpha.set(!1),t.demTexture=t.demTexture||e.getTileTexture(r.stride);const s=r.getPixels();t.demTexture?t.demTexture.update(s,{premultiply:!1}):t.demTexture=new Kv(i,s,e.terrainUseFloatDEM()?n.R32F:n.RGBA,{premultiply:!1}),t.needsDEMTextureUpload=!1}function xS(e,t,r){const i=e.context,n=i.gl;if(!t.dem)return;const s=t.dem;if(i.activeTexture.set(n.TEXTURE1),bS(e,t,s),!t.demTexture)return;t.demTexture.bind(n.NEAREST,n.CLAMP_TO_EDGE);const o=s.dim;i.activeTexture.set(n.TEXTURE0);let a=t.hillshadeFBO;if(!a){const e=new Kv(i,{width:o,height:o,data:null},n.RGBA);e.bind(n.LINEAR,n.CLAMP_TO_EDGE),a=t.hillshadeFBO=i.createFramebuffer(o,o,!0,"renderbuffer"),a.colorAttachment.set(e.texture)}i.bindFramebuffer.set(a.framebuffer),i.viewport.set([0,0,o,o]);const{tileBoundsBuffer:l,tileBoundsIndexBuffer:c,tileBoundsSegments:u}=e.getMercatorTileBoundsBuffers(),h=[];e.terrainUseFloatDEM()&&h.push("TERRAIN_DEM_FLOAT_FORMAT"),e.getOrCreateProgram("hillshadePrepare",{defines:h}).draw(e,n.TRIANGLES,K_.disabled,$_.disabled,tb.unblended,nb.disabled,((e,t)=>{const r=t.stride,i=hd.create();return hd.ortho(i,0,oi,-oi,0,0,1),hd.translate(i,i,[0,-oi,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.unpackVector}}
2)(t.tileID,s),r.id,l,c,u),t.needsHillshadePrepare=!1}const wS=e=>({u_matrix:new Cc(e),u_image0:new bc(e),u_skirt_height:new xc(e),u_ground_shadow_factor:new Ac(e)}),AS=(e,t,r)=>({u_matrix:e,u_image0:0,u_skirt_height:t,u_ground_shadow_factor:r}),ES=(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(i),u_merc_matrix:r,u_zoom_transition:n,u_merc_center:s,u_image0:0,u_frustum_tl:o,u_frustum_tr:a,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:u,u_globe_radius:h,u_viewport:d,u_grid_matrix:f?Float32Array.from(f):new Float32Array(9),u_skirt_height:p}),SS=(e,t)=>{if(t>0&&e.terrain&&Q("Cutoff is currently disabled on terrain"),t<=0||e.terrain)return{shouldRenderCutoff:!1,uniformValues:{u_cutoff_params:[0,0,0,0]}};const r=e.transform,i=Math.max(Math.abs(r._zoom-(e.minCutoffZoom-1)),1),n=r.isLODDisabled(!1)?k(60,45,r.pitch):k(30,15,r.pitch),s=r._farZ-r._nearZ,o=t*r.height,a=((1-(l=n))*(.75*r.cameraToCenterDistance)+l*(r._farZ+o))*i;var l;return{shouldRenderCutoff:n<1,uniformValues:{u_cutoff_params:[r._nearZ,r._farZ,(a-r._nearZ)/s,(a-o-r._nearZ)/s]}}};function TS(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const CS=new class{constructor(){this.operations={}}newMorphing(e,t,r,i,n){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==r.tileID.key&&(t.queued=r)}else this.operations[e]={startTime:i,phase:0,duration:n,from:t,to:r,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const r=this.operations[t];for(r.phase=(e-r.startTime)/r.duration;r.phase>=1||!this._validOp(r);)if(!this._nextOp(r,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},IS={0:null,1:"TERRAIN_VERTEX_MORPHING"};function PS(e,t,r){if(0===t)return 0;const i=t<1&&514===r?.25/t:1;return 6*Math.pow(1.5,22-e)*Math.max(t,1)*i}function MS(e,t){const r=1<<e.z;return!t&&(0===e.x||e.x===r-1)||0===e.y||e.y===r-1}const kS=e=>({u_matrix:e});function OS(e,t,r,i,n){if(n>0){const s=ut.now(),o=(s-e.timeAdded)/n,a=t?(s-t.timeAdded)/n:-1,l=r.getSource(),c=i.coveringZoomLevel({tileSize:l.tileSize,roundZoom:l.roundZoom}),u=!t||Math.abs(t.tileID.overscaledZ-c)>Math.abs(e.tileID.overscaledZ-c),h=u&&e.refreshedUponExpiration?1:M(u?o:1-a,0,1);return e.refreshedUponExpiration&&o>=1&&(e.refreshedUponExpiration=!1),t?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}class RS extends ob{constructor(e){const t={type:"raster-dem",maxzoom:e.transform.maxZoom},r=new Xw(_A(),null),i=$A("mock-dem",t,r,e.style);super("mock-dem",i,!1),i.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class DS extends ob{constructor(e){const t=$A("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new Xw(_A(),null),e.style);super("proxy",t,!1),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(e,t,r){if(e.freezeTileCoverage)return;this.transform=e;const i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce(((t,r)=>{if(t[r.key]="",!this._tiles[r.key]){const t=new l_(r,this._source.tileSize*r.overscaleFactor(),e.tileZoom);t.state="loaded",this._tiles[r.key]=t}return t}),{});for(const e in this._tiles)e in i||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const r=Object.values(t);this.renderCachePool.push(...r),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach((e=>e.fb.destroy())),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class LS extends Pd{constructor(e,t,r){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=r}}class BS extends Mg{constructor(e,t){super(),this.painter=e,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[r,i,n]=function(){const e=new ml,t=new Rl,r=131;
2e.reserve(17161),t.reserve(33800);const i=64,n=8224;for(let t=-i;t<8288;t+=i)for(let r=-i;r<8288;r+=i){const i=r<0||r>n||t<0||t>n?24575:0,s=M(Math.round(r),0,oi),o=M(Math.round(t),0,oi);e.emplaceBack(s+i,o)}const s=(e,i)=>{const n=i*r+e;t.emplaceBack(n+1,n,n+r),t.emplaceBack(n+r,n+r+1,n+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)s(t,e);return[0,129].forEach((e=>{for(let t=0;t<130;t++)s(t,e),s(e,t)})),[e,t,32768]}(),s=e.context;this.gridBuffer=s.createVertexBuffer(r,Ed.members),this.gridIndexBuffer=s.createIndexBuffer(i),this.gridSegments=nc.simpleSegment(0,0,r.length,i.length),this.gridNoSkirtSegments=nc.simpleSegment(0,0,r.length,n),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new DS(t.map),this.orthoMatrix=hd.create(),hd.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,oi,0,oi,0,1);const o=s.gl;this._overlapStencilMode=new $_({func:o.GEQUAL,mask:255},0,255,o.KEEP,o.KEEP,o.REPLACE),this._previousZoom=e.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=t,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new RS(t.map),this._pendingGroundEffectLayers=[]}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),this._style=e,this._style.map.on("moveend",(()=>{this._clearLineLayersFromRenderCache()}))}update(e,t,r){if(e&&e.terrain){this._style!==e&&(this.style=e,this._evaluationZoom=void 0);const i=e.terrain.properties,n=0===e.terrain.drapeRenderMode,s=e.terrain.isZoomDependent();this._previousUpdateTimestamp=this.enabled?this._updateTimestamp:void 0,this._updateTimestamp=ut.now();const o=e.terrain&&e.terrain.scope,a=i.get("source"),l=n?this._mockSourceCache:e.getSourceCache(a,o);if(!l)return void Q(`Couldn't find terrain source "${a}".`);if(this.sourceCache=l,this._exaggeration=s?this.calculateExaggeration(t):i.get("exaggeration"),!t.projection.requiresDraping&&s&&0===this._exaggeration)return void this._disable();this.enabled=!0;const c=()=>{this.sourceCache.used&&Q(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const e=this.getScaledDemTileSize();this.sourceCache.update(t,e,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,c(),this._initializing=!0),c(),t.updateElevation(!0,r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(t),this._emptyDEMTextureDirty=!0,this._previousZoom=t.zoom}else this._disable()}calculateExaggeration(e){const t=this._previousCameraAltitude,r=e.getFreeCameraOptions().position.z/e.pixelsPerMeter*e.worldSize;this._previousCameraAltitude=r;const i=null!=t?r-t:Number.MAX_VALUE;if(Math.abs(i)<2)return this._exaggeration;const n=e.zoom,s=this._style.terrain;if(!this._previousUpdateTimestamp)return s.getExaggeration(n);let o=n-this._previousZoom;const a=this._previousUpdateTimestamp;let l=n;null!=this._evaluationZoom&&(l=this._evaluationZoom,Math.abs(n-l)>.5&&(o=.5*(n-l+o)),o*i<0&&(l+=o)),this._evaluationZoom=l;const c=s.getExaggeration(l),u=c===s.getExaggeration(Math.max(0,l-.1));if(u&&Math.abs(c-this._exaggeration)<.01)return c;let h=Math.min(.1,.00375*(this._updateTimestamp-a));return(u||c<.1||Math.abs(o)<1e-4)&&(h=Math.min(.2,4*h)),Wi(this._exaggeration,c,h)}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this.invalidateRenderCache=!0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this._previousCameraAltitude=void 0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._mergedSourceCaches)this._style._mergedSourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach((e=>e.fb.destroy())),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),this.framebufferCopyTexture&&this.framebufferCopyTexture.destroy()}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(e){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const t=this.proxySourceCache,r=this.painter.transform;this._initializing&&(this._initializing=0===r._centerAltitude&&-1===this.getAtPointOrZero(Up.fromLngLat(r.center),-1),this._emptyDEMTextureDirty=!this._initializing);const i=this.proxyCoords=t.getIds().map((e=>{const i=t.getTileByID(e).tileID;return i.projMatrix=r.calculateProjMatrix(i.toUnwrapped()),i}));!function(e,t){const r=t.transform.pointCoordinate(t.transform.getCameraPoint()),i=new v(r.x,r.y);e.sort(((e,t)=>
2{if(t.overscaledZ-e.overscaledZ)return t.overscaledZ-e.overscaledZ;const r=new v(e.canonical.x+(1<<e.canonical.z)*e.wrap,e.canonical.y),n=new v(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),s=i.mult(1<<e.canonical.z);return s.x-=.5,s.y-=.5,s.distSqr(r)-s.distSqr(n)}))}(i,this.painter);const n=this.proxyToSource||{};this.proxyToSource={},i.forEach((e=>{this.proxyToSource[e.key]={}})),this.terrainTileForTile={};const s=this._style._mergedSourceCaches;for(const t in s){const r=s[t];if(!r.used)continue;if(r!==this.sourceCache&&this.resetTileLookupCache(r.id),this._setupProxiedCoordsForOrtho(r,e[t],n),r.usedForTerrain)continue;const i=e[t];r.getSource().reparseOverscaled&&this._assignTerrainTiles(i)}this.proxiedCoords[t.id]=i.map((e=>new LS(e,e.key,this.orthoMatrix))),this._assignTerrainTiles(i),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(n),this.renderingToTexture=!1;const o={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const r=t.tileID.key;r in o||(this._visibleDemTiles.push(t),o[r]=r)}}_assignTerrainTiles(e){this._initializing||e.forEach((e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)}))}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const r in this.terrainTileForTile){const i=this.terrainTileForTile[r],n=i.dem;!n||i.demTexture&&!i.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),bS(this.painter,i,n))}}_prepareDemTileUniforms(e,t,r,i){if(!t||null==t.demTexture)return!1;const n=e.tileID.canonical,s=Math.pow(2,t.tileID.canonical.z-n.z),o=i||"";return r[`u_dem_tl${o}`]=[n.x*s%1,n.y*s%1],r[`u_dem_scale${o}`]=s,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const e=this.painter.context,t=e.gl;if(!this._emptyDepthBufferTexture){const r=new Df({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new Kv(e,r,t.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let e=0;const t=this._visibleDemTiles.reduce(((t,r)=>{if(!r.dem)return t;const i=r.dem.tree.minimums[0];return i>0&&e++,t+i}),0);return e?t/e:0}_updateEmptyDEMTexture(){const e=this.painter.context,t=e.gl;e.activeTexture.set(t.TEXTURE2);const r=this._getLoadedAreaMinimum(),[i,n]=(()=>{if(this.painter.terrainUseFloatDEM()){const e=new Lf({width:1,height:1},new Float32Array([r]));return[t.R32F,e]}{const e=new Df({width:1,height:1},new Uint8Array(Pg.pack(r,this.sourceCache.getSource().encoding)));return[t.RGBA,e]}})();this._emptyDEMTextureDirty=!1;let s=this._emptyDEMTexture;return s?s.update(n,{premultiply:!1}):s=this._emptyDEMTexture=new Kv(e,n,i,{premultiply:!1}),s}setupElevationDraw(e,t,r){const i=this.painter.context,n=i.gl,s=(o=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:Pg.getUnpackVector(o),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var o;s.u_exaggeration=this.exaggeration();let a=null,l=null,c=1;if(r&&r.morphing&&this._useVertexMorphing){const t=r.morphing.srcDemTile,i=r.morphing.dstDemTile;c=r.morphing.phase,t&&i&&(this._prepareDemTileUniforms(e,t,s,"_prev")&&(l=t),this._prepareDemTileUniforms(e,i,s)&&(a=i))}const u=e=>e&&e.demTexture&&this.painter.terrainUseFloatDEM()?n.LINEAR:n.NEAREST,h=e=>{s.u_dem_size=1===e.size[0]?1:e.size[0]-2};if(l&&a)i.activeTexture.set(n.TEXTURE2),a.demTexture.bind(u(a),n.CLAMP_TO_EDGE),i.activeTexture.set(n.TEXTURE4),l.demTexture.bind(u(l),n.CLAMP_TO_EDGE),a.demTexture&&h(a.demTexture),s.u_dem_lerp=c;else{a=this.terrainTileForTile[e.tileID.key],i.activeTexture.set(n.TEXTURE2);const t=this._prepareDemTileUniforms(e,a,s)?a.demTexture:this.emptyDEMTexture;t.bind(u(a),n.CLAMP_TO_EDGE),h(t)}if(i.activeTexture.set(n.TEXTURE3),r&&r.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(n.NEAREST,n.CLAMP_TO_EDGE),this._depthFBO&&(s.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.empty
vendor: 6,876 bytes, line 2
2DepthBufferTexture.bind(n.NEAREST,n.CLAMP_TO_EDGE),s.u_depth_size_inv=[1,1]),r&&r.useMeterToDem&&a){const e=(1<<a.tileID.canonical.z)*Op(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;s.u_meter_to_dem=e}if(r&&r.labelPlaneMatrixInv&&(s.u_label_plane_matrix_inv=r.labelPlaneMatrixInv),t.setTerrainUniformValues(i,s),"globe"===this.painter.transform.projection.name){const n=this.globeUniformValues(this.painter.transform,e.tileID.canonical,r&&r.useDenormalizedUpVectorScale);t.setGlobeUniformValues(i,n)}}globeUniformValues(e,t,r){const i=e.projection;return{u_tile_tl_up:i.upVector(t,0,0),u_tile_tr_up:i.upVector(t,oi,0),u_tile_br_up:i.upVector(t,oi,oi),u_tile_bl_up:i.upVector(t,0,oi),u_tile_up_scale:r?Wd(1):i.upVectorScale(t,e.center.lat,e.worldSize).metersToTile}}renderToBackBuffer(e){const t=this.painter,r=this.painter.context;0!==e.length&&(r.bindFramebuffer.set(null),r.viewport.set([0,0,t.width,t.height]),t.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(e,t,r,i,n){if("globe"===e.transform.projection.name)!function(e,t,r,i,n){const s=e.context,o=s.gl;let a,l;const c=e.transform,u=mp(e,s,c),h=(t,r)=>{if(l===r)return;const i=[IS[r],"PROJECTION_GLOBE_VIEW"];u&&i.push("CUSTOM_ANTIALIASING");const n=e.isTileAffectedByFog(t);a=e.getOrCreateProgram("globeRaster",{defines:i,overrideFog:n}),l=r},d=e.colorModeForRenderPass(),p=new K_(o.LEQUAL,K_.ReadWrite,e.depthRangeFor3D);CS.update(n);const f=function(e){const t=e.pixelsPerMeter,r=t/Op(1,e.center.lat),i=hd.identity(new Float64Array(16));return hd.translate(i,i,[e.point.x,e.point.y,0]),hd.scale(i,i,[r,r,t]),Float32Array.from(i)}(c),m=[Mp(c.center.lng),kp(c.center.lat)],g=e.globeSharedBuffers,y=[c.width*ut.devicePixelRatio,c.height*ut.devicePixelRatio],v=Float32Array.from(c.globeMatrix),_={useDenormalizedUpVectorScale:!0};{const c=e.transform,u=PS(c.zoom,t.exaggeration(),t.sourceCache._source.tileSize);l=-1;const b=o.TRIANGLES;for(const l of i){const i=r.getTile(l),x=$_.disabled,w=t.prevTerrainTileForTile[l.key],A=t.terrainTileForTile[l.key];TS(w,A)&&CS.newMorphing(l.key,w,A,n,250),s.activeTexture.set(o.TEXTURE0),i.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE);const E=CS.getMorphValuesForProxy(l.key),T=E?1:0;E&&Ot(_,{morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:S(E.phase)}});const C=tp(l.canonical),I=yp(C.getCenter().lat),P=gp(l.canonical,C,I,c.worldSize/c._pixelsPerMercatorPixel),M=lp(Xd(l.canonical)),k=ES(c.projMatrix,v,f,M,pp(c.zoom),m,c.frustumCorners.TL,c.frustumCorners.TR,c.frustumCorners.BR,c.frustumCorners.BL,c.globeCenterInViewSpace,c.globeRadius,y,u,P);if(h(l,T),a&&(t.setupElevationDraw(i,a,_),e.uploadCommonUniforms(s,a,l.toUnwrapped()),g)){const[t,r,i]=g.getGridBuffers(I,0!==u);a.draw(e,b,p,x,d,nb.backCCW,k,"globe_raster",t,r,i)}}}if(g&&(e.renderDefaultNorthPole||e.renderDefaultSouthPole)){const n=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];u&&n.push("CUSTOM_ANTIALIASING"),a=e.getOrCreateProgram("globeRaster",{defines:n});for(const n of i){const{x:i,y:l,z:u}=n.canonical,h=0===l,f=l===(1<<u)-1,[v,b,x,w]=g.getPoleBuffers(u,!1);if(w&&(h||f)){const l=r.getTile(n);s.activeTexture.set(o.TEXTURE0),l.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE);let g=fp(u,i,c);const A=lp(Xd(n.canonical)),E=(t,r)=>t.draw(e,o.TRIANGLES,p,$_.disabled,d,nb.disabled,ES(c.projMatrix,g,g,A,0,m,c.frustumCorners.TL,c.frustumCorners.TR,c.frustumCorners.BR,c.frustumCorners.BL,c.globeCenterInViewSpace,c.globeRadius,y,0),"globe_pole_raster",r,x,w);t.setupElevationDraw(l,a,_),e.uploadCommonUniforms(s,a,n.toUnwrapped()),h&&e.renderDefaultNorthPole&&E(a,v),f&&e.renderDefaultSouthPole&&(g=hd.scale(hd.create(),g,[1,-1,1]),E(a,b))}}}}(e,t,r,i,n);else{const s=e.context,o=s.gl;let a,l;const c=e.shadowRenderer,u=SS(e,e.longestCutoffRange),h=t=>{if(l===t)return;const r=[];r.push(IS[t]),u.shouldRenderCutoff&&r.push("RENDER_CUTOFF"),a=e.getOrCreateProgram("terrainRaster",{defines:r}),l=t},d=e.colorModeForRenderPass(),p=new K_(o.LEQUAL,K_.ReadWrite,e.depthRangeFor3D);CS.update(n);const f=e.transform,m=PS(f.zoom,t.exaggeration(),t.sourceCache._source.tileSize);let g=[0,0,0];if(c){const t=e.style.directionalLight,r=e.style.ambientLight;t&&r&&(g=xC(t,r))}{l=-1;const y=o.TRIANGLES,[v,_]=[t.gridIndexBuffer,t.gridSegments];for(const l of i){const i=r.getTile(l),b=$_.disabled,x=t.prevTerrainTileForTile[l.key],w=t.terrainTileForTile[l.key];TS(x,w)&&CS.newMorphing(l.key,x,w,n,250),s.activeTexture.set(o.TEXTURE0),i.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);const A=CS.getMorphValuesForProxy(l.key),E=A?1:0;let T;A&&(T={morphing:{srcDemTile:A.from,dstDemTile:A.to,phase:S(A.phase)}});const C=AS(l.projMatrix,MS(l.canonical,f.renderWorldCopies)?m/10:m,g);if(h(E),!a)continue;t.setupElevationDraw(i,a,T);const I=l.toUnwrapped();c&&c.setupShadows(I,a),e.uploadCommonUniforms(s,a,I,null,u),a.draw(e,y,p,b,d,nb.backCCW,C,"terrain_raster",t.gridBuffer,v,_)}}}}(t,this,this.proxySourceCache,e,this._updateTimestamp),this.renderingToTexture=!0,t.gpuTimingDeferredRenderEnd(),e.splice(0,e.length))}renderBatch(e){if(0===this._drapedRenderBatches.length)return e+1;this.renderingToTexture=!0;const t=this.painter,r=this.painter.context,i=this.proxySourceCache,n=this.proxiedCoords[i.id],s=this._drapedRenderBatches.shift(),o=t.style.order,a=[];let l=0;for(const c of n){const n=i.getTileByID(c.proxyTileKey),u=i.proxyCachedFBO[c.key]?i.proxyCachedFBO[c.key][e]:void 0,h=void 0!==u?i.renderCache[u]:this.pool[l++],d=void 0!==u;if(n.texture=h.tex,d&&!h.dirty){a.push(n.tileID);continue}let p;r.bindFramebuffer.set(h.fb.framebuffer),this.renderedToTile=!1,h.dirty&&(r.clear({color:lr.transparent,stencil:0}),h.dirty=!1);for(let e=s.start;e<=s.end;++e){const i=t.style._mergedLayers[o[e]];if(i.isHidden(t.transform.zoom))continue;const n=t.style.getLayerSourceCache(i),s=n?this.proxyToSource[c.key][n.id]:[c];if(!s)continue;const a=s;r.viewport.set([0,0,h.fb.width,h.fb.height]),p!==(n?n.id:null)&&(this._setupStencil(h,s,i,n),p=n?n.id:null),t.renderLayer(t,n,i,a)}if(0===this._drapedRenderBatches.length)for(const e of this._pendingGroundEffectLayers){const i=t.style._mergedLayers[o[e]];if(i.isHidden(t.transform.zoom))continue;const n=t.style.getLayerSourceCache(i),s=n?this.proxyToSource[c.key][n.id]:[c];if(!s)continue;const a=s;r.viewport.set([0,0,h.fb.width,h.fb.height]),p!==(n?n.id:null)&&(this._setupStencil(h,s,i,n),p=n?n.id:null),t.renderLayer(t,n,i,a)}this.renderedToTile?(h.dirty=!0,a.push(n.tileID)):d||--l,5===l&&(l=0,this.renderToBackBuffer(a))}return this.renderToBackBuffer(a),this.renderingToTexture=!1,r.bindFramebuffer.set(null),r.viewport.set([0,0,t.width,t.height]),s.end+1}postRender(){}isLayerOrderingCorrect(e){const t=e.order.length;let r=-1,i=t;for(let n=0;n<t;++n)this._style.isLayerDraped(e._mergedLayers[e.order[n]])?r=Math.max(r,n):i=Math.min(i,n);return i>r}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter((e=>
2e.dem)).forEach((t=>{e=Math.min(e,t.dem.tree.minimums[0])})),0===e?e:(e-30)*this._exaggeration}raycast(e,t,r){if(!this._visibleDemTiles)return null;const i=this._visibleDemTiles.filter((e=>e.dem)).map((i=>{const n=i.tileID,s=1<<n.overscaledZ,{x:o,y:a}=n.canonical,l=o/s,c=(o+1)/s,u=a/s,h=(a+1)/s;return{minx:l,miny:u,maxx:c,maxy:h,t:i.dem.tree.raycastRoot(l,u,c,h,e,t,r),tile:i}}));i.sort(((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE)));for(const n of i){if(null==n.t)return null;const i=n.tile.dem.tree.raycast(n.minx,n.miny,n.maxx,n.maxy,e,t,r);if(null!=i)return i}return null}_createFBO(){const e=this.painter.context,t=e.gl,r=this.drapeBufferSize;e.activeTexture.set(t.TEXTURE0);const i=new Kv(e,{width:r[0],height:r[1],data:null},t.RGBA);i.bind(t.LINEAR,t.CLAMP_TO_EDGE);const n=e.createFramebuffer(r[0],r[1],!0,null);return n.colorAttachment.set(i.texture),n.depthAttachment=new Z_(e,n.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=e.createRenderbuffer(e.gl.DEPTH_STENCIL,r[0],r[1]),this._stencilRef=0,n.depthAttachment.set(this._sharedDepthStencil),e.clear({stencil:0})):n.depthAttachment.set(this._sharedDepthStencil),e.extTextureFilterAnisotropic&&!e.extTextureFilterAnisotropicForceOff&&t.texParameterf(t.TEXTURE_2D,e.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.extTextureFilterAnisotropicMax),{fb:n,tex:i,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.hasLightTransitions())return!0;for(const e in this._style._mergedSourceCaches)if(this._style._mergedSourceCaches[e].hasTransition())return!0;return this._style.order.some((e=>{const t=this._style._mergedLayers[e],r=t.isHidden(this.painter.transform.zoom);return"custom"===t.type?!r&&t.shouldRedrape():!r&&t.hasTransition()}))}_clearLineLayersFromRenderCache(){let e=!1;for(const t of this._style.getSources())if(t instanceof dA){e=!0;break}if(!e)return;const t={};for(let e=0;e<this._style.order.length;++e){const r=this._style._mergedLayers[this._style.order[e]],i=this._style.getLayerSourceCache(r);if(i&&!t[i.id]&&!r.isHidden(this.painter.transform.zoom)&&"line"===r.type&&r.widthExpression()instanceof vs){t[i.id]=!0;for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][i.id];if(t)for(const e of t)this._clearRenderCacheForTile(i.id,e)}}}}_clearRasterLayersFromRenderCache(){let e=!1;for(const t in this._style._mergedSourceCaches)if(this._style._mergedSourceCaches[t]._source instanceof pA){e=!0;break}if(!e)return;const t={};for(let e=0;e<this._style.order.length;++e){const r=this._style._mergedLayers[this._style.order[e]],i=this._style.getLayerSourceCache(r);if(!i||t[i.id])continue;if(r.isHidden(this.painter.transform.zoom)||"raster"!==r.type)continue;const n=r.paint.get("raster-fade-duration");for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][i.id];if(t)for(const e of t){const t=OS(i.getTile(e),i.findLoadedParent(e,0),i,this.painter.transform,n);(1!==t.opacity||0!==t.mix)&&this._clearRenderCacheForTile(i.id,e)}}}}_setupDrapedRenderBatches(){const e=this._style.order,t=e.length;if(0===t)return;const r=[];this._pendingGroundEffectLayers=[];let i,n=0,s=this._style._mergedLayers[e[n]];for(;!this._style.isLayerDraped(s)&&s.isHidden(this.painter.transform.zoom)&&++n<t;)s=this._style._mergedLayers[e[n]];for(;n<t;++n){const t=this._style._mergedLayers[e[n]];t.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(t)?void 0===i&&(i=n):("fill-extrusion"===t.type&&this._pendingGroundEffectLayers.push(n),void 0!==i&&(r.push({start:i,end:n-1}),i=void 0)))}if(void 0!==i&&r.push({start:i,end:n-1}),0!==r.length){const e=r[r.length-1];this._pendingGroundEffectLayers.every((t=>t>e.end))||Q("fill-extrusion with flood lighting and/or ground ambient occlusion should be moved to be on top of all draped layers.")}this._drapedRenderBatches=r}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this.invalidateRenderCache){if(this.invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let r=0;r<e.length;++r){const i=Object.values(e[r]);t.renderCachePool.push(...i)}}return}this._clearRasterLayersFromRenderCache();const r=this.proxyCoords,i=this._tilesDirty;for(let n=r.length-1;n>=0;n--){const s=r[n];if(t.getTileByID(s.key),void 0!==t.proxyCachedFBO[s.key]){const r=e[s.key],n=this.proxyToSource[s.key];let o=0;for(const e in n){const t=n[e],s=r[e];if(!s||s.length!==t.length||t.some(((t,r)=>t!==s[r]||i[e]&&i[e].hasOwnProperty(t.key)))){o=-1;break}++o}for(const e in t.proxyCachedFBO[s.key])t.renderCache[t.proxyCachedFBO[s.key][e]].dirty=o<0||o!==Object.values(r).length}}const n=[...this._drapedRenderBatches];n.sort(((e,t)=>t.end-t.start-(e.end-e.start)));for(const e of n)for(const i of r){if(t.proxyCachedFBO[i.key])continue;let r=t.renderCachePool.pop();void 0===r&&t.renderCache.length<50&&(r=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==r&&(t.proxyCachedFBO[i.key]={},t.proxyCachedFBO[i.key][e.start]=r,t.renderCache[r].dirty=!0)}this._tilesDirty={}}
vendor: 5,218 bytes, line 2
2_setupStencil(e,t,r,i){if(!i||!this._sourceTilesOverlap[i.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const n=this.painter.context,s=n.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let o;if(r.isTileClipped())o=t.length,this._overlapStencilMode.test={func:s.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);o=1,this._overlapStencilMode.test={func:s.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+o>255&&(n.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=o,this._overlapStencilMode.ref=this._stencilRef,r.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(e){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[e.key]),this._overlapStencilMode):$_.disabled}_renderTileClippingMasks(e,t){const r=this.painter,i=this.painter.context,n=i.gl;r._tileClippingMaskIDs={},i.setColorMode(tb.disabled),i.setDepthMode(K_.disabled);const s=r.getOrCreateProgram("clippingMask");for(const i of e){const e=r._tileClippingMaskIDs[i.key]=--t;s.draw(r,n.TRIANGLES,K_.disabled,new $_({func:n.ALWAYS,mask:0},e,255,n.KEEP,n.KEEP,n.REPLACE),tb.disabled,nb.disabled,kS(i.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}pointCoordinate(e){const t=this.painter.transform;if(e.x<0||e.x>t.width||e.y<0||e.y>t.height)return null;const r=[e.x,e.y,1,1];id.transformMat4(r,r,t.pixelMatrixInverse),id.scale(r,r,1/r[3]),r[0]/=t.worldSize,r[1]/=t.worldSize;const i=t._camera.position,n=Op(1,t.center.lat),s=[i[0],i[1],i[2]/n,0],o=yd.subtract([],r.slice(0,3),s);yd.normalize(o,o);const a=this.raycast(s,o,this._exaggeration);return null!==a&&a?(yd.scaleAndAdd(s,s,o,a),s[3]=s[2],s[2]*=n,s):null}drawDepth(){const e=this.painter,t=e.context,r=this.proxySourceCache,i=Math.ceil(e.width),n=Math.ceil(e.height);if(!this._depthFBO||this._depthFBO.width===i&&this._depthFBO.height===n||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const e=t.gl,r=t.createFramebuffer(i,n,!0,"renderbuffer");t.activeTexture.set(e.TEXTURE0);const s=new Kv(t,{width:i,height:n,data:null},e.RGBA);s.bind(e.NEAREST,e.CLAMP_TO_EDGE),r.colorAttachment.set(s.texture);const o=t.createRenderbuffer(t.gl.DEPTH_COMPONENT16,i,n);r.depthAttachment.set(o),this._depthFBO=r,this._depthTexture=s}t.bindFramebuffer.set(this._depthFBO.framebuffer),t.viewport.set([0,0,i,n]),function(e,t,r,i){if("globe"===e.transform.projection.name)return;const n=e.context,s=n.gl;n.clear({depth:1});const o=e.getOrCreateProgram("terrainDepth"),a=new K_(s.LESS,K_.ReadWrite,e.depthRangeFor3D);for(const n of i){const i=r.getTile(n),l=AS(n.projMatrix,0,[0,0,0]);t.setupElevationDraw(i,o),o.draw(e,s.TRIANGLES,a,$_.disabled,tb.unblended,nb.backCCW,l,"terrain_depth",t.gridBuffer,t.gridIndexBuffer,t.gridNoSkirtSegments)}}(e,this,r,this.proxyCoords)}_setupProxiedCoordsForOrtho(e,t,r){if(e.getSource()instanceof Tw)return this._setupProxiedCoordsForImageSource(e,t,r);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};const i=this.proxiedCoords[e.id]=[],n=this.proxyCoords;for(let t=0;t<n.length;t++){const s=n[t],o=this._findTileCoveringTileID(s,e);if(o){const t=this._createProxiedId(s,o,r[s.key]&&r[s.key][e.id]);i.push(t),this.proxyToSource[s.key][e.id]=[t]}}let s=!1;for(let n=0;n<t.length;n++){const o=e.getTile(t[n]);if(!o||!o.hasData())continue;const a=this._findTileCoveringTileID(o.tileID,this.proxySourceCache);if(a&&a.tileID.canonical.z!==o.tileID.canonical.z){const t=this.proxyToSource[a.tileID.key][e.id],n=this._createProxiedId(a.tileID,o,r[a.tileID.key]&&r[a.tileID.key][e.id]);t?t.splice(t.length-1,0,n):this.proxyToSource[a.tileID.key][e.id]=[n],i.push(n),s=!0}}this._sourceTilesOverlap[e.id]=s}_setupProxiedCoordsForImageSource(e,t,r){if(!e.getSource().loaded())return;const i=this.proxiedCoords[e.id]=[],n=this.proxyCoords,s=e.getSource(),o=s.tileID;if(!o)return;const a=new v(o.x,o.y)._div(1<<o.z),l=s.coordinates.map(Up.fromLngLat).reduce(((e,t)=>(e.min.x=Math.min(e.min.x,t.x-a.x),e.min.y=Math.min(e.min.y,t.y-a.y),e.max.x=Math.max(e.max.x,t.x-a.x),e.max.y=Math.max(e.max.y,t.y-a.y),e)),{min:new v(Number.MAX_VALUE,Number.MAX_VALUE),max:new v(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(e,t)=>{const r=e.wrap+e.canonical.x/(1<<e.canonical.z),i=e.canonical.y/(1<<e.canonical.z),n=oi/(1<<e.canonical.z),s=t.wrap+t.canonical.x/(1<<t.canonical.z),o=t.canonical.y/(1<<t.canonical.z);return r+n<s+l.min.x||r>s+l.max.x||i+n<o+l.min.y||i>o+l.max.y};for(let s=0;s<n.length;s++){const o=n[s];for(let n=0;n<t.length;n++){const s=e.getTile(t[n]);if(!s||!s.hasData())continue;if(c(o,s.tileID))continue;const a=this._createProxiedId(o,s,r[o.key]&&r[o.key][e.id]),l=this.proxyToSource[o.key][e.id];l?l.push(a):this.proxyToSource[o.key][e.id]=[a],i.push(a)}}}_createProxiedId(e,t,r){let i=this.orthoMatrix;if(r){const e=r.find((e=>e.key===t.tileID.key));if(e)return e}
2if(t.tileID.key!==e.key){const r=e.canonical.z-t.tileID.canonical.z;let n,s,o;i=hd.create();const a=t.tileID.wrap-e.wrap<<e.overscaledZ;r>0?(n=oi>>r,s=n*((t.tileID.canonical.x<<r)-e.canonical.x+a),o=n*((t.tileID.canonical.y<<r)-e.canonical.y)):(n=oi<<-r,s=oi*(t.tileID.canonical.x-(e.canonical.x+a<<-r)),o=oi*(t.tileID.canonical.y-(e.canonical.y<<-r))),hd.ortho(i,0,n,0,n,0,1),hd.translate(i,i,[s,o,0])}return new LS(t.tileID,e.key,i)}_findTileCoveringTileID(e,t){let r=t.getTile(e);if(r&&r.hasData())return r;const i=this._findCoveringTileCache[t.id],n=i[e.key];if(r=n?t.getTileByID(n):null,r&&r.hasData()||null===n)return r;let s=r?r.tileID:e,o=s.overscaledZ;const a=t.getSource().minzoom,l=[];if(!n){const i=t.getSource().maxzoom;if(e.canonical.z>=i){const r=e.canonical.z-i;t.getSource().reparseOverscaled?(o=Math.max(e.canonical.z+2,t.transform.tileZoom),s=new Pd(o,e.wrap,i,e.canonical.x>>r,e.canonical.y>>r)):0!==r&&(o=i,s=new Pd(o,e.wrap,i,e.canonical.x>>r,e.canonical.y>>r))}s.key!==e.key&&(l.push(s.key),r=t.getTile(s))}const c=e=>{l.forEach((t=>{i[t]=e})),l.length=0};for(o-=1;o>=a&&(!r||!r.hasData());o--){r&&c(r.tileID.key);const e=s.calculateScaledKey(o);if(r=t.getTileByID(e),r&&r.hasData())break;const n=i[e];if(null===n)break;void 0===n?l.push(e):r=t.getTileByID(n)}return c(r?r.tileID.key:null),r&&r.hasData()?r:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let r=this._tilesDirty[e];r||(r=this._tilesDirty[e]={}),r[t.key]=!0}}function zS(e,t,r){const i=function(e,t,r){const i=yd.dot(t,e),n=yd.dot(r,[.2126,.7152,.0722]),s=(e,t,r)=>(1-r)*e+r*t,o=s(1-.3*Math.min(n,1),1,Math.min(i+1,1));return s(.92,1,Math.asin(M(t[2],-1,1))/Math.PI+.5)*o}(e,[0,0,1],t),n=[0,0,0];yd.scale(n,r.slice(0,3),i);const s=[0,0,0];yd.scale(s,t.slice(0,3),e[2]);const o=[0,0,0];return yd.add(o,n,s),ae(o)}const jS=["fill","fillOutline","fillPattern","line","linePattern","background","backgroundPattern","hillshade","raster"],FS=["stars","fillExtrusion","fillExtrusionGroundEffect","model","symbolSDF","symbolIcon","symbolTextAndIcon"];class NS{static cacheKey(e,t,r,i){let n=`${t}${i?i.cacheKey:""}`;for(const t of r)e.usedDefines.includes(t)&&(n+=`/${t}`);return n}constructor(e,t,r,i,n,s){const o=e.gl;this.program=o.createProgram(),this.configuration=i,this.name=t,this.fixedDefines=[...s];const a=function(e){const t=[];for(let r=0;r<e.length;r++){if(null===e[r])continue;const i=e[r].split(" ");t.push(i.pop())}return t}(r.staticAttributes),l=i?i.getBinderAttributes():[],c=a.concat(l);let u=i?i.defines():[];u=u.concat(s.map((e=>`#define ${e}`)));const h="#version 300 es\n";let d=h+u.concat("\n#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",pS,dS.fragmentSource).join("\n");for(const e of r.fragmentIncludes)d+=`\n${uS[e]}`;d+=`\n${r.fragmentSource}`;let p=h+u.concat("\n#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",pS,dS.vertexSource).join("\n");for(const e of r.vertexIncludes)p+=`\n${uS[e]}`;p+=`\n${r.vertexSource}`;const f=o.createShader(o.FRAGMENT_SHADER);if(o.isContextLost())return void(this.failedToCreate=!0);o.shaderSource(f,d),o.compileShader(f),o.attachShader(this.program,f);const m=o.createShader(o.VERTEX_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(m,p),o.compileShader(m),o.attachShader(this.program,m),this.attributes={},this.numAttributes=c.length;for(let e=0;e<this.numAttributes;e++)if(c[e]){const t=c[e].startsWith("a_")?c[e]:`a_${c[e]}`;o.bindAttribLocation(this.program,e,t),this.attributes[t]=e}o.linkProgram(this.program),o.deleteShader(m),o.deleteShader(f),this.fixedUniforms=n(e),this.binderUniforms=i?i.getUniforms(e):[],s.includes("TERRAIN")&&(this.terrainUniforms=(e=>({u_dem:new bc(e),u_dem_prev:new bc(e),u_dem_unpack:new Ec(e),u_dem_tl:new wc(e),u_dem_scale:new xc(e),u_dem_tl_prev:new wc(e),u_dem_scale_prev:new xc(e),u_dem_size:new xc(e),u_dem_lerp:new xc(e),u_exaggeration:new xc(e),u_depth:new bc(e),u_depth_size_inv:new wc(e),u_meter_to_dem:new xc(e),u_label_plane_matrix_inv:new Cc(e)}))(e)),s.includes("GLOBE")&&(this.globeUniforms=(e=>({u_tile_tl_up:new Ac(e),u_tile_tr_up:new Ac(e),u_tile_br_up:new Ac(e),u_tile_bl_up:new Ac(e),u_tile_up_scale:new xc(e)}))(e)),s.includes("FOG")&&(this.fogUniforms=(e=>({u_fog_matrix:new Cc(e),u_fog_range:new wc(e),u_fog_color:new Ec(e),u_fog_horizon_blend:new xc(e),u_fog_vertical_limit:new wc(e),u_fog_temporal_offset:new xc(e),u_frustum_tl:new Ac(e),u_frustum_tr:new Ac(e),u_frustum_br:new Ac(e),u_frustum_bl:new Ac(e),u_globe_pos:new Ac(e),u_globe_radius:new xc(e),u_globe_transition:new xc(e),u_is_globe:new bc(e),u_viewport:new wc(e)}))(e)),s.includes("RENDER_CUTOFF")&&(this.cutoffUniforms=(e=>({u_cutoff_params:new Ec(e)}))(e)),s.includes("LIGHTING_3D_MODE")&&(this.lightsUniforms=(e=>({u_lighting_ambient_color:new Ac(e),u_lighting_directional_dir:new Ac(e),u_lighting_directional_color:new Ac(e),u_ground_radiance:new Ac(e)}))(e)),s.includes("RENDER_SHADOWS")&&(this.shadowUniforms=(e=>({u_light_matrix_0:new Cc(e),u_light_matrix_1:new Cc(e),u_fade_range:new wc(e),u_shadow_normal_offset:new Ac(e),u_shadow_intensity:new xc(e),u_shadow_texel_size:new xc(e),u_shadow_map_resolution:new xc(e),u_shadow_direction:new Ac(e),u_shadow_bias:new Ac(e),u_shadowmap_0:new bc(e),u_shadowmap_1:new bc(e)}))(e))}}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const r=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e]&&r[e].set(this.program,e,t[e])}}setGlobeUniformValues(e,t){if(!this.globeUniforms)return;const r=this.globeUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e]&&r[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const r=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}}setCutoffUniformValues(e,t){if(!this.cutoffUniforms)return;const r=this.cutoffUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}}setLightsUniformValues(e,t){if(!this.lightsUniforms)return;const r=this.lightsUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}}setShadowUniformValues(e,t){if(this.failedToCreate||!this.shadowUniforms)return;const r=this.shadowUniforms;e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}_drawDebugWireframe(e,t,r,i,n,s,o,a,l,c){const u=e.options.wireframe;if(!1===u.terrain&&!1===u.layers2D&&!1===u.layers3D)return;const h=e.context;if(!(()=>!(!u.terrain||"terrainRaster"!==this.name&&"globeRaster"!==this.name)||!(!u.layers2D||e._terrain&&e._terrain.renderingToTexture||!jS.includes(this.name))||!(!u.layers3D||!FS.includes(this.name)))())return;const d=h.gl,p=e.wireframeDebugCache.getLinesFromTrianglesBuffer(e.frameCounter,n,h);if(!p)return;const f=[...this.fixedDefines];
2f.push("DEBUG_WIREFRAME");const m=e.getOrCreateProgram(this.name,{config:this.configuration,defines:f});h.program.set(m.program);const g=(e,t,r)=>{if(t[e]&&r[e])for(const i in t[e])r[e][i]&&r[e][i].set(r.program,i,t[e][i].current)};l&&l.setUniforms(m.program,h,m.binderUniforms,o,{zoom:a}),g("fixedUniforms",this,m),g("terrainUniforms",this,m),g("globeUniforms",this,m),g("fogUniforms",this,m),g("lightsUniforms",this,m),g("shadowUniforms",this,m),p.bind(),h.setColorMode(new tb([d.ONE,d.ONE_MINUS_SRC_ALPHA,d.ZERO,d.ONE],lr.transparent,[!0,!0,!0,!1])),h.setDepthMode(new K_(t.func===d.LESS?d.LEQUAL:t.func,K_.ReadOnly,t.range)),h.setStencilMode($_.disabled);const y=3*s.primitiveLength*2,v=3*s.primitiveOffset*2*2;c&&c>1?d.drawElementsInstanced(d.LINES,y,d.UNSIGNED_SHORT,v,c):d.drawElements(d.LINES,y,d.UNSIGNED_SHORT,v),n.bind(),h.program.set(this.program),h.setDepthMode(t),h.setStencilMode(r),h.setColorMode(i)}draw(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m){const g=e.context,y=g.gl;if(this.failedToCreate)return;g.program.set(this.program),g.setDepthMode(r),g.setStencilMode(i),g.setColorMode(n),g.setCullFace(s);for(const e of Object.keys(this.fixedUniforms))this.fixedUniforms[e].set(this.program,e,o[e]);p&&p.setUniforms(this.program,g,this.binderUniforms,h,{zoom:d});const v={[y.LINES]:2,[y.TRIANGLES]:3,[y.LINE_STRIP]:1}[t],_=m&&m>0?1:void 0;for(const s of u.get()){const o=s.vaos||(s.vaos={});(o[a]||(o[a]=new yS)).bind(g,this,l,p?p.getPaintVertexBuffers():[],c,s.vertexOffset,f||[],_),m&&m>1?y.drawElementsInstanced(t,s.primitiveLength*v,y.UNSIGNED_SHORT,s.primitiveOffset*v*2,m):y.drawElements(t,s.primitiveLength*v,y.UNSIGNED_SHORT,s.primitiveOffset*v*2),t===y.TRIANGLES&&this._drawDebugWireframe(e,r,i,n,c,s,h,d,p,m)}}}function US(e,t){const r=Math.pow(2,t.tileID.overscaledZ),i=t.tileSize*Math.pow(2,e.transform.tileZoom)/r,n=i*(t.tileID.canonical.x+t.tileID.wrap*r),s=i*t.tileID.canonical.y;return{u_image:0,u_texsize:t.imageAtlasTexture.size,u_tile_units_to_pixels:1/Pb(t,1,e.transform.tileZoom),u_pixel_coord_upper:[n>>16,s>>16],u_pixel_coord_lower:[65535&n,65535&s]}}const VS=hd.create(),GS=(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f)=>{const m=t.style.light,g=m.properties.get("position"),y=[g.x,g.y,g.z],v=cd.create();"viewport"===m.properties.get("anchor")&&(cd.fromRotation(v,-t.transform.angle),yd.transformMat3(y,y,v));const _=m.properties.get("color"),b=t.transform,x={u_matrix:e,u_lightpos:y,u_lightintensity:m.properties.get("intensity"),u_lightcolor:[_.r,_.g,_.b],u_vertical_gradient:+r,u_opacity:i,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:VS,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:n,u_edge_radius:s,u_flood_light_color:h,u_vertical_scale:d,u_flood_light_intensity:p,u_ground_shadow_factor:f};return"globe"===b.projection.name&&(x.u_tile_id=[o.canonical.x,o.canonical.y,1<<o.canonical.z],x.u_zoom_transition=l,x.u_inv_rot_matrix=u,x.u_merc_center=c,x.u_up_dir=b.projection.upVector(new Cd(0,0,0),c[0]*oi,c[1]*oi),x.u_height_lift=a),x},qS=(e,t,r)=>({u_matrix:e,u_edge_radius:t,u_vertical_scale:r}),HS=(e,t,r,i,n,s,o,a,l,c,u,h,d,p)=>{const f=GS(e,t,r,i,n,s,o,l,c,u,h,d,p,1,[0,0,0]),m={u_height_factor:-Math.pow(2,o.overscaledZ)/a.tileSize/8};return L(f,US(t,a),m)},WS=(e,t)=>({u_matrix:e,u_emissive_strength:t}),YS=(e,t,r,i)=>L(WS(e,t),US(r,i)),QS=(e,t,r)=>({u_matrix:e,u_world:r,u_emissive_strength:t}),ZS=(e,t,r,i,n)=>L(YS(e,t,r,i),{u_world:n}),XS=(e,t,r,i)=>{const n=oi/r.tileSize;return{u_matrix:e,u_camera_to_center_distance:t.getCameraToCenterDistance(i),u_extrude_scale:[t.pixelsToGLUnits[0]/n,t.pixelsToGLUnits[1]/n]}},KS=(e,t,r=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:r}),JS=hd.create(),$S=(e,t,r,i,n,s,o)=>{const a=e.transform,l="globe"===a.projection.name,c=l?hp(a.zoom,t.canonical)*a._pixelsPerMercatorPixel:Pb(r,1,s),u={u_matrix:t.projMatrix,u_extrude_scale:c,u_intensity:o,u_inv_rot_matrix:JS,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(l){u.u_inv_rot_matrix=i,u.u_merc_center=n,u.u_tile_id=[t.canonical.x,t.canonical.y,1<<t.canonical.z],u.u_zoom_transition=pp(a.zoom);const e=n[0]*oi,r=n[1]*oi;u.u_up_dir=a.projection.upVector(new Cd(0,0,0),e,r)}return u},eT=(e,t,r,i,n,s,o,a,l,c,u)=>{return{u_matrix:e,u_normalize_matrix:t,u_globe_matrix:r,u_tl_parent:i,u_scale_parent:n,u_fade_t:s.mix,u_opacity:s.opacity*o.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:o.paint.get("raster-brightness-min"),u_brightness_high:o.paint.get("raster-brightness-max"),u_saturation_factor:(d=o.paint.get("raster-saturation"),d>0?1-1/(1.001-d):-d),u_contrast_factor:(h=o.paint.get("raster-contrast"),h>0?1/(1-h):1+h),u_spin_weights:tT(o.paint.get("raster-hue-rotate")),u_perspective_transform:a,u_colorization_mix:c,u_colorization_scale:rT(u),u_color_ramp:l};var h,d};function tT(e){e*=Math.PI/180;const t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function rT([e,t]){if(e===t)return[e,t];const r=(t+e)/2,i=(t-e)/2*256/255;return[-(e=r-i)/((t=r+i)-e),1/(t-e)]}const iT=hd.create(),nT=(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g)=>{const y=n.transform,v={u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:y.getCameraToCenterDistance(m),u_rotate_symbol:+r,u_aspect_ratio:y.width/y.height,u_fade_change:n.options.fadeDuration?n.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:o,u_coord_matrix:a,u_is_text:+l,u_pitch_with_map:+i,u_texsize:c,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:iT,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:iT,u_up_vector:[0,-1,0],u_icon_transition:g||0};return"globe"===m.name&&(v.u_tile_id=[u.canonical.x,u.canonical.y,1<<u.canonical.z],v.u_zoom_transition=h,v.u_inv_rot_matrix=p,v.u_merc_center=d,v.u_camera_forward=y._camera.forward(),v.u_ecef_origin=function(e,t){const r=[0,0,0],i=lp(Xd(t.canonical));return yd.transformMat4(r,r,i),yd.transformMat4(r,r,e),r}(y.globeMatrix,u.toUnwrapped()),v.u_tile_matrix=Float32Array.from(y.globeMatrix),v.u_up_vector=f),v},sT=(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g)=>L(nT(e,t,r,i,n,s,o,a,l,c,h,d,p,f,m,g),{u_gamma_scale:i?n.transform.getCameraToCenterDistance(g)*Math.cos(n.terrain?0:n.transform._pitch):1,u_device_pixel_ratio:ut.devicePixelRatio,u_is_halo:+u,undefined:void 0}),oT=(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m)=>L(sT(e,t,r,i,n,s,o,a,!0,l,!0,u,h,d,p,f,m),{u_texsize_icon:c,u_texture_icon:1}),aT=(e,t,r,i)=>({u_matrix:e,u_emissive_strength:t,u_opacity:r,u_color:i}),lT=(e,t,r,i,n,s,o)=>L(function(e,t,r,i){const n=r.imageManager.getPattern(e.toString(),t),{width:s,height:o}=r.imageManager.getPixelSize(t),a=Math.pow(2,i.tileID.overscaledZ
2),l=i.tileSize*Math.pow(2,r.transform.tileZoom)/a,c=l*(i.tileID.canonical.x+i.tileID.wrap*a),u=l*i.tileID.canonical.y;return{u_image:0,u_pattern_tl:n.tl,u_pattern_br:n.br,u_texsize:[s,o],u_pattern_size:n.displaySize,u_tile_units_to_pixels:1/Pb(i,1,r.transform.tileZoom),u_pixel_coord_upper:[c>>16,u>>16],u_pixel_coord_lower:[65535&c,65535&u]}}(n,s,i,o),{u_matrix:e,u_emissive_strength:t,u_opacity:r}),cT=5,uT=6,hT=7,dT=8,pT=9,fT=10,mT=(e,t,r,i,n,s,o,a,l,c,u,h=[0,0,0])=>{const d=i.style.light,p=d.properties.get("position"),f=[-p.x,-p.y,p.z],m=cd.create();"viewport"===d.properties.get("anchor")&&(cd.fromRotation(m,-i.transform.angle),yd.transformMat3(f,f,m));const g="MASK"===c.alphaMode,y=d.properties.get("color"),v=u.paint.get("model-ambient-occlusion-intensity"),_=u.paint.get("model-color").constantOr(lr.white),b=u.paint.get("model-color-mix-intensity").constantOr(0);return{u_matrix:e,u_lighting_matrix:t,u_normal_matrix:r,u_lightpos:f,u_lightintensity:d.properties.get("intensity"),u_lightcolor:[y.r,y.g,y.b],u_camera_pos:h,u_opacity:n,u_baseTextureIsAlpha:0,u_alphaMask:+g,u_alphaCutoff:c.alphaCutoff,u_baseColorFactor:[s.r,s.g,s.b,s.a],u_emissiveFactor:[o[0],o[1],o[2],1],u_metallicFactor:a,u_roughnessFactor:l,u_baseColorTexture:cT,u_metallicRoughnessTexture:uT,u_normalTexture:hT,u_occlusionTexture:dT,u_emissionTexture:pT,u_color_mix:[_.r,_.g,_.b,b],u_aoIntensity:v}},gT=new Float32Array(16),yT=(e,t=gT,r=gT)=>({u_matrix:e,u_instance:t,u_node_matrix:r}),vT={fillExtrusion:e=>({u_matrix:new Cc(e),u_lightpos:new Ac(e),u_lightintensity:new xc(e),u_lightcolor:new Ac(e),u_vertical_gradient:new xc(e),u_opacity:new xc(e),u_edge_radius:new xc(e),u_ao:new wc(e),u_tile_id:new Ac(e),u_zoom_transition:new xc(e),u_inv_rot_matrix:new Cc(e),u_merc_center:new wc(e),u_up_dir:new Ac(e),u_height_lift:new xc(e),u_flood_light_color:new Ac(e),u_vertical_scale:new xc(e),u_flood_light_intensity:new xc(e),u_ground_shadow_factor:new Ac(e)}),fillExtrusionDepth:e=>({u_matrix:new Cc(e),u_edge_radius:new xc(e),u_vertical_scale:new xc(e)}),fillExtrusionPattern:e=>({u_matrix:new Cc(e),u_lightpos:new Ac(e),u_lightintensity:new xc(e),u_lightcolor:new Ac(e),u_vertical_gradient:new xc(e),u_height_factor:new xc(e),u_edge_radius:new xc(e),u_ao:new wc(e),u_tile_id:new Ac(e),u_zoom_transition:new xc(e),u_inv_rot_matrix:new Cc(e),u_merc_center:new wc(e),u_up_dir:new Ac(e),u_height_lift:new xc(e),u_image:new bc(e),u_texsize:new wc(e),u_pixel_coord_upper:new wc(e),u_pixel_coord_lower:new wc(e),u_tile_units_to_pixels:new xc(e),u_opacity:new xc(e)}),fillExtrusionGroundEffect:e=>({u_matrix:new Cc(e),u_opacity:new xc(e),u_ao_pass:new xc(e),u_meter_to_tile:new xc(e),u_ao:new wc(e),u_flood_light_intensity:new xc(e),u_flood_light_color:new Ac(e),u_attenuation:new xc(e),u_edge_radius:new xc(e),u_fb:new bc(e),u_fb_size:new xc(e)}),fill:e=>({u_matrix:new Cc(e),u_emissive_strength:new xc(e)}),fillPattern:e=>({u_matrix:new Cc(e),u_emissive_strength:new xc(e),u_image:new bc(e),u_texsize:new wc(e),u_pixel_coord_upper:new wc(e),u_pixel_coord_lower:new wc(e),u_tile_units_to_pixels:new xc(e)}),fillOutline:e=>({u_matrix:new Cc(e),u_emissive_strength:new xc(e),u_world:new wc(e)}),fillOutlinePattern:e=>({u_matrix:new Cc(e),u_emissive_strength:new xc(e),u_world:new wc(e),u_image:new bc(e),u_texsize:new wc(e),u_pixel_coord_upper:new wc(e),u_pixel_coord_lower:new wc(e),u_tile_units_to_pixels:new xc(e)}),circle:e=>({u_camera_to_center_distance:new xc(e),u_extrude_scale:new kc(e),u_device_pixel_ratio:new xc(e),u_matrix:new Cc(e),u_inv_rot_matrix:new Cc(e),u_merc_center:new wc(e),u_tile_id:new Ac(e),u_zoom_transition:new xc(e),u_up_dir:new Ac(e),u_emissive_strength:new xc(e)}),collisionBox:e=>({u_matrix:new Cc(e),u_camera_to_center_distance:new xc(e),u_extrude_scale:new wc(e)}),collisionCircle:e=>({u_matrix:new Cc(e),u_inv_matrix:new Cc(e),u_camera_to_center_distance:new xc(e),u_viewport_size:new wc(e)}),debug:e=>({u_color:new Sc(e),u_matrix:new Cc(e),u_overlay:new bc(e),u_overlay_scale:new xc(e)}),clippingMask:e=>({u_matrix:new Cc(e)}),heatmap:e=>({u_extrude_scale:new xc(e),u_intensity:new xc(e),u_matrix:new Cc(e),u_inv_rot_matrix:new Cc(e),u_merc_center:new wc(e),u_tile_id:new Ac(e),u_zoom_transition:new xc(e),u_up_dir:new Ac(e)}),heatmapTexture:e=>({u_image:new bc(e),u_color_ramp:new bc(e),u_opacity:new xc(e)}),hillshade:e=>({u_matrix:new Cc(e),u_image:new bc(e),u_latrange:new wc(e),u_light:new wc(e),u_shadow:new Sc(e),u_highlight:new Sc(e),u_emissive_strength:new xc(e),u_accent:new Sc(e)}),hillshadePrepare:e=>({u_matrix:new Cc(e),u_image:new bc(e),u_dimension:new wc(e),u_zoom:new xc(e),u_unpack:new Ec(e)}),line:e=>({u_matrix:new Cc(e),u_pixels_to_tile_units:new kc(e),u_device_pixel_ratio:new xc(e),u_units_to_pixels:new wc(e),u_dash_image:new bc(e),u_gradient_image:new bc(e),u_image_height:new xc(e),u_texsize:new wc(e),u_tile_units_to_pixels:new xc(e),u_alpha_discard_threshold:new xc(e),u_trim_offset:new wc(e),u_emissive_strength:new xc(e)}),linePattern:e=>({u_matrix:new Cc(e),u_texsize:new wc(e),u_pixels_to_tile_units:new kc(e),u_device_pixel_ratio:new xc(e),u_image:new bc(e),u_units_to_pixels:new wc(e),u_tile_units_to_pixels:new xc(e),u_alpha_discard_threshold:new xc(e)}),raster:e=>({u_matrix:new Cc(e),u_normalize_matrix:new Cc(e),u_globe_matrix:new Cc(e),u_tl_parent:new wc(e),u_scale_parent:new xc(e),u_fade_t:new xc(e),u_opacity:new xc(e),u_image0:new bc(e),u_image1:new bc(e),u_brightness_low:new xc(e),u_brightness_high:new xc(e),u_saturation_factor:new xc(e),u_contrast_factor:new xc(e),u_spin_weights:new Ac(e),u_perspective_transform:new wc(e),u_colorization_mix:new Ec(e),u_colorization_scale:new wc(e),u_color_ramp:new bc(e)}),symbolIcon:e=>({u_is_size_zoom_constant:new bc(e),u_is_size_feature_constant:new bc(e),u_size_t:new xc(e),u_size:new xc(e),u_camera_to_center_distance:new xc(e),u_rotate_symbol:new bc(e),u_aspect_ratio:new xc(e),u_fade_change:new xc(e),u_matrix:new Cc(e),u_label_plane_matrix:new Cc(e),u_coord_matrix:new Cc(e),u_is_text:new bc(e),u_pitch_with_map:new bc(e),u_texsize:new wc(e),u_tile_id:new Ac(e),u_zoom_transition:new xc(e),u_inv_rot_matrix:new Cc(e),u_merc_center:new wc(e),u_camera_forward:new Ac(e),u_tile_matrix:new Cc(e),u_up_vector:new Ac(e),u_ecef_origin:new Ac(e),u_texture:new bc(e),u_icon_transition:new xc(e)}),symbolSDF:e=>({u_is_size_zoom_constant:new bc(e),u_is_size_feature_constant:new bc(e),u_size_t:new xc(e),u_size:new xc(e),u_camera_to_center_distance:new xc(e),u_rotate_symbol:new bc(e),u_aspect_ratio:new xc(e),u_fade_change:new xc(e),u_matrix:new Cc(e),u_label_plane_matrix:new Cc(e),u_coord_matrix:new Cc(e),u_is_text:new bc(e),u_pitch_with_map:new bc(e),u_texsize:new wc(e),u_texture:new bc(e),u_gamma_scale:new xc(e),u_device_pixel_ratio:new xc(e),u_tile_id:new Ac(e),u_zoom_transition:new xc(e),u_inv_rot_matrix:new Cc(e),u_merc_center:new wc(e),u_camera_forward:new Ac(e),u_tile_matrix:new Cc(e),u_up_vector:new Ac(e),u_ecef_origin:new Ac(e),u_is_halo:new bc(e)}),symbolTextAndIcon:e=>({u_is_size_zoom_constant:new bc(e),u_is_size_feature_constant:new bc(e),u_size_t:new xc(e),u_size:new xc(e),u_camera_to_center_distance:new xc(e),u_rotate_symbol:new bc(e),u_aspect_ratio:new xc(e),u_fade_change:new xc(e),u_matrix:new Cc(e),u_label_plane_matrix:new Cc(e),u_coord_matrix:new Cc(e),u_is_text:new bc(e),u_pitch_with_map:new bc(e),u_texsize:new wc(e),u_texsize_icon:new wc(e),u_texture:new bc(e),u_texture_icon:new bc(e),u_gamma_scale:new xc(e),u_device_pixel_ratio:new xc(e),u_is_halo:new bc(e)}),background:e=>({u_matrix:new Cc(e),u_emissive_strength:new xc(e),u_opacity:new xc(e),u_color:new Sc(e)}),backgroundPattern:e=>({u_matrix:new Cc(e),u_emissive_strength:new xc(e),u_opacity:new xc(e),u_image:new bc(e),u_pattern_tl:new wc(e),u_pattern_br:new wc(e),u_texsize:new wc(e),u_pattern_size:new wc(e),u_pixel_coord_upper:new wc(e),u_pixel_coord_lower:new wc(e),u_tile_units_to_pixels:new xc(e)}),terrainRaster:wS,terrainDepth:wS,skybox:e=>({u_matrix:new Cc(e),u_sun_direction:new Ac(e),u_cubemap:new bc(e),u_opacity:new xc(e),u_temporal_offset:new xc(e)}),skyboxGradient:e=>({u_matrix:new Cc(e),u_color_ramp:new bc(e),u_center_direction:new Ac(e),u_radius:new xc(e),u_opacity:new xc(e),u_temporal_offset:new xc(e)}),skyboxCapture:e=>({u_matrix_3f:new Pc(e),u_sun_direction:new Ac(e),u_sun_intensity:new xc(e),u_color_tint_r:new Ec(e),u_color_tint_m:new Ec(e),u_luminance:new xc(e)}),globeRaster:e=>({u_proj_matrix:new Cc(e),u_globe_matrix:new Cc(e),u_normalize_matrix:new Cc(e),u_merc_matrix:new Cc(e),u_zoom_transition:new xc(e),u_merc_center:new wc(e),u_image0:new bc(e),u_grid_matrix:new Pc(e),u_skirt_height:new xc(e),u_frustum_tl:new Ac(e),u_frustum_tr:new Ac(e),u_frustum_br:new Ac(e),u_frustum_bl:new Ac(e),u_globe_pos:new Ac(e),u_globe_radius:new xc(e),u_viewport:new wc(e)}),globeAtmosphere:e=>({u_frustum_tl:new Ac(e),u_frustum_tr:new Ac(e),u_frustum_br:new Ac(e),u_frustum_bl:new Ac(e),u_horizon:new xc(e),u_transition:new xc(e),u_fadeout_range:new xc(e),u_color:new Ec(e),u_high_color:new Ec(e),u_space_color:new Ec(e),u_temporal_offset:new xc(e),u_horizon_angle:new xc(e)}),model:e=>({u_matrix:new Cc(e),u_lighting_matrix:new Cc(e),u_normal_matrix:new Cc(e),u_lightpos:new Ac(e),u_lightintensity:new xc(e),u_lightcolor:new Ac(e),u_camera_pos:new Ac(e),u_opacity:new xc(e),u_baseColorFactor:new Ec(e),u_emissiveFactor:new Ec(e),u_metallicFactor:new xc(e),u_roughnessFactor:new xc(e),u_baseTextureIsAlpha:new bc(e),u_alphaMask:new bc(e),u_alphaCutoff:new xc(e),u_baseColorTexture:new bc(e),u_metallicRoughnessTexture:new bc(e),u_normalTexture:new bc(e),u_occlusionTexture:new bc(e),u_emissionTexture:new bc(e),u_color_mix:new Ec(e),u_aoIntensity:new xc(e)}),modelDepth:e=>({u_matrix:new Cc(e),u_instance:new Cc(e),u_node_matrix:new Cc(e)}),groundShadow:e=>({u_matrix:new Cc(e),u_ground_shadow_factor:new Ac(e)}),stars:e=>({u_matrix:new Cc(e),u_up:new Ac(e),u_right:new Ac(e),u_intensity_multiplier:new xc(e)})};let _T;function bT(e,t,r,i,n,s,o){const a=e.context,l=a.gl,c=e.transform,u=e.getOrCreateProgram("collisionBox"),h=[];let d=0,p=0;for(let a=0;a<i.length;a++){const f=i[a],m=t.getTile(f),g=m.getBucket(r);
2if(!g)continue;const y=xE(f,g,c);let v=y;0===n[0]&&0===n[1]||(v=e.translatePosMatrix(y,m,n,s));const _=o?g.textCollisionBox:g.iconCollisionBox,b=g.collisionCircleArray;if(b.length>0){const e=hd.create(),t=v;hd.mul(e,g.placementInvProjMatrix,c.glCoordMatrix),hd.mul(e,e,g.placementViewportMatrix),h.push({circleArray:b,circleOffset:p,transform:t,invTransform:e,projection:g.getProjection()}),d+=b.length/4,p=d}_&&(e.terrain&&e.terrain.setupElevationDraw(m,u),u.draw(e,l.LINES,K_.disabled,$_.disabled,e.colorModeForRenderPass(),nb.disabled,XS(v,c,m,g.getProjection()),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,c.zoom,null,[_.collisionVertexBuffer,_.collisionVertexBufferExt]))}if(!o||!h.length)return;const f=e.getOrCreateProgram("collisionCircle"),m=new Ml;m.resize(4*d),m._trim();let g=0;for(const e of h)for(let t=0;t<e.circleArray.length/4;t++){const r=4*t,i=e.circleArray[r+0],n=e.circleArray[r+1],s=e.circleArray[r+2],o=e.circleArray[r+3];m.emplace(g++,i,n,s,o,0),m.emplace(g++,i,n,s,o,1),m.emplace(g++,i,n,s,o,2),m.emplace(g++,i,n,s,o,3)}(!_T||_T.length<2*d)&&(_T=function(e){const t=2*e,r=new Rl;r.resize(t),r._trim();for(let e=0;e<t;e++){const t=6*e;r.uint16[t+0]=4*e+0,r.uint16[t+1]=4*e+1,r.uint16[t+2]=4*e+2,r.uint16[t+3]=4*e+2,r.uint16[t+4]=4*e+3,r.uint16[t+5]=4*e+0}return r}(d));const y=a.createIndexBuffer(_T,!0),v=a.createVertexBuffer(m,Gg.members,!0);for(const t of h){const i={u_matrix:t.transform,u_inv_matrix:t.invTransform,u_camera_to_center_distance:(_=c).getCameraToCenterDistance(t.projection),u_viewport_size:[_.width,_.height]};f.draw(e,l.TRIANGLES,K_.disabled,$_.disabled,e.colorModeForRenderPass(),nb.disabled,i,r.id,v,y,nc.simpleSegment(0,2*t.circleOffset,t.circleArray.length,t.circleArray.length/2),null,c.zoom)}var _;v.destroy(),y.destroy()}const xT=hd.create();function wT({width:e,height:t,anchor:r,textOffset:i,textScale:n},s){const{horizontalAlign:o,verticalAlign:a}=yy(r),l=-(o-.5)*e,c=-(a-.5)*t,u=Hy(r,i);return new v((l/n+u[0])*s,(c/n+u[1])*s)}function AT(e,t,r,i,n,s,o,a,l,c,u){const h=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,p=e.icon.dynamicLayoutVertexArray,f={},m=e.getProjection(),g=wE(a,m,s),y=s.elevation,v=m.upVectorScale(a.canonical,s.center.lat,s.worldSize).metersToTile;d.clear();for(let p=0;p<h.length;p++){const _=h.get(p),{tileAnchorX:b,tileAnchorY:x,numGlyphs:w}=_,A=_.hidden||!_.crossTileID||e.allowVerticalPlacement&&!_.placedOrientation?null:i[_.crossTileID];if(A){let i=0,h=0,p=0;if(y){const e=y?y.getAtTileOffset(a,b,x):0,[t,r,n]=m.upVector(a.canonical,b,x);i=e*t*v,h=e*r*v,p=e*n*v}let[E,S,T,C]=zb(_.projectedAnchorX+i,_.projectedAnchorY+h,_.projectedAnchorZ+p,r?g:o);const I=jb(s.getCameraToCenterDistance(m),C);let P=n.evaluateSizeForFeature(e.textSizeData,c,_)*I/qg;r&&(P*=e.tilePixelRatio/l);const M=wT(A,P);r?(({x:E,y:S,z:T}=m.projectTilePoint(b+M.x,x+M.y,a.canonical)),[E,S,T]=zb(E+i,S+h,T+p,o)):(t&&M._rotate(-s.angle),E+=M.x,S+=M.y,T=0);const k=e.allowVerticalPlacement&&_.placedOrientation===oy.vertical?Math.PI/2:0;for(let e=0;e<w;e++)jv(d,E,S,T,k);u&&_.associatedIconIndex>=0&&(f[_.associatedIconIndex]={x:E,y:S,z:T,angle:k})}else Yb(w,d)}if(u){p.clear();const t=e.icon.placedSymbolArray;for(let e=0;e<t.length;e++){const r=t.get(e),{numGlyphs:i}=r,n=f[e];if(r.hidden||!n)Yb(i,p);else{const{x:e,y:t,z:r,angle:s}=n;for(let n=0;n<i;n++)jv(p,e,t,r,s)}}e.icon.dynamicLayoutVertexBuffer.updateData(p)}e.text.dynamicLayoutVertexBuffer.updateData(d)}function ET(e,t,r){return r.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function ST(e,t,r,i,n,s,o,a,l,c,u,h){const d=e.context,p=d.gl,f=e.transform,m="map"===a,g="map"===l,y=m&&"point"!==r.layout.get("symbol-placement"),v=m&&!g&&!y,_=void 0!==r.layout.get("symbol-sort-key").constantOr(1);let b=!1;const x=e.depthModeForSublayer(0,K_.ReadOnly),w=[Mp(f.center.lng),kp(f.center.lat)],A=r.layout.get("text-variable-anchor"),E="globe"===f.projection.name,S=[],T=[0,-1,0];let C=T;!E&&!f.mercatorFromTransition||m||(C=function(e){const t=e._camera.getWorldToCamera(e.worldSize,1),r=hd.multiply([],t,e.globeMatrix);hd.invert(r,r);const i=[0,0,0],n=[0,1,0,0];return id.transformMat4(n,n,r),i[0]=n[0],i[1]=n[1],i[2]=n[2],yd.normalize(i,i),i}(f));for(const a of i){const i=t.getTile(a),l=i.getBucket(r);
2if(!l)continue;if("mercator"===l.projection.name&&E)continue;const u=n?l.text:l.icon;if(!u||l.fullyClipped||!u.segments.get().length)continue;const h=u.programConfigurations.get(r.id),d=n||l.sdfIcons,x=n?l.textSizeData:l.iconSizeData,I=g||0!==f.pitch,P=Qg(x,f.zoom);let M,k,O,R,D=[0,0],L=null;if(n)k=i.glyphAtlasTexture,O=p.LINEAR,M=i.glyphAtlasTexture.size,l.iconsInText&&(D=i.imageAtlasTexture.size,L=i.imageAtlasTexture,R=I||e.options.rotating||e.options.zooming||"composite"===x.kind||"camera"===x.kind?p.LINEAR:p.NEAREST);else{const t=1!==r.layout.get("icon-size").constantOr(0)||l.iconsNeedLinear;k=i.imageAtlasTexture,O=d||e.options.rotating||e.options.zooming||t||I?p.LINEAR:p.NEAREST,M=i.imageAtlasTexture.size}const B="globe"===l.projection.name,z=B?C:T,j=B?pp(f.zoom):0,F=wE(a,l.getProjection(),f),N=f.calculatePixelsToTileUnitsMatrix(i),U=Db(F,i.tileID.canonical,g,m,f,l.getProjection(),N),V=e.terrain&&g&&y?hd.invert(hd.create(),U):xT,G=Bb(F,i.tileID.canonical,g,m,f,l.getProjection(),N),q=A&&l.hasTextData(),H=l.hasIconTextFit()&&q&&l.hasIconData();if(y){const t=f.elevation,r=t?t.getAtTileOffsetFunc(a,f.center.lat,f.worldSize,l.getProjection()):null,
2s=Lb(F,i.tileID.canonical,g,m,f,l.getProjection(),N);Nb(l,F,e,n,s,G,g,c,r,a)}const W=y||n&&A||H,Y=e.translatePosMatrix(F,i,s,o),Q=W?xT:U,Z=e.translatePosMatrix(G,i,s,o,!0),X=l.getProjection().createInversionMatrix(f,a.canonical),K=r.paint.get("icon-image-cross-fade").constantOr(0),J=[];e.terrainRenderModeElevated()&&g&&J.push("PITCH_WITH_MAP_TERRAIN"),B&&(J.push("PROJECTION_GLOBE_VIEW"),W&&J.push("PROJECTED_POS_ON_VIEWPORT")),K>0&&J.push("ICON_TRANSITION"),u.zOffsetVertexBuffer&&J.push("Z_OFFSET");const $=d&&0!==r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1);let ee;ee=d?l.iconsInText?oT(x.kind,P,v,g,e,Y,Q,Z,M,D,a,j,w,X,z,l.getProjection()):sT(x.kind,P,v,g,e,Y,Q,Z,n,M,!0,a,j,w,X,z,l.getProjection()):nT(x.kind,P,v,g,e,Y,Q,Z,n,M,a,j,w,X,z,l.getProjection(),K);const te={program:e.getOrCreateProgram(ET(d,n,l),{config:h,defines:J}),buffers:u,uniformValues:ee,atlasTexture:k,atlasTextureIcon:L,atlasInterpolation:O,atlasInterpolationIcon:R,isSDF:d,hasHalo:$,tile:i,labelPlaneMatrixInv:V};if(_&&l.canOverlap){b=!0;const e=u.segments.get();for(const t of e)S.push({segments:new nc([t]),sortKey:t.sortKey,state:te})}else S.push({segments:u.segments,sortKey:0,state:te})}b&&S.sort(((e,t)=>
2e.sortKey-t.sortKey));for(const t of S){const i=t.state;if(e.terrain&&e.terrain.setupElevationDraw(i.tile,i.program,{useDepthForOcclusion:f.depthOcclusionForSymbolsAndCircles,labelPlaneMatrixInv:i.labelPlaneMatrixInv}),d.activeTexture.set(p.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,p.CLAMP_TO_EDGE),i.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),e.uploadCommonLightUniforms(e.context,i.program),i.hasHalo){const n=i.uniformValues;n.u_is_halo=1,TT(i.buffers,t.segments,r,e,i.program,x,u,h,n,2),n.u_is_halo=0}else{if(i.isSDF){const n=i.uniformValues;i.hasHalo&&(n.u_is_halo=1,TT(i.buffers,t.segments,r,e,i.program,x,u,h,n,1)),n.u_is_halo=0}TT(i.buffers,t.segments,r,e,i.program,x,u,h,i.uniformValues,1)}}}function TT(e,t,r,i,n,s,o,a,l,c){const u=[e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer,e.iconTransitioningVertexBuffer,e.globeExtVertexBuffer,e.zOffsetVertexBuffer];n.draw(i,i.context.gl.TRIANGLES,s,o,a,nb.disabled,l,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),u,c)}function CT(e,t,r,i,n,s,o){const a=e.context.gl,l=r.paint.get("fill-pattern"),c=l&&l.constantOr(1);let u,h,d,p,f;o?(h=c&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",u=a.LINES):(h=c?"fillPattern":"fill",u=a.TRIANGLES);for(const m of i){const i=t.getTile(m);if(c&&!i.patternsLoaded())continue;const g=i.getBucket(r);if(!g)continue;e.prepareDrawTile();const y=g.programConfigurations.get(r.id),v=e.isTileAffectedByFog(m),_=e.getOrCreateProgram(h,{config:y,overrideFog:v});c&&(e.context.activeTexture.set(a.TEXTURE0),i.imageAtlasTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),y.updatePaintBuffers());const b=l.constantOr(null);if(b&&i.imageAtlas){const e=i.imageAtlas.patternPositions[b.toString()];e&&y.setConstantPatternPositions(e)}const x=e.translatePosMatrix(m.projMatrix,i,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor")),w=r.paint.get("fill-emissive-strength");if(o){p=g.indexBuffer2,f=g.segments2;const t=e.terrain&&e.terrain.renderingToTexture?e.terrain.drapeBufferSize:[a.drawingBufferWidth,a.drawingBufferHeight];d="fillOutlinePattern"===h&&c?ZS(x,w,e,i,t):QS(x,w,t)}else p=g.indexBuffer,f=g.segments,d=c?YS(x,w,e,i):WS(x,w);e.uploadCommonUniforms(e.context,_,m.toUnwrapped()),_.draw(e,u,n,e.stencilModeForClipping(m),s,nb.disabled,d,r.id,g.layoutVertexBuffer,p,f,r.paint,e.transform.zoom,y,void 0)}}function IT(e,t,r,i,n,s,o,a){const l=e.context,c=l.gl,u=e.transform,h=r.paint.get("fill-extrusion-pattern"),d=h.constantOr(1),p=r.paint.get("fill-extrusion-opacity"),f=e.style.enable3dLights(),m=r.paint.get(f&&!d?"fill-extrusion-ambient-occlusion-wall-radius":"fill-extrusion-ambient-occlusion-radius"),g=[r.paint.get("fill-extrusion-ambient-occlusion-intensity"),m],y=r.layout.get("fill-extrusion-edge-radius"),v=y>0&&!r.paint.get("fill-extrusion-rounded-roof"),_=v?0:y,b="globe"===u.projection.name?rw():0,x="globe"===u.projection.name,w=x?pp(u.zoom):0,A=[Mp(u.center.lng),kp(u.center.lat)],E=r.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0,3),S=r.paint.get("fill-extrusion-flood-light-intensity"),T=r.paint.get("fill-extrusion-vertical-scale"),C=SS(e,r.paint.get("fill-extrusion-cutoff-fade-range")),I=[];let P;x&&I.push("PROJECTION_GLOBE_VIEW"),g[0]>0&&I.push("FAUX_AO"),v&&I.push("ZERO_ROOF_RADIUS"),a&&I.push("HAS_CENTROID"),S>0&&I.push("FLOOD_LIGHT"),C.shouldRenderCutoff&&I.push("RENDER_CUTOFF");const M="shadow"===e.renderPass,k=e.shadowRenderer,O=M&&!!k;e.shadowRenderer&&(e.shadowRenderer.useNormalOffset=!0);let R=[0,0,0];if(k){const t=e.style.directionalLight,r=e.style.ambientLight;t&&r&&(R=xC(t,r)),P=I.concat(["SHADOWS_SINGLE_CASCADE"])}const D=O?"fillExtrusionDepth":d?"fillExtrusionPattern":"fillExtrusion";for(const f of i){const i=t.getTile(f),m=i.getBucket(r);if(!m||m.projection.name!==u.projection.name)continue;let y=!1;k&&(y=0===k.getMaxCascadeForTile(f.toUnwrapped()));const v=e.isTileAffectedByFog(f),O=m.programConfigurations.get(r.id),L=e.getOrCreateProgram(D,{config:O,defines:y?P:I,overrideFog:v});if(e.terrain){const t=e.terrain;e.style.terrainSetForDrapingOnly(),t.setupElevationDraw(i,L,{useMeterToDem:!0})}if(!m.centroidVertexBuffer){const e=L.attributes.a_centroid_pos;void 0!==e&&c.vertexAttrib2f(e,0,0)}!M&&k&&k.setupShadows(i.tileID.toUnwrapped(),L,"vector-tile",i.tileID.overscaledZ
2),d&&(e.context.activeTexture.set(c.TEXTURE0),i.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),O.updatePaintBuffers());const B=h.constantOr(null);if(B&&i.imageAtlas){const e=i.imageAtlas.patternPositions[B.toString()];e&&O.setConstantPatternPositions(e)}const z=r.paint.get("fill-extrusion-vertical-gradient");let j;if(M&&k){if(DT(i.tileID,m,e))continue;const t=k.calculateShadowPassMatrixFromTile(i.tileID.toUnwrapped());j=qS(t,_,T)}else{const t=e.translatePosMatrix(f.projMatrix,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),n=u.projection.createInversionMatrix(u,f.canonical);j=d?HS(t,e,z,p,g,_,f,i,b,w,A,n,E,T):GS(t,e,z,p,g,_,f,b,w,A,n,E,T,S,R)}e.uploadCommonUniforms(l,L,f.toUnwrapped(),null,C);const F=[];(e.terrain||a)&&F.push(m.centroidVertexBuffer),x&&F.push(m.layoutVertexExtBuffer),L.draw(e,l.gl.TRIANGLES,n,s,o,nb.backCCW,j,r.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,r.paint,e.transform.zoom,O,F)}e.shadowRenderer&&(e.shadowRenderer.useNormalOffset=!1)}function PT(e,t,r,i,n,s,o,a,l,c,u,h,d,p,f,m,g,y,v){const _=e.context,b=_.gl,x=e.transform,w=e.transform.zoom,A=[],E=SS(e,r.paint.get("fill-extrusion-cutoff-fade-range"));"clear"===c?(A.push("CLEAR_SUBPASS"),v&&(A.push("CLEAR_FROM_TEXTURE"),_.activeTexture.set(b.TEXTURE0),v.bind(b.LINEAR,b.CLAMP_TO_EDGE))):"sdf"===c&&A.push("SDF_SUBPASS"),g&&A.push("HAS_CENTROID"),E.shouldRenderCutoff&&A.push("RENDER_CUTOFF");const S=r.layout.get("fill-extrusion-edge-radius"),T=(t,i,c,y,b)=>{const x=i.programConfigurations.get(r.id),T=e.isTileAffectedByFog(t),C=e.getOrCreateProgram("fillExtrusionGroundEffect",{config:x,defines:A,overrideFog:T}),I=((e,t,r,i,n,s,o,a,l,c,u)=>({u_matrix:t,u_opacity:r,u_ao_pass:i?1:0,u_meter_to_tile:n,u_ao:s,u_flood_light_intensity:o,u_flood_light_color:a,u_attenuation:l,u_edge_radius:c,u_fb:0,u_fb_size:u}))(0,y,u,l,b,[h,d*b],p,f,m,w>=17?0:S*b,v?v.size[0]:0),P=[];g&&P.push(i.hiddenByLandmarkVertexBuffer),e.uploadCommonUniforms(_,C,t.toUnwrapped(),null,E),C.draw(e,_.gl.TRIANGLES,n,s,o,a,I,r.id,i.vertexBuffer,i.indexBuffer,c,r.paint,w,x,P)};for(const n of i){const i=t.getTile(n),s=i.getBucket(r);if(!s||s.projection.name!==x.projection.name||!s.groundEffect||s.groundEffect&&!s.groundEffect.hasData())continue;const o=s.groundEffect,a=1/s.tileToMeter;{const t=e.translatePosMatrix(n.projMatrix,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),s=o.getDefaultSegment();T(n,o,s,t,a)}if(y)for(let s=0;s<4;s++){const o=kd[s](n),l=t.getTile(o);if(!l)continue;const c=l.getBucket(r);if(!c||c.projection.name!==x.projection.name||!c.groundEffect||c.groundEffect&&!c.groundEffect.hasData())continue;const u=c.groundEffect;let h,d;0===s?(h=[-oi,0,0],d=1):1===s?(h=[oi,0,0],d=0):2===s?(h=[0,-oi,0],d=3):(h=[0,oi,0],d=2);const p=u.regionSegments[d];if(!p)continue;const f=new Float32Array(16);hd.translate(f,n.projMatrix,h),T(n,u,p,e.translatePosMatrix(f,i,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),a)}}}function MT(e,t,r,i,n,s,o){0===i.centroidVertexArray.length&&i.createCentroidsBuffer();const a=s?s.findDEMTileFor(r):null;if(!(a&&a.dem||o))return;const l=e=>{const r=t.getSource().minzoom,i=e=>{const r=t.getTileByID(e);if(r&&r.hasData())return r.getBucket(n)},s=[0,-1,1];for(const t of s){if(e.overscaledZ+t<r)continue;const n=i(e.calculateScaledKey(e.overscaledZ+t));if(n)return n}},c=[0,0,0],u=(e,t)=>(c[0]=Math.min(e.min.y,t.min.y),c[1]=Math.max(e.max.y,t.max.y),c[2]=oi-t.min.x>e.max.x?t.min.x-oi:e.max.x,c),h=(e,t)=>(c[0]=Math.min(e.min.x,t.min.x),c[1]=Math.max(e.max.x,t.max.x),c[2]=oi-t.min.y>e.max.y?t.min.y-oi:e.max.y,c),d=[(e,t)=>u(e,t),(e,t)=>u(t,e),(e,t)=>h(e,t),(e,t)=>h(t,e)],p=(e,t,i,n,o,l,c)=>{if(!s)return 0;const u=[[l?i:e,l?e:i,0],[l?i:t,l?t:i,0]],h=c<0?oi+c:c,d=[l?h:(e+t)/2,l?(e+t)/2:h,0];return 0===i&&c<0||0!==i&&c>0?s.getForTilePoints(o,[d],!0,n):u.push(d),s.getForTilePoints(r,u,!0,a),Math.max(u[0][2],u[1][2],d[2])/s.exaggeration()};for(let e=0;e<4;e++){const t=i.borderFeatureIndices[e];if(0===t.length)continue;const n=kd[e](r),a=l(n);if(!(a&&a instanceof Qx))continue;if(i.borderDoneWithNeighborZ[e]===a.canonical.z)continue;0===a.centroidVertexArray.length&&a.createCentroidsBuffer();const c=s?s.findDEMTileFor(n):null;if(!(c&&c.dem||o))continue;const u=(e<2?1:5)-e,h=a.borderDoneWithNeighborZ[u]!==i.canonical.z,y=a.borderFeatureIndices[u];let _=0;if(i.canonical.z!==a.canonical.z){for(const e of t)i.showCentroid(i.featuresOnBorder[e]);if(h)for(const e of y)a.showCentroid(a.featuresOnBorder[e]);i.borderDoneWithNeighborZ[e]=a.canonical.z,a.borderDoneWithNeighborZ[u]=i.canonical.z}for(const r of t){const t=i.featuresOnBorder[r],s=i.centroidData[t.centroidDataIndex],l=t.borders[e];let h;for(;_<y.length;){h=a.featuresOnBorder[y[_]];const e=h.borders[u];if(e[1]>l[0]+3||e[0]>l[0]-3)break;a.showCentroid(h),_++}if(h&&_<y.length){const r=_;let b=0;for(;!(h.borders[u][0]>l[1]-3)&&(b++,++_!==y.length);)h=a.featuresOnBorder[y[_]];if(h=a.featuresOnBorder[y[r]],b>1){const e=h.borders[u];Math.abs(l[0]-e[0])<3&&Math.abs(l[1]-e[1])<3&&(b=1,_=r+1)}else if(0===b){i.showCentroid(t);continue}const x=a.centroidData[h.centroidDataIndex];o&&1===b&&(((m=s).flags|(g=x).flags)&zx?(m.flags|=zx,g.flags|=zx):(m.flags&=2147483647,g.flags&=2147483647));let w=new v(0,0);if(b>1)_=r;else if(c&&c.dem&&!(t.intersectsCount()>1||h.intersectsCount()>1)){const t=d[e](s,x),r=e%2?8191:0;f=p(t[0],Math.min(8191,t[1]),r,c,n,e<2,t[2]),w=new v(Math.ceil(7*(f+450)),0)}s.centroidXY=x.centroidXY=w,i.writeCentroidToBuffer(s),a.writeCentroidToBuffer(x)}else i.showCentroid(t)}i.borderDoneWithNeighborZ[e]=a.canonical.z,a.borderDoneWithNeighborZ[u]=i.canonical.z}var f,m,g;(i.needsCentroidUpdate||!i.centroidVertexBuffer&&0!==i.centroidVertexArray.length)&&i.uploadCentroid(e)}const kT=[1,0,0],OT=[0,1,0],RT=[0,0,1];function DT(e,t,r){const i=r.transform,n=r.shadowRenderer;if(!n)return!0;const s=e.toUnwrapped(),o=i.tileSize*n._cascades[r.currentShadowCascade].scale;let a=t.maxHeight;if(i.elevation){const t=i.elevation.getMinMaxForTile(e);t&&(a+=t.max)}const l=[...n.shadowDirection];l[2]=-l[2];const c=n.computeSimplifiedTileShadowVolume(s,a,o,l);if(!c)return!1;const u=[kT,OT,RT,l,[l[0],0,l[2]],[0,l[1],l[2]]],h="globe"===i.projection.name,d=i.scaleZoom(o),p=jd.fromInvProjectionMatrix(i.invProjMatrix,i.worldSize,d,!h),f=n.getCurrentCascadeFrustum();return 0===p.intersectsPrecise(c.vertices,c.planes,u)||0===f.intersectsPrecise(c.vertices,c.planes,u)}const LT=new lr(1,0,0,1),BT=new lr(0,1,0,1),zT=new lr(0,0,1,1),jT=new lr(1,0,1,1),FT=new lr(0,1,1,1);function NT(e,t,r){const i=e.context,n=e.transform,s=i.gl,o="globe"===n.projection.name,a=o?["PROJECTION_GLOBE_VIEW"]:[];let l=r.projMatrix;if(o&&pp(n.zoom)>0){const e=cp(Jd(r.canonical,n));l=hd.multiply(new Float32Array(16),n.globeMatrix,e),hd.multiply(l,n.projMatrix,l)}const c=e.getOrCreateProgram("debug",{defines:a}),u=t.getTileByID(r.key);e.terrain&&e.terrain.setupElevationDraw(u,c);const h=K_.disabled,d=$_.disabled,p=e.colorModeForRenderPass(),f="$debug";i.activeTexture.set(s.TEXTURE0),e.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),o?u._makeGlobeTileDebugBuffers(e.context,n):u._makeDebugTileBoundsBuffers(e.context,n.projection);const m=u._tileDebugBuffer||e.debugBuffer,g=u._tileDebugIndexBuffer||e.debugIndexBuffer,y=u._tileDebugSegments||e.debugSegments;c.draw(e,s.LINE_STRIP,h,d,p,nb.disabled,KS(l,lr.red),f,m,g,y,null,null,null,[u._globeTileDebugBorderBuffer]);const v=u.latestRawTileData,_=Math.floor((v&&v.byteLength||0)/1024),b=t.getTile(r).tileSize,x=512/Math.min(b,512)*(r.overscaledZ/n.zoom)*.5;let w=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(w+=` => ${r.overscaledZ}`),w+=` ${_}kb`,function(e,t){e.initDebugOverlayCanvas();const r=e.debugOverlayCanvas,i=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,r.width,r.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}(e,w);const A=u._tileDebugTextBuffer||e.debugBuffer,E=u._tileDebugTextIndexBuffer||e.quadTriangleIndexBuffer,S=u._tileDebugTextSegments||e.debugSegments;c.draw(e,s.TRIANGLES,h,d,tb.alphaBlended,nb.disabled,KS(l,lr.transparent,x),f,A,E,S,null,null,null,[u._globeTileDebugTextBuffer])}
2function UT(e,t,r,i){GT(e,0,t+r/2,e.transform.width,r,i)}function VT(e,t,r,i){GT(e,t-r/2,0,r,e.transform.height,i)}function GT(e,t,r,i,n,s){const o=e.context,a=o.gl;a.enable(a.SCISSOR_TEST),a.scissor(t*ut.devicePixelRatio,r*ut.devicePixelRatio,i*ut.devicePixelRatio,n*ut.devicePixelRatio),o.clear({color:s}),a.disable(a.SCISSOR_TEST)}const qT=pl([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:HT}=qT;function WT(e,t,r,i){e.emplaceBack(t,r,i)}class YT{constructor(e){this.vertexArray=new Ol,this.indices=new Rl,WT(this.vertexArray,-1,-1,1),WT(this.vertexArray,1,-1,1),WT(this.vertexArray,-1,1,1),WT(this.vertexArray,1,1,1),WT(this.vertexArray,-1,-1,-1),WT(this.vertexArray,1,-1,-1),WT(this.vertexArray,-1,1,-1),WT(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=e.createVertexBuffer(this.vertexArray,HT),this.indexBuffer=e.createIndexBuffer(this.indices),this.segment=nc.simpleSegment(0,0,36,12)}}function QT(e,t,r,i,n,s){const o=e.context.gl,a=t.paint.get("sky-atmosphere-color"),l=t.paint.get("sky-atmosphere-halo-color"),c=t.paint.get("sky-atmosphere-sun-intensity"),u=((e,t,r,i,n)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:r,u_color_tint_r:[i.r,i.g,i.b,i.a],u_color_tint_m:[n.r,n.g,n.b,n.a],u_luminance:5e-5}))(cd.fromMat4(cd.create(),i),n,c,a,l);o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+s,t.skyboxTexture,0),r.draw(e,o.TRIANGLES,K_.disabled,$_.disabled,tb.unblended,nb.frontCW,u,"skyboxCapture",t.skyboxGeometry.vertexBuffer,t.skyboxGeometry.indexBuffer,t.skyboxGeometry.segment)}const ZT=pl([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class XT{constructor(e){const t=new zl;t.emplaceBack(-1,1,1,0,0),t.emplaceBack(1,1,1,1,0),t.emplaceBack(1,-1,1,1,1),t.emplaceBack(-1,-1,1,0,1);const r=new Rl;r.emplaceBack(0,1,2),r.emplaceBack(2,3,0),this.vertexBuffer=e.createVertexBuffer(t,ZT.members),this.indexBuffer=e.createIndexBuffer(r),this.segments=nc.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const KT=pl([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_size_scale",components:1},{type:"Float32",name:"a_fade_opacity",components:1}]);class JT{constructor(){this.colorModeAlphaBlendedWriteRGB=new tb([1,eb,1,eb],lr.transparent,[!0,!0,!0,!1]),this.colorModeWriteAlpha=new tb([1,0,1,0],lr.transparent,[!1,!1,!1,!0])}update(e){const t=e.context;if(!this.atmosphereBuffer){this.atmosphereBuffer=new XT(t);const e=100,r=200,i=function(){const e=qn(30),t=[];for(let r=0;r<16e3;++r){const r=2*Math.PI*e(),i=Math.acos(1-2*e())-.5*Math.PI;t.push(yd.fromValues(Math.cos(i)*Math.cos(r),Math.cos(i)*Math.sin(r),Math.sin(i)))}return t}(),n=qn(300),s=new jl,o=new Rl;let a=0;for(let t=0;t<i.length;++t){const l=yd.scale([],i[t],200),c=Math.max(0,1+.01*e*(1*n()-.5)),u=Math.max(0,1+.01*r*(1*n()-.5));s.emplaceBack(l[0],l[1],l[2],-1,-1,c,u),s.emplaceBack(l[0],l[1],l[2],1,-1,c,u),s.emplaceBack(l[0],l[1],l[2],1,1,c,u),s.emplaceBack(l[0],l[1],l[2],-1,1,c,u),o.emplaceBack(a+0,a+1,a+2),o.emplaceBack(a+0,a+2,a+3),a+=4}this.starsVx=t.createVertexBuffer(s,KT.members),this.starsIdx=t.createIndexBuffer(o),this.starsSegments=nc.simpleSegment(0,0,s.length,o.length)}}destroy(){this.atmosphereBuffer&&this.atmosphereBuffer.destroy(),this.starsVx&&this.starsVx.destroy(),this.starsIdx&&this.starsIdx.destroy()}drawAtmosphereGlow(e,t){const r=e.context,i=r.gl,n=e.transform,s=new K_(i.LEQUAL,K_.ReadOnly,[0,1]),o=pp(n.zoom),a=t.properties.get("color").toArray01(),l=t.properties.get("high-color").toArray01(),c=t.properties.get("space-color").toArray01PremultipliedAlpha(),u=5e-4,h=M((t.properties.get("horizon-blend")-0)/1*.2495+u,5e-4,.25),d=mp(e,r,n)&&h===u?n.worldSize/(2*Math.PI*1.025)-1:n.globeRadius,p=e.frameCounter/1e3%1,f=yd.length(n.globeCenterInViewSpace),m=Math.sqrt(Math.pow(f,2)-Math.pow(d,2)),g=Math.acos(m/f),y=t=>{const u="globe"===n.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"];t&&u.push("ALPHA_PASS");const d=e.getOrCreateProgram("globeAtmosphere",{defines:u}),f=((e,t,r,i,n,s,o,a,l,c,u,h)=>({u_frustum_tl:e,u_frustum_tr:t,u_frustum_br:r,u_frustum_bl:i,u_horizon:n,u_transition:s,u_fadeout_range:o,u_color:a,u_high_color:l,u_space_color:c,u_temporal_offset:u,u_horizon_angle:h}))(n.frustumCorners.TL,n.frustumCorners.TR,n.frustumCorners.BR,n.frustumCorners.BL,n.frustumCorners.horizon,o,h,a,l,c,p,g);e.uploadCommonUniforms(r,d);const m=this.atmosphereBuffer;m&&d.draw(e,i.TRIANGLES,s,$_.disabled,t?this.colorModeWriteAlpha:this.colorModeAlphaBlendedWriteRGB,nb.backCW,f,t?"atmosphere_glow_alpha":"atmosphere_glow",m.vertexBuffer,m.indexBuffer,m.segments)};y(!1),y(!0)}drawStars(e,t){const r=M(t.properties.get("star-intensity"),0,1);if(0===r)return;const i=e.context,n=i.gl,s=e.transform,o=e.getOrCreateProgram("stars"),a=pd.identity([]);pd.rotateX(a,a,-s._pitch),pd.rotateZ(a,a,-s.angle),pd.rotateX(a,a,w(s._center.lat)),pd.rotateY(a,a,-w(s._center.lng));const l=hd.fromQuat(new Float32Array(16),a),c=hd.multiply([],s.starsProjMatrix,l),u=cd.fromMat4([],l),h=cd.invert([],u),d=[0,1,0];yd.transformMat3(d,d,h),yd.scale(d,d,.15);const p=[1,0,0];yd.transformMat3(p,p,h),yd.scale(p,p,.15);const f=((e,t,r,i)=>({u_matrix:Float32Array.from(e),u_up:t,u_right:r,u_intensity_multiplier:i}))(c,d,p,r);e.uploadCommonUniforms(i,o),this.starsVx&&this.starsIdx&&o.draw(e,n.TRIANGLES,K_.disabled,$_.disabled,this.colorModeAlphaBlendedWriteRGB,nb.disabled,f,"atmosphere_stars",this.starsVx,this.starsIdx,this.starsSegments)}}function $T(e,t){const r=[...e],i=t.cameraWorldSizeForFog/t.worldSize,n=hd.identity([]);return hd.scale(n,n,[i,i,1]),hd.multiply(r,n,r),hd.multiply(r,t.worldToFogMatrix,r),r}function eC(e,t,r,i){const n=r.material,s=i.context,{baseColorTexture:o,metallicRoughnessTexture:a}=n.pbrMetallicRoughness,{normalTexture:l,occlusionTexture:c,emissionTexture:u}=n;function h(t,r,i){if(t&&(e.push(r),s.activeTexture.set(s.gl.TEXTURE0+i),t.gfxTexture)){const{minFilter:e,magFilter:r,wrapS:i,wrapT:n}=t.sampler;t.gfxTexture.bindExtraParam(e,r,i,n)}}h(o,"HAS_TEXTURE_u_baseColorTexture",cT),h(a,"HAS_TEXTURE_u_metallicRoughnessTexture",uT),h(l,"HAS_TEXTURE_u_normalTexture",hT),h(c,"HAS_TEXTURE_u_occlusionTexture",dT),h(u,"HAS_TEXTURE_u_emissionTexture",pT),r.texcoordBuffer&&(e.push("HAS_ATTRIBUTE_a_uv_2f"),t.push(r.texcoordBuffer)),r.colorBuffer&&(e.push(12===r.colorBuffer.itemSize?"HAS_ATTRIBUTE_a_color_3f":"HAS_ATTRIBUTE_a_color_4f"),t.push(r.colorBuffer)),r.normalBuffer&&(e.push("HAS_ATTRIBUTE_a_normal_3f"),t.push(r.normalBuffer)),r.pbrBuffer&&(e.push("HAS_ATTRIBUTE_a_pbr"),e.push("HAS_ATTRIBUTE_a_heightBasedEmissiveStrength"),t.push(r.pbrBuffer)),"OPAQUE"!==n.alphaMode&&"MASK"!==n.alphaMode||e.push("UNPREMULT_TEXTURE_IN_SHADER"),n.defined||e.push("DIFFUSE_SHADED"),e.push("USE_STANDARD_DERIVATIVES")}function tC(e,t,r,i,n,s){const o=r.paint.get("model-opacity"),a=t.context,l=new K_(t.context.gl.LEQUAL,K_.ReadWrite,t.depthRangeFor3D),c=t.transform,u=e.mesh,h=u.material,d=h.pbrMetallicRoughness,p=t.style.fog;let f;
2f="pixels"===t.transform.projection.zAxisUnit?[...e.nodeModelMatrix]:hd.multiply([],i.zScaleMatrix,e.nodeModelMatrix),hd.multiply(f,i.negCameraPosMatrix,f);const m=hd.invert([],f);hd.transpose(m,m);const g=mT(new Float32Array(e.worldViewProjection),new Float32Array(f),new Float32Array(m),t,o,d.baseColorFactor,h.emissiveFactor,d.metallicFactor,d.roughnessFactor,h,r),y={defines:[]},v=[];eC(y.defines,v,u,t);const _=t.shadowRenderer;_&&(_.useNormalOffset=!1);let b=null;if(p){const r=$T(e.nodeModelMatrix,t.transform);if(b=new Float32Array(r),"globe"!==c.projection.name){const e=u.aabb.min,t=u.aabb.max,[i,n]=p.getOpacityForBounds(r,e[0],e[1],t[0],t[1]);y.overrideFog=i>=Nw||n>=Nw}}const x=SS(t,r.paint.get("model-cutoff-fade-range"));x.shouldRenderCutoff&&y.defines.push("RENDER_CUTOFF");const w=t.getOrCreateProgram("model",y);t.uploadCommonUniforms(a,w,null,b,x),"shadow"!==t.renderPass&&_&&_.setupShadowsFromMatrix(e.nodeModelMatrix,w),w.draw(t,a.gl.TRIANGLES,l,n,s,u.material.doubleSided?nb.disabled:nb.backCCW,g,r.id,u.vertexBuffer,u.indexBuffer,u.segments,r.paint,t.transform.zoom,void 0,v)}function rC(e,t,r,i,n,s,o){let a;a="globe"===e.projection.name?ex(r,e):[...r],hd.multiply(a,a,t.matrix);const l=hd.multiply([],i,a);if(t.meshes)for(const e of t.meshes){if("BLEND"!==e.material.alphaMode){o.push({mesh:e,depth:0,modelIndex:n,worldViewProjection:l,nodeModelMatrix:a});continue}const t=yd.transformMat4([],e.centroid,l);t[2]>0&&s.push({mesh:e,depth:t[2],modelIndex:n,worldViewProjection:l,nodeModelMatrix:a})}if(t.children)for(const a of t.children)rC(e,a,r,i,n,s,o)}function iC(e,t,r,i){const n=r.shadowRenderer;if(!n)return;const s=n.getShadowPassDepthMode(),o=n.getShadowPassColorMode(),a=n.calculateShadowPassMatrixFromMatrix(t),l=yT(a);r.getOrCreateProgram("modelDepth",{defines:["DEPTH_TEXTURE"]}).draw(r,r.context.gl.TRIANGLES,s,$_.disabled,o,nb.backCCW,l,i.id,e.vertexBuffer,e.indexBuffer,e.segments,i.paint,r.transform.zoom,void 0,void 0)}function nC(e,t,r){const i=t.updateZoomBasedPaintProperties(),n=function(e,t,r){let i,n,s,o=e.terrain?e.terrain.exaggeration():0;if(e.terrain&&o>0){const t=e.terrain,n=t.findDEMTileFor(r);n&&n.dem?i=kg.create(t,r,n):o=0}if(0===o&&(t.terrainElevationMin=0,t.terrainElevationMax=0),o===t.validForExaggeration&&(0===o||i&&i._demTile&&i._demTile.tileID===t.validForDEMTile.id&&i._dem._timestamp===t.validForDEMTile.timestamp))return!1;for(const e in t.instancesPerModel){const r=t.instancesPerModel[e];for(let e=0;e<r.instancedDataArray.length;++e){const a=(i?o*i.getElevationAt(0|r.instancedDataArray.float32[16*e],0|r.instancedDataArray.float32[16*e+1],!0,!0):0)+r.instancesEvaluatedElevation[e];r.instancedDataArray.float32[16*e+6]=a,n=n?Math.min(t.terrainElevationMin,a):a,s=s?Math.max(t.terrainElevationMax,a):a}}return t.terrainElevationMin=n||0,t.terrainElevationMax=s||0,t.validForExaggeration=o,t.validForDEMTile=i&&i._demTile?{id:i._demTile.tileID,timestamp:i._dem._timestamp}:{id:void 0,timestamp:0},!0}(e,t,r);(i||n)&&(t.uploaded=!1,t.upload(e.context))}const sC={shadowUniformsInitialized:!1,useSingleShadowCascade:!1,tileMatrix:new Float64Array(16),shadowTileMatrix:new Float32Array(16),aabb:new Fd([0,0,0],[oi,oi,0])};function oC(e,t){const r=1<<e.canonical.z,i=t.getFreeCameraOptions().position,n=t.elevation,s=e.canonical.x/r,o=(e.canonical.x+1)/r,a=e.canonical.y/r,l=(e.canonical.y+1)/r;let c=t._centerAltitude;if(n){const t=n.getMinMaxForTile(e);t&&t.max>c&&(c=t.max)}const u=M(i.x,s,o)-i.x,h=M(i.y,a,l)-i.y,d=Op(c,t.center.lat)-i.z;return t._zoomFromMercatorZ(Math.sqrt(u*u+h*h+d*d))}function aC(e,t,r,i,n,s,o){const a=e.context,l="shadow"===e.renderPass,c=e.shadowRenderer,u=l&&c?c.getShadowPassDepthMode():new K_(a.gl.LEQUAL,K_.ReadWrite,e.depthRangeFor3D),h=e.isTileAffectedByFog(s);if(r.meshes)for(const d of r.meshes){const p=["MODEL_POSITION_ON_GPU"],f=[];let m,g,y;i.instancedDataArray.length>20&&p.push("INSTANCED_ARRAYS");const v=SS(e,t.paint.get("model-cutoff-fade-range"));if(v.shouldRenderCutoff&&p.push("RENDER_CUTOFF"),l&&c)m=e.getOrCreateProgram("modelDepth",{defines:p}),g=yT(o.shadowTileMatrix,o.shadowTileMatrix,Float32Array.from(r.matrix)),y=c.getShadowPassColorMode();else{eC(p,f,d,e),m=e.getOrCreateProgram("model",{defines:p,overrideFog:h});const i=d.material,l=i.pbrMetallicRoughness,u=t.paint.get("model-opacity");g=mT(s.projMatrix,Float32Array.from(r.matrix),new Float32Array(16),e,u,l.baseColorFactor,i.emissiveFactor,l.metallicFactor,l.roughnessFactor,i,t,n),c&&(o.shadowUniformsInitialized?m.setShadowUniformValues(a,c.getShadowUniformValues()):(c.setupShadows(s.toUnwrapped(),m,"model-tile",s.overscaledZ
2),o.shadowUniformsInitialized=!0)),y=v.shouldRenderCutoff||u<1||"OPAQUE"!==i.alphaMode?tb.alphaBlended:tb.unblended}e.uploadCommonUniforms(a,m,s.toUnwrapped(),null,v);const _=d.material.doubleSided?nb.disabled:nb.backCCW;if(i.instancedDataArray.length>20)f.push(i.instancedDataBuffer),m.draw(e,a.gl.TRIANGLES,u,$_.disabled,y,_,g,t.id,d.vertexBuffer,d.indexBuffer,d.segments,t.paint,e.transform.zoom,void 0,f,i.instancedDataArray.length);else{const r=l?"u_instance":"u_normal_matrix";for(let n=0;n<i.instancedDataArray.length;++n)g[r]=new Float32Array(i.instancedDataArray.arrayBuffer,64*n,16),m.draw(e,a.gl.TRIANGLES,u,$_.disabled,y,_,g,t.id,d.vertexBuffer,d.indexBuffer,d.segments,t.paint,e.transform.zoom,void 0,f)}}if(r.children)for(const a of r.children)aC(e,t,a,i,n,s,o)}const lC=[1,-1,1];function cC(e,t,r,i){if(!r.modelManager)return!0;const n=r.modelManager;if(!r.shadowRenderer)return!0;const s=r.shadowRenderer,o=t.aabb;let a=!0,l=e.maxHeight;if(0===l){let t=0;for(const r in e.instancesPerModel){const e=n.getModel(r,i);e?t=Math.max(t,Math.max(Math.max(e.aabb.max[0],e.aabb.max[1]),e.aabb.max[2])):a=!1}l=e.maxScale*t*1.41+e.maxVerticalOffset,a&&(e.maxHeight=l)}o.max[2]=l,o.min[2]+=e.terrainElevationMin,o.max[2]+=e.terrainElevationMax,yd.transformMat4(o.min,o.min,t.tileMatrix),yd.transformMat4(o.max,o.max,t.tileMatrix);const c=o.intersects(s.getCurrentCascadeFrustum());return 0===r.currentShadowCascade&&(e.isInsideFirstShadowMapFrustum=2===c),0===c}class uC{}class hC{constructor(){this._storage=new Map}getLinesFromTrianglesBuffer(e,t,r){{const r=this._storage.get(t.id);if(r)return r.lastUsedFrameIdx=e,r.buf}const i=r.gl,n=i.getBufferParameter(i.ELEMENT_ARRAY_BUFFER,i.BUFFER_SIZE),s=new ArrayBuffer(n),o=new Int16Array(s);i.getBufferSubData(i.ELEMENT_ARRAY_BUFFER,0,new Int16Array(s));const a=new Cl;for(let e=0;e<n/2;e+=3){const t=o[e],r=o[e+1],i=o[e+2];a.emplaceBack(t,r),a.emplaceBack(r,i),a.emplaceBack(i,t)}const l=r.bindVertexArrayOES.current,c=new uC;return c.buf=new u_(r,a),c.lastUsedFrameIdx=e,this._storage.set(t.id,c),r.bindVertexArrayOES.set(l),c.buf}update(e){for(const[t,r]of this._storage)e-r.lastUsedFrameIdx>30&&(r.buf.destroy(),this._storage.delete(t))}destroy(){for(const[e,t]of this._storage)t.buf.destroy(),this._storage.delete(e)}}const dC={symbol:function(e,t,r,i,n){if("translucent"!==e.renderPass)return;const s=$_.disabled,o=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,t,r,i,n,s,o){const a=t.transform,l="map"===n,c="map"===s;for(const t of e){const e=i.getTile(t),n=e.getBucket(r);if(!n||!n.text||!n.text.segments.get().length)continue;const s=Qg(n.textSizeData,a.zoom),u=wE(t,n.getProjection(),a),h=a.calculatePixelsToTileUnitsMatrix(e),d=Db(u,e.tileID.canonical,c,l,a,n.getProjection(),h),p=n.hasIconTextFit()&&n.hasIconData();if(s){const r=Math.pow(2,a.zoom-e.tileID.overscaledZ);AT(n,l,c,o,Zg,a,d,t,r,s,p)}}}(i,e,r,t,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),n),0!==r.paint.get("icon-opacity").constantOr(1)&&ST(e,t,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),s,o),0!==r.paint.get("text-opacity").constantOr(1)&&ST(e,t,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),s,o),t.map.showCollisionBoxes&&(bT(e,t,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),bT(e,t,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(e,t,r,i){if("translucent"!==e.renderPass)return;const n=r.paint.get("circle-opacity"),s=r.paint.get("circle-stroke-width"),o=r.paint.get("circle-stroke-opacity"),a=void 0!==r.layout.get("circle-sort-key").constantOr(1),l=r.paint.get("circle-emissive-strength");if(0===n.constantOr(1)&&(0===s.constantOr(1)||0===o.constantOr(1)))return;const c=e.context,u=c.gl,h=e.transform,d=e.depthModeForSublayer(0,K_.ReadOnly),p=$_.disabled,f=e.colorModeForDrapableLayerRenderPass(l),m="globe"===h.projection.name,g=[Mp(h.center.lng),kp(h.center.lat)],y=[];for(let n=0;n<i.length;n++){const s=i[n],o=t.getTile(s),l=o.getBucket(r);
2if(!l||l.projection.name!==h.projection.name)continue;const c=l.programConfigurations.get(r.id),u=Af(r),d=e.isTileAffectedByFog(s);m&&u.push("PROJECTION_GLOBE_VIEW");const p=e.getOrCreateProgram("circle",{config:c,defines:u,overrideFog:d}),f=l.layoutVertexBuffer,v=l.globeExtVertexBuffer,_=l.indexBuffer,b=h.projection.createInversionMatrix(h,s.canonical),x={programConfiguration:c,program:p,layoutVertexBuffer:f,globeExtVertexBuffer:v,indexBuffer:_,uniformValues:wf(e,s,o,b,g,r),tile:o};if(a){const e=l.segments.get();for(const t of e)y.push({segments:new nc([t]),sortKey:t.sortKey,state:x})}else y.push({segments:l.segments,sortKey:0,state:x})}a&&y.sort(((e,t)=>e.sortKey-t.sortKey));const v={useDepthForOcclusion:h.depthOcclusionForSymbolsAndCircles};for(const t of y){const{programConfiguration:i,program:n,layoutVertexBuffer:s,globeExtVertexBuffer:o,indexBuffer:a,uniformValues:l,tile:m}=t.state,g=t.segments;e.terrain&&e.terrain.setupElevationDraw(m,n,v),e.uploadCommonUniforms(c,n,m.tileID.toUnwrapped()),n.draw(e,u.TRIANGLES,d,p,f,nb.disabled,l,r.id,s,a,g,r.paint,h.zoom,i,[o])}},heatmap:function(e,t,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){const n=e.context,s=n.gl,o=$_.disabled,a=new tb([s.ONE,s.ONE,s.ONE,s.ONE],lr.transparent,[!0,!0,!0,!0]);!function(e,t,r,i){const n=e.gl,s=t.width*i,o=t.height*i;e.activeTexture.set(n.TEXTURE1),e.viewport.set([0,0,s,o]);let a=r.heatmapFbo;if(!a||a&&(a.width!==s||a.height!==o)){a&&a.destroy();const t=n.createTexture();n.bindTexture(n.TEXTURE_2D,t),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.L
2INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),a=r.heatmapFbo=e.createFramebuffer(s,o,!0,null),function(e,t,r,i,n,s){const o=e.gl;o.texImage2D(o.TEXTURE_2D,0,e.extRenderToTextureHalfFloat?o.RGBA16F:o.RGBA,n,s,0,o.RGBA,e.extRenderToTextureHalfFloat?o.HALF_FLOAT:o.UNSIGNED_BYTE,null),i.colorAttachment.set(r)}(e,0,t,a,s,o)}else n.bindTexture(n.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer)}(n,e,r,"globe"===e.transform.projection.name?.5:.25),n.clear({color:lr.transparent});const l=e.transform,c="globe"===l.projection.name,u=c?["PROJECTION_GLOBE_VIEW"]:[],h=c?nb.frontCCW:nb.disabled,d=[Mp(l.center.lng),kp(l.center.lat)];for(let p=0;p<i.length;p++){const f=i[p];if(t.hasRenderableParent(f))continue;const m=t.getTile(f),g=m.getBucket(r);if(!g||g.projection.name!==l.projection.name)continue;const y=e.isTileAffectedByFog(f),v=g.programConfigurations.get(r.id),_=e.getOrCreateProgram("heatmap",{config:v,defines:u,overrideFog:y}),{zoom:b}=e.transform;e.terrain&&e.terrain.setupElevationDraw(m,_),e.uploadCommonUniforms(n,_,f.toUnwrapped());const x=l.projection.createInversionMatrix(l,f.canonical);_.draw(e,s.TRIANGLES,K_.disabled,o,a,h,$S(e,f,m,x,d,b,r.paint.get("heatmap-intensity")),r.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,r.paint,e.transform.zoom,v,c?[g.globeExtVertexBuffer]:null)}n.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,t){const r=e.context,i=r.gl,n=t.heatmapFbo;if(!n)return;r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);let s=t.colorRampTexture;s||(s=t.colorRampTexture=new Kv(r,t.colorRamp,i.RGBA)),s.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.getOrCreateProgram("heatmapTexture").draw(e,i.TRIANGLES,K_.disabled,$_.disabled,e.colorModeForRenderPass(),nb.disabled,((e,t)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,t),t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom)}(e,r))},line:function(e,t,r,i){if("translucent"!==e.renderPass)return;const n=r.paint.get("line-opacity"),s=r.paint.get("line-width");if(0===n.constantOr(1)||0===s.constantOr(1))return;const o=r.paint.get("line-emissive-strength"),a=e.depthModeForSublayer(0,K_.ReadOnly),l=e.colorModeForDrapableLayerRenderPass(o),c=e.terrain&&e.terrain.renderingToTexture?1:ut.devicePixelRatio,u=r.paint.get("line-dasharray"),h=u.constantOr(1),d=r.layout.get("line-cap"),p=r.paint.get("line-pattern"),f=p.constantOr(1),m=r.paint.get("line-pattern").constantOr(1),g=1!==r.paint.get("line-opacity").constantOr(1);let y=!m&&g;const v=r.paint.get("line-gradient"),_=f?"linePattern":"line",b=e.context,x=b.gl,w=yw(r);e.terrain&&e.terrain.clipOrMaskOverlapStencilType()&&(y=!1);for(const n of i){const i=t.getTile(n);if(f&&!i.patternsLoaded())continue;const s=i.getBucket(r);if(!s)continue;e.prepareDrawTile();const o=s.programConfigurations.get(r.id),m=e.isTileAffectedByFog(n),g=e.getOrCreateProgram(_,{config:o,defines:w,overrideFog:m}),A=p.constantOr(null);if(A&&i.imageAtlas){const e=i.imageAtlas.patternPositions[A.toString()];e&&o.setConstantPatternPositions(e)}const E=u.constantOr(null),S=d.constantOr(null);if(!f&&E&&S&&i.lineAtlas){const e=i.lineAtlas.getDash(E,S);e&&o.setConstantPatternPositions(e)}let[T,C]=r.paint.get("line-trim-offset");if("round"===S||"square"===S){const e=1;T!==C&&(0===T&&(T-=e),1===C&&(C+=e))}const I=e.terrain?n.projMatrix:null,P=f?fw(e,i,r,I,c):pw(e,i,r,I,s.lineClipsArray.length,c,[T,C]);if(v){const i=s.gradients[r.id];let o=i.texture;if(r.gradientVersion!==i.version){let a=256;if(r.stepInterpolant){const r=t.getSource().maxzoom,i=n.canonical.z===r?Math.ceil(1<<e.transform.maxZoom-n.canonical.z):1;a=M(N(s.maxLineLength/oi*1024*i),256,b.maxTextureSize)}i.gradient=jf({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:a,image:i.gradient||void 0,clips:s.lineClipsArray}),i.texture?i.texture.update(i.gradient):i.texture=new Kv(b,i.gradient,x.RGBA),i.version=r.gradientVersion,o=i.texture}b.activeTexture.set(x.TEXTURE1),o.bind(r.stepInterpolant?x.NEAREST:x.LINEAR,x.CLAMP_TO_EDGE)}h&&(b.activeTexture.set(x.TEXTURE0),i.lineAtlasTexture.bind(x.LINEAR,x.REPEAT),o.updatePaintBuffers()),f&&(b.activeTexture.set(x.TEXTURE0),i.imageAtlasTexture.bind(x.LINEAR,x.CLAMP_TO_EDGE),o.updatePaintBuffers()),e.uploadCommonUniforms(b,g,n.toUnwrapped());const k=t=>{g.draw(e,x.TRIANGLES,a,t,l,nb.disabled,P,r.id,s.layoutVertexBuffer,s.indexBuffer,s.segments,r.paint,e.transform.zoom,o,[s.layoutVertexBuffer2])};if(y){const t=e.stencilModeForClipping(n).ref;0===t&&e.terrain&&b.clear({stencil:0});const r={func:x.EQUAL,mask:255};P.u_alpha_discard_threshold=.8,k(new $_(r,t,255,x.KEEP,x.KEEP,x.INVERT)),P.u_alpha_discard_threshold=0,k(new $_(r,t,255,x.KEEP,x.KEEP,x.KEEP))}else k(e.stencilModeForClipping(n))}y&&(e.resetStencilClippingMasks(),e.terrain&&b.clear({stencil:0}))},fill:function(e,t,r,i){const n=r.paint.get("fill-color"),s=r.paint.get("fill-opacity");if(0===s.constantOr(1))return;const o=r.paint.get("fill-emissive-strength"),a=e.colorModeForDrapableLayerRenderPass(o),l=r.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===n.constantOr(lr.transparent).a&&1===s.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){const n=e.depthModeForSublayer(1,"opaque"===e.renderPass?K_.ReadWrite:K_.ReadOnly);CT(e,t,r,i,n,a,!1)}if("translucent"===e.renderPass&&r.paint.get("fill-antialias")){const n=e.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,K_.ReadOnly);CT(e,t,r,i,n,a,!0)}},"fill-extrusion":function(e,t,r,i){const n=r.paint.get("fill-extrusion-opacity"),s=e.context,o=s.gl,a=e.terrain,l=a&&a.renderingToTexture,c=r.paint.get("fill-extrusion-cutoff-fade-range");if(0===n)return;const u=e.conflationActive&&e.layerUsedInConflation(r,t.getSource());if(u&&function(e,t,r,i){for(const n of i){const i=t.getTile(n).getBucket(r);
2i&&(i.updateReplacement(n,e.replacementSource),i.uploadCentroid(e.context))}}(e,t,r,i),a||u)for(const n of i){const i=t.getTile(n).getBucket(r);i&&MT(e.context,t,n,i,r,a,u)}if("shadow"===e.renderPass&&e.shadowRenderer){const s=e.shadowRenderer;if(a&&n<.65&&r._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof vs)return;const o=s.getShadowPassDepthMode(),l=s.getShadowPassColorMode();IT(e,t,r,i,o,$_.disabled,l,u)}else if("translucent"===e.renderPass){const h=!r.paint.get("fill-extrusion-pattern").constantOr(1);if(!l){const s=new K_(e.context.gl.LEQUAL,K_.ReadWrite,e.depthRangeFor3D);0===c&&1===n&&h?IT(e,t,r,i,s,$_.disabled,tb.unblended,u):(IT(e,t,r,i,s,$_.disabled,tb.disabled,u),IT(e,t,r,i,s,e.stencilModeFor3D(),e.colorModeForRenderPass(),u),e.resetStencilClippingMasks())}if(e.style.enable3dLights()&&h&&(!a&&"globe"!==e.transform.projection.name||l)){const n=r.paint.get("fill-extrusion-opacity"),c=r.paint.get("fill-extrusion-ambient-occlusion-intensity"),h=r.paint.get("fill-extrusion-ambient-occlusion-ground-radius"),d=r.paint.get("fill-extrusion-flood-light-intensity"),p=r.paint.get("fill-extrusion-flood-light-color").toArray01().slice(0,3),f=c>0&&h>0,m=d>0,g=(e,t,r)=>(1-r)*e+r*t,y=s=>{const a=e.depthModeForSublayer(1,K_.ReadOnly,o.LEQUAL,!0),l=r.paint.get(s?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),f=g(.1,3,l),m=e._showOverdrawInspector;if(!m){const l=new $_({func:o.ALWAYS,mask:255},255,255,o.KEEP,o.KEEP,o.REPLACE),m=new tb([o.ONE,o.ONE,o.ONE,o.ONE],lr.transparent,[!1,!1,!1,!0],o.MIN);PT(e,t,r,i,a,l,m,nb.disabled,s,"sdf",n,c,h,d,p,f,u,!1)}{const l=m?$_.disabled:new $_({func:o.EQUAL,mask:255},255,255,o.KEEP,o.DECR,o.DECR),g=m?e.colorModeForRenderPass():new tb([o.ONE_MINUS_DST_ALPHA,o.DST_ALPHA,o.ONE,o.ONE],lr.transparent,[!0,!0,!0,!0]);PT(e,t,r,i,a,l,g,nb.disabled,s,"color",n,c,h,d,p,f,u,!1)}};if(l){const l=(s,a,l)=>{const f=e.depthModeForSublayer(1,K_.ReadOnly,o.LEQUAL,!1),m=r.paint.get(s?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),y=g(.1,3,m);{const l=new tb([o.ONE,o.ONE,o.ONE,o.ONE],lr.transparent,[!1,!1,!1,!0]);PT(e,t,r,i,f,$_.disabled,l,nb.disabled,s,"clear",n,c,h,d,p,y,u,a)}{const l=new $_({func:o.ALWAYS,mask:255},255,255,o.KEEP,o.KEEP,o.REPLACE),m=new tb([o.ONE,o.ONE,o.ONE,o.ONE],lr.transparent,[!1,!1,!1,!0],o.MIN);PT(e,t,r,i,f,l,m,nb.disabled,s,"sdf",n,c,h,d,p,y,u,a)}{const l=s?o.ZERO:o.ONE_MINUS_DST_ALPHA,m=new $_({func:o.EQUAL,mask:255},255,255,o.KEEP,o.DECR,o.DECR),g=new tb([l,o.DST_ALPHA,o.ONE_MINUS_DST_ALPHA,o.ZERO],lr.transparent,[!0,!0,!0,!0]);PT(e,t,r,i,f,m,g,nb.disabled,s,"color",n,c,h,d,p,y,u,a)}{const m=new tb([o.ONE,o.ONE,o.ONE,s?o.ZERO:o.ONE],lr.transparent,[!1,!1,!1,!0],s?o.FUNC_ADD:o.MAX);PT(e,t,r,i,f,$_.disabled,m,nb.disabled,s,"clear",n,c,h,d,p,y,u,a,l)}};if(f||m){let t;if(e.prepareDrawTile(),a){const e=a.drapeBufferSize[0],r=a.drapeBufferSize[1];t=a.framebufferCopyTexture,t&&(!t||t.size[0]===e&&t.size[1]===r)||(t&&t.destroy(),t=a.framebufferCopyTexture=new Kv(s,new Df({width:e,height:r}),o.RGBA)),t.bind(o.LINEAR,o.CLAMP_TO_EDGE),o.copyTexImage2D(o.TEXTURE_2D,0,o.RGBA,0,0,e,r,0)}f&&l(!0,!1,t),m&&l(!1,!0,t)}}else f&&y(!0),m&&y(!1)}}},hillshade:function(e,t,r,i){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;const n=e.context,s=e.terrain&&e.terrain.renderingToTexture,[o,a]="translucent"!==e.renderPass||s?[{},i]:e.stencilConfigForOverlap(i);for(const i of a){const n=t.getTile(i);if(n.needsHillshadePrepare&&"offscreen"===e.renderPass)xS(e,n,r);else if("translucent"===e.renderPass){const t=e.depthModeForSublayer(0,K_.ReadOnly),a=r.paint.get("hillshade-emissive-strength"),l=e.colorModeForDrapableLayerRenderPass(a),c=s&&e.terrain?e.terrain.stencilModeForRTTOverlap(i):o[i.overscaledZ];_S(e,i,n,r,t,c,l)}}n.viewport.set([0,0,e.width,e.height]),e.resetStencilClippingMasks()},raster:function(e,t,r,i,n,s){if("translucent"!==e.renderPass)return;if(0===r.paint.get("raster-opacity"))return;const o=e.context,a=o.gl,l=t.getSource(),c=function(e,t,r){const i=[];let n,s;if(e.paint.get("raster-color")){i.push("RASTER_COLOR"),n=e.paint.get("raster-color-mix"),s=e.paint.get("raster-color-range"),t.activeTexture.set(r.TEXTURE2);let o=e.colorRampTexture;o||(o=e.colorRampTexture=new Kv(t,e.colorRamp,r.RGBA)),o.bind(r.LINEAR,r.CLAMP_TO_EDGE)}return{mix:n,range:s,defines:i}}(r,o,a),u=c.defines;let h=!1;if(l instanceof Tw&&!i.length){if("globe"!==e.transform.projection.name)return;if(l.onNorthPole)h=!0,u.push("PROJECTION_GLOBE_VIEW");else{if(!l.onSouthPole)return;h=!0,u.push("PROJECTION_GLOBE_VIEW")}}const d=e.colorModeForDrapableLayerRenderPass(),p=e.terrain&&e.terrain.renderingToTexture,f=!e.options.moving,m="nearest"===r.paint.get("raster-resampling")?a.NEAREST:a.LINEAR;if(h){const i=t.getSource();if(!(i instanceof Tw))return;const n=i.texture;if(!n)return;const s=e.globeSharedBuffers;if(!s)return;const l=new K_(a.LEQUAL,K_.ReadWrite,e.depthRangeFor3D),u=Float32Array.from(e.transform.projMatrix);let h=fp(0,0,e.transform);const p=Float32Array.from(lp(Xd(new Cd(0,0,0)))),f={opacity:1,mix:0};e.terrain&&e.terrain.prepareDrawTile(),o.activeTexture.set(a.TEXTURE0),n.bind(m,a.CLAMP_TO_EDGE),o.activeTexture.set(a.TEXTURE1),n.bind(m,a.CLAMP_TO_EDGE),n.useMipmap&&o.extTextureFilterAnisotropic&&e.transform.pitch>20&&a.texParameterf(a.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax);const[g,y,v,_]=s.getPoleBuffers(0,!0);let b;i.onNorthPole?(b=g,e.renderDefaultNorthPole=!1):(h=hd.scale(hd.create(),h,[1,-1,1]),b=y,e.renderDefaultSouthPole=!1);const x=eT(u,p,h,[0,0],1,f,r,i.perspectiveTransform||[0,0],2,c.mix||[0,0,0,0],c.range||[0,0]),w=e.getOrCreateProgram("raster",{defines:c.defines});return e.uploadCommonUniforms(o,w,null),void w.draw(e,a.TRIANGLES,l,$_.disabled,d,nb.disabled,x,r.id,b,v,_)}if(!i.length)return;const[g,y]=l instanceof Tw||p?[{},i]:e.stencilConfigForOverlap(i),v=y[y.length-1].overscaledZ;for(const i of y){const n=p?K_.disabled:e.depthModeForSublayer(i.overscaledZ-v,1===r.paint.get("raster-opacity")?K_.ReadWrite:K_.ReadOnly,a.LESS),u=i.toUnwrapped(),h=t.getTile(i);if(p&&(!h||!h.hasData()))continue;if(!h.texture)continue;const y=p?i.projMatrix:e.transform.calculateProjMatrix(u,f),_=e.terrain&&p?e.terrain.stencilModeForRTTOverlap(i):g[i.overscaledZ],b=s?0:r.paint.get("raster-fade-duration");h.registerFadeDuration(b);const x=t.findLoadedParent(i,0),w=OS(h,x,t,e.transform,b);let A,E;e.terrain&&e.terrain.prepareDrawTile(),o.activeTexture.set(a.TEXTURE0),h.texture.bind(m,a.CLAMP_TO_EDGE),o.activeTexture.set(a.TEXTURE1),x?(x.texture.bind(m,a.CLAMP_TO_EDGE),A=Math.pow(2,x.tileID.overscaledZ-h.tileID.overscaledZ
2),E=[h.tileID.canonical.x*A%1,h.tileID.canonical.y*A%1]):h.texture.bind(m,a.CLAMP_TO_EDGE),h.texture.useMipmap&&o.extTextureFilterAnisotropic&&e.transform.pitch>20&&a.texParameterf(a.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax);const S=l instanceof Tw?l.perspectiveTransform:[0,0],T=new Float32Array(16),C=eT(y,T,T,E||[0,0],A||1,w,r,S,2,c.mix||[0,0,0,0],c.range||[0,0]),I=e.isTileAffectedByFog(i),P=e.getOrCreateProgram("raster",{defines:c.defines,overrideFog:I});if(e.uploadCommonUniforms(o,P,u),l instanceof Tw)l.boundsBuffer&&l.boundsSegments&&P.draw(e,a.TRIANGLES,n,$_.disabled,d,nb.disabled,C,r.id,l.boundsBuffer,e.quadTriangleIndexBuffer,l.boundsSegments);else{const{tileBoundsBuffer:t,tileBoundsIndexBuffer:i,tileBoundsSegments:s}=e.getTileBoundsBuffers(h);P.draw(e,a.TRIANGLES,n,_,d,nb.disabled,C,r.id,t,i,s)}}e.resetStencilClippingMasks()},background:function(e,t,r,i){const n=r.paint.get("background-color"),s=r.paint.get("background-opacity"),o=r.paint.get("background-emissive-strength");if(0===s)return;const a=e.context,l=a.gl,c=e.transform,u=c.tileSize,h=r.paint.get("background-pattern");if(e.isPatternMissing(h,r.scope))return;const d=!h&&1===n.a&&1===s&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==d)return;const p=$_.disabled,f=e.depthModeForSublayer(0,"opaque"===d?K_.ReadWrite:K_.ReadOnly),m=e.colorModeForDrapableLayerRenderPass(o),g=h?"backgroundPattern":"background";let y,v=i;v||(y=e.getBackgroundTiles(),v=Object.values(y).map((e=>e.tileID))),h&&(a.activeTexture.set(l.TEXTURE0),e.imageManager.bind(e.context,r.scope));for(const d of v){const v=e.isTileAffectedByFog(d),_=e.getOrCreateProgram(g,{overrideFog:v}),b=d.toUnwrapped(),x=i?d.projMatrix:e.transform.calculateProjMatrix(b);e.prepareDrawTile();const w=t?t.getTile(d):y?y[d.key]:new l_(d,u,c.zoom,e),A=h?lT(x,o,s,e,h,r.scope,{tileID:d,tileSize:u}):aT(x,o,s,n);e.uploadCommonUniforms(a,_,b);const{tileBoundsBuffer:E,tileBoundsIndexBuffer:S,tileBoundsSegments:T}=e.getTileBoundsBuffers(w);_.draw(e,l.TRIANGLES,f,p,m,nb.disabled,A,r.id,E,S,T)}},sky:function(e,t,r){const i=e._atmosphere?pp(e.transform.zoom):1,n=r.paint.get("sky-opacity")*i;if(0===n)return;const s=e.context,o=r.paint.get("sky-type"),a=new K_(s.gl.LEQUAL,K_.ReadOnly,[0,1]),l=e.frameCounter/1e3%1;"atmosphere"===o?"offscreen"===e.renderPass?r.needsSkyboxCapture(e)&&(function(e,t){const r=e.context,i=r.gl;let n=t.skyboxFbo;if(!n){n=t.skyboxFbo=r.createFramebuffer(32,32,!0,null),t.skyboxGeometry=new YT(r),t.skyboxTexture=r.gl.createTexture(),i.bindTexture(i.TEXTURE_CUBE_MAP,t.skyboxTexture),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MAG_FILTER,i.LINEAR);for(let e=0;e<6;++e)i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,i.RGBA,32,32,0,i.RGBA,i.UNSIGNED_BYTE,null)}r.bindFramebuffer.set(n.framebuffer),r.viewport.set([0,0,32,32]);const s=t.getCenter(e,!0),o=e.getOrCreateProgram("skyboxCapture"),a=new Float64Array(16);hd.identity(a),hd.rotateY(a,a,.5*-Math.PI),QT(e,t,o,a,s,0),hd.identity(a),hd.rotateY(a,a,.5*Math.PI),QT(e,t,o,a,s,1),hd.identity(a),hd.rotateX(a,a,.5*-Math.PI),QT(e,t,o,a,s,2),hd.identity(a),hd.rotateX(a,a,.5*Math.PI),QT(e,t,o,a,s,3),hd.identity(a),QT(e,t,o,a,s,4),hd.identity(a),hd.rotateY(a,a,Math.PI),QT(e,t,o,a,s,5),r.viewport.set([0,0,e.width,e.height])}(e,r),r.markSkyboxValid(e)):"sky"===e.renderPass&&function(e,t,r,i,n){const s=e.context,o=s.gl,a=e.transform,l=e.getOrCreateProgram("skybox");s.activeTexture.set(o.TEXTURE0),o.bindTexture(o.TEXTURE_CUBE_MAP,t.skyboxTexture);const c=((e,t,r,i,n)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:i,u_temporal_offset:n}))(a.skyboxMatrix,t.getCenter(e,!1),0,i,n);e.uploadCommonUniforms(s,l),l.draw(e,o.TRIANGLES,r,$_.disabled,e.colorModeForRenderPass(),nb.backCW,c,"skybox",t.skyboxGeometry.vertexBuffer,t.skyboxGeometry.indexBuffer,t.skyboxGeometry.segment)}(e,r,a,n,l):"gradient"===o&&"sky"===e.renderPass&&function(e,t,r,i,n){const s=e.context,o=s.gl,a=e.transform,l=e.getOrCreateProgram("skyboxGradient");t.skyboxGeometry||(t.skyboxGeometry=new YT(s)),s.activeTexture.set(o.TEXTURE0);let c=t.colorRampTexture;c||(c=t.colorRampTexture=new Kv(s,t.colorRamp,o.RGBA)),c.bind(o.LINEAR,o.CLAMP_TO_EDGE);const u=((e,t,r,i,n)=>({u_matrix:e,u_color_ramp:0,u_center_direction:t,u_radius:w(r),u_opacity:i,u_temporal_offset:n}))(a.skyboxMatrix,t.getCenter(e,!1),t.paint.get("sky-gradient-radius"),i,n);e.uploadCommonUniforms(s,l),l.draw(e,o.TRIANGLES,r,$_.disabled,e.colorModeForRenderPass(),nb.backCW,u,"skyboxGradient",t.skyboxGeometry.vertexBuffer,t.skyboxGeometry.indexBuffer,t.skyboxGeometry.segment)}(e,r,a,n,l)},debug:function(e,t,r){for(let i=0;i<r.length;i++)NT(e,t,r[i])},custom:function(e,t,r,i){const n=e.context,s=r.implementation;if(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes("custom")||e.terrain&&(e.terrain.renderingToTexture||"offscreen"===e.renderPass)&&r.isLayerDraped(t)){if("offscreen"===e.renderPass){const t=s.prerender;if(t){if(e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),"globe"===e.transform.projection.name){const r=e.transform.pointMerc;t.call(s,n.gl,e.transform.customLayerMatrix(),e.transform.getProjection(),e.transform.globeToMercatorMatrix(),pp(e.transform.zoom),[r.x,r.y],e.transform.pixelsPerMeterRatio)}else t.call(s,n.gl,e.transform.customLayerMatrix());n.setDirty(),e.setBaseState()}}else if("translucent"===e.renderPass){if(e.terrain&&e.terrain.renderingToTexture){const t=s.renderToTile;if(t){const r=i[0].canonical,o=new Up(r.x+i[0].wrap*(1<<r.z),r.y,r.z);
2n.setDepthMode(K_.disabled),n.setStencilMode($_.disabled),n.setColorMode(e.colorModeForRenderPass()),e.setCustomLayerDefaults(),t.call(s,n.gl,o),n.setDirty(),e.setBaseState()}return}e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),n.setStencilMode($_.disabled);const t="3d"===s.renderingMode?new K_(e.context.gl.LEQUAL,K_.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,K_.ReadOnly);if(n.setDepthMode(t),"globe"===e.transform.projection.name){const t=e.transform.pointMerc;s.render(n.gl,e.transform.customLayerMatrix(),e.transform.getProjection(),e.transform.globeToMercatorMatrix(),pp(e.transform.zoom),[t.x,t.y],e.transform.pixelsPerMeterRatio)}else s.render(n.gl,e.transform.customLayerMatrix());n.setDirty(),e.setBaseState(),n.bindFramebuffer.set(null)}}else Q("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")},model:function(e,t,r,i){if("opaque"===e.renderPass)return;const n=r.paint.get("model-opacity");if(0===n)return;const s=r.paint.get("model-cast-shadows");if("shadow"===e.renderPass){if(!s)return;if(e.terrain&&n<.65&&r._transitionablePaint._values["model-opacity"].value.expression instanceof vs)return}const o=e.shadowRenderer,a=r.paint.get("model-receive-shadows");o&&(o.useNormalOffset=!0,a||(o.enabled=!1));const l=()=>{o&&(o.useNormalOffset=!0,a||(o.enabled=!0))},c=t.getSource();if("light-beam"===e.renderPass&&"batched-model"!==c.type)return;if("vector"===c.type||"geojson"===c.type)return function(e,t,r,i){const n=e.transform;if("mercator"!==n.projection.name)return void Q(`Drawing 3D models for ${n.projection.name} projection is not yet implemented`);const s=n.getFreeCameraOptions().position;if(!e.modelManager)return;const o=e.modelManager,a=e.shadowRenderer;if(!r._unevaluatedLayout._values.hasOwnProperty("model-id"))return;const l=r._unevaluatedLayout._values["model-id"],c={...r.layout.get("model-id").parameters};for(const u of i){const i=t.getTile(u).getBucket(r);if(!i||i.projection.name!==n.projection.name)continue;const h=oC(u,n);c.zoom=h;const d=l.possiblyEvaluate(c);if(nC(e,i,u),sC.shadowUniformsInitialized=!1,sC.useSingleShadowCascade=!!a&&0===a.getMaxCascadeForTile(u.toUnwrapped()),"shadow"===e.renderPass&&a){if(1===e.currentShadowCascade&&i.isInsideFirstShadowMapFrustum)continue;const t=n.calculatePosMatrix(u.toUnwrapped(),n.worldSize);if(sC.tileMatrix.set(t),sC.shadowTileMatrix=Float32Array.from(a.calculateShadowPassMatrixFromMatrix(t)),sC.aabb.min.fill(0),sC.aabb.max[0]=sC.aabb.max[1]=oi,sC.aabb.max[2]=0,cC(i,sC,e,r.scope))continue}const p=1<<u.canonical.z,f=[((s.x-u.wrap)*p-u.canonical.x)*oi,(s.y*p-u.canonical.y)*oi,s.z*p*oi];for(let t in i.instancesPerModel){const n=i.instancesPerModel[t];n.features.length>0&&(t=d.evaluate(n.features[0].feature,{}));const s=o.getModel(t,r.scope);if(s&&s.uploaded)for(const t of s.nodes)aC(e,r,t,n,f,u,sC)}}}(e,t,r,i),void l();if(!c.loaded())return;if("batched-model"===c.type)return function(e,t,r,i){const n=e.context,s=e.transform,o=e.style.fog,a=e.shadowRenderer;if("mercator"!==s.projection.name)return void Q(`Drawing 3D landmark models for ${s.projection.name} projection is not yet implemented`);const l=e.transform.getFreeCameraOptions().position,c=yd.scale([],[l.x,l.y,l.z],e.transform.worldSize);yd.negate(c,c);const u=hd.identity([]),h=jp(s.center.lat,s.zoom),d=hd.fromScaling([],[1,1,1/h]);hd.translate(u,u,c);const p=r.paint.get("model-opacity"),f=new K_(n.gl.LEQUAL,K_.ReadWrite,e.depthRangeFor3D),m=new K_(n.gl.LEQUAL,K_.ReadOnly,e.depthRangeFor3D),g=function(l,c){for(const h of i){const i=t.getTile(h).getBucket(r);if(!i||!i.uploaded)continue;let g=!1;a&&(g=0===a.getMaxCascadeForTile(h.toUnwrapped()));const y=s.calculatePosMatrix(h.toUnwrapped(),s.worldSize),v=i.modelTraits;for(const t of i.getNodesInfo()){if(t.hiddenByReplacement)continue;if(!t.node.meshes)continue;const i=t.node,_="light-beam"===e.renderPass,b=[...y],x=t.evaluatedScale;let w=0;e.terrain&&i.elevation&&(w=i.elevation*e.terrain.exaggeration()),hd.translate(b,b,[(i.anchor?i.anchor[0]:0)*(x[0]-1),(i.anchor?i.anchor[1]:0)*(x[1]-1),w]),x!==rx&&hd.scale(b,b,x),hd.multiply(b,b,i.matrix);const A=hd.multiply([],d,b);hd.multiply(A,u,A);const E=hd.invert([],A);hd.transpose(E,E),hd.scale(E,E,lC);const S=hd.multiply([],s.projMatrix,b);for(let u=0;u<i.meshes.length;++u){const d=i.meshes[u],y=u===i.lightMeshIndex;if(y){if(!_&&!e.terrain&&e.shadowRenderer){e.currentLayer<e.firstLightBeamLayer&&(e.firstLightBeamLayer=e.currentLayer);continue}}else if(_)continue;const x={defines:[]},w=[];eC(x.defines,w,d,e),4&v||x.defines.push("DIFFUSE_SHADED"),g&&x.defines.push("SHADOWS_SINGLE_CASCADE");const T="shadow"===e.renderPass;if(T){iC(d,b,e,r);continue}let C=null;if(o){const t=$T(b,e.transform);if(C=new Float32Array(t),"globe"!==s.projection.name){const e=d.aabb.min,r=d.aabb.max,[i,n]=o.getOpacityForBounds(t,e[0],e[1],r[0],r[1]);x.overrideFog=i>=Nw||n>=Nw}}const I=e.getOrCreateProgram("model",x);!T&&a&&(a.useNormalOffset=!!d.normalBuffer,a.setupShadowsFromMatr
2ix(b,I,a.useNormalOffset)),e.uploadCommonUniforms(n,I,h.toUnwrapped(),C);const P=d.material,M=P.pbrMetallicRoughness;M.metallicFactor=.9,M.roughnessFactor=.5;const k=mT(new Float32Array(S),new Float32Array(A),new Float32Array(E),e,p,M.baseColorFactor,P.emissiveFactor,M.metallicFactor,M.roughnessFactor,P,r);I.draw(e,n.gl.TRIANGLES,c&&!y?f:m,$_.disabled,l?y||p<1||t.hasTranslucentParts?tb.alphaBlended:tb.unblended:tb.disabled,nb.backCCW,k,r.id,d.vertexBuffer,d.indexBuffer,d.segments,r.paint,e.transform.zoom,void 0,w)}}}};(function(e,t,r,i){const n=e.terrain?e.terrain.exaggeration():0,s=e.transform.zoom;for(const o of i){const i=t.getTile(o).getBucket(r);i&&(e.conflationActive&&i.updateReplacement(o,e.replacementSource),i.evaluateScale(e,r),e.terrain&&n>0&&i.elevationUpdate(e.terrain,n,o,r.source),i.needsReEvaluation(e,s,r)&&i.evaluate(r))}})(e,t,r,i),1===p?g(!0,!0):(g(!1,!0),g(!0,!1))}(e,t,r,i),void l();const u=c.getModels(),h=[],d=e.transform.getFreeCameraOptions().position,p=yd.scale([],[d.x,d.y,d.z],e.transform.worldSize);yd.negate(p,p);const f=[],m=[];let g=0;for(const t of u){const i=r.paint.get("model-rotation").constantOr(null),n=r.paint.get("model-scale").constantOr(null),s=r.paint.get("model-translation").constantOr(null);t.computeModelMatrix(e,i,n,s,!0,!0,!1);const o=hd.identity([]),a=jp(t.position.lat,e.transform.zoom),l=hd.fromScaling([],[1,1,1/a]);hd.translate(o,o,p),h.push({zScaleMatrix:l,negCameraPosMatrix:o});for(const r of t.nodes)rC(e.transform,r,t.matrix,e.transform.projMatrix,g,f,m);g++}if(f.sort(((e,t)=>t.depth-e.depth)),"shadow"!==e.renderPass){if(1===n)for(const t of m)tC(t,e,r,h[t.modelIndex],$_.disabled,e.colorModeForRenderPass());else{for(const t of m)tC(t,e,r,h[t.modelIndex],$_.disabled,tb.disabled);for(const t of m)tC(t,e,r,h[t.modelIndex],e.stencilModeFor3D(),e.colorModeForRenderPass());e.resetStencilClippingMasks()}for(const t of f)tC(t,e,r,h[t.modelIndex],$_.disabled,e.colorModeForRenderPass());l()}else{for(const t of m)iC(t.mesh,t.nodeModelMatrix,e,r);for(const t of f)iC(t.mesh,t.nodeModelMatrix,e,r);l()}}},pC={modelUpload:function(e,t,r){const i=t.getSource();if(!i.loaded())return;
vendor: 5,591 bytes, line 2
2if("vector"===i.type||"geojson"===i.type)return void(e.modelManager&&e.modelManager.upload(e,r));if("batched-model"===i.type)return;const n=i.getModels();for(const t of n)t.upload(e.context)}};class fC{constructor(e,t){this.context=new sb(e),this.transform=t,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=ob.maxUnderzooming+ob.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={},this.conflationActive=!1,this.replacementSource=new Ax,this.longestCutoffRange=0,this.minCutoffZoom=0,this._fogVisible=!1,this._cachedTileFogOpacities={},this._shadowRenderer=new vC(this),this._wireframeDebugCache=new hC,this.renderDefaultNorthPole=!0,this.renderDefaultSouthPole=!0}updateTerrain(e,t){const r=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(r||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new BS(this,e));const i=this._terrain;this.transform.elevation=r?i:null,i.update(e,this.transform,t),this.transform.elevation&&!i.enabled&&(this.transform.elevation=null)}_updateFog(e){const t=e.fog;if(!t||"globe"===this.transform.projection.name||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[r,i]=t.getFovAdjustedRange(this.transform._fov);if(r>i)return void(this.transform.fogCullDistSq=null);const n=r+.78*(i-r);this.transform.fogCullDistSq=n*n}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}get shadowRenderer(){return this._shadowRenderer&&this._shadowRenderer.enabled?this._shadowRenderer:null}get wireframeDebugCache(){return this._wireframeDebugCache}resize(e,t){if(this.width=e*ut.devicePixelRatio,this.height=t*ut.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._mergedLayers[e].resize()}setup(){const e=this.context,r=new ml;r.emplaceBack(0,0),r.emplaceBack(oi,0),r.emplaceBack(0,oi),r.emplaceBack(oi,oi),this.tileExtentBuffer=e.createVertexBuffer(r,Ed.members),this.tileExtentSegments=nc.simpleSegment(0,0,4,2);const i=new ml;i.emplaceBack(0,0),i.emplaceBack(oi,0),i.emplaceBack(0,oi),i.emplaceBack(oi,oi),this.debugBuffer=e.createVertexBuffer(i,Ed.members),this.debugSegments=nc.simpleSegment(0,0,4,5);const n=new ml;n.emplaceBack(-1,-1),n.emplaceBack(1,-1),n.emplaceBack(-1,1),n.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(n,Ed.members),this.viewportSegments=nc.simpleSegment(0,0,4,2);const s=new yl;s.emplaceBack(0,0,0,0),s.emplaceBack(oi,0,oi,0),s.emplaceBack(0,oi,0,oi),s.emplaceBack(oi,oi,oi,oi),this.mercatorBoundsBuffer=e.createVertexBuffer(s,o_.members),this.mercatorBoundsSegments=nc.simpleSegment(0,0,4,2);const o=new Rl;o.emplaceBack(0,1,2),o.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(o);const a=new Nl;for(const e of[0,1,3,2,0])a.emplaceBack(e);this.debugIndexBuffer=e.createIndexBuffer(a),this.emptyTexture=new Kv(e,new Df({width:1,height:1},Uint8Array.of(0,0,0,0)),e.gl.RGBA),this.identityMat=hd.create();const l=this.context.gl;this.stencilClearMode=new $_({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(t.performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const e=this.context.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.getOrCreateProgram("clippingMask").draw(this,e.TRIANGLES,K_.disabled,this.stencilClearMode,tb.disabled,nb.disabled,kS(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(e,t,r){if(!t||this.currentStencilSource===t.id||!e.isTileClipped()||!r||0===r.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of r)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=t.id;const i=this.context,n=i.gl;this.nextStencilID+r.length>256&&this.clearStencil(),i.setColorMode(tb.disabled),i.setDepthMode(K_.disabled);const s=this.getOrCreateProgram("clippingMask");this._tileClippingMaskIDs={};for(const e of r){const r=t.getTile(e),i=this._tileClippingMaskIDs[e.key]=this.nextStencilID++,{tileBoundsBuffer:o,tileBoundsIndexBuffer:a,tileBoundsSegments:l}=this.getTileBoundsBuffers(r);s.draw(this,n.TRIANGLES,K_.disabled,new $_({func:n.ALWAYS,mask:0},i,255,n.KEEP,n.KEEP,n.REPLACE),tb.disabled,nb.disabled,kS(e.projMatrix),"$clipping",o,a,l)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,t=this.context.gl;return new $_({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(e);const t=this.context.gl;return new $_({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){const t=this.context.gl,r=e.sort(((e,t)=>
2t.overscaledZ-e.overscaledZ)),i=r[r.length-1].overscaledZ,n=r[0].overscaledZ-i+1;if(n>1){this.currentStencilSource=void 0,this.nextStencilID+n>256&&this.clearStencil();const e={};for(let r=0;r<n;r++)e[r+i]=new $_({func:t.GEQUAL,mask:255},r+this.nextStencilID,255,t.KEEP,t.KEEP,t.REPLACE);return this.nextStencilID+=n,[e,r]}return[{[i]:$_.disabled},r]}colorModeForRenderPass(){const e=this.context.gl;if(this._showOverdrawInspector){const t=1/8;return new tb([e.CONSTANT_COLOR,e.ONE,e.CONSTANT_COLOR,e.ONE],new lr(t,t,t,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?tb.unblended:tb.alphaBlended}colorModeForDrapableLayerRenderPass(e){const t=this.context.gl;return(()=>this.style&&this.style.enable3dLights()&&this.terrain&&this.terrain.renderingToTexture)()&&"translucent"===this.renderPass?new tb([t.ONE,t.ONE_MINUS_SRC_ALPHA,t.CONSTANT_ALPHA,t.ONE_MINUS_SRC_ALPHA],new lr(0,0,0,void 0===e?0:e),[!0,!0,!0,!0]):this.colorModeForRenderPass()}depthModeForSublayer(e,t,r,i=!1){if(!this.opaquePassEnabledForLayer()&&!i)return K_.disabled;const n=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new K_(r||this.context.gl.LEQUAL,t,[n,n])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(e,r){this._wireframeDebugCache.update(this.frameCounter),this.style=e,this.options=r;const i=this.style._mergedLayers,n=this.style.order,s=n.map((e=>i[e])),o=this.style._mergedSourceCaches;this.imageManager=e.imageManager,this.modelManager=e.modelManager,this.symbolFadeChange=e.placement.symbolFadeChange(ut.now()),this.imageManager.beginFrame();let a=0,l=!1;for(const e in o){const t=o[e];t.used&&(t.prepare(this.context),t.getSource().usedInConflation&&++a)}const c={},u={},h={},d={},p={};for(const e in o){const t=o[e];c[e]=t.getVisibleCoordinates(),u[e]=c[e].slice().reverse(),h[e]=t.getVisibleCoordinates(!0).reverse(),d[e]=t.getShadowCasterCoordinates(),p[e]=t.sortCoordinatesByDistance(c[e])}const f=e=>{const t=this.style.getLayerSourceCache(e);return t&&t.used?t.getSource():null};if(a){const e=[];for(const t of s)this.layerUsedInConflation(t,f(t))&&e.push(t);if(e&&e.length>1){const t=[];for(const r of e){const e=this.style.getLayerSourceCache(r);e&&e.used&&e.getSource().usedInConflation&&t.push({layer:r.fqid,cache:e})}this.replacementSource.setSources(t),l=!0}}l||this.replacementSource.clear(),this.conflationActive=l,this.minCutoffZoom=0,this.longestCutoffRange=0;for(const e of s){const t=e.cutoffRange();if(this.longestCutoffRange=Math.max(t,this.longestCutoffRange),t>0){const t=f(e);t&&(this.minCutoffZoom=Math.max(t.minzoom,this.minCutoffZoom)),e.minzoom&&(this.minCutoffZoom=Math.max(e.minzoom,this.minCutoffZoom))}}this.opaquePassCutoff=1/0;for(let e=0;e<s.length;e++)if(s[e].is3D()){this.opaquePassCutoff=e;break}const m=this.style&&this.style.fog;m?(this._fogVisible=0!==m.getOpacity(this.transform.pitch),this._fogVisible&&"globe"!==this.transform.projection.name&&(this._fogVisible=m.isVisibleOnFrustum(this.transform.cameraFrustum))):this._fogVisible=!1,this._cachedTileFogOpacities={},this.terrain&&(this.terrain.updateTileBinding(h),this.opaquePassCutoff=0);const g=this._shadowRenderer;if(g){g.updateShadowParameters(this.transform,this.style.directionalLight);for(const e in o)for(const t of c[e]){let e={min:0,max:0};this.terrain&&(e=this.terrain.getMinMaxForTile(t)||e),g.addShadowReceiver(t.toUnwrapped(),e.min,e.max)}}"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new Ep(this.context));for(const t of s){if(t.isHidden(this.transform.zoom))continue;const r=e.getLayerSourceCache(t);this.uploadLayer(this,t,r)}if(this.style.fog&&this.transform.projection.supportsFog?(this._atmosphere||(this._atmosphere=new JT),this._atmosphere.update(this)):this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),!Xe.has(this.context.gl))return;this.renderPass="offscreen";for(const t of s){const r=e.getLayerSourceCache(t);if(!t.hasOffscreenPass()||t.isHidden(this.transform.zoom))continue;const i=r?u[r.id]:void 0;("custom"===t.type||"raster"===t.type||t.isSky()||i&&i.length)&&this.renderLayer(this,r,t,i)}this.depthRangeFor3D=[0,1-(s.length+2)*this.numSublayers*this.depthEpsilon];const y=this.terrain;y&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&!this.transform.isOrthographic&&y.drawDepth(),this._shadowRenderer&&(this.renderPass="shadow",this._shadowRenderer.drawShadowPass(this.style,d)),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);const v="globe"===this.transform.projection.name||this.transform.isH
2orizonVisible(),_=(()=>{if(r.showOverdrawInspector)return lr.black;if(this.style.fog&&this.transform.projection.supportsFog&&!v){const e=this.style.fog.properties.get("color").toArray01();return new lr(...e)}if(this.style.fog&&this.transform.projection.supportsFog&&v){const e=this.style.fog.properties.get("space-color").toArray01();return new lr(...e)}return lr.transparent})();if(this.context.clear({color:_,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.renderPass="opaque",this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&v&&this._atmosphere.drawStars(this,this.style.fog),!this.terrain)for(this.currentLayer=n.length-1;this.currentLayer>=0;this.currentLayer--){const t=s[this.currentLayer],r=e.getLayerSourceCache(t);if(t.isSky())continue;const i=r?(t.is3D()?p:u)[r.id]:void 0;this._renderTileClippingMasks(t,r,i),this.renderLayer(this,r,t,i)}if(this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&v&&this._atmosphere.drawAtmosphereGlow(this,this.style.fog),this.renderPass="sky",(!this._atmosphere||pp(this.transform.zoom)>0)&&("globe"===this.transform.projection.name||this.transform.isHorizonVisible()))for(this.currentLayer=0;this.currentLayer<n.length;this.currentLayer++){const t=s[this.currentLayer],r=e.getLayerSourceCache(t);t.isSky()&&this.renderLayer(this,r,t,r?u[r.id]:void 0)}this.renderPass="translucent",this.currentLayer=0,this.firstLightBeamLayer=Number.MAX_SAFE_INTEGER;let b=0;for(g&&(b=g.getShadowCastingLayerCount());this.currentLayer<n.length;){const t=s[this.currentLayer],r=e.getLayerSourceCache(t);if(t.isSky()){++this.currentLayer;continue}if(y&&this.style.isLayerDraped(t)){if(t.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=y.renderBatch(this.currentLayer);continue}let i;if(r&&(i=("symbol"===t.type?h:t.is3D()?p:u)[r.id]),this._renderTileClippingMasks(t,r,r?c[r.id]:void 0),this.renderLayer(this,r,t,i),!y&&g&&b>0&&t.hasShadowPass()&&0==--b&&(g.drawGroundShadows(),this.firstLightBeamLayer<=this.currentLayer)){const t=this.currentLayer;for(this.renderPass="light-beam",this.currentLayer=this.firstLightBeamLayer;this.currentLayer<=t;this.currentLayer++){const t=s[this.currentLayer];if(!t.hasLightBeamPass())continue;const r=e.getLayerSourceCache(t);this.renderLayer(this,r,t,r?u[r.id]:void 0)}this.currentLayer=t,this.renderPass="translucent"}++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let t=null;
2s.forEach((r=>{const i=e.getLayerSourceCache(r);i&&!r.isHidden(this.transform.zoom)&&i.getVisibleCoordinates().length&&(!t||t.getSource().maxzoom<i.getSource().maxzoom)&&(t=i)})),t&&this.options.showTileBoundaries&&dC.debug(this,t,t.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;UT(e,e.transform.height-(t.top||0),3,LT),UT(e,t.bottom||0,3,BT),VT(e,t.left||0,3,zT),VT(e,e.transform.width-(t.right||0),3,jT);const r=e.transform.centerPoint;!function(e,t,r,i){GT(e,t-1,r-10,2,20,i),GT(e,t-10,r-1,20,2,i)}(e,r.x,e.transform.height-r.y,FT)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(t.performance.now()),this.saveCanvasCopy()),l||(this.conflationActive=!1)}uploadLayer(e,t,r){this.gpuTimingStart(t),(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes(t.type)||e.terrain&&"custom"===t.type)&&pC[`${t.type}Upload`]&&pC[`${t.type}Upload`](e,r,t.scope),this.gpuTimingEnd()}renderLayer(e,t,r,i){r.isHidden(this.transform.zoom)||("background"===r.type||"sky"===r.type||"custom"===r.type||"model"===r.type||"raster"===r.type||i&&i.length)&&(this.id=r.id,this.gpuTimingStart(r),(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes(r.type)||e.terrain&&"custom"===r.type)&&dC[r.type](e,t,r,i,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery,r=this.context.gl;let i=this.gpuTimers[e.id];i||(i=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:r.createQuery()}
2),i.calls++,r.beginQuery(t.TIME_ELAPSED_EXT,i.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const e=this.context.extTimerQuery,t=this.context.gl,r=t.createQuery();this.deferredRenderGpuTimeQueries.push(r),t.beginQuery(e.TIME_ELAPSED_EXT,r)}}gpuTimingDeferredRenderEnd(){this.options.gpuTimingDeferredRender&&this.context.gl.endQuery(this.context.extTimerQuery.TIME_ELAPSED_EXT)}gpuTimingEnd(){this.options.gpuTiming&&this.context.gl.endQuery(this.context.extTimerQuery.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}collectDeferredRenderGpuQueries(){const e=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],e}queryGpuTimers(e){const t={};for(const r in e){const i=e[r],n=this.context.extTimerQuery,s=n.getQueryParameter(i.query,this.context.gl.QUERY_RESULT)/1e6;n.deleteQueryEXT(i.query),t[r]=s}return t}queryGpuTimeDeferredRender(e){if(!this.options.gpuTimingDeferredRender)return 0;const t=this.context.extTimerQuery,r=this.context.gl;let i=0;for(const n of e)i+=t.getQueryParameter(n,r.QUERY_RESULT)/1e6,t.deleteQueryEXT(n);return i}translatePosMatrix(e,t,r,i,n){if(!r[0]&&!r[1])return e;const s=n?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(s){const e=Math.sin(s),t=Math.cos(s);r=[r[0]*t-r[1]*e,r[0]*e+r[1]*t]}const o=[n?r[0]:Pb(t,r[0],this.transform.zoom),n?r[1]:Pb(t,r[1],this.transform.zoom),0],a=new Float32Array(16);return hd.translate(a,e,o),a}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e,t){return null===e||void 0!==e&&!this.imageManager.getPattern(e.toString(),t)}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}terrainUseFloatDEM(){return null!=this.context.extTextureFloatLinear}currentGlobalDefines(e,t,r){const i=void 0===r?this.terrain&&this.terrain.renderingToTexture:r,n=this.terrain&&0===this.terrain.exaggeration(),s=[];return this.style&&this.style.enable3dLights()&&("globeRaster"===e||"terrainRaster"===e?(s.push("LIGHTING_3D_MODE"),s.push("LIGHTING_3D_ALPHA_EMISSIVENESS")):i||s.push("LIGHTING_3D_MODE")),"shadow"===this.renderPass?this._shadowMapDebug||s.push("DEPTH_TEXTURE"):this.shadowRenderer&&(this.shadowRenderer.useNormalOffset?s.push("RENDER_SHADOWS","DEPTH_TEXTURE","NORMAL_OFFSET"):s.push("RENDER_SHADOWS","DEPTH_TEXTURE")),this.terrainRenderModeElevated()&&(s.push("TERRAIN"),this.terrainUseFloatDEM()&&s.push("TERRAIN_DEM_FLOAT_FORMAT"),n&&s.push("ZERO_EXAGGERATION")),"globe"===this.transform.projection.name&&s.push("GLOBE"),!this._fogVisible||i||void 0!==t&&!t||s.push("FOG","FOG_DITHERING"),i&&s.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&s.push("OVERDRAW_INSPECTOR"),s}getOrCreateProgram(e,t){this.cache=this.cache||{};const r=t&&t.defines||[],i=t&&t.config,n=this.currentGlobalDefines(e,t&&t.overrideFog,t&&t.overrideRtt).concat(r),s=NS.cacheKey(fS[e],e,n,i);return this.cache[s]||(this.cache[s]=new NS(this.context,e,fS[e],i,vT[e],n)),this.cache[s]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new Kv(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this._wireframeDebugCache.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}uploadCommonLightUniforms(e,t){if(this.style.enable3dLights()){const r=this.style.directionalLight,i=this.style.ambientLight;if(r&&i){const n=((e,t)=>{const r=e.properties.get("direction"),i=e.properties.get("color").toArray01(),n=e.properties.get("intensity"),s=t.properties.get("color").toArray01(),o=t.properties.get("intensity"),a=[r.x,r.y,r.z],l=oe(s,o),c=oe(i,n);return{u_lighting_ambient_color:l,u_lighting_directional_dir:a,u_lighting_directional_color:c,u_ground_radiance:zS(a,c,l)}})(r,i);
2t.setLightsUniformValues(e,n)}}}uploadCommonUniforms(e,t,r,i,n){if(this.uploadCommonLightUniforms(e,t),this.terrain&&this.terrain.renderingToTexture)return;const s=this.style.fog;if(s){const n=s.getOpacity(this.transform.pitch),o=((e,t,r,i,n,s,o,a,l,c,u,h)=>{const d=e.transform,p=t.properties.get("color").toArray01();p[3]=i;const f=e.frameCounter/1e3%1,[m,g]=t.properties.get("vertical-range");return{u_fog_matrix:r?d.calculateFogTileMatrix(r):h||e.identityMat,u_fog_range:t.getFovAdjustedRange(d._fov),u_fog_color:p,u_fog_horizon_blend:t.properties.get("horizon-blend"),u_fog_vertical_limit:[Math.min(m,g),g],u_fog_temporal_offset:f,u_frustum_tl:n,u_frustum_tr:s,u_frustum_br:o,u_frustum_bl:a,u_globe_pos:l,u_globe_radius:c,u_viewport:u,u_globe_transition:pp(d.zoom),u_is_globe:+("globe"===d.projection.name)}})(this,s,r,n,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*ut.devicePixelRatio,this.transform.height*ut.devicePixelRatio],i);t.setFogUniformValues(e,o)}n&&t.setCutoffUniformValues(e,n.uniformValues)}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){const e=this.canvasCopy();e&&(this.frameCopies.push(e),this.tileLoaded=!1)}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}getBackgroundTiles(){const e=this._backgroundTiles,t=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const i of r)t[i.key]=e[i.key]||new l_(i,512,this.transform.tileZoom,this);return t}clearBackgroundTiles(){this._backgroundTiles={}}layerUsedInConflation(e,t){return!(!e.is3D()||e.minzoom&&e.minzoom>this.transform.zoom||"building"!==e.sourceLayer&&(!t||"batched-model"!==t.type))}isTileAffectedByFog(e){if(!this.style||!this.style.fog)return!1;if("globe"===this.transform.projection.name)return!0;let t=this._cachedTileFogOpacities[e.key];return t||(this._cachedTileFogOpacities[e.key]=t=this.style.fog.getOpacityForTile(e)),t[0]>=Nw||t[1]>=Nw}}const mC=2048;class gC{constructor(e,t){this.aabb=e,this.lastCascade=t}}class yC{add(e,t){const r=this.receivers[e.key];void 0!==r?(r.aabb.min[0]=Math.min(r.aabb.min[0],t.min[0]),r.aabb.min[1]=Math.min(r.aabb.min[1],t.min[1]),r.aabb.min[2]=Math.min(r.aabb.min[2],t.min[2]),r.aabb.max[0]=Math.max(r.aabb.max[0],t.max[0]),r.aabb.max[1]=Math.max(r.aabb.max[1],t.max[1]),r.aabb.max[2]=Math.max(r.aabb.max[2],t.max[2])):this.receivers[e.key]=new gC(t,null)}clear(){this.receivers={}}get(e){return this.receivers[e.key]}computeRequiredCascades(e,t,r){const i=Fd.fromPoints(e.points);let n=0;for(const e in this.receivers){const s=this.receivers[e];if(!s)continue;if(!i.intersectsAabb(s.aabb))continue;s.aabb.min=i.closestPoint(s.aabb.min),s.aabb.max=i.closestPoint(s.aabb.max);const o=s.aabb.getCorners();for(let e=0;e<r.length;e++){let i=!0;for(const n of o){const s=[n[0]*t,n[1]*t,n[2]];if(yd.transformMat4(s,s,r[e].matrix),s[0]<-1||s[0]>1||s[1]<-1||s[1]>1){i=!1;break}}if(s.lastCascade=e,n=Math.max(n,e),i)break}}return n+1}}class vC{constructor(e){this.painter=e,this._enabled=!1,this._shadowLayerCount=0,this._numCascadesToRender=0,this._cascades=[],this._groundShadowTiles=[],this._receivers=new yC,this._depthMode=new K_(e.context.gl.LEQUAL,K_.ReadWrite,[0,1]),this._uniformValues={u_light_matrix_0:new Float32Array(16),u_light_matrix_1:new Float32Array(16),u_shadow_intensity:0,u_fade_range:[0,0],u_shadow_normal_offset:[1,1,1],u_shadow_texel_size:1,u_shadow_map_resolution:1,u_shadow_direction:[0,0,1],u_shadow_bias:[36e-5,.0012,.012],u_shadowmap_0:0,u_shadowmap_1:0},this.useNormalOffset=!1}destroy(){for(const e of this._cascades)e.texture.destroy(),e.framebuffer.destroy();this._cascades=[]}updateShadowParameters(e,t){const r=this.painter;if(this._enabled=!1,this._shadowLayerCount=0,this._receivers.clear(),!t||!t.properties)return;const i=t.properties.get("shadow-intensity");if(!t.shadowsEnabled()||i<=0)return;if(this._shadowLayerCount=r.style.order.reduce(((t,i)=>{const n=r.style._mergedLayers[i];return t+(n.hasShadowPass()&&!n.isHidden(e.zoom)?1:0)}),0),this._enabled=this._shadowLayerCount>0,!this._enabled)return;const n=r.context,s=mC,o=mC;if(0===this._cascades.length)for(let e=0;e<2;++e){const e=r._shadowMapDebug,t=n.gl,i=n.createFramebuffer(s,o,e,"texture"),a=new Kv(n,{width:s,height:o,data:null},t.DEPTH_COMPONENT);if(i.depthAttachment.set(a.texture),e){const e=new Kv(n,{width:s,height:o,data:null},t.RGBA);i.colorAttachment.set(e.texture)}this._cascades.push({framebuffer:i,texture:a,matrix:[],far:0,boundingSphereRadius:0,frustum:new jd,scale:0})}this.shadowDirection=bC(t);let a=0;if(e.elevation){const t=e.elevation,r=[1e4,-1e4];t.visibleDemTiles.filter((e=>
2e.dem)).forEach((e=>{const t=e.dem.tree;r[0]=Math.min(r[0],t.minimums[0]),r[1]=Math.max(r[1],t.maximums[0])})),1e4!==r[0]&&(a=(r[1]-r[0])*t.exaggeration())}const l=1.5*e.cameraToCenterDistance,c=3*l,u=new Float64Array(16);for(let t=0;t<2;++t){const r=this._cascades[t];let i=e.height/50,n=1;0===t?n=l:(i=l,n=c);const[s,o]=wC(e,this.shadowDirection,i,n,mC,a);r.scale=e.scale,r.matrix=s,r.boundingSphereRadius=o,hd.invert(u,r.matrix),r.frustum=jd.fromInvProjectionMatrix(u,1,0,!0),r.far=n}this._uniformValues.u_fade_range=[.75*this._cascades[1].far,this._cascades[1].far],this._uniformValues.u_shadow_intensity=i,this._uniformValues.u_shadow_direction=[this.shadowDirection[0],this.shadowDirection[1],this.shadowDirection[2]],this._uniformValues.u_shadow_texel_size=.00048828125,this._uniformValues.u_shadow_map_resolution=mC,this._uniformValues.u_shadowmap_0=fT,this._uniformValues.u_shadowmap_1=fT+1,this._groundShadowTiles=r.transform.coveringTiles({tileSize:512,renderWorldCopies:!0});const h=r.transform.elevation;for(const e of this._groundShadowTiles){let t={min:0,max:0};if(h){const r=h.getMinMaxForTile(e);r&&(t=r)}this.addShadowReceiver(e.toUnwrapped(),t.min,t.max)}}get enabled(){return this._enabled}set enabled(e){this._enabled=e}drawShadowPass(e,t){if(!this._enabled)return;const r=this.painter,i=r.context;this._numCascadesToRender=this._receivers.computeRequiredCascades(r.transform.getFrustum(0),r.transform.worldSize,this._cascades),i.viewport.set([0,0,mC,mC]);for(let n=0;n<this._numCascadesToRender;++n){r.currentShadowCascade=n,i.bindFramebuffer.set(this._cascades[n].framebuffer.framebuffer),i.clear({color:lr.white,depth:1});for(const i of e.order){const n=e._mergedLayers[i];if(!n.hasShadowPass()||n.isHidden(r.transform.zoom))continue;const s=e.getLayerSourceCache(n),o=s?t[s.id]:void 0;("model"===n.type||o&&o.length)&&r.renderLayer(r,s,n,o)}}r.currentShadowCascade=0}drawGroundShadows(){if(!this._enabled)return;const e=this.painter,t=e.style,r=e.context,i=t.directionalLight,n=t.ambientLight;if(!i||!n)return;const s=[],o=SS(e,e.longestCutoffRange);o.shouldRenderCutoff&&s.push("RENDER_CUTOFF");const a=xC(i,n),l=new K_(r.gl.LEQUAL,K_.ReadOnly,e.depthRangeFor3D);for(const t of this._groundShadowTiles){const i=t.toUnwrapped(),n=e.isTileAffectedByFog(t),c=e.getOrCreateProgram("groundShadow",{defines:s,overrideFog:n});this.setupShadows(i,c),e.uploadCommonUniforms(r,c,i,null,o);const u={u_matrix:e.transform.calculateProjMatrix(i),u_ground_shadow_factor:a};c.draw(e,r.gl.TRIANGLES,l,$_.disabled,tb.multiply,nb.disabled,u,"ground_shadow",e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments,{},e.transform.zoom,null,null)}}getShadowPassColorMode(){return this.painter._shadowMapDebug?tb.unblended:tb.disabled}getShadowPassDepthMode(){return this._depthMode}getShadowCastingLayerCount(){return this._shadowLayerCount}calculateShadowPassMatrixFromTile(e){const t=this.painter.transform,r=t.calculatePosMatrix(e,t.worldSize);return hd.multiply(r,this._cascades[this.painter.currentShadowCascade].matrix,r),Float32Array.from(r)}calculateShadowPassMatrixFromMatrix(e){return hd.multiply(e,this._cascades[this.painter.currentShadowCascade].matrix,e),Float32Array.from(e)}setupShadows(e,t,r,i=0){if(!this._enabled)return;const n=this.painter.transform,s=this.painter.context,o=s.gl,a=this._uniformValues,l=new Float64Array(16),c=n.calculatePosMatrix(e,n.worldSize);for(let e=0;e<2;e++)hd.multiply(l,this._cascades[e].matrix,c),a[0===e?"u_light_matrix_0":"u_light_matrix_1"]=Float32Array.from(l),s.activeTexture.set(o.TEXTURE0+fT+e),this._cascades[e].texture.bind(o.NEAREST,o.CLAMP_TO_EDGE);if(this.useNormalOffset=!!r,this.useNormalOffset){const t=Np(e.canonical),s=2/n.tileSize*oi/mC,o=s*this._cascades[0].boundingSphereRadius,l=s*this._cascades[1].boundingSphereRadius,c=("vector-tile"===r?1:3)/Math.pow(2,i-e.canonical.z-(1-n.zoom+Math.floor(n.zoom)));a.u_shadow_normal_offset=[t,o*c,l*c],a.u_shadow_bias=[6e-5,.0012,.012]}else a.u_shadow_bias=[36e-5,.0012,.012];t.setShadowUniformValues(s,a)}setupShadowsFromMatrix(e,t,r=!1){if(!this._enabled)return;const i=this.painter.context,n=i.gl,s=this._uniformValues,o=new Float64Array(16);for(let t=0;t<2;t++)hd.multiply(o,this._cascades[t].matrix,e),s[0===t?"u_light_matrix_0":"u_light_matrix_1"]=Float32Array.from(o),i.activeTexture.set(n.TEXTURE0+fT+t),this._cascades[t].texture.bind(n.NEAREST,n.CLAMP_TO_EDGE);if(this.useNormalOffset=r,r){const e=5;s.u_shadow_normal_offset=[1,e,e],s.u_shadow_bias=[6e-5,.0012,.012]}else s.u_shadow_bias=[36e-5,.0012,.012];t.setShadowUniformValues(i,s)}getShadowUniformValues(){return this._uniformValues}getCurrentCascadeFrustum(){return this._cascades[this.painter.currentShadowCascade].frustum}
2computeSimplifiedTileShadowVolume(e,t,r,i){if(i[2]>=0)return{};const n=function(e,t,r){const i=r/(1<<e.canonical.z);return new Fd([e.canonical.x*i+e.wrap*r,e.canonical.y*i+e.wrap*r,0],[(e.canonical.x+1)*i+e.wrap*r,(e.canonical.y+1)*i+e.wrap*r,t])}(e,t,r).getCorners(),s=t/-i[2];i[0]<0?(yd.add(n[0],n[0],[i[0]*s,0,0]),yd.add(n[3],n[3],[i[0]*s,0,0])):i[0]>0&&(yd.add(n[1],n[1],[i[0]*s,0,0]),yd.add(n[2],n[2],[i[0]*s,0,0])),i[1]<0?(yd.add(n[0],n[0],[0,i[1]*s,0]),yd.add(n[1],n[1],[0,i[1]*s,0])):i[1]>0&&(yd.add(n[2],n[2],[0,i[1]*s,0]),yd.add(n[3],n[3],[0,i[1]*s,0]));const o={};return o.vertices=n,o.planes=[_C(n[1],n[0],n[4]),_C(n[2],n[1],n[5]),_C(n[3],n[2],n[6]),_C(n[0],n[3],n[7])],o}addShadowReceiver(e,t,r){this._receivers.add(e,Fd.fromTileIdAndHeight(e,t,r))}getMaxCascadeForTile(e){const t=this._receivers.get(e);return t&&t.lastCascade?t.lastCascade:0}}function _C(e,t,r){const i=yd.sub([],r,t),n=yd.sub([],e,t),s=yd.cross([],i,n),o=yd.length(s);return 0===o?[0,0,1,0]:(yd.scale(s,s,1/o),[s[0],s[1],s[2],-yd.dot(s,t)])}function bC(e){const t=e.properties.get("direction"),r=J(t.x,t.y,t.z);r[2]=M(r[2],0,75);const i=K([r[0],r[1],r[2]]);return yd.fromValues(i.x,i.y,i.z)}function xC(e,t){const r=e.properties.get("color"),i=e.properties.get("intensity"),n=e.properties.get("direction"),s=[n.x,n.y,n.z],o=t.properties.get("color"),a=t.properties.get("intensity"),l=Math.max(yd.dot([0,0,1],s),0),c=[0,0,0];yd.scale(c,o.toArray01Linear().slice(0,3),a);const u=[0,0,0];return yd.scale(u,r.toArray01Linear().slice(0,3),l*i),ae([c[0]>0?c[0]/(c[0]+u[0]):0,c[1]>0?c[1]/(c[1]+u[1]):0,c[2]>0?c[2]/(c[2]+u[2]):0])}function wC(e,t,r,i,n,s){const o=e.zoom,a=e.scale,l=e.worldSize,c=1/l,u=e.aspect,h=Math.sqrt(1+u*u)*Math.tan(.5*e.fovX),d=h*h,p=i-r,f=i+r;let m,g;d>p/f?(m=i,g=i*h):(m=.5*f*(1+d),g=.5*Math.sqrt(p*p+2*(i*i+r*r)*d+f*f*d*d));const y=e.projection.pixelsPerMeter(e.center.lat,l),v=e._camera.getCameraToWorldMercator(),_=[0,0,-m*c];yd.transformMat4(_,_,v);let b=g*c;const x=e._edgeInsets;if(!(0===x.left&&0===x.top&&0===x.right&&0===x.bottom||x.left===x.right&&x.top===x.bottom)){const t=e._camera.getWorldToCamera(e.worldSize,"meters"===e.projection.zAxisUnit?y:1),n=e._camera.getCameraToClipPerspective(e._fov,e.width/e.height,r,i);n[8]=2*-e.centerOffset.x/e.width,n[9]=2*e.centerOffset.y/e.height;const s=new Float64Array(16);hd.mul(s,n,t);const c=new Float64Array(16);hd.invert(c,s);const u=jd.fromInvProjectionMatrix(c,l,o,!0);for(const t of u.points){const r=((w=t)[0]/=a,w[1]/=a,w[2]=Op(w[2],e._center.lat),w);b=Math.max(b,yd.len(yd.subtract([],_,r)))}}var w;b*=n/(n-1);const A=Math.acos(t[2]),E=Math.atan2(-t[0],-t[1]),S=new wb;S.position=_,S.setPitchBearing(A,E);const T=S.getWorldToCamera(l,y),C=b*l,I=Math.min(e._mercatorZfromZoom(17)*l*-2,-2*C),P=S.getCameraToClipOrthographic(-C,C,-C,C,I,(C+s*y)/t[2]),M=new Float64Array(16);hd.multiply(M,P,T);const k=yd.fromValues(Math.floor(1e6*_[0])/1e6*l,Math.floor(1e6*_[1])/1e6*l,0),O=.5*n,R=[0,0,0];yd.transformMat4(R,k,M),yd.scale(R,R,O);const D=[Math.floor(R[0]),Math.floor(R[1]),Math.floor(R[2])],L=[0,0,0];yd.sub(L,R,D),yd.scale(L,L,-1/O);const B=new Float64Array(16);return hd.identity(B),hd.translate(B,B,L),hd.multiply(M,B,M),[M,C]}class AC extends It{constructor(e){super(),this.requestManager=e,this.models={"":{}},this.numModelsLoading={}}loadModel(e,t){return NA(this.requestManager.transformRequest(t,ve.Model).url).then((t=>{if(!t)return;const r=ZA(t),i=new ix(e,void 0,void 0,r);return i.computeBoundsAndApplyParent(),i})).catch((r=>{this.fire(new Ct(new Error(`Could not load model ${e} from ${t}: ${r.message}`)))}))}load(e,t){this.models[t]||(this.models[t]={});const r=Object.keys(e);this.numModelsLoading[t]=(this.numModelsLoading[t]||0)+r.length;const i=[];for(const t of r)i.push(this.loadModel(t,e[t]));Promise.allSettled(i).then((e=>{for(let i=0;i<e.length;i++){const{status:n,value:s}=e[i];"fulfilled"===n&&s&&(this.models[t][r[i]]=s)}this.numModelsLoading[t]-=r.length,this.fire(new Tt("data",{dataType:"style"}))})).catch((e=>{this.fire(new Ct(new Error(`Could not load models: ${e.message}`)))}))}isLoaded(){for(const e in this.numModelsLoading)if(this.numModelsLoading[e]>0)return!1;return!0}hasModel(e,t){return!!this.getModel(e,t)}getModel(e,t){return this.models[t]||(this.models[t]={}),this.models[t][e]}addModel(e,t,r){this.models[r]||(this.models[r]={}),this.hasModel(e,r)&&this.removeModel(e,r),this.load({[e]:this.requestManager.normalizeModelURL(t)},r)}addModels(e,t){const r={};for(const t in e)r[t]=this.requestManager.normalizeModelURL(e[t]);this.load(r,t)}removeModel(e,t){this.models[t]||(this.models[t]={});const r=this.models[t][e];delete this.models[t][e],r.destroy()}listModels(e){return this.models[e]||(this.models[e]={}),Object.keys(this.models[e])}upload(e,t){this.models[t]||(this.models[t]={});for(const r in this.models[t])this.models[t][r].upload(e.context)}}const EC=(e,t)=>bo(e,t&&t.filter((e=>"source.canvas"!==e.identifier))),SC=B(lE,["addLayer","removeLayer","setLights","setPaintProperty","setLayoutProperty","setSlot","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection","setCamera","addImport","removeImport","setImportUrl","setImportData","setImportConfig"]),TC=B(lE,["setCenter","setZoom","setBearing","setP
2itch"]),CC={version:8,layers:[],sources:{}},IC={duration:300,delay:0},PC=new Set(["fill","line","background","hillshade","raster"]);class MC extends It{constructor(e,t={}){super(),this.map=e,this.scope=t.scope||"",this.fragments=[],this.importDepth=t.importDepth||0,this.importsCache=t.importsCache||new Map,this.resolvedImports=t.resolvedImports||new Set,this.transition=L({},IC),this._buildingIndex=new nE(this),this.crossTileSymbolIndex=new tS,this._mergedOrder=[],this._drapedFirstOrder=[],this._mergedLayers={},this._mergedSourceCaches={},this._mergedOtherSourceCaches={},this._mergedSymbolSourceCaches={},this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this._changes=t.styleChanges||new cl,this.dispatcher=t.dispatcher?t.dispatcher:new Xw(_A(),this),t.imageManager?this.imageManager=t.imageManager:(this.imageManager=new Lw,this.imageManager.setEventedParent(this)),this.imageManager.createScope(this.scope),this.glyphManager=t.glyphManager?t.glyphManager:new Ry(e._requestManager,t.localFontFamily?2:t.localIdeographFontFamily?1:0,t.localFontFamily||t.localIdeographFontFamily),t.modelManager?this.modelManager=t.modelManager:(this.modelManager=new AC(e._requestManager),this.modelManager.setEventedParent(this)),this._layers={},this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._precompileDone=!1,this._shouldPrecompile=!1,this._availableImages=[],this._order=[],this._markersNeedUpdate=!1,this.options=new Map,this._configDependentLayers=new Set,this.dispatcher.broadcast("setReferrer",be());const r=this;this._rtlTextPluginCallback=MC.registerForPluginStateChange((e=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},((e,t)=>{if(Na(e),t&&t.every((e=>e)))for(const e in r._sourceCaches){const t=r._sourceCaches[e],i=t.getSource().type;"vector"!==i&&"geojson"!==i||t.reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getOwnSource(e.sourceId);if(t&&t.vectorLayerIds)for(const e in this._layers){const r=this._layers[e];r.source===t.id&&this._validateLayer(r)}}
2))}loadURL(e,t={}){this.fire(new Tt("dataloading",{dataType:"style"}));const r="boolean"==typeof t.validate?t.validate:!ke(e);e=this.map._requestManager.normalizeStyleURL(e,t.accessToken),this.resolvedImports.add(e);const i=this.importsCache.get(e);if(i)return this._load(i,r);const n=this.map._requestManager.transformRequest(e,ve.Style);this._request=we(n,((t,i)=>{if(this._request=null,t)this.fire(new Ct(t));else if(i)return this.importsCache.set(e,i),this._load(i,r)}))}loadJSON(e,t={}){this.fire(new Tt("dataloading",{dataType:"style"})),this._request=ut.frame((()=>{this._request=null,this._load(e,!1!==t.validate)}))}loadEmpty(){this.fire(new Tt("dataloading",{dataType:"style"})),this._load(CC,!1)}_loadImports(e,t){if(this.importDepth>=4)return Q("Style doesn't support nesting deeper than 5"),this._reloadImports();const r=[];for(const i of e){const e=this._createFragmentStyle(i),n=new Promise((t=>e.on("style.import.load",t)));if(r.push(n),this.resolvedImports.has(i.url)){e.loadEmpty();continue}const s=i.data||this.importsCache.get(i.url);s?e.loadJSON(s,{validate:t}):i.url?e.loadURL(i.url,{validate:t}):e.loadEmpty(),this.fragments.push({style:e,id:i.id,config:i.config})}Promise.all(r).then((()=>this._reloadImports()))}_createFragmentStyle(e){const t=this.scope?sl(e.id,this.scope):e.id,r=new MC(this.map,{scope:t,styleChanges:this._changes,importDepth:this.importDepth+1,importsCache:this.importsCache,resolvedImports:new Set(this.resolvedImports),dispatcher:this.dispatcher,imageManager:this.imageManager,glyphManager:this.glyphManager,modelManager:this.modelManager});return r.setEventedParent(this.map,{style:r}),r.setConfig(e.config),r}_reloadImports(){this.mergeAll(),this._updateMapProjection(),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options});const e=this.isRootStyle();this._shouldPrecompile=e,this.fire(new Tt("data",{dataType:"style"})),this.fire(new Tt(e?"style.load":"style.import.load"))}_load(e,t){const r=e.schema;if(this.isRootStyle()&&(e.fragment||r&&!1!==e.fragment)){const r=L({},CC,{imports:[{id:"basemap",data:e,url:""}]});return void this._load(r,t)}if(this.updateSchema(r),t&&EC(this,ao(e)))return;this._loaded=!0,this.stylesheet=W(e);for(const t in e.sources)this.addSource(t,e.sources[t],{validate:!1});this._changes.changed=!1,e.sprite?this._loadSprite(e.sprite):(this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0})),this.glyphManager.setURL(e.glyphs,this.scope);const i=aE(this.stylesheet.layers);if(this._order=i.map((e=>e.id)),this.stylesheet.light&&Q("The `light` root property is deprecated, prefer using `lights` with `flat` light type instead."),this.stylesheet.lights)if(1===this.stylesheet.lights.length&&"flat"===this.stylesheet.lights[0].type){const e=this.stylesheet.lights[0];this.light=new zw(e.properties,e.id)}else this.setLights(this.stylesheet.lights);this.light||(this.light=new zw(this.stylesheet.light)),this._layers={},this._serializedLayers={};for(const e of i){const t=Rw(e,this.options);t.setScope(this.scope),t.isConfigDependent&&this._configDependentLayers.add(t.fqid),t.setEventedParent(this,{layer:{id:t.id}}),this._layers[t.id]=t,this._layers[t.id]=t,this._serializedLayers[t.id]=t.serialize();const r=this.getOwnLayerSourceCache(t),i=!!this.directionalLight&&this.directionalLight.shadowsEnabled();r&&t.canCastShadows()&&i&&(r.castsShadows=!0)}this.stylesheet.models&&this.modelManager.addModels(this.stylesheet.models,this.scope);const n=this.stylesheet.terrain;if(n&&!this.terrainSetForDrapingOnly()&&this._createTerrain(n,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this.stylesheet.transition&&this.setTransition(this.stylesheet.transition),this.mergeAll(),this._updateMapProjection(),this.map._triggerCameraUpdate(this.camera),this.fire(new Tt("data",{dataType:"style"})),e.imports)this._loadImports(e.imports,t);else{this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options});const e=this.isRootStyle();this._shouldPrecompile=e,this.fire(new Tt(e?"style.load":"style.import.load"))}}isRootStyle(){return 0===this.importDepth}mergeAll(){let e,t,r,i,n,s,o,a;this.forEachFragmentStyle((l=>{if(l.stylesheet){if(null!=l.light&&(e=l.light),l.stylesheet.lights)for(const e of l.stylesheet.lights)"ambient"===e.type&&null!=l.ambientLight&&(t=l.ambientLight),"directional"===e.type&&null!=l.directionalLight&&(r=l.directionalLight);(l.stylesheet.terrain||l.stylesheet.projection&&"globe"===l.stylesheet.projection.name)&&null!=l.terrain&&(!i||i&&0===i.drapeRenderMode||1===l.terrain.drapeRenderMode)&&(i=l.terrain),l.stylesheet.fog&&null!=l.fog&&(n=l.fog),null!=l.stylesheet.camera&&(a=l.stylesheet.camera),null!=l.stylesheet.projection&&(s=l.stylesheet.projection),null!=l.stylesheet.transition&&(o=l.stylesheet.transition)}})),this.light=e,this.ambientLight=t,this.directionalLight=r,this.terrain=i,this.fog=n,this.camera=a||{"camera-projection":"perspective"},this.projection=s||{name:"mercator"},this.transition=L({},IC,o),this.mergeSources(),this.mergeLayers()}forEachFragmentStyle(e){const t=r=>{for(const e of r.fragments)t(e.style);e(r)};t(this)}mergeTerrain(){let e;this.forEachFragmentStyle((t=>{null!=t.terrain&&(!e||e&&0===e.drapeRenderMode||1===t.terrain.drapeRenderMode)&&(e=t.terrain)})),this.terrain=e}mergeProjection(){let e;this.forEachFragmentStyle((t=>{null!=t.stylesheet.projection&&(e=t.stylesheet.projection)})),this.projection=e||{name:"mercator"}}mergeSources(){const e={},t={},r={};this.forEachFragmentStyle((i=>{for(const t in i._sourceCaches){const r=sl(t,i.scope);e[r]=i._sourceCaches[t]}for(const e in i._otherSourceCaches){const r=sl(e,i.scope);t[r]=i._otherSourceCaches[e]}for(const e in i._symbolSourceCaches){const t=sl(e,i.scope);r[t]=i._symbolSourceCaches[e]}})),this._mergedSourceCaches=e,this._mergedOtherSourceCaches=t,this._mergedSymbolSourceCaches=r}mergeLayers(){const e={},t=[],r={};this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this.forEachFragmentStyle((r=>{for(const i of r._order){const n=r._layers[i];if("slot"===n.type){const t=ol(i);if(e[t])continue;e[t]=[]}n.slot&&e[n.slot]?e[n.slot].push(n):t.push(n)}})),this._mergedOrder=[];const i=(t=[])=>{for(const n of t)if("slot"===n.type){const t=ol(n.id);e[t]&&i(e[t])}else{const e=sl(n.id,n.scope);this._mergedOrder.push(e),r[e]=n,n.is3D()&&(this._has3DLayers=!0),"circle"===n.type&&(this._hasCircleLayers=!0),"symbol"===n.type&&(this._hasSymbolLayers=!0)}};i(t),this._mergedLayers=r,this.updateDrapeFirstLayers(),this._buildingIndex.processLayersChanged()}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}getCamera(){return this.stylesheet.camera}setCamera(e){return this.stylesheet.camera=L({},this.stylesheet.camera,e),this.camera=this.stylesheet.camera,this}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this.mergeProjection(),this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.isRootStyle()&&(this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.projection))}_loadSprite(e){this._spriteRequest=function(e,t,r){let i,n,s;const o=ut.devicePixelRatio>1?"@2x":"";let a=we(t.transformRequest(t.normalizeSpriteURL(e,o,".json"),ve.SpriteJSON),((e,t)=>{a=null,s||(s=e,i=t,c())})),l=Ie(t.transformRequest(t.normalizeSpriteURL(e,o,".png"),ve.SpriteImage),((e,t)=>{l=null,s||(s=e,n=t,c())}));function c(){if(s)r(s);else if(i&&n){const e=ut.getImageData(n),t={};for(const r in i){const{width:n,height:s,x:o,y:a,sdf:l,pixelRatio:c,stretchX:u,stretchY:h,content:d}=i[r],p=new Df({width:n,height:s});Df.copy(e,p,{x:o,y:a},{x:0,y:0},{width:n,height:s}),t[r]={data:p,pixelRatio:c,sdf:l,stretchX:u,stretchY:h,content:d}}r(null,t)}}
2return{cancel(){a&&(a.cancel(),a=null),l&&(l.cancel(),l=null)}}}(e,this.map._requestManager,((e,t)=>{if(this._spriteRequest=null,e)this.fire(new Ct(e));else if(t)for(const e in t)this.imageManager.addImage(e,this.scope,t[e]);this.imageManager.setLoaded(!0,this.scope),this._availableImages=this.imageManager.listImages(this.scope),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new Tt("data",{dataType:"style"}))}))}_validateLayer(e){const t=this.getOwnSource(e.source);if(!t)return;const r=e.sourceLayer;r&&("geojson"===t.type||t.vectorLayerIds&&-1===t.vectorLayerIds.indexOf(r))&&this.fire(new Ct(new Error(`Source layer "${r}" does not exist on source "${t.id}" as specified by style layer "${e.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._changes.updatedSourceCaches).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;if(!this.imageManager.isLoaded())return!1;if(!this.modelManager.isLoaded())return!1;for(const{style:e}of this.fragments)if(!e.loaded())return!1;return!0}_serializeImports(){if(this.stylesheet.imports)return this.stylesheet.imports.map(((e,t)=>{const r=this.fragments[t];return r&&r.style&&(e.data=r.style.serialize()),e}))}_serializeSources(){const e={};for(const t in this._sourceCaches){const r=this._sourceCaches[t].getSource();e[r.id]||(e[r.id]=r.serialize())}return e}_serializeLayers(e){const t=[];for(const r of e){const e=this._layers[r];e&&"custom"!==e.type&&t.push(e.serialize())}return t}hasLightTransitions(){return!(!this.light||!this.light.hasTransition())||!(!this.ambientLight||!this.ambientLight.hasTransition())||!(!this.directionalLight||!this.directionalLight.hasTransition())}hasFogTransition(){return!!this.fog&&this.fog.hasTransition()}hasTransitions(){if(this.hasLightTransitions())return!0;if(this.hasFogTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.terrain?this._drapedFirstOrder:this._mergedOrder}isLayerDraped(e){return!!this.terrain&&("function"==typeof e.isLayerDraped?e.isLayerDraped(this.getLayerSourceCache(e)):PC.has(e.type))}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}_checkLayer(e){const t=this.getOwnLayer(e);if(t)return t;this.fire(new Ct(new Error(`The layer '${e}' does not exist in the map's style.`)))}_checkSource(e){const t=this.getOwnSource(e);if(t)return t;this.fire(new Ct(new Error(`The source '${e}' does not exist in the map's style.`)))}update(e){if(!this._loaded)return;this.ambientLight&&this.ambientLight.recalculate(e),this.directionalLight&&this.directionalLight.recalculate(e);const t=this.calculateLightsBrightness();e.brightness=t||0,t!==this._brightness&&(this._brightness=t,this.dispatcher.broadcast("setBrightness",t));const r=this._changes.changed;if(this._changes.changed){const t=this._changes.getLayerUpdatesByScope();for(const e in t){const{updatedIds:r,removedIds:i}=t[e];(r||i)&&this._updateWorkerLayers(e,r,i)}this.updateSourceCaches(),this._updateTilesForChangedImages(),this.updateLayers(e),this.light&&this.light.updateTransitions(e),this.ambientLight&&this.ambientLight.updateTransitions(e),this.directionalLight&&this.directionalLight.updateTransitions(e),this.fog&&this.fog.updateTransitions(e),this._changes.reset()}const i={};for(const e in this._mergedSourceCaches){const t=this._mergedSourceCaches[e];i[e]=t.used,t.used=!1}for(const t of this._mergedOrder){const r=this._mergedLayers[t];if(r.recalculate(e,this._availableImages),!r.isHidden(e.zoom)){const e=this.getOwnLayerSourceCache(r);e&&(e.used=!0)}if(!this._precompileDone&&this._shouldPrecompile)for(let t=r.minzoom||0;t<(r.maxzoom||25.5);t++){const t=this.map.painter;if(t){const i=r.getProgramIds();if(!i)continue;for(const n of i){const i=r.getDefaultProgramParams(n,e.zoom);i&&(t.style=this,this.fog&&(t._fogVisible=!0,i.overrideFog=!0,t.getOrCreateProgram(n,i)),t._fogVisible=!1,i.overrideFog=!1,t.getOrCreateProgram(n,i),(this.stylesheet.terrain||this.stylesheet.projection&&"globe"===this.stylesheet.projection.name)&&(i.overrideRtt=!0,t.getOrCreateProgram(n,i)))}}}}this._shouldPrecompile&&(this._precompileDone=!0);for(const e in i){const t=this._mergedSourceCaches[e];i[e]!==t.used&&t.getSource().fire(new Tt("data",{sourceDataType:"visibility",dataType:"source",sourceId:t.getSource().id}))}this.light&&this.light.recalculate(e),this.terrain&&this.terrain.recalculate(e),this.fog&&this.fog.recalculate(e),this.z=e.zoom,this._markersNeedU
2pdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),r&&this.fire(new Tt("data",{dataType:"style"}));for(const{style:t}of this.fragments)t.update(e)}_updateTilesForChangedImages(){const e=Array.from(this._changes.changedImages.keys());if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changes.changedImages.clear()}}_updateWorkerLayers(e,t,r){const i=this.getFragmentStyle(e);this.dispatcher.broadcast("updateLayers",{layers:t?i._serializeLayers(t):[],scope:e,removedIds:r||[],options:i.options})}setState(e){if(this._checkLoaded(),EC(this,ao(e)))return!1;(e=W(e)).layers=aE(e.layers);const t=function(e,t){if(!e)return[{command:lE.setStyle,args:[t]}];let r=[];try{if(!_(e.version,t.version))return[{command:lE.setStyle,args:[t]}];_(e.center,t.center)||r.push({command:lE.setCenter,args:[t.center]}),_(e.zoom,t.zoom)||r.push({command:lE.setZoom,args:[t.zoom]}),_(e.bearing,t.bearing)||r.push({command:lE.setBearing,args:[t.bearing]}),_(e.pitch,t.pitch)||r.push({command:lE.setPitch,args:[t.pitch]}),_(e.sprite,t.sprite)||r.push({command:lE.setSprite,args:[t.sprite]}),_(e.glyphs,t.glyphs)||r.push({command:lE.setGlyphs,args:[t.glyphs]}),_(e.transition,t.transition)||r.push({command:lE.setTransition,args:[t.transition]}),_(e.light,t.light)||r.push({command:lE.setLight,args:[t.light]}),_(e.fog,t.fog)||r.push({command:lE.setFog,args:[t.fog]}),_(e.projection,t.projection)||r.push({command:lE.setProjection,args:[t.projection]}),_(e.lights,t.lights)||r.push({command:lE.setLights,args:[t.lights]}),_(e.camera,t.camera)||r.push({command:lE.setCamera,args:[t.camera]});const i={},n=[];!function(e,t,r,i){let n;for(n in t=t||{},e=e||{})e.hasOwnProperty(n)&&(t.hasOwnProperty(n)||uE(n,r,i));for(n in t){if(!t.hasOwnProperty(n))continue;const s=t[n];e.hasOwnProperty(n)?_(e[n],s)||("geojson"===e[n].type&&"geojson"===s.type&&dE(e,t,n)?r.push({command:lE.setGeoJSONSourceData,args:[n,s.data]}):hE(n,t,r,i)):cE(n,t,r)}}(e.sources,t.sources,n,i);const s=[];e.layers&&e.layers.forEach((e=>{e.source&&i[e.source]?r.push({command:lE.removeLayer,args:[e.id]}):s.push(e)}));let o=e.terrain;o&&i[o.source]&&(r.push({command:lE.setTerrain,args:[void 0]}),o=void 0),r=r.concat(n),_(o,t.terrain)||r.push({command:lE.setTerrain,args:[t.terrain]}),function(e,t,r){t=t||[];const i=(e=e||[]).map(fE),n=t.map(fE),s=e.reduce(mE,{}),o=t.reduce(mE,{}),a=i.slice(),l=Object.create(null);let c,u,h,d,p,f,m;for(c=0,u=0;c<i.length;c++)h=i[c],o.hasOwnProperty(h)?u++:(r.push({command:lE.removeLayer,args:[h]}),a.splice(a.indexOf(h,u),1));for(c=0,u=0;c<n.length;c++)h=n[n.length-1-c],a[a.length-1-c]!==h&&(s.hasOwnProperty(h)?(r.push({command:lE.removeLayer,args:[h]}),a.splice(a.lastIndexOf(h,a.length-u),1)):u++,f=a[a.length-c],r.push({command:lE.addLayer,args:[o[h],f]}),a.splice(a.length-c,0,h),l[h]=!0);for(c=0;c<n.length;c++)if(h=n[c],d=s[h],p=o[h],!l[h]&&!_(d,p))if(_(d.source,p.source)&&_(d["source-layer"],p["source-layer"])&&_(d.type,p.type)){for(m in pE(d.layout,p.layout,r,h,null,lE.setLayoutProperty),pE(d.paint,p.paint,r,h,null,lE.setPaintProperty),_(d.slot,p.slot)||r.push({command:lE.setSlot,args:[h,p.slot]}),_(d.filter,p.filter)||r.push({command:lE.setFilter,args:[h,p.filter]}),_(d.minzoom,p.minzoom)&&_(d.maxzoom,p.maxzoom)||r.push({command:lE.setLayerZoomRange,args:[h,p.minzoom,p.maxzoom]}),d)d.hasOwnProperty(m)&&"layout"!==m&&"paint"!==m&&"filter"!==m&&"metadata"!==m&&"minzoom"!==m&&"maxzoom"!==m&&"slot"!==m&&(0===m.indexOf("paint.")?pE(d[m],p[m],r,h,m.slice(6),lE.setPaintProperty):_(d[m],p[m])||r.push({command:lE.setLayerProperty,args:[h,m,p[m]]}
2));for(m in p)p.hasOwnProperty(m)&&!d.hasOwnProperty(m)&&"layout"!==m&&"paint"!==m&&"filter"!==m&&"metadata"!==m&&"minzoom"!==m&&"maxzoom"!==m&&"slot"!==m&&(0===m.indexOf("paint.")?pE(d[m],p[m],r,h,m.slice(6),lE.setPaintProperty):_(d[m],p[m])||r.push({command:lE.setLayerProperty,args:[h,m,p[m]]}))}else r.push({command:lE.removeLayer,args:[h]}),f=a[a.lastIndexOf(h)+1],r.push({command:lE.addLayer,args:[p,f]})}(s,t.layers,r),function(e=[],t=[],r){t=t||[];const i=(e=e||[]).map(fE),n=t.map(fE),s=e.reduce(mE,{}),o=t.reduce(mE,{}),a=i.slice();let l,c,u,h;for(l=0,c=0;l<i.length;l++)u=i[l],o.hasOwnProperty(u)?c++:(r.push({command:lE.removeImport,args:[u]}),a.splice(a.indexOf(u,c),1));for(l=0,c=0;l<n.length;l++)u=n[n.length-1-l],a[a.length-1-l]!==u&&(s.hasOwnProperty(u)?(r.push({command:lE.removeImport,args:[u]}),a.splice(a.lastIndexOf(u,a.length-c),1)):c++,h=a[a.length-l],r.push({command:lE.addImport,args:[o[u],h]}),a.splice(a.length-l,0,u));for(const e of t){const t=s[e.id];if(!t||_(t,e))continue;_(t.config,e.config)||r.push({command:lE.setImportConfig,args:[e.id,e.config]}),_(t.url,e.url)||r.push({command:lE.setImportUrl,args:[e.id,e.url]});const i=e.data;_(t&&t.data,i)||r.push({command:lE.setImportData,args:[e.id,i]})}}(e.imports,t.imports,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:lE.setStyle,args:[t]}]}return r}(this.serialize(),e).filter((e=>!(e.command in TC)));if(0===t.length)return!1;const r=t.filter((e=>!(e.command in SC)));if(r.length>0)throw new Error(`Unimplemented: ${r.map((e=>e.command)).join(", ")}.`);return t.forEach((e=>{this[e.command].apply(this,e.args)})),this.stylesheet=e,this.mergeAll(),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),!0}addImage(e,t){return this.getImage(e)?this.fire(new Ct(new Error("An image with this name already exists."))):(this.imageManager.addImage(e,this.scope,t),this._afterImageUpdated(e),this)}updateImage(e,t){this.imageManager.updateImage(e,this.scope,t)}getImage(e){return this.imageManager.getImage(e,this.scope)}removeImage(e){return this.getImage(e)?(this.imageManager.removeImage(e,this.scope),this._afterImageUpdated(e),this):this.fire(new Ct(new Error("No image with this name exists.")))}_afterImageUpdated(e){this._availableImages=this.imageManager.listImages(this.scope),this._changes.changedImages.add(e),this._changes.changed=!0,this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.fire(new Tt("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addModel(e,t,r={}){return this._checkLoaded(),this._validate(vo,`models.${e}`,t,null,r)||(this.modelManager.addModel(e,t,this.scope),this._changes.changed=!0),this}hasModel(e){return this.modelManager.hasModel(e,this.scope)}removeModel(e){return this.hasModel(e)?(this.modelManager.removeModel(e,this.scope),this):this.fire(new Ct(new Error("No model with this ID exists.")))}listModels(){return this._checkLoaded(),this.modelManager.listModels(this.scope)}addSource(e,t,r={}){if(this._checkLoaded(),void 0!==this.getOwnSource(e))throw new Error(`There is already a source with ID "${e}".`);if(!t.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(t.type)>=0&&this._validate(lo,`sources.${e}`,t,null,r))return;this.map&&this.map._collectResourceTiming&&(t.collectResourceTiming=!0);const i=$A(e,t,this.dispatcher,this);i.scope=this.scope,i.setEventedParent(this,(()=>({isSourceLoaded:this._isSourceCacheLoaded(i.id),source:i.serialize(),sourceId:i.id})));const n=e=>{const t=(e?"symbol:":"other:")+i.id,r=sl(t,this.scope),n=this._sourceCaches[t]=new ob(r,i,e);(e?this._symbolSourceCaches:this._otherSourceCaches)[i.id]=n,n.onAdd(this.map)};n(!1),"vector"!==t.type&&"geojson"!==t.type||n(!0),i.onAdd&&i.onAdd(this.map),this.mergeSources(),this._changes.changed=!0}removeSource(e){this._checkLoaded();const t=this.getOwnSource(e);if(!t)throw new Error("There is no source with this ID");for(const t in this._layers)if(this._layers[t].source===e)return this.fire(new Ct
2(new Error(`Source "${e}" cannot be removed while layer "${t}" is using it.`)));if(this.terrain&&this.terrain.get().source===e)return this.fire(new Ct(new Error(`Source "${e}" cannot be removed while terrain is using it.`)));const r=this.getOwnSourceCaches(e);for(const e of r){const t=ol(e.id);delete this._sourceCaches[t],delete this._changes.updatedSourceCaches[e.id],e.fire(new Tt("data",{sourceDataType:"metadata",dataType:"source",sourceId:e.getSource().id})),e.setEventedParent(null),e.clearTiles()}return delete this._otherSourceCaches[e],delete this._symbolSourceCaches[e],this.mergeSources(),t.setEventedParent(null),t.onRemove&&t.onRemove(this.map),this._changes.changed=!0,this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getOwnSource(e).setData(t),this._changes.changed=!0}getOwnSource(e){const t=this.getOwnSourceCache(e);return t&&t.getSource()}getOwnSources(){const e=[];for(const t in this._otherSourceCaches){const r=this.getOwnSourceCache(t);r&&e.push(r.getSource())}return e}setLights(e){if(this._checkLoaded(),!e)return delete this.ambientLight,void delete this.directionalLight;const t=this._getTransitionParameters();for(const r of e){if(this._validate(uo,"lights",r))return;switch(r.type){case"ambient":if(this.ambientLight){const e=this.ambientLight;e.set(r),e.updateTransitions(t)}else this.ambientLight=new Kw(r,Jw,this.scope,this.options);break;case"directional":if(this.directionalLight){const e=this.directionalLight;e.set(r),e.updateTransitions(t)}else this.directionalLight=new Kw(r,$w,this.scope,this.options)}}const r=new Wa(this.z||0,t);this.ambientLight&&this.ambientLight.recalculate(r),this.directionalLight&&this.directionalLight.recalculate(r),this._brightness=this.calculateLightsBrightness(),this.dispatcher.broadcast("setBrightness",this._brightness)}calculateLightsBrightness(){const e=this.directionalLight,t=this.ambientLight;if(!e||!t)return;const r=e=>.2126*(e[0]<=.03928?e[0]/12.92:Math.pow((e[0]+.055)/1.055,2.4))+.7152*(e[1]<=.03928?e[1]/12.92:Math.pow((e[1]+.055)/1.055,2.4))+.0722*(e[2]<=.03928?e[2]/12.92:Math.pow((e[2]+.055)/1.055,2.4)),i=e.properties.get("color").toArray01(),n=e.properties.get("intensity"),s=e.properties.get("direction"),o=1-J(s.x,s.y,s.z)[2]/90,a=r(i)*n*o,l=t.properties.get("color").toArray01(),c=t.properties.get("intensity");return(a+r(l)*c)/2}getBrightness(){return this._brightness}getLights(){if(!this.enable3dLights())return null;const e=[];return this.directionalLight&&e.push(this.directionalLight.get()),this.ambientLight&&e.push(this.ambientLight.get()),e}enable3dLights(){return!!this.ambientLight&&!!this.directionalLight}getFragmentStyle(e){if(!e)return this;const t=this.fragments.find((({id:t})=>t===e));if(!t)throw new Error(`Style import not found: ${e}`);return t.style}setConfigProperty(e,t,r){const i=gs(r);if("success"!==i.result)return void EC(this,i.value);const n=i.value.expression,s=this.getFragmentStyle(e);s.options.set(t,n),s.updateConfigDependencies()}setConfig(e,t){if(this.options.clear(),e){for(const t in e){const r=gs(e[t]);"success"===r.result&&this.options.set(t,r.value.expression)}this.updateSchema(t)}}updateSchema(e){if(e)for(const t in e){if(this.options.has(t))continue;const r=gs(e[t].default);"success"===r.result&&this.options.set(t,r.value.expression)}}updateConfigDependencies(){for(const e of this._configDependentLayers){const t=this.getLayer(e);t&&(t.possiblyEvaluateVisibility(),this._updateLayer(t))}this.ambientLight&&this.ambientLight.scope===this.scope&&this.ambientLight.updateConfig(this.options),this.directionalLight&&this.directionalLight.scope===this.scope&&this.directionalLight.updateConfig(this.options),this._changes.changed=!0}addLayer(e,t,r={}){this._checkLoaded();const i=e.id;if(this._layers[i])return void this.fire(new Ct(new Error(`Layer with i
2d "${i}" already exists on this map`)));let n;if("custom"===e.type){if(EC(this,function(e){const t=[],r=e.id;return void 0===r&&t.push({message:`layers.${r}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${r}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${r}: property "renderingMode" must be either "2d" or "3d"`}),t}(e)))return;n=Rw(e,this.options)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=L(e=W(e),{source:i})),this._validate(fo,`layers.${i}`,e,{arrayIndex:-1},r))return;n=Rw(e,this.options),this._validateLayer(n),n.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[n.id]=n.serialize()}n.isConfigDependent&&this._configDependentLayers.add(n.fqid),n.setScope(this.scope);const s=t?this._order.indexOf(t):this._order.length;if(t&&-1===s)return void this.fire(new Ct(new Error(`Layer with id "${t}" does not exist on this map.`)));this._order.splice(s,0,i),this._layerOrderChanged=!0,this._layers[i]=n;const o=this.getOwnLayerSourceCache(n),a=!!this.directionalLight&&this.directionalLight.shadowsEnabled();o&&n.canCastShadows()&&a&&(o.castsShadows=!0);const l=this._changes.getRemovedLayer(n);if(l&&n.source&&o&&"custom"!==n.type){this._changes.discardLayerRemoval(n);const e=sl(n.source,n.scope);l.type!==n.type?this._changes.updatedSourceCaches[e]="clear":(this._changes.updatedSourceCaches[e]="reload",o.pause())}this._updateLayer(n),n.onAdd&&n.onAdd(this.map),n.scope=this.scope,this.mergeLayers()}moveLayer(e,t){if(this._checkLoaded(),this._changes.changed=!0,!this._checkLayer(e))return;if(e===t)return;const r=this._order.indexOf(e);this._order.splice(r,1);const i=t?this._order.indexOf(t):this._order.length;
2t&&-1===i?this.fire(new Ct(new Error(`Layer with id "${t}" does not exist on this map.`))):(this._order.splice(i,0,e),this._layerOrderChanged=!0,this.mergeLayers())}removeLayer(e){this._checkLoaded();const t=this._checkLayer(e);if(!t)return;t.setEventedParent(null);const r=this._order.indexOf(e);this._order.splice(r,1),delete this._layers[e],delete this._serializedLayers[e],this._changes.changed=!0,this._layerOrderChanged=!0,this._configDependentLayers.delete(t.fqid),this._changes.removeLayer(t);const i=this.getOwnLayerSourceCache(t);if(i&&i.castsShadows){let e=!1;for(const r in this._layers)if(this._layers[r].source===t.source&&this._layers[r].canCastShadows()){e=!0;break}i.castsShadows=e}t.onRemove&&t.onRemove(this.map),this.mergeLayers()}getOwnLayer(e){return this._layers[e]}hasLayer(e){return e in this._mergedLayers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(e,t,r){this._checkLoaded();const i=this._checkLayer(e);i&&(i.minzoom===t&&i.maxzoom===r||(null!=t&&(i.minzoom=t),null!=r&&(i.maxzoom=r),this._updateLayer(i)))}setSlot(e,t){this._checkLoaded();const r=this._checkLayer(e);r&&r.slot!==t&&(r.slot=t,this._updateLayer(r))}setFilter(e,t,r={}){this._checkLoaded();const i=this._checkLayer(e);if(i&&!_(i.filter,t))return null==t?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(mo,`layers.${i.id}.filter`,t,{layerType:i.type},r)||(i.filter=W(t),this._updateLayer(i)))}getFilter(e){const t=this._checkLayer(e);if(t)return W(t.filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();const n=this._checkLayer(e);n&&(_(n.getLayoutProperty(t),r)||(n.setLayoutProperty(t,r,i),n.isConfigDependent&&this._configDependentLayers.add(n.fqid),this._updateLayer(n)))}getLayoutProperty(e,t){const r=this._checkLayer(e);if(r)return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();const n=this._checkLayer(e);if(!n)return;if(_(n.getPaintProperty(t),r))return;const s=n.setPaintProperty(t,r,i);n.isConfigDependent&&this._configDependentLayers.add(n.fqid),s&&this._updateLayer(n),this._changes.changed=!0,this._changes.updatedPaintProps.add(n.fqid)}getPaintProperty(e,t){const r=this._checkLayer(e);if(r)return r.getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();const r=e.source,i=e.sourceLayer,n=this._checkSource(r);if(!n)return;const s=n.type;if("geojson"===s&&i)return void this.fire(new Ct(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===s&&!i)return void this.fire(new Ct(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===e.id&&this.fire(new Ct(new Error("The feature id parameter must be provided.")));const o=this.getOwnSourceCaches(r);for(const r of o)r.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();const r=e.source,i=this._checkSource(r);if(!i)return;const n=i.type,s="vector"===n?e.sourceLayer:void 0;if("vector"===n&&!s)return void this.fire(new Ct(new Error("The sourceLayer parameter must be provided for vector source types.")));if(t&&"string"!=typeof e.id&&"number"!=typeof e.id)return void this.fire(new Ct(new Error("A feature id is required to remove its specific state property.")));const o=this.getOwnSourceCaches(r);for(const r of o)r.removeFeatureState(s,e.id,t)}getFeatureState(e){this._checkLoaded();const t=e.source,r=e.sourceLayer,i=this._checkSource(t);if(i){if("vector"!==i.type||r)return void 0===e.id&&this.fire(new Ct(new Error("The feature id parameter must be provided."))),this.getOwnSourceCaches(t)[0].getFeatureState(r,e.id);this.fire(new Ct(new Error("The sourceLayer parameter must be provided for vector source types.")))}}setTransition(e){return this.stylesheet.transition=L({},this.stylesheet.transition,e),this.transition=this.stylesheet.transition,this}getTransition(){return L({},this.stylesheet.transition)}serialize(){this._checkLoaded();const e=this.getTerrain(),t=e&&this.terrain&&this.terrain.scope===this.scope?e:void 0;return H({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,imports:this._serializeImports(),schema:this.stylesheet.schema,camera:this.stylesheet.camera,light:this.stylesheet.light,lights:this.stylesheet.lights,terrain:t,fog:this.stylesheet.fog,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,projection:this.stylesheet.projection,sources:this._serializeSources(),layers:this._serializeLayers(this._order)},(e=>void 0!==e))}_updateLayer(e){this._changes.updateLayer(e);const t=this.getLayerSourceCache(e),r=sl(e.source,e.scope);e.source&&!this._changes.updatedSourceCaches[r]&&t&&"raster"!==t.getSource().type&&(this._changes.updatedSourceCaches[r]="reload",t.pause()),this._changes.changed=!0,e.invali
2dateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._mergedLayers[e].type,r=this.order,i={},n=[];for(let s=r.length-1;s>=0;s--){const o=r[s];if(t(o)){i[o]=s;for(const t of e){const e=t[o];if(e)for(const t of e)n.push(t)}}}n.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const s=[];for(let o=r.length-1;o>=0;o--){const a=r[o];if(t(a))for(let e=n.length-1;e>=0;e--){const t=n[e].feature;if(i[t.layer.id]<o)break;s.push(t),n.pop()}else for(const t of e){const e=t[a];if(e)for(const t of e)s.push(t.feature)}}return s}queryRenderedFeatures(e,t,r){t&&t.filter&&this._validate(mo,"queryRenderedFeatures.filter",t.filter,null,t),t.scope=this.scope,t.availableImages=this._availableImages,t.serializedLayers=this._serializedLayers;const i={};if(t&&t.layers){if(!Array.isArray(t.layers))return this.fire(new Ct(new Error("parameters.layers must be an Array."))),[];for(const e of t.layers){const t=this._mergedLayers[e];if(!t)return this.fire(new Ct(new Error(`The layer '${e}' does not exist in the map's style and cannot be queried for features.`))),[];i[t.source]=!0}}const n=[],s=t.serializedLayers||{},o=t&&t.layers?t.layers.some((e=>{const t=this.getLayer(e);return t&&t.is3D()})):this.has3DLayers(),a=eA.createFromScreenPoints(e,r);for(const e in this._mergedSourceCaches){const l=this._mergedSourceCaches[e].getSource();if(!l||l.scope!==t.scope)continue;const c=this._mergedSourceCaches[e].getSource().id;t.layers&&!i[c]||n.push(tE(this._mergedSourceCaches[e],this._mergedLayers,s,a,t,r,o,!!this.map._showQueryGeometry))}return this.placement&&n.push(function(e,t,r,i,n,s,o){const a={},l=s.queryRenderedSymbols(i),c=[];for(const e of Object.keys(l).map(Number))c.push(o[e]);c.sort(iE);for(const r of c){const i=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],t,r.bucketIndex,r.sourceLayerIndex,n.filter,n.layers,n.availableImages,e);for(const e in i){const t=a[e]=a[e]||[],n=i[e];n.sort(((e,t)=>{const i=r.featureSortOrder;if(i){const r=i.indexOf(e.featureIndex);return i.indexOf(t.featureIndex)-r}return t.featureIndex-e.featureIndex}));for(const e of n)t.push(e)}}for(const t in a)a[t].forEach((i=>{const n=i.feature,s=r(e[t]);if(!s)return;const o=s.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}));return a}(this._mergedLayers,s,this.getLayerSourceCache.bind(this),a.screenGeometry,t,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(n)}querySourceFeatures(e,t){t&&t.filter&&this._validate(mo,"querySourceFeatures.filter",t.filter,null,t);const r=this.getOwnSourceCaches(e);let i=[];for(const e of r)i=i.concat(rE(e,t));return i}addSourceType(e,t,r){return MC.getSourceType(e)?r(new Error(`A source type called "${e}" already exists.`)):(MC.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))}getFlatLight(){return this.light.getLight()}setFlatLight(e,t,r={}){this._checkLoaded();const i=this.light.getLight();let n=!1;for(const t in e)if(!_(e[t],i[t])){n=!0;break}if(!n)return;const s=this._getTransitionParameters();this.light.setLight(e,t,r),this.light.updateTransitions(s)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(e,t=1){if(this._checkLoaded(),!e)return delete this.terrain,delete this.stylesheet.terrain,this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let r=e;if(1===t){if("object"==typeof r.source){const e="terrain-dem-src";this.addSource(e,r.source),r=W(r),r=L(r,{source:e})}if(this._validate(ho,"terrain",r))return}if(!this.terrain||this.terrain&&t!==this.terrain.drapeRenderMode){if(!r)return;this._createTerrain(r,t),this.fire(new Tt("data",{dataType:"style"}))}else{const t=this.terrain,i=t.get();for(const e of Object.keys(Pt.terrain))!r.hasOwnProperty(e)&&Pt.terrain[e].default&&(r[e]=Pt.terrain[e].default);for(const r in e)if(!_(e[r],i[r])){t.set(e),this.stylesheet.terrain=e;const r=this._getTransitionParameters({duration:0});t.updateTransitions(r),this.fire(new Tt("data",{dataType:"style"}));break}}this.mergeTerrain(),this.updateDrapeFirstLayers(),this._markersNeedU
2pdate=!0}_createFog(e){const t=this.fog=new Ww(e,this.map.transform);this.stylesheet.fog=t.get();const r=this._getTransitionParameters({duration:0});t.updateTransitions(r)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask((()=>{for(const e of this.map._markers)e._evaluateOpacity()}))}getFog(){return this.fog?this.fog.get():null}setFog(e){if(this._checkLoaded(),!e)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const t=this.fog;if(!_(t.get(),e)){t.set(e),this.stylesheet.fog=t.get();const r=this._getTransitionParameters({duration:0});t.updateTransitions(r)}}else this._createFog(e);this._markersNeedUpdate=!0}_getTransitionParameters(e){return{now:ut.now(),transition:L(this.transition,e)}}updateDrapeFirstLayers(){if(!this.terrain)return;const e=[],t=[];for(const r in this._mergedLayers)this.isLayerDraped(this._mergedLayers[r])?e.push(r):t.push(r);this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const r=this.terrain=new Fw(e,t);r.setScope(this.scope),this.stylesheet.terrain=e,this.mergeTerrain(),this.updateDrapeFirstLayers(),this._force3DLayerUpdate();const i=this._getTransitionParameters({duration:0});r.updateTransitions(i)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(e,t,r,i,n={}){if(n&&!1===n.validate)return!1;const s=L({},this.serialize());return EC(this,e.call(ao,L({key:t,style:s,value:r,styleSpec:Pt},i)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),Va.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._mergedLayers)this._mergedLayers[e].setEventedParent(null);for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles(),this._mergedSourceCaches[e].setEventedParent(null);this.setEventedParent(null),delete this.fog,delete this.terrain,delete this.ambientLight,delete this.directionalLight,this.isRootStyle()&&(this.imageManager.setEventedParent(null),this.modelManager.setEventedParent(null),this.dispatcher.remove())}clearSource(e){const t=this.getSourceCaches(e);for(const e of t)e.clearTiles()}clearSources(){for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles()}reloadSource(e){const t=this.getSourceCaches(e);for(const e of t)e.resume(),e.reload()}updateSources(e){let t;this.directionalLight&&(t=bC(this.directionalLight));for(const r in this._mergedSourceCaches)this._mergedSourceCaches[r].update(e,void 0,void 0,t)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(e,t,r,i,n=!1){let s=!1,o=!1;const a={},l={};for(const t of this._mergedOrder){const r=this._mergedLayers[t];if("symbol"!==r.type)continue;const i=sl(r.source,r.scope);let n=a[i];if(!n){const e=this.getLayerSourceCache(r);if(!e)continue;const t=e.getRenderableIds(!0).map((t=>e.getTileByID(t)));l[i]=t.slice(),n=a[i]=t.sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const o=this.crossTileSymbolIndex.addLayer(r,n,e.center.lng,e.projection);s=s||o}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._mergedOrder),n=n||this._layerOrderChanged||0===r,this._layerOrderChanged&&this.fire(new Tt("neworder")),(n||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(ut.now(),e.zoom))&&(this.pauseablePlacement=new GE(e,this._mergedOrder,n,t,r,i,this.placement,this.fog&&e.projection.supportsFog?this.fog.state:null,this._buildingIndex),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._mergedOrder,this._mergedLayers,a,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(ut.now()),o=!0),s&&this.pauseablePlacement.placement.setStale()),o||s)for(const e of this._mergedOrder){const t=this._mergedLayers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,a[sl(t.source,t.scope)])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(ut.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}addImport(e){this._checkLoaded();const t=this.stylesheet.imports=this.stylesheet.imports||[];return-1!==t.findIndex((({id:t})=>
2t===e.id))?this.fire(new Ct(new Error(`Import with id '${e.id}' already exists in the map's style.`))):(t.push(e),this._loadImports([e],!0),this)}setImportUrl(e,t){this._checkLoaded();const r=this.stylesheet.imports||[],i=this.getImportIndex(e);if(-1===i)return this;r[i].url=t;const n=this.fragments[i];n.style=this._createFragmentStyle({id:e,url:t});const s=new Promise((e=>n.style.on("style.import.load",e)));return n.style.loadURL(t),s.then((()=>this._reloadImports())),this}setImportData(e,t){this._checkLoaded();const r=this.getImportIndex(e),i=this.stylesheet.imports||[];return-1===r?this:t?(this.fragments[r].style.setState(t),this._reloadImports(),this):(delete i[r].data,this.setImportUrl(e,i[r].url))}setImportConfig(e,t){this._checkLoaded();const r=this.getImportIndex(e),i=this.stylesheet.imports||[];if(-1===r)return this;t?i[r].config=t:delete i[r].config;const n=this.fragments[r],s=n.style.stylesheet&&n.style.stylesheet.schema;return n.config=t,n.style.setConfig(t,s),n.style.updateConfigDependencies(),this}removeImport(e){this._checkLoaded();const t=this.stylesheet.imports||[],r=this.getImportIndex(e);return-1===r||(t.splice(r,1),this.fragments[r].style._remove(),this.fragments.splice(r,1),this._reloadImports()),this}getImportIndex(e){const t=(this.stylesheet.imports||[]).findIndex((t=>t.id===e));return-1===t&&this.fire(new Ct(new Error(`Import '${e}' does not exist in the map's style and cannot be updated.`))),t}getLayer(e){return this._mergedLayers[e]}getSources(){const e=[];for(const t in this._mergedOtherSourceCaches){const r=this._mergedOtherSourceCaches[t];r&&e.push(r.getSource())}return e}getSource(e,t){const r=this.getSourceCache(e,t);return r&&r.getSource()}getLayerSource(e){const t=this.getLayerSourceCache(e);return t&&t.getSource()}getSourceCache(e,t){const r=sl(e,t);return this._mergedOtherSourceCaches[r]}getLayerSourceCache(e){const t=sl(e.source,e.scope);return"symbol"===e.type?this._mergedSymbolSourceCaches[t]:this._mergedOtherSourceCaches[t]}getSourceCaches(e){const t=[];return this._mergedOtherSourceCaches[e]&&t.push(this._mergedOtherSourceCaches[e]),this._mergedSymbolSourceCaches[e]&&t.push(this._mergedSymbolSourceCaches[e]),t}updateSourceCaches(){for(const e in this._changes.updatedSourceCaches){const t=this._changes.updatedSourceCaches[e];"reload"===t?this.reloadSource(e):"clear"===t&&this.clearSource(e)}}updateLayers(e){for(const t of this._changes.updatedPaintProps){const r=this.getLayer(t);r&&r.updateTransitions(e)}}getImages(e,t,r){this.imageManager.getImages(t.icons,t.scope,r),this._updateTilesForChangedImages();const i=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};i(this._otherSourceCaches[t.source]),i(this._symbolSourceCaches[t.source])}getGlyphs(e,t,r){this.glyphManager.getGlyphs(t.stacks,t.scope,r)}getResource(e,t,r){return xe(t,r)}getOwnSourceCache(e){return this._otherSourceCaches[e]}getOwnLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}getOwnSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(e){const t=this.getOwnSourceCaches(e);return 0===t.length?(this.fire(new Ct(new Error(`There is no source with ID '${e}'`))),!1):t.every((e=>e.loaded()))}has3DLayers(){return this._has3DLayers}hasSymbolLayers(){return this._hasSymbolLayers}hasCircleLayers(){return this._hasCircleLayers}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}function kC(e,t){let r=!1,i=null;const n=()=>{i=null,r&&(e(),i=setTimeout(n,t),r=!1)};return()=>(r=!0,i||n(),i)}MC.getSourceType=function(e){return JA[e]},MC.setSourceType=function(e,t){JA[e]=t},MC.registerForPluginStateChange=function(e){return e({pluginStatus:ja,pluginURL:Fa}),Va.on("pluginStateChange",e),e};class OC{constructor(e){this._hashName=e&&encodeURIComponent(e),V(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=kC(this._updateHashUnthrottled.bind(this),300)}addTo(e){return this._map=e,t.addEventListener("hashchange",this._onHashChange,!1),e.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),t.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const e=this._map;if(!e)return"";const r=RC(e);if(this._hashName){const e=this._hashName;let i=!1;const n=t.location.hash.slice(1).split("&").map((t=>{const n=t.split("=")[0];return n===e?(i=!0,`${n}=${r}`):t})).filter((e=>e));return i||n.push(`${e}=${r}`),`#${n.join("&")}`}return`#${r}`}_getCurrentHash(){const e=t.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map((e=>
2e.split("="))).forEach((e=>{e[0]===this._hashName&&(t=e)})),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some((e=>isNaN(e)))){const r=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const e=t.location.href.replace(/(#.+)?$/,this.getHashString());t.history.replaceState(t.history.state,null,e)}}function RC(e,t){const r=e.getCenter(),i=Math.round(100*e.getZoom())/100,n=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),s=Math.pow(10,n),o=Math.round(r.lng*s)/s,a=Math.round(r.lat*s)/s,l=e.getBearing(),c=e.getPitch();let u=t?`/${o}/${a}/${i}`:`${i}/${a}/${o}`;return(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+=`/${Math.round(c)}`),u}const DC={linearity:.3,easing:I(0,0,.3,1)},LC=L({deceleration:2500,maxSpeed:1400},DC),BC=L({deceleration:20,maxSpeed:1400},DC),zC=L({deceleration:1e3,maxSpeed:360},DC),jC=L({deceleration:1e3,maxSpeed:90},DC);class FC{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:ut.now(),settings:e})}_drainInertiaBuffer(){const e=this._inertiaBuffer,t=ut.now();for(;e.length>0&&t-e[0].time>160;)e.shift()}_onMoveEnd(e){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const t={zoom:0,bearing:0,pitch:0,pan:new v(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)t.zoom+=e.zoomDelta||0,t.bearing+=e.bearingDelta||0,t.pitch+=e.pitchDelta||0,e.panDelta&&t.pan._add(e.panDelta),e.around&&(t.around=e.around),e.pinchAround&&(t.pinchAround=e.pinchAround);const r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(t.pan.mag()){const n=UC(t.pan.mag(),r,L({},LC,e||{}));i.offset=t.pan.mult(n.amount/t.pan.mag()),i.center=this._map.transform.center,NC(i,n)}if(t.zoom){const e=UC(t.zoom,r,BC);i.zoom=this._map.transform.zoom+e.amount,NC(i,e)}if(t.bearing){const e=UC(t.bearing,r,zC);i.bearing=this._map.transform.bearing+M(e.amount,-179,179),NC(i,e)}if(t.pitch){const e=UC(t.pitch,r,jC);i.pitch=this._map.transform.pitch+e.amount,NC(i,e)}if(i.zoom||i.bearing){const e=void 0===t.pinchAround?t.around:t.pinchAround;i.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),i.noMoveStart=!0,i}}function NC(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function UC(e,t,r){const{maxSpeed:i,linearity:n,deceleration:s}=r,o=M(e*n/(t/1e3),-i,i),a=Math.abs(o)/(s*n);return{easing:r.easing,duration:1e3*a,amount:o*(a/2)}}class VC extends Tt{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){const n=bt(t.getCanvasContainer(),r);super(e,L({point:n,lngLat:t.unproject(n),originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}}class GC extends Tt{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){const i="touchend"===e?r.changedTouches:r.touches,n=xt(t.getCanvasContainer(),i),s=n.map((e=>t.unproject(e))),o=n.reduce(((e,t,r,i)=>e.add(t.div(i.length))),new v(0,0));super(e,{points:n,point:o,lngLats:s,lngLat:t.unproject(o),originalEvent:r}),this._defaultPrevented=!1}}class qC extends Tt{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){super(e,{originalEvent:r}),this._defaultPrevented=!1}}class HC{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new qC(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new VC(e.type,this._map,e))}mouseup(e){this._map.fire(new VC(e.type,this._map,e))}preclick(e){const t=L({},e);t.type="preclick",this._map.fire(new VC(t.type,this._map,t))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new VC(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new VC(e.type,this._map,e))}mouseover(e){this._map.fire(new VC(e.type,this._map,e))}mouseout(e){this._map.fire(new VC(e.type,this._map,e))}touchstart(e){return this._firePreventable(new GC(e.type,this._map,e))}touchmove(e){this._map.fire(new GC(e.type,this._map,e))}touchend(e){this._map.fire(new GC(e.type,this._map,e))}touchcancel(e){this._map.fire(new GC(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class WC{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new VC(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new VC("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new VC(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class YC{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(gt(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const r=t,i=this._startPos,n=this._lastPos;if(!i||!n||n.equals(r)||!this._box&&r.dist(i)<this._clickTolerance)return;this._lastPos=r,this._box||(this._box=ht("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const s=Math.min(i.x,r.x),o=Math.max(i.x,r.x),a=Math.min(i.y,r.y),l=Math.max(i.y,r.y);this._map._requestDomTask((()=>{this._box&&(this._box.style.transform=`translate(${s}px,${a}px)`,this._box.style.width=o-s+"px",this._box.style.height=l-a+"px")}))}mouseupWindow(e,t){if(!this._active)return;const r=this._startPos,i=t;if(r&&0===e.button){if(this.reset(),_t(),r.x!==i.x||r.y!==i.y)return this._map.fire(new Tt("boxzoomend",{originalEvent:e})),{cameraAnimation:e=>e.fitScreenCoordinates(r,i,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",e)}}
vendor: 4,687 bytes, line 2
2keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),yt(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new Tt(e,{originalEvent:t}))}}function QC(e,t){const r={};for(let i=0;i<e.length;i++)r[e[i].identifier]=t[i];return r}class ZC{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){const t=new v(0,0);for(const r of e)t._add(r);return t.div(e.length)}(t),this.touches=QC(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;const i=QC(r,t);for(const e in this.touches){const t=i[e];(!t||t.dist(this.touches[e])>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class XC{constructor(e){this.singleTap=new ZC(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){const i=this.singleTap.touchend(e,t,r);if(i){const t=e.timeStamp-this.lastTime<500,r=!this.lastTap||this.lastTap.dist(i)<30;if(t&&r||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}}class KC{constructor(){this._zoomIn=new XC({numTouches:1,numTaps:2}),this._zoomOut=new XC({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){const i=this._zoomIn.touchend(e,t,r),n=this._zoomOut.touchend(e,t,r);return i?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(i)},{originalEvent:e})}):n?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(n)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const JC={0:1,2:2};class $C{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const r=wt(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}mousemoveWindow(e,t){const r=this._lastPoint;if(r)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const r=JC[t];return void 0===e.buttons||(e.buttons&r)!==r}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(r)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(r,t)}mouseupWindow(e){this._lastPoint&&wt(e)===this._eventButton&&(this._moved&&_t(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class eI extends $C{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class tI extends $C{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const r=.8*(t.x-e.x);if(r)return this._active=!0,{bearingDelta:r}}contextmenu(e){e.preventDefault()}}class rI extends $C{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const r=-.5*(t.y-e.y);if(r)return this._active=!0,{pitchDelta:r}}contextmenu(e){e.preventDefault()}}class iI{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset(),V(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new v(0,0)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active&&!(r.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===r.length&&!re())return void this._showTouchPanBlockerAlert();
vendor: 4,241 bytes, line 2
2"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return e.cancelable&&e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&r.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);const i=QC(r,t),n=new v(0,0),s=new v(0,0);let o=0;for(const e in i){const t=i[e],r=this._touches[e];r&&(n._add(t),s._add(t.sub(r)),o++,i[e]=t)}if(this._touches=i,o<this._minTouches||!s.mag())return;const a=s.div(o);return this._sum._add(a),this._sum.mag()<this._clickTolerance?void 0:{around:n.div(o),panDelta:a}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=ht("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")}),500)}}class nI{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,r){return{}}touchstart(e,t,r){this._firstTwoTouches||r.length<2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,r){const i=this._firstTwoTouches;if(!i)return;e.preventDefault();const[n,s]=i,o=sI(r,t,n),a=sI(r,t,s);if(!o||!a)return;const l=this._aroundCenter?null:o.add(a).div(2);return this._move([o,a],l,e)}touchend(e,t,r){if(!this._firstTwoTouches)return;const[i,n]=this._firstTwoTouches,s=sI(r,t,i),o=sI(r,t,n);s&&o||(this._active&&_t(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function sI(e,t,r){for(let i=0;i<e.length;i++)if(e[i].identifier===r)return t[i]}function oI(e,t){return Math.log(e/t)/Math.LN2}class aI extends nI{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const r=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(oI(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:oI(this._distance,r),pinchAround:t}}}function lI(e,t){return 180*e.angleWith(t)/Math.PI}class cI extends nI{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const r=this._vector;if(this._vector=e[0].sub(e[1]),r&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:lI(this._vector,r),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,r=this._startVector;if(!r)return!1;const i=lI(e,r);return Math.abs(i)<t}}function uI(e){return Math.abs(e.y)>Math.abs(e.x)}class hI extends nI{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,uI(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,r){const i=this._lastPoints;if(!i)return;const n=e[0].sub(i[0]),s=e[1].sub(i[1]);return this._map._cooperativeGestures&&!re()&&r.touches.length<3||(this._val
vendor: 9,021 bytes, line 2
2id=this.gestureBeginsVertically(n,s,r.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(n.y+s.y)/2*-.5})}gestureBeginsVertically(e,t,r){if(void 0!==this._valid)return this._valid;const i=e.mag()>=2,n=t.mag()>=2;if(!i&&!n)return;if(!i||!n)return null==this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;const s=e.y>0==t.y>0;return uI(e)&&uI(t)&&s}}const dI={panStep:100,bearingStep:15,pitchStep:10};class pI{constructor(){const e=dI;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,n=0,s=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),s=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),s=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{const a=o.getZoom();o.easeTo({duration:300,easeId:"keyboardHandler",easing:fI,zoom:t?Math.round(a)+t*(e.shiftKey?2:1):a,bearing:o.getBearing()+r*this._bearingStep,pitch:o.getPitch()+i*this._pitchStep,offset:[-n*this._panStep,-s*this._panStep],center:o.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function fI(e){return e*(2-e)}const mI=4.000244140625;class gI{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._handler=t,this._delta=0,this._lastDelta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,V(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(e){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(e.ctrlKey||e.metaKey||this.isZooming()||re()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let r=e.deltaMode===t.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY;const i=ut.now(),n=i-(this._lastWheelEventTime||0);this._lastWheelEventTime=i,0!==r&&r%mI==0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":n>400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(n*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=bt(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const e=this._map.transform;"wheel"===this._type&&e.projection.wrap&&(e._center.lng>=180||e._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const t=()=>e._terrainEnabled()&&this._aroundCoord?e.computeZoomRelativeTo(this._aroundCoord):e.zoom;if(0!==this._delta){const r="wheel"===this._type&&Math.abs(this._delta)>mI?this._wheelZoomRate:this._defaultZoomRate;let i=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==i&&(i=1/i);const n=t(),s=Math.pow(2,n),o="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):s;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n,this._easing=this._smoothOutEasing(200)),this._lastDelta=this._delta,this._delta=0}const r="number"==typeof this._targetZoom?this._targetZoom:t(),i=this._startZoom,n=this._easing;let s,o=!1;if("wheel"===this._type&&i&&n){const e=Math.min((ut.now()-this._lastWheelEventTime)/200,1);s=Wi(i,r,n(e)),e<1?this._frameId||(this._frameId=!0):o=!0}else s=r,o=!0;this._active=!0,o&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200));let a=s-t();return a*this._lastDelta<0&&(a=0),{noInertia:!0,needsRenderFrame:!o,zoomDelta:a,around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=P;if(this._prevEase){const e=this._prevEase,r=(ut.now()-e.start)/e.duration,i=e.easing(r+.01)-e.easing(r),n=.27/Math.sqrt(i*i+1e-4)*.01;t=I(n,Math.sqrt(.0729-n*n),.25,1)}return this._prevEase={start:ut.now(),duration:e,easing:t},t}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=ht("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(t.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")}),200)}}class yI{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class vI{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:r.getZoom()+(e.shiftKey?-1:1),around:r.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class _I{constructor(){this._tap=new XC({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,r){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=t[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(e,t,r))}touchmove(e,t,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;const i=t[0],n=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:n/128}}}else this._tap.touchmove(e,t,r)}touchend(e,t,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(e,t,r)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class bI{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class xI{constructor(e,t,r){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=r}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}
vendor: 5,042 bytes, line 2
2class wI{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const AI=e=>e.zoom||e.drag||e.pitch||e.rotate;class EI extends Tt{}class SI{constructor(){this.constants=[1,1,.01],this.radius=0}setup(e,t){const r=yd.sub([],t,e);this.radius=yd.length(r[2]<0?yd.div([],r,this.constants):[r[0],r[1],0])}projectRay(e){yd.div(e,e,this.constants),yd.normalize(e,e),yd.mul(e,e,this.constants);const t=yd.scale([],e,this.radius);if(t[2]>0){const e=yd.scale([],[0,0,1],yd.dot(t,[0,0,1])),r=yd.scale([],yd.normalize([],[t[0],t[1],0]),this.radius),i=yd.add([],t,yd.scale([],yd.sub([],yd.add([],r,e),t),2));t[0]=i[0],t[1]=i[1]}return t}}function TI(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class CI{constructor(e,r){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new FC(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new SI,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(r),V(["handleEvent","handleWindowEvent"],this);const i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.document,"mousemove",{capture:!0}],[t.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t,"blur",void 0]];for(const[e,r,i]of this._listeners)e.addEventListener(r,e===t.document?this.handleWindowEvent:this.handleEvent,i)}destroy(){for(const[e,r,i]of this._listeners)e.removeEventListener(r,e===t.document?this.handleWindowEvent:this.handleEvent,i)}_addDefaultHandlers(e){const t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new HC(t,e));const i=t.boxZoom=new YC(t,e);this._add("boxZoom",i);const n=new KC,s=new vI;t.doubleClickZoom=new yI(s,n),this._add("tapZoom",n),this._add("clickZoom",s);const o=new _I;this._add("tapDragZoom",o);const a=t.touchPitch=new hI(t);this._add("touchPitch",a);const l=new tI(e),c=new rI(e);t.dragRotate=new xI(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new eI(e),h=new iI(t,e);t.dragPan=new bI(r,u,h),this._add("mousePan",u),this._add("touchPan",h,["touchZoom","touchRotate"]);const d=new cI,p=new aI;t.touchZoomRotate=new wI(r,p,d,o),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",p,["touchPan","touchRotate"]),this._add("blockableMapEvent",new WC(t));const f=t.scrollZoom=new gI(t,this);this._add("scrollZoom",f,["mousePan"]);const m=t.keyboard=new pI;this._add("keyboard",m);for(const r of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[r]&&t[r].enable(e[r])}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[],this._originalZoom=void 0}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!AI(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(e,t,r){for(const i in e)if(i!==r&&(!t||t.indexOf(i)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const r of e)this._el.contains(r.target)&&t.push(r);return t}handleEvent(e,t){this._updatingCamera=!0;const r="renderFrame"===e.type,i=r?void 0:e,n={needsRenderFrame:!1},s={},o={},a=e.touches?this._getMapTouches(e.touches):void 0,l=a?xt(this._el,a):r?void 0:bt(this._el,e);for(const{handlerName:r,handler:c,allowed:u}of this._handlers){if(!c.isEnabled())continue;let h;this._blockedByActive(o,u,r)?c.reset():c[t||e.type]&&(h=c[t||e.type](e,l,a),this.mergeHandlerResult(n,s,h,r,i),h&&h.needsRenderFrame&&this._triggerRe
vendor: 4,088 bytes, line 2
2nderFrame()),(h||c.isActive())&&(o[r]=c)}const c={};for(const e in this._previousActiveHandlers)o[e]||(c[e]=i);this._previousActiveHandlers=o,(Object.keys(c).length||TI(n))&&(this._changes.push([n,s,c]),this._triggerRenderFrame()),(Object.keys(o).length||TI(n))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=n;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(e,t,r,i,n){if(!r)return;L(e,r);const s={handlerName:i,originalEvent:r.originalEvent||n};void 0!==r.zoomDelta&&(t.zoom=s),void 0!==r.panDelta&&(t.drag=s),void 0!==r.pitchDelta&&(t.pitch=s),void 0!==r.bearingDelta&&(t.rotate=s)}_applyChanges(){const e={},t={},r={};for(const[i,n,s]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new v(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(e.around=i.around),void 0!==i.aroundCoord&&(e.aroundCoord=i.aroundCoord),void 0!==i.pinchAround&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),L(t,n),L(r,s);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){const i=this._map,n=i.transform,s=e=>[e.x,e.y,e.z];if((()=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!TI(e)){const e=n.zoom;n.cameraElevationReference="sea",null!=this._originalZoom&&n._orthographicProjectionAtLowPitch&&"globe"!==n.projection.name&&0===n.pitch?(n.cameraElevationReference="ground",n.zoom=this._originalZoom):(n.recenterOnTerrain(),n.cameraElevationReference="ground"),e!==n.zoom&&this._map._update(!0)}if(n._isCameraConstrained&&i._stop(!0),!TI(e))return void this._fireEvents(t,r,!0);let{panDelta:o,zoomDelta:a,bearingDelta:l,pitchDelta:c,around:u,aroundCoord:h,pinchAround:d}=e;n._isCameraConstrained&&(a>0&&(a=0),n._isCameraConstrained=!1),void 0!==d&&(u=d),(a||(e=>t[e]&&!this._eventsInProgress[e])("drag"))&&u&&(this._dragOrigin=s(n.pointCoordinate3D(u)),this._originalZoom=n.zoom,this._trackingEllipsoid.setup(n._camera.position,this._dragOrigin)),n.cameraElevationReference="sea",i._stop(!0),u=u||i.transform.centerPoint,l&&(n.bearing+=l),c&&(n.pitch+=c),n._updateCameraState();const p=[0,0,0];if(o)if("mercator"===n.projection.name){const e=this._trackingEllipsoid.projectRay(n.screenPointToMercatorRay(u).dir),t=this._trackingEllipsoid.projectRay(n.screenPointToMercatorRay(u.sub(o)).dir);p[0]=t[0]-e[0],p[1]=t[1]-e[1]}else{const e=n.pointCoordinate(u);if("globe"===n.projection.name){o=o.rotate(-n.angle);const t=n._pixelsPerMercatorPixel/n.worldSize;p[0]=-o.x*Fp(Dp(e.y))*t,p[1]=-o.y*Fp(n.center.lat)*t}else{const t=n.pointCoordinate(u.sub(o));e&&t&&(p[0]=t.x-e.x,p[1]=t.y-e.y)}}const f=n.zoom,m=[0,0,0];if(a){const e=s(h||n.pointCoordinate3D(u)),t={dir:yd.normalize([],yd.sub([],e,n._camera.position))};if(t.dir[2]<0){const r=n.zoomDeltaToMovement(e,a);yd.scale(m,t.dir,r)}}const g=yd.add(p,p,m);n._translateCameraConstrained(g),a&&Math.abs(n.zoom-f)>1e-4&&n.recenterOnTerrain(),n.cameraElevationReference="ground",this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_fireEvents(e,t,r){const i=AI(this._eventsInProgress),n=AI(e),s={};for(const t in e){const{originalEvent:r}=e[t];this._eventsInProgress[t]||(s[`${t}start`]=r),this._eventsInProgress[t]=e[t]}!i&&n&&this._fireEvent("movestart",n.originalEvent);for(const e in s)this._fireEvent(e,s[e]);n&&this._fireEvent("move",n.originalEvent);for(const t in e){const{originalEvent:r}=e[t];this._fireEvent(t,r)}const o={};let a;for(const e in this._eventsInProgress){const{handlerName:r,originalEvent:i}=this._eventsInProgress[e];this._handlersById[r].isActive()||(delete this._eventsInProgress[e],a=t[r]||i,o[`${e}end`]=a)}for(const e in o)this._fireEvent(e,o[e]);const l=AI(this._eventsInProgress);if(r&&(i||n)&&!l){this._updatingCamera=!0;const e=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),t=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;
2e?(t(e.bearing||this._map.getBearing())&&(e.bearing=0),this._map.easeTo(e,{originalEvent:a})):(this._map.fire(new Tt("moveend",{originalEvent:a})),t(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(e,t){this._map.fire(new Tt(e,t?{originalEvent:t}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((e=>{this._frameId=void 0,this.handleEvent(new EI("renderFrame",{timeStamp:e})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const II="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class PI extends It{constructor(e,t){super(),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=t.bearingSnap,this._respectPrefersReducedMotion=!1!==t.respectPrefersReducedMotion,V(["_renderFrameCallback"],this)}getCenter(){return new Ip(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(e,t,r){return e=v.convert(e).mult(-1),this.panTo(this.transform.center,L({offset:e},t),r)}panTo(e,t,r){return this.easeTo(L({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(L({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(L({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,L({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(L({bearing:0,pitch:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(e,t){e=Hc.convert(e);const r=t&&t.bearing||0,i=t&&t.pitch||0,n=e.getNorthWest(),s=e.getSouthEast();return this._cameraForBounds(this.transform,n,s,r,i,t)}_extendCameraOptions(e){const t={top:0,bottom:0,right:0,left:0};if("number"==typeof(e=L({padding:t,offset:[0,0],maxZoom:this.transform.maxZoom},e)).padding){const t=e.padding;e.padding={top:t,bottom:t,right:t,left:t}}return e.padding=L(t,e.padding),e}_minimumAABBFrustumDistance(e,t){const r=t.max[0]-t.min[0],i=t.max[1]-t.min[1];return r/i>e.aspect?r/(2*Math.tan(.5*e.fovX)*e.aspect):i/(2*Math.tan(.5*e.fovY)*e.aspect)}_cameraForBoundsOnGlobe(e,t,r,i,n,s){const o=e.clone(),a=this._extendCameraOptions(s);o.bearing=i,o.pitch=n;const l=Ip.convert(t),c=Ip.convert(r),u=.5*(l.lat+c.lat),h=.5*(l.lng+c.lng),d=np(u,h),p=yd.normalize([],d),f=yd.normalize([],yd.cross([],p,[0,1,0])),m=yd.cross([],f,p),g=[f[0],f[1],f[2],0,m[0],m[1],m[2],0,p[0],p[1],p[2],0,0,0,0,1],y=[d,np(l.lat,l.lng),np(c.lat,l.lng),np(c.lat,c.lng),np(l.lat,c.lng),np(u,l.lng),np(u,c.lng),np(l.lat,h),np(c.lat,h)];let v=Fd.fromPoints(y.map((e=>[yd.dot(f,e),yd.dot(m,e),yd.dot(p,e)])));const _=yd.transformMat4([],v.center,g);0===yd.squaredLength(_)&&yd.set(_,0,0,1),yd.normalize(_,_),yd.scale(_,_,Nd),o.center=function([e,t,r]){const i=Math.hypot(e,t,r),n=Math.atan2(e,r),s=.5*Math.PI-Math.acos(-t/i);return new Ip(A(n),A(s))}(_);const b=o.getWorldToCameraMatrix(),x=hd.invert(new Float64Array(16),b);v=Fd.applyTransform(v,hd.multiply([],b,g)),yd.transformMat4(_,_,b);const w=.5*(v.max[2]-v.min[2]),E=this._minimumAABBFrustumDistance(o,v),S=yd.scale([],[0,0,1],w),T=yd.add(S,_,S),C=E+(0===o.pitch?0:yd.distance(_,T)),I=o.globeCenterInViewSpace,P=yd.sub([],_,[I[0],I[1],I[2]]);yd.normalize(P,P),yd.scale(P,P,C);const M=yd.add([],_,P);yd.transformMat4(M,M,x);const k=Sp/Nd,O=yd.length(M),R=Op(Math.max(O*k-Sp,Number.EPSILON),0),D=Math.min(o.zoomFromMercatorZAdjusted(R),a.maxZoom);return D>5.5?(o.setProjection({name:"mercator"}),o.zoom=D,this._cameraForBounds(o,t,r,i,n,s)):{center:o.center,zoom:D,bearing:i,pitch:n}}queryTerrainElevation(e,t){const r=this.transform.elevation;return r?(t=L({},{exaggerated:!0},t),r.getAtPoint(Up.fromLngLat(e),null,t.exaggerated)):null}_cameraForBounds(e,t,r,i,n,s){if("globe"===e.projection.name)return this._cameraForBoundsOnGlobe(e,t,r,i,n,s);const o=e.clone(),a=this._extendCameraOptions(s),l=o.padding;o.bearing=i,o.pitch=n;const c=Ip.convert(t),u=Ip.convert(r),h=new Ip(c.lng,u.lat),d=new Ip(u.lng,c.lat),p=o.project(c),f=o.project(u),m=this.queryTerrainElevation(c),g=this.queryTerrainElevation(u),y=this.queryTerrainElevation(h),_=this.queryTerrainElevation(d),b=[[p.x,p.y,Math.min(m||0,g||0,y||0,_||0)],[f.x,f.y,Math.max(m||0,g||0,y||0,_||0)]];let x=Fd.fromPoints(b);const A=o.getWorldToCameraMatrix(),E=hd.invert(new Float64Array(16),A);x=Fd.applyTransform(x,A);const S=yd.sub([],x.max,x.min),T=l.left||0,C=l.right||0,I=l.bottom||0,P=l.top||0,{left:M,right:k,top:O,bottom:R}=a.padding,D=.5*(T+C),L=.5*(P+I),B=Math.min(o.scaleZoom(o.scale*Math.min((o.width-(T+C+M+k))/S[0],(o.height-(I+P+R+O))/S[1])),a.maxZoom),z=o.scale/o.zoomScale(B);x=new Fd([x.min[0]-(M+D)*z,x.min[1]-(R+L)*z,x.min[2]],[x.max[0]+(k+D)*z,x.max[1]+(O+L)*z,x.max[2]]);const j=.5*S[2],F=this._minimumAABBFrustumDistance(o,x),N=[0,0,1,0];id.transformMat4(N,N,A),id.normalize(N,N);const U=yd.scale([],N,F+j),V=yd.add([],x.center,U),G=("number"==typeof a.offset.x&&"number"==typeof a.offset.y?new v(a.offset.x,a.offset.y):v.convert(a.offset)).rotate(-w(i));x.center[0]-=G.x*z,x.center[1]+=G.y*z,yd.transformMat4(x.center,x.center,E),yd.transformMat4(V,V,E);const q=[x.center[0],x.center[1],V[2]*o.pixelsPerMeter];yd.scale(q,q,1/o.worldSize);const H=Rp(q[0]),W=Dp(q[1]),Y=Math.min(o._zoomFromMercatorZ(q[2]),a.maxZoom),Q=new Ip(H,W);return o.mercatorFromTransition&&Y<5.5?(o.setProjection({name:"globe"}),o.zoom=Y,this._cameraForBounds(o,t,r,i,n,s)):{center:Q,zoom:Y,bearing:i,pitch:n}}fitBounds(e,t,r){const i=this.cameraForBounds(e,t);return this._fitInternal(i,t,r)}fitScreenCoordinates(e,t,r,i,n){const s=v.convert(e),o=v.convert(t),a=new v(Math.min(s.x,o.x),Math.min(s.y,o.y)),l=new v(Math.max(s.x,o.x),Math.max(s.y,o.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(s,o))return this;const c=this.transform.pointLocation3D(a),u=this.transform.pointLocation3D(l),h=this.transform.pointLocation3D(new v(a.x,l.y)),d=this.transform.pointLocation3D(new v(l.x,a.y)),p=[Math.min(c.lng,u.lng,h.lng,d.lng),Math.min(c.lat,u.lat,h.lat,d.lat)],f=[Math.max(c.lng,u.lng,h.lng,d.lng),Math.max(c.lat,u.lat,h.lat,d.lat)],m=i&&i.pitch?i.pitch:this.getPitch(),g=this._cameraForBounds(this.transform,p,f,r,m,i);return this._fitInternal(g,i,n)}_fitInternal(e,t,r){return e?(delete(t=L(e,t)).padding,t.linear?this.easeTo(t,r):this.flyTo(t,r)):this}jumpTo(e,t){this.stop();const r=e.preloadOnly?this.transform.clone():this.transform;let i=!1,n=!1,s=!1;return"zoom"in e&&r.zoom!==+e.zoom&&(i=!0,r.zoom=+e.zoom),void 0!==e.center&&(r.center=Ip.c
vendor: 6,170 bytes, line 2
2onvert(e.center)),"bearing"in e&&r.bearing!==+e.bearing&&(n=!0,r.bearing=+e.bearing),"pitch"in e&&r.pitch!==+e.pitch&&(s=!0,r.pitch=+e.pitch),null==e.padding||r.isPaddingEqual(e.padding)||(r.padding=e.padding),e.preloadOnly?(this._preloadTiles(r),this):(this.fire(new Tt("movestart",t)).fire(new Tt("move",t)),i&&this.fire(new Tt("zoomstart",t)).fire(new Tt("zoom",t)).fire(new Tt("zoomend",t)),n&&this.fire(new Tt("rotatestart",t)).fire(new Tt("rotate",t)).fire(new Tt("rotateend",t)),s&&this.fire(new Tt("pitchstart",t)).fire(new Tt("pitch",t)).fire(new Tt("pitchend",t)),this.fire(new Tt("moveend",t)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||Q(II),this.transform.getFreeCameraOptions()}setFreeCameraOptions(e,t){const r=this.transform;if(!r.projection.supportsFreeCamera)return Q(II),this;this.stop();const i=r.zoom,n=r.pitch,s=r.bearing;r.setFreeCameraOptions(e);const o=i!==r.zoom,a=n!==r.pitch,l=s!==r.bearing;return this.fire(new Tt("movestart",t)).fire(new Tt("move",t)),o&&this.fire(new Tt("zoomstart",t)).fire(new Tt("zoom",t)).fire(new Tt("zoomend",t)),l&&this.fire(new Tt("rotatestart",t)).fire(new Tt("rotate",t)).fire(new Tt("rotateend",t)),a&&this.fire(new Tt("pitchstart",t)).fire(new Tt("pitch",t)).fire(new Tt("pitchend",t)),this.fire(new Tt("moveend",t)),this}easeTo(e,t){this._stop(!1,e.easeId),(!1===(e=L({offset:[0,0],duration:500,easing:P},e)).animate||this._prefersReducedMotion(e))&&(e.duration=0);const r=this.transform,i=this.getZoom(),n=this.getBearing(),s=this.getPitch(),o=this.getPadding(),a="zoom"in e?+e.zoom:i,l="bearing"in e?this._normalizeBearing(e.bearing,n):n,c="pitch"in e?+e.pitch:s,u="padding"in e?e.padding:r.padding,h=v.convert(e.offset);let d,p,f;if("globe"===r.projection.name){const t=Up.fromLngLat(r.center),i=h.rotate(-r.angle);t.x+=i.x/r.worldSize,t.y+=i.y/r.worldSize;const n=t.toLngLat(),s=Ip.convert(e.center||n);this._normalizeCenter(s),d=r.centerPoint.add(i),p=new v(t.x,t.y).mult(r.worldSize),f=new v(Mp(s.lng),kp(s.lat)).mult(r.worldSize).sub(p)}else{d=r.centerPoint.add(h);const t=r.pointLocation(d),i=Ip.convert(e.center||t);this._normalizeCenter(i),p=r.project(t),f=r.project(i).sub(p)}const m=r.zoomScale(a-i);let g,y;e.around&&(g=Ip.convert(e.around),y=r.locationPoint(g));const _=this._zooming||a!==i,b=this._rotating||n!==l,x=this._pitching||c!==s,w=!r.isPaddingEqual(u),A=r=>v=>{if(_&&(r.zoom=Wi(i,a,v)),b&&(r.bearing=Wi(n,l,v)),x&&(r.pitch=Wi(s,c,v)),w&&(r.interpolatePadding(o,u,v),d=r.centerPoint.add(h)),g)r.setLocationAtPoint(g,y);else{const e=r.zoomScale(r.zoom-i),t=a>i?Math.min(2,m):Math.max(.5,m),n=Math.pow(t,1-v),s=r.unproject(p.add(f.mult(v*n)).mult(e));r.setLocationAtPoint(r.renderWorldCopies?s.wrap():s,d)}return e.preloadOnly||this._fireMoveEvents(t),r};if(e.preloadOnly){const t=this._emulate(A,e.duration,r);return this._preloadTiles(t),this}const E={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=_,this._rotating=b,this._pitching=x,this._padding=w,this._easeId=e.easeId,this._prepareEase(t,e.noMoveStart,E),this._ease(A(r),(e=>{"sea"===r.cameraElevationReference&&r.recenterOnTerrain(),this._afterEase(t,e)}),e),this}_prepareEase(e,t,r={}){this._moving=!0,this.transform.cameraElevationReference="sea",this.transform._orthographicProjectionAtLowPitch&&0===this.transform.pitch&&"globe"!==this.transform.projection.name&&(this.transform.cameraElevationReference="ground"),t||r.moving||this.fire(new Tt("movestart",e)),this._zooming&&!r.zooming&&this.fire(new Tt("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new Tt("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new Tt("pitchstart",e))}_fireMoveEvents(e){this.fire(new Tt("move",e)),this._zooming&&this.fire(new Tt("zoom",e)),this._rotating&&this.fire(new Tt("rotate",e)),this._pitching&&this.fire(new Tt("pitch",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const r=this._zooming,i=this._rotating,n=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new Tt("zoomend",e)),i&&this.fire(new Tt("rotateend",e)),n&&this.fire(new Tt("pitchend",e)),this.fire(new Tt("moveend",e))}flyTo(e,t){if(this._prefersReducedMotion(e)){const r=B(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,t)}this.stop(),e=L({offset:[0,0],speed:1.2,curve:1.42,easing:P},e);const r=this.transform,i=this.getZoom(),n=this.getBearing(),s=this.getPitch(),o=this.getPadding(),a="zoom"in e?M(+e.zoom,r.minZoom,r.maxZoom):i,l="bearing"in e?this._normalizeBearing(e.bearing,n):n,c="pitch"in e?+e.pitch:s,u="padding"in e?e.padding:r.padding,h=r.zoomScale(a-i),d=v.convert(e.offset);let p=r.centerPoint.add(d);const f=r.pointLocation(p),m=Ip.convert(e.center||f);this._normalizeCenter(m);const g=r.project(f),y=r.project(m).sub(g);let _=e.curve;const b=Math.max(r.width,r.height),x=b/h,w=y.mag();if("minZoom"in e){const t=M(Math.min(e.minZoom,i,a),r.minZoom,r.maxZoom),n=b/r.zoomScale(t-i);_=Math.sqrt(n/w*2)}const A=_*_;function E(e){const t=(x*x-b*b+(e?-1:1)*A*A*w*w)/(2*(e?x:b)*A*w);return Math.log(Math.sqrt(t*t+1)-t)}function S(e){return(Math.exp(e)-Math.exp(-e))/2}function T(e){return(Math.exp(e)+Math.exp(-e))/2}const C=E(0);let I=function(e){return T(C)/T(C+_*e)},k=function(e){return b*((T(C)*(S(t=C+_*e)/T(t))-S(C))/A)/w;var t},O=(E(1)-C)/_;if(Math.abs(w)<1e-6||!isFinite(O)){if(Math.abs(b-x)<1e-6)return this.easeTo(e,t);const r=x<b?-1:1;O=Math.abs(Math.log(x/b))/_,k=function(){return 0},I=function(e){return Math.exp(r*_*e)}}e.duration="duration"in e?+e.duration:1e3*O/("screenSpeed"in e?+e.screenSpeed/_:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0);const R=n!==l,D=c!==s,z=!r.isPaddingEqual(u),j=r=>h=>{const f=h*O,v=1/I(f);r.zoom=1===h?a:i+r.scaleZoom(v),R&&(r.bearing=Wi(n,l,h)),D&&(r.pitch=Wi(s,c,h)),z&&(r.interpolatePadding(o,u,h),p=r.centerPoint.add(d));const _=1===h?m:r.unproject(g.add(y.mult(k(f))).mult(v));return r.setLocationAtPoint(r.renderWorldCopies?_.wrap():_,p),r._updateCameraOnTerrain(),e.preloadOnly||this._fireMoveEvents(t),r};
vendor: 13,811 bytes, line 2
2if(e.preloadOnly){const t=this._emulate(j,e.duration,r);return this._preloadTiles(t),this}return this._zooming=!0,this._rotating=R,this._pitching=D,this._padding=z,this._prepareEase(t,!1),this._ease(j(r),(()=>this._afterEase(t)),e),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(e,t,r){!1===r.animate||0===r.duration?(e(1),t()):(this._easeStart=ut.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const e=Math.min((ut.now()-this._easeStart)/this._easeOptions.duration,1),t=this._onEaseFrame;t&&t(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(e,t){e=O(e,-180,180);const r=Math.abs(e-t);return Math.abs(e-360-t)<r&&(e-=360),Math.abs(e+360-t)<r&&(e+=360),e}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.maxBounds)return;const r=e.lng-t.center.lng;e.lng+=r>180?-360:r<-180?360:0}_prefersReducedMotion(e){return this._respectPrefersReducedMotion&&ut.prefersReducedMotion&&!(e&&e.essential)}_emulate(e,t,r){const i=Math.ceil(15*t/1e3),n=[],s=e(r.clone());for(let e=0;e<=i;e++){const t=s(e/i);n.push(t.clone())}return n}}class MI{constructor(e={}){this.options=e,V(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact;return this._map=e,this._container=ht("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=ht("button","mapboxgl-ctrl-attrib-button",this._container),ht("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=ht("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const r=this._map._getUIString(`AttributionControl.${t}`);e.setAttribute("aria-label",r),e.removeAttribute("title"),e.firstElementChild&&e.firstElementChild.setAttribute("title",r)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));const t=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||n.ACCESS_TOKEN}];if(e){const r=t.reduce(((e,r,i)=>(r.value&&(e+=`${r.key}=${r.value}${i<t.length-1?"&":""}`),e)),"?");e.href=`${n.FEEDBACK_URL}/${r}#${RC(this._map,!0)}`,e.rel="noopener nofollow",this._setElementTitle(e,"MapFeedback")}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._mergedSourceCaches;for(const r in t){const i=t[r];if(i.used){const t=i.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort(((e,t)=>e.length-t.length)),e=e.filter(((t,r)=>{for(let i=r+1;i<e.length;i++)if(e[i].indexOf(t)>=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const r=e.join(" | ");r!==this._attribHTML&&(this._attribHTML=r,e.length?(this._innerContainer.innerHTML=r,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class kI{constructor(){V(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=ht("div","mapboxgl-ctrl");const t=ht("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const r=e[t].getSource();if(r.hasOwnProperty("mapbox_logo")&&!r.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class OI{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(const t of r)if(t.id===e)return void(t.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const r of t)if(!r.cancelled&&(r.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function RI(e,t,r){if(e=new Ip(e.lng,e.lat),t){const i=new Ip(e.lng-360,e.lat),n=new Ip(e.lng+360,e.lat),s=360*Math.ceil(Math.abs(e.lng-r.center.lng)/360),o=r.locationPoint(e).distSqr(t),a=t.x<0||t.y<0||t.x>r.width||t.y>r.height;r.locationPoint(i).distSqr(t)<o&&(a||Math.abs(i.lng-r.center.lng)<s)?e=i:r.locationPoint(n).distSqr(t)<o&&(a||Math.abs(n.lng-r.center.lng)<s)&&(e=n)}for(;Math.abs(e.lng-r.center.lng)>180;){const t=r.locationPoint(e);if(t.x>=0&&t.y>=0&&t.x<=r.width&&t.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}const DI={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%)"};class LI extends It{constructor(e,r){if(super(),(e instanceof t.HTMLElement||r)&&(e=L({element:e},r)),V(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=e&&e.anchor||"center",this._color=e&&e.color||"#3FB1CE",this._scale=e&&e.scale||1,this._draggable=e&&e.draggable||!1,this._clickTolerance=e&&e.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=e&&e.rotation||0,this._rotationAlignment=e&&e.rotationAlignment||"auto",this._pitchAlignment=e&&e.pitchAlignment&&e.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=e&&e.occludedOpacity||.2,e&&e.element)this._element=e.element,this._offset=v.convert(e&&e.offset||[0,0]);else{this._defaultMarker=!0,this._element=ht("div");const t=41,r=27,i=dt("svg",{display:"block",height:t*this._scale+"px",width:r*this._scale+"px",viewBox:`0 0 ${r} ${t}`},this._element),n=dt("radialGradient",{id:"shadowGradient"},dt("defs",{},i));dt("stop",{offset:"10%","stop-opacity":.4},n),dt("stop",{offset:"100%","stop-opacity":.05},n),dt("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},i),dt("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},i),dt("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},i),dt("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},i),this._offset=v.convert(e&&e.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.hasAttribute("role")||this._element.setAttribute("role","img"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()}));const i=this._element.classList;for(const e in DI)i.remove(`mapboxgl-marker-anchor-${e}`);i.add(`mapboxgl-marker-anchor-${this._anchor}`);const n=e&&e.className?e.className.trim().split(/\s+/):[];i.add(...n),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=Ip.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,r=13.5,i=Math.sqrt(Math.pow(r,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[i,-1*(t-r+i)],"bottom-right":[-i,-1*(t-r+i)],left:[r,-1*(t-r)],right:[-r,-1*(t-r)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(e){const t=e.code,r=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==r&&13!==r||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,r=this._element;this._popup&&(t===r||r.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const e=this._map,t=this._pos;if(!e||!t)return!1;const r=e.unproject(t),i=e.getFreeCameraOptions();if(!i.position)return!1;const n=i.position.toLngLat();return n.distanceTo(r)<.9*n.distanceTo(this._lngLat)}_evaluateOpacity(){const e=this._map;if(!e)return;const t=this._pos;if(!t||t.x<0||t.x>e.transform.width||t.y<0||t.y>e.transform.height)return void this._clearFadeTimer();const r=e.unproject(t);let i;e._showingGlobe()&&bp(e.transform,this._lngLat)?i=0:(i=1-e._queryFogOpacity(r),e.transform._terrainEnabled()&&e.getTerrain()&&this._behindTerrain()&&(i*=this._occludedOpacity)),this._element.style.opacity=`${i}`,this._element.style.pointerEvents=i>0?"auto":"none",this._popup&&this._popup._setOpacity(i),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e||!this._map)return;const t=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${e.x}px,${e.y}px)\n ${DI[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${t.x}px,${t.y}px)\n `}_calculateXYTransform(){const e=this._pos,t=this._map,r=this.getPitchAlignment();
vendor: 6,172 bytes, line 2
2if(!t||!e||"map"!==r)return"";if(!t._showingGlobe()){const e=t.getPitch();return e?`rotateX(${e}deg)`:""}const i=A(_p(t.transform,this._lngLat)),n=e.sub(vp(t.transform)),s=Math.abs(n.x)+Math.abs(n.y);if(0===s)return"";const o=i/s;return`rotateX(${-n.y*o}deg) rotateY(${n.x*o}deg)`}_calculateZTransform(){const e=this._pos,t=this._map;if(!t||!e)return"";let r=0;const i=this.getRotationAlignment();if("map"===i)if(t._showingGlobe()){const e=t.project(new Ip(this._lngLat.lng,this._lngLat.lat+.001)),i=t.project(new Ip(this._lngLat.lng,this._lngLat.lat-.001)).sub(e);r=A(Math.atan2(i.y,i.x))-90}else r=-t.getBearing();else if("horizon"===i){const i=k(4,6,t.getZoom()),n=vp(t.transform);n.y+=i*t.transform.height;const s=e.sub(n),o=A(Math.atan2(s.y,s.x));r=(o>90?o-270:o+90)*(1-i)}return r+=this._rotation,r?`rotateZ(${r}deg)`:""}_update(e){t.cancelAnimationFrame(this._updateFrameId);const r=this._map;r&&(r.transform.renderWorldCopies&&(this._lngLat=RI(this._lngLat,this._pos,r.transform)),this._pos=r.project(this._lngLat),!0===e?this._updateFrameId=t.requestAnimationFrame((()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())})):this._pos=this._pos.round(),r._requestDomTask((()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(r._showingGlobe()||r.getTerrain()||r.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))})))}getOffset(){return this._offset}setOffset(e){return this._offset=v.convert(e),this._update(),this}addClassName(e){return this._element.classList.add(e),this}removeClassName(e){return this._element.classList.remove(e),this}toggleClassName(e){return this._element.classList.toggle(e)}_onMove(e){const t=this._map;if(!t)return;const r=this._pointerdownPos,i=this._positionDelta;if(r&&i){if(!this._isDragging){const i=this._clickTolerance||t._clickTolerance;if(e.point.dist(r)<i)return;this._isDragging=!0}this._pos=e.point.sub(i),this._lngLat=t.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new Tt("dragstart"))),this.fire(new Tt("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const e=this._map;e&&(e.off("mousemove",this._onMove),e.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new Tt("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map,r=this._pos;t&&r&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(r),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(e){return this._occludedOpacity=e||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const BI={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},zI=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function jI(e=new v(0,0),t="bottom"){if("number"==typeof e){const r=Math.round(Math.sqrt(.5*Math.pow(e,2)));switch(t){case"top":return new v(0,e);case"top-left":return new v(r,r);case"top-right":return new v(-r,r);case"bottom":return new v(0,-e);case"bottom-left":return new v(r,-r);case"bottom-right":return new v(-r,-r);case"left":return new v(e,0);case"right":return new v(-e,0)}return new v(0,0)}return e instanceof v||Array.isArray(e)?v.convert(e):v.convert(e[t]||[0,0])}class FI{constructor(e){this.jumpTo(e)}getValue(e){if(e<=this._startTime)return this._start;if(e>=this._endTime)return this._end;const t=S((e-this._startTime)/(this._endTime-this._startTime));return this._start*(1-t)+this._end*t}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,r){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+r}}const NI={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use â + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},UI={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileC
2acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1},VI={showCompass:!0,showZoom:!0,visualizePitch:!1};class GI{constructor(e,t,r=!1){this._clickTolerance=10,this.element=t,this.mouseRotate=new tI({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,r&&(this.mousePitch=new rI({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),V(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchmove",this.touchmove),t.addEventListener("touchend",this.touchend),t.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),gt()}move(e,t){const r=this.map,i=this.mouseRotate.mousemoveWindow(e,t),n=i&&i.bearingDelta;if(n&&r.setBearing(r.getBearing()+n),this.mousePitch){const i=this.mousePitch.mousemoveWindow(e,t),n=i&&i.pitchDelta;n&&r.setPitch(r.getPitch()+n)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){yt(),t.removeEventListener("mousemove",this.mousemove),t.removeEventListener("mouseup",this.mouseup)}mousedown(e){this.down(L({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),bt(this.element,e)),t.addEventListener("mousemove",this.mousemove),t.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,bt(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=xt(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=xt(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const qI={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},HI={maxWidth:100,unit:"metric"},WI={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},YI={version:r,supported:it,setRTLTextPlugin:function(e,t,r=!1){if(ja===Da||ja===La||ja===Ba)throw new Error("setRTLTextPlugin cannot be called multiple times.");Fa=ut.resolveURL(e),ja=Da,za=t,Ua(),r||qa()},getRTLTextPluginStatus:Ga,Map:class extends PI{constructor(e){if($e.mark(Je.create),null!=(e=L({},UI,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(e.antialias&&function(e){const t=e.navigator?e.navigator.userAgent:null;return!!function(e){if(null==te){const t=e.navigator?e.navigator.userAgent:null;te=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return te}(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))}(t)&&(e.antialias=!1,Q("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Kb(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies),e),this._interactive=e.interactive,this._minTileCacheSize=e.minTileCacheSize,this._maxTileC
2acheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=e.crossSourceCollisions,this._collectResourceTiming=e.collectResourceTiming,this._language=this._parseLanguage(e.language),this._worldview=e.worldview,this._renderTaskQueue=new OI,this._domRenderTaskQueue=new OI,this._controls=[],this._markers=[],this._popups=[],this._mapId=j(),this._locale=L({},NI,e.locale),this._clickTolerance=e.clickTolerance,this._cooperativeGestures=e.cooperativeGestures,this._performanceMetricsCollection=e.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new FI(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new Me(e.transformRequest,e.accessToken,e.testMode),this._silenceAuthErrors=!!e.testMode,"string"==typeof e.container){if(this._container=t.document.getElementById(e.container),!this._container)throw new Error(`Container '${e.container.toString()}' not found.`)}else{if(!(e.container instanceof t.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(this._container.childNodes.length>0&&Q("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),e.maxBounds&&this.setMaxBounds(e.maxBounds),V(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");if(this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),void 0!==t&&(this._fullscreenchangeEvent="onfullscreenchange"in t.document?"fullscreenchange":"webkitfullscreenchange",t.addEventListener("online",this._onWindowOnline,!1),t.addEventListener("resize",this._onWindowResize,!1),t.addEventListener("orientationchange",this._onWindowResize,!1),t.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),t.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new CI(this,e),this._localFontFamily=e.localFontFamily,this._localIdeographFontFamily=e.localIdeographFontFamily,(e.style||!e.testMode)&&this.setStyle(e.style||n.DEFAULT_STYLE,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),e.projection&&this.setProjection(e.projection),e.hash&&(this._hash=new OC("string"==typeof e.hash&&e.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch});const t=e.bounds;t&&(this.resize(),this.fitBounds(t,L({},e.fitBoundsOptions,{duration:0})))}this.resize(),e.attributionControl&&this.addControl(new MI({customAttribution:e.customAttribution})),this._logoControl=new kI,this.addControl(this._logoControl,e.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(e=>{this._update("style"===e.dataType),this.fire(new Tt(`${e.dataType}data`,e))})),this.on("dataloading",(e=>{this.fire(new Tt(`${e.dataType}dataloading`,e))}))}_getMapId(){return this._mapId}addControl(e,t){if(void 0===t&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new Ct(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=e.onAdd(this);this._controls.push(e);const i=this._controlPositions[t];return-1!==t.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}
2removeControl(e){if(!e||!e.onRemove)return this.fire(new Ct(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(e){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const t=!this._moving;return t&&this.fire(new Tt("movestart",e)).fire(new Tt("move",e)),this.fire(new Tt("resize",e)),t&&this.fire(new Tt("moveend",e)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(e){return this.transform.setMaxBounds(Hc.convert(e)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e?this.setZoom(e):this.fire(new Tt("zoomstart")).fire(new Tt("zoom")).fire(new Tt("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e?this.setZoom(e):this.fire(new Tt("zoomstart")).fire(new Tt("zoom")).fire(new Tt("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e?this.setPitch(e):this.fire(new Tt("pitchstart")).fire(new Tt("pitch")).fire(new Tt("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(e){if((e=null==e?85:e)>85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e?this.setPitch(e):this.fire(new Tt("pitchstart")).fire(new Tt("pitch")).fire(new Tt("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(e){return"auto"===e?t.navigator.language:Array.isArray(e)?0===e.length?void 0:e.map((e=>"auto"===e?t.navigator.language:e)):e}setLanguage(e){const t=this._parseLanguage(e);if(!this.style||t===this._language)return this;this._language=t,this.style.clearSources();for(const e of this._controls)e._setLanguage&&e._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){return this.style&&e!==this._worldview?(this._worldview=e,this.style.clearSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.projection)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const e=this.transform,t=e.projection.name;let r;"globe"===t&&e.zoom>=6?(e.setMercatorFromTransition(),r=!0):"mercator"===t&&e.zoom<6&&(e.setProjection({name:"globe"}),r=!0),r&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayer
2Update())}_prioritizeAndUpdateProjection(e,t){return this._updateProjection(e||t||{name:"mercator"})}_updateProjection(e){let t;return t="globe"===e.name&&this.transform.zoom>=6?this.transform.setMercatorFromTransition():this.transform.setProjection(e),this.style.applyProjectionUpdate(),t&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(e){return this.transform.locationPoint3D(Ip.convert(e))}unproject(e){return this.transform.pointLocation3D(v.convert(e))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(e,t,r){if("mouseenter"===e||"mouseover"===e){let i=!1;const n=n=>{const s=t.filter((e=>this.getLayer(e))),o=s.length?this.queryRenderedFeatures(n.point,{layers:s}):[];o.length?i||(i=!0,r.call(this,new VC(e,this,n.originalEvent,{features:o}))):i=!1},s=()=>{i=!1};return{layers:new Set(t),listener:r,delegates:{mousemove:n,mouseout:s}}}if("mouseleave"===e||"mouseout"===e){let i=!1;const n=n=>{const s=t.filter((e=>this.getLayer(e)));(s.length?this.queryRenderedFeatures(n.point,{layers:s}):[]).length?i=!0:i&&(i=!1,r.call(this,new VC(e,this,n.originalEvent)))},s=t=>{i&&(i=!1,r.call(this,new VC(e,this,t.originalEvent)))};return{layers:new Set(t),listener:r,delegates:{mousemove:n,mouseout:s}}}{const i=e=>{const i=t.filter((e=>this.getLayer(e))),n=i.length?this.queryRenderedFeatures(e.point,{layers:i}):[];n.length&&(e.features=n,r.call(this,e),delete e.features)};return{layers:new Set(t),listener:r,delegates:{[e]:i}}}}on(e,t,r){if(void 0===r)return super.on(e,t);if(Array.isArray(t)||(t=[t]),t)for(const e of t)if(!this._isValidId(e))return this;const i=this._createDelegatedListener(e,t,r);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i);for(const e in i.delegates)this.on(e,i.delegates[e]);return this}once(e,t,r){if(void 0===r)return super.once(e,t);if(Array.isArray(t)||(t=[t]),t)for(const e of t)if(!this._isValidId(e))return this;const i=this._createDelegatedListener(e,t,r);for(const e in i.delegates)this.once(e,i.delegates[e]);return this}off(e,t,r){if(void 0===r)return super.off(e,t);t=new Set(Array.isArray(t)?t:[t]);for(const e of t)if(!this._isValidId(e))return this;const i=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0},n=this._delegatedListeners?this._delegatedListeners[e]:void 0;return n&&(e=>{for(let n=0;n<e.length;n++){const s=e[n];if(s.listener===r&&i(s.layers,t)){for(const e in s.delegates)this.off(e,s.delegates[e]);return e.splice(n,1),this}}})(n),this}queryRenderedFeatures(e,t){if(!this.style)return[];if(void 0!==t||void 0===e||e instanceof v||Array.isArray(e)||(t=e,e=void 0),e=e||[[0,0],[this.transform.width,this.transform.height]],(t=t||{}).layers&&Array.isArray(t.layers))for(const e of t.layers)if(!this._isValidId(e))return[];return this.style.queryRenderedFeatures(e,t,this.transform)}querySourceFeatures(e,t){return this._isValidId(e)?this.style.querySourceFeatures(e,t):[]}isPointOnSurface(e){const{name:t}=this.transform.projection;return"globe"!==t&&"mercator"!==t&&Q(`${t} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(v.convert(e))}setStyle(e,t){return!1!==(t=L({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},t)).diff&&t.localIdeographFontFamily===this._localIdeographFontFamily&&t.localFontFamily===this._localFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._localFontFamily=t.localFontFamily,this._updateStyle(e,t))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),e&&(this.style=new MC(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new MC(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){if("string"==typeof e){const r=this._requestManager.normalizeStyleURL(e),i=this._requestManager.transformRequest(r,ve.Style);we(i,((e,r)=>
2{e?this.fire(new Ct(e)):r&&this._updateDiff(r,t)}))}else"object"==typeof e&&this._updateDiff(e,t)}_updateDiff(e,t){try{this.style.setState(e)&&this._update(!0)}catch(r){Q(`Unable to perform style diff: ${r.message||r.error||r}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(Q("There is no style added to the map."),!1)}_isValidId(e){return!function(e){return e.indexOf("�")>=0}(e)||(this.fire(new Ct(new Error(`IDs can't contain special symbols: "${e}".`))),!1)}addSource(e,t){return this._isValidId(e)?(this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)):this}isSourceLoaded(e){return!!this._isValidId(e)&&!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){const e=this.style&&this.style._sourceCaches;for(const t in e){const r=e[t]._tiles;for(const e in r){const t=r[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,r){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,r)}removeSource(e){return this._isValidId(e)?(this.style.removeSource(e),this._updateTerrain(),this._update(!0)):this}getSource(e){return this._isValidId(e)?this.style.getOwnSource(e):null}addImage(e,r,{pixelRatio:i=1,sdf:n=!1,stretchX:s,stretchY:o,content:a}={}){if(this._lazyInitEmptyStyle(),r instanceof t.HTMLImageElement||t.ImageBitmap&&r instanceof t.ImageBitmap){const{width:t,height:l,data:c}=ut.getImageData(r);this.style.addImage(e,{data:new Df({width:t,height:l},c),pixelRatio:i,stretchX:s,stretchY:o,content:a,sdf:n,version:0})}else if(void 0===r.width||void 0===r.height)this.fire(new Ct(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:t,height:l}=r,c=r;this.style.addImage(e,{data:new Df({width:t,height:l},new Uint8Array(c.data)),pixelRatio:i,stretchX:s,stretchY:o,content:a,sdf:n,version:0,userImage:c}),c.onAdd&&c.onAdd(this,e)}}updateImage(e,r){this._lazyInitEmptyStyle();const i=this.style.getImage(e);if(!i)return void this.fire(new Ct(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const n=r instanceof t.HTMLImageElement||t.ImageBitmap&&r instanceof t.ImageBitmap?ut.getImageData(r):r,{width:s,height:o}=n;void 0!==s&&void 0!==o?s===i.data.width&&o===i.data.height?(i.data.replace(n.data,!(r instanceof t.HTMLImageElement||t.ImageBitmap&&r instanceof t.ImageBitmap)),this.style.updateImage(e,i)):this.fire(new Ct(new Error(`The width and height of the updated image (${s}, ${o})\n must be that same as the previous version of the image\n (${i.data.width}, ${i.data.height})`))):this.fire(new Ct(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(e){return e?!!this.style&&!!this.style.getImage(e):(this.fire(new Ct(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e,r){Ie(this._requestManager.transformRequest(e,ve.Image),((e,i)=>{r(e,i instanceof t.HTMLImageElement?ut.getImageData(i):i)}))}listImages(){return this.style.listImages()}addModel(e,t){this._lazyInitEmptyStyle(),this.style.addModel(e,t)}hasModel(e){return e?this.style.hasModel(e):(this.fire(new Ct(new Error("Missing required model id"))),!1)}removeModel(e){this.style.removeModel(e)}listModels(){return this.style.listModels()}addLayer(e,t){return this._isValidId(e.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)):this}moveLayer(e,t){return this._isValidId(e)?(this.style.moveLayer(e,t),this._update(!0)):this}removeLayer(e){return this._isValidId(e)?(this.style.removeLayer(e),this._update(!0)):this}getLayer(e){return this._isValidId(e)?this.style.getOwnLayer(e):null}setLayerZoomRange(e,t,r){return this._isValidId(e)?(this.style.setLayerZoomRange(e,t,r),this._update(!0)):this}setFilter(e,t,r={}){return this._isValidId(e)?(this.style.setFilter(e,t,r),this._update(!0)):this}getFilter(e){return this._isValidId(e)?this.style.getFilter(e):null}setPaintProperty(e,t,r,i={}){return this._isValidId(e)?(this.style.setPaintProperty(e,t,r,i),this._update(!0)):this}getPaintProperty(e,t){return this._isValidId(e)?this.style.getPaintProperty(e,t):null}setLayoutProperty(e,t,r,i={}){return this._isValidId(e)?(this.style.setLayoutProperty(e,t,r,i),this._update(!0)):this}getLayoutProperty(e,t){return this._isValidId(e)?this.style.getLayoutProperty(e,t):null}setConfigProperty(e,t,r){return this.style.setConfigProperty(e,t,r),this._update(!0)}setLights(e){if(this._lazyInitEmptyStyle(),e&&1===e.length&&"flat"===e[0].type){const t=e[0];t.properties?this.style.setFlatLight(t.properties,t.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(e),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const e=this.style.getLights()||[];return 0===e.length&&e.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),e}setLight(e,t={}
2){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:e}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setCamera(e){return this.style.setCamera(e),this._triggerCameraUpdate(e)}_triggerCameraUpdate(e){return this._update(this.transform.setOrthographicProjectionAtLowPitch("orthographic"===e["camera-projection"]))}getCamera(){return this.style.camera}_queryFogOpacity(e){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(Ip.convert(e),this.transform):0}setFeatureState(e,t){return this._isValidId(e.source)?(this.style.setFeatureState(e,t),this._update()):this}removeFeatureState(e,t){return this._isValidId(e.source)?(this.style.removeFeatureState(e,t),this._update()):this}getFeatureState(e){return this._isValidId(e.source)?this.style.getFeatureState(e):null}_updateContainerDimensions(){if(!this._container)return;const e=this._container.getBoundingClientRect().width||400,r=this._container.getBoundingClientRect().height||300;let i,n,s,o=this._container;for(;o&&(!n||!s);){const e=t.getComputedStyle(o).transform;e&&"none"!==e&&(i=e.match(/matrix.*\((.+)\)/)[1].split(", "),i[0]&&"0"!==i[0]&&"1"!==i[0]&&(n=i[0]),i[3]&&"0"!==i[3]&&"1"!==i[3]&&(s=i[3])),o=o.parentElement}this._containerWidth=n?Math.abs(e/n):e,this._containerHeight=s?Math.abs(r/s):r}_detectMissingCSS(){"rgb(250, 128, 114)"!==t.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&Q("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/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=ht("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=ht("div","mapboxgl-canvas-container",e);this._canvas=ht("canvas","mapboxgl-canvas",t),this._interactive&&(t.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const r=this._controlContainer=ht("div","mapboxgl-control-container",e),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((e=>{i[e]=ht("div",`mapboxgl-ctrl-${e}`,r)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(e,t){const r=ut.devicePixelRatio||1;this._canvas.width=r*Math.ceil(e),this._canvas.height=r*Math.ceil(t),this._canvas.style.width=`${e}px`,this._canvas.style.height=`${t}px`}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_addPopup(e){this._popups.push(e)}_removePopup(e){const t=this._popups.indexOf(e);-1!==t&&this._popups.splice(t,1)}_setupPainter(){const e=L({},it.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),t=this._canvas.getContext("webgl2",e);t?(Ke(t,!0),this.painter=new fC(t,this.transform),this.on("data",(e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)}
2)),s.testSupport(t)):this.fire(new Ct(new Error("Failed to initialize WebGL")))}_contextLost(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new Tt("webglcontextlost",{originalEvent:e}))}_contextRestored(e){this._setupPainter(),this.resize(),this._update(),this.fire(new Tt("webglcontextrestored",{originalEvent:e}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(e){let r;this.fire(new Tt("renderstart"));const i=this.painter.context.extTimerQuery,n=ut.now(),s=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(r=s.createQuery(),s.beginQuery(i.TIME_ELAPSED_EXT,r)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],t.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],t.performance.now())),this._renderTaskQueue.run(e),this._domRenderTaskQueue.run(e),this._removed)return;this._updateProjectionTransition();const o=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const e=this.transform.zoom,t=this.transform.pitch,r=ut.now(),i=new Wa(e,{now:r,fadeDuration:o,pitch:t,transition:this.style.transition});this.style.update(i)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let a=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),a=this._updateAverageElevation(n),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):a=this._updateAverageElevation(n),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,o,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:o,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new Tt("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new Tt("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),r){const e=ut.now()-n;s.endQuery(i.TIME_ELAPSED_EXT),setTimeout((()=>{const i=s.getQueryParameter(r,s.QUERY_RESULT)/1e6;s.deleteQuery(r),this.fire(new Tt("gpu-timing-frame",{cpuTime:e,gpuTime:i})),t.performance.mark("frame-gpu",{startTime:n,detail:{gpuTime:i}})}),50)}if(this.listens("gpu-timing-layer")){const e=this.painter.collectGpuTimers();setTimeout((()=>{const t=this.painter.queryGpuTimers(e);this.fire(new Tt("gpu-timing-layer",{layerTimes:t}))}),50)}if(this.listens("gpu-timing-deferred-render")){const e=this.painter.collectDeferredRenderGpuQueries();setTimeout((()=>{const t=this.painter.queryGpuTimeDeferredRender(e);this.fire(new Tt("gpu-timing-deferred-render",{gpuTime:t}))}),50)}const l=this._sourcesDirty||this._styleDirty||this._placementDirty||a;if(l||this._repaint)this.triggerRepaint();else{const e=!this.isMoving()&&this.loaded();if(e&&(a=this._updateAverageElevation(n,!0)),a)this.triggerRepaint();else if(this._triggerFrame(!1),e&&(this.fire(new Tt("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const e=this._calculateSpeedIndex();this.fire(new Tt("speedindexcompleted",{speedIndex:e})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||l||(this._fullyLoaded=!0,$e.mark(Je.fullLoad),this._performanceMetricsCollection&&Ye(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}
2_forceMarkerAndPopupUpdate(e){for(const t of this._markers)e&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!e||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(e,t=!1){const r=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&r(0);const i=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(i||(t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let n=this.transform.sampleAverageElevation();this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(n)?n=0:this._averageElevationLastSampledAt=e;const s=Math.abs(t-n);if(s>1){if(this._isInitialLoad||i)return this._averageElevation.jumpTo(n),r(n);this._averageElevation.easeTo(n,e,300)}else if(s>1e-4)return this._averageElevation.jumpTo(n),r(n)}return!!this._averageElevation.isEasing(e)&&r(this._averageElevation.getValue(e))}_authenticate(){Ze(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(e=>{if(e&&(e.message===Pe||401===e.status)){const e=this.painter.context.gl;Ke(e,!1),this._logoControl instanceof kI&&this._logoControl._updateLogo(),e&&e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT|e.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new Ct(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),He(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(()=>{}))}_updateTerrain(){const e=this._isDragging();this.painter.updateTerrain(this.style,e)}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const r=this.painter.context.gl,i=r.createFramebuffer();function n(e){r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e,0);const t=new Uint8Array(r.drawingBufferWidth*r.drawingBufferHeight*4);return r.readPixels(0,0,r.drawingBufferWidth,r.drawingBufferHeight,r.RGBA,r.UNSIGNED_BYTE,t),t}return r.bindFramebuffer(r.FRAMEBUFFER,i),this._canvasPixelComparison(n(e),t.canvasCopies.map(n),t.timeStamps)}_canvasPixelComparison(e,t,r){let i=r[1]-r[0];const n=e.length/4;for(let s=0;s<t.length;s++){const o=t[s];let a=0;for(let t=0;t<o.length;t+=4)o[t]===e[t]&&o[t+1]===e[t+1]&&o[t+2]===e[t+2]&&o[t+3]===e[t+3]&&(a+=1);i+=(r[s+2]-r[s+1])*(1-a/n)}return i}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==t&&(t.removeEventListener("resize",this._onWindowResize,!1),t.removeEventListener("orientationchange",this._onWindowResize,!1),t.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),t.removeEventListener("online",this._onWindowOnline,!1),t.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const e=this.painter.context.gl.getExtension("WEBGL_lose_context");e&&e.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),Xe.delete(this.painter.context.gl),this._removed=!0,this.fire(new Tt("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(e){this._renderNextFrame=this._renderNextFrame||e,this.style&&!this._frame&&(this._frame=ut.frame((e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)})))}_preloadTiles(e){return R(this.style?Object.values(this.style._sourceCaches):[],((t,r)=>t._preloadTiles(e,r)),(()=>{this.triggerRepaint()})),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}_onVisibilityChange(){"hidden"===t.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(e){this._showLayers2DWireframe!==e&&(this._showLayers2DWireframe=e,this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(e){this._showLayers3DWireframe!==e&&(this._showLayers3DWireframe=e,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(e){this._showTileAABBs!==e&&(this._showTileAABBs=e,e&&this._update())}_setCacheLimits(e,t){!function(e,t){he=e,de=t}(e,t)}get version(){return r}},NavigationControl:class{constructor(e){this.options=L({},VI,e),this._container=ht("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(V(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(e=>{this._map&&this._map.zoomIn({},{originalEvent:e})})),ht("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(e=>{this._map&&this._map.zoomOut({},{originalEvent:e})})),ht("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(V(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))})),this._compassIcon=ht("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;
2const t=e.getZoom(),r=t===e.getMaxZoom(),i=t===e.getMinZoom();this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle*(180/Math.PI)}deg)`:`rotate(${e.transform.angle*(180/Math.PI)}deg)`;e._requestDomTask((()=>{this._compassIcon&&(this._compassIcon.style.transform=t)}))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new GI(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const r=ht("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}_setButtonTitle(e,t){if(!this._map)return;const r=this._map._getUIString(`NavigationControl.${t}`);e.setAttribute("aria-label",r),e.firstElementChild&&e.firstElementChild.setAttribute("title",r)}},GeolocateControl:class extends It{constructor(e){super(),this.options=L({geolocation:t.navigator.geolocation},qI,e),V(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=kC(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(e){return this._map=e,this._container=ht("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(e){const r=(t=!!this.options.geolocation)=>{this._supportsGeolocation=t,e(t)};void 0!==this._supportsGeolocation?e(this._supportsGeolocation):void 0!==t.navigator.permissions?t.navigator.permissions.query({name:"geolocation"}).then((e=>r("denied"!==e.state))).catch((()=>r())):r()}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),r=e.coords;return!!t&&(r.longitude<t.getWest()||r.longitude>t.getEast()||r.latitude<t.getSouth()||r.latitude>t.getNorth())}_setErrorState(){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")}}_onSuccess(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new Tt("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
2RROR":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._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new Tt("geolocate",e)),this._finish()}}_updateCamera(e){const t=new Ip(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,i=L({bearing:this._map.getBearing()},this.options.fitBoundsOptions);this._map.fitBounds(t.toBounds(r),i,{geolocateSource:!0})}_updateMarker(e){if(e){const t=new Ip(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(t).addTo(this._map),this._userLocationDotMarker.setLngLat(t).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const e=this._map.transform,t=Op(1,e._center.lat)*e.worldSize,r=Math.ceil(2*this._accuracy*t);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(e){if(this._map){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"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new Tt("error",e)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(e){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=ht("button","mapboxgl-ctrl-geolocate",this._container),ht("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===e){Q("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=ht("div","mapboxgl-user-location"),this._dotElement.appendChild(ht("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(ht("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new LI({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=ht("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new LI({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(e=>{e.geolocateSource||"ACTIVE_LOCK"!==this._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new Tt("trackuserlocationend")))}))}}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return Q("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 Tt("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,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 Tt("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 Tt("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;case"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")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const e=()=>{t.addEventListener("ondeviceorientationabsolute"in t?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==t.DeviceMotionEvent&&"function"==typeof t.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((t=>{"granted"===t&&e()})).catch(console.error):e()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),t.removeEventListener("deviceorientation",this._onDeviceOrientation),t.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:MI,ScaleControl:class{constructor(e){this.options=L({},HI,e),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(e){return!1}}(),V(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,r=t._containerHeight/2,i=t._containerWidth/2-e/2,n=t.unproject([i,r]),s=t.unproject([i+e,r]),o=n.distanceTo(s);if("imperial"===this.options.unit){const t=3.2808*o;t>5280?this._setScale(e,t/5280,"mile"):this._setScale(e,t,"foot")}else"nautical"===this.options.unit?this._setScale(e,o/1852,"nautical-mile"):o>=1e3?this._setScale(e,o/1e3,"kilometer"):this._setScale(e,o,"meter")}_setScale(e,t,r){this._map._requestDomTask((()=>{const i=function(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(r),t*r}(t),n=i/t;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==r?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:r}).format(i):`${i} ${WI[r]}`,this._container.style.width=e*n+"px"}))}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=ht("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.HTMLElement?this._container=e.container:Q("Full screen control 'container' must be a DOM element.")),V(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in t.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=ht("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",Q("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,t.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!t.document.fullscreenEnabled&&!t.document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=ht("button","mapboxgl-ctrl-fullscreen",this._controlContainer);ht("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(t.document.fullscreenElement||t.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?t.document.exitFullscreen?t.document.exitFullscreen():t.document.webkitCancelFullScreen&&t.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends It{constructor(e){super(),this.options=L(Object.create(BI),e),V(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(e&&e.className?e.className.trim().split(/\s+/):[])}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&e.on("preclick",this._onClose),this.options.closeOnMove&&e.on("move",this._onClose),e.on("remove",this.remove),this._update(),e._addPopup(this),this._focusFirstElement(),this._trackPointer?(e.on("mousemove",this._onMouseEvent),e.on("mouseup",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")):e.on("move",this._update),this.fire(new Tt("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const e=this._map;return e&&(e.off("move",this._update),e.off("move",this._onClose),e.off("preclick",this._onClose),e.off("click",this._onClose),e.off("remove",this.remove),e.off("mousemove",this._onMouseEvent),e.off("mouseup",this._onMouseEvent),e.off("drag",this._onMouseEvent),e._canvasContainer&&e._canvasContainer.classList.remove("mapboxgl-track-pointer"),e._removePopup(this),this._map=void 0),this.fire(new Tt("
2close")),this}getLngLat(){return this._lngLat}setLngLat(e){this._lngLat=Ip.convert(e),this._pos=null,this._trackPointer=!1,this._update();const t=this._map;return t&&(t.on("move",this._update),t.off("mousemove",this._onMouseEvent),t._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(t.document.createTextNode(e))}setHTML(e){const r=t.document.createDocumentFragment(),i=t.document.createElement("body");let n;for(i.innerHTML=e;n=i.firstChild,n;)r.appendChild(n);return this.setDOMContent(r)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=ht("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=ht("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.setAttribute("aria-hidden","true"),e.innerHTML="×",e.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(e){return this._classList.add(e),this._updateClassList(),this}removeClassName(e){return this._classList.delete(e),this._updateClassList(),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){let t;return this._classList.delete(e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}_onMouseEvent(e){this._update(e.point)}_getAnchor(e){if(this.options.anchor)return this.options.anchor;const t=this._map,r=this._container,i=this._pos;if(!t||!r||!i)return"bottom";const n=r.offsetWidth,s=r.offsetHeight,o=i.x<n/2,a=i.x>t.transform.width-n/2;if(i.y+e<s)return o?"top-left":a?"top-right":"top";if(i.y>t.transform.height-s){if(o)return"bottom-left";if(a)return"bottom-right"}return o?"left":a?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(e){const t=this._map,r=this._content;if(!t||!this._lngLat&&!this._trackPointer||!r)return;let i=this._container;if(i||(i=this._container=ht("div","mapboxgl-popup",t.getContainer()),this._tip=ht("div","mapboxgl-popup-tip",i),i.appendChild(r)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),t.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=RI(this._lngLat,this._pos,t.transform)),!this._trackPointer||e){const r=this._pos=this._trackPointer&&e?e:t.project(this._lngLat),i=jI(this.options.offset),n=this._anchor=this._getAnchor(i.y),s=jI(this.options.offset,n),o=r.add(s).round();t._requestDomTask((()=>{this._container&&n&&(this._container.style.transform=`${DI[n]} translate(${o.x}px,${o.y}px)`)}))}if(!this._marker&&t._showingGlobe()){const e=bp(t.transform,this._lngLat)?0:1;this._setOpacity(e)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(zI);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity=`${e}`),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}},Marker:LI,Style:MC,LngLat:Ip,LngLatBounds:Hc,Point:v,MercatorCoordinate:Up,FreeCameraOptions:xb,Evented:It,config:n,prewarm:function(){_A().acquire(gA)},clearPrewarmedResources:function(){const e=vA;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(gA),vA=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return n.ACCESS_TOKEN},set accessToken(e){n.ACCESS_TOKEN=e},get baseApiUrl(){return n.API_URL}
2,set baseApiUrl(e){n.API_URL=e},get workerCount(){return yA.workerCount},set workerCount(e){yA.workerCount=e},get maxParallelImageRequests(){return n.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){n.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage(e){!function(e){if(!pe())return;const r=t.caches.delete(le);e&&r.catch(e).then((()=>e()))}(e)},workerUrl:"",workerClass:null,get dracoUrl(){return EA()},set dracoUrl(e){!function(e){xA=ut.resolveURL(e),AA||(AA=new Xw(_A(),new It)),AA.broadcast("setDracoUrl",xA)}(e)},setNow:ut.setNow,restoreNow:ut.restoreNow};e.A=Zw,e.D=Pg,e.E=oi,e.F=Og,e.K=HE,e.O=Pd,e.P=v,e.T=_x,e.V=Gm,e.a=Mm,e.b=Ym,e.c=Rw,e.d=class extends It{constructor(e,t,r,i,n,s){super(),this.actor=e,this.layerIndex=t,this.availableImages=r,this.loadVectorData=n||hA,this.loading={},this.loaded={},this.deduped=new uA(e.scheduler),this.isSpriteLoaded=i,this.scheduler=e.scheduler,this.brightness=s}loadTile(e,t){const r=e.uid,i=e&&e.request,n=i&&i.collectResourceTiming,s=this.loading[r]=new lA(e);s.abort=this.loadVectorData(e,((o,a)=>{const l=!this.loading[r];if(delete this.loading[r],l||o||!a)return s.status="done",l||(this.loaded[r]=s),t(o);const c=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),s.vectorTile=a.vectorTile||new Vm(new fg(c));const h=()=>{s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,((e,r)=>{if(e||!r)return t(e);const s={};if(n){const e=rt(i);e.length>0&&(s.resourceTiming=JSON.parse(JSON.stringify(e)))}t(null,L({rawTileData:c.slice(0)},r,u,s))}))};this.isSpriteLoaded?h():this.once("isSpriteLoaded",(()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom}):h()})),this.loaded=this.loaded||{},this.loaded[r]=s}))}reloadTile(e,t){const r=this.loaded,i=e.uid,n=this;if(r&&r[i]){const s=r[i];s.showCollisionBoxes=e.showCollisionBoxes,s.projection=e.projection,s.brightness=e.brightness,s.tileTransform=iv(e.tileID.canonical,e.projection),s.extraShadowCaster=e.extraShadowCaster;const o=(e,r)=>{const i=s.reloadCallback;i&&(delete s.reloadCallback,s.parse(s.vectorTile,n.layerIndex,this.availableImages,n.actor,i)),t(e,r)};"parsing"===s.status?s.reloadCallback=o:"done"===s.status&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,o):o())}}abortTile(e,t){const r=e.uid,i=this.loading[r];i&&(i.abort&&i.abort(),delete this.loading[r]),t()}removeTile(e,t){const r=this.loaded,i=e.uid;r&&r[i]&&delete r[i],t()}},e.e=gs,e.f=rt,e.g=d,e.h=we,e.i=Ae,e.j=function(e,t){const r=ZA(e);for(const e of r){for(const t of e.meshes)XA(t);e.lights&&(e.lightMeshIndex=e.meshes.length,e.meshes.push(KA(e.lights,t)))}return r},e.k=Wa,e.l=function(e){let t=0;if(new Uint32Array(e,0,1)[0]!==RA){const r=new Uint32Array(e,0,7),[,,i,n,s,o]=r;t=r.byteLength+n+s+o+s,(i!==e.byteLength||t>=e.byteLength)&&Q("Invalid b3dm header information.")}return FA(e,t)},e.m=Cv,e.n=Ha,e.o=Tt,e.p=g,e.q=function(e){fe(),ce&&ce.then((t=>{t.keys().then((r=>{for(let i=0;i<r.length-e;i++)t.delete(r[i])}))}))},e.r=sE,e.s=YI,e.t=Np,e.v=D,e.w=t})),i(0,(function(e){function t(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let r="[";for(const i of e)r+=`${t(i)},`;return`${r}]`}let r="{";for(const i of Object.keys(e).sort())r+=`${i}:${t(e[i])},`;return`${r}}`}function r(r){let i="";for(const n of e.r)i+=`/${t(r[n])}`;return i}class i{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e,t){this._layerConfigs={},this._layers={},this.update(e,[],t)}update(t,i,n){this._options=n;for(const r of t){this._layerConfigs[r.id]=r;const t=this._layers[r.id]=e.c(r,this._options);t.setScope(this.scope),t.compileFilter(),this.keyCache[r.id]&&delete this.keyCache[r.id]}for(const e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const s=function(e,t){const i={};for(let n=0;n<e.length;n++){const s=t&&t[e[n].id]||r(e[n]);t&&(t[e[n].id]=s);let o=i[s];o||(o=i[s]=[]),o.push(e[n])}const n=[];for(const e in i)n.push(i[e]);return n}(e.v(this._layerConfigs),this.keyCache);for(const e of s){const t=e.map((e=>this._layers[e.id])),r=t[0];if("none"===r.visibility)continue;const i=r.source||"";let n=this.familiesBySource[i];n||(n=this.familiesBySource[i]={});const s=r.sourceLayer||"_geojsonTileLayer";let o=n[s];o||(o=n[s]=[]),o.push(t)}}}class n{loadTile(t,r){const{uid:i,encoding:n,rawImageData:s,padding:o}
vendor: 4,127 bytes, line 2
2=t,a=e.w.ImageBitmap&&s instanceof e.w.ImageBitmap?this.getImageData(s,o):s;r(null,new e.D(i,a,n,t.convertToFloat,o<1))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const r=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),r}}function s(e,t){if(0!==e.length){o(e[0],t);for(var r=1;r<e.length;r++)o(e[r],!t)}}function o(e,t){for(var r=0,i=0,n=0,s=e.length,o=s-1;n<s;o=n++){var a=(e[n][0]-e[o][0])*(e[o][1]+e[n][1]),l=r+a;i+=Math.abs(r)>=Math.abs(a)?r-l+a:a-l+r,r=l}r+i>=0!=!!t&&e.reverse()}var a=e.g((function e(t,r){var i,n=t&&t.type;if("FeatureCollection"===n)for(i=0;i<t.features.length;i++)e(t.features[i],r);else if("GeometryCollection"===n)for(i=0;i<t.geometries.length;i++)e(t.geometries[i],r);else if("Feature"===n)e(t.geometry,r);else if("Polygon"===n)s(t.coordinates,r);else if("MultiPolygon"===n)for(i=0;i<t.coordinates.length;i++)s(t.coordinates[i],r);return t}));const l=e.V.prototype.toGeoJSON;var c={exports:{}},u=e.p,h=e.a.VectorTileFeature,d=p;function p(e,t){this.options=t||{},this.features=e,this.length=e.length}function f(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}p.prototype.feature=function(e){return new f(this.features[e],this.options.extent)},f.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t<e.length;t++){for(var r=e[t],i=[],n=0;n<r.length;n++)i.push(new u(r[n][0],r[n][1]));this.geometry.push(i)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,r=-1/0,i=1/0,n=-1/0,s=0;s<e.length;s++)for(var o=e[s],a=0;a<o.length;a++){var l=o[a];t=Math.min(t,l.x),r=Math.max(r,l.x),i=Math.min(i,l.y),n=Math.max(n,l.y)}return[t,i,r,n]},f.prototype.toGeoJSON=h.prototype.toGeoJSON;var m=e.b,g=d;function y(e){var t=new m;return function(e,t){for(var r in e.layers)t.writeMessage(3,v,e.layers[r])}(e,t),t.finish()}function v(e,t){var r;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r<e.length;r++)i.feature=e.feature(r),t.writeMessage(2,_,i);var n=i.keys;for(r=0;r<n.length;r++)t.writeStringField(3,n[r]);var s=i.values;for(r=0;r<s.length;r++)t.writeMessage(4,E,s[r])}function _(e,t){var r=e.feature;void 0!==r.id&&t.writeVarintField(1,r.id),t.writeMessage(2,b,e),t.writeVarintField(3,r.type),t.writeMessage(4,A,r)}function b(e,t){var r=e.feature,i=e.keys,n=e.values,s=e.keycache,o=e.valuecache;for(var a in r.properties){var l=r.properties[a],c=s[a];if(null!==l){void 0===c&&(i.push(a),s[a]=c=i.length-1),t.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var h=u+":"+l,d=o[h];void 0===d&&(n.push(l),o[h]=d=n.length-1),t.writeVarint(d)}}}function x(e,t){return(t<<3)+(7&e)}function w(e){return e<<1^e>>31}function A(e,t){for(var r=e.loadGeometry(),i=e.type,n=0,s=0,o=r.length,a=0;a<o;a++){var l=r[a],c=1;1===i&&(c=l.length),t.writeVarint(x(1,c));for(var u=3===i?l.length-1:l.length,h=0;h<u;h++){1===h&&1!==i&&t.writeVarint(x(2,u-1));var d=l[h].x-n,p=l[h].y-s;t.writeVarint(w(d)),t.writeVarint(w(p)),n+=d,s+=p}3===i&&t.writeVarint(x(7,1))}}function E(e,t){var r=typeof e;"string"===r?t.writeStringField(1,e):"boolean"===r?t.writeBooleanField(7,e):"number"===r&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}c.exports=y,c.exports.fromVectorTileJs=y,c.exports.fromGeojsonVt=function(e,t){t=t||{};var r={};for(var i in e)r[i]=new g(e[i].features,t),r[i].name=i,r[i].version=t.version,r[i].extent=t.extent;return y({layers:r})},c.exports.GeoJSONWrapper=g;
vendor: 4,879 bytes, line 2
2var S=e.g(c.exports);const T={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},C=Math.fround||(I=new Float32Array(1),e=>(I[0]=+e,I[0]));var I;class P{constructor(e){this.options=Object.assign(Object.create(T),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:r,maxZoom:i}=this.options;t&&console.time("total time");const n=`prepare ${e.length} points`;t&&console.time(n),this.points=e;const s=[];for(let t=0;t<e.length;t++){const r=e[t];if(!r.geometry)continue;const[i,n]=r.geometry.coordinates,o=C(O(i)),a=C(R(n));s.push(o,a,1/0,t,-1,1),this.options.reduce&&s.push(0)}let o=this.trees[i+1]=this._createTree(s);t&&console.timeEnd(n);for(let e=i;e>=r;e--){const r=+Date.now();o=this.trees[e]=this._createTree(this._cluster(o,e)),t&&console.log("z%d: %d clusters in %dms",e,o.numItems,+Date.now()-r)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let n=180===e[2]?180:((e[2]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,n=180;else if(r>n){const e=this.getClusters([r,i,180,s],t),o=this.getClusters([-180,i,n,s],t);return e.concat(o)}const o=this.trees[this._limitZoom(t)],a=o.range(O(r),R(s),O(n),R(i)),l=o.data,c=[];for(const e of a){const t=this.stride*e;c.push(l[t+5]>1?M(l,t,this.clusterProps):this.points[l[t+3]])}return c}getChildren(e){const t=this._getOriginId(e),r=this._getOriginZoom(e),i="No cluster with the specified id.",n=this.trees[r];if(!n)throw new Error(i);const s=n.data;if(t*this.stride>=s.length)throw new Error(i);const o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=n.within(s[t*this.stride],s[t*this.stride+1],o),l=[];for(const t of a){const r=t*this.stride;s[r+4]===e&&l.push(s[r+5]>1?M(s,r,this.clusterProps):this.points[s[r+3]])}if(0===l.length)throw new Error(i);return l}getLeaves(e,t,r){const i=[];return this._appendLeaves(i,e,t=t||10,r=r||0,0),i}getTile(e,t,r){const i=this.trees[this._limitZoom(e)],n=Math.pow(2,e),{extent:s,radius:o}=this.options,a=o/s,l=(r-a)/n,c=(r+1+a)/n,u={features:[]};return this._addTileFeatures(i.range((t-a)/n,l,(t+1+a)/n,c),i.data,t,r,n,u),0===t&&this._addTileFeatures(i.range(1-a/n,l,1,c),i.data,n,r,n,u),t===n-1&&this._addTileFeatures(i.range(0,l,a/n,c),i.data,-1,r,n,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const r=this.getChildren(e);if(t++,1!==r.length)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,i,n){const s=this.getChildren(t);for(const t of s){const s=t.properties;if(s&&s.cluster?n+s.point_count<=i?n+=s.point_count:n=this._appendLeaves(e,s.cluster_id,r,i,n):n<i?n++:e.push(t),e.length===r)break}return n}_createTree(t){const r=new e.K(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let e=0;e<t.length;e+=this.stride)r.add(t[e],t[e+1]);return r.finish(),r.data=t,r}_addTileFeatures(e,t,r,i,n,s){for(const o of e){const e=o*this.stride,a=t[e+5]>1;let l,c,u;if(a)l=k(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const r=this.points[t[e+3]];l=r.properties;const[i,n]=r.geometry.coordinates;c=O(i),u=R(n)}const h={type:1,geometry:[[Math.round(this.options.extent*(c*n-r)),Math.round(this.options.extent*(u*n-i))]],tags:l};let d;d=a||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==d&&(h.id=d),s.features.push(h)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:r,extent:i,reduce:n,minPoints:s}=this.options,o=r/(i*Math.pow(2,t)),a=e.data,l=[],c=this.stride;for(let r=0;r<a.length;r+=c){if(a[r+2]<=t)continue;a[r+2]=t;const i=a[r],u=a[r+1],h=e.within(a[r],a[r+1],o),d=a[r+5];let p=d;for(const e of h){const r=e*c;a[r+2]>t&&(p+=a[r+5])}if(p>d&&p>=s){let e,s=i*d,o=u*d,f=-1;const m=(r/c<<5)+(t+1)+this.points.length;for(const i of h){const l=i*c;if(a[l+2]<=t)continue;a[l+2]=t;const u=a[l+5];s+=a[l]*u,o+=a[l+1]*u,a[l+4]=m,n&&(e||(e=this._map(a,r,!0),f=this.clusterProps.length,this.clusterProps.push(e)),n(e,this._map(a,l)))}a[r+4]=m,l.push(s/p,o/p,1/0,m,-1,p),n&&l.push(f)}else{for(let e=0;e<c;e++)l.push(a[r+e]);if(p>1)for(const e of h){const r=e*c;if(!(a[r+2]<=t)){a[r+2]=t;for(let e=0;e<c;e++)l.push(a[r+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+5]>1){const i=this.clusterProps[e[t+6]];return r?Object.assign({},i):i}const i=this.points[e[t+3]].properties,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}}function M(e,t,r){return{type:"Feature",id:e[t+3],properties:k(e,t,r),geometry:{type:"Point",coordinates:[(i=e[t],360*(i-.5)),D(e[t+1])]}};var i}function k(e,t,r){const i=e[t+5],n=i>=1e4?`${Math.round(i/1e3)}
2k`:i>=1e3?Math.round(i/100)/10+"k":i,s=e[t+6],o=-1===s?{}:Object.assign({},r[s]);return Object.assign(o,{cluster:!0,cluster_id:e[t+3],point_count:i,point_count_abbreviated:n})}function O(e){return e/360+.5}function R(e){const t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function D(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}var L={exports:{}};L.exports=function(){function e(r,i,n,s){for(var o,a=s,l=n-i>>1,c=n-i,u=r[i],h=r[i+1],d=r[n],p=r[n+1],f=i+3;f<n;f+=3){var m=t(r[f],r[f+1],u,h,d,p);if(m>a)o=f,a=m;else if(m===a){var g=Math.abs(f-l);g<c&&(o=f,c=g)}}a>s&&(o-i>3&&e(r,i,o,s),r[o+2]=a,n-o>3&&e(r,o,n,s))}function t(e,t,r,i,n,s){var o=n-r,a=s-i;if(0!==o||0!==a){var l=((e-r)*o+(t-i)*a)/(o*o+a*a);l>1?(r=n,i=s):l>0&&(r+=o*l,i+=a*l)}return(o=e-r)*o+(a=t-i)*a}function r(e,t,r,n){var s={id:void 0===e?null:e,type:t,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,r=e.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)i(e,t);else if("Polygon"===r||"MultiLineString"===r)for(var n=0;n<t.length;n++)i(e,t[n]);else if("MultiPolygon"===r)for(n=0;n<t.length;n++)for(var s=0;s<t[n].length;s++)i(e,t[n][s])}(s),s}function i(e,t){for(var r=0;r<t.length;r+=3)e.minX=Math.min(e.minX,t[r]),e.minY=Math.min(e.minY,t[r+1]),e.maxX=Math.max(e.maxX,t[r]),e.maxY=Math.max(e.maxY,t[r+1])}function n(e,t,i,l){if(t.geometry){var c=t.geometry.coordinates,u=t.geometry.type,h=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),d=[],p=t.id;if(i.promoteId?p=t.properties[i.promoteId]:i.generateId&&(p=l||0),"Point"===u)s(c,d);else if("MultiPoint"===u)for(var f=0;f<c.length;f++)s(c[f],d);else if("LineString"===u)o(c,d,h,!1);else if("MultiLineString"===u){if(i.lineMetrics){for(f=0;f<c.length;f++)o(c[f],d=[],h,!1),e.push(r(p,"LineString",d,t.properties));return}a(c,d,h,!1)}else if("Polygon"===u)a(c,d,h,!0);else{if("MultiPolygon"!==u){if("GeometryCollection"===u){for(f=0;f<t.geometry.geometries.length;f++)n(e,{id:p,geometry:t.geometry.geometries[f],properties:t.properties},i,l);return}throw new Error("Input data is not a valid GeoJSON object.")}for(f=0;f<c.length;f++){var m=[];a(c[f],m,h,!0),d.push(m)}}e.push(r(p,u,d,t.properties))}}function s(e,t){t.push(l(e[0])),t.push(c(e[1])),t.push(0)}function o(t,r,i,n){for(var s,o,a=0,u=0;u<t.length;u++){var h=l(t[u][0]),d=c(t[u][1]);r.push(h),r.push(d),r.push(0),u>0&&(a+=n?(s*d-h*o)/2:Math.sqrt(Math.pow(h-s,2)+Math.pow(d-o,2))),s=h,o=d}var p=r.length-3;r[2]=1,e(r,0,p,i),r[p+2]=1,r.size=Math.abs(a),r.start=0,r.end=r.size}function a(e,t,r,i){for(var n=0;n<e.length;n++){var s=[];o(e[n],s,r,i),t.push(s)}}function l(e){return e/360+.5}function c(e){var t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function u(e,t,i,n,s,o,a,l){if(n/=t,o>=(i/=t)&&a<n)return e;if(a<i||o>=n)return null;for(var c=[],u=0;u<e.length;u++){var p=e[u],m=p.geometry,g=p.type,y=0===s?p.minX:p.minY,v=0===s?p.maxX:p.maxY;if(y>=i&&v<n)c.push(p);else if(!(v<i||y>=n)){var _=[];if("Point"===g||"MultiPoint"===g)h(m,_,i,n,s);else if("LineString"===g)d(m,_,i,n,s,!1,l.lineMetrics);else if("MultiLineString"===g)f(m,_,i,n,s,!1);else if("Polygon"===g)f(m,_,i,n,s,!0);else if("MultiPolygon"===g)for(var b=0;b<m.length;b++){var x=[];f(m[b],x,i,n,s,!0),x.length&&_.push(x)}if(_.length){if(l.lineMetrics&&"LineString"===g){for(b=0;b<_.length;b++)c.push(r(p.id,g,_[b],p.tags));continue}"LineString"!==g&&"MultiLineString"!==g||(1===_.length?(g="LineString",_=_[0]):g="MultiLineString"),"Point"!==g&&"MultiPoint"!==g||(g=3===_.length?"Point":"MultiPoint"),c.push(r(p.id,g,_,p.tags))}}}return c.length?c:null}function h(e,t,r,i,n){for(var s=0;s<e.length;s+=3){var o=e[s+n];o>=r&&o<=i&&(t.push(e[s]),t.push(e[s+1]),t.push(e[s+2]))}}function d(e,t,r,i,n,s,o){for(var a,l,c=p(e),u=0===n?g:y,h=e.start,d=0;d<e.length-3;d+=3){var f=e[d],v=e[d+1],_=e[d+2],b=e[d+3],x=e[d+4],w=0===n?f:v,A=0===n?b:x,E=!1;o&&(a=Math.sqrt(Math.pow(f-b,2)+Math.pow(v-x,2))),w<r?A>r&&(l=u(c,f,v,b,x,r),o&&(c.start=h+a*l)):w>i?A<i&&(l=u(c,f,v,b,x,i),o&&(c.start=h+a*l)):m(c,f,v,_),A<r&&w>=r&&(l=u(c,f,v,b,x,r),E=!0),A>
vendor: 6,437 bytes, line 2
2i&&w<=i&&(l=u(c,f,v,b,x,i),E=!0),!s&&E&&(o&&(c.end=h+a*l),t.push(c),c=p(e)),o&&(h+=a)}var S=e.length-3;f=e[S],v=e[S+1],_=e[S+2],(w=0===n?f:v)>=r&&w<=i&&m(c,f,v,_),S=c.length-3,s&&S>=3&&(c[S]!==c[0]||c[S+1]!==c[1])&&m(c,c[0],c[1],c[2]),c.length&&t.push(c)}function p(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function f(e,t,r,i,n,s){for(var o=0;o<e.length;o++)d(e[o],t,r,i,n,s,!1)}function m(e,t,r,i){e.push(t),e.push(r),e.push(i)}function g(e,t,r,i,n,s){var o=(s-t)/(i-t);return e.push(s),e.push(r+(n-r)*o),e.push(1),o}function y(e,t,r,i,n,s){var o=(s-r)/(n-r);return e.push(t+(i-t)*o),e.push(s),e.push(1),o}function v(e,t){for(var i=[],n=0;n<e.length;n++){var s,o=e[n],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)s=_(o.geometry,t);else if("MultiLineString"===a||"Polygon"===a){s=[];for(var l=0;l<o.geometry.length;l++)s.push(_(o.geometry[l],t))}else if("MultiPolygon"===a)for(s=[],l=0;l<o.geometry.length;l++){for(var c=[],u=0;u<o.geometry[l].length;u++)c.push(_(o.geometry[l][u],t));s.push(c)}i.push(r(o.id,a,s,o.tags))}return i}function _(e,t){var r=[];r.size=e.size,void 0!==e.start&&(r.start=e.start,r.end=e.end);for(var i=0;i<e.length;i+=3)r.push(e[i]+t,e[i+1],e[i+2]);return r}function b(e,t){if(e.transformed)return e;var r,i,n,s=1<<e.z,o=e.x,a=e.y;for(r=0;r<e.features.length;r++){var l=e.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(i=0;i<c.length;i+=2)l.geometry.push(x(c[i],c[i+1],t,s,o,a));else for(i=0;i<c.length;i++){var h=[];for(n=0;n<c[i].length;n+=2)h.push(x(c[i][n],c[i][n+1],t,s,o,a));l.geometry.push(h)}}return e.transformed=!0,e}function x(e,t,r,i,n,s){return[Math.round(r*(e*i-n)),Math.round(r*(t*i-s))]}function w(e,t,r,i,n){for(var s=t===n.maxZoom?0:n.tolerance/((1<<t)*n.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:i,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<e.length;a++){o.numFeatures++,A(o,e[a],s,n);var l=e[a].minX,c=e[a].minY,u=e[a].maxX,h=e[a].maxY;l<o.minX&&(o.minX=l),c<o.minY&&(o.minY=c),u>o.maxX&&(o.maxX=u),h>o.maxY&&(o.maxY=h)}return o}function A(e,t,r,i){var n=t.geometry,s=t.type,o=[];if("Point"===s||"MultiPoint"===s)for(var a=0;a<n.length;a+=3)o.push(n[a]),o.push(n[a+1]),e.numPoints++,e.numSimplified++;else if("LineString"===s)E(o,n,e,r,!1,!1);else if("MultiLineString"===s||"Polygon"===s)for(a=0;a<n.length;a++)E(o,n[a],e,r,"Polygon"===s,0===a);else if("MultiPolygon"===s)for(var l=0;l<n.length;l++){var c=n[l];for(a=0;a<c.length;a++)E(o,c[a],e,r,!0,0===a)}if(o.length){var u=t.tags||null;if("LineString"===s&&i.lineMetrics){for(var h in u={},t.tags)u[h]=t.tags[h];u.mapbox_clip_start=n.start/n.size,u.mapbox_clip_end=n.end/n.size}var d={geometry:o,type:"Polygon"===s||"MultiPolygon"===s?3:"LineString"===s||"MultiLineString"===s?2:1,tags:u};null!==t.id&&(d.id=t.id),e.features.push(d)}}function E(e,t,r,i,n,s){var o=i*i;if(i>0&&t.size<(n?o:i))r.numPoints+=t.length/3;else{for(var a=[],l=0;l<t.length;l+=3)(0===i||t[l+2]>o)&&(r.numSimplified++,a.push(t[l]),a.push(t[l+1])),r.numPoints++;n&&function(e,t){for(var r=0,i=0,n=e.length,s=n-2;i<n;s=i,i+=2)r+=(e[i]-e[s])*(e[i+1]+e[s+1]);if(r>0===t)for(i=0,n=e.length;i<n/2;i+=2){var o=e[i],a=e[i+1];e[i]=e[n-2-i],e[i+1]=e[n-1-i],e[n-2-i]=o,e[n-1-i]=a}}(a,s),e.push(a)}}function S(e,t){var r=(t=this.options=function(e,t){for(var r in t)e[r]=t[r];return e}(Object.create(this.options),t)).debug;if(r&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var i=function(e,t){var r=[];if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)n(r,e.features[i],t,i);else n(r,"Feature"===e.type?e:{geometry:e},t);return r}(e,t);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(i=function(e,t){var r=t.buffer/t.extent,i=e,n=u(e,1,-1-r,r,0,-1,2,t),s=u(e,1,1-r,2+r,0,-1,2,t);return(n||s)&&(i=u(e,1,-r,1+r,0,-1,2,t)||[],n&&(i=v(n,1).concat(i)),s&&(i=i.concat(v(s,-1)))),i}(i,t)).length&&this.splitTile(i,0,0,0),r&&(i.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 T(e,t,r){return 32*((1<<e)*r+t)+e}return S.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},S.prototype.splitTile=function(e,t,r,i,n,s,o){for(var a=[e,t,r,i],l=this.options,c=l.debug;a.length;){i=a.pop(),r=a.pop(),t=a.pop(),e=a.pop();var h=1<<t,d=T(t,r,i),p=this.tiles[d];if(!p&&(c>1&&console.time("creation"),p=this.tiles[d]=w(e,t,r,i,l),this.tileCoords.push({z:t,x:r,y:i}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var f="z"+t;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(p.source=e,n){if(t===l.maxZoom||t===n)continue;var m=1<<n-t;if(r!==Math.floor(s/m)||i!==Math.floor(o/m))continue}else if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==e.length){c>1&&console.time("clipping");var g,y,v,_,b,x,A=.5*l.buffer/l.extent,E=.5-A,S=.5+A,C=1+A;g=y=v=_=null,b=u(e,h,r-A,r+S,0,p.minX,p.maxX,l),x=u(e,h,r+E,r+C,0,p.minX,p.maxX,l),e=null,b&&(g=u(b,h,i-A,i+S,1,p.minY,p.maxY,l),y=u(b,h,i+E,i+C,1,p.minY,p.maxY,l),b=null),x&&(v=u(x,h,i-A,i+S,1,p.minY,p.maxY,l),_=u(x,h,i+E,i+C,1,p.minY,p.maxY,l),x=null),c>1&&console.timeEnd("clipping"),a.push(g||[],t+1,2*r,2*i),a.push(y||[],t+1,2*r,2*i+1),a.push(v||[],t+1,2*r+1,2*i),a.push(_||[],t+1,2*r+1,2*i+1)}}},S.prototype.getTile=function(e,t,r){var i=this.options,n=i.extent,s=i.debug;if(e<0||e>24)return null;var o=1<<e,a=T(e,t=(t%o+o)%o,r);if(this.tiles[a])return b(this.tiles[a],n);s>1&&console.log("drilling down to z%d-%d-%d",e,t,r);for(var l,c=e,u=t,h=r;!l&&c>0;)c--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[T(c,u,h)];return l&&l.source?(s>1&&console.log("found parent tile z%d-%d-%d",c,u,h),s>1&&console.time("drilling down"),this.splitTile(l.source,c,u,h,e,t,r),s>1&&console.timeEnd("drilling down"),this.tiles[a]?b(this.tiles[a],n):null):null},function(e,t){return new S(e,t)}}();
2var B=e.g(L.exports);function z(t,r){const i=t.tileID.canonical;if(!this._geoJSONIndex)return r(null,null);const n=this._geoJSONIndex.getTile(i.z,i.x,i.y);if(!n)return r(null,null);const s=new class{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.E,this.length=t.length,this._features=t}feature(t){return new class{constructor(t){this._feature=t,this.extent=e.E,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const r of this._feature.geometry)t.push([new e.P(r[0],r[1])]);return t}{const t=[];for(const r of this._feature.geometry){const i=[];for(const t of r)i.push(new e.P(t[0],t[1]));t.push(i)}return t}}toGeoJSON(e,t,r){return l.call(this,e,t,r)}}(this._features[t])}}(n.features);let o=S(s);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),r(null,{vectorTile:s,rawData:o.buffer})}class j extends e.d{constructor(e,t,r,i,n,s){super(e,t,r,i,z,s),n&&(this.loadGeoJSON=n)}loadData(t,r){const i=t&&t.request,n=i&&i.collectResourceTiming;this.loadGeoJSON(t,((s,o)=>{if(s||!o)return r(s);if("object"!=typeof o)return r(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{a(o,!0);try{if(t.filter){const r=e.e(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===r.result)throw new Error(r.value.map((e=>`${e.key}: ${e.message}`)).join(", "));const i=o.features.filter((e=>r.value.evaluate({zoom:0},e)));o={type:"FeatureCollection",features:i}}this._geoJSONIndex=t.cluster?new P(function({superclusterOptions:t,clusterProperties:r}){if(!r||!t)return t;const i={},n={},s={accumulated:null,zoom:0},o={properties:null},a=Object.keys(r);for(const t of a){const[s,o]=r[t],a=e.e(o),l=e.e("string"==typeof s?[s,["accumulated"],["get",t]]:s);i[t]=a.value,n[t]=l.value}return t.map=e=>{o.properties=e;const t={};for(const e of a)t[e]=i[e].evaluate(s,o);return t},t.reduce=(e,t)=>{o.properties=t;for(const t of a)s.accumulated=e[t],e[t]=n[t].evaluate(s,o)},t}(t)).load(o.features):B(o,t.geojsonVtOptions)}catch(s){return r(s)}this.loaded={};const l={};if(n){const r=e.f(i);r&&(l.resourceTiming={},l.resourceTiming[t.source]=JSON.parse(JSON.stringify(r)))}r(null,l)}}))}reloadTile(e,t){const r=this.loaded;return r&&r[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,r){if(t.request)e.h(t.request,r);else{if("string"!=typeof t.data)return r(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return r(null,JSON.parse(t.data))}catch(e){return r(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class F{constructor(t,r){this.tileID=new e.O(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.projection=t.projection,this.brightness=r}parse(t,r,i,n){this.status="parsing";const s=new e.O(i.tileID.overscaledZ,i.tileID.wrap,i.tileID.canonical.z,i.tileID.canonical.x,i.tileID.canonical.y),o={},a=r.familiesBySource[i.source],l=new e.F(s,i.promoteId);return l.bucketLayerIDs=[],e.l(t).then((t=>{if(!t)return n(new Error("Could not parse tile"));const r=e.j(t,1/e.t(i.tileID.canonical)),c=t.json.extensionsUsed&&t.json.extensionsUsed.includes("MAPBOX_mesh_features"),u=new e.k(this.zoom,{brightness:this.brightness});for(const i in a)for(const n of a[i]){const i=n[0],a=t.json.extensionsUsed;i.recalculate(u,[]);const l=new e.T(r,s,a&&a.includes("MAPBOX_mesh_features"),this.brightness);c||(l.needsUpload=!0),o[i.fqid]=l,l.evaluate(i)}this.status="done",n(null,{buckets:o,featureIndex:l})})).catch((e=>n(new Error(e.message))))}}class N{constructor(e,t,r,i,n,s){this.actor=e,this.layerIndex=t,this.brightness=s,this.loading={},this.loaded={}}loadTile(t,r){const i=t.uid,n=this.loading[i]=new F(t,this.brightness);e.i(t.request,((e,s)=>{const o=!this.loading[i];return delete this.loading[i],o||e?(n.status="done",o||(this.loaded[i]=n),r(e)):s&&0!==s.byteLength?void n.parse(s,this.layerIndex,t,((e,t)=>
2{n.status="done",this.loaded=this.loaded||{},this.loaded[i]=n,e||!t?r(e):r(null,t)})):(n.status="done",this.loaded[i]=n,r())}))}reloadTile(e,t){const r=this.loaded,i=e.uid;if(r&&r[i]){const n=r[i];n.projection=e.projection,n.brightness=e.brightness;const s=(r,i)=>{n.reloadCallback&&(delete n.reloadCallback,this.loadTile(e,t)),t(r,i)};"parsing"===n.status?n.reloadCallback=s:"done"===n.status&&this.loadTile(e,t)}}abortTile(e,t){const r=e.uid;this.loading[r]&&delete this.loading[r],t()}removeTile(e,t){const r=this.loaded,i=e.uid;r&&r[i]&&delete r[i],t()}}class U{constructor(t){this.self=t,this.actor=new e.A(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=e.m({name:"mercator"}),this.workerSourceTypes={vector:e.d,geojson:j,"batched-model":N},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.n.isParsed())throw new Error("RTL text plugin already registered.");e.n.applyArabicShaping=t.applyArabicShaping,e.n.processBidirectionalText=t.processBidirectionalText,e.n.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,r){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],r()}checkIfReady(e,t,r){r()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,{scope:r,isLoaded:i}){if(this.isSpriteLoaded[t]||(this.isSpriteLoaded[t]={}),this.isSpriteLoaded[t][r]=i,this.workerSources[t]&&this.workerSources[t][r])for(const n in this.workerSources[t][r]){const s=this.workerSources[t][r][n];for(const t in s)s[t]instanceof e.d&&(s[t].isSpriteLoaded=i,s[t].fire(new e.o("isSpriteLoaded")))}}setImages(e,{scope:t,images:r},i){if(this.availableImages[e]||(this.availableImages[e]={}),this.availableImages[e][t]=r,this.workerSources[e]&&this.workerSources[e][t]){for(const i in this.workerSources[e][t]){const n=this.workerSources[e][t][i];for(const e in n)n[e].availableImages=r}i()}else i()}setProjection(t,r){this.projections[t]=e.m(r)}setBrightness(e,t,r){this.brightness=t,r()}setLayers(e,t,r){this.getLayerIndex(e,t.scope).replace(t.layers,t.options),r()}updateLayers(e,t,r){this.getLayerIndex(e,t.scope).update(t.layers,t.removedIds,t.options),r()}loadTile(e,t,r){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t.type,t.source,t.scope).loadTile(t,r)}loadDEMTile(e,t,r){this.getDEMWorkerSource(e,t.source,t.scope).loadTile(t,r)}reloadTile(e,t,r){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t.type,t.source,t.scope).reloadTile(t,r)}abortTile(e,t,r){this.getWorkerSource(e,t.type,t.source,t.scope).abortTile(t,r)}removeTile(e,t,r){this.getWorkerSource(e,t.type,t.source,t.scope).removeTile(t,r)}removeSource(e,t,r){if(!(this.workerSources[e]&&this.workerSources[e][t.scope]&&this.workerSources[e][t.scope][t.type]&&this.workerSources[e][t.scope][t.type][t.source]))return;const i=this.workerSources[e][t.scope][t.type][t.source];delete this.workerSources[e][t.scope][t.type][t.source],void 0!==i.removeSource?i.removeSource(t,r):r()}loadWorkerSource(e,t,r){try{this.self.importScripts(t.url),r()}catch(e){r(e.toString())}}syncRTLPluginState(t,r,i){try{e.n.setState(r);const t=e.n.getPluginURL();if(e.n.isLoaded()&&!e.n.isParsed()&&null!=t){this.self.importScripts(t);const r=e.n.isParsed();i(r?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),r)}}catch(e){i(e.toString())}}setDracoUrl(e,t){this.dracoUrl=t}getAvailableImages(e,t){this.availableImages[e]||(this.availableImages[e]={});let r=this.availableImages[e][t];return r||(r=[]),r}getLayerIndex(e,t){this.layerIndexes[e]||(this.layerIndexes[e]={});let r=this.layerIndexes[e][t];return r||(r=this.layerIndexes[e][t]=new i,r.scope=t),r}getWorkerSource(e,t,r,i){if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][i]||(this.workerSources[e][i]={}),this.workerSources[e][i][t]||(this.workerSources[e][i][t]={}),this.isSpriteLoaded[e]||(this.isSpriteLoaded[e]={}),!this.workerSources[e][i][t][r]){const n={send:(t,r,i,n,s,o)=>{this.actor.send(t,r,i,e,s,o)},scheduler:this.actor.scheduler};this.workerSources[e][i][t][r]=new this.workerSourceTypes[t](n,this.getLayerIndex(e,i),this.getAvailableImages(e,i),this.isSpriteLoaded[e][i],void 0,this.brightness)}return this.workerSources[e][i][t][r]}getDEMWorkerSource(e,t,r){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][r]||(this.demWorkerSources[e][r]={}),this.demWorkerSources[e][r][t]||(this.demWorkerSources[e][r][t]=new n),this.demWorkerSources[e][r][t]}enforceCacheSizeLimit(t,r){e.q(r)}getWorkerPerformanceMetrics(e,t,r){r(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new U(self)),U})),i(0,(function(e){return e.s})),r},"object"==typeof t&&void 0!==e?e.exports=i():"function"==typeof define&&define.amd?define(i):(r="undefined"!=typeof globalThis?globalThis:r||self).mapboxgl=i()},669(e){for(var t="0123456789bcdefghjkmnpqrstuvwxyz",r={},i=0;i<32;i++)r[t.charAt(i)]=i;var n="auto",s=-90,o=90,a=-180,l=180,c=[0,5,7,8,11,12,13,15,16,17,18],u=function(e,r,i){if(i===n){
2if("number"==typeof e||"number"==typeof r)throw new Error("string notation required for auto precision.");var u=e.split(".")[1].length,h=r.split(".")[1].length,d=Math.max(u,h);i=c[d]}else void 0===i&&(i=9);for(var p,f=[],m=0,g=0,y=0,v=o,_=s,b=l,x=a;f.length<i;)if(g%2==0?r>(p=(b+x)/2)?(y=1+(y<<1),x=p):(y=0+(y<<1),b=p):e>(p=(v+_)/2)?(y=1+(y<<1),_=p):(y=0+(y<<1),v=p),g++,5==++m){var w=t[y];f.push(w),m=0,y=0}return f.join("")},h=function(e,t,r){r=r||52;for(var i,n=0,c=o,u=s,h=l,d=a,p=0;n<r;)p*=2,n%2==0?t>(i=(h+d)/2)?(p+=1,d=i):h=i:e>(i=(c+u)/2)?(p+=1,u=i):c=i,n++;return p},d=function(e){for(var t,i=!0,n=o,c=s,u=l,h=a,d=0,p=0,f=e.length;p<f;p++){var m=e[p].toLowerCase();d=r[m];for(var g=4;g>=0;g--){var y=d>>g&1;i?(t=(u+h)/2,1===y?h=t:u=t):(t=(n+c)/2,1===y?c=t:n=t),i=!i}}return[c,h,n,u]},p=function(e,t){for(var r=o,i=s,n=l,c=a,u=0,h=(t=t||52)/2,d=0;d<h;d++)u=f(e,2*(h-d)-1),0===f(e,2*(h-d)-2)?r=(r+i)/2:i=(r+i)/2,0===u?n=(n+c)/2:c=(n+c)/2;return[i,c,r,n]};function f(e,t){return e/Math.pow(2,t)&1}var m=function(e){var t=d(e),r=(t[0]+t[2])/2,i=(t[1]+t[3])/2;return{latitude:r,longitude:i,error:{latitude:t[2]-r,longitude:t[3]-i}}},g=function(e,t){var r=p(e,t),i=(r[0]+r[2])/2,n=(r[1]+r[3])/2;return{latitude:i,longitude:n,error:{latitude:r[2]-i,longitude:r[3]-n}}},y=function(e,t){var r=m(e),i=r.latitude+t[0]*r.error.latitude*2,n=r.longitude+t[1]*r.error.longitude*2;return n=_(n),i=b(i),u(i,n,e.length)},v=function(e,t,r){var i=g(e,r=r||52),n=i.latitude+t[0]*i.error.latitude*2,s=i.longitude+t[1]*i.error.longitude*2;return s=_(s),n=b(n),h(n,s,r)};function _(e){return e>l?a+e%l:e<a?l+e%l:e}function b(e){return e>o?o:e<s?s:e}var x={ENCODE_AUTO:n,encode:u,encode_uint64:h,encode_int:h,decode:m,decode_int:g,decode_uint64:g,decode_bbox:d,decode_bbox_uint64:p,decode_bbox_int:p,neighbor:y,neighbor_int:v,neighbors:function(e){var t,r,i=e.length,n=m(e),s=n.latitude,o=n.longitude,a=2*n.error.latitude,l=2*n.error.longitude;function c(e,n){return t=s+e*a,r=_(r=o+n*l),t=b(t),u(t,r,i)}return[c(1,0),c(1,1),c(0,1),c(-1,1),c(-1,0),c(-1,-1),c(0,-1),c(1,-1)]},neighbors_int:function(e,t){var r,i,n=g(e,t=t||52),s=n.latitude,o=n.longitude,a=2*n.error.latitude,l=2*n.error.longitude;function c(e,n){return r=s+e*a,i=_(i=o+n*l),r=b(r),h(r,i,t)}return[c(1,0),c(1,1),c(0,1),c(-1,1),c(-1,0),c(-1,-1),c(0,-1),c(1,-1)]},bboxes:function(e,t,r,i,n){for(var s=u(e,t,n=n||9),o=u(r,i,n),a=m(s),l=2*a.error.latitude,c=2*a.error.longitude,h=d(s),p=d(o),f=Math.round((p[0]-h[0])/l),g=Math.round((p[1]-h[1])/c),v=[],_=0;_<=f;_++)for(var b=0;b<=g;b++)v.push(y(s,[_,b]));return v},bboxes_int:function(e,t,r,i,n){for(var s=h(e,t,n=n||52),o=h(r,i,n),a=g(s,n),l=2*a.error.latitude,c=2*a.error.longitude,u=p(s,n),d=p(o,n),f=Math.round((d[0]-u[0])/l),m=Math.round((d[1]-u[1])/c),y=[],_=0;_<=f;_++)for(var b=0;b<=m;b++)y.push(v(s,[_,b],n));return y}};e.exports=x},494(e){var t;t=function(){var e=/^([a-zA-Z]{2,3})(?:[_-]+([a-zA-Z]{3})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{4})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{2}|[0-9]{3})(?=$|[_-]+))?/;function t(t){return t.match(e)||[]}function r(e){return{language:(e=t(e))[1]||"",extlang:e[2]||"",script:e[3]||"",region:e[4]||""}}function i(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!0})}function n(e,n,s){function o(r){return t(r)[e]||""}i(o,"pattern",n),i(r,s,o)}return n(1,/^[a-zA-Z]{2,3}$/,"language"),n(2,/^[a-zA-Z]{3}$/,"extlang"),n(3,/^[a-zA-Z]{4}$/,"script"),n(4,/^[a-zA-Z]{2}$|^[0-9]{3}$/,"region"),i(r,"split",(function(e){return t(e).filter((function(e,t){return e&&t}))})),r},e.exports?e.exports=t():this.subtag=t()},472(e,t,r){var i=r(828);e.exports=i,"undefined"!=typeof window&&(window.Suggestions=i)},761(e){var t=function(e){return this.component=e,this.items=[],this.active=0,this.wrapper=document.createElement("div"),this.wrapper.className="suggestions-wrapper",this.element=document.createElement("ul"),this.element.className="suggestions",this.wrapper.appendChild(this.element),this.selectingListItem=!1,e.el.parentNode.insertBefore(this.wrapper,e.el.nextSibling),this};t.prototype.show=function(){this.element.style.display="block"},t.prototype.hide=function(){this.element.style.display="none"},t.prototype.add=function(e){this.items.push(e)},t.prototype.clear=function(){this.items=[],this.active=0},t.prototype.isEmpty=function(){return!this.items.length},t.prototype.isVisible=function(){return"block"===this.element.style.display},t.prototype.draw=function(){if(this.element.innerHTML="",0!==this.items.length){for(var e=0;e<this.items.length;e++)this.drawItem(this.items[e],this.active===e);this.show()}else this.hide()},t.prototype.drawItem=function(e,t){var r=document.createElement("li"),i=document.createElement("a");t&&(r.className+=" active"),i.innerHTML=e.string,r.appendChild(i),this.element.appendChild(r),r.addEventListener("mousedown",function(){this.selectingListItem=!0}.bind(this)),r.addEventListener("mouseup",function(){this.handleMouseUp.call(this,e)}.bind(this))},t.prototype.handleMouseUp=function(e){this.selectingListItem=!1,this.component.value(e.original),this.clear(),this.draw()},t.prototype.move=function(e){this.active=e,this.draw()},t.prototype.previous=function(){this.move(0===this.active?this.items.length-1:this.active-1)},t.prototype.next=function(){this.move(this.active===this.items.length-1?0:this.active+1)},t.prototype.drawError=function(e){var t=document.createElement("li");t.innerHTML=e,this.element.appendChild(t),this.show()},e.exports=t},828(e,t,r){var i=r(593),n=r(727),s=r(761),o=function(e,t,r){return r=r||{},this.options=i({minLength:2,limit:5,filter:!0,hideOnBlur:!0},r),this.el=e,this.data=t||[],this.list=new s(this),this.query="",this.selected=null,this.list.draw(),this.el.addEventListener("keyup",function(e){this.handleKeyUp(e.keyCode)}.bind(this),!1),this.el.addEventListener("keydown",function(e){this.handleKeyDown(e)}.bind(this)),this.el.addEventListener("focus",function(){this.handleFocus()}.bind(this)),this.el.addEventListener("blur",function(){this.handleBlur()}.bind(this)),this.el.addEventListener("paste",function(e){this.handlePaste(e)}.bind(this)),this.render=this.options.render?this.options.render.bind(this):this.render.bind(this),this.getItemV
2alue=this.options.getItemValue?this.options.getItemValue.bind(this):this.getItemValue.bind(this),this};o.prototype.handleKeyUp=function(e){40!==e&&38!==e&&27!==e&&13!==e&&9!==e&&this.handleInputChange(this.el.value)},o.prototype.handleKeyDown=function(e){switch(e.keyCode){case 13:case 9:this.list.isEmpty()||(this.list.isVisible()&&e.preventDefault(),this.value(this.list.items[this.list.active].original),this.list.hide());break;case 27:this.list.isEmpty()||this.list.hide();break;case 38:this.list.previous();break;case 40:this.list.next()}},o.prototype.handleBlur=function(){!this.list.selectingListItem&&this.options.hideOnBlur&&this.list.hide()},o.prototype.handlePaste=function(e){if(e.clipboardData)this.handleInputChange(e.clipboardData.getData("Text"));else{var t=this;setTimeout((function(){t.handleInputChange(e.target.value)}),100)}},o.prototype.handleInputChange=function(e){this.query=this.normalize(e),this.list.clear(),this.query.length<this.options.minLength?this.list.draw():this.getCandidates(function(e){for(var t=0;t<e.length&&(this.list.add(e[t]),t!==this.options.limit-1);t++);this.list.draw()}.bind(this))},o.prototype.handleFocus=function(){this.list.isEmpty()||this.list.show(),this.list.selectingListItem=!1},o.prototype.update=function(e){this.data=e,this.handleKeyUp()},o.prototype.clear=function(){this.data=[],this.list.clear()},o.prototype.normalize=function(e){return e.toLowerCase()},o.prototype.match=function(e,t){return e.indexOf(t)>-1},o.prototype.value=function(e){if(this.selected=e,this.el.value=this.getItemValue(e),document.createEvent){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.el.dispatchEvent(t)}else this.el.fireEvent("onchange")},o.prototype.getCandidates=function(e){var t={pre:"<strong>",post:"</strong>",extract:function(e){return this.getItemValue(e)}.bind(this)};e(this.options.filter?n.filter(this.query,this.data,t).map(function(e){return{original:e.original,string:this.render(e.original,e.string)}}.bind(this)):this.data.map(function(e){return{original:e,string:this.render(e)}}.bind(this)))}
2,o.prototype.getItemValue=function(e){return e},o.prototype.render=function(e,t){if(t)return t;for(var r=e.original?this.getItemValue(e.original):this.getItemValue(e),i=this.normalize(r),n=i.lastIndexOf(this.query);n>-1;){var s=n+this.query.length;r=r.slice(0,n)+"<strong>"+r.slice(n,s)+"</strong>"+r.slice(s),n=i.slice(0,n).lastIndexOf(this.query)}return r},o.prototype.renderError=function(e){this.list.drawError(e)},e.exports=o},593(e){e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var i=arguments[r];for(var n in i)t.call(i,n)&&(e[n]=i[n])}return e};var t=Object.prototype.hasOwnProperty},914(e,t,r){r.d(t,{Ak:()=>i});let i=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"")}},oe={};function ae(e){var t=oe[e];if(void 0!==t)return t.exports;var r=oe[e]={id:e,loaded:!1,exports:{}};return se[e].call(r.exports,r,r.exports,ae),r.loaded=!0,r.exports}ae.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return ae.d(t,{a:t}),t},ae.d=(e,t)=>{for(var r in t)ae.o(t,r)&&!ae.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},ae.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),ae.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ae.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(ne=re||(re={})).BusinessUnit="segment",ne.CategoryId="category-id",ne.Company="term",ne.ContactId="contact",ne.Country="country",ne.Location="location",ne.PartnerLevel="partner-level",ne.ProductId="product-id",ne.ProductLineId="product-line-id",ne.ServiceAuthorization="authorized-services",ne.Type="type",function(e){e.isBusinessUnitDropdownVisible="isBusinessUnitDropdownVisible",e.isBusinessUnitValueVisible="isBusinessUnitValueVisible",e.isContactUsBadgesEnabled="isContactUsBadgesEnabled",e.isDistributorsLayout="isDistributorsLayout",e.isExclusiveToOtherCustomersEnabled="isExclusiveToOtherCustomersEnabled",e.isFilterByCountryVisible="isFilterByCountryVisible",e.isGroupByPartnershipEnabled="isGroupByPartnershipEnabled",e.isIdOverHeadlineInProduct="isIdOverHeadlineInProduct",e.isMapLightThemeEnabled="isMapLightThemeEnabled",e.isMultiLanguageEnabled="isMultiLanguageEnabled",e.isPartnershipLevelFilterEnabled="isPartnershipLevelFilterEnabled",e.isRangeFilterEnabled="isRangeFilterEnabled",e.isSearchByCompanyNameVisible="isSearchByCompanyNameVisible",e.isServiceAuthorizationFilterEnabled="isServiceAuthorizationFilterEnabled",e.isTypeDropdownVisible="isTypeDropdownVisible",e.isTypeInListViewVisible="isTypeInListViewVisible"}(ie||(ie={}));const le=(0,i.createContext)({locale:"en-US",featureFlags:{[ie.isBusinessUnitDropdownVisible]:!0,[ie.isBusinessUnitValueVisible]:!0,[ie.isTypeDropdownVisible]:!0,[ie.isFilterByCountryVisible]:!1,[ie.isSearchByCompanyNameVisible]:!1,[ie.isDistributorsLayout]:!1,[ie.isContactUsBadgesEnabled]:!1,[ie.isRangeFilterEnabled]:!1,[ie.isServiceAuthorizationFilterEnabled]:!1,[ie.isGroupByPartnershipEnabled]:!1,[ie.isPartnershipLevelFilterEnabled]:!1,[ie.isMapLightThemeEnabled]:!1,[ie.isMultiLanguageEnabled]:!1,[ie.isIdOverHeadlineInProduct]:!1,[ie.isExclusiveToOtherCustomersEnabled]:!1,[ie.isTypeInListViewVisible]:!1},remoteAppConfig:{},searchBusinessSegment:"",partNumberUrlParamKey:re.ProductId,categoryIdUrlParamKey:re.CategoryId,productLineIdUrlParamKey:re.ProductLineId,environment:"dev"}),ce=()=>(0,i.useContext)(le),ue=(e,t)=>e.map((e=>({...e,label:t[e.value.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase()))]??e.label})));var he;!function(e){e.BusinessUnits="business_units",e.ContactDetails="contact_details",e.Filters="filters",e.Types="types"}(he||(he={}));const de=(e,t)=>e?.[t]||k.G.fields[t]?.defaultValue,pe=(e,t,r)=>e?.[t]?.[r]||k.G.fields[t][r]?.defaultValue,fe=e=>({businessUnits:{dcs:pe(e,he.BusinessUnits,"dcs"),dds:pe(e,he.BusinessUnits,"dds"),dhs:pe(e,he.BusinessUnits,"dhs"),dps:pe(e,he.BusinessUnits,"dps"),hpp:pe(e,he.BusinessUnits,"hpp"),pe:pe(e,he.BusinessUnits,"pe"),sen:pe(e,he.BusinessUnits,"sen")},clearCompanyFilterLabel:de(e,"clear_company_filter_label"),clearFiltersLabel:de(e,"clear_filters_label"),clearLabel:de(e,"clear_label"),contactDetails:{addressLabel:pe(e,he.ContactDetails,"address_label"),baiduMapLabel:pe(e,he.ContactDetails,"baidu_map_label"),businessHoursLabel:pe(e,he.ContactDetails,"business_hours_label"),businessUnitLabel:pe(e,he.ContactDetails,"business_unit_label"),closeIconLabel:pe(e,he.ContactDetails,"close_icon_label"),contactFormLabel:pe(e,he.ContactDetails,"contact_form_label"),customerServiceLabel:pe(e,he.ContactDetails,"customer_service_label"),distanceLabel:pe(e,he.ContactDetails,"distance_label"),emailLabel:pe(e,he.ContactDetails,"email_label"),faxLabel:pe(e,he.ContactDetails,"fax_label"),receptionLabel:pe(e,he.ContactDetails,"reception_label"),saleChannelsLabel:pe(e,he.ContactDetails,"sale_channels_label"),salesTerritoryLabel:pe(e,he.ContactDetails,"sales_territory_label"),servicesLabel:pe(e,he.ContactDetails,"services_label"),technicalSupp
2ortLabel:pe(e,he.ContactDetails,"technical_support_label"),typeLabel:pe(e,he.ContactDetails,"type_label"),websiteLabel:pe(e,he.ContactDetails,"website_label")},currentCountryFilterLabel:de(e,"current_country_filter_label"),determineLocationErrorMessage:de(e,"determine_location_error_message"),distanceUnitLabel:de(e,"distance_unit_label"),distanceUnitMiLabel:de(e,"distance_unit_mi_label"),distributorsSubtitle:de(e,"distributors_subtitle"),enterLocationPlaceholder:de(e,"enter_location_placeholder"),filters:{applyButtonLabel:pe(e,he.Filters,"apply_button_label"),authorizedServicePartnerLabel:pe(e,he.Filters,"authorized_service_partner_label"),authorizedWarrantyServiceCenterLabel:pe(e,he.Filters,"authorized_warranty_service_center_label"),cancelButtonLabel:pe(e,he.Filters,"cancel_button_label"),clickHereButtonLabel:pe(e,he.Filters,"click_here_button_label"),collapseLabel:pe(e,he.Filters,"collapse_label"),diamondPartnerDescription:pe(e,he.Filters,"diamond_partner_description"),diamondPartnerLabel:pe(e,he.Filters,"diamond_partner_label"),discontinuedProductMessage:pe(e,he.Filters,"discontinued_product_message"),elitePartnerDescription:pe(e,he.Filters,"elite_partner_description"),elitePartnerLabel:pe(e,he.Filters,"elite_partner_label"),expandLabel:pe(e,he.Filters,"expand_label"),filtersButtonLabel:pe(e,he.Filters,"filters_button_label"),filtersPanelCloseButtonLabel:pe(e,he.Filters,"filters_panel_close_button_label"),filtersPanelSubtitle:pe(e,he.Filters,"filters_panel_subtitle"),filtersPanelTitle:pe(e,he.Filters,"filters_panel_title"),findDistributorPageDescription:pe(e,he.Filters,"find_distributor_page_description"),goldPartnerDescription:pe(e,he.Filters,"gold_partner_description"),goldPartnerLabel:pe(e,he.Filters,"gold_partner_label"),groupByPartnershipSwitchLabel:pe(e,he.Filters,"group_by_partnership_switch_label"),inLabel:pe(e,he.Filters,"in_label"),noCategorySelectedPlaceholder:pe(e,he.Filters,"no_category_selected_placeholder"),noProductLineNotification:pe(e,he.Filters,"no_product_line_notification"),noResultsMessageForCategories:pe(e,he.Filters,"no_results_message_for_categories"),noResultsMessageForPartNumbers:pe(e,he.Filters,"no_results_message_for_part_numbers"),partNumberLabel:pe(e,he.Filters,"part_number_label"),partNumberSearchPlaceholder:pe(e,he.Filters,"part_number_search_placeholder"),partnershipLevelLabel:pe(e,he.Filters,"partnership_level_label"),partnershipLevelModalDisclaimer:pe(e,he.Filters,"partnership_level_modal_disclaimer"),partnershipLevelModalTitle:pe(e,he.Filters,"partnership_level_modal_title"),platinumPartnerDescription:pe(e,he.Filters,"platinum_partner_description"),platinumPartnerLabel:pe(e,he.Filters,"platinum_partner_label"),productCategoryDisclaimer:pe(e,he.Filters,"product_category_disclaimer"),productCategoryLabel:pe(e,he.Filters,"product_category_label"),productCategoryPlaceholder:pe(e,he.Filters,"product_category_placeholder"),productSelectedFilterLabel:pe(e,he.Filters,"product_selected_filter_label"),radiusLabel:pe(e,he.Filters,"radius_label"),rangeSelectorDisableMessage:pe(e,he.Filters,"range_selector_disable_message"),rangeSelectorPlaceholder:pe(e,he.Filters,"range_selector_placeholder"),resetFiltersButtonLabel:pe(e,he.Filters,"reset_filters_button_label"),selectedCategoryLabel:pe(e,he.Filters,"selected_category_label"),serviceAuthorizationLabel:pe(e,he.Filters,"service_authorization_label"),silverPartnerDescription:pe(e,he.Filters,"silver_partner_description"),silverPartnerLabel:pe(e,he.Filters,"silver_partner_label"),cmmFilterLabel:pe(e,he.Filters,"cmm_filter_label")},formErrorMessage:de(e,"form_error_message"),formSuccessMessage:de(e,"form_success_message"),genericErrorMessage:de(e,"generic_error_message"),locationFilterErrorMessage:de(e,"location_filter_error_message"),locationFilterNoResultsMessage:de(e,"location_filter_no_results_message"),mapErrorMessage:de(e,"map_error_message"),mapLoadingLabel:de(e,"map_loading_label"),noContactsMessage:de(e,"no_contacts_message"),reloadPageLabel:de(e,"reload_page_label"),removeLabel:de(e,"remove_label"),searchByCompanyNamePlaceholder:de(e,"search_by_company_name_placeholder"),searchLabel:de(e,"search_label"),sendMessageToLabel:de(e,"send_message_to_label"),title:de(e,"title"),types:{danfossSalesServiceCenter:pe(e,he.Types,"danfoss_sales_service_center"),distributor:pe(e,he.Types,"distributor"),factory:pe(e,he.Types,"factory"),hq:pe(e,he.Types,"hq"),salesAgent:pe(e,he.Types,"sales_agent"),salesRepresentative:pe(e,he.Types,"sales_representative"),sdFactory:pe(e,he.Types,"sd_factory"),sdHq:pe(e,he.Types,"sd_hq"),semikronDanfossSalesServiceCenter:pe(e,he.Types,"semikron_danfoss_sales_service_center"),servicePartner:pe(e,he.Types,"service_partner")},viewDetailsLabel:de(e,"view_details_label")}),me=()=>fe({});class ge{constructor(e){this.client=O._.getInstance({api_key:e.contentstackApiKey,delivery_token:e.contentstackDeliveryToken,environment:e.contentstackEnv,branch:e.contentstackBranch})}async getData(e){const t=await this.client.getTypedService().getSingletonContent({uuid:R.F.mf_contact_us,languageCode:e});return fe(t)}}class ye{constructor(e=ye.defaultLocale,t){this.dictionary=null,this.generateDictionary=async()=>
2{if(this.dataService){const e=await this.dataService.getData(this.culture);this.dictionary=e}else this.dictionary=me()},this.getDictionary=()=>this.dictionary,this.translateSegments=e=>this.dictionary?ue(e,this.dictionary.businessUnits):e,this.translateTypes=e=>this.dictionary?ue(e,this.dictionary.types):e,this.culture=e,this.dataService=t?new ge(t):null}}ye.defaultLocale="en-US";class ve{static setToken(e){this.accessToken=e}static async getCountryByCoordinates(e,t){const r=(await D.A.get(`${this.baseUrl}/${e},${t}.json`,{params:{access_token:this.accessToken,types:"country"}})).data.features;if(r.length>0){const e=r[0];return{name:e.text,code:e.properties.short_code}}return null}static async getCountryNameByCode(e){const t=(await D.A.get(`${this.baseUrl}/${e}.json`,{params:{access_token:this.accessToken,types:"country"}})).data.features;if(t.length>0){const r=t.find((t=>t.properties.short_code===e));if(r)return r.text}return null}}var _e,be,xe;ve.accessToken=null,ve.baseUrl="https://api.mapbox.com/geocoding/v5/mapbox.places",function(e){e.ClearFilters="clear_filters",e.ContactDetailsPhoneLinkClick="contactus_clicktodial",e.ContactFormAbandon="contactform_abandon",e.ContactFormError="contactform_error",e.ContactFormLoadError="contactform_load_error",e.ContactFormOpen="contactform_open",e.ContactFormSubmit="contactform_submit",e.ContactFormSuccess="contactform_success",e.ContactsListItemClick="contactlist_click",e.Filter="filter",e.FilterButtonClick="filter_button_click",e.FilterSearch="filter_search",e.FiltersApplyClick="filters_applied",e.GroupByPartnershipClick="group_by_partnership",e.LocationFilterChange="location_search",e.OutboundClick="outbound_click",e.PartnershipInfoClick="partnership_info",e.RemoveFilter="remove_filter",e.ShowOnlyContactsFromCountry="show_only_contacts_from_country",e.TabSwitch="tab_switch"}(_e||(_e={})),function(e){e.Distributor="Distributor",e.DpsDistributors="Distributors DPS",e.Pardot="Pardot",e.ProductInquiry="Product inquiry",e.SedaDistributors="Semikron Danfoss Distributors",e.ServiceCloud="Service Cloud"}(be||(be={})),function(e){e.BackendError="Back-end error",e.ValidationError="Front-end validation error"}(xe||(xe={}));const we={[L.CG.DPSDistributorsForm]:be.DpsDistributors,[L.CG.ProductInquiryForm]:be.ProductInquiry,[L.CG.DistributorForm]:be.Distributor,[L.CG.PardotForm]:be.Pardot,[L.CG.SedaDistributorsForm]:be.SedaDistributors,[L.CG.ServiceCloudForm]:be.ServiceCloud},Ae="contact us page";var Ee,Se,Te;class Ce extends(Se=s.K){}Ee=Ce,Ce.trackLocationFilterChange=e=>{const t={event:_e.LocationFilterChange,page_type:Ae,input_location:e};Reflect.get(Se,"push",Ee).call(Ee,t)},Ce.trackContactsListItemClick=e=>{const t={event:_e.ContactsListItemClick,page_type:Ae,company_name:e};Reflect.get(Se,"push",Ee).call(Ee,t)},Ce.trackContactDetailsPhoneLinkClick=e=>{const t={event:_e.ContactDetailsPhoneLinkClick,page_type:Ae,company_name:e};Reflect.get(Se,"push",Ee).call(Ee,t)},Ce.trackContactFormOpen=({companyName:e,formTitle:t,formType:r})=>{const i={event:_e.ContactFormOpen,page_type:Ae,form_name:t,form_type:we[r],company_name:e};Reflect.get(Se,"push",Ee).call(Ee,i)},Ce.trackContactFormSubmit=({companyName:e,formTitle:t,formType:r,subjectValue:i})=>{const n={event:_e.ContactFormSubmit,page_type:Ae,form_name:t,form_type:i||we[r],company_name:e};Reflect.get(Se,"push",Ee).call(Ee,n)},Ce.trackContactFormSubmitBackendError=({companyName:e,formTitle:t,formType:r,subjectValue:i})=>{const n={event:_e.ContactFormError,page_type:Ae,form_name:t,form_type:i||we[r],company_name:e,error_type:xe.BackendError};Reflect.get(Se,"push",Ee).call(Ee,n)},Ce.trackContactFormSubmitValidationError=({companyName:e,formTitle:t,formType:r,errorField:i,subjectValue:n})=>{const s={event:_e.ContactFormError,page_type:Ae,form_name:t,form_type:n||we[r],company_name:e,error_type:xe.ValidationError,error_fields:i};Reflect.get(Se,"push",Ee).call(Ee,s)},Ce.trackContactFormSubmitSuccess=({companyName:e,formTitle:t,formType:r,subjectValue:i})=>{const n={event:_e.ContactFormSuccess,page_type:Ae,form_name:t,form_type:i||we[r],company_name:e};Reflect.get(Se,"push",Ee).call(Ee,n)},Ce.trackContactFormAbandon=({companyName:e,formTitle:t,formType:r})=>{const i={event:_e.ContactFormAbandon,page_type:Ae,form_name:t,form_type:we[r],company_name:e};Reflect.get(Se,"push",Ee).call(Ee,i)},Ce.trackContactFormLoadError=({companyName:e,formTitle:t,formType:r})=>{const i={event:_e.ContactFormLoadError,page_type:Ae,form_name:t,form_type:we[r],company_name:e};Reflect.get(Se,"push",Ee).call(Ee,i)},Ce.trackContactOutboundLinkClick=e=>{const t={event:_e.OutboundClick,click_url:e};Reflect.get(Se,"push",Ee).call(Ee,t)},Ce.trackFilterSelect=({filterCategory:e,filterOptions:t})=>{const r={event:_e.Filter,page_type:Ae,filter_category:e,filter_options:t};Reflect.get(Se,"push",Ee).call(Ee,r)}
2,Ce.trackFilterRemove=({filterCategory:e,filterOptions:t})=>{const r={event:_e.RemoveFilter,page_type:Ae,filter_category:e,filter_options:t};Reflect.get(Se,"push",Ee).call(Ee,r)},Ce.trackClearFilters=()=>{const e={event:_e.ClearFilters,page_type:Ae};Reflect.get(Se,"push",Ee).call(Ee,e)},Ce.trackFilterButtonClick=()=>{const e={event:_e.FilterButtonClick,page_type:Ae};Reflect.get(Se,"push",Ee).call(Ee,e)},Ce.trackTabSwitch=e=>{const t={event:_e.TabSwitch,page_type:Ae,tab_name:e};Reflect.get(Se,"push",Ee).call(Ee,t)},Ce.trackFilterApplyClick=()=>{const e={event:_e.FiltersApplyClick,page_type:Ae};Reflect.get(Se,"push",Ee).call(Ee,e)},Ce.trackFilterSearch=e=>{const t={event:_e.FilterSearch,page_type:Ae,search_term:e};Reflect.get(Se,"push",Ee).call(Ee,t)},Ce.trackGroupByPartnershipClick=()=>{const e={event:_e.GroupByPartnershipClick,page_type:Ae};Reflect.get(Se,"push",Ee).call(Ee,e)},Ce.trackPartnershipInfoClick=()=>{const e={event:_e.PartnershipInfoClick,page_type:Ae};Reflect.get(Se,"push",Ee).call(Ee,e)},Ce.trackShowOnlyContactsFromCountry=()=>{const e={event:_e.ShowOnlyContactsFromCountry,page_type:Ae};Reflect.get(Se,"push",Ee).call(Ee,e)},function(e){e.BASE="streets-v11",e.LIGHT="light-v11",e.SATELLITE="satellite-streets-v12"}(Te||(Te={}));const Ie={neLng:-160.63671875,neLat:-60.142958464,swLng:160.63671875,swLat:70.142958464},Pe="contactslistv2/contactslistv2"==r.j?[1,1]:null;var Me;!function(e){e[e.Radius5=5]="Radius5",e[e.Radius10=10]="Radius10",e[e.Radius25=25]="Radius25",e[e.Radius50=50]="Radius50",e[e.Radius100=100]="Radius100"}(Me||(Me={}));const ke=Me.Radius50,Oe=(0,i.createContext)({segmentsOptions:[],typesOptions:[],setSegmentsOptions:o.H,setTypesOptions:o.H,setCountryFilter:o.H,onCoordinatesUpdate:o.H,typesQueryRef:{current:""},selectedRange:ke,segmentsQueryRef:{current:""},countryQueryRef:{current:""},searchQueryRef:{current:""},authorizedServicesOptions:[],currentMapCoordinatesRef:{current:Ie},productLineFilterItemRef:{current:null},userCountry:null,setUserCountry:o.H,searchCountry:null,setSearchCountry:o.H,companyName:"",setCompanyName:o.H,countryFilter:"",productLineFilterItem:null,onProductLineFilterSelect:o.H,setSelectedRange:o.H,shouldGroupByPartnership:!0,setShouldGroupByPartnership:o.H,partnershipLevelOptions:[],setPartnershipLevelOptions:o.H,partnershipLevelQueryRef:{current:""},setAuthorizedServicesOptions:o.H,authorizedServicesQueryRef:{current:""}});var Re,De,Le,Be;!function(e){e.Distributor="distributor",e.Factory="factory",e.Headquarter="hq",e.SalesAgent="sales-agent",e.SalesRepresentative="sales-representative",e.SalesServiceCenter="danfoss-sales-service-center",e.SemikronFactory="sd-factory",e.SemikronHeadquarter="sd-hq",e.SemikronSalesServiceCenter="semikron-danfoss-sales-service-center",e.ServicePartner="service-partner"}(Re||(Re={})),function(e){e.ClimateSolutionsCooling="DCS",e.ClimateSolutionsHeating="DHS",e.Drives="DDS",e.HighPressurePumps="HPP",e.PowerElectronics="PE",e.PowerSolutions="DPS",e.SensingSolutions="SEN"}(De||(De={})),function(e){e.DiamondPartner="Diamond Partner",e.ElitePartner="Elite Partner",e.GoldPartner="Gold Partner",e.PlatinumPartner="Platinum Partner",e.SilverPartner="Silver Partner"}(Le||(Le={})),function(e){e.AuthorizedServicePartner="Authorized Service Partner",e.AuthorizedWarrantyAndServiceCenter="Authorized Waranty Service Center"}(Be||(Be={}));const ze=[{value:De.ClimateSolutionsCooling,label:"Climate Solutions for cooling",isDisabled:!1,isSelected:!1},{value:De.ClimateSolutionsHeating,label:"Climate Solutions for heating",isDisabled:!1,isSelected:!1},{value:De.Drives,label:"Drives",isDisabled:!1,isSelected:!1},{value:De.HighPressurePumps,label:"High Pressure Pumps",isDisabled:!1,isSelected:!1},{value:De.PowerSolutions,label:"Power Solutions",isDisabled:!1,isSelected:!1},{value:De.SensingSolutions,label:"Sensing Solutions",isDisabled:!1,isSelected:!1},{value:De.PowerElectronics,label:"Power Electronics",isDisabled:!1,isSelected:!1}],je=[{value:Re.Factory,label:"Danfoss factories",isDisabled:!1,isSelected:!1},{value:Re.Headquarter,label:"Danfoss headquarters",isDisabled:!1,isSelected:!1},{value:Re.SalesServiceCenter,label:"Danfoss sales and services",isDisabled:!1,isSelected:!1},{value:Re.Distributor,label:"Distributors",isDisabled:!1,isSelected:!1},{value:Re.SalesAgent,label:"Sales Agents",isDisabled:!1,isSelected:!1},{value:Re.SalesRepresentative,label:"Sales Representatives",isDisabled:!1,isSelected:!1},{value:Re.ServicePartner,label:"Service partners",isDisabled:!1,isSelected:!1},{value:Re.SemikronSalesServiceCenter,label:"Semikron Danfoss Sales/Service",isDisabled:!1,isSelected:!1},{value:Re.SemikronHeadquarter,label:"Semikron Danfoss headquarter",isDisabled:!1,isSelected:!1},{value:Re.SemikronFactory,label:"Semikron Danfoss factory",isDisabled:!1,isSelected:!1}],Fe=[Le.ElitePartner,Le.DiamondPartner,Le.PlatinumPartner,Le.GoldPartner,Le.SilverPartner],Ne=[Be.AuthorizedServicePartner,Be.AuthorizedWarrantyAndServiceCenter],Ue=(e,t,r)=>{const i=[],n=r?.split(",")??[];return(e??t).forEach((e=>{const r=t.find((t=>t.value===e.value));r&&(n.includes(r.value)?i.push({...e,label:r.label,isSelected:!0}):n.length>0?i.push({...e,label:r.label,isSelected:!1}):i.push({...e,label:r.label}))})),i.length>0?i:t},Ve=e=>e.filter((e=>e.isSelected)).map((e=>e.value)).join(","),Ge=e=>e?Ve(e)||e.map((e=>e.value)).join(","):"",qe=(e,t)=>
2{const r=Ve(e),i=a.k.getSearchParamValueByKey(t);r?a.k.setSearchParam(t,r):i&&a.k.removeSearchParamByKey(t)},He=(e,t,r)=>{const i=t[r];return i&&e[i]?e[i]:r},We=e=>e.map((e=>({label:e,value:e,isDisabled:!1,isSelected:!1}))),Ye=(e,t,r)=>e.map((e=>({...e,label:He(r,t,e.label)}))),Qe=e=>e.map((e=>({value:e,isDisabled:!1,isSelected:!1}))),Ze=({types:e,segments:t,partnershipLevels:r,authorizedServices:n,children:s})=>{const o=(({partnershipLevels:e,segments:t,types:r,authorizedServices:n})=>{const{isPartnershipLevelFilterEnabled:s,isServiceAuthorizationFilterEnabled:o}=ce().featureFlags,[l,c]=(0,i.useState)(null),[u,h]=(0,i.useState)(null),[d,p]=(0,i.useState)(ke),[f,m]=(0,i.useState)(null),[g,y]=(0,i.useState)(a.k.getSearchParamValueByKey(re.Country)??""),[v,_]=(0,i.useState)(a.k.getSearchParamValueByKey(re.Company)??""),[b,x]=(0,i.useState)(!0),[w,A]=(0,i.useState)(Ue(t,ze,a.k.getSearchParamValueByKey(re.BusinessUnit))),[E,S]=(0,i.useState)(Ue(r,je,a.k.getSearchParamValueByKey(re.Type))),[T,C]=(0,i.useState)(s?Ue(Qe(e??[]),We(Fe),a.k.getSearchParamValueByKey(re.PartnerLevel)):[]),[I,P]=(0,i.useState)(o?Ue(Qe(n??[]),We(Ne),a.k.getSearchParamValueByKey(re.ServiceAuthorization)):[]),M=(0,i.useRef)(Ie),k=(0,i.useRef)(Ge(E)),O=(0,i.useRef)(Ge(w)),R=(0,i.useRef)(Ve(T)),D=(0,i.useRef)(Ve(I)),L=(0,i.useRef)(g),B=(0,i.useRef)(v),z=(0,i.useRef)(u),j=(0,i.useCallback)((e=>{M.current=e}),[]);return(0,i.useEffect)((()=>{O.current=Ge(w),k.current=Ge(E),R.current=Ve(T),D.current=Ve(I),B.current=v,L.current=g,z.current=u}),[v,g,T,u,w,I,E]),{companyName:v,countryFilter:g,currentMapCoordinatesRef:M,userCountry:l,searchCountry:f,
2segmentsOptions:w,segmentsQueryRef:O,productLineFilterItem:u,typesOptions:E,typesQueryRef:k,countryQueryRef:L,searchQueryRef:B,productLineFilterItemRef:z,shouldGroupByPartnership:b,setCompanyName:_,setCountryFilter:y,setSearchCountry:m,setSegmentsOptions:A,setTypesOptions:S,setUserCountry:c,onCoordinatesUpdate:j,onProductLineFilterSelect:h,selectedRange:d,setSelectedRange:p,setShouldGroupByPartnership:x,partnershipLevelOptions:T,setPartnershipLevelOptions:C,partnershipLevelQueryRef:R,authorizedServicesQueryRef:D,authorizedServicesOptions:I,setAuthorizedServicesOptions:P}})({types:e,segments:t,partnershipLevels:r,authorizedServices:n});return i.createElement(Oe.Provider,{value:o},s)},Xe=()=>(0,i.useContext)(Oe),Ke=new ye("en-US");Ke.generateDictionary();const Je=(0,i.createContext)({geohash:[],dictionaryService:Ke,dictionary:Ke.getDictionary(),onMapUpdate:o.H,setSelectedContactId:o.H,map:null,setMap:o.H,setIsLoading:o.H}),$e=({children:e,...t})=>{const[r,n]=(0,i.useState)(null),s=(0,i.useMemo)((()=>({...t,map:r,setMap:n})),[r,...Object.values(t)]);return i.createElement(Je.Provider,{value:s},e)},et=e=>{const{errorCode:t,message:r,statusCode:i}=e.response?.data??{},{status:n,statusText:s}=e.response;return{data:e.response?.data,message:r||s,statusCode:i||n,errorCode:t}},tt=({initialData:e,apiUrl:t="",apiRequestOptions:r,onCompleted:n,onError:s,service:o=l.Vg,getMappedData:a=t=>t.data??e,getMappedError:c=et})=>{const[u,h]=(0,i.useState)(!1),[d,p]=(0,i.useState)(e),[f,m]=(0,i.useState)(null),g=(0,i.useCallback)((async(i,l=e=>e,u)=>{try{h(!0),r??={params:{}},i?.params&&(r.params={...r.params,...i.params});const e=await o(t,r);n?.(e),p(l(a(e,u))),m((e=>e?null:e))}catch(t){const r=t;if(D.A.isCancel(r))return;s?.(r),m(((e,t)=>e.response?((e,t)=>{if(e.response.data)return t?t(e):et(e);const{status:r,statusText:i}=e.response;return{message:i,statusCode:r}})(e,t):(e=>({message:e.toJSON().message||"Error during the request",statusCode:503,errorCode:"request-error"}))(e))(r,c)),p(e)}finally{h(!1)}}),[t,r,n,a,s,c]);return{data:d,error:f,isLoading:u,fetchData:g}};var rt=ae(669),it=ae.n(rt);const nt=e=>e.data.map((({value:e,count:t})=>{const{latitude:r,longitude:i}
2=it().decode(e);return{value:e,count:t,lat:r,lng:i}})),st=(e,t)=>{const r=new Set(e.data.map((e=>e.id)));let i=[];return t&&(i=t.filter((e=>!r.has(e.id)))),i.concat(e.data).sort(((e,t)=>e.companyName.localeCompare(t.companyName)))};var ot;!function(e){e.Category="category",e.Product="product",e.ProductLine="product-line"}(ot||(ot={}));const at=(e,t)=>({id:e,type:ot.Product,productLines:t?[t]:[],label:e});var lt;!function(e){e.Cfhs="/api/cfhs"}(lt||(lt={}));const ct=({id:e,label:t,productLines:r})=>({id:e,type:ot.Category,productLines:r??[],label:t}),ut="en",ht=async({categoryItem:e,algoliaApiBaseUrl:t,isInitialUrlFilter:r,isMultiLanguageEnabled:i,portfolioApiClient:n,onApply:s,locale:o})=>{const a=e.id;let u;try{if(n){const t=await n.cfhById({id:a},(0,c.t)({locale:i?o:ut})),s=t?.cfhById;u={...e,productLines:s?.productLines||[],...r&&{label:s?.name||a}}}else{const{productLines:r}=await(async(e,t)=>(await(0,l.Vg)(`${lt.Cfhs}/${t}/product-lines`,{baseURL:e})).data)(t,a);u={...e,productLines:r}}}catch{u={...e,productLines:[]}}s(r?ct(u):u)},dt=[j.Rr.ReadUserCustomerIds],pt=e=>{const{getAccessToken:t}=(0,F.n)({apiAudience:j.T9.SecuredKeysApi,apiScope:dt,auth0BaseUrl:e});return t},ft=(e,t)=>{const r=[...e.entries()];for(const[e,i]of r)if(t.includes(e))return{key:e,value:i};return null},mt=()=>{const e=a.k.getUrl();return e?e?.searchParams:new URLSearchParams},gt=(e,t,r)=>{const{searchBusinessSegment:n,partNumberUrlParamKey:s,categoryIdUrlParamKey:o,productLineIdUrlParamKey:l,featureFlags:{isDistributorsLayout:h,isMultiLanguageEnabled:d},isUserLoggedIn:p,auth0BaseUrl:f,locale:m}=ce(),{onProductLineFilterSelect:g}=Xe(),y=pt(f),v=(0,i.useCallback)((async e=>{const t=p?await y():void 0,i=await(r?.productById({id:e},(0,c.t)({locale:ut,authorizationToken:t}
2))),n=i?.productById;g(n?.id?at(n.id,n.productLineName??void 0):at(e))}),[y,p,g,r]),_=(0,i.useCallback)((async e=>{try{await ht({algoliaApiBaseUrl:"",isInitialUrlFilter:!0,isMultiLanguageEnabled:d,locale:m,portfolioApiClient:r,categoryItem:{id:e},onApply:g})}catch{g(null)}}),[g,r,m,d]),b=(0,i.useCallback)((async()=>{const r=(e=>{const t=mt(),r=ft(t,e);return r&&((e,t,r,i)=>{for(const t of i)e.delete(t);e.set(t,r),a.k.changeSearchParamsWithReplaceState(e,{...history.state})})(t,r.key,r.value,e),r})([o,s,l]);if(!r?.value)return g(null),void e(!1);if(r?.key===l)return g({id:i=r.value,type:ot.ProductLine,productLines:[i],label:i}),void(t.current||e(!1));var i;if(r&&h&&n){e(!0);try{const e=r.key===o;await(e?_(r.value):v(r.value))}catch(e){console.error("Error during initial product line selection occurred:",e)}finally{t.current||e(!1)}}}),[s,o,l,h,n,g,e,_,v,t]);(0,u.E)(b),(0,i.useEffect)((()=>(globalThis.addEventListener("popstate",b),()=>{globalThis.removeEventListener("popstate",b)})),[b])};function yt(){return(0,i.useContext)(Je)}const vt={enableHighAccuracy:!0,timeout:5e3,maximumAge:3e5};class _t{static initGeolocationPosition(e,t){navigator?.geolocation?navigator.geolocation.getCurrentPosition((t=>{const r=t.coords.latitude,i=t.coords.longitude;this.geoPosition={lat:r,lng:i},e()}),(e=>{const r=1!==e.code;t(r)}),vt):t(!0)}static getGeolocationPosition(){return this.geoPosition}}var bt,xt,wt,At,Et,St,Tt,Ct;_t.geoPosition=null,function(e){e.BoundsChange="bounds-change",e.GeolocationServiceError="geolocation-service-error",e.LocationFilterChange="location-filter-change",e.MapError="map-error",e.MapReady="map-ready",e.SelectedContactChanged="selected-contact-change",e.ViewDetailsClick="view-details-click"}(bt||(bt={})),function(e){e.List="contact-list",e.Map="map",e.Url="url"}(xt||(xt={})),function(e){e.Error="error",e.Loaded="loaded"}(wt||(wt={}));class It{dispatchSelectedContactChangedEvent(e,t,r){const i={contact:t,triggerType:e,index:r};this.dispatchMapEvent(bt.SelectedContactChanged,i)}dispatchViewDetailsClickEvent(e){this.dispatchMapEvent(bt.ViewDetailsClick,e)}dispatchGeolocationServiceErrorEvent(){this.dispatchMapEvent(bt.GeolocationServiceError)}setMapboxMarkerHandlers(e){this.mapboxHighlightContactDetails=e}setContactDetailsClose(e){this.contactDetailsClose=e}dispatchContactDetailsClose(){this.contactDetailsClose&&this.contactDetailsClose()}dispatchMapboxMapEvent({contact:e,zoom:t}){this.mapboxHighlightContactDetails&&this.mapboxHighlightContactDetails({contact:e,zoom:t})}dispatchMapEvent(e,t){const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)}}It.globalCulture="en",function(e){e.AfterResolverType="AFTER_RESOLVER",e.BeforeResolverType="BEFORE_RESOLVER",e.ValidationType="VALIDATION"}(At||(At={})),function(e){e.ApprovalType="APPROVAL",e.AssetTypeType="ASSET_TYPE",e.CompanyTypeType="COMPANY_TYPE",e.CountryType="COUNTRY",e.DocumentType="DOCUMENT",e.DrawingType="DRAWING",e.OrganizationChannelType="ORGANIZATION_CHANNEL",e.PhotoType="PHOTO",e.ProductTypeType="PRODUCT_TYPE",e.PublicationChannelType="PUBLICATION_CHANNEL",e.RegionRelevanceType="REGION_RELEVANCE",e.SoftwareType="SOFTWARE",e.VideoType="VIDEO"}(Et||(Et={})),function(e){e.CustomerSpecificType="CUSTOMER_SPECIFIC",e.EmptyType="EMPTY",e.InternalType="INTERNAL",e.PublicType="PUBLIC"}(St||(St={})),function(e){e.ArchivedType="ARCHIVED",e.PublishedType="PUBLISHED"}(Tt||(Tt={})),function(e){e.ArchivedType="ARCHIVED",e.PublishedType="PUBLISHED"}(Ct||(Ct={}));const Pt=V.Ay` 3 query cfhById($id: String!) { 4 cfhById(id: $id) { 5 id 6 name 7 productLines 8 } 9 } 10`,Mt=V.Ay` 11 query productById($id: String!) { 12 productById(id: $id) { 13 id 14 productLineName 15 } 16 } 17`,kt=V.Ay` 18 query productsById($ids: [String!]!) { 19 productsById(ids: $ids) { 20 id 21 } 22 } 23`,Ot=(e,t,r,i)=>e(),Rt="li6gIhcbLrhTsyw6Ljb4",Dt=(e,t)=>e.some((({value:e})=>e===t.value)),Lt=({contentType:e,isVisible:t=!0,options:r,onChange:n,className:s,testIdPrefix:o,searchParamName:l,cleanLabel:c})=>{const u=(0,i.useCallback)((e=>{n((t=>t.map((t=>({...t,isSelected:Dt(e,t)})))));const t=e.map((({value:e})=>e)).join(",");t?a.k.setSearchParam(l,t):a.k.removeSearchParamByKey(l)}),[n,l]),h=(0,i.useCallback)((e=>Boolean(e.isSelected)),[]),p=(0,i.useCallback)((e=>u(e.detail.value)),[u]),f=(0,i.useMemo)((()=>r.filter((e=>h(e)))),[h,r]),m=(0,i.useMemo)((()=>(e=>[...e].sort(((e,t)=>t.isSelected-e.isSelected||e.label.localeCompare(t.label))))(r)),[r]);return t?i.createElement("div",{className:(0,B.A)(G.A.mb6,G.A.fullWidth,"Ku2eOirDTeNPPpE3jH31",Rt,s)},i.createElement(z.DfSelect,{options:m,placeholder:e,inputLabel:e,isMulti:!0,isClearable:!0,value:f,isOptionSelected:h,onSelectChange:p,cleanLabel:c,"data-testid":(0,d.A)("dropdown",o)})):null},Bt=(e,t)=>
23{const r=e=>e*(Math.PI/180),i=r(t.lat-e.lat),n=r(t.lng-e.lng),s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(r(e.lat))*Math.cos(r(t.lat))*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371},zt="contactslistv2/contactslistv2"==r.j?["us","gb"]:null;var jt,Ft,Nt;!function(e){e.ElitePartner="Elite Partner",e.DiamondPartner="Diamond Partner",e.PlatinumPartner="Platinum Partner",e.GoldPartner="Gold Partner",e.SilverPartner="Silver Partner"}(jt||(jt={})),function(e){e.ElitePartner="elitePartnerDescription",e.PlatinumPartner="platinumPartnerDescription",e.DiamondPartner="diamondPartnerDescription",e.GoldPartner="goldPartnerDescription",e.SilverPartner="silverPartnerDescription"}(Ft||(Ft={})),function(e){e.DiamondPartner="diamondPartnerLabel",e.ElitePartner="elitePartnerLabel",e.GoldPartner="goldPartnerLabel",e.PlatinumPartner="platinumPartnerLabel",e.SilverPartner="silverPartnerLabel"}(Nt||(Nt={}));const Ut="M20.5 17h-17l2-4h13z",Vt="M17.5 11h-11l2-4h7z",Gt="M14.5 5h-5L12 0z",qt={1:"",2:`${Ut}`,3:`${Ut}${Vt}`,4:`${Ut}${Vt}${Gt}`},Ht={1:`${Ut}${Vt}${Gt}`,2:`${Vt}${Gt}`,3:`${Gt}`,4:""},Wt={[jt.SilverPartner]:{badgeLevel:"1",mainPath:qt[1],overlayPath:Ht[1]},[jt.GoldPartner]:{badgeLevel:"2",mainPath:qt[2],overlayPath:Ht[2]},[jt.PlatinumPartner]:{badgeLevel:"3",mainPath:qt[3],overlayPath:Ht[3]},[jt.DiamondPartner]:{badgeLevel:"3",mainPath:qt[4],overlayPath:Ht[4]},[jt.ElitePartner]:{badgeLevel:"4",mainPath:qt[4],overlayPath:Ht[4]}},Yt={[jt.SilverPartner]:Ft.SilverPartner,[jt.GoldPartner]:Ft.GoldPartner,[jt.PlatinumPartner]:Ft.PlatinumPartner,[jt.DiamondPartner]:Ft.DiamondPartner,[jt.ElitePartner]:Ft.ElitePartner},Qt={[jt.SilverPartner]:Nt.SilverPartner,[jt.GoldPartner]:Nt.GoldPartner,[jt.PlatinumPartner]:Nt.PlatinumPartner,[jt.DiamondPartner]:Nt.DiamondPartner,[jt.ElitePartner]:Nt.ElitePartner},Zt=Object.values(jt),Xt=(e,t)=>Math.round(zt.includes(e)?(e=>.62137*e)(t):t),Kt=(e,t,r)=>{if(r){const i=[];return e.forEach((e=>{let n;e.coordinates&&(n=Bt({lat:r.lat,lng:r.lng},{lat:e.coordinates[1],lng:e.coordinates[0]})),i.push({...e,distance:n?Xt(t,n):void 0})})),i.sort(((e,t)=>void 0!==e.distance&&void 0!==t.distance?e.distance-t.distance:0)),i}return e},Jt=(e,t,r,i="")=>{if(void 0!==e){const n=((e,t,r)=>zt.includes(r)?t:e)(t,r,i),s=(e=>0===e?"<1":e)(e);return`${s} ${n}`}},$t=e=>{e.dispatchContactDetailsClose(),a.k.removeSearchParamByKey(re.ContactId)},er=e=>{e.dispatchContactDetailsClose(),a.k.removeSearchParamWithReplaceState(re.ContactId)},tr=e=>{const t=Zt.length,r=Zt.map((e=>e.toLowerCase()));if(!e)return t;const i=e.toLowerCase(),n=r.indexOf(i);return-1===n?t:n},rr=({mapService:e})=>{const{dictionaryService:t}=yt(),{companyName:r,setCompanyName:n}=Xe(),{searchByCompanyNamePlaceholder:s,clearCompanyFilterLabel:o}=t.getDictionary(),l=(0,i.useCallback)((t=>{const{value:r}=t.detail;n(r),Ce.trackFilterSelect({filterCategory:s,filterOptions:r}),r?($t(e),a.k.setSearchParam(re.Company,r)):a.k.removeSearchParamByKey(re.Company)}),[e,n,s]),c=(0,i.useCallback)((()=>{Ce.trackFilterRemove({filterCategory:s,filterOptions:r}),n(""),a.k.removeSearchParamByKey(re.Company)}),[n,r,s]),u=(0,i.useCallback)((t=>{if(t.detail.key!==q.iB.Enter)return;const r=t.detail.target;n(r.value),Ce.trackFilterSelect({filterCategory:s,filterOptions:r.value}),r.value?($t(e),a.k.setSearchParam(re.Company,r.value)):a.k.removeSearchParamByKey(re.Company)}),[e,n,s]);return i.createElement("div",{className:(0,B.A)(Rt,G.A.mb6)},i.createElement(z.DfSearchInput,{initialValue:r,inputProps:{placeholder:s},onSearchInputSearch:l,onSearchInputClean:c,onSearchInputKeyDown:u,cleanLabel:o,growOnTablet:!1}))},ir=({mapService:e})=>{const{isSearchByCompanyNameVisible:t}=ce().featureFlags;return t?i.createElement(rr,{mapService:e}):null},nr='[data-status="active"]';var sr,or,ar;function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},lr.apply(null,arguments)}!function(e){e.ContactsApiError="contacts-api-error",e.EmptyListError="empty-list-error",e.MapApiError="map-api-error"}(sr||(sr={})),function(e){e.ApiError="api-error",e.GeolocationServiceError="geolocation-service-error"}(or||(or={}));const cr=function(e){return(0,i.createElement)("svg",lr({xmlns:"http://www.w3.org/2000/svg",className:"close-outline_svg__df-icon",viewBox:"0 0 24 24"},e),ar||(ar=(0,i.createElement)("path",{d:"M6.4 18.654 5.346 17.6l5.6-5.6-5.6-5.6L6.4 5.346l5.6 5.6 5.6-5.6L18.654 6.4l-5.6 5.6 5.6 5.6-1.054 1.054-5.6-5.6z"})))};var ur;!function(e){e[e.Phone=0]="Phone",e[e.Fax=1]="Fax",e[e.Link=2]="Link",e[e.DistributionTerritories=3]="DistributionTerritories"}(ur||(ur={}));const hr=(e,t)=>
23{const r=je.find((t=>t.value===e))?.value.toLowerCase().replace(/(-\w)/g,(e=>e[1].toUpperCase()));return r?t[r]:""};var dr;!function(e){e.GenericError="generic-error",e.SubmitError="submit-error",e.SubmitSuccess="submit-success"}(dr||(dr={}));const pr={danfossSegment:"DRIVES",reason:"PRODUCT_PRICE",sharingSegment:"SEMIKRON_DANFOSS"},fr={[Re.SemikronFactory]:pr,[Re.SemikronHeadquarter]:pr,[Re.SemikronSalesServiceCenter]:pr},mr=(e,t)=>{if(e===L.CG.ProductInquiryForm)return t?.[1]?.value},gr=(0,B.A)(G.A.linkText,G.A.breakWord),yr=(e,t,r)=>{if(t)switch(e){case ur.Phone:case ur.Fax:{const e=r?.phoneFieldProps?.anchorProps;return(0,p.Sx)(t,gr,e)}case ur.Link:{const e=r?.linkFieldProps?.anchorProps;return(0,p.Go)(t,gr,e)}case ur.DistributionTerritories:return t.reduce(((e,{name:t})=>(t&&e.push(t),e)),[]).join(", ");default:return t}};var vr,_r;!function(e){e.AuthorizedServicePartner="Authorized Service Partner",e.AuthorizedWarrantyServiceCenter="Authorized Waranty Service Center"}(vr||(vr={})),function(e){e.AuthorizedServicePartner="authorizedServicePartnerLabel",e.AuthorizedWarrantyServiceCenter="authorizedWarrantyServiceCenterLabel"}(_r||(_r={}));const br={[vr.AuthorizedServicePartner]:_r.AuthorizedServicePartner,[vr.AuthorizedWarrantyServiceCenter]:_r.AuthorizedWarrantyServiceCenter},xr=(e,t,r)=>{const{filters:n}=yt().dictionary;return{mappedServices:(0,i.useMemo)((()=>((e,t)=>e.map((e=>He(t,br,e))))(r?t:e,n)),[t,n,r,e]),isListView:r}},wr=({companyName:e,companyCountryCode:t,contactType:r,contactId:n,onFormClose:s,formTitle:o,loaderTestId:a,formMessageTestId:l,formType:c})=>{const{dictionaryService:u,sourceChannel:h}=yt(),{remoteAppConfig:{formServiceApiUrl:d},locale:p}=ce(),m=u.getDictionary(),[g,y]=(0,i.useState)(null),[v,_]=(0,i.useState)(!0),[b,x]=(0,i.useState)(!1),[w,A]=(0,i.useState)(!1),E=(0,i.useMemo)((()=>v&&!g),[v,g]),S=(0,i.useMemo)((()=>((e,t,r,i,n)=>{const s=e?fr[e]:{};return{contactId:t,contactName:r,sourceChannel:i,emailWebsiteUrl:"undefined"!=typeof globalThis&&globalThis.location?.origin?globalThis.location.origin:"https://www.danfoss.com/en/",companyCountryCode:n,...s}})(r,n,e,h,t)),[r,n,e,h,t]),T=(0,i.useMemo)((()=>{const e={[dr.SubmitSuccess]:m.formSuccessMessage,[dr.SubmitError]:m.formErrorMessage,[dr.GenericError]:m.genericErrorMessage,default:m.genericErrorMessage};return(0,f.V_)(e)}),[m.formErrorMessage,m.formSuccessMessage,m.genericErrorMessage]),C=(0,i.useCallback)((e=>T(e)),[T]),I=(0,i.useCallback)((()=>{_(!1)}),[]),P=(0,i.useCallback)((t=>{y(dr.SubmitSuccess),x(!0),Ce.trackContactFormSubmitSuccess({companyName:e,formType:c,formTitle:o,subjectValue:mr(c,t)})}),[e,o,c]),M=(0,i.useCallback)(((t,r)=>{y(dr.SubmitError),x(!0),Ce.trackContactFormSubmitBackendError({companyName:e,formType:c,formTitle:o,subjectValue:mr(c,r)})}),[e,o,c]),k=(0,i.useCallback)(((t,r,i)=>{const n=mr(c,i);for(const r of t)Ce.trackContactFormSubmitValidationError({companyName:e,errorField:r.name,formType:c,formTitle:o,subjectValue:n})}),[e,o,c]),O=(0,i.useCallback)((t=>{const r=t.target,i=Array.from(r.elements??[]).find((e=>e instanceof HTMLInputElement&&"Subject"===e.name&&"hidden"===e.type)),n=c===L.CG.ProductInquiryForm?i?.value:void 0;Ce.trackContactFormSubmit({companyName:e,formType:c,formTitle:o,subjectValue:n})}),[e,o,c]),R=(0,i.useCallback)((()=>{y(dr.GenericError),A(!0),Ce.trackContactFormLoadError({companyName:e,formType:c,formTitle:o})}),[e,o,c]),D=(0,i.useCallback)((()=>{s(),y(null),b||w||Ce.trackContactFormAbandon({companyName:e,formTitle:o,formType:c})}),[e,o,c,w,b,s]);return(0,i.useEffect)((()=>(globalThis.addEventListener("modalClose",D),()=>{globalThis.removeEventListener("modalClose",D)})),[D]),(0,i.useEffect)((()=>{Ce.trackContactFormOpen({companyName:e,formType:c,formTitle:o})}),[e,o,c]),i.createElement(i.Fragment,null,E&&i.createElement(z.DfLoader,{isTransparent:!0,"data-testid":a}),g?i.createElement("p",{"data-testid":l},C(g)):i.createElement(L.lV,{fieldComponentMap:W.G,culture:p,formAlias:c,additionalFormData:S,isPopup:!0,apiDomain:d,onFormLoadSuccess:I,onSuccess:P,onGenericError:M,onFormLoadFailure:R,onFormSubmit:O,onValidationError:k}))},Ar=({isOpened:e,companyName:t,companyCountryCode:r,contactType:n,contactId:s,formTitlePrefix:o,onFormClose:a,modalTestId:l,loaderTestId:c,formType:u})=>{const h=(0,i.useMemo)((()=>`${o} ${t??""}`),[o,t]);return i.createElement(m.x,{isOpen:e,heading:h,onModalClose:a,isBodyOverflow:!1,closeOnBackdropClick:!1,modalAriaLabel:"Contact form pop-up opened",modalId:"contact-form-modal",contentClassName:"R1
23QlqjGbEmIv2xCSfJql",testIdPrefix:l},i.createElement(wr,{companyName:t,contactType:n,companyCountryCode:r,contactId:s,onFormClose:a,formTitle:h,formType:u,loaderTestId:c}))},Er=({label:e,value:t,testIdPrefix:r})=>t?i.createElement("div",{className:"qCS2zaO_pkyuLDtnTRHz"},i.createElement("div",{className:(0,B.A)("QNOw2SLP8D_aTl3MWBws","qnAPdfIZgiFSL7Un_rep")},i.createElement("p",{className:G.A.textStrong,"data-testid":(0,d.A)("label",r)},e)),i.createElement("div",{className:(0,B.A)("MaKFlDdQZF8HuhPJ6Bwu","EK4zEdPHpOnlOaqPg9dS"),"data-testid":(0,d.A)("value",r)},t)):null,Sr=({coordinates:e,label:t})=>{const r=`http://api.map.baidu.com/geocoder?location=${e[1]},${e[0]}&output=html&src=webapp.danfoss.contact-us`;return i.createElement("a",{className:(0,B.A)(G.A.buttonLinkSecondary,G.A.external,"wNhPeWcqHUUCgCeJWgLR"),href:r,target:"_blank",rel:"noreferrer"},t)},Tr=({badgeLevel:e,mainPath:t,overlayPath:r,dataTestId:n,className:s,size:o})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none","data-testid":n,className:s},i.createElement("g",{fill:"4"===e?"#E2000F":"",clipPath:`pyramid_${e}_svg__a`},i.createElement("path",{fill:"4"===e?"":"#E2000F",d:`M24 24H0l2.5-5h19z${t}`}),"4"!==e&&i.createElement("path",{fill:"#B4BCC3",d:`${r}`})),i.createElement("defs",null,i.createElement("clipPath",{id:`pyramid_${e}_svg__a`},i.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),Cr=({levelLabel:e,className:t,size:r=24})=>{if(!e||!Wt[e])return null;const{badgeLevel:n,mainPath:s,overlayPath:o}=Wt[e];return i.createElement(Tr,{badgeLevel:n,dataTestId:"partnership-badge",className:t,mainPath:s,overlayPath:o,size:r})},Ir=(e,t)=>!(!e||!t)&&t&&Boolean(e),Pr=({services:e,isListView:t,valueClassName:r})=>0===e.length?null:t&&e.length>1?i.createElement("ul",{className:(0,B.A)("zuifeY22_cswsqNjg4zl"),"data-testid":"contact-services-list"},e.map((e=>i.createElement("li",{key:e,"data-testid":"contact-services-list-item"},e)))):i.createElement("span",{className:r,"data-testid":"contact-services-string"},e.join(", ")),Mr=({services:e,servicesLabel:t,isListView:r})=>{const n=(0,i.useMemo)((()=>i.createElement(Pr,{services:e,isListView:r})),[r,e]);return i.createElement(Er,{label:t,value:n,testIdPrefix:"services"})},kr=({id:e,companyName:t,address:r,city:n,zipCode:s,email:o,countryName:a,countryCode:l,regionName:c,onClose:h,phoneNumbers:f=[],segments:m=[],services:_=[],authorizedServices:b=[],partnershipLevel:x,type:w,website:A,saleChannels:E,distance:S,coordinates:T,isGeolocationEnabled:C,testIdPrefix:I,isBusinessUnitValueVisible:P=!0,localizedCompanyName:M,localizedAddress:k,localizedCity:O,localizedRegion:R,baiduCoordinates:D,isContactUsBadgesEnabled:z})=>{const{dictionary:j}=yt(),{userCountry:F}=Xe(),{locale:N}=ce(),{distanceUnitLabel:U,distanceUnitMiLabel:V,contactDetails:{addressLabel:W,typeLabel:Y,businessUnitLabel:Q,servicesLabel:Z,websiteLabel:X,saleChannelsLabel:K,customerServiceLabel:J,receptionLabel:$,technicalSupp
23ortLabel:ee,contactFormLabel:te,distanceLabel:re,baiduMapLabel:ie,closeIconLabel:ne},filters:se,sendMessageToLabel:oe,businessUnits:ae,types:le}=j,ue=(0,i.useMemo)((()=>(0,g.i)({address:r,city:n,countryCode:l,countryName:a,regionName:c,zipCode:s})),[r,n,l,a,c,s]),he=l===N?.split("-")[1],de=(0,i.useCallback)((()=>(({localizedCity:e,city:t,zipCode:r,localizedAddress:i,address:n,localizedRegion:s,regionName:o,countryName:a})=>{const l=e?`${e}`:`${t??""} ${r??""}`,c=s??o??"";return[(i??n??"").trim(),l.trim(),c.trim(),a].filter(Boolean).join(", ").trim()})({localizedCity:O,city:n,zipCode:s,localizedAddress:k,address:r,localizedRegion:R,regionName:c,countryName:a})),[r,n,a,k,O,R,c,s]),pe=he?de():ue,fe=he?M??t:t,me="CN"===l,ge=(0,i.useMemo)((()=>Ir(x,z)),[z,x]),{mappedServices:ye,isListView:ve}=xr(_,b,z),_e=(0,i.useMemo)((()=>({customerServiceLabel:J,receptionLabel:$,technicalServiceLabel:ee})),[J,$,ee]),be=(0,i.useMemo)((()=>{const e=((e,t,r,i="")=>void 0!==e?e:t&&r?((e,t,r="")=>{if(t){const i=Bt(e,t);return Xt(r,i)}})({lat:r[1],lng:r[0]},_t.getGeolocationPosition(),i):void 0)(S,C,T,F?.code);return Jt(e,U,V,F?.code)}),[T,S,U,V,C,F?.code]),xe=(0,i.useMemo)((()=>{return(e=m.map((e=>ae[e.toLowerCase()])),[...e].sort(((e,t)=>e.localeCompare(t)))).join(", ");var e}),[ae,m]),we=(0,i.useMemo)((()=>hr(w,le)),[w,le]),Ae=(0,i.useMemo)((()=>E&&E.length>0?(e=>e.map((e=>e.split(" - ").at(-1)??"")).join(", "))(E):null),[E]),{onEnter:Ee,onExit:Se,isVisible:Te,isMounted:Ie}=(0,y.K)(150),Pe=(0,i.useCallback)((()=>{Ee(),(0,v.Ip)()}),[Ee]),Me=(0,i.useCallback)((()=>{Se(),(0,v.PL)()}),[Se]),ke=(0,i.useRef)(null);(0,u.E)((()=>{ke.current?.focus()}));const Oe=(0,i.useCallback)((e=>{Te||e.key!==q.iB.Escape||h()}),[Te,h]),Re=(0,i.useCallback)((()=>Ce.trackContactDetailsPhoneLinkClick(t)),[t]),De=(0,i.useCallback)((e=>{e.key!==q.iB.Enter&&e.key!==q.iB.Space||Ce.trackContactDetailsPhoneLinkClick(t)}),[t]),Le=(0,i.useMemo)((()=>({phoneFieldProps:{anchorProps:{onClick:Re,onKeyDown:De,"data-testid":(0,d.A)("phone-link",I)}}})),[Re,De,I]),Be=(0,i.useCallback)((e=>{e&&Ce.trackContactOutboundLinkClick(e)}),[]),ze=(0,i.useMemo)((()=>({linkFieldProps:{anchorProps:{onClick:e=>Be(e.currentTarget.href),"data-testid":(0,d.A)("website-link",I)}}})),[Be,I]),je=(0,i.useMemo)((()=>(0,L.n4)({contactType:w,country:l,email:o,segments:m})),[l,o,m,w]);return i.createElement("div",{ref:ke,className:(0,B.A)("KZ8vmqBMzxR2JquO_NCe","TRr_1zv7L5Xe7qXzZUxg"),"data-testid":"contact-details",tabIndex:-1,role:"dialog",onKeyDown:Oe,"aria-label":"Contact details dialog"},i.createElement("div",{className:(0,B.A)("aTxnctRb6Ny9jqZnZshp",G.A.fullHeight)},i.createElement("button",{className:"f13mwVgtno6RKiO0Sz_T",title:ne,onClick:h,"data-testid":"close-view-details"},i.createElement(cr,{className:(0,B.A)(G.A.icon)})),i.createElement("h4",null,fe),ge&&i.createElement("div",{className:(0,B.A)(G.A.flex,G.A.mt6,G.A.alignCenter,G.A.p3,"yHB8oVIi0uCJu2lfe_fb")},i.createElement(Cr,{levelLabel:x,className:(0,B.A)(G.A.mr2),size:28}),i.createElement("h5",null,He(se,Qt,x))),i.createElement("div",{className:"By0brGrPMuZG2tRN5jf_"},be?i.createElement(Er,{label:re,value:be,testIdPrefix:"distance"}):null,we&&i.createElement(Er,{label:Y,value:we,testIdPrefix:"type"}),P&&i.createElement(Er,{label:Q,value:xe,testIdPrefix:"business-unit"}),i.createElement(Er,{testIdPrefix:"address",label:W,value:i.createElement(i.Fragment,null,pe,me&&D&&D.length>0&&i.createElement("div",{className:G.A.pt2},i.createElement(Sr,{coordinates:D,label:ie,"data-testid":(0,d.A)("baidu-map-link",I)})))}),f.map((({description:e,number:t})=>i.createElement(Er,{key:e,label:(0,p.aS)(e,_e),value:yr(ur.Phone,t,Le),testIdPrefix:"reception"}))),ye.length>0&&i.createElement(Mr,{services:ye,isListView:ve,servicesLabel:Z}),i.createElement(Er,{label:X,value:yr(ur.Link,A,ze),testIdPrefix:"website"}),Ae&&i.createElement(Er,{label:K,value:Ae,testIdPrefix:"sale-channels"})),je&&i.createElement("button",{className:G.A.btnPrimary,onClick:Pe,"data-testid":(0,d.A)("contact-form",I),"aria-label":"Contact form"},te),Ie&&(0,H.createPortal)(i.createElement(Ar,{companyName:t,companyCountryCode:l,contactType:w,formType:je,contactId:e,formTitlePrefix:oe,isOpened:Te,onFormClose:Me}),document.body)))},Or=({levelLabel:e})=>{const{filters:t}=yt().dictionary;return i.createElement("label",{"data-testid":"partnership-tag",className:(0,B.A)("b2AJjG3TAtvY3Yhr26Qd")},He(t,Qt,e))},Rr={safariContactCard:"D9yB4TaIc7WJ0AlABZwT","#":"YX1pXXzXHxiKo3uP8ym8",contactCardTile:"XfbSEO7Ppi6XsUqccEMb",activeTile:"WwctdSl7ejEp9QSuWEM7",contactCard:"kceefGB1ezlVUxFCeUJW",contactTileLeftColumn:"VkrHKdyAtuAREfDdoQxN",contactTileRightColumn:"RRo2FC2LJjmuvDjG_U7j",contactTileColumnSpacing:"jK472ps5s8i8HGJEQBoC",contactTile:"ImDudU8pE48VtvYTX_Aq",contactTileDistance:"r_nJCpiwUATpI5KFagPi",contactTileLink:"i5oEjO4DRFfBZKLRl5Pt",tooltip:"aiTeiELndwE7pJ2YBXj8","spin-animation":"mI5CfBMDkdcKwBuiRDEQ","ball-beat-animation":"Z0dtHlUexZEX_IsH488l","hide-scroll-animation":"AEpcNn6pupFpAHYpyRMK"},Dr=({title:e,services:t,distanceFromUser:r,viewDetailsTestId:n,isActive:s,onTileClick:o,onViewDetailsClick:a,testIdPrefix:l,isContactUsBadgesEnabled:c,partnershipLevel:u,authorizedServices:h,isTypeVisible:p,type:f})=>{const{dictionary:m}=yt(),{userCountry:g}=Xe(),{distanceUnitLabel:y,distanceUnitMiLabel:v,viewDetailsLabel:_,contactDetails:{typeLabel:b,servicesLabel:x},types:w}=m,A=(0,i.useMemo)((()=>(()=>{const e=window.navigator.userAgent;return{isSafari:/^((?!chrome|android).)*safari/i.test(e)}})().isSafari),[]),E=(0,i.useMemo)((()=>Ir(u,c)),[c,u]),{mappedServices:S,isListView:T}=xr(t,h,c),C=(0,i.useMemo)((()=>
23{if(f&&p)return hr(f,w)}),[p,f,w]),I=(0,i.useMemo)((()=>Jt(r,y,v,g?.code)),[r,y,v,g?.code]),P=(0,i.useCallback)((e=>{e.key!==q.iB.Space&&e.key!==q.iB.Enter||(e.preventDefault(),o())}),[o]),M=(0,i.useCallback)((e=>{e.key!==q.iB.Space&&e.key!==q.iB.Enter||(e.preventDefault(),a())}),[a]);return i.createElement("li",{className:(0,B.A)(Rr.contactCardTile,{[Rr.contactCard]:!A},{[Rr.safariContactCard]:A},{[Rr.activeTile]:s}),tabIndex:0,onClick:o,onKeyDown:P,"data-testid":"contact-tile-wrapper","data-status":s?"active":"inactive"},i.createElement("div",{className:(0,B.A)(Rr.contactTile,G.A.flex,G.A.flexWrap,G.A.flexBetween,G.A.linkText)},i.createElement("div",{className:(0,B.A)(Rr.contactTileLeftColumn,G.A.pr2,{[Rr.contactTileColumnSpacing]:E})},E&&i.createElement(Or,{levelLabel:u}),i.createElement("h5",null,e),C&&i.createElement("p",{className:G.A.mt2,"data-testid":"contact-tile-type"},i.createElement("span",{className:G.A.textStrong},`${b}: `),C),S.length>0&&i.createElement("div",{className:G.A.mt2},p&&i.createElement("span",{className:G.A.textStrong,"data-testid":"contact-tile-services-label"},`${x}: `),i.createElement(Pr,{services:S,isListView:!p&&T}))),i.createElement("div",{className:(0,B.A)(Rr.contactTileRightColumn,{[Rr.contactTileColumnSpacing]:E,[G.A.flexBetween]:E})},I&&i.createElement("p",{className:(0,B.A)(Rr.contactTileDistance),"data-testid":"contact-tile-distance"},I),i.createElement("button",{className:(0,B.A)(Rr.contactTileLink,G.A.linkPrimary,G.A.btnTransparent),"aria-label":`View details for ${e} contact`,onClick:e=>{e.stopPropagation(),a()},onKeyDown:M,"data-testid":n},_),E&&i.createElement(z.DfTooltip,{className:(0,B.A)(Rr.info),trigger:"hover",placement:"right","data-testid":(0,d.A)("tooltip-info",l)},i.createElement("span",{className:(0,B.A)(G.A.icon),slot:"tooltip-reference","aria-label":"Display right tooltip on hover"},i.createElement(Cr,{levelLabel:u})),i.createElement("span",{slot:"tooltip-content","data-testid":(0,d.A)("tooltip-info-content",l)},u)))),i.createElement("div",{className:G.A.screenReaderOnly},"Press enter to see highlighted contact on the map"))},Lr=({isLoading:e,messageType:t,noContactsLabel:r,genericErrorMessage:n})=>{const s=(0,i.useMemo)((()=>{const e={[sr.EmptyListError]:r,[sr.ContactsApiError]:n,default:null};return(0,f.V_)(e)}),[n,r]),o=(0,i.useCallback)((e=>s(e)),[s]),a=(0,i.useMemo)((()=>t?o(t):null),[o,t]);return(0,i.useMemo)((()=>!e&&Boolean(a)),[e,a])?i.createElement("div",{className:"dAllUKyxxwpkBNtFPcys","data-testid":"contacts-list-message"},i.createElement("p",{className:G.A.textSemibold},a)):null},Br=({contacts:e,onContactViewDetailsClick:t,onContactItemClick:r,isLoading:n,isGeolocationEnabled:s,selectedContactId:o,listMessageType:a,testIdPrefix:l,isContactUsBadgesEnabled:c})=>{const{dictionary:u}=yt(),{userCountry:h,shouldGroupByPartnership:p}=Xe(),{locale:f,featureFlags:{isDistributorsLayout:m,isGroupByPartnershipEnabled:g,isTypeInListViewVisible:y}}=ce(),{noContactsMessage:v,genericErrorMessage:_}=u,{ariaLiveRef:b}=(({contacts:e,isLoading:t})=>{const r=(0,i.useRef)(null),n=(0,i.useCallback)((e=>e===r.current.textContent?`${e} `:e),[]);return(0,i.useEffect)((()=>{const i=r?.current?r.current:null;if(!i||!e)return;const s=e.length;s>0?i.innerHTML=n((e=>`Contacts found - ${e}`)(e.length)):s||t||(i.innerHTML=n(me().noContactsMessage))}),[e,t,n]),{ariaLiveRef:r}})({contacts:e,isLoading:n}),x=(0,i.useMemo)((()=>((e,t,r,i,n)=>{const s=i??"",o=r?_t.getGeolocationPosition():null;if(t)return(r?Kt(e,s,o):e).slice().sort(((e,t)=>tr(e.partnershipLevel)-tr(t.partnershipLevel)));return r?Kt(e,s,o):((e,t)=>{const r=[],i=[];return e.forEach((e=>{e.countryCode===t?.split("-")[1]&&e.localizedCompanyName?r.push(e):i.push(e)})),r.sort(((e,t)=>e.localizedCompanyName&&t.localizedCompanyName?e.localizedCompanyName.localeCompare(t.localizedCompanyName):0)),i.sort(((e,t)=>e.companyName&&t.companyName?e.companyName.localeCompare(t.companyName):0)),[...r,...i]})(e,n)})(e,p&&m&&g,s,h?.code,f)),[e,m,s,g,f,p,h?.code]);return i.createElement(i.Fragment,null,i.createElement("span",{className:G.A.screenReaderOnly,ref:b,"aria-live":"assertive","aria-atomic":"true",role:"alert"}),!n&&e.length>0?i.createElement("ul",{className:(0,B.A)("eulS7RWmUCRtErli3fhZ")},x.map(((e,n)=>{const{companyName:a,id:u,services:h,distance:p,countryCode:m,localizedCompanyName:g,partnershipLevel:v,authorizedServices:_,type:b}=e,x=m===f?.split("-")[1];return i.createElement(Dr,{title:x?g??a??"":a??"",services:h??[],key:u??n,onViewDetailsClick:()=>{t(e)},onTileClick:()=>{r(e,n)},distanceFromUser:s?p:void 0,isActive:u===o,viewDetailsTestId:0===n?"view-details-button":void 0,testIdPrefix:(0,d.A)("tile",l),isContactUsBadgesEnabled:c,partnershipLevel:v,authorizedServices:_??[],isTypeVisible:y,type:b})}))):i.createElement(Lr,{messageType:a,isLoading:n,noContactsLabel:v,genericErrorMessage:_}))},zr=({contacts:e,error:t,isGeolocationEnabled:r,mapService:n,className:s,isBusinessUnitValueVisible:o,isDataLoading:l,testIdPrefix:c,selectedContactId:u,isContactUsBadgesEnabled:h,isDistributorsLayout:p})=>{const[f,m]=(0,i.useState)(null),[g,y]=(0,i.useState)(!0),[v,b]=(0,i.useState)(null),{listContainerRef:x,setIsListScrollNeeded:w,handleListAutoScroll:A}=(({isLoading:e,isListVisible:t,selectedContact:r})=>{const n=(0,i.useRef)(null),[s,o]=(0,i.useState)(!1),a=(0,i.useCallback)(((e=!1)=>{o((t=>t===e?t:e))}),[]),l=(0,i.useCallback)((()=>
23{if(r){if(n.current){const e=n.current.querySelector(nr);e&&(n.current.scrollTop=e.offsetTop)}}else n.current&&(n.current.scrollTop=0)}),[r]);return(0,i.useEffect)((()=>{t&&s&&!e&&l()}),[t,s,e,l]),{listContainerRef:n,setIsListScrollNeeded:o,handleListAutoScroll:a}})({isListVisible:g,selectedContact:f,isLoading:l}),E=(0,i.useCallback)((()=>{m(null)}),[]),S=(0,i.useCallback)((()=>{const e=document.querySelector(`${nr}`);e&&e.focus()}),[]),T=(0,i.useCallback)((()=>{y(!0),a.k.removeSearchParamByKey(re.ContactId),A(!0),setTimeout((()=>{S()})),n.dispatchMapboxMapEvent({zoom:10})}),[S,A,n]);n.setContactDetailsClose((()=>y(!0)));const C=(0,i.useCallback)((()=>{b((t=>e.length>0?t:sr.EmptyListError))}),[e.length]),{setSelectedContactId:I,dictionary:P}=yt(),{productLineFilterItem:M}=Xe(),{filters:{noProductLineNotification:k}}=P,O=(0,i.useMemo)((()=>p&&0===M?.productLines.length&&e.length>0),[e,p,M]),R=(0,i.useCallback)((e=>{const{companyName:t,id:r}=e;y(!1),m(e),n.dispatchViewDetailsClickEvent(e),a.k.setSearchParam(re.ContactId,r),r&&I(r),n.dispatchMapboxMapEvent({contact:e,zoom:15}),Ce.trackContactsListItemClick(t)}),[n,I]),D=(0,i.useCallback)(((e,t)=>{m(e),n.dispatchSelectedContactChangedEvent(xt.List,e,t),n.dispatchMapboxMapEvent({contact:e,zoom:10})}),[n]),L=(0,i.useCallback)((({detail:{contact:e,triggerType:t}})=>{m(e),t===xt.Map?(A(!0),g||(y(!0),a.k.removeSearchParamByKey(re.ContactId))):(w((e=>!e&&e)),t===xt.Url&&y(!1))}),[A,g,w]),j=(0,i.useCallback)((()=>{b(sr.MapApiError)}),[]);return(0,_.F)(bt.SelectedContactChanged,L),(0,_.F)(bt.LocationFilterChange,E),(0,_.F)(bt.BoundsChange,C),(0,_.F)(bt.MapError,j),(0,i.useEffect)((()=>{u||(y(!0),m(null))}),[u]),(0,i.useEffect)((()=>{t&&b(sr.ContactsApiError),0!==e.length||t||b(sr.EmptyListError)}),[e.length,t]),i.createElement(i.Fragment,null,O&&g&&i.createElement(z.DfAlert,{isVisible:!0,description:k,"data-testid":(0,d.A)("no-product-line-notification",c)}),i.createElement("div",{ref:x,className:(0,B.A)(G.A.fullHeight,"lwaIvrAdqpnJr8WdB8Em",s),"data-testid":"contacts-list-section"},l&&g&&i.createElement(z.DfLoader,{"data-testid":"contacts-list-loader"}),!g&&f?i.createElement(kr,{...f,onClose:T,isGeolocationEnabled:r,isBusinessUnitValueVisible:o,testIdPrefix:c,isContactUsBadgesEnabled:h}):i.createElement(Br,{contacts:e,isLoading:l,isGeolocationEnabled:r,selectedContactId:f?.id,onContactViewDetailsClick:R,onContactItemClick:D,listMessageType:v,testIdPrefix:c,isContactUsBadgesEnabled:h})))};var jr,Fr=ae(79),Nr=ae.n(Fr),Ur=ae(889),Vr=ae.n(Ur);!function(e){e.ChinaDistributor="distributors-blurred-icon",e.ChinaFactory="factory-blurred-icon",e.ChinaHeadquarter="hq-blurred-icon",e.ChinaSalesService="sale-services-blurred-icon",e.Distributor="distributors-icon",e.Factory="factory-icon",e.Headquarter="hq-icon",e.SalesService="sale-services-icon",e.SelectedChinaDistributor="distributors-blurred-selected-icon",e.SelectedChinaFactory="factory-blurred-selected-icon",e.SelectedChinaHeadquarter="hq-blurred-selected-icon",e.SelectedChinaSalesService="sale-services-blurred-selected-icon",e.SelectedDistributor="distributors-selected-icon",e.SelectedFactory="factory-selected-icon",e.SelectedHeadquarter="hq-selected-icon",e.SelectedSalesService="sale-services-selected-icon"}(jr||(jr={}));const Gr="markers",qr="marker-layer",Hr=e=>e>180?e-360:e<-180?360+e:e,Wr=e=>{const t=e.getWest(),r=e.getEast();return{swLat:e.getSouth(),neLat:e.getNorth(),swLng:Hr(t),neLng:Hr(r)}},Yr=e=>{const t=_t.getGeolocationPosition(),r={center:t?[t.lng,t.lat]:Pe,zoom:t?12:1};e.flyTo(r)},Qr=(e,t)=>{const r=document.querySelector(e);r&&(r.textContent=t)};function Zr(e,t,r=""){null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Zr(e,t,r))):Object.keys(t).forEach((i=>Zr(e,t[i],`${r}${""!==r?".":""}${i}`))):e.has(r)?e.append(r,t):e.set(r,t))}const Xr=function(e,...t){const r=new URLSearchParams(e.search);Zr(r,t),e.search=r.toString()},Kr="https://danfoss-locationapi-proxy.azurewebsites.net".replace(/\/+$/,"");class Jr{constructor(e,t=Kr,r=D.A){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath??t)}}Error;const $r={};class ei extends("contactslistv2/contactslistv2"==r.j?Jr:null){getDanfossLocations(e={},t){return function(e){const t=function(e){return{getDanfossLocations:async(t,r,i,n,s,o,a,l,c={})=>{const u=new URL("/danfosslocations","https://example.com");let h;e&&(h=e.baseOptions);const d={method:"GET",...h,...c},p={};void 0!==t&&(p.search=t),void 0!==r&&(p.facet=r),void 0!==i&&(p.select=i),void 0!==n&&(p.filter=n),void 0!==s&&(p.orderby=s),void 0!==o&&(p.top=o),void 0!==a&&(p.skip=a),void 0!==l&&(p.count=l),Xr(u,p);let f=h&&h.headers?h.headers:{};return d.headers={...f,...c.headers},{url:(m=u,m.pathname+m.search+m.hash),options:d};var m}}}(e);return{async getDanfossLocations(r,i,n,s,o,a,l,c,u){const h=await t.getDanfossLocations(r,i,n,s,o,a,l,c,u),d=e?.serverIndex??0,p=$r["DanfossLocationsApi.getDanfossLocations"]?.[d]?.url;return(t,r)=>function(e,t,r,i){return(n=t,s=r)=>{const o={...e.options,url:(n.defaults.baseURL?"":i?.basePath??s)+e.url};return n.request(o)}}(h,D.A,Kr,e)(t,p||r)}}}(this.configuration).getDanfossLocations(e.search,e.facet,e.select,e.filter,e.orderby,e.top,e.skip,e.count,t).then((e=>e(this.axios,this.basePath)))}}class ti{constructor(e,t){this.apigeeKey=e,this.apiBaseUrl=t}getClient(){const e=this.createHttpClient();return new ei(void 0,this.apiBaseUrl,e)}createHttpClient(){return D.A.create({headers:{"x-api-key":this.apigeeKey}})}}const ri="contactslistv2/contactslistv2"==r.j?["id","company_name","address","zipcode","city","region_name","country","country_name","geo_hash","phone_numbers","services","segments","type","website","sale_channels","fax","distribution_territories","email","geolocation","baidu_geolocation","localized_company_name","localized_address","localized_city","localized_regi
23on","authorized_services","partnership_level"]:null,ii=/(\|\||-|!|\(|\)|{|}|\[|]|\^|"|~|\?|:|\\|\/|#)/g,ni=e=>e?e.replace(ii,"").trim():"";class si{static apigeeLocationToLocationResponse(e){return{id:e.id,companyName:e.company_name,geo_hash:e.geo_hash,services:e.services??[],type:e.type,segments:e.segments??[],distributionTerritories:e.distribution_territories??[],address:e.address,email:e.email,city:e.city,countryCode:e.country,countryName:e.country_name,phoneNumbers:e.phone_numbers??[],regionName:e.region_name,fax:e.fax,website:e.website,saleChannels:e.sale_channels,zipCode:e.zipcode,localizedCompanyName:e.localized_company_name,localizedAddress:e.localized_address,localizedCity:e.localized_city,localizedRegion:e.localized_region,coordinates:e.geolocation?.coordinates??[],baiduCoordinates:e.baidu_geolocation?.coordinates??[],authorizedServices:e.authorized_services??[],partnershipLevel:e.partnership_level}}}class oi{constructor(e){this.locationSdk=e,this.getLocations=async(e,t)=>{if(!this.locationSdk)throw new Error("Service is temporary unavailable");const{neLng:r,neLat:i,swLng:n,swLat:s,segments:o,count:a=100,skipCount:l=0,types:c,country:u,search:h,productLines:d,partnershipLevels:p,authorizedServices:f}=t.params,m={neLng:r,neLat:i,swLng:n,swLat:s},g=this.getLocationFiltersString({coordinates:m,types:c?.split(","),segments:o?.split(","),country:u,productLines:d,partnershipLevels:p?.split(","),authorizedServices:f?.split(",")}),y=ni(h),v=await this.locationSdk.getClient().getDanfossLocations({top:a,skip:l,filter:g,orderby:"company_name",select:ri.join(", "),count:!0,...y&&{search:y}}),_=(v.data.value??[]).map((e=>si.apigeeLocationToLocationResponse(e))),b=v.data["@odata.count"]??0;return{...v,data:_,dataCount:b}},this.getGeohash=async(e,t)=>{if(!this.locationSdk)throw new Error("Service is temporary unavailable");const{segments:r,types:i,country:n,search:s,productLines:o,partnershipLevels:a,authorizedServices:l}=t.params,c=ni(s),u=r?this.getLocationFiltersString({segments:r.split(","),types:i?.split(","),country:n,productLines:o,partnershipLevels:a?.split(","),authorizedServices:l?.split(",")}):void 0,h=await this.locationSdk.getClient().getDanfossLocations({top:0,filter:u,...c&&{search:c},facet:"geo_hash/precision4,count:100000"}),d=h.data["@search.facets"]?.["geo_hash/precision4"];return{...h,data:d}},this.getLocation=async(e,t)=>{if(!this.locationSdk)throw new Error("Service is temporary unavailable");const{id:r}=t.params,i=await this.locationSdk.getClient().getDanfossLocations({filter:`id eq '${r}'`}),n=(i.data.value??[]).map((e=>si.apigeeLocationToLocationResponse(e)));return{...i,data:n}}}buildSinglePropertyMultiFilterQuery(e,t){return`(${t.reduce(((t,r,i)=>(i>0&&(t+=` or ${e} eq `),t+`'${r}'`)),`${e} eq `)})`}buildArrayPropertyMultiFilterQuery(e,t,r){return`${e}/any(${t.reduce(((e,t,i)=>(i>0&&(e+=" or p eq "),e+`'${r?t.toUpperCase():t}'`)),"p:p eq ")})`}getTypeFilter(e){return this.buildSinglePropertyMultiFilterQuery("type",e.map((e=>e.toLowerCase())))}getSegmentsFilter(e){return this.buildArrayPropertyMultiFilterQuery("segments",e.map((e=>e.toUpperCase())),!0)}getProductLinesFilter(e){return this.buildArrayPropertyMultiFilterQuery("product_line_numbers",e,!0)}getCountryFilter(e){return`country eq '${e.toUpperCase()}'`}getPartnershipLevelsFilter(e){return this.buildSinglePropertyMultiFilterQuery("partnership_level",e)}getAuthorizedServicesFilter(e){return this.buildArrayPropertyMultiFilterQuery("authorized_services",e)}getGeoFilter({neLng:e,neLat:t,swLng:r,swLat:i}){return`geo.intersects(geolocation,geography'POLYGON((${e} ${t}, ${r} ${t}, ${r} ${i}, ${e} ${i}, ${e} ${t}))')`}getLocationFiltersString({coordinates:e,types:t,segments:r,country:i,productLines:n,partnershipLevels:s,authorizedServices:o}){const a=[];return e&&a.push(this.getGeoFilter(e)),t&&a.push(this.getTypeFilter(t)),r&&a.push(this.getSegmentsFilter(r)),n&&n.length>0&&a.push(this.getProductLinesFilter(n)),i&&a.push(this.getCountryFilter(i)),s?.some((e=>""!==e))&&a.push(this.getPartnershipLevelsFilter(s)),o?.some((e=>""!==e))&&a.push(this.getAuthorizedServicesFilter(o)),a.join(" and ")}}const ai=()=>{const e=ce().remoteAppConfig,t=(0,i.useMemo)((()=>new ti(e.apigeeKey,e.locationApiBaseUrl)),[e.apigeeKey,e.locationApiBaseUrl]);return(0,i.useMemo)((()=>new oi(t)),[t])},li="user-location-source",ci="user-location-source",ui="user-location-circle-layer",hi="user-location-circle-border-layer",di="user-location-point-layer",pi="#007cbf",fi=e=>!!e&&zt.includes(e),mi="kcut9HtiNM_HXAnVhSZw",gi=({contacts:e,setMapError:t,geohash:r,isGeolocationEnabled:n,mapService:s,selectedContactId:o,mapLoadingLabel:l})=>{const[c,u]=(0,i.useState)(!1),[h,d]=(0,i.useState)(null),[p,f]=(0,i.useState)([]),{setMap:m,map:g}=yt(),{onCoordinatesUpdate:y}=Xe(),{remoteAppConfig:{mapboxAccessToken:v},featureFlags:{isMapLightThemeEnabled:_}}=ce();return(({onCoordinatesUpdate:e,isGeolocationEnabled:t,map:r})=>{const{onMapUpdate:n,setIsLoading:s}=yt(),{typesQueryRef:o,segmentsQueryRef:l,productLineFilterItemRef:c}=Xe(),u=ai(),h=(0,i.useCallback)((()=>
23{if(!r)return;const t=r.getBounds(),i=(e=>{const t=e.getEast(),r=e.getWest();return Math.abs(t-r)>360})(t);if(i)return;const s=Wr(t);e(s),n(s,[])}),[r,e,n]),d=(0,i.useCallback)((()=>{if(!r)return;const e={...Wr(r.getBounds()),count:2,segments:l.current,types:o.current,productLines:c.current?.productLines};u.getLocations("",{params:e}).then((e=>{const t=r.getMinZoom(),i=r.getZoom();e.data.length>=2||t===i?(s(!1),r.off("zoomend",d),r.on("zoomend",h),h()):r.zoomOut()})).catch((e=>{console.error("Error fetching locations happened:",e),s(!1),r.off("zoomend",d),r.on("zoomend",h)}))}),[r,u,l,o,c,s,h]),p=(0,i.useMemo)((()=>Vr()(h,250)),[h]);(0,i.useEffect)((()=>{const e=a.k.getSearchParamValueByKey(re.Country);return t&&!e?(s(!0),r?.off("zoomend",h),r?.on("zoomend",d)):(r?.off("zoomend",d),r?.on("zoomend",h)),r?.on("resize",p),()=>{r?.off("resize",p),r?.off("zoomend",h),r?.off("zoomend",d)}}),[r,t,h,d,s,p]),(0,i.useEffect)((()=>{if(r)return r.on("dragend",h),()=>{r.off("dragend",h)}}),[r,h])})({map:g,isGeolocationEnabled:n,onCoordinatesUpdate:y}),(0,i.useEffect)((()=>{Nr().accessToken=v;const e=_?Te.LIGHT:Te.BASE,r=new(Nr().Map)({center:Pe,container:"map-container",style:`mapbox://styles/mapbox/${e}`,attributionControl:!1,zoom:1,minZoom:1,maxZoom:17,projection:{name:"mercator"}});m(r),s.setMapboxMarkerHandlers((({contact:e,zoom:t})=>{e?.coordinates?r.flyTo({center:[e.coordinates[0],e.coordinates[1]],zoom:t,speed:2,curve:1}):r.easeTo({zoom:10,duration:1e3}),e?.id&&d(e.id)})),r.addControl(new(Nr().NavigationControl),"top-right");const i=()=>{r.getCanvas().style.cursor="pointer"},n=()=>{r.getCanvas().style.cursor=""},o=e=>{if(e.features&&e.features.length>0){const t=e.features[0];d(t.properties?.id),s.dispatchSelectedContactChangedEvent(xt.Map,{id:e.features[0].properties.id})}};return r.on("load",(()=>{u(!0)})),r.on("mouseenter","marker-layer",i),r.on("mouseleave","marker-layer",n),r.on("click","marker-layer",o),r.on("error",(e=>{t(e)})),()=>{r.off("mouseenter",i),r.off("mouseleave",n),r.off("click",o),r.remove()}}),[t,u,m,s,v,_]),(({isGeolocationEnabled:e})=>{const{setUserCountry:t}=Xe();(0,i.useEffect)((()=>{(async()=>{try{const r=_t.getGeolocationPosition();if(e&&r){const e=await ve.getCountryByCoordinates(r.lng,r.lat);t(e)}}catch{t(null)}})()}),[e,t])})({isGeolocationEnabled:n}),(({geohash:e,map:t,mapLoaded:r,setMarkers:n,contacts:s,isMapLightThemeEnabled:o})=>{(0,i.useEffect)((()=>{if(!t||!r)return;if(0===e.length)return n([]),void(e=>{for(const t of["marker-layer","clusters","cluster-count"])e.getLayer(t)&&e.removeLayer(t);e.getSource(Gr)&&e.removeSource(Gr)})(t);const i=[];for(const{value:t,count:r,lat:n,lng:s}of e){const e=[s,n];for(let n=0;n<r;n++)i.push({id:t,coordinates:e})}n(i),t.getSource(Gr)||t.addSource(Gr,{type:"geojson",data:{type:"FeatureCollection",features:i.map((({id:e,coordinates:t})=>({type:"Feature",geometry:{type:"Point",coordinates:t},properties:{id:e}})))},cluster:!0,clusterMaxZoom:8,clusterRadius:80}),t.getLayer("clusters")||(t.addLayer({id:"clusters",type:"circle",source:Gr,filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],o?"#feebed":"#51bbd6",100,o?"#fab5bb":"#f1f075",750,o?"#ed071b":"#f28cb1"],"circle-radius":["step",["get","point_count"],20,100,30,750,40]}}),t.addLayer({id:"cluster-count",type:"symbol",source:Gr,filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":12},...o&&{paint:{"text-color":["step",["get","point_count"],"#77040e",100,"#77040e",750,"#ffffff"]}}}),t.on("click","clusters",(e=>((e,t)=>{const r=t.queryRenderedFeatures(e.point,{layers:["clusters"]}),i=r[0]?.properties?.cluster_id,n=r[0].geometry.coordinates;t.getSource(Gr).getClusterExpansionZoom(i,((e,r)=>!e&&t.easeTo({center:n,zoom:r})))})(e,t))),t.on("mouseenter","clusters",(()=>(e=>e.getCanvas().style.cursor="pointer")(t))),t.on("mouseleave","clusters",(()=>(e=>e.getCanvas().style.cursor="")(t))))}),[t,r,e,n,s,o])})({geohash:r,map:g,mapLoaded:c,setMarkers:f,contacts:e,isMapLightThemeEnabled:_}),(({markers:e,contacts:t,map:r,mapLoaded:n})=>{(0,i.useEffect)((()=>{r&&n&&t.forEach((t=>{if(e.find((e=>e.id===t.id)))return;const r=e.find((e=>e?.id===t?.geo_hash?.precision4));if(r){r.contact=(0,b.h2)(t),r.id=t.id,r.title=t.companyName;const e=t.coordinates?.[0]??0,i=t.coordinates?.[1]??0;
23r.coordinates=[e,i]}}))}),[t,n,r,e])})({markers:p,contacts:e,map:g,mapLoaded:c}),(({contacts:e,isMapLightThemeEnabled:t,map:r,markers:n,selectedMarkerId:s,mapLoaded:o})=>{const[a,l]=(0,i.useState)(!1),c=(0,i.useCallback)((()=>{const e={type:"FeatureCollection",features:n.map((e=>{if(e.contact){const{type:t,countryCode:r,id:i,coordinates:n}=e.contact,o=((e,t)=>{const r="CN"===t;let i;switch(e){case Re.Factory:case Re.SemikronFactory:i=r?jr.ChinaFactory:jr.Factory;break;case Re.Headquarter:case Re.SemikronHeadquarter:case Re.SemikronSalesServiceCenter:i=r?jr.ChinaHeadquarter:jr.Headquarter;break;case Re.SalesServiceCenter:i=r?jr.ChinaSalesService:jr.SalesService;break;default:i=r?jr.ChinaDistributor:jr.Distributor}return i})(t,r);return{type:"Feature",properties:{icon:i===s?o.replace("icon","selected-icon"):o,id:i},geometry:{type:"Point",coordinates:n}}}return{type:"Feature",geometry:{type:"Point",coordinates:e.coordinates},properties:{id:e.id}}}))};r?.getSource(Gr)&&(r.getSource(Gr).setData(e),r.getLayer(qr)||r?.addLayer({id:qr,type:"symbol",source:Gr,layout:{"icon-image":["get","icon"],"icon-allow-overlap":!0,"icon-size":.5}}))}),[r,n,s]);(0,i.useEffect)((()=>{if(!r||a)return;const e=(e=>{const t=e?{distributorsSelectedBlurredIcon:"data:image/png;base64,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",distributorsBlurredIcon:"data:image/png;base64,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",distributorsSelectedIcon:"data:image/png;base64,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",distributorsIcon:"data:image/png;base64,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",factorySelectedBlurredIcon:"data:image/png;base64,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",factoryBlurredIcon:"data:image/png;base64,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",factorySelectedIcon:"data:image/png;base64,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",factoryIcon:"data:image/png;base64,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",headquartersSelectedBlurredIcon:"data:image/png;base64,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",headquartersBlurredIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAxQSURBVHgB7Z1PbBPZHcd/Mx7b+WM7C9mkUBIlTaNCOCHRAodVVRX2soeqZfewEqRwKlILZQ+rSrsrbdGqf9QKqat
23CD9ygq0p7oLBtpT2wtOKwBxb1nBARhQAJIZtNiJM0cezxTL+/iSeMHTu237wZj+39SMaO45iZ3++937/35jcKBRe1p6cnury83NLV1aWtr6+HgZbNZkP8iEQiqvPD6XTaCIVCWV3XM6qqGtFoNDM3N6fH4/HU1NTUOj5iUABRKDioO3fujHV0dLQahtEGYYZJLinTNNeTyeTawsLCKn7WKQDUWgEqBN4Ri8XaMWLbyEcwo1bX1taWaq2MmigApqUVo7HTb6GXIpPJrMCEJWdnZ/9HPuOnAqzR/hLwwLxIAb4lA58zj1mxRD7hiwL6+/tfgnN8udBxBhU/FeGpAtjUYLTvCuqIL4cfivBKAeHe3t4uhI0xagDgr5IPHz6cJw+cdYgks3fv3nhra+semJsoNQiKorQkEokYZrKByGmdJCJTAerg4ODLmLZdONAg5RdSQHIXamlpiSFyU1dWVlJ4yyQJyBJUuK+vr6debX21sG949OjRE5JgkmQoIApn21svEY4sWAnwcU/Hx8ddmSRXCmB7jyRmNzUxUMLM2NjYMgki7AM4tkd0sIuaHNSt4sgvs4uLiykSQGgGsPDhlLrJB7JZZQ8UfQgv9+GxB4c8xO8rCvU4P2eaNIWnZUUxl/B6FK/v4+9Gw2HlPvkAFPHl5OTkIlVJ1Qrw2uwgY44TaccQ+rHQX8UjTu5YhiLu4vnf+PbbmqYJm4tyiJijahUQHRgY6CMP0HUe5cpRCP51ci/0bTBvGIZ5zauZAcvwqBrHXI0CPAk1WfAQ+lkcymHyFfMLzIzLmqbcI4lAAVko4BFVGKJWqgAVwu+TKXzYzCHTVN/xX/D5QAmfKUr29zi3aZJELk9gJZRdhasoCuIMF6O0nSTANt4wlJ/hv/4ThN9DNQbn9W2Mr1MwSxi9cmYDZ83ImBVkzKvlPlt2BmCZMIESvpRwEyMDEY32F0QwQxRAED1NK4o+LGs2VOKUy2WvYSxqd5IEdJ1+gujmH0EVPoNjQ5irfZLJKD8lCWDAcaiubfeZbU0Q4v1ujAbXy4a6rpzFVH8PL+uhQhqFIr4vwyTBv6hY7w4vLS2VnAUlFcCmB2Vl16N/Q/h0juoMDJjDMpSAARxpb29fhRKKRkUlFdDd3f1NdibkgnoVvo0sJYC2ZDJZNEsuKmAe/W1tbR3kgnoXvo0MJfBALlUvKuqE3Tpe1G9ONYLwbRRFPbcRRIiDEgjLdIu8t7zBo99NwsWhJp4aRvg2mAnv5s5NCCSeIQQ1icL3tyjA7ehHnP8ReVrLqRkJzmE2ioViICraUfhengK6urpibkZ/zu4Lj5KgwzmMooROkSAsW96q43wvTwFsfkgQnp5+2/39+4fo44//RomEnxNOPZfJmPtIEN6Smfdtjtdh1Pld7OPR3iUfsYV/5Mhh35WQSyqFyO2H3ZT75guM/lYSRNdVXjw5Rj7xxhuv54S+MWH379/vqxJ4sWhj/UIMpzN2KkDY/MD0nCWfYOFfvPiHTeHbsBI+/fRf1NPjlwtShM2t09LY1dAwVrq+RQJs1PVDn5APbAj5n9brkZFRQnq/+Ts4N0v4IyMj9NprPyI/ME1jWHRBZ2JiYhxPhlWpc2N+UG+SUjmsBKeJ+eCD39Ddu19s/nzx4h8xO45vmRneohzFP0IK4KuBeNOvZYJw0KIVT5ytcpyaFPiC46J5AV+Kxc9q7ouEysRIz49Sc5NQVU0o+ODr4PiZTZAqqgA4X6mRD9vx7XCaF7b3zs/7mwu8wDR5+4x5k6okl/CqCmdmkUiklwTA2u5/sYwn7cwnJ8fJLVNTU/TKKz8gH1kKhczvkQDpdPoJKqVqCwmwEf00ZM2nWhK8e48EQIU0qmH0axAmVYthqPsUj64CuHXrNh63Nn8+cuSIFeE4+fDDP1uj3YbzA86Ka4GiWElZ1WYICghrbItEFIAFCp4BnsCx/PXrN/LeK1QAh6DOMJSVVCsgvn2qwOZ8vvpfRRFNaF8/nI9wQarxENvfxDNAhSOIkBCGqyXLRkJ0qw0sj6qFw2HVFLIlimcOmG35W2/9cvNnLkEUUmjzuTrKcKjq/NtisIljP1NrWPYKakDfIQHg+cdIMjLC0Epg//L2278imSAU3UsCNNV1XUEkkArgELO/f3DzUWy0vvnmibzPFEZNHKI6f88PZ9gaFL6eATWG60CinaSk7advAIRkwRdzqFidCWQrrzpDqJkHy54z4SyV2UJdHHMUoagn63+c9TpDzGLLjO+//x45Nx3bYagNh6O8TuykXLVVFJQihC78gwJ0rgXhOVN1ORqma9qrUsTG8uL2wiqWGzhhBfhVG0IpYkSkFMGDn7sQZkgIawaQF0xNTedFLCzMwhFeak3YibNWxLDSvFg3gPCFrrjkzo4aShE6ahJULagFSb260Mn163+3QlEbNkm85uuk1JqwDSuQQ1Unn39+xxMFoJw2qqrVu1KrxSbqEUKX2CPzm0YNxLOLnuuIpXDYEJoBqIam1VxTUyHgAz6jJgcyELYEMzMzKbY9BqYCm6Gq7RC8/z2YIum7IthM5K/3bt1qUsmasFdRjxNVNYWqetxEFk+G5UX7+/t3ISkQ2VCTwLrwf2QtTdZjMc40M98V6T+R60M3awVP3M6XxOAw5AY1LzdFm38gBLVkbpmd58+fL+/YseMbJABmwG2YIuE9805kl4hLwWGuDHDuVxGMkAgwj6vj4+MvAvnBwcEee7NQtei6+lFuYbppYP+H+H+YBEilUmtPnz7lnnMvqqHIB9z0Tb5ETQYUIHzObW1tSfv1pgIeP36cJEE0zbjnZWIWQGB2xc+XzY/92lnBMBAJle3uUQpMx99R8yB8rtyp/c6dO5tXzeeVkGCb5kkQpOLcp60JTJFxmasAJAhknFe6zlMAsuI1rNQLFues8sRfEeH60iSvRkyHQorwIGPZzs3NrTjf21JEXVtbq7rznwNoV/l5I9aIcuckFPXYoPK8xcJsUQA7YxfLlFaRzjDM31KDgWz/khvTw6Mfcf+WlbNiywhGPB7/ilyAqhJvVL1MDYNl96+RC4qNfqZot5Rnz56luru7E9zfgARBVMShKSd6dZ6gsfAVV8EFj/4HDx7MFvtdSQG3trauo17hav9n/SvBvfBzzC0sLBQt+5dUAHd4isViUe74RC6oXyXIET5XPScmJhZK/X7bpWSYoTk3DtkG9vMSJ2r1EB3xMaLM8I4M4bPp6evr2za3KruqjiId+wJJbSutbSzcziaoHVU4mfyFm2jHCSoLz4pFPk7KOlm2XZ2dnbyFXfhi7hcHRMt4XAuoSbqMUPPXmma6igBtIPznEP7zsp+jCsAXzbvJkAthk4SnH5LV0by2cFENjx/zMUH4Ukwky+rkyZMVlXUq3thz8ODB8OLiYh/3wiSJ4OsOYeSdy90jwDc2BE+X4OKkVnFZ+Lt3737iLLhtexxUBfAHUfgDT9rXG4Y6BCXwypqr5njbwQ7WMOgGHOxt2YK38bJ9vYVMp1wMXVfiqmoeg594FQI75HbBPxd53eZ29bx8KsvMFKMSp1uI0N7CAwcOvIQ8wZdbmPDMwL/7ILwhvjSWrOZ5JiulMJKyI5f7fDsTKHEUIx05iOnLNnrfbmFi46cSgo6o8BlXu2u9Nkf1gIjZceKqN3QuR1jRNK3dTeGuHuEKAYT/GMIXXsZlXIeU7PFRM5qSmScEHT7X3t7eSbd30WOkjNqZmRljfn5+CbNBkZExBxnOcE+cODFz9erVLElA+hUW7BdQQe3E6n9D3diTTQ4eX7qx98WQfpkqHyCbJPgE3+7L7jW8lSRncqSfk6f3/a332cC2HqH2LEysK0e7Hb7ceLneFMHmBmu4X4nG9tXgy5XyPHXHxsYecswc5GiJj03X9bnh4eEJP4TP1OTW49wmPxqNdkQiESk3h3MLRvza6urqvJemphQ1SZ5wsmm+tdPAwMBSOp1ezx2Hr+aJhY7Rvnj69OmZmzdvJldWVmoyM2syA4rB6w3JZLIVQmnjPqaivUxLwdfB8eZjvhro/PnzyxcuXAhEi4bAKKAQCEi9cuVKC+xylDs7plKpCMwW97YI57p85fkvdpzce4GvPucWAC0tLWm+Bhqv18+cOZMKisAL+T+qDUirT+YqewAAAABJRU5ErkJggg==",headquartersSelectedIcon:"data:image/png;base64,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",headquartersIcon:"data:image/png;base64,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",salesServicesSelectedBlurredIcon:"data:image/png;base64,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",salesServicesBlurredIcon:"data:image/png;base64,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",salesServicesSelectedIcon:"data:image/png;base64,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",salesServicesIcon:"data:image/png;base64,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"}:{distributorsSelectedBlurredIcon:"data:image/png;base64,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",distributorsBlurredIcon:"data:image/png;base64,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",distributorsSelectedIcon:"data:image/png;base64,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",distributorsIcon:"data:image/png;base64,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",factorySelectedBlurredIcon:"data:image/png;base64,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",factoryBlurredIcon:"data:image/png;base64,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",factorySelectedIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABUCAYAAAAyLjFTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAVAAAAADTMXPyAAANwElEQVR4Ad1cCXhU1RU+s2WSTJbJZAMUFBFEkYqIlQqIYg1VkIJCENQSUbFVq4AVxBYFFQq2svgpaqkgSj8VxSLaWhcURMQFUFEREIsNQcwikH2bmdf/vMx9uW/mzZoJWc73nZxzzz33vHvOu/t9ExO1EiiKkgnT5wH7+LA3aA9gMjBJQrBUASyRsAj85z7cYzKZ3OBbBUzxsgqHzbB1IXAkMA84CMiylkI9DOwEbgS+imDsbanBuJaH407gTOB3wMjAqyje6hrFU/qT4q2ojKxMs9Y+sHcDnfFwJOYWgAq4UIF5wBuB3Kx14C0po4btn1Djnn3AvSr1FB4ipbqGvLW1Ol2T1UpmVwaZM5xkzs4iW7++lHDuOWQb0J9s/c8iUzL3mACogmQ18K9oFYUBuREKog4AHOcyU4GLgFnyc9x7v6XaDf+i2o3/poaPd5Di9crZMfEmi4Xsw4dS0tVjKHncaDJ3zfW3UwPBQ8BHEIgG/8xw6agCAOe7weA64BDZcP2mLVSxaCnVvbNZFsedN5nNZL94GKXNnk72vEv87e+DYCqC8KF/Rqh0xAGA8xfA0D+BXYXBhm0f07E7Z1PDTh6wTywkDDqX0ufOosQxl8sPbkRiOoKwQhaG4iMKAJyfDCOrgHY2xv24/N4HqOqxv8WlmbPNWCF53JWUseIRMnfJkU3w2DANgQg7fYYNAJwfB2MvAS38BPe+A1Q6agK5vzvIyXYBFgygGU8to6Txv5brw111MoLgkYX+fMh5Gs6PQIHngarzDVu3U8mFl7Ur59khz9Fj9FN+AVUuWsZJAflgVsOHkD4GbQEoyCu4HcBUtlj/9mYqvXIiKfW8Lmm/kPLbqegSS4iaPXsYrWB2sBo3q0kacN6K5HYgr+ao8YuvqGTY5eStrORku4e0WdMpffE8UU8FzBgE4XUhkGmw5nE/lFTnvcWlVHrFhDZ3PuuNl6m7clyHvEgygoqHl2GAXimy+CWvwUvlfUgABAQAigOgNUdoHr3p9+T54YhIthm1BC6AjBZFWv2Oz5hDDZ9+JtK8atUiIoRMAwIA2XygOuhV//1Zqn39P6zX5mDppi0/tLoYyUSm4nbT0etuJqVGW3bn4eX+UuQLqgsAFAYiYwxnKuUVVD6be0I7ABv2Clm8u9aDUauQNRr3H6CKebxi1+BBjfMxugBAxm9fBV7a8vTSHsDSJZcwiAVUJVQLEMqVjz5Jnu8LRXIwXvIokWCqBQAZPOiNZqG37ChVLX+S2XYBlm5dDOsRrgVwIZ62y+cukMs/AF+1aGoBgMZNQqt65ZqALavIawtq6RokAAbjglH9al5YT56iH0QWd/NhIqEGABHhQY+XvFhWeanqiadVtr38CdoCgrQM/3rzgFj1uG4SmCh0RAsYDoG6m6h/fxu5DxWJ/HZBzcFaAMaGSKF6DVb0Xl4TqTDe99K1MWCCyKl5aYNgI6ImnOKYHAEHQlpZswv5SYla2p8xZ2GKTrT7i3XpYC3AZLeTOTNDpxss4TnyI9Vv1Y4K+GVfzLqiBYzlBEPda9HN+9bTTqWc7W+TBdQIrH1Op5wP3yLLqYYLMbKeeQblfvAmWbqfZFRclYUa7YOND0bGal95TRaP54QZTeFkUHWUcR84SO6iw7JSRHxC/36U++l7Rqc0avmEAT+j3B2byX4p97RASDhvAOXu3IKjryGBmZCEGu3NEY4DbLgOJ1cSDGaeW8C5Qig1ESGKmPKePPuN9ZQ6607DMpZMF2W/+QqlzLzNOB+HodnvvEopd9wSkB+vFtD49TfkLf1J2O+Hl2/nAPDaX4XGz3YLNibKZ3bOxfMp88XVhuMCH3BmPLKAXP9YaTgu8OlwxvLF5FrzRPO4EGQVKCoYbHwQ+f60YdcXQmQDc7auBTR+uUdktogm548LOS44Jk8IOS44fjNJGxeCrQJFBaMZA7hM4+6vRFGmAzkApwiJ+7/fC7bFVIwLiXkjDG2JcSExzLiQPEkdqwxtsDDaFuB3lNeTA6Ce+BCmSM9hbbUU9IHRZPC4kD7/3qBFeFxIv/+e4PkYF7hLhQJTSkqo7IA8T6FujZPGAUhjLaWighRPyPPDAGMdUeDVb/CkANTWdUR/oq6zovczzQoL6vrQFGY1FsmTMK3Qj315UxkbmBwO6rLrfa1wychx8lZWk6fccgOlzrxdS0fD+PmpHn6WwUAPU3o68TTWovs8BMC9/7to6qPTNaU4dGkPBmVenPmDp5SrHBvwJawEpTwGNFnDDplvZjs7mHPVPZ9ws4y7QLFI2fr2IU9xiUhGTbkFuZ6PfSttwqJHBueyRTiNrpJFKm8764wAWaQC9lGCYn4iL//UG0a+l6/b8oGUHz3ruObq6AsFKZE0amSQnNjFtrPPlAvv5i6wS0j4Hr4zAy+17UPVPRC7yYP/Tm4BWgASR44gVuITlFiBLyWMIPGKPEo4u+kig6/T6zZtDlAz2WyUOqN5s1S18hnyHjseoJcw+HxKvMh45xigLAnsQ39BJme6kHyLg9YKK/4cwPR1CNLupvQ0sg8ZHHM34BmkfPY88QAdteRkawGo3/aRoR7PAnIAKh9ebjgLpN4zPaYAJI7Kk+uk7o25CzBsbCLYhOmVhLhT0KTRv5L9eIUTYtjdAF5te0lXXk7HZ90nK0bO4+zeftnFhvrynt7S42RDP
23VNSkq5sApqspecpOhknrL17BcjCCWxn9CZrX/5UUYVy/N3EnAgANwdeD2SxUuKI4VT3rtpCWCdi4MuLnLc4lqEheexoYgwHmatXhFOJOD/l9mmy7kbUtZEFahfwJbQJPHXGrbJyh+f58zvHDdfKfuDEpQlEC+AUC+8GmhMx/9pwmMl3a2EBM4anTDtmCqsebwW+wwwHKdMK5BOqHXjh20UZLICbAbPBq0iNYUnViqfp2G13NWd2UI6n1q4Hd5PlJO12+XoEYK1wR8wCIq1dpToKJuO0RSsk8jscdRRcKztfCAfWyU7oAuBrGq+zAn+e6lwwV9btcLw5NZXSH/yjXO/74GODLNAFwJfxJ1D1jCAZh5P8zW5HhbQ5M8mcmy2q/zWY50RC0IAAIEJ8bvyiqmA2kXPpQqHboaj11FOwqtTNZvfCN6+/EwEB8CnwbFDNPN/W8NeYHQ3Uw9TmU65NcF5b7cq+GAYAykVQmi8UnY8uJnNamki2e8pL3qT8saKe9WB+JxL+1DAAPqVloNxvyHJyN3IuWeATt29idjrJhc9mJViIF/qtlNaxQQOAQrxU5MipA6Ljxusp2CWHzmIbJzKW/ZmkC9N9qM7iUFUKGgAuhCBsBVkuDLhWPko8tbRXSMKZQ/KUSaJ6PODdCB+4CwSFkAHwleKrnb3M8y7OuVxbK/my2wfhWyZ+QRLwN8LbpLQhGzYAMFKLklOAHrbAmwpHmPs61jvR4HrmCbnp81R+fyR1CBsANoIgfAKiLQj423xrr56R2D8hOqnTb6XE0doBKjf561Bn3YovWEV0m6FgSizHRskC8h5wGKcbd3xOxUPySGmI6DlcpFUgYSC+LsEnOpRgE/ZnwHndNCAyjGhELYALwih3gclAde9rGzSAnIvmIdl2wANy5gurZOf5h5URO881jzgArAzjvEAqYJ4hBUvN5AljmxJt8Ne1+nEcj50mnvw/MDeIRKQ0qgCwUQSBd4tLxANcqx4nv9sWkdWqNO0Pd6i/JfQ9hNcs+ahb1B83RzwGyN5gPOAO9y5QvUlxf7Ofin8+grxVgddYcrl48XwnkL0JS3srD0sqzITzS0UiGhpTAPgBCEJXkF3ALpyuXbeByiYWMNuqwN8E8RW69DO5l+H8hFgfGnUXEA/CQ4+Azweq10i8+eBm2ZrAx1tZL62Rnf8Gz4u638t1jDkAbARB4KUyb51VSMeswEfqrQXOJQspYcgFwnwlmKtQhxb1u5i7gKgFU3SH50GuYZ5/a1B83nBy45fi8QTHdRPJ9dxTssnxcH69LIiFj1cA+NOOj4H9uBLqImnoyLj9xjDhnP7qd4fSR9d/gfOz+FkthRZ1AfFwVIZPj64CVrCMF0kZOESJB5jx6U7my8/KX5byanROPGyzjbgEgA0hCPtBpgAVTjumFRB/8dlScK16jKyn9xRmfgBzDZ6lbsyEsCU0bgHgSqBiG0C0V5/x5FLiL0ZjBf4SLOkq7TySZxte7JTEas+oXFzGANmwb9P0JmSXspy/GiseeBF5q7mXRA72CwZRDn5HIC127oLz2go0ckuhNePaAvhRvubJbf8wp619ekV9tG7G94KutStl59e3hvNcv7gHgI2isqUgPC02HaLcPCWi63Auy+DEuZ7U7w9CNFXN6Gh/0B3mA1XwlB1VDnfpoxRSekgsHTNJFGHqBg7uaH5r9UXlrcCPgCpUr10X0vkiRzfFXVgk1Jk+pBnrqAycOBNYz94wlFx0RdAgVCxc0qTU9PcLEO2Yp6P6r9YbjtwnPGv4co9yyJoZEIQjvQciTA1CDf9rSrmwQzstVx7O2IHfC+/K8gsCAlC1aq3IZrpaLt8peDh1vfCw/oOPdAE4nNlTwXf8WjaYHp3CadkJOMUD4iHh5Y8Dh2tBOD5Hmyw4u/O9fREIODdXBKB+63alKK27cqTv+Yr3eLkQM+08fV84LiicywHWsJcq8KDHw10zfCh0Oy2FrzcB9W43BaAMpH+ndVx2DI7yPzTZAqwCFgOfBfaSdU4U/38En1dZBlqG1gAAAABJRU5ErkJggg==",factoryIcon:"data:image/png;base64,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",headquartersSelectedBlurredIcon:"data:image/png;base64,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",headquartersBlurredIcon:"data:image/png;base64,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",headquartersSelectedIcon:"data:image/png;base64,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",headquartersIcon:"data:image/png;base64,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",salesServicesSelectedBlurredIcon:"data:image/png;base64,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",salesServicesBlurredIcon:"data:image/png;base64,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",salesServicesSelectedIcon:"data:image/png;base64,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",salesServicesIcon:"data:image/png;base64,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"};return[{id:jr.Factory,url:t.factoryIcon},{id:jr.ChinaFactory,url:t.factoryBlurredIcon},{id:jr.SelectedFactory,url:t.factorySelectedIcon},{id:jr.SelectedChinaFactory,url:t.factorySelectedBlurredIcon},{id:jr.Headquarter,url:t.headquartersIcon},{id:jr.ChinaHeadquarter,url:t.headquartersBlurredIcon},{id:jr.SelectedHeadquarter,url:t.headquartersSelectedIcon},{id:jr.SelectedChinaHeadquarter,url:t.headquartersSelectedBlurredIcon},{id:jr.SalesService,url:t.salesServicesIcon},{id:jr.ChinaSalesService,url:t.salesServicesBlurredIcon},{id:jr.SelectedSalesService,url:t.salesServicesSelectedIcon},{id:jr.SelectedChinaSalesService,url:t.salesServicesSelectedBlurredIcon},{id:jr.Distributor,url:t.distributorsIcon},{id:jr.ChinaDistributor,url:t.distributorsBlurredIcon},{id:jr.SelectedDistributor,url:t.distributorsSelectedIcon},{id:jr.SelectedChinaDistributor,url:t.distributorsSelectedBlurredIcon}]})(t);let i=0;for(const t of e)r.loadImage(t.url,((n,s)=>{n?console.error(`Error loading icon ${t.id}: ${n.message}`):s&&(r.hasImage(t.id)||(r.addImage(t.id,s),i++),i===e.length&&l(!0))}))}),[r,a,t]),(0,i.useEffect)((()=>{if(o)try{c()}catch(e){console.error("Error during markers update happened:",e)}}),[r,o,e,c])})({map:g,contacts:e,selectedMarkerId:h,mapLoaded:c,markers:p,isMapLightThemeEnabled:_}),(({isGeolocationEnabled:e,map:t,mapLoaded:r})=>{const n=(0,i.useMemo)((()=>{const t=_t.getGeolocationPosition();return e&&t?[t.lng,t.lat]:Pe}),[e]),s=e?12:1;(0,i.useEffect)((()=>{const e=a.k.getSearchParamValueByKey(re.Location),i=a.k.getSearchParamValueByKey(re.Country);t&&r&&!i&&!e&&t.jumpTo({center:n,zoom:s})}),[t,n,s,r])})({isGeolocationEnabled:n,map:g,mapLoaded:c}),(({selectedContactId:e,contacts:t,map:r,mapLoaded:n,mapService:s,setSelectedMarkerId:o})=>{const[a,l]=(0,i.useState)(!1),[c,u]=(0,i.useState)(null),h=(0,i.useRef)(e);(0,i.useEffect)((()=>{if(h.current!==e&&(l(!1),h.current=e),!e||!n)return;const i=t.find((t=>t.id===e));(i||a)&&i?.coordinates&&r&&!a&&(r.flyTo({center:[i.coordinates[0],i.coordinates[1]],zoom:10,speed:2,curve:1}),u(i),o(e),l(!0),s.dispatchSelectedContactChangedEvent(xt.Url,i))}),[t,e,a,r,n,s,o]),(0,i.useEffect)((()=>{!e&&r&&c?.coordinates&&(r.flyTo({center:[c.coordinates[0],c.coordinates[1]],zoom:10}),u(null),o(null))}),[e,r,a,c,o])})({selectedContactId:o,contacts:e,map:g,mapLoaded:c,mapService:s,setSelectedMarkerId:d}),(({map:e,mapLoaded:t,points:r=360,isGeolocationEnabled:n})=>{const{selectedRange:s,userCountry:o}=Xe(),{isRangeFilterEnabled:a}=ce().featureFlags,l=n?_t.getGeolocationPosition():null,c=(0,i.useMemo)((()=>fi(o?.name)),[o]),u=l?.lat??0,h=l?.lng??0,d=(0,i.useMemo)((()=>a?(({center:e,selectedRange:t,isMiles:r=!1,points:i=360})=>{const[n,s]=e,o=r?3958.8:6371,a=[];for(let e=0;e<i;e++){const r=360*e/i*Math.PI/180,l=t*Math.cos(r),c=t*Math.sin(r),u=l/(o*Math.cos(s*Math.PI/180)
23)*(180/Math.PI),h=c/o*(180/Math.PI);a.push([n+u,s+h])}return a.push(a[0]),a})({center:[h,u],selectedRange:s,isMiles:c,points:r}):[]),[u,h,s,c,r,a]),p=(0,i.useMemo)((()=>(({center:e,polygonCoordinates:t})=>({type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:e},properties:{}},{type:"Feature",geometry:{type:"Polygon",coordinates:[t]},properties:{}}]}))({center:[h,u],polygonCoordinates:d})),[u,h,d]);(0,i.useEffect)((()=>{e&&t&&n&&(((e,t)=>{const r=e.getSource(li);r?r.setData(t):e.addSource(li,{type:"geojson",data:t})})(e,p),(e=>{e.getLayer(ui)||e.addLayer({id:ui,type:"fill",source:ci,paint:{"fill-color":pi,"fill-opacity":.1},filter:["==",["geometry-type"],"Polygon"]}),e.getLayer(hi)||e.addLayer({id:hi,type:"line",source:ci,paint:{"line-color":pi,"line-width":2},filter:["==",["geometry-type"],"Polygon"]}),e.getLayer(di)||e.addLayer({id:di,type:"circle",source:ci,paint:{"circle-radius":["interpolate",["linear"],["zoom"],0,4,12,6,22,8],"circle-color":pi},filter:["==",["geometry-type"],"Point"]})})(e))}),[e,t,p,n]),(0,i.useEffect)((()=>{e&&t&&a&&0!==d.length&&0!==s&&n&&((e,t,r={})=>{if(0===t.length)return;const i=new(Nr().LngLatBounds);for(const e of t)i.extend(e);e.fitBounds(i,{padding:r.padding??40,duration:r.duration??3e3})})(e,d,{padding:40,duration:2500})}),[e,t,d,s,a,n])})({map:g,mapLoaded:c,isGeolocationEnabled:n}),i.createElement("div",{className:G.A.fullHeight},i.createElement("div",{id:"map-container",className:(0,B.A)(G.A.fullHeight,{[mi]:c}),"data-testid":"contacts-map"},!c&&i.createElement("p",{className:(0,B.A)(G.A.fullHeight,G.A.flex,G.A.alignCenter,G.A.flexCenter)},l)))};var yi;function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},vi.apply(null,arguments)}const _i=function(e){return(0,i.createElement)("svg",vi({xmlns:"http://www.w3.org/2000/svg",className:"refresh-outline_svg__df-icon",viewBox:"0 0 24 24"},e),yi||(yi=(0,i.createElement)("path",{d:"M12.039 19.5q-3.142 0-5.32-2.18-2.18-2.178-2.18
23-5.318t2.18-5.321Q8.896 4.5 12.038 4.5q1.753 0 3.319.78a7.1 7.1 0 0 1 2.604 2.2V4.5h1.5v6.115h-6.116v-1.5h3.95a5.9 5.9 0 0 0-2.192-2.281A5.9 5.9 0 0 0 12.039 6q-2.5 0-4.25 1.75T6.039 12t1.75 4.25 4.25 1.75a5.86 5.86 0 0 0 3.475-1.1 5.8 5.8 0 0 0 2.175-2.9h1.58q-.68 2.448-2.681 3.974t-4.55 1.526"})))},bi=({isDesktop:e,genericErrorMessage:t,mapErrorMessage:r,refreshButtonTestId:n,reloadPageLabel:s,onRefresh:o})=>{const a=(0,i.useCallback)((()=>{o?.(),window.location.reload()}),[o]);return i.createElement("div",{className:(0,B.A)(G.A.fullHeight,"knWpetiyhpTEwH_1pSMw")},e?i.createElement("button",{className:(0,B.A)(G.A.btnTransparent,G.A.flex),onClick:a,"data-testid":n,title:s},i.createElement("span",{className:G.A.icon},i.createElement(_i,{className:(0,B.A)(G.A.icon)}))):null,i.createElement("div",{className:"BAsG4VS2kIp3Y3_vHYKn"},i.createElement("h3",{className:"lvE_UrgVIgvL8lg7r7Yr"},r),i.createElement("p",null,t)))},xi=({contacts:e,isDesktop:t,isGeolocationEnabled:r,mapService:n,selectedContactId:s})=>{const{environment:o}=ce(),{dictionaryService:a,geohash:l}=yt(),c=a.getDictionary(),[u,h]=(0,i.useState)(null);var d;return u&&("dev"===(d=o)||"uat"===d||window.location.href.includes("localhost"))&&console.log("Map Error occurred:",u),u?i.createElement(bi,{isDesktop:t,genericErrorMessage:c.genericErrorMessage,mapErrorMessage:c.mapErrorMessage,reloadPageLabel:c.reloadPageLabel}
23):i.createElement(gi,{setMapError:h,mapService:n,geohash:l,isGeolocationEnabled:r,contacts:e,selectedContactId:s,mapLoadingLabel:c.mapLoadingLabel})},wi=e=>(0,i.useCallback)((t=>r=>{$t(e),t(r)}),[e]);var Ai=ae(983),Ei=ae.n(Ai);var Si;!function(e){e.CloseIcon="closeIcon",e.SearchIcon="searchIcon"}(Si||(Si={}));const Ti="http://www.w3.org/2000/svg",Ci={[Si.CloseIcon]:{iconClasses:["close-outline_svg__df-icon"],iconSvgValue:"M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6z"},[Si.SearchIcon]:{iconClasses:["mapboxgl-ctrl-geocoder--icon-search","search-outline_svg__df-icon"],iconSvgValue:"m19.6 21-6.3-6.3A6.1 6.1 0 0 1 9.5 16q-2.725 0-4.612-1.887T3 9.5t1.888-4.612Q6.775 3 9.5 3t4.613 1.888Q15.999 6.775 16 9.5a6.1 6.1 0 0 1-1.3 3.8l6.3 6.3zM9.5 14q1.875 0 3.188-1.313Q14 11.375 14 9.5t-1.313-3.188Q11.375 5 9.5 5T6.312 6.313C4.999 7.626 5 8.25 5 9.5q0 1.875 1.313 3.188Q7.625 14 9.5 14"}},Ii=(e,t)=>{const r=Ci[t];if(e){const t=document.createElementNS(Ti,"svg");t.setAttribute("width","24"),t.setAttribute("height","24"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("xmlns",Ti),t.classList.add(...r.iconClasses,"mapboxgl-ctrl-geocoder--icon");const i=document.createElementNS(Ti,"path");i.setAttribute("d",r.iconSvgValue),t.append(i),e.replaceWith(t)}},Pi=({mapService:e,className:t,testIdPrefix:r})=>{const{map:n,dictionaryService:s}=yt(),{setSearchCountry:o,setCountryFilter:l,userCountry:c}=Xe(),{remoteAppConfig:{mapboxAccessToken:u},locale:h}=ce(),p=(0,i.useRef)(null),f=(0,i.useRef)(!1),m=(0,i.useRef)(!1),g=a.k.getSearchParamValueByKey(re.Location),{enterLocationPlaceholder:y,locationFilterErrorMessage:v,locationFilterNoResultsMessage:_}=s.getDictionary(),b=(0,x.d)((()=>new(Ei())({accessToken:u,mapboxgl:Nr(),minLength:4,placeholder:y,language:h}))),w=(0,i.useCallback)((()=>{const{list:e}=b._typeahead,t=e.show;e.show=()=>{};const r=()=>{setTimeout((()=>{e.show=t,b._typeahead.clear()}),0),b.off("results",r)};b.on("results",r)}),[b]);return(0,i.useEffect)((()=>{const t=p.current;if(f.current){const e=t?.querySelector(".mapboxgl-ctrl-geocoder");e?.remove()}if(!n||!t)return;const r=b.onAdd(n);g&&(w(),b.query(g));const i=({result:t})=>{const r=t.place_name,i=(e=>{let t,r;if(e.context){const i=e.context.find((({id:e})=>e.startsWith("country.")));i&&(t=i.text,r=i.short_code)}return!t&&e.place_type.includes("country")&&(t=e.text,r=e.properties.short_code),t&&r?{code:r,name:t}:null})(t);o(i),m.current||(er(e),a.k.getSearchParamValueByKey(re.Location)!==r&&a.k.setSearchParam(re.Location,r),Ce.trackLocationFilterChange(r))},s=()=>{o(null),Yr(n),c||(l(""),a.k.removeSearchParamWithReplaceState(re.Country)),a.k.removeSearchParamByKey(re.Location)},u=()=>{Qr(".mapbox-gl-geocoder--no-results",_)},h=e=>{console.error("Something went wrong:",e),Qr(".mapbox-gl-geocoder--error",v)};b.on("result",i),b.on("clear",s),b.on("results",u),b.on("error",h),t.append(r),f.current=!0;const d=document.querySelector(".mapboxgl-ctrl-geocoder--icon-close"),y=document.querySelector(".mapboxgl-ctrl-geocoder--icon-search");return Ii(d,Si.CloseIcon),Ii(y,Si.SearchIcon),()=>{b.off("result",i),b.off("clear",s),b.off("results",u),b.off("error",h)}}),[n,b,e,c,l,o,w,y,v,_]),(({geocoder:e,map:t,isHistoryNavigationRef:r,setSearchCountry:n,suppressDropdown:s})=>{(0,i.useEffect)((()=>{const i=()=>{if(!e._inputEl||!e._typeahead)return;const i=a.k.getSearchParamValueByKey(re.Location);if(i===e._inputEl.value)return;if(!i)return e._inputEl.value="",e._typeahead.selected=null,e._typeahead.clear(),e._hideClearButton(),e.lastSelected=null,n(null),void(t&&Yr(t));s(),r.current=!0;const o=()=>{r.current=!1,e.off("result",o)};e.on("result",o),e.query(i)};return window.addEventListener("popstate",i),()=>{r.current=!1,window.removeEventListener("popstate",i)}}),[e,r,t,n,s])})({geocoder:b,map:n,isHistoryNavigationRef:m,setSearchCountry:o,suppressDropdown:w}),i.createElement("div",{className:(0,B.A)("V1mf9CFesWxsBKmXJ8sZ",t),ref:p,id:"geocoder","data-testid":(0,d.A)("location-filter",r)})},Mi=({mapService:e,testIdPrefix:t})=>{const[r,n]=(0,i.useState)(!1),[s,o]=(0,i.useState)(!0),[l,c]=(0,i.useState)(null),[h,p]=(0,i.useState)(null),{dictionary:f}=yt(),{userCountry:m,searchCountry:g,countryFilter:y,setCountryFilter:v}=Xe(),{currentCountryFilterLabel:_}=f,b=(0,i.useCallback)((async()=>{const e=a.k.getSearchParamValueByKey(re.Country);if(e){const t=await ve.getCountryNameByCode(e);t&&(p({code:e,name:t}),n(!0))}}),[]);(0,u.E)((()=>{b()}));const x=(0,i.useCallback)((()=>g?.name&&g?.code?(p(null),g):h||(m?.name&&m?.code?m:null)),[h,g,m]);(0,i.useEffect)((()=>{const e=x();if(!e?.code)return o(!0),n(!1),void c(null);e.code!==l?.code&&(o(!1),c(e),r?(v(e.code),a.k.getSearchParamValueByKey(re.Country)!==e.code&&a.k.setSearchParam(re.Country,e.code)):y&&(v(""),a.k.removeSearchParamByKey(re.Country)))}
23),[l?.code,y,x,r,v]);const w=a.k.getSearchParamValueByKey(re.Country);return(0,i.useEffect)((()=>{w?(n(!0),v(w)):n(!1);const e=x();c(e)}),[x,w,v]),i.createElement("fieldset",{className:(0,B.A)(G.A.checkbox,G.A.mb6),"data-testid":(0,d.A)("country-filter",t)},i.createElement("input",{id:"country-filter",type:"checkbox","data-testid":(0,d.A)("country-filter-checkbox",t),disabled:s,checked:r,onChange:({target:t})=>{const r=t.checked,i=x();r&&Ce.trackShowOnlyContactsFromCountry(),n(r),c(i),r&&i?.code?(er(e),v(i.code),a.k.setSearchParam(re.Country,i.code)):(v(""),a.k.removeSearchParamByKey(re.Country))}}),i.createElement("label",{htmlFor:"country-filter","data-testid":(0,d.A)("country-filter-label",t)},_,l&&`: ${l.name}`))};var ki;function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Oi.apply(null,arguments)}const Ri=function(e){return(0,i.createElement)("svg",Oi({xmlns:"http://www.w3.org/2000/svg",className:"filter-off-outline_svg__df-icon",viewBox:"0 0 24 24"},e),ki||(ki=(0,i.createElement)("path",{d:"m14.444 11.62-1.069-1.07L16.95 6H8.825l-1.5-1.5H18.49q.471 0 .684.415.212.416-.076.8zm5.36 10.307L13.5 15.623v2.992a.86.86 0 0 1-.254.631.86.86 0 0 1-.63.254h-1.231a.86.86 0 0 1-.631-.254.86.86 0 0 1-.254-.63v-5.993L2.073 4.196l1.054-1.069 17.746 17.746z"})))},Di=({clearFiltersLabel:e,onClick:t,testIdPrefix:r})=>i.createElement("button",{onClick:t,className:(0,B.A)(G.A.textBtn,G.A.textBtnSecondary),"aria-label":"Clear filters","data-testid":(0,d.A)("filter-tags-cleaner",r)},i.createElement("span",{className:(0,B.A)(G.A.icon,G.A.mr1)},i.createElement(Ri,{className:(0,B.A)(G.A.icon)})),e),Li=({entitiesToFilter:e,supportedTypes:t,testIdPrefix:r,className:n,removeLabel:s,clearFiltersLabel:o})=>{const l=(0,i.useMemo)((()=>((e,t)=>e.flatMap((e=>e.items.filter((r=>r.isSelected&&t.includes(e.type))).map((t=>({...t,onChange:e.onChange,type:e.type,searchParamName:e.searchParamName,filterCategory:e.filterCategory,filterOption:e.filterOption}))).sort(((e,t)=>e.label.localeCompare(t.label))))))(e,t)),[e,t]),c=(0,i.useMemo)((()=>Array.from(new Set(l.map((e=>e.onChange)).filter(Boolean)))),[l]),u=(0,i.useMemo)((()=>{const e=[];for(const t of l)t.searchParamName&&!e.includes(t.searchParamName)&&e.push(t.searchParamName);return e}),[l]);return i.createElement("div",{className:(0,B.A)(G.A.chipSet,G.A.alignCenter,l.length>0&&n),"data-testid":(0,d.A)("filter-tags-section",r)},l.map((e=>i.createElement(Y.H,{title:s,removeIconTitle:s,key:e.value,label:e.label,onClick:()=>((e,t,r,i,n)=>{if(r){const t=a.k.getSearchParamValueByKey(r)?.split(",").filter((t=>t!==e)).join(",");t?a.k.setSearchParam(r,t):a.k.removeSearchParamByKey(r)}t((t=>t.map((t=>({...t,isSelected:t.value!==e&&t.isSelected}))))),i&&n&&Ce.trackFilterRemove({filterCategory:i,filterOptions:n})})(e.value,e.onChange,e.searchParamName,e.filterCategory,e.filterOption||e.label),testIdPrefix:r}))),l.length>0&&i.createElement(Di,{clearFiltersLabel:o,onClick:()=>((e,t)=>{for(const t of e)t((e=>e.map((e=>({...e,isSelected:!1})))));for(const e of t)a.k.removeSearchParamByKey(e);Ce.trackClearFilters()})(c,u),testIdPrefix:r}))},Bi=(e,{productLabel:t,categoryLabel:r,productLineTagLabel:i})=>{switch(e.type){case ot.Category:return r;case ot.ProductLine:return i;default:return t}},zi=(e,t)=>{if(e)return Bi(e,t)},ji=(e,{categoryIdUrlParamKey:t,partNumberUrlParamKey:r,productLineIdUrlParamKey:i})=>{let n=r;switch(e.type){case ot.Category:n=t;break;case ot.ProductLine:n=i}return n};var Fi;!function(e){e.BusinessUnit="BusinessUnit",e.CompanyName="CompanyName",e.PartnerLevel="PartnerLevel",e.ProductLine="ProductLine",e.ServiceAuthorization="ServiceAuthorization",e.Type="Type"}(Fi||(Fi={}));const Ni=[Fi.BusinessUnit,Fi.Type,Fi.CompanyName,Fi.ProductLine,Fi.PartnerLevel,Fi.ServiceAuthorization],Ui=({testIdPrefix:e,className:t})=>{const{featureFlags:{isBusinessUnitDropdownVisible:r,isTypeDropdownVisible:n,isSearchByCompanyNameVisible:s,isDistributorsLayout:o,isPartnershipLevelFilterEnabled:a,isServiceAuthorizationFilterEnabled:l},searchBusinessSegment:c,partNumberUrlParamKey:u,categoryIdUrlParamKey:h,productLineIdUrlParamKey:d}=ce(),{dictionary:p,dictionaryService:f}=yt(),{segmentsOptions:m,setSegmentsOptions:g,typesOptions:y,setTypesOptions:v,setCompanyName:_,companyName:b,productLineFilterItem:x,onProductLineFilterSelect:w,partnershipLevelOptions:A,setPartnershipLevelOptions:E,authorizedServicesOptions:S,setAuthorizedServicesOptions:T}=Xe(),{filters:C,removeLabel:I,clearFiltersLabel:P,searchByCompanyNamePlaceholder:M}=p,k=(0,i.useMemo)((()=>f.translateSegments(m)),[f,m]),O=(0,i.useMemo)((()=>f.translateTypes(y)),[f,y]),R=(0,i.useMemo)((()=>({productLabel:C.productSelectedFilterLabel,categoryLabel:C.productCategoryLabel,productLineTagLabel:C.cmmFilterLabel})),[C]),D=(0,i.useCallback)((e=>{Ce.trackFilterRemove({filterCategory:M,filterOptions:e})}),[M]),L=(0,i.useMemo)((()=>{return[{type:Fi.BusinessUnit,items:r&&k.length>1?k:[],onChange:g,searchParamName:re.BusinessUnit},{type:Fi.Type,items:n&&O.length>1?O:[],onChange:v,searchParamName:re.Type},{type:Fi.CompanyName,items:s?[{label:b,isDisabled:!1,isSelected:Boolean(b),value:b}]:[],onChange:()=>{D(b),_("")},searchParamName:re.Company},{type:Fi.ProductLine,items:o&&Boolean(c)&&x?[{label:(e=x,t=R,`${Bi(e,t)}: ${e.label}`),isDisabled:!1,isSelected:!0,value:x.id}]:[],onChange:()=>{w(null)},searchParamName:x?ji(x,{partNumberUrlParamKey:u,categoryIdUrlParamKey:h,productLineIdUrlParamKey:d}):void 0,filterCategory:zi(x,R),filterOption:x?.label},{type:Fi.PartnerLevel,items:a?Ye(A,Qt,C):[],onChange:E,searchParamName:re.PartnerLevel,filterCategory:C.partnershipLevelLabel},{type:Fi.ServiceAuthorization,items:l?Ye(S,br,C):[],onChange:T,searchParamName:re.ServiceAuthorization,filterCategory:C.serviceAuthorizationLabel}];var e,t}),[r,k,g,n,O,v,s,b,o,c,x,R,u,h,d,a,A,C,E,l,S,T,_,w,D]);return i.createElement(Li,{entitiesToFilter:L,supportedTypes:Ni,testIdPrefix:e,className:t,removeLabel:I,clearFiltersLabel:P})};var Vi;function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Gi.apply(null,arguments)}const qi=function(e){return(0,i.createElement)("svg",Gi({xmlns:"http://www.w3.org/2000/svg",className:"refresh_svg__df-icon",viewBox:"0 0 24 24"},e),Vi||(Vi=(0,i.createElement)("path",{d:"M12.039 19.5q-3.142 0-5.32-2.18
23-2.18-2.178-2.18-5.318t2.18-5.321Q8.896 4.5 12.038 4.5q1.753 0 3.319.78a7.1 7.1 0 0 1 2.604 2.2V4.5h1.5v6.115h-6.116v-1.5h3.95a5.9 5.9 0 0 0-2.192-2.281A5.9 5.9 0 0 0 12.039 6q-2.5 0-4.25 1.75T6.039 12t1.75 4.25 4.25 1.75a5.86 5.86 0 0 0 3.475-1.1 5.8 5.8 0 0 0 2.175-2.9h1.58q-.68 2.448-2.681 3.974t-4.55 1.526"})))},Hi=({onReset:e,testIdPrefix:t,label:r,isDisabled:n})=>{const s=(0,i.useCallback)((()=>{e()}),[e]);return i.createElement("button",{className:(0,B.A)(G.A.btnTransparent,G.A.textBtnSecondary),onClick:s,type:"button",disabled:n,"data-testid":(0,d.A)("reset-filters-button",t)},i.createElement(qi,{className:G.A.icon}),i.createElement("span",{className:G.A.ml2},r))},Wi=({isVisible:e,onClick:t,testIdPrefix:r})=>{const n=(0,i.useCallback)((()=>{t()}),[t]);return i.createElement("div",{className:(0,B.A)(G.A.backdrop,{[G.A.open]:e}),onClick:n,"data-testid":(0,d.A)("modal-backdrop",r)})},Yi="icEKCg0lAoVoN4NEzQQX",Qi=({children:e,isOpen:t,isResetDisabled:r,isLoading:n,onApply:s,onClose:o,onReset:a,testIdPrefix:l,isApplyDisabled:c})=>{const{dictionaryService:u}=yt(),{filters:{filtersPanelTitle:h,cancelButtonLabel:p,applyButtonLabel:f,filtersPanelCloseButtonLabel:m,resetFiltersButtonLabel:g}}=u.getDictionary(),y=(0,i.useCallback)((()=>{Ce.trackFilterApplyClick(),s()}),[s]),v=(0,i.useCallback)((()=>{o()}),[o]),_=(0,i.useCallback)((()=>{a()}),[a]);return i.createElement(i.Fragment,null,i.createElement("div",{className:(0,B.A)("ZlTA3r1rdfHE0TpYwfys",{[Yi]:t}),"data-testid":(0,d.A)("filters-panel",l)},i.createElement("div",{"data-testid":(0,d.A)("filters-panel-header",l),className:(0,B.A)("NxRMoSy_BOxE4xM8pdTB",G.A.modalHeader,G.A.pb6)},i.createElement("button",{className:(0,B.A)(G.A.modalCloseBtn),onClick:v,"data-testid":(0,d.A)("filters-panel-close-button",l),title:m},i.createElement(cr,{className:(0,B.A)(G.A.icon)})),i.createElement("div",{className:(0,B.A)(G.A.flex,G.A.flexBetween,G.A.alignCenter)},i.createElement("h2",{className:G.A.modalTitle},h),i.createElement(Hi,{isDisabled:r,label:g,onReset:_,testIdPrefix:l}))),i.createElement("div",{className:(0,B.A)(G.A.modalBody,"ZkwgxlZpyiUV21CM65G5"),"data-testid":(0,d.A)("filters-panel-body",l)},e),i.createElement("div",{className:(0,B.A)("MrY6PLmfL4J70azAn948",G.A.modalFooter),"data-testid":(0,d.A)("filters-panel-footer",l)},i.createElement("div",{className:(0,B.A)(G.A.flex,"cAwOQZHvPIT46jATsZJw")},i.createElement("button",{onClick:v,className:(0,B.A)(G.A.btnSecondary,G.A.mr6),"data-testid":(0,d.A)("filters-panel-cancel-button",l)},p),i.createElement(w.l,{onClick:y,"data-testid":(0,d.A)("filters-panel-apply-button",l),disabled:c||n,isLoading:n,loadingIconTitle:""},f)))),i.createElement(Wi,{isVisible:t,onClick:v,testIdPrefix:l}))},Zi=({searchIndexName:e,useSharedApiKey:t,algoliaApiBaseUrl:r,searchAppName:n,businessSegment:s,isUserLoggedIn:o,auth0BaseUrl:a,children:l,sharedApiKeyPurposeType:c})=>{const u=pt(a);return t?i.createElement(X.r,{algoliaApiBaseUrl:r,algoliaAppName:n,businessSegment:s,searchApiKeyPurposeType:c},i.createElement(Z.L,{indexName:e,excludeEmptyQuerySearch:!0},l)):i.createElement(Q.l,null,i.createElement(X.r,{algoliaApiBaseUrl:r,algoliaAppName:n,businessSegment:s,isUserLoggedIn:o,getAccessToken:u,searchApiKeyPurposeType:K.fB},i.createElement(Z.L,{indexName:e,excludeEmptyQuerySearch:!0},l)))},Xi=({children:e,auth0BaseUrl:t,algoliaApiBaseUrl:r,searchAppName:n,searchBusinessSegment:s,searchIndexName:o,sharedApiKeyPurposeType:a,isUserLoggedIn:l=!1,useSharedApiKey:c=!0})=>i.createElement(Zi,{algoliaApiBaseUrl:r,businessSegment:s,isUserLoggedIn:l,auth0BaseUrl:t,searchAppName:n,searchIndexName:o,useSharedApiKey:c,sharedApiKeyPurposeType:a},e),Ki=({className:e,isSelected:t,children:r,testIdPrefix:n,...s})=>i.createElement("button",{className:(0,B.A)(e,{[G.A.selected]:t}),role:"checkbox","aria-checked":t,"data-testid":(0,d.A)("content-switch-button",n),...s},r),Ji=({className:e,items:t,isFullWidth:r,selectedId:n,children:s,testIdPrefix:o,onSelectedIdChange:a})=>{if(0===t.length)throw new Error("Please provide the items");const l=(0,i.useCallback)((e=>{a(e)}),[a]);return i.createElement("div",{className:e,"data-testid":(0,d.A)("content-switch",o)},i.createElement("section",{className:(0,B.A)("wwVLqzSKsEivR02gHTUF",G.A.contentSwitch,G.A.mb6,{[G.A.fullWidth]:r})},t.map((({id:e,renderElement:t})=>i.createElement(Ki,{key:e,className:r?"ZPhklVfDg8wZgfa7UOYw":void 0,isSelected:n===e,onClick:()=>{l(e)},"data-testid":(0,d.A)(`content-switch-button-${e}`,o)},t)))),s(n))},$i=({id:e,selectedId:t,children:r,testIdPrefix:n})=>i.createElement("div",{className:(0,B.A)({[G.A.hidden]:t!==e}),"data-testid":(0,d.A)("content-switch-content-container",n)},r),en={iconId:"part-number-finder"},tn=({className:e,locale:t,businessSegment:r,testIdPrefix:n,selectedProductTagLabel:s,isForceInputReset:o,onProductSelect:a})=>{const{dictionary:l}=yt(),{filters:{partNumberSearchPlaceholder:c,discontinuedProductMessage:u,inLabel:h,noResultsMessageForPartNumbers:p,productSelectedFilterLabel:f}}=l,{remoteAppConfig:{portfolioApiBaseUrl:m,mosaicAssetsCdnUrl:g,productsIndexName:y},renderImage:v,renderLink:_,featureFlags:{isMultiLanguageEnabled:b,isIdOverHeadlineInProduct:x},auth0BaseUrl:w,isUserLoggedIn:A}=ce(),E=(0,i.useCallback)((()=>{Ce.trackFilterRemove({filterCategory:f,filterOptions:String(s)}),a(null)}),[a,s,f]),S=(0,i.useCallback)((e=>{Ce.trackFilterSearch(e.item.id),a(e.item)}),[a]),T=pt(w);return i.createElement("div",{className:(0,B.A)(e),"data-testid":(0,d.A)("product",n)},i.createElement(J.q,{inputPlaceholder:c,autoCompleteId:"part-number-filter",searchButtonProps:en,fetchAccessToken:T,isLocalizationEnabled:b,isIdOverHeadline:x,locale:t,onProductSelect:S,businessSegment:r,portfolioApiBaseUrl:m,inLabel:h,discontinuedProductMessage:u,mosaicAssetsCdnUrl:g,productsIndexName:y,renderLink:_,renderImage:v,auth0BaseUrl:w,isUserLoggedIn:A,noOptionsMessage:p,shouldRenderItemAsLink:!1,optionsLimit:10,isForceInputReset:o,testIdPrefix:n,showNoOptions:!0,shouldClearQueryOnSelect:!0}),s?i.createElement(Y.H,{label:s,className:(0,B.A)(G.A.mt4),onClick:E,testIdPrefix:n}):null)},rn=({selectedProductCategory:e,onCategorySelect:t,isForceFinderReset:r})=>{const{dictionaryService:n}=yt(),{featureFlags:{isMultiLanguageEnabled:s},locale:o,remoteAppConfig:{portfolioApiBaseUrl:a},searchBusinessSegment:l}=ce(),c=n.getDictionary(),u=(0,i.useMemo)((()=>({suggestionMessage:c.filters.productCategoryDisclaimer,searchInputPlaceholder:c.filters.productCategoryPlaceholder,searchInputClearButtonLabel:c.clearLabel,noResultsMessage:c.filters.noResultsMessageForCategories,selectedCategoriesTitle:c.filters.selectedCategoryLabel,noSelectionMessage:c.filters.noCategorySelectedPlaceholder,removeSelectionLabel:c.removeLabel,expandButtonLabel:c.filters.expandLabel,collapseButtonLabel:c.filters.collapseLabel,searchButtonLabel:c.searchLabel})),[c]),h=(0,i.useCallback)((e=>{t(e[0])}),[t]),d=(0,i.useCallback)((e=>{Ce.trackFilterSearch(e)}),[]);return i.createElement($.f,{apiBaseUrl:a,businessSegment:l,locale:s?o:ut,onSelectedCategoriesChange:h,preselectedCategoryIds:e,isForceFinderReset:r,dictionary:u,trackFilterSearchGtmEvent:d})},nn=({locale:e,productLineFilterItem:t,testIdPrefix:r,selectedTabId:n,isForceFinderReset:s,businessSegment:o,onProductLineFilterSelect:a,onSelectedTabIdChange:l,auth0BaseUrl:c,algoliaApiBaseUrl:u,searchAppName:h,isUserLoggedIn:p})=>{const{dictionaryService:f}=yt(),{featureFlags:{isExclusiveToOtherCustomersEnabled:m}}=ce(),{filters:{productCategoryLabel:g,partNumberLabel:y,filtersPanelSubtitle:v}}=f.getDictionary(),_=(0,i.useMemo)((()=>((e,t)=>[{id:ot.Category,renderElement:e},{id:ot.Product,renderElement:t}])(g,y)),[y,g]),b=pt(c),x=(0,i.useCallback)((e=>{a(e?at(e.id,e.productLineName):null)}),[a]),w=(0,i.useCallback)((e=>{e?Ce.trackFilterSelect({filterCategory:g,filterOptions:e.label}):t?.type===ot.Category&&Ce.trackFilterRemove({filterCategory:g,filterOptions:t.label}),a(e?ct(e):null)}),[a,g,t]),A=(0,i.useMemo)((()=>
23{if(t?.type===ot.Product)return t.label}),[t]),E=(0,i.useMemo)((()=>t?.type===ot.Category?[t.id]:[]),[t]),S=(0,i.useCallback)((e=>{Ce.trackTabSwitch(String(_.find((t=>t.id===e))?.renderElement)),l(e)}),[l,_]);return i.createElement("section",{"data-testid":(0,d.A)("product-line-filters-group",r)},i.createElement("h5",null,v),i.createElement(Ji,{className:(0,B.A)("LfnIxPkTC74f0D5H1APO",G.A.mt5),items:_,selectedId:n,onSelectedIdChange:S,testIdPrefix:r,isFullWidth:!0},(t=>i.createElement(i.Fragment,null,i.createElement($i,{id:ot.Category,selectedId:t,testIdPrefix:r},i.createElement(rn,{onCategorySelect:w,selectedProductCategory:E,isForceFinderReset:s})),i.createElement($i,{id:ot.Product,selectedId:t,testIdPrefix:r},i.createElement(X.r,{algoliaApiBaseUrl:u,algoliaAppName:h,businessSegment:o,isUserLoggedIn:p,getAccessToken:b,searchApiKeyPurposeType:m?K.pD:K.fB},i.createElement(Z.L,{excludeEmptyQuerySearch:!0},i.createElement(tn,{locale:e,selectedProductTagLabel:A,onProductSelect:x,isForceInputReset:s,businessSegment:o,testIdPrefix:r}))))))))},sn=({locale:e,searchBusinessSegment:t,searchAppName:r,algoliaApiBaseUrl:n,productLineFilterItem:s,onProductLineFilterSelect:o,testIdPrefix:a,selectedTabId:l,onSelectedTabIdChange:c,isForceFinderReset:u,auth0BaseUrl:h,isUserLoggedIn:d,useSharedApiKey:p,sharedApiKeyPurposeType:f})=>i.createElement(Xi,{algoliaApiBaseUrl:n,searchAppName:r,searchBusinessSegment:t,auth0BaseUrl:h,useSharedApiKey:p,isUserLoggedIn:d,sharedApiKeyPurposeType:f},i.createElement(nn,{productLineFilterItem:s,onProductLineFilterSelect:o,testIdPrefix:a,selectedTabId:l,onSelectedTabIdChange:c,isForceFinderReset:u,locale:e,businessSegment:t,algoliaApiBaseUrl:n,auth0BaseUrl:h,searchAppName:r,isUserLoggedIn:d})),on=({title:e,className:t,onChange:r,filterOptions:n,testIdPrefix:s,cmsLabelMap:o,cmsFiltersSection:a})=>{const l=(0,i.useCallback)((t=>{const i=n.map((e=>e.value===t.value?{...e,isSelected:!e.isSelected}:e)),s=n.find((e=>e.value===t.value));s?.isSelected?Ce.trackFilterRemove({filterCategory:e,filterOptions:t.label}):Ce.trackFilterSelect({filterCategory:e,filterOptions:t.label}),r(i)}),[r,n,e]);return i.createElement("div",{className:t,"data-testid":(0,d.A)("list",s)},i.createElement("h5",null,e),i.createElement("div",{className:(0,B.A)(G.A.mt2,G.A.flexColumn,G.A.flex)},n.map((e=>i.createElement(ee.C,{label:He(a,o,e.label),value:e.value,key:e.value,isChecked:e.isSelected,onChange:()=>l(e),className:(0,B.A)(G.A.mt1)})))))},an=e=>e.some((e=>e.isSelected)),ln=e=>e((e=>e.map((e=>({...e,isSelected:!1}))))),cn=e=>e?.type===ot.ProductLine?ot.Category:e?.type??ot.Category,un=({isPanelOpen:e,mapService:t,onPanelClose:r,testIdPrefix:n,portfolioApiClient:s})=>{const{locale:o,remoteAppConfig:{algoliaApiBaseUrl:l,searchAppName:c},searchBusinessSegment:u,partNumberUrlParamKey:h,categoryIdUrlParamKey:p,productLineIdUrlParamKey:f,featureFlags:{isPartnershipLevelFilterEnabled:m,isServiceAuthorizationFilterEnabled:g},auth0BaseUrl:y,isUserLoggedIn:_,useSharedApiKey:b,sharedApiKeyPurposeType:x}=ce(),{filters:w}=yt().dictionary,{partnershipLevelLabel:A,serviceAuthorizationLabel:E}=w,{productLineFilterItem:S,onProductLineFilterSelect:T,partnershipLevelOptions:C,setPartnershipLevelOptions:I,authorizedServicesOptions:P,setAuthorizedServicesOptions:M}=Xe(),{handleCheckboxFiltersSelection:k,handleProductSelection:O}=(({partNumberUrlParamKey:e,categoryIdUrlParamKey:t,productLineIdUrlParamKey:r})=>({handleProductSelection:(0,i.useCallback)(((i,n)=>{if(n(i),(e=>{for(const t of e)a.k.removeSearchParamByKey(t)})([e,t,r]),i){const n=ji(i,{partNumberUrlParamKey:e,categoryIdUrlParamKey:t,productLineIdUrlParamKey:r});a.k.setSearchParam(n,i.id)}}),[t,e,r]),handleCheckboxFiltersSelection:(0,i.useCallback)(((e,t,r)=>{t(e);const i=e.filter((e=>e.isSelected)).map((e=>e.value));i.length>0?a.k.setSearchParam(r,i.join(",")):a.k.removeSearchParamByKey(r)}),[])}))({partNumberUrlParamKey:h,categoryIdUrlParamKey:p,productLineIdUrlParamKey:f}),[R,D]=(0,i.useState)(S),[L,z]=(0,i.useState)(C),[j,F]=(0,i.useState)(P),[N,U]=(0,i.useState)(ot.Category),[V,q]=(0,i.useState)(!1),[H,W]=(0,i.useState)(!1);(0,i.useEffect)((()=>{q(!e)}),[e]),(0,i.useEffect)((()=>{D(S),U(cn(S))}),[S]),(0,i.useEffect)((()=>{z(C)}),[C]),(0,i.useEffect)((()=>{F(P)}),[P]);const Y=(0,i.useCallback)((async()=>
23{if($t(t),R?.type===ot.Category){W(!0);try{await ht({algoliaApiBaseUrl:l,categoryItem:R,portfolioApiClient:s,onApply:e=>{O(e,T)}})}finally{W(!1),r()}}else O(R,T),r();L&&k(L,I,re.PartnerLevel),j&&k(j,M,re.ServiceAuthorization),U(R?.type??ot.Category)}),[l,k,O,t,r,T,L,s,R,j,M,I]),Q=(0,i.useCallback)((()=>{D(S),U(cn(S)),z(C),F(P),r()}),[r,C,S,P]),Z=(0,i.useCallback)((e=>{D(e)}),[]),X=(0,i.useCallback)((()=>{D(null),U(ot.Category),q(!0),ln(z),ln(F),Ce.trackClearFilters()}),[]),K=(0,i.useMemo)((()=>!(R||S||an(L)||an(C)||an(j)||an(P))||R?.id===S?.id&&R?.type===S?.type&&L===C&&j===P),[L,C,R,S,j,P]),J=(0,i.useMemo)((()=>!R&&!an(L)&&!an(j)),[L,R,j]);return(0,i.useEffect)((()=>(e&&(q(!1),(0,v.Ip)()),()=>{e&&(0,v.PL)()})),[K,e]),i.createElement(Qi,{isOpen:e,isResetDisabled:J,isApplyDisabled:K,isLoading:H,onApply:Y,onClose:Q,onReset:X,testIdPrefix:n},u&&i.createElement(sn,{algoliaApiBaseUrl:l,searchBusinessSegment:u,searchAppName:c,productLineFilterItem:R,onProductLineFilterSelect:Z,testIdPrefix:n,selectedTabId:N,onSelectedTabIdChange:U,isForceFinderReset:V,auth0BaseUrl:y,useSharedApiKey:b,isUserLoggedIn:_,locale:o,sharedApiKeyPurposeType:x}),m&&i.createElement(on,{className:(0,B.A)(G.A.mt3),onChange:z,filterOptions:L,cmsLabelMap:Qt,cmsFiltersSection:w,title:A,testIdPrefix:(0,d.A)("partner-levels",n)}),g&&i.createElement(on,{className:(0,B.A)(G.A.mt3),onChange:F,filterOptions:j,cmsLabelMap:br,cmsFiltersSection:w,title:E,testIdPrefix:(0,d.A)("service-authorization",n)}))},hn=({radius:e,radiusLabel:t,isMiles:r,distanceUnitLabel:i,distanceUnitMiLabel:n})=>`${e} ${r?n:i} ${t}`,dn=e=>e.label,pn=e=>String(e.value),fn=({testIdPrefix:e,radiusLabel:t,rangeTooltipMessage:r,isGeolocationEnabled:n,mapService:s,distanceUnitLabel:o,distanceUnitMiLabel:a,cleanLabel:l})=>{const{selectedRange:c,setSelectedRange:u,userCountry:h}=Xe(),p=(0,i.useMemo)((()=>fi(h?.code)),[h]),f=(0,i.useMemo)((()=>(({isMiles:e,radiusLabel:t,distanceUnitLabel:r,distanceUnitMiLabel:i})=>Object.values(Me).filter((e=>"number"==typeof e)).map((n=>({value:n,label:hn({radius:n,isMiles:e,radiusLabel:t,distanceUnitLabel:r,distanceUnitMiLabel:i})}))))({radiusLabel:t,isMiles:p,distanceUnitLabel:o,distanceUnitMiLabel:a})),[t,p,o,a]),m=(0,i.useCallback)((e=>{$t(s),Ce.trackFilterSelect({filterCategory:t,filterOptions:e.detail.value.label}),u(e.detail.value.value)}),[s,u,t]),g=(0,i.useMemo)((()=>f.find((e=>e.value===c))),[f,c]);return i.createElement("div",{className:(0,B.A)(G.A.flex,G.A.alignCenter,"QYJha6ryzY3lzCz8ScDr",Rt)},i.createElement(z.DfSelect,{name:"range-selector",options:f,onSelectChange:m,"data-testid":(0,d.A)("dropdown",e),className:(0,B.A)(G.A.fullWidth),getOptionLabel:dn,value:g,getOptionValue:pn,disabled:!n,cleanLabel:l}),!n&&i.createElement(z.DfTooltip,{className:(0,B.A)("FSlS9esX3DJ6DcLLjfaE"),trigger:"hover",placement:"right","data-testid":(0,d.A)("tooltip-info",e)},i.createElement("span",{className:(0,B.A)(G.A.icon),slot:"tooltip-reference","aria-label":"Display right tooltip on hover"},i.createElement(A.m,{title:""})),i.createElement("span",{slot:"tooltip-content","data-testid":(0,d.A)("tooltip-info-content",e)},r)))},mn=({mapService:e,testIdPrefix:t,isRangeFilterEnabled:r,isGeolocationEnabled:n,portfolioApiClient:s})=>{const[o,a]=(0,i.useState)(!1),l=(0,i.useCallback)((()=>{Ce.trackFilterButtonClick(),a(!0)}),[]),c=(0,i.useCallback)((()=>{a(!1)}),[]),{dictionary:{filters:{filtersButtonLabel:u,radiusLabel:h,rangeSelectorDisableMessage:p},distanceUnitLabel:f,distanceUnitMiLabel:m,clearLabel:g}}=yt(),y=(()=>{const{productLineFilterItem:e,partnershipLevelOptions:t,authorizedServicesOptions:r}=Xe();return[e&&e.type!==ot.ProductLine?1:0,t.filter((e=>e.isSelected)).length,r.filter((e=>e.isSelected)).length].reduce(((e,t)=>e+t),0)})();return i.createElement("div",{className:G.A.mb6},i.createElement("div",{className:(0,B.A)(G.A.flex,"lEWVTCs5gmd5Qc_iuy4g")},i.createElement(Pi,{mapService:e,testIdPrefix:t}),r&&i.createElement(fn,{radiusLabel:h,rangeTooltipMessage:p,isGeolocationEnabled:n,distanceUnitLabel:f,distanceUnitMiLabel:m,mapService:e,cleanLabel:g}),i.createElement("button",{className:G.A.btnPrimary,onClick:l,"data-testid":(0,d.A)("filters-button",t),"aria-label":"Filters"},u,y?` (${y})`:"")),i.createElement(Ui,{testIdPrefix:t,className:G.A.pt3}),i.createElement(un,{isPanelOpen:o,onPanelClose:c,testIdPrefix:t,mapService:e,portfolioApiClient:s}))},gn=({testIdPrefix:e,label:t,className:r})=>{const{shouldGroupByPartnership:n,setShouldGroupByPartnership:s}=Xe(),o=(0,i.useCallback)((()=>{Ce.trackGroupByPartnershipClick(),s((e=>!e))}),[s]);return i.createElement(E.T,{id:"group-by-partnership-toggle",checked:n,onChange:o,testIdPrefix:e,className:r},t)},yn=({contacts:e,selectedContactId:t,isDataLoading:r,error:n,isGeolocationEnabled:s,mapService:o,totalLocationsCount:a,testIdPrefix:l,portfolioApiClient:c})=>{const{isBusinessUnitDropdownVisible:u,isBusinessUnitValueVisible:h,isDistributorsLayout:p,isFilterByCountryVisible:f,isTypeDropdownVisible:m,isContactUsBadgesEnabled:g,isRangeFilterEnabled:y,isGroupByPartnershipEnabled:v}=ce().featureFlags,{dictionaryService:_,dictionary:b}=yt(),{segmentsOptions:x,setSegmentsOptions:w,typesOptions:A,setTypesOptions:E}=Xe(),{contactDetails:{businessUnitLabel:S,typeLabel:T},filters:{groupByPartnershipSwitchLabel:C},distributorsSubtitle:I,clearLabel:P}=b,M=(0,i.useMemo)((()=>_.translateSegments(x)),[_,x]),k=(0,i.useMemo)((()=>_.translateTypes(A)),[_,A]),O=wi(o);return i.createElement("section",{className:(0,B.A)(G.A.flex,G.A.flexColumn,G.A.fullHeight,"ynNXboBU2msI9ZY6craq")},p&&i.createElement(mn,{mapService:o,isRangeFilterEnabled:y,isGeolocationEnabled:s,portfolioApiClient:c}),i.createElement("div",{className:(0,B.A)("BbYs5NOtsBlKfJkXRC_r")},i.createElement("div",{className:(0,B.A)(G.A.row,G.A.fullHeight,G.A.m0)},i.createElement("div",{className:(0,B.A)(G.A.col4,G.A.flex,G.A.flexColumn,G.A.fullHeight,G.A.pl0)},!p&&i.createElement("div",{className:(0,B.A)(G.A.flex,"g9Pp5ZCGcc3gkr8B7Ino",G.A.mb6)},i.createElement(Pi,{mapService:o,testIdPrefix:l})),p&&i.createElement("div",{className:(0,B.A)(G.A.flex,G.A.flexBetween,G.A.alignCenter,G.A.mb6,G.A.flexWrap,"q2iU8ctGI0HPGtbgz7Mv")},i.createElement("h3",null,`${I} (${a})`),v&&i.createElement(gn,{label:C,testIdPrefix:l})),f&&!p&&i.createElement(Mi,{testIdPrefix:l,mapService:o}),i.createElement("div",{className:(0,B.A)(G.A.flex,"VGRKZGbtbfHpwaP426hH")},i.createElement(Lt,{contentType:S,isVisible:u&&x.length>1,options:M,onChange:O(w),testIdPrefix:(0,d.A)("business-unit",l),searchParamName:re.BusinessUnit,cleanLabel:P}),i.createElement(Lt,{contentType:T,isVisible:m&&A.length>1,options:k,onChange:O(E),testIdPrefix:(0,d.A)("type",l),searchParamName:re.Type,cleanLabel:P})),i.createElement(ir,{mapService:o}),f&&p&&i.createElement(Mi,{testIdPrefix:l,mapService:o}),i.createElement(zr,{isDataLoading:r,contacts:e,error:n,isGeolocationEnabled:s,mapService:o,isBusinessUnitValueVisible:h,testIdPrefix:l,selectedContactId:t,isContactUsBadgesEnabled:g,isDistributorsLayout:p})),i.createElement("div",{className:(0,B.A)(G.A.col8,G.A.flex,G.A.flexColumn,G.A.fullHeight,G.A.pr0)},!p&&i.createElement(Ui,{testIdPrefix:l,className:G.A.pb6}),i.createElement(xi,{isDesktop:!0,mapService:o,contacts:e,isGeolocationEnabled:s,selectedContactId:t})))))},vn=({contacts:e,selectedContactId:t,isDataLoading:r,error:n,isGeolocationEnabled:s,mapService:o,testIdPrefix:a,totalLocationsCount:l,portfolioApiClient:c})=>{const{isBusinessUnitDropdownVisible:u,isBusinessUnitValueVisible:h,isDistributorsLayout:p,isFilterByCountryVisible:f,isTypeDropdownVisible:m,isContactUsBadgesEnabled:g,isRangeFilterEnabled:y,isGroupByPartnershipEnabled:v}=ce().featureFlags,{dictionaryService:_,dictionary:b}=yt(),{segmentsOptions:x,setSegmentsOptions:w,typesOptions:A,setTypesOptions:E}=Xe(),{contactDetails:{businessUnitLabel:S,typeLabel:T},filters:{groupByPartnershipSwitchLabel:C},distributorsSubtitle:I,clearLabel:P}=b,M=(0,i.useMemo)((()=>_.translateSegments(x)),[_,x]),k=(0,i.useMemo)((()=>_.translateTypes(A)),[_,A]),O=wi(o),R=(0,i.useMemo)((()=>i.createElement(i.Fragment,null,i.createElement(Lt,{contentType:S,isVisible:u&&x.length>1,options:M,onChange:O(w),testIdPrefix:(0,d.A)("business-unit",a),searchParamName:re.BusinessUnit,cleanLabel:P}),i.createElement(Lt,{contentType:T,isVisible:m&&A.length>1,options:k,onChange:O(E),testIdPrefix:(0,d.A)("type",a),searchParamName:re.Type,cleanLabel:P}),i.createElement(ir,{mapService:o}),v&&i.createElement(gn,{label:C,testIdPrefix:a,className:"OjGcIvAHJBfuIrzWx8Cg"}))),[S,u,x.length,M,O,w,a,P,T,m,A.length,k,E,o,v,C]);return i.createElement("section",{className:"tUf6r1UgqYzrosaHGwPT"},p?i.createElement(mn,{mapService:o,isGeolocationEnabled:s,isRangeFilterEnabled:y,portfolioApiClient:c}):i.createElement(i.Fragment,null,i.createElement(Pi,{mapService:o,className:G.A.mb6,testIdPrefix:a}),f&&i.createElement(Mi,{testIdPrefix:a,mapService:o}),R,i.createElement(Ui,{testIdPrefix:a,className:G.A.pb6})),i.createElement("div",{className:(0,B.A)("l6M5BfJSoCfRwprqy25f",G.A.mb6)},i.createElement(xi,{isDesktop:!0,mapService:o,isGeolocationEnabled:s,contacts:e,selectedContactId:t})),p&&i.createElement(i.Fragment,null,i.createElement("div",{className:(0,B.A)(G.A.flex,G.A.flexBetween,G.A.alignCenter,G.A.mb6,G.A.flexWrap,"rh8ANaHPbMa3VKG7f0do")},i.createElement("h3",null,`${I} (${l})`),v&&i.createElement(gn,{label:C,testIdPrefix:a,className:"Nezy8T6HvppFolBfJQSG"})),R,f&&i.createElement(Mi,{testIdPrefix:a,mapService:o})),i.createElement(zr,{isDataLoading:r,contacts:e,error:n,isGeolocationEnabled:s,mapService:o,isBusinessUnitValueVisible:h,testIdPrefix:a,selectedContactId:t,isContactUsBadgesEnabled:g,isDistributorsLayout:p}))},_n=({isOpen:e,testIdPrefix:t,onClose:r})=>{const{dictionary:n}=yt(),{filters:s,contactDetails:{closeIconLabel:o}}=n,{partnershipLevelModalDisclaimer:a,partnershipLevelModalTitle:l}=s,c=(0,i.useCallback)((()=>i.createElement("footer",{className:(0,B.A)(G.A.flex,G.A.flexEnd,G.A.fullWidth)},i.createElement("button",{className:(0,B.A)(G.A.btnPrimary),onClick:r},o))),[o,r]);return(0,i.useEffect)((()=>(window.addEventListener("modalClose",r),()=>{window.removeEventListener("modalClose",r)})),[r]),i.createElement(m.x,{isOpen:e,heading:l,isBodyOverflow:!1,isBodyFocusable:!1,closeOnBackdropClick:!0,modalAriaLabel:"Partnership levels details pop-up opened",testIdPrefix:t,modalId:"partnership-levels-modal",contentClassName:"PU7Xr7EixE9NkLgGWF3t",renderFooterContent:c,keepSpacingOnMobile:!1},Zt.map((e=>i.createElement("div",{key:e,className:(0,B.A)(G.A.flex,G.A.alignCenter,G.A.mb3)},i.createElement(Cr,{levelLabel:e,className:(0,B.A)("sPz3kcfU3q9wiSG5lYNU",G.A.mr3)}),i.createElement("p",{className:(0,B.A)(G.A.textStrong)},e,":"," ",i.createElement("span",{className:(0,B.A)(G.A.textRegular)},s[Yt[e]]))))),i.createElement("p",null,a))},bn=({baseDescription:e,clickHereLabel:t,wrapperClassName:r,buttonClassName:n,openModal:s,testIdPrefix:o})=>{const a=(0,i.useMemo)((()=>(0,S.MY)(e,{clickHereLabel:`<button class="${n}">${t}</button>`},!1)),[e,t]),l=(0,i.useCallback)((e=>{const t=e.target;"button"===t.tagName.toLowerCase()&&(Ce.trackPartnershipInfoClick(),s(),t.blur())}),[s]),c=(0,i.useMemo)((()=>({onClick:l,"data-testid":(0,d.A)("click-here-button",o)})),[l,o]);return i.createElement("p",{className:r,"data-testid":(0,d.A)("base-description",o)},(0,T.gT)({htmlString:a,elementProps:c,useStyleProperty:!0,preventDefaultStyles:!0}))},xn=e=>{const[t]=(0,C.Q)({screenBreakpoints:["md"]}),{setIsLoading:r}=yt(),{dictionary:n}=yt(),{filters:{findDistributorPageDescription:s,clickHereButtonLabel:o}}=n,a=(0,i.useMemo)((()=>new It),[]),{isGeolocationEnabled:l,isGeolocationEnabledRef:c,onEnabled:d,onDisabled:p}=(e=>{const[t,r]=(0,i.useState)(!1),n=(0,i.useRef)(!1);return{isGeolocationEnabled:t,onEnabled:(0,i.useCallback)((()=>{r(!0),n.current=!0}),[]),onDisabled:(0,i.useCallback)((t=>{r(!1),n.current=!1,t&&e.dispatchGeolocationServiceErrorEvent()}),[e]),isGeolocationEnabledRef:n}})(a),{isContactUsBadgesEnabled:f}=ce().featureFlags;(0,u.E)((()=>{_t.initGeolocationPosition(d,p)}));const m=(()=>{const{remoteAppConfig:{portfolioApiBaseUrl:e},searchBusinessSegment:t}=ce();return(0,i.useMemo)((()=>
23{if(e&&t)return((e,t,r)=>function(e,t=Ot){return{cfhById:(r,i,n)=>t((t=>e.request({document:Pt,variables:r,requestHeaders:{...i,...t},signal:n})),"cfhById","query",r),productById:(r,i,n)=>t((t=>e.request({document:Mt,variables:r,requestHeaders:{...i,...t},signal:n})),"productById","query",r),productsById:(r,i,n)=>t((t=>e.request({document:kt,variables:r,requestHeaders:{...i,...t},signal:n})),"productsById","query",r)}}((0,U.zF)({endpoint:`${e}/graphql`,config:{...r,headers:{[h.UP]:t,...r?.headers}}})))(e,t)}),[e,t])})();gt(r,c,m);const{isOpen:g,isContentVisible:y,onOpen:v,onClose:_}=(0,I.$)();return i.createElement(i.Fragment,null,i.createElement("div",{className:(0,B.A)(G.A.flex,G.A.flexColumn,G.A.fullHeight)},f&&i.createElement(bn,{...e,baseDescription:s,clickHereLabel:o,wrapperClassName:(0,B.A)(G.A.mb6),buttonClassName:(0,B.A)("_GLxzGDg2qAcntfD_9qG",G.A.btnTransparent,G.A.linkPrimary),openModal:v}),t?i.createElement(vn,{...e,isGeolocationEnabled:l,mapService:a,portfolioApiClient:m}):i.createElement(yn,{...e,isGeolocationEnabled:l,mapService:a,portfolioApiClient:m})),f&&y&&i.createElement(_n,{...e,isOpen:g,onClose:_}))},wn="k1Prq3hj2ulfz6IZ7PTR",An=({segments:e,sourceChannel:t,testIdPrefix:r,types:n,dictionaryService:s,partnershipLevels:o,authorizedServices:l,className:c})=>{const{partNumberUrlParamKey:h,featureFlags:p,searchBusinessSegment:f,categoryIdUrlParamKey:m,remoteAppConfig:{auth0IssuerBaseUrl:g},auth0RedirectUrl:y,authClientId:v,isUserLoggedIn:_,productLineIdUrlParamKey:b}=ce(),{segmentsOptions:x,typesOptions:w,companyName:A,productLineFilterItem:E,countryFilter:S,setCompanyName:T,setCountryFilter:C,setSegmentsOptions:I,setTypesOptions:P,setSearchCountry:M,typesQueryRef:k,segmentsQueryRef:O,countryQueryRef:R,searchQueryRef:D,productLineFilterItemRef:L,currentMapCoordinatesRef:j,partnershipLevelQueryRef:F,partnershipLevelOptions:U,setPartnershipLevelOptions:V,authorizedServicesOptions:q,setAuthorizedServicesOptions:H,authorizedServicesQueryRef:W}=Xe(),[Y,Q]=(0,i.useState)((()=>a.k.getSearchParamValueByKey(re.ContactId))),[Z,X]=(0,i.useState)((({partNumberUrlParamKey:e,productLineIdUrlParamKey:t,categoryIdUrlParamKey:r,isDistributorsLayout:i,searchBusinessSegment:n})=>{const s=(e=>{const t=mt();return ft(t,e)})([r,e,t]);if(s?.value){if(s?.key===t)return Boolean(i);if(s?.key===e||s?.key===r)return Boolean(i&&n)}return!1})({partNumberUrlParamKey:h,categoryIdUrlParamKey:m,productLineIdUrlParamKey:b,isDistributorsLayout:p.isDistributorsLayout,searchBusinessSegment:f})),[K,J]=(0,i.useState)([]),[$,ee]=(0,i.useState)(0),te=(0,i.useRef)(!1),ie=ai(),ne=(0,i.useCallback)((e=>{ee(e.dataCount)}),[]),{data:se,isLoading:oe,error:ae,fetchData:le}=tt({initialData:[],getMappedData:st,service:ie.getLocations,onCompleted:ne}),{data:ue,fetchData:he}=tt({initialData:[],getMappedData:st,service:ie.getLocation}),{data:de,fetchData:pe}=tt({initialData:[],getMappedData:nt,service:ie.getGeohash});(({segments:e,types:t,partnershipLevels:r,authorizedServices:n,selectedContactId:s,setCompanyName:o,setCountryFilter:l,setSelectedContactId:c,setSegmentsOptions:h,setTypesOptions:d,setSearchCountry:p,setPartnershipLevelOptions:f,setAuthorizedServicesOptions:m,onSelectedContactIdChange:g})=>{const{isPartnershipLevelFilterEnabled:y,isServiceAuthorizationFilterEnabled:v}=ce().featureFlags,_=(0,i.useCallback)((()=>{const i=a.k.getSearchParamValueByKey(re.BusinessUnit),s=a.k.getSearchParamValueByKey(re.Type),o=a.k.getSearchParamValueByKey(re.PartnerLevel),l=a.k.getSearchParamValueByKey(re.ServiceAuthorization);return{segmentOptions:Ue(e,ze,i),typeOptions:Ue(t,je,s),partnershipLevelOptions:y?Ue(Qe(r??[]),We(Fe),o):[],authorizedServicesOptions:v?Ue(Qe(n??[]),We(Ne),l):[]}}),[n,y,v,r,e,t]),b=(0,i.useCallback)((()=>{const e=a.k.getSearchParamValueByKey(re.ContactId),t=a.k.getSearchParamValueByKey(re.Country),r=a.k.getSearchParamValueByKey(re.Company),i=a.k.getSearchParamValueByKey(re.Location);c(e),e&&g(e),o(r??""),l(t??""),t||i||p(null);const{segmentOptions:n,typeOptions:s,partnershipLevelOptions:u,authorizedServicesOptions:y}=_();h(n),d(s),f(u),m(y)}),[c,o,l,h,_,d,f,m,g,p]),x=(0,i.useCallback)((()=>{const{segmentOptions:e,typeOptions:t,partnershipLevelOptions:r,authorizedServicesOptions:i}=_();qe(e,re.BusinessUnit),qe(t,re.Type),qe(r,re.PartnerLevel),qe(i,re.ServiceAuthorization)}),[_]);(0,u.E)((()=>{x(),s&&g(s)})),(0,i.useEffect)((()=>(window.addEventListener("popstate",b),()=>{window.removeEventListener("popstate",b)})),[b])})({types:n,segments:e,authorizedServices:l,partnershipLevels:o,selectedContactId:Y,setCompanyName:T,setCountryFilter:C,setSelectedContactId:Q,setSegmentsOptions:I,setTypesOptions:P,setSearchCountry:M,setPartnershipLevelOptions:V,setAuthorizedServicesOptions:H,onSelectedContactIdChange:(0,i.useCallback)((e=>{K.some((({id:t})=>t===e))||he({params:{id:e}})}),[he,K])}),(0,i.useEffect)((()=>{Z||te.current||(async()=>{try{te.current=!0;const e={...j.current,count:100,search:A,country:S,segments:Ge(x),types:Ge(w),productLines:E?.productLines,partnershipLevels:Ve(U),authorizedServices:Ve(q)},t={search:A,country:S,segments:Ge(x),types:Ge(w),productLines:E?.productLines,partnershipLevels:Ve(U),authorizedServices:Ve(q)};await Promise.all([pe({params:t}),le({params:e})])}finally{te.current=!1}})()}),[A,S,j,le,pe,Z,U,E?.productLines,x,q,w]),(0,i.useEffect)((()=>{J(se)}),[se]),(0,i.useEffect)((()=>{const e=ue[0];e&&J((t=>[...t,e]))}),[ue]);const fe=(0,i.useCallback)((async(e,t,r)=>{const i=te.current?[]:t;await le({params:{segments:O.current,types:k.current,country:R.current,search:D.current,productLines:L.current?.productLines,partnershipLevels:F.current,authorizedServices:W.current,...e}},(e=>{if(r){const t=e.findIndex((e=>e.id===r.activeId)),i=r.index,n=e.splice(t,1)[0];e.splice(i,0,n)}return e}),i)}),[R,le,F,L,D,O,W,k]),me=(0,i.useMemo)((()=>s.getDictionary()),[s]);return i.createElement(N.s,{useSharedApiKey:!_,domain:g,authClientId:v,redirectUrl:y},i.createElement($e,{dictionaryService:s,dictionary:me,sourceChannel:t,setSelectedContactId:Q,geohash:de,onMapUpdate:fe,setIsLoading:X},i.createElement("div",{className:(0,B.A)(G.A.mosaic,G.A.fullHeight,"j4RaUPNoKjb4eeNXLP8S",c,{[wn]:!Z}),"data-testid":(0,d.A)("contact-us",r)},Z&&i.createElement(z.DfLoader,{"data-testid":"loader",containerClassName:"hm1sFwQEw4bMIzvp9LuU"}),i.createElement(xn,{contacts:K,selectedContactId:Y,isDataLoading:Z||oe,error:ae,totalLocationsCount:$,testIdPrefix:r}))))},En=({segments:e,types:t,gtmServiceConfig:r,sourceChannel:n,testIdPrefix:s,partnershipLevels:o,authorizedServices:a,containerClassName:l})=>{const{remoteAppConfig:c,locale:h}=ce();(0,u.E)((()=>{var e;(e=r)&&Ce.setConfig(e),ve.setToken(c.mapboxAccessToken)}));const d=(({locale:e,envConfig:t})=>{const[r,n]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const r=new ye(e,{contentstackApiKey:t.contentstackApiKey,contentstackBranch:t.contentstackBranch,contentstackDeliveryToken:t.contentstackDeliveryToken,contentstackEnv:t.contentstackEnv});(async()=>{await r.generateDictionary(),n(r)})()}),[t,e,n]),r})({locale:h,envConfig:c}
23);return d?i.createElement(Ze,{types:t,segments:e,partnershipLevels:o,authorizedServices:a},i.createElement(An,{dictionaryService:d,types:t,segments:e,sourceChannel:n,testIdPrefix:s,partnershipLevels:o,authorizedServices:a,className:l})):i.createElement(P.a,null)},Sn="contactslistv2/contactslistv2"==r.j?["locationApiBaseUrl","formServiceApiUrl","mapboxAccessToken","apigeeDomain","apigeeKey","mosaicAssetsCdnUrl"]:null,Tn="contactslistv2/contactslistv2"==r.j?["auth0IssuerBaseUrl","algoliaApiBaseUrl","searchAppName","productsIndexName","categoriesIndexName"]:null,Cn=({isDistributorLayout:e,searchAppBusinessSegment:t,children:r})=>{const n=ce().remoteAppConfig,{isValid:s,invalidKeys:o}=(0,i.useMemo)((()=>(0,M.h)((e=>{const t=[...Sn];return e?t.concat(Tn):t})(Boolean(t&&e)),n)),[n,e,t]);if(!s)throw new Error(`Invalid app config provided: ${o.join(", ")}`);return i.createElement(i.Fragment,null,r)};var In;!function(e){e.ContactUs_Remote_Config_1248088_FE="ContactUs_Remote_Config_1248088_FE"}(In||(In={}));const Pn=e=>{const t=(e=>{const{treatment:t}=(0,te.a)({name:In.ContactUs_Remote_Config_1248088_FE}),r=t.config;return(0,i.useMemo)((()=>{const t=JSON.parse(r??"{}");if(!e)return t;const i=Object.entries(e).reduce(((e,[t,r])=>(void 0!==r&&(e[t]=r),e)),{});return{...t,...i}}),[e,r])})(e.envConfig),r=(0,i.useMemo)((()=>{const{envConfig:r,children:i,...n}=e;return{remoteAppConfig:t,...n}}),[e,t]);return i.createElement(le.Provider,{value:r},e.children)},Mn=e=>{const t=(0,i.useMemo)((()=>({isBusinessUnitDropdownVisible:e.isBusinessUnitDropdownVisible??!0,isBusinessUnitValueVisible:e.isBusinessUnitValueVisible??!0,isTypeDropdownVisible:e.isTypeDropdownVisible??!0,isTypeInListViewVisible:e.isTypeInListViewVisible??!1,isFilterByCountryVisible:e.isFilterByCountryVisible??!1,isSearchByCompanyNameVisible:e.isSearchByCompanyNameVisible??!1,isDistributorsLayout:e.isDistributorsLayout??!1,isContactUsBadgesEnabled:e.isContactUsBadgesEnabled??!1,isRangeFilterEnabled:e.isRangeFilterEnabled??!1,isServiceAuthorizationFilterEnabled:e.isServiceAuthorizationFilterEnabled??!1,isGroupByPartnershipEnabled:e.isGroupByPartnershipEnabled??!1,isPartnershipLevelFilterEnabled:e.isPartnershipLevelFilterEnabled??!1,isMultiLanguageEnabled:e.isMultiLanguageEnabled??!1,isIdOverHeadlineInProduct:e.isIdOverHeadlineInProduct??!1,isExclusiveToOtherCustomersEnabled:e.isExclusiveToOtherCustomersEnabled??!1,isMapLightThemeEnabled:e.isMapLightThemeEnabled??!1})),[e.isBusinessUnitDropdownVisible,e.isBusinessUnitValueVisible,e.isTypeDropdownVisible,e.isTypeInListViewVisible,e.isFilterByCountryVisible,e.isSearchByCompanyNameVisible,e.isDistributorsLayout,e.isContactUsBadgesEnabled,e.isRangeFilterEnabled,e.isServiceAuthorizationFilterEnabled,e.isGroupByPartnershipEnabled,e.isPartnershipLevelFilterEnabled,e.isMultiLanguageEnabled,e.isIdOverHeadlineInProduct,e.isExclusiveToOtherCustomersEnabled,e.isMapLightThemeEnabled]),{apiKey:r}={dev:{apiKey:"t4fip1hobe1ndikj5ufvnjr9p0cue9v4cqfs"},uat:{apiKey:"t4fip1hobe1ndikj5ufvnjr9p0cue9v4cqfs"},e2e:{apiKey:"3hjbn22qr41f5242hil85efv9a37nf7meifr"},prod:{apiKey:"dss773e3n96evglqkhd32o7lcsi3hjv6vrg2"}}[e.environment],s=(0,i.useMemo)((()=>({core:{authorizationKey:r}})),[r]);if(!(0,f.YY)())throw new Error("Contact Us View can be only rendered in the browser");return i.createElement(n.C,{config:s},i.createElement(Pn,{envConfig:e.envConfig,featureFlags:t,locale:e.culture,renderImage:e.renderImage,renderLink:e.renderLink,auth0BaseUrl:e.auth0BaseUrl,auth0RedirectUrl:e.auth0RedirectUrl,authClientId:e.authClientId,useSharedApiKey:e.useSharedApiKey??!1,searchBusinessSegment:e.searchBusinessSegment,isUserLoggedIn:e.isUserLoggedIn,partNumberUrlParamKey:e.partNumberUrlParamKey??re.ProductId,categoryIdUrlParamKey:e.categoryIdUrlParamKey??re.CategoryId,productLineIdUrlParamKey:e.productLineIdUrlParamKey??re.ProductLineId,environment:e.environment,sharedApiKeyPurposeType:e.sharedApiKeyPurposeType},i.createElement(Cn,null,i.createElement(En,{...e,featureFlags:t}))))},kn=async({locale:e,sourceChannel:t,envConfig:r,environment:i,searchBusinessSegment:n})=>({culture:e,sourceChannel:t,envConfig:r,environment:i,searchBusinessSegment:n})},89379:(e,t,r)=>{if(r.d(t,{A:()=>s}),/^(app|contactuscontentpage\/contactuscontentpage|searchresults\/searchresults)$/.test(r.j))var i=r(64467);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
23t%2?n(Object(r),!0).forEach((function(t){(0,i.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},89394:(e,t,r)=>{if(r.d(t,{A:()=>a}),/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var i=r(64243);if(/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var n=r(73893);if(/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var s=r(27800);if(/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var o=r(60519);function a(e){return(0,i.A)(e)||(0,n.A)(e)||(0,s.A)(e)||(0,o.A)()}},89587:(e,t,r)=>{r.d(t,{R:()=>pe});var i=r(50475),n=r(81160),s=r(64638),o=r(70775);class a{isIncrementalResult(e){return!1}prepareRequest(e){return(0,o.V1)(!(0,s.d)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}var l=r(74081),c=r(29993),u=r(16645),h=r(52404),d=r(91581),p=r(53489),f=r(45279),m=r(84705);function g(e){return(0,m.YR)(e,{FragmentSpread(e){if(!e.directives?.some((({name:e})=>"unmask"===e.value)))return null}})}var y=r(56939),v=r(10435),_=r(32453),b=r(43298),x=r(93776),w=r(13288),A=r(69862),E=r(65474),S=r(75505),T=r(62467),C=r(66847),I=r(16126),P=r(69850),M=r(1005),k=r(87718),O=r(27291),R=r(12827),D=r(47370),L=r(61701),B=r(59099),z=r(41697),j=r(78740),F=r(9211),N=r(23761),U=r(86149),V=r(45410),G=r(81212),q=r(47397),H=r(17108),W=r(82920),Y=r(13594),Q=r(39136),Z=r(93982),X=r(80433),K=r(66938),J=r(84834),$=r(73977),ee=r(25725),te=r(86395),re=r(33245),ie=r(53265),ne=r(21510),se=r(88599),oe=r(69227),ae=r(60367);class le{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new c.c((e=>this.cache.transformDocument(e)),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach((e=>e.stop())),this.cancelPendingFetches((0,o.vA)(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach((t=>t(e))),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:s=[],awaitRefetchQueries:a=!1,update:l,onQueryUpdated:c,fetchPolicy:h,errorPolicy:d,keepRootFields:p,context:f}){const m=new ae.L(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:g}=this.getDocumentInfo(e);t=this.getVariables(e,t),g&&(u.g&&(0,o.V1)(this.localState,88,(0,W.n)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:f}));const y=this.mutationStore&&(this.mutationStore[m.id]={mutation:e,variables:t,loading:!0,error:null}),v=r&&m.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:"no-cache"===h?0:2,errorPolicy:d,context:f,updateQueries:i,update:l,keepRootFields:p});return this.broadcastQueries(),new Promise(((o,u)=>{const g={};return this.getObservableFromLink(e,{...f,optimisticResponse:v?r:void 0},t,h,{},!1).observable.pipe(ce(),(0,A.Z)((r=>{const n={...r};return(0,E.H)(m.markMutationResult(n,{document:e,variables:t,cacheWriteBehavior:"no-cache"===h?0:2,errorPolicy:d,context:f,update:l,updateQueries:i,awaitRefetchQueries:a,refetchQueries:s,removeOptimistic:v?m.id:void 0,onQueryUpdated:c,keepRootFields:p}))}))).pipe((0,n.T)((e=>{if((0,Y.t)(e)&&"none"===d)throw new j.K(he(e));return y&&(y.loading=!1,y.error=null),e}))).subscribe({next:t=>{if(this.broadcastQueries(),!m.hasNext){const r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:h,cause:g})};(0,Y.t)(t)&&(r.error=new j.K(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),o(r)}},error:e=>(y&&(y.loading=!1,y.error=e),v&&this.cache.removeOptimistic(m.id),this.broadcastQueries(),"ignore"===d?o({data:void 0}):"all"===d?o({data:void 0,error:e}):void u(e))})}))}fetchQuery(e,t){return(0,p.s)(e.query,i.cE.QUERY),(async()=>(0,S.s)(this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe((0,Q.x)((e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return(0,Z.$)(e.value)}}))),{defaultValue:{data:void 0}}))()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new X.A(G.v["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){const{transformCache:t}=this;if(!t.has(e)){const r=(0,K.V)(e),i={hasClientExports:(0,s.d)(["client","export"],e,!0),hasForcedResolvers:(0,J.p)(e),hasNonreactiveDirective:(0,s.d)(["nonreactive"],e),hasIncrementalDirective:(0,s.d)(["defer"],e),nonReactiveQuery:ue(e),clientQuery:(0,s.d)(["client"],e)?e:null,serverQuery:(0,$.i)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:r?.operation,defaultVars:(0,ee.w)(r),asQuery:{...e,definitions:e.definitions.map((e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e))}};t.set(e,i)}const r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){const r=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map((([e,t])=>[e,void 0===t?r[e]:t]));return{...r,...Object.fromEntries(i)}}watchQuery(e){(0,p.s)(e.query,i.cE.QUERY);const t=this.transform(e.query);void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0);return new oe.U({queryManager:this,options:e,transformedQuery:t})}query(e){const t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then((r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})})))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,o.vA)(89)),this.obsQueries.forEac
23h((e=>{e.reset()})),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach((e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if((0,te.K)(e)){const t=(0,q.y)(this.transform(e));r.set(t,(0,W.n)(e)),i.set(t,!1)}else(0,re.U)(e)&&e.query&&n.add(e)})),this.obsQueries.forEach((r=>{const n=(0,q.y)(this.transform(r.options.query));if("all"===e)return void t.add(r);const{queryName:s,options:{fetchPolicy:o}}=r;"active"===e&&"standby"===o||("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))})),n.size&&n.forEach((e=>{const r=new oe.U({queryManager:this,options:{...(0,h.l)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)})),u.g&&i.size&&i.forEach(((e,t)=>{if(!e){const e=r.get(t);e?u.g&&o.V1.warn(90,e):u.g&&o.V1.warn(91)}})),t}refetchObservableQueries(e=!1){const t=[];return this.getObservableQueries(e?"all":"active").forEach((r=>{const{fetchPolicy:i}=r.options;!e&&"standby"===i||"cache-only"===i||t.push(r.refetch())})),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let{query:t,variables:r}=e;const{fetchPolicy:s="cache-first",errorPolicy:a="none",context:l={},extensions:c={}}=e;let h;(0,p.s)(t,i.cE.SUBSCRIPTION),t=this.transform(t),r=this.getVariables(t,r),u.g&&(0,o.V1)(!this.getDocumentInfo(t).hasClientExports||this.localState,92,(0,W.n)(t,"(anonymous)"));const d=(this.getDocumentInfo(t).hasClientExports?(0,E.H)(this.localState.getExportedVariables({client:this.client,document:t,variables:r,context:l})):(0,T.of)(r)).pipe((0,A.Z)((e=>{const{observable:r,restart:i}=this.getObservableFromLink(t,l,e,s,c),o=new ae.L(this);return h=i,r.pipe((0,n.T)((r=>{o.markSubscriptionResult(r,{document:t,variables:e,errorPolicy:a,cacheWriteBehavior:"no-cache"===s?0:2});const i={data:r.data??void 0};return(0,Y.t)(r)?i.error=new j.K(r):(0,F.uR)(r)&&(i.error=r.extensions[F.K$],delete r.extensions[F.K$]),r.extensions&&Object.keys(r.extensions).length&&(i.extensions=r.extensions),i.error&&"none"===a&&(i.data=void 0),"ignore"===a&&delete i.error,i})),(0,C.W)((e=>"ignore"===a?(0,T.of)({data:void 0}):(0,T.of)({data:void 0,error:e}))),(0,I.p)((e=>!(!e.data&&!e.error))))})));return Object.assign(d,{restart:()=>h?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach((e=>e.notify()))}inFlightLinkObservables=new _.b(!1);getObservableFromLink(e,t,r,n,s,a=t?.queryDeduplication??this.queryDeduplication){let c={};const{serverQuery:h,clientQuery:d,operationType:p,hasIncrementalDirective:f}=this.getDocumentInfo(e),m=(0,W.n)(e),g={client:this.client};if(h){const{inFlightLinkObservables:y,link:v}=this;try{const _=this.incrementalHandler.prepareRequest({query:h,variables:r,context:{...this.defaultContext,...t,queryDeduplication:a},extensions:s});function b(e){return new x.c((t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let i=r();return c.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),c.restart=void 0}}))}if(t=_.context,a){const S=(0,q.y)(h),I=(0,z.M)(r);c=y.lookup(S,I),c.observable||(c.observable=(0,l.g)(v,_,g).pipe(b,(0,P.j)((()=>{y.peek(S,I)===c&&y.remove(S,I)})),p===i.cE.SUBSCRIPTION?(0,M.u)():(0,k.t)({refCount:!0})))}else c.observable=(0,l.g)(v,_,g).pipe(b)}catch(O){c.observable=(0,w.$)((()=>O))}}else c.observable=(0,T.of)({data:{}});if(d){const{operation:R}=(0,K.V)(e);u.g&&(0,o.V1)(this.localState,93,R[0].toUpperCase()+R.slice(1),m??"(anonymous)"),(0,o.V1)(!f,94,R[0].toUpperCase()+R.slice(1),m??"(anonymous)"),c.observable=c.observable.pipe((0,A.Z)((e=>(0,E.H)(this.localState.execute({client:this.client,document:d,remoteResult:e,context:t,variables:r,fetchPolicy:n})))))}return{restart:()=>c.restart?.(),observable:c.observable.pipe((0,C.W)((e=>{throw e=(0,F.$b)(e),(0,N.k)(e),e})))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:s}){const o=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,l=this.cache.transformForLink(e.query);return this.getObservableFromLink(l,e.context,e.variables,e.fetchPolicy).observable.pipe((0,n.T)((n=>{const o=t.markQueryResult(n,{...e,document:l,cacheWriteBehavior:r}),c=(0,Y.t)(o);if(c&&"none"===a)throw t.resetLastWrite(),i?.resetNotifications(),new j.K(he(o));const u={data:o.data,...t.hasNext?{loading:!0,networkStatus:se.p.streaming,dataState:"streaming",partial:!0}:{dataState:o.data?"complete":"empty",loading:!1,networkStatus:se.p.ready,partial:!o.data}};return s&&"extensions"in o&&(u[ie.X]=o.extensions),c&&("none"===a&&(u.data=void 0,u.dataState="empty"),"ignore"!==a&&(u.error=new j.K(he(o)),"streaming"!==u.dataState&&(u.networkStatus=se.p.error))),u})),(0,C.W)((e=>{if(o>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),i?.resetNotifications(),e;const r={data:void 0,dataState:"empty",loading:!1,networkStatus:se.p.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=se.p.error),(0,T.of)(r)})))}fetchObservableWithInfo(e,{networkStatus:t=se.p.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:s,exposeExtensions:a}){const l=this.getVariables(r,e.variables);let{fetchPolicy:c="cache-first",errorPolicy:h="none",returnPartialData:d=!1,notifyOnNetworkStatusChange:p=!0,context:f={}}=e;!this.prioritizeCacheValues||"network-only"!==c&&"cache-and-network"!==c||(c="cache-first");const m=Object.assign({},e,{query:r,variables:l,fetchPolicy:c,errorPolicy:h,returnPartialData:d,notifyOnNetworkStatusChange:p,context:f}),g=new ae.L(this,s),y=r=>{m.variables=r;const o="no-cache"===c?0:t===se.p.refetch&&"merge"!==m.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(m,{queryInfo:g,cacheWriteBehavior:o,onCacheHit:n,observableQuery:s,exposeExtensions:a});return l.observable=l.observable.pipe(i),"standby"!==m.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),l},v=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,(e=>{_.next({kind:"E",error:e,source:"network"})}));const _=new O.B;let b,w;if(this.getDocumentInfo(m.query).hasClientExports)u.g&&(0,o.V1)(this.localState,95,(0,W.n)(m.query,"(anonymous)")),b=(0,E.H)(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe((0,A.Z)((e=>y(e).observable))),w=!0;else{const e=y(m.variables);w=e.fromLink,b=e.observable}return{observable:new x.c((e=>{e.add(v),b.subscribe(e),_.subscribe(e)})).pipe((0,M.u)()),fromLink:w}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=(r?(0,ne.v)("refetchQueries"):void 0),onQueryUpdated:n}){const s=new Map;t&&this.getObservableQueries(t).forEach((e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;const t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})}));const o=new Map;if(e){const t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){const a=e.watcher;if(a instanceof oe.U&&!t.has(a)){if(t.add(a),n){s.delete(a);let e=n(a,r,i);return!0===e&&(e=a.refetch().retain()),!1!==e&&o.set(a,e),e}null!==n&&"cache-only"!==a.options.fetchPolicy&&s.set(a,{oq:a,lastDiff:i,diff:r})}}})}
23return s.size&&s.forEach((({oq:e,lastDiff:t,diff:r})=>{let i;n&&(r||(r=e.getCacheDiff()),i=n(e,r,t)),n&&!0!==i||(i=e.refetch().retain()),!1!==i&&o.set(e,i)})),i&&this.cache.removeOptimistic(i),o}noCacheWarningsByCause=new WeakSet;maskOperation(e){const{document:t,data:r}=e;if(u.g){const{fetchPolicy:r,cause:i={}}=e,n=(0,K.V)(t)?.operation;!this.dataMasking||"no-cache"!==r||function(e){let t=!0;return(0,m.YR)(e,{FragmentSpread:e=>{if(t=!!e.directives&&e.directives.some((e=>"unmask"===e.name.value)),!t)return m.sP}}),t}(t)||this.noCacheWarningsByCause.has(i)||(this.noCacheWarningsByCause.add(i),u.g&&o.V1.warn(96,(0,W.n)(t,`Unnamed ${n??"operation"}`)))}return this.dataMasking?(0,U.m)(r,t,this.cache):r}maskFragment(e){const{data:t,fragment:r,fragmentName:i}=e;return this.dataMasking?(0,V.z)(t,r,this.cache,i):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:s,context:a},{cacheWriteBehavior:l,onCacheHit:c,queryInfo:h,observableQuery:d,exposeExtensions:p}){const f=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),m=(n,l)=>{const h=n.result;u.g&&!s&&null!==h&&(0,oe.y)(n.missing);const d=e=>(n.complete||s||(e=void 0),{data:e,dataState:n.complete?"complete":e?"partial":"empty",loading:(0,H.b)(l),networkStatus:l,partial:!n.complete}),p=e=>(0,T.of)({kind:"N",value:d(e),source:"cache"});return(n.complete||s)&&this.getDocumentInfo(e).hasForcedResolvers?(u.g&&(0,o.V1)(this.localState,97,(0,W.n)(e,"(anonymous)")),c(),(0,E.H)(this.localState.execute({client:this.client,document:e,remoteResult:h?{data:h}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then((e=>({kind:"N",value:d(e.data||void 0),source:"cache"}))))):"none"===i&&l===se.p.refetch&&n.missing?p(void 0):p(h||void 0)},g=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:l,queryInfo:h,observableQuery:d,exposeExtensions:p}).pipe(ce(),(0,R.O)(),(0,n.T)((e=>({...e,source:"network"}))));switch(r){default:case"cache-first":{const e=f();return e.complete?{fromLink:!1,observable:m(e,se.p.ready)}:s?{fromLink:!0,observable:(0,D.x)(m(e,se.p.loading),g())}:{fromLink:!0,observable:g()}}case"cache-and-network":{const e=f();return e.complete||s?{fromLink:!0,observable:(0,D.x)(m(e,se.p.loading),g())}:{fromLink:!0,observable:g()}}case"cache-only":return{fromLink:!1,observable:(0,D.x)(m(f(),se.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:g()};case"standby":return{fromLink:!1,observable:L.w}}}}function ce(){let e=!1;return(0,B.M)({next(){e=!0},complete(){(0,o.V1)(e,98)}})}function ue(e){return(0,m.YR)(e,{FragmentSpread:e=>{if(!e.directives?.some((e=>"unmask"===e.name.value)))return{...e,directives:[...e.directives||[],{kind:b.b.DIRECTIVE,name:{kind:b.b.NAME,value:"nonreactive"}}
23]}}})}function he(e){if(null==e.extensions?.[ie.DH])return e;const{extensions:{[ie.DH]:t,...r},...i}=e;return Object.keys(r).length>0&&(i.extensions=r),i}let de=!1;class pe{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){u.g&&((0,o.V1)(e.cache,68),(0,o.V1)(e.link,69));const{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:s=!0,defaultOptions:l,defaultContext:c,assumeImmutableResults:h=t.assumeImmutableResults,localState:d,devtools:p,dataMasking:f,link:m,incrementalHandler:g=new a,experiments:y=[]}=e;this.link=m,this.cache=t,this.queryDeduplication=s,this.defaultOptions=l||{},this.devtoolsConfig={...p,enabled:p?.enabled??u.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=v.r,this.queryManager=new le({client:this,defaultOptions:this.defaultOptions,defaultContext:c,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!f,clientOptions:e,incrementalHandler:g,assumeImmutableResults:h,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||n>0,n&&setTimeout((()=>{this.prioritizeCacheValues=!1}),n),this.devtoolsConfig.enabled&&this.connectToDevTools(),y.forEach((t=>t.call(this,e)))}connectToDevTools(){if("undefined"==typeof window)return;const e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!de&&u.g&&(de=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout((()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){const e=window.navigator,t=e&&e.userAgent;let r;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&u.g&&o.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,h.l)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,h.l)(this.defaultOptions.query,e)),u.g&&((0,o.V1)("cache-and-network"!==e.fetchPolicy,70),(0,o.V1)("standby"!==e.fetchPolicy,71),(0,o.V1)(e.query,72),(0,o.V1)("Document"===e.query.kind,73),(0,o.V1)(!e.returnPartialData,74),(0,o.V1)(!e.pollInterval,75),(0,o.V1)(!e.notifyOnNetworkStatusChange,76)),this.queryManager.query(e)}mutate(e){const t=(0,h.l)((0,d.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return u.g&&((0,o.V1)(t.mutation,77),(0,o.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,78)),(0,p.s)(t.mutation,i.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){const t={},r=this.queryManager.startGraphQLSubscription(e),i=r.pipe((0,n.T)((r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))));return Object.assign(i,{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){const t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return u.g?(0,f.Q)(r,Symbol.for("apollo.transform.dev.mask"),(t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})}))):r}
23readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){const t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){const t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return(0,l.g)(this.link,e,{client:this})}resetStore(){return Promise.resolve().then((()=>this.queryManager.clearStore({discardWatches:!1}))).then((()=>Promise.all(this.resetStoreCallbacks.map((e=>e()))))).then((()=>this.refetchObservableQueries()))}clearStore(){return Promise.resolve().then((()=>this.queryManager.clearStore({discardWatches:!0}))).then((()=>Promise.all(this.clearStoreCallbacks.map((e=>e())))))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter((t=>t!==e))}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter((t=>t!==e))}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach(((e,t)=>{r.push(t),i.push(e)}));const n=Promise.all(i);return n.queries=r,n.results=i,n.catch((e=>{u.g&&o.V1.debug(79,e)})),n}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new c.c(g);transform(e,t=!1){const r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}u.g&&(pe.prototype.getMemoryInternals=y.ep)},89610:(e,t,r)=>{if(r.d(t,{A:()=>s}),"app"==r.j)var i=r(79672);if("app"==r.j)var n=r(23149);const s="app"==r.j?function(e){if(!(0,n.A)(e))return!1;var t=(0,i.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}:null},89976:(e,t,r)=>{if(r.d(t,{B:()=>s}),"searchresults/searchresults"==r.j)var i=r(79134);const n=Symbol.for("apollo.suspenseCache");function s(e){return e[n]||(e[n]=new i.H(e.defaultOptions.react?.suspense)),e[n]}},90041:(e,t,r)=>{function i(e){return"ais.index"===e.$$type}r.d(t,{l:()=>i})},90093:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(69734);if("contactslistv2/contactslistv2"==r.j)var n=r(65150);if("contactslistv2/contactslistv2"==r.j)var s=r(15164);var o=(0,i.s)("Highlight");function a(e){var t=e.attribute,r=e.highlightedTagName,i=void 0===r?"mark":r,a=e.hit,l=e.cssClasses,c=void 0===l?{}:l,u=((0,n.E)(a._highlightResult,t)||{}).value,h=void 0===u?"":u,d=o({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):"");return h.replace(new RegExp(s.sn.highlightPreTag,"g"),"<".concat(i,' class="').concat(d,'">')).replace(new RegExp(s.sn.highlightPostTag,"g"),"</".concat(i,">"))}},90565:(e,t,r)=>{if(r.d(t,{A:()=>n}),"app"==r.j)var i=r(43988);const n="app"==r.j?function(e){var t=new e.constructor(e.byteLength);return new i.A(t).set(new i.A(e)),t}:null},90738:(e,t,r)=>{r.d(t,{MS:()=>l,UT:()=>c,WR:()=>a,bl:()=>n});var i=r(6839);const n=new i.DX,s=new WeakMap;function o(e){let t=s.get(e);return t||s.set(e,t={vars:new Set,dep:(0,i.yN)()}),t}function a(e){o(e).vars.forEach((t=>t.forgetCache(e)))}function l(e){o(e).vars.forEach((t=>t.attachCache(e)))}function c(e){const t=new Set,r=new Set,i=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((e=>{o(e).dep.dirty(i),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));const n=Array.from(r);r.clear(),n.forEach((t=>t(e)))}}else{const e=n.getValue();e&&(s(e),o(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});const s=i.attachCache=e=>(t.add(e),o(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}},91097:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(41697);if("searchresults/searchresults"==r.j)var s=r(23105);function o(e,t){const{queryKey:r=[],variables:o}=t,a=(0,n.M)(o);let[l,c]=i.useState(a);return t!==s.h&&l!==a&&c(l=a),[e,l,...[].concat(r)]}},91104:(e,t,r)=>{r.d(t,{m:()=>n});var i=r(96540),n="contactslistv2/contactslistv2"==r.j?(0,i.createContext)(null):null},91581:(e,t,r)=>{function i(...e){const t={};return e.forEach((e=>{e&&Reflect.ownKeys(e).forEach((r=>{const i=e[r];void 0!==i&&(t[r]=i)}))})),t}r.d(t,{o:()=>i})},92049:(e,t,r)=>{r.d(t,{A:()=>n});var i=Array.isArray;const n="app"==r.j?i:null},92084:(e,t,r)=>{if(r.d(t,{_:()=>n}),"contactslistv2/contactslistv2"==r.j)var i=r(90041);function n(e,t){var r=e[t.getIndexId()]||{};
23t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(i.l).forEach((function(t){return n(e,t)}))}},92221:(e,t,r)=>{r.d(t,{Wd:()=>A,lx:()=>E,mN:()=>T});var i=r(15381);if("vendors"!=r.j)var n=r(60857);if("vendors"!=r.j)var s=r(67194);if("vendors"!=r.j)var o=r(16645);if("vendors"!=r.j)var a=r(53265);if("vendors"!=r.j)var l=r(31155);if("vendors"!=r.j)var c=r(42189);if("vendors"!=r.j)var u=r(23213);if("vendors"!=r.j)var h=r(86271);if("vendors"!=r.j)var d=r(23326);if("vendors"!=r.j)var p=r(33245);if("vendors"!=r.j)var f=r(70775);if("vendors"!=r.j)var m=r(73194);if("vendors"!=r.j)var g=r(17981);if("vendors"!=r.j)var y=r(90738);function v(e){return void 0!==e.args?e.args:e.field?(0,l.M)(e.field,e.variables):null}const _=()=>{},b=(e,t)=>t.fieldName,x=(e,t,{mergeObjects:r})=>r(e,t),w=(e,t)=>t,A=(e,t,{streamFieldInfo:r,existingData:i})=>{if(!e&&!i)return t;const n=[],s=e??i,o=r?.isLastChunk?t.length:Math.max(s.length,t.length);for(let e=0;e<o;e++)n[e]=void 0===t[e]?s[e]:t[e];return n};class E{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:m.or,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){const r=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const s=t&&t.storeObject||e,o={...t,typename:i,storeObject:s,readField:t&&t.readField||((...e)=>{const t=T(e,s);return r.readField(t,{store:r.cache.data,variables:t.variables})})};let a;const l=i&&this.getTypePolicy(i);let u=l&&l.keyFn||this.config.dataIdFromObject;return n.y.withValue(!0,(()=>{for(;u;){const t=u({...e,...s},o);if(!(0,c.c)(t)){a=t;break}u=(0,g.v2)(t)}})),a=a?String(a):void 0,o.keyObject?[a,o.keyObject]:[a]}addTypePolicies(e){Object.keys(e).forEach((t=>{const{queryType:r,mutationType:i,subscriptionType:n,...s}=e[t];r&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),n&&this.setRootTypename("Subscription",t),m.$3.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]}))}updateTypePolicy(e,t,r){const i=this.getTypePolicy(e),{keyFields:n,fields:s}=t;function o(e,t){e.merge="function"==typeof t?t:!0===t?x:!1===t?w:e.merge}o(i,t.merge),i.keyFn=!1===n?_:(0,c.c)(n)?(0,g.v2)(n):"function"==typeof n?n:i.keyFn,s&&Object.keys(s).forEach((t=>{let i=r[t];i&&i?.typename===e||(i=r[t]={typename:e});const n=s[t];if("function"==typeof n)i.read=n;else{const{keyArgs:e,read:t,merge:r}=n;i.keyFn=!1===e?b:(0,c.c)(e)?(0,g.fc)(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),o(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||b)}
23))}setRootTypename(e,t=e){const r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,f.V1)(!i||i===e,103,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach((t=>{this.getSupertypeSet(t,!0),e[t].forEach((e=>{this.getSupertypeSet(e,!0).add(t);const r=e.match(m.gk);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))}))}))}getTypePolicy(e){if(!m.$3.call(this.typePolicies,e)){const t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(((t,i)=>{if(t.test(e)){const e=this.supertypeMap.get(i);e&&e.forEach((e=>r.add(e)))}}))),r&&r.size&&r.forEach((e=>{const{fields:r,...i}=this.getTypePolicy(e);Object.assign(t,i),Object.assign(t.fields,r)}))}const t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach((t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)})),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,i){if(!e.typeCondition)return!0;if(!t)return!1;const n=e.typeCondition.name.value;if(t===n)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(n)){const s=this.getSupertypeSet(t,!0),a=[s],l=e=>{const t=this.getSupertypeSet(e,!1);t&&t.size&&a.indexOf(t)<0&&a.push(t)};let c=!(!r||!this.fuzzySubtypes.size),u=!1;for(let h=0;h<a.length;++h){const d=a[h];if(d.has(n))return s.has(n)||(u&&o.g&&f.V1.warn(104,t,n),s.add(n)),!0;d.forEach(l),c&&h===a.length-1&&(0,m.T9)(e.selectionSet,r,i)&&(c=!1,u=!0,this.fuzzySubtypes.forEach(((e,r)=>{const i=t.match(e);i&&i[0]===t&&l(r)})))}}return!1}hasKeyArgs(e,t){const r=this.getFieldPolicy(e,t);return!(!r||!r.keyFn)}getStoreFieldName(e){const{typename:t,fieldName:r}=e,i=this.getFieldPolicy(t,r);let n,s=i&&i.keyFn;if(s&&t){const i={typename:t,fieldName:r,field:e.field||null,variables:e.variables},o=v(e);for(;s;){const e=s(o,i);if(!(0,c.c)(e)){n=e||r;break}s=(0,g.fc)(e)}}return void 0===n&&(n=e.field?(0,u.I)(e.field,e.variables):(0,h.o)(r,v(e))),!1===n?r:r===(0,m.iJ)(n)?n:r+":"+n}readField(e,t){const r=e.from;if(!r)return;if(!(e.field||e.fieldName))return;if(void 0===e.typename){const i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}const i=this.getStoreFieldName(e),n=(0,m.iJ)(i),o=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,n),l=a&&a.read;if(l){const n=S(this,r,e,t,t.store.getStorage((0,s.A)(r)?r.__ref:r,i));return y.bl.withValue(this.cache,l,[o,n])}return o}getReadFunction(e,t){const r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(i=this.getTypePolicy(r),n=i&&i.merge),n}runMergeFunction(e,t,{field:r,typename:n,merge:s,path:o},l,c){const u=e;if(s===x)return C(l.store)(e,t);if(s===w)return t;l.overwrite&&(e=void 0);const h=l.extensions?.[a.DH]?.deref()?.peekArray(o);if(h){const{current:e,previous:r}=h;if(r&&(0,i.L)(r.incoming,t)&&(0,i.L)(r.streamFieldInfo,e))return r.result}const d=s(e,t,function(e,t,r,i,n,s){const o={...S(e,t,r,i,n),extensions:i.extensions,existingData:s},l=i.extensions;if(l&&a.DH in l){const{[a.DH]:e,...t}=l,i=e?.deref()?.peekArray(r.path);i&&(o.streamFieldInfo=i.current),o.extensions=0===Object.keys(t).length?void 0:t}return o}(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:l.variables,path:o},l,c||{},u));return h&&(h.previous={incoming:t,streamFieldInfo:h.current,result:d}),d}}function S(e,t,r,i,n){const o=e.getStoreFieldName(r),a=(0,m.iJ)(o),l=r.variables||i.variables,{toReference:c,canRead:u}=i.store;return{args:v(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:l,isReference:s.A,toReference:c,storage:n,cache:e.cache,canRead:u,readField:(...r)=>e.readField(T(r,t,l),i),mergeObjects:C(i.store)}}function T(e,t,r){const{0:i,1:n,length:s}=e;let a;return"string"==typeof i?a={fieldName:i,from:s>1?n:t}:(a={...i},m.$3.call(a,"from")||(a.from=t)),o.g&&void 0===a.from&&o.g&&f.V1.warn(105,(0,d.p)(Array.from(e))),void 0===a.variables&&(a.variables=r),a}
23function C(e){return function(t,r){if((0,c.c)(t)||(0,c.c)(r))throw(0,f.vA)(106);if((0,p.U)(t)&&(0,p.U)(r)){const i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if((0,s.A)(t)&&(0,m.d1)(r))return e.merge(t.__ref,r),t;if((0,m.d1)(t)&&(0,s.A)(r))return e.merge(t,r.__ref),r;if((0,m.d1)(t)&&(0,m.d1)(r))return{...t,...r}}return r}}},92327:(e,t,r)=>{if(r.d(t,{A:()=>n}),"vendors"!=r.j)var i=r(82284);function n(e,t){if("object"!=(0,i.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=(0,i.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},92513:(e,t,r)=>{if(r.d(t,{I:()=>n}),"vendors"!=r.j)var i=r(62722);function n(e){let t=e[0]||{};const r=e.length;if(r>1){const n=new i.Z;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}},92675:(e,t,r)=>{r.d(t,{R:()=>o});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(91104);if("contactslistv2/contactslistv2"==r.j)var s=r(80819);function o(){var e=(0,i.useContext)(n.m);return(0,s.V)(null!==e,"The <Index> component must be used within <InstantSearch>."),e}},92901:(e,t,r)=>{if(r.d(t,{A:()=>s}),/^(contact(slistv2\/contactslistv2|uscontentpage\/contactuscontentpage)|app|searchresults\/searchresults)$/.test(r.j))var i=r(49922);function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(0,i.A)(n.key),n)}}function s(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},92908:(e,t,r)=>{if(r.d(t,{N:()=>n}),"vendors"!=r.j)var i=r(61209);function n(e){return function(t){if(function(e){return(0,i.T)(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},93031:(e,t,r)=>{if(r.d(t,{U:()=>s}),"vendors"!=r.j)var i=r(69862);if("vendors"!=r.j)var n=r(58307);function s(e){return void 0===e&&(e=1/0),(0,i.Z)(n.D,e)}},93241:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(96540);function n(e,t){return"undefined"==typeof window?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)}},93776:(e,t,r)=>{r.d(t,{c:()=>h});var i=r(2685),n=r(52616),s=r(55604),o=r(58307);function a(e){return 0===e.length?o.D:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var l=r(94384),c=r(61209),u=r(7008),h=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var s,o=this,a=(s=e)&&s instanceof i.vU||function(e){return e&&(0,c.T)(e.next)&&(0,c.T)(e.error)&&(0,c.T)(e.complete)}(s)&&(0,n.Uv)(s)?e:new i.Ms(e,t,r);return(0,u.Y)((function(){var e=o,t=e.operator,r=e.source;a.add(t?t.call(a,r):r?o._subscribe(a):o._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))((function(t,n){var s=new i.Ms({next:function(t){try{e(t)}catch(e){n(e),s.unsubscribe()}},error:n,complete:t});r.subscribe(s)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[s.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,r){var i;t.subscribe((function(e){return i=e}),(function(e){return r(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:l.$.Promise)&&void 0!==t?t:Promise}},93873:(e,t,r)=>{r.d(t,{A:()=>i});const i=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?function(e,t){e=e||10;const r=new Array(e),i=new Array(e);let n,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[o];n||(n=l),r[s]=a,i[s]=l;let u=o,h=0;for(;u!==s;)h+=r[u++],u%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-n<t)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}}:null},93967:(e,t,r)=>{if(r.d(t,{A:()=>
23o}),/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var i=r(17275);if(/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j))var n=r(95267);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function o(e,t,r){if(!t)return e;const o=r&&r.encode||s;i.A.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let l;if(l=a?a(t,r):i.A.isURLSearchParams(t)?t.toString():new n.A(t,r).toString(o),l){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}},93982:(e,t,r)=>{function i(e){const t={data:e.data};return e.error&&(t.error=e.error),t}r.d(t,{$:()=>i})},94037:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(51648),n=r(33261),s=r(65520);var o={lastScrollTime:(0,s.tB)(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return(0,i.zk)().navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e=(0,i.YE)(),t="onwheel",r=t in e;if(!r){var n=e.createElement("div");n.setAttribute(t,"return;"),r="function"==typeof n[t]}return!r&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(r=e.implementation.hasFeature("Events.wheel","3.0")),r}()?"wheel":"mousewheel"},normalize:function(e){var t=0,r=0,i=0,n=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),i=10*t,n=10*r,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=n,n=0),(i||n)&&e.deltaMode&&(1===e.deltaMode?(i*=40,n*=40):(i*=800,n*=800)),i&&!t&&(t=i<1?-1:1),n&&!r&&(r=n<1?-1:1),{spinX:t,spinY:r,pixelX:i,pixelY:n}},handleMouseEnter:function(){this.enabled&&(this.mouseEntered=!0)},handleMouseLeave:function(){this.enabled&&(this.mouseEntered=!1)},handle:function(e){var t=e,r=this;if(r.enabled){var i=r.params.mousewheel;r.params.cssMode&&t.preventDefault();var a=r.$el;if("container"!==r.params.mousewheel.eventsTarget&&(a=(0,n.A)(r.params.mousewheel.eventsTarget)),!r.mouseEntered&&!a[
230].contains(t.target)&&!i.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var l=0,c=r.rtlTranslate?-1:1,u=o.normalize(t);if(i.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(u.pixelX)>Math.abs(u.pixelY)))return!0;l=-u.pixelX*c}else{if(!(Math.abs(u.pixelY)>Math.abs(u.pixelX)))return!0;l=-u.pixelY}else l=Math.abs(u.pixelX)>Math.abs(u.pixelY)?-u.pixelX*c:-u.pixelY;if(0===l)return!0;i.invert&&(l=-l);var h=r.getTranslate()+l*i.sensitivity;if(h>=r.minTranslate()&&(h=r.minTranslate()),h<=r.maxTranslate()&&(h=r.maxTranslate()),(!!r.params.loop||!(h===r.minTranslate()||h===r.maxTranslate()))&&r.params.nested&&t.stopPropagation(),r.params.freeMode){var d={time:(0,s.tB)(),delta:Math.abs(l),direction:Math.sign(l)},p=r.mousewheel.lastEventBeforeSnap,f=p&&d.time<p.time+500&&d.delta<=p.delta&&d.direction===p.direction;if(!f){r.mousewheel.lastEventBeforeSnap=void 0,r.params.loop&&r.loopFix();var m=r.getTranslate()+l*i.sensitivity,g=r.isBeginning,y=r.isEnd;if(m>=r.minTranslate()&&(m=r.minTranslate()),m<=r.maxTranslate()&&(m=r.maxTranslate()),r.setTransition(0),r.setTranslate(m),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!g&&r.isBeginning||!y&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky){clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=void 0;var v=r.mousewheel.recentWheelEvents;v.length>=15&&v.shift();var _=v.length?v[v.length-1]:void 0,b=v[0];if(v.push(d),_&&(d.delta>_.delta||d.direction!==_.direction))v.splice(0);else if(v.length>=15&&d.time-b.time<500&&b.delta-d.delta>=1&&d.delta<=6){var x=l>0?.8:.2;r.mousewheel.lastEventBeforeSnap=d,v.splice(0),r.mousewheel.timeout=(0,s.dY)((function(){r.slideToClosest(r.params.speed,!0,void 0,x)}),0)}r.mousewheel.timeout||(r.mousewheel.timeout=(0,s.dY)((function(){r.mousewheel.lastEventBeforeSnap=d,v.splice(0),r.slideToClosest(r.params.speed,!0,void 0,.5)}),500))}if(f||r.emit("scroll",t),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),m===r.minTranslate()||m===r.maxTranslate())return!0}}else{var w={time:(0,s.tB)(),delta:Math.abs(l),direction:Math.sign(l),raw:e},A=r.mousewheel.recentWheelEvents;A.length>=2&&A.shift();var E=A.length?A[A.length-1]:void 0;if(A.push(w),E?(w.direction!==E.direction||w.delta>E.delta||w.time>E.time+150)&&r.mousewheel.animateSlider(w):r.mousewheel.animateSlider(w),r.mousewheel.releaseScroll(w))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1}},animateSlider:function(e){var t=this,r=(0,i.zk)();return!(this.params.mousewheel.thresholdDelta&&e.delta<this.params.mousewheel.thresholdDelta)&&(!(this.params.mousewheel.thresholdTime&&(0,s.tB)()-t.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime)&&(e.delta>=6&&(0,s.tB)()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new r.Date).getTime(),!1)))},releaseScroll:function(e){var t=this,r=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&r.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&r.releaseOnEdges)return!0;return!1},enable:function(){var e=this,t=o.event();if(e.params.cssMode)return e.wrapperEl.removeEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var r=e.$el;return"container"!==e.params.mousewheel.eventsTarget&&(r=(0,n.A)(e.params.mousewheel.eventsTarget)),r.on("mouseenter",e.mousewheel.handleMouseEnter),r.on("mouseleave",e.mousewheel.handleMouseLeave),r.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this,t=o.event();if(e.params.cssMode)return e.wrapperEl.addEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var r=e.$el;return"container"!==e.params.mousewheel.eventsTarget&&(r=(0,n.A)(e.params.mousewheel.eventsTarget)),r.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};const a={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function(){(0,s.wD)(this,{mousewheel:{enabled:!1,lastScrollTime:(0,s.tB)(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:o.enable,disable:o.disable,handle:o.handle,handleMouseEnter:o.handleMouseEnter,handleMouseLeave:o.handleMouseLeave,animateSlider:o.animateSlider,releaseScroll:o.releaseScroll}})},on:{init:function(e){!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(e){e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}}},94176:(e,t,r)=>{function i(e){return e.filter((function(e,t,r){return r.indexOf(e)===t}))}r.d(t,{s:()=>i})},94179:(e,t,r)=>{if(r.d(t,{_:()=>s}),"contactslistv2/contactslistv2"==r.j)var i=r(69502);if("contactslistv2/contactslistv2"==r.j)var n=r(66860);function s(e,t){return(0,n.Z)(i.A,{searchParameters:e},t)}},94338:(e,t,r)=>{if(r.d(t,{A:()=>p}),"contactslistv2/contactslistv2"==r.j)var i=r(90093);if("contactslistv2/contactslistv2"==r.j)var n=r(41535);if("contactslistv2/contactslistv2"==r.j)var s=r(74596);if("contactslistv2/contactslistv2"==r.j)var o=r(16606);if("contactslistv2/contactslistv2"==r.j)var a=r(35984);if("contactslistv2/contactslistv2"==r.j)var l=r(66745);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
23t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=e.numberLocale;return{formatNumber:function(e,r){return(0,l.Z)(Number(r(e)),t)},highlight:function(e,t){try{var r=JSON.parse(e);return t((0,i.A)(h(h({},r),{},{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r=JSON.parse(e);return t((0,n.A)(h(h({},r),{},{hit:this})))}catch(e){throw new Error('\n The reverseHighlight helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r=JSON.parse(e);return t((0,s.A)(h(h({},r),{},{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r=JSON.parse(e);return t((0,o.A)(h(h({},r),{},{hit:this})))}catch(e){throw new Error('\n The reverseSnippet helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r=JSON.parse(e),i=r.method,n=r.payload;return t((0,a.Ay)(i,h({objectIDs:[this.objectID]},n)))}catch(e){throw new Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}}}},94384:(e,t,r)=>{r.d(t,{$:()=>i});var i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94573:(e,t,r)=>{r.d(t,{A:()=>n});var i=Object.prototype.hasOwnProperty;const n="app"==r.j?function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&i.call(e,"index")&&(r.index=e.index,r.input=e.input),r}:null},95025:(e,t,r)=>{if(r.d(t,{J:()=>l}),"contactslistv2/contactslistv2"==r.j)var i=r(96021);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=e.getHelper(),r=e.getResults()||(0,i.N)(t.state),n=e.getScopedResults().map((function(t){var n=t.indexId===e.getIndexId()?r:(0,i.N)(t.helper.state);return o(o({},t),{},{results:t.results||n})}));return{results:r,scopedResults:n,recommendResults:t.lastRecommendResults}}},95138:(e,t,r)=>{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
23t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(t).reduce((function(e,r){var i=t[r];return i.recommendResults?s(s({},e),i.recommendResults.results):e}),{});e._recommendCache=r}r.d(t,{I:()=>a})},95167:(e,t,r)=>{r.d(t,{A:()=>k});var i=r(17275),n=r(73119),s=r(63853),o=r(10807),a=r(74062),l=r(38458),c=r(55579),u=r(20014),h=r(79586),d=r(77837),p=r(88382);const f="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=(0,p.A)(e);let f=n.data;const m=h.A.from(n.headers).normalize();let g,y,v,_,b,{responseType:x,onUploadProgress:w,onDownloadProgress:A}=n;function E(){_&&_(),b&&b(),n.cancelToken&&n.cancelToken.unsubscribe(g),n.signal&&n.signal.removeEventListener("abort",g)}let S=new XMLHttpRequest;function T(){if(!S)return;const i=h.A.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),n={data:x&&"text"!==x&&"json"!==x?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:i,config:e,request:S};(0,s.A)((function(e){t(e),E()}),(function(e){r(e),E()}),n),S=null}S.open(n.method.toUpperCase(),n.url,!0),S.timeout=n.timeout,"onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(T)},S.onabort=function(){S&&(r(new a.A("Request aborted",a.A.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new a.A("Network Error",a.A.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||o.A;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new a.A(t,i.clarifyTimeoutError?a.A.ETIMEDOUT:a.A.ECONNABORTED,e,S)),S=null},void 0===f&&m.setContentType(null),"setRequestHeader"in S&&i.A.forEach(m.toJSON(),(function(e,t){S.setRequestHeader(t,e)})),i.A.isUndefined(n.withCredentials)||(S.withCredentials=!!n.withCredentials),x&&"json"!==x&&(S.responseType=n.responseType),A&&([v,b]=(0,d.C1)(A,!0),S.addEventListener("progress",v)),w&&S.upload&&([y,_]=(0,d.C1)(w),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",_)),(n.cancelToken||n.signal)&&(g=t=>{S&&(r(!t||t.type?new l.A(null,e,S):t),S.abort(),S=null)},n.cancelToken&&n.cancelToken.subscribe(g),n.signal&&(n.signal.aborted?g():n.signal.addEventListener("abort",g)));const C=(0,c.A)(n.url);C&&-1===u.A.protocols.indexOf(C)?r(new a.A("Unsupported protocol "+C+":",a.A.ERR_BAD_REQUEST,e)):S.send(f||null)}))};var m=r(12723),g=r(1791);const y="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,v=y&&"function"==typeof ReadableStream,_=y&&("function"==typeof TextEncoder?(b=new TextEncoder,e=>b.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var b;const x=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},w=v&&x((()=>{let e=!1;const t=new Request(u.A.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),A=v&&x((()=>i.A.isReadableStream(new Response("").body))),E={stream:A&&(e=>e.body)};var S;y&&(S=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!E[e]&&(E[e]=i.A.isFunction(S[e])?t=>t[e]():(t,r)=>{throw new a.A(`Response type '${e}' is not supported`,a.A.ERR_NOT_SUPPORT,r)})})));const T=async(e,t)=>{const r=i.A.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(i.A.isBlob(e))return e.size;
23if(i.A.isSpecCompliantForm(e)){const t=new Request(u.A.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return i.A.isArrayBufferView(e)||i.A.isArrayBuffer(e)?e.byteLength:(i.A.isURLSearchParams(e)&&(e+=""),i.A.isString(e)?(await _(e)).byteLength:void 0)})(t):r},C=y&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:l,timeout:c,onDownloadProgress:u,onUploadProgress:f,responseType:y,headers:v,withCredentials:_="same-origin",fetchOptions:b}=(0,p.A)(e);y=y?(y+"").toLowerCase():"text";let x,S=(0,m.A)([o,l&&l.toAbortSignal()],c);const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let I;try{if(f&&w&&"get"!==r&&"head"!==r&&0!==(I=await T(v,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(i.A.isFormData(n)&&(e=r.headers.get("content-type"))&&v.setContentType(e),r.body){const[e,t]=(0,d.Vj)(I,(0,d.C1)((0,d.mM)(f)));n=(0,g.E9)(r.body,65536,e,t)}}i.A.isString(_)||(_=_?"include":"omit");const o="credentials"in Request.prototype;x=new Request(t,{...b,signal:S,method:r.toUpperCase(),headers:v.normalize().toJSON(),body:n,duplex:"half",credentials:o?_:void 0});let a=await fetch(x);const l=A&&("stream"===y||"response"===y);if(A&&(u||l&&C)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=i.A.toFiniteNumber(a.headers.get("content-length")),[r,n]=u&&(0,d.Vj)(t,(0,d.C1)((0,d.mM)(u),!0))||[];a=new Response((0,g.E9)(a.body,65536,r,(()=>{n&&n(),C&&C()})),e)}y=y||"text";let c=await E[i.A.findKey(E,y)||"text"](a,e);return!l&&C&&C(),await new Promise(((t,r)=>{(0,s.A)(t,r,{data:c,headers:h.A.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:x})}))}catch(t){if(C&&C(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new a.A("Network Error",a.A.ERR_NETWORK,e,x),{cause:t.cause||t});throw a.A.from(t,t&&t.code,e,x)}}),I={http:n.A,xhr:f,fetch:C};i.A.forEach(I,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const P=e=>`- ${e}`,M=e=>i.A.isFunction(e)||null===e||!1===e,k={getAdapter:e=>{e=i.A.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!M(r)&&(n=I[(t=String(r)).toLowerCase()],void 0===n))throw new a.A(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(P).join("\n"):" "+P(e[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:I}},95267:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(70665);function n(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function s(e,t){this._pairs=[],e&&(0,i.A)(e,this,t)}const o=s.prototype;o.append=function(e,t){this._pairs.push([e,t])},o.toString=function(e){const t=e?function(t){return e.call(this,t,n)}:n;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const a=/^(contactslistv2\/contactslistv2|vendors)$/.test(r.j)?s:null},95361:(e,t,r)=>{if(r.d(t,{BN:()=>y,ER:()=>v,Ej:()=>_,RK:()=>l,UE:()=>a,UU:()=>c,__:()=>o,cY:()=>g,jD:()=>d,mG:()=>f,rD:()=>s}),/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j))var i=r(97193);function n(e,t,r){let{reference:n,floating:s}=e;const o=(0,i.TV)(t),a=(0,i.Dz)(t),l=(0,i.sq)(a),c=(0,i.C0)(t),u="y"===o,h=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,p=n[l]/2-s[l]/2;let f;switch(c){case"top":f={x:h,y:n.y-s.height};break;case"bottom":f={x:h,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-s.width,y:d};break;default:f={x:n.x,y:n.y}}switch((0,i.Sg)(t)){case"start":f[a]-=p*(r&&u?-1:1);break;case"end":f[a]+=p*(r&&u?-1:1)}return f}const s=async(e,t,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:a}
23=r,l=o.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:h,y:d}=n(u,i,c),p=i,f={},m=0;for(let r=0;r<l.length;r++){const{name:o,fn:g}=l[r],{x:y,y:v,data:_,reset:b}=await g({x:h,y:d,initialPlacement:i,placement:p,strategy:s,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});h=null!=y?y:h,d=null!=v?v:d,f={...f,[o]:{...f[o],..._}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:s}):b.rects),({x:h,y:d}=n(u,p,c))),r=-1)}return{x:h,y:d,placement:p,strategy:s,middlewareData:f}};async function o(e,t){var r;void 0===t&&(t={});const{x:n,y:s,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=(0,i._3)(t,e),m=(0,i.nI)(f),g=l[p?"floating"===d?"reference":"floating":d],y=(0,i.B1)(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:c})),v="floating"===d?{x:n,y:s,width:a.floating.width,height:a.floating.height}:a.reference,_=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await(null==o.isElement?void 0:o.isElement(_))&&await(null==o.getScale?void 0:o.getScale(_))||{x:1,y:1},x=(0,i.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:_,strategy:c}):v);return{top:(y.top-x.top+m.top)/b.y,bottom:(x.bottom-y.bottom+m.bottom)/b.y,left:(y.left-x.left+m.left)/b.x,right:(x.right-y.right+m.right)/b.x}}const a=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:s,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:h=0}=(0,i._3)(e,t)||{};if(null==u)return{};const d=(0,i.nI)(h),p={x:r,y:n}
23,f=(0,i.Dz)(s),m=(0,i.sq)(f),g=await a.getDimensions(u),y="y"===f,v=y?"top":"left",_=y?"bottom":"right",b=y?"clientHeight":"clientWidth",x=o.reference[m]+o.reference[f]-p[f]-o.floating[m],w=p[f]-o.reference[f],A=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let E=A?A[b]:0;E&&await(null==a.isElement?void 0:a.isElement(A))||(E=l.floating[b]||o.floating[m]);const S=x/2-w/2,T=E/2-g[m]/2-1,C=(0,i.jk)(d[v],T),I=(0,i.jk)(d[_],T),P=C,M=E-g[m]-I,k=E/2-g[m]/2+S,O=(0,i.qE)(P,k,M),R=!c.arrow&&null!=(0,i.Sg)(s)&&k!==O&&o.reference[m]/2-(k<P?C:I)-g[m]/2<0,D=R?k<P?k-P:k-M:0;return{[f]:p[f]+D,data:{[f]:O,centerOffset:k-O-D,...R&&{alignmentOffset:D}},reset:R}}});const l=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,s;const{rects:a,middlewareData:l,placement:c,platform:u,elements:h}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:f=i.DD,autoAlignment:m=!0,...g}=(0,i._3)(e,t),y=void 0!==p||f===i.DD?function(e,t,r){return(e?[...r.filter((t=>(0,i.Sg)(t)===e)),...r.filter((t=>(0,i.Sg)(t)!==e))]:r.filter((e=>(0,i.C0)(e)===e))).filter((r=>!e||(0,i.Sg)(r)===e||!!t&&(0,i.aD)(r)!==r))}(p||null,m,f):f,v=await o(t,g),_=(null==(r=l.autoPlacement)?void 0:r.index)||0,b=y[_];if(null==b)return{};const x=(0,i.w7)(b,a,await(null==u.isRTL?void 0:u.isRTL(h.floating)));if(c!==b)return{reset:{placement:y[0]}};const w=[v[(0,i.C0)(b)],v[x[0]],v[x[1]]],A=[...(null==(n=l.autoPlacement)?void 0:n.overflows)||[],{placement:b,overflows:w}],E=y[_+1];if(E)return{data:{index:_+1,overflows:A},reset:{placement:E}};const S=A.map((e=>{const t=(0,i.Sg)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),T=(null==(s=S.filter((e=>e[2].slice(0,(0,i.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:s[0])||S[0][0];return T!==c?{data:{index:_+1,overflows:A},reset:{placement:T}}:{}}}},c=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:u,elements:h}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=(0,i._3)(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};const _=(0,i.C0)(s),b=(0,i.TV)(c),x=(0,i.C0)(c)===c,w=await(null==u.isRTL?void 0:u.isRTL(h.floating)),A=f||(x||!y?[(0,i.bV)(c)]:(0,i.WJ)(c)),E="none"!==g;!f&&E&&A.push(...(0,i.lP)(c,y,g,w));const S=[c,...A],T=await o(t,v),C=[];let I=(null==(n=a.flip)?void 0:n.overflows)||[];if(d&&C.push(T[_]),p){const e=(0,i.w7)(s,l,w);C.push(T[e[0]],T[e[1]])}if(I=[...I,{placement:s,overflows:C}],!C.every((e=>e<=0))){var P,M;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=S[e];if(t){if(!("alignment"===p&&b!==(0,i.TV)(t))||I.every((e=>(0,i.TV)(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}}}let r=null==(M=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!r)switch(m){case"bestFit":{var k;const e=null==(k=I.filter((e=>{if(E){const t=(0,i.TV)(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}};function u(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function h(e){return i.r_.some((t=>e[t]>=0))}const d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...s}=(0,i._3)(e,t);switch(n){case"referenceHidden":{const e=u(await o(t,{...s,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:h(e)}}}case"escaped":{const e=u(await o(t,{...s,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:h(e)}}}default:return{}}}}};function p(e){const t=(0,i.jk)(...e.map((e=>e.left))),r=(0,i.jk)(...e.map((e=>e.top)));return{x:t,y:r,width:(0,i.T9)(...e.map((e=>e.right)))-t,height:(0,i.T9)(...e.map((e=>e.bottom)))-r}}const f=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:s,platform:o,strategy:a}=t,{padding:l=2,x:c,y:u}=(0,i._3)(e,t),h=Array.from(await(null==o.getClientRects?void 0:o.getClientRects(n.reference))||[]),d=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),r=[];let n=null;for(let e=0;e<t.length;e++){const i=t[e];!n||i.y-n.y>n.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map((e=>(0,i.B1)(p(e))))}(h),f=(0,i.B1)(p(h)),m=(0,i.nI)(l);const g=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=u)return d.find((e=>c>e.left-m.left&&c<e.right+m.right&&u>e.top-m.top&&u<e.bottom+m.bottom))||f;
23if(d.length>=2){if("y"===(0,i.TV)(r)){const e=d[0],t=d[d.length-1],n="top"===(0,i.C0)(r),s=e.top,o=t.bottom,a=n?e.left:t.left,l=n?e.right:t.right;return{top:s,bottom:o,left:a,right:l,width:l-a,height:o-s,x:a,y:s}}const e="left"===(0,i.C0)(r),t=(0,i.T9)(...d.map((e=>e.right))),n=(0,i.jk)(...d.map((e=>e.left))),s=d.filter((r=>e?r.left===n:r.right===t)),o=s[0].top,a=s[s.length-1].bottom;return{top:o,bottom:a,left:n,right:t,width:t-n,height:a-o,x:n,y:o}}return f}},floating:n.floating,strategy:a});return s.reference.x!==g.reference.x||s.reference.y!==g.reference.y||s.reference.width!==g.reference.width||s.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},m=new Set(["left","top"]);const g=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:s,y:o,placement:a,middlewareData:l}=t,c=await async function(e,t){const{placement:r,platform:n,elements:s}=e,o=await(null==n.isRTL?void 0:n.isRTL(s.floating)),a=(0,i.C0)(r),l=(0,i.Sg)(r),c="y"===(0,i.TV)(r),u=m.has(a)?-1:1,h=o&&c?-1:1,d=(0,i._3)(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof g&&(f="end"===l?-1*g:g),c?{x:f*h,y:p*u}:{x:p*u,y:f*h}}(t,e);return a===(null==(r=l.offset)?void 0:r.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:s+c.x,y:o+c.y,data:{...c,placement:a}}}}},y=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=(0,i._3)(e,t),h={x:r,y:n},d=await o(t,u),p=(0,i.TV)((0,i.C0)(s)),f=(0,i.PG)(p);let m=h[f],g=h[p];if(a){const e="y"===f?"bottom":"right",t=m+d["y"===f?"top":"left"],r=m-d[e];m=(0,i.qE)(t,m,r)}if(l){const e="y"===p?"bottom":"right",t=g+d["y"===p?"top":"left"],r=g-d[e];g=(0,i.qE)(t,g,r)}const y=c.fn({...t,[f]:m,[p]:g});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[f]:a,[p]:l}}}}}},v=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:s,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=(0,i._3)(e,t),h={x:r,y:n},d=(0,i.TV)(s),p=(0,i.PG)(d);let f=h[p],g=h[d];const y=(0,i._3)(l,t),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+v.mainAxis,r=o.reference[p]+o.reference[e]-v.mainAxis;f<t?f=t:f>r&&(f=r)}if(u){var _,b;const e="y"===p?"width":"height",t=m.has((0,i.C0)(s)),r=o.reference[d]-o.floating[e]+(t&&(null==(_=a.offset)?void 0:_[d])||0)+(t?0:v.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);g<r?g=r:g>n&&(g=n)}return{[p]:f,[d]:g}}}},_=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:s,rects:a,platform:l,elements:c}=t,{apply:u=()=>{},...h}=(0,i._3)(e,t),d=await o(t,h),p=(0,i.C0)(s),f=(0,i.Sg)(s),m="y"===(0,i.TV)(s),{width:g,height:y}=a.floating;let v,_;"top"===p||"bottom"===p?(v=p,_=f===(await(null==l.isRTL?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(_=p,v="end"===f?"top":"bottom");const b=y-d.top-d.bottom,x=g-d.left-d.right,w=(0,i.jk)(y-d[v],b),A=(0,i.jk)(g-d[_],x),E=!t.middlewareData.shift;let S=w,T=A;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(T=x),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=b),E&&!f){const e=(0,i.T9)(d.left,0),t=(0,i.T9)(d.right,0),r=(0,i.T9)(d.top,0),n=(0,i.T9)(d.bottom,0);m?T=g-2*(0!==e||0!==t?e+t:(0,i.T9)(d.left,d.right)):S=y-2*(0!==r||0!==n?r+n:(0,i.T9)(d.top,d.bottom))}await u({...t,availableWidth:T,availableHeight:S});const C=await l.getDimensions(c.floating);return g!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}}},95420:(e,t,r)=>{r.d(t,{n:()=>c});var i=r(15381),n=r(96540);if("searchresults/searchresults"==r.j)var s=r(52404);if("searchresults/searchresults"==r.j)var o=r(2928);if("searchresults/searchresults"==r.j)var a=r(54269);if("searchresults/searchresults"==r.j)var l=r(70111);function c(e,t){const r=(0,l.m)(t?.client),[c,h]=n.useState((()=>u(r))),d=n.useRef({result:c,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,a.E)((()=>{Object.assign(d.current,{client:r,options:t,mutation:e})}));const p=n.useCallback(((e={})=>{const{options:t,mutation:r}=d.current,n={...t,mutation:r},a=e.client||d.current.client,l="function"==typeof e.context?e.context(t?.context):e.context;!d.current.result.loading&&d.current.isMounted&&h(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:a});const c=++d.current.mutationId,u=(0,s.l)(n,{...e,context:l});return(0,o.X)(a.mutate(u).then((t=>{const{data:r,error:n}=t,s=e.onError||d.current.options?.onError;if(n&&s&&s(n,u),c===d.current.mutationId){const e={called:!0,loading:!1,data:r,error:n,client:a};d.current.isMounted&&!(0,i.L)(d.current.result,e)&&h(d.current.result=e)}const o=e.onCompleted||d.current.options?.onCompleted;return n||o?.(t.data,u),t}),(t=>{if(c===d.current.mutationId&&d.current.isMounted){const e={loading:!1,error:t,data:void 0,called:!0,client:a};(0,i.L)(d.current.result,e)||h(d.current.result=e)}const r=e.onError||d.current.options?.onError;throw r&&r(t,u),t})))}),[]),f=n.useCallback((()=>
23{if(d.current.isMounted){const e=u(d.current.client);Object.assign(d.current,{mutationId:0,result:e}),h(e)}}),[]);return n.useEffect((()=>{const e=d.current;return e.isMounted=!0,()=>{e.isMounted=!1}}),[]),[p,{reset:f,...c}]}function u(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}},95843:(e,t,r)=>{r.d(t,{eO:()=>o});var i=r(98160);function n(e,t){const r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,o=e.locationOffset.line-1,a=t.line+o,l=1===t.line?r:0,c=t.column+l,u=`${e.name}:${a}:${c}\n`,h=i.split(/\r\n|[\n\r]/g),d=h[n];if(d.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let e=0;e<d.length;e+=80)r.push(d.slice(e,e+80));return u+s([[`${a} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+s([[a-1+" |",h[n-1]],[`${a} |`,d],["|","^".padStart(c)],[`${a+1} |`,h[n+1]]])}function s(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class o extends Error{constructor(e,...t){var r,n,s;const{nodes:l,source:c,positions:u,path:h,originalError:d,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=h?h:void 0,this.originalError=null!=d?d:void 0,this.nodes=a(Array.isArray(l)?l:l?[l]:void 0);const f=a(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=c?c:null==f||null===(n=f[0])||void 0===n?void 0:n.source,this.positions=null!=u?u:null==f?void 0:f.map((e=>e.start)),this.locations=u&&c?u.map((e=>(0,i.g)(c,e))):null==f?void 0:f.map((e=>(0,i.g)(e.source,e.start)));const m="object"==typeof(g=null==d?void 0:d.extensions)&&null!==g?null==d?void 0:d.extensions:void 0;var g;this.extensions=null!==(s=null!=p?p:m)&&void 0!==s?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+="\n\n"+n((t=r.loc).source,(0,i.g)(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+n(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function a(e){return void 0===e||0===e.length?void 0:e}},95927:(e,t,r)=>{r.d(t,{Z:()=>l});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(92675);if("contactslistv2/contactslistv2"==r.j)var s=r(83312);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function l(){var e=(0,s.I)(),t=(0,n.R)(),r=t.getIndexId(),a=o((0,i.useState)((function(){return e.getUiState()})),2),l=a[0],c=a[1],u=l[r],h=o((0,i.useState)((function(){return e.render
23State})),2),d=h[0],p=h[1],f=d[r]||{},m=(0,i.useCallback)((function(t){e.setUiState(t)}),[e]),g=(0,i.useCallback)((function(e){t.setIndexUiState(e)}),[t]);return(0,i.useEffect)((function(){function t(){c(e.getUiState()),p(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}}),[e]),{uiState:l,setUiState:m,indexUiState:u,setIndexUiState:g,renderState:d,indexRenderState:f}}},96021:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(74103);function n(e){var t,r,n;return new i.SearchResults(e,[{query:null!==(t=e.query)&&void 0!==t?t:"",page:null!==(r=e.page)&&void 0!==r?r:0,hitsPerPage:null!==(n=e.hitsPerPage)&&void 0!==n?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}},96231:(e,t,r)=>{r.d(t,{A:()=>i});const i="4.85.2"},96369:(e,t,r)=>{function i(e){if(Array.isArray(e))return e}r.d(t,{A:()=>i})},96379:(e,t,r)=>{r.d(t,{A:()=>l});var i=r(33261),n=r(65520);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(this,arguments)}var a={update:function(e){var t=this,r=t.params,i=r.slidesPerView,s=r.slidesPerGroup,o=r.centeredSlides,a=t.params.virtual,l=a.addSlidesBefore,c=a.addSlidesAfter,u=t.virtual,h=u.from,d=u.to,p=u.slides,f=u.slidesGrid,m=u.renderSlide,g=u.offset;t.updateActiveIndex();var y,v,_,b=t.activeIndex||0;y=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(v=Math.floor(i/2)+s+c,_=Math.floor(i/2)+s+l):(v=i+(s-1)+c,_=s+l);var x=Math.max((b||0)-_,0),w=Math.min((b||0)+v,p.length-1),A=(t.slidesGrid[x]||0)-(t.slidesGrid[0]||0);function E(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if((0,n.X$)(t.virtual,{from:x,to:w,offset:A,slidesGrid:t.slidesGrid}),h===x&&d===w&&!e)return t.slidesGrid!==f&&A!==g&&t.slides.css(y,A+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:A,from:x,to:w,slides:function(){for(var e=[],t=x;t<=w;t+=1)e.push(p[t]);return e}()}),void(t.params.virtual.renderExternalUpdate&&E());var S=[],T=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var C=h;C<=d;C+=1)(C<x||C>w)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var I=0;I<p.length;I+=1)I>=x&&I<=w&&(void 0===d||e?T.push(I):(I>d&&T.push(I),I<h&&S.push(I)));T.forEach((function(e){t.$wrapperEl.append(m(p[e],e))})),S.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(m(p[e],e))})),t.$wrapperEl.children(".swiper-slide").css(y,A+"px"),E()},renderSlide:function(e,t){var r=this,n=r.params.virtual;if(n.cache&&r.virtual.cache[t])return r.virtual.cache[t];var s=n.renderSlide?(0,i.A)(n.renderSlide.call(r,e,t)):(0,i.A)('<div class="'+r.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),n.cache&&(r.virtual.cache[t]=s),s},appendSlide:function(e){var t=this;if("object"===s(e)&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&t.virtual.slides.push(e[r]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,r=t.activeIndex,i=r+1,n=1;if(Array.isArray(e)){for(var s=0;s<e.length;s+=1)e[s]&&t.virtual.slides.unshift(e[s]);i=r+e.length,n=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var o=t.virtual.cache,a={};Object.keys(o).forEach((function(e){var t=o[e],r=t.attr("data-swiper-slide-index");r&&t.attr("data-swiper-slide-index",parseInt(r,10)+1),a[parseInt(e,10)+n]=t})),t.virtual.cache=a}t.virtual.update(!0),t.slideTo(i,0)},removeSlide:function(e){var t=this;if(null!=e){var r=t.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<r&&(r-=1),r=Math.max(r,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<r&&(r-=1),r=Math.max(r,0);t.virtual.update(!0),t.slideTo(r,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}};const l={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function(){(0,n.wD)(this,{virtual:o({},a,{slides:this.params.virtual.slides,cache:{}})})},on:{beforeInit:function(e){if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};(0,n.X$)(e.params,t),(0,n.X$)(e.originalParams,t),e.params.initialSlide||e.virtual.update(
23)}},setTranslate:function(e){e.params.virtual.enabled&&e.virtual.update()}}}},96744:(e,t,r)=>{r.d(t,{f:()=>n});var i=r(31635),n={setTimeout:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];var o=n.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,(0,i.__spreadArray)([e,t],(0,i.__read)(r))):setTimeout.apply(void 0,(0,i.__spreadArray)([e,t],(0,i.__read)(r)))},clearTimeout:function(e){var t=n.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},97193:(e,t,r)=>{r.d(t,{B1:()=>O,C0:()=>m,DD:()=>s,Dz:()=>x,Jx:()=>u,LI:()=>l,PG:()=>y,RI:()=>c,Sg:()=>g,T9:()=>a,TV:()=>b,WJ:()=>A,_3:()=>f,aD:()=>E,bV:()=>M,jk:()=>o,lP:()=>P,nI:()=>k,qE:()=>p,r_:()=>i,sq:()=>v,w7:()=>w});const i=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["top","right","bottom","left"]:null,n=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["start","end"]:null,s=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?i.reduce(((e,t)=>e.concat(t,t+"-"+n[0],t+"-"+n[1])),[]):null,o=Math.min,a=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function p(e,t,r){return a(e,o(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function y(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}const _=new Set(["top","bottom"]);function b(e){return _.has(m(e))?"y":"x"}function x(e){return y(b(e))}function w(e,t,r){void 0===r&&(r=!1);const i=g(e),n=x(e),s=v(n);let o="x"===n?i===(r?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=M(o)),[o,M(o)]}function A(e){const t=M(e);return[E(e),t,E(t)]}function E(e){return e.replace(/start|end/g,(e=>d[e]))}const S=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["left","right"]:null,T=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["right","left"]:null,C=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["top","bottom"]:null,I=/^((casestudieslist\/casestudie|downloadslist\/download|eventslist\/event|newslist\/new)slist|app|articlelistpage\/articlelistpage|searchresults\/searchresults)$/.test(r.j)?["bottom","top"]:null;function P(e,t,r,i){const n=g(e);let s=function(e,t,r){switch(e){case"top":case"bottom":return r?t?T:S:t?S:T;case"left":case"right":return t?C:I;default:return[]}}(m(e),"start"===r,i);return n&&(s=s.map((e=>e+"-"+n)),t&&(s=s.concat(s.map(E)))),s}function M(e){return e.replace(/left|right|bottom|top/g,(e=>h[e]))}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function O(e){const{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}},97271:(e,t,r)=>{r.d(t,{A:()=>n});var i=Object.prototype;const n="app"==r.j?function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}:null},97539:(e,t,r)=>{r.d(t,{s:()=>a});var i=r(96540);if("searchresults/searchresults"==r.j)var n=r(74047);if("searchresults/searchresults"==r.j)var s=r(68481);if("searchresults/searchresults"==r.j)var o=r(70111);function a(e){const t=(0,n.Fd)(e),r=(0,o.m)(t?t.observable:void 0);return(0,s.Y)("useQueryRefHandlers",l,r)(e)}function l(e){(0,n.Ru)(e);const[t,r]=i.useState(e),[s,o]=i.useState(e),a=(0,n.Fd)(e);t!==e?(r(e),o(e)):(0,n.CY)(e,(0,n.Ve)(s));return{refetch:i.useCallback((e=>{const t=a.refetch(e);return o((0,n.Qh)(a)),t}),[a]),fetchMore:i.useCallback((e=>{const t=a.fetchMore(e);return o((0,n.Qh)(a)),t}),[a]),subscribeToMore:a.observable.subscribeToMore}}},98008:(e,t,r)=>{r.d(t,{x:()=>i});const i=r(16839).C.concat},98160:(e,t,r)=>{if(r.d(t,{g:()=>s}),"vendors"!=r.j)var i=r(71181);const n=/\r\n|[\n\r]/g;function s(e,t){let r=0,s=1;
23for(const o of e.body.matchAll(n)){if("number"==typeof o.index||(0,i.V)(!1),o.index>=t)break;r=o.index+o[0].length,s+=1}return{line:s,column:t+1-r}}},98292:(e,t,r)=>{r.d(t,{m:()=>s});var i=r(96540);if("contactslistv2/contactslistv2"==r.j)var n=r(49233);function s(){return(0,i.useContext)(n.R)}},98581:(e,t,r)=>{if(r.d(t,{S:()=>a}),"vendors"!=r.j)var i=r(93776);if("vendors"!=r.j)var n=r(12059);if("vendors"!=r.j)var s=r(61209);if("vendors"!=r.j)var o=r(56315);function a(e,t){return new i.c((function(r){var i;return(0,o.N)(r,t,(function(){i=e[n.l](),(0,o.N)(r,t,(function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){return void r.error(e)}n?r.complete():r.next(t)}),0,!0)})),function(){return(0,s.T)(null==i?void 0:i.return)&&i.return()}}))}},98587:(e,t,r)=>{function i(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}r.d(t,{A:()=>i})},98820:(e,t,r)=>{if(r.d(t,{m:()=>n}),"vendors"!=r.j)var i=r(61209);function n(e){return e&&(0,i.T)(e.schedule)}},99034:(e,t,r)=>{function i(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}r.d(t,{A:()=>i})},99418:(e,t,r)=>{r.d(t,{A:()=>ae});const{entries:i,setPrototypeOf:n,isFrozen:s,getPrototypeOf:o,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:h,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),h||(h=function(e,t,r){return e.apply(t,r)}),d||(d=function(e,t){return new e(...t)});const p=I(Array.prototype.forEach),f=I(Array.prototype.lastIndexOf),m=I(Array.prototype.pop),g=I(Array.prototype.push),y=I(Array.prototype.splice),v=I(String.prototype.toLowerCase),_=I(String.prototype.toString),b=I(String.prototype.match),x=I(String.prototype.replace),w=I(String.prototype.indexOf),A=I(String.prototype.trim),E=I(Object.prototype.hasOwnProperty),S=I(RegExp.prototype.test),T=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return d(C,t)});var C;function I(e){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return h(e,t,i)}}function P(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;n&&n(e,null);let i=t.length;for(;i--;){let n=t[i];if("string"==typeof n){const e=r(n);e!==n&&(s(t)||(t[i]=e),n=e)}e[n]=!0}return e}function M(e){for(let t=0;t<e.length;t++){E(e,t)||(e[t]=null)}return e}function k(e){const t=u(null);for(const[r,n]of i(e)){E(e,r)&&(Array.isArray(n)?t[r]=M(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=k(n):t[r]=n)}return t}function O(e,t){for(;null!==e;){const r=a(e,t);if(r){if(r.get)return I(r.get);if("function"==typeof r.value)return I(r.value)}e=o(e)}return function(){return null}}const R=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=l(["#text"]),N=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
23spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),U=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=c(/<%[\w\W]*|[\w\W]*%>/gm),W=c(/\$\{[\w\W]*/gm),Y=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),Q=c(/^aria-[\-\w]+$/),Z=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=c(/^(?:\w+script|data):/i),K=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=c(/^html$/i),$=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:Q,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:$,DATA_ATTR:Y,DOCTYPE_NAME:J,ERB_EXPR:H,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:q,TMPLIT_EXPR:W});const te=1,re=3,ie=7,ne=8,se=9,oe=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const r=t=>e(t);if(r.version="3.2.4",r.removed=[],!t||!t.document||t.document.nodeType!==se||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const s=n,o=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:h,Element:d,NodeFilter:C,NamedNodeMap:I=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:M,DOMParser:q,trustedTypes:H}=t,W=d.prototype,Y=O(W,"cloneNode"),Q=O(W,"remove"),X=O(W,"nextSibling"),K=O(W,"childNodes"),$=O(W,"parentNode");if("function"==typeof c){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let ae,le="";const{implementation:ce,createNodeIterator:ue,createDocumentFragment:he,getElementsByTagName:de}=n,{importNode:pe}=s;let fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof i&&"function"==typeof $&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:ge,TMPLIT_EXPR:ye,DATA_ATTR:ve,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:we}=ee;let{IS_ALLOWED_URI:Ae}=ee,Ee=null;const Se=P({},[...R,...D,...L,...z,...F]);let Te=null;const Ce=P({},[...N,...U,...V,...G]);let Ie=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Pe=null,Me=null,ke=!0,Oe=!0,Re=!1,De=!0,Le=!1,Be=!0,ze=!1,je=!1,Fe=!1,Ne=!1,Ue=!1,Ve=!1,Ge=!0,qe=!1,He=!0,We=!1,Ye={},Qe=null;const Ze=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const Ke=P({},["audio","video","img","source","image","track"]);let Je=null;
vendor: 7,484 bytes, line 23
23const $e=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let it=rt,nt=!1,st=null;const ot=P({},[et,tt,rt],_);let at=P({},["mi","mo","mn","ms","mtext"]),lt=P({},["annotation-xml"]);const ct=P({},["title","style","font","a","script"]);let ut=null;const ht=["application/xhtml+xml","text/html"];let dt=null,pt=null;const ft=n.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=k(e),ut=-1===ht.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,dt="application/xhtml+xml"===ut?_:v,Ee=E(e,"ALLOWED_TAGS")?P({},e.ALLOWED_TAGS,dt):Se,Te=E(e,"ALLOWED_ATTR")?P({},e.ALLOWED_ATTR,dt):Ce,st=E(e,"ALLOWED_NAMESPACES")?P({},e.ALLOWED_NAMESPACES,_):ot,Je=E(e,"ADD_URI_SAFE_ATTR")?P(k($e),e.ADD_URI_SAFE_ATTR,dt):$e,Xe=E(e,"ADD_DATA_URI_TAGS")?P(k(Ke),e.ADD_DATA_URI_TAGS,dt):Ke,Qe=E(e,"FORBID_CONTENTS")?P({},e.FORBID_CONTENTS,dt):Ze,Pe=E(e,"FORBID_TAGS")?P({},e.FORBID_TAGS,dt):{},Me=E(e,"FORBID_ATTR")?P({},e.FORBID_ATTR,dt):{},Ye=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,Be=!1!==e.SAFE_FOR_XML,ze=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,qe=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||Z,it=e.NAMESPACE||rt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,lt=e.HTML_INTEGRATION_POINTS||lt,Ie=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Oe=!1),Ue&&(Ne=!0),Ye&&(Ee=P({},F),Te=[],!0===Ye.html&&(P(Ee,R),P(Te,N)),!0===Ye.svg&&(P(Ee,D),P(Te,U),P(Te,G)),!0===Ye.svgFilters&&(P(Ee,L),P(Te,U),P(Te,G)),!0===Ye.mathMl&&(P(Ee,z),P(Te,V),P(Te,G))),e.ADD_TAGS&&(Ee===Se&&(Ee=k(Ee)),P(Ee,e.ADD_TAGS,dt)),e.ADD_ATTR&&(Te===Ce&&(Te=k(Te)),P(Te,e.ADD_ATTR,dt)),e.ADD_URI_SAFE_ATTR&&P(Je,e.ADD_URI_SAFE_ATTR,dt),e.FORBID_CONTENTS&&(Qe===Ze&&(Qe=k(Qe)),P(Qe,e.FORBID_CONTENTS,dt)),He&&(Ee["#text"]=!0),ze&&P(Ee,["html","head","body"]),Ee.table&&(P(Ee,["tbody"]),delete Pe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ae=e.TRUSTED_TYPES_POLICY,le=ae.createHTML("")}else void 0===ae&&(ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));const n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(H,o)),null!==ae&&"string"==typeof le&&(le=ae.createHTML(""));l&&l(e),pt=e}},yt=P({},[...D,...L,...B]),vt=P({},[...z,...j]),_t=function(e){g(r.removed,{element:e});try{$(e).removeChild(e)}catch(t){Q(e)}},bt=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ne||Ue)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){let t=null,r=null;if(Fe)e="<remove></remove>"+e;else{const t=b(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===ut&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ae?ae.createHTML(e):e;if(it===rt)try{t=(new q).parseFromString(i,ut)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=nt?le:i}catch(e){}}const s=t.body||t.documentElement;return e&&r&&s.insertBefore(n.createTextNode(r),s.childNodes[0]||null),it===rt?de.call(t,ze?"html":"body")[0]:ze?t.documentElement:s},wt=function(e){return ue.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof M&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof I)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Et=function(e){return"function"==typeof h&&e instanceof h};function St(e,t,i){p(e,(e=>{e.call(r,t,i,pt)}))}const Tt=function(e){let t=null;if(St(fe.beforeSanitizeElements,e,null),At(e))return _t(e),!0;const i=dt(e.nodeName);if(St(fe.uponSanitizeElement,e,{tagName:i,allowedTags:Ee}),e.hasChildNodes()&&!Et(e.firstElementChild)&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return _t(e),!0;if(e.nodeType===ie)return _t(e),!0;if(Be&&e.nodeType===ne&&S(/<[/\w]/g,e.data))return _t(e),!0;if(!Ee[i]||Pe[i]){if(!Pe[i]&&It(i)){if(Ie.tagNameCheck instanceof RegExp&&S(Ie.tagNameCheck,i))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(i))return!1}if(He&&!Qe[i]){const t=$(e)||e.parentNode,r=K(e)||e.childNodes;if(r&&t){for(let i=r.length-1;i>=0;--i){const n=Y(r[i],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,X(e))}}}return _t(e),!0}return e instanceof d&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const r=v(e.tagName),i=v(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===rt?"svg"===r:t.namespaceURI===et?"svg"===r&&("annotation-xml"===i||at[i]):Boolean(yt[r]):e.namespaceURI===et?t.namespaceURI===rt?"math"===r:t.namespaceURI===tt?"math"===r&<[i]:Boolean(vt[r]):e.namespaceURI===rt?!(t.namespaceURI===tt&&!lt[i])&&!(t.namespaceURI===et&&!at[i])&&!vt[r]&&(ct[r]||!yt[r]):!("application/xhtml+xml"!==ut||!st[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&e.nodeType===re&&(t=e.textContent,p([me,ge,ye],(e=>{t=x(t,e," ")})),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),St(fe.afterSanitizeElements,e,null),!1):(_t(e),!0)},Ct=function(e,t,r){if(Ge&&("id"===t||"name"===t)&&(r in n||r in ft))return!1;if(Oe&&!Me[t]&&S(ve,t));else if(ke&&S(_e,t));else if(!Te[t]||Me[t]){if(!(It(e)&&(Ie.tagNameCheck instanceof RegExp&&S(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&S(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&S(Ie.tagNameCheck,r)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(r))))return!1}else if(Je[t]);else if(S(Ae,x(r,xe,"")));
23else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(r,"data:")||!Xe[e]){if(Re&&!S(be,x(r,xe,"")));else if(r)return!1}else;return!0},It=function(e){return"annotation-xml"!==e&&b(e,we)},Pt=function(e){St(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||At(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let n=t.length;for(;n--;){const s=t[n],{name:o,namespaceURI:a,value:l}=s,c=dt(o);let u="value"===o?l:A(l);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,St(fe.uponSanitizeAttribute,e,i),u=i.attrValue,!qe||"id"!==c&&"name"!==c||(bt(o,e),u="user-content-"+u),Be&&S(/((--!?|])>)|<\/(style|title)/i,u)){bt(o,e);continue}if(i.forceKeepAttr)continue;if(bt(o,e),!i.keepAttr)continue;if(!De&&S(/\/>/i,u)){bt(o,e);continue}Le&&p([me,ge,ye],(e=>{u=x(u,e," ")}));const h=dt(e.nodeName);if(Ct(h,c,u)){if(ae&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(a);else switch(H.getAttributeType(h,c)){case"TrustedHTML":u=ae.createHTML(u);break;case"TrustedScriptURL":u=ae.createScriptURL(u)}try{a?e.setAttributeNS(a,o,u):e.setAttribute(o,u),At(e)?_t(e):m(r.removed)}catch(e){}}}St(fe.afterSanitizeAttributes,e,null)},Mt=function e(t){let r=null;const i=wt(t);for(St(fe.beforeSanitizeShadowDOM,t,null);r=i.nextNode();)St(fe.uponSanitizeShadowNode,r,null),Tt(r),Pt(r),r.content instanceof a&&e(r.content);St(fe.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,o=null,l=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Et(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported)return e;if(je||gt(t),r.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=dt(e.nodeName);if(!Ee[t]||Pe[t])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)i=xt("\x3c!----\x3e"),n=i.ownerDocument.importNode(e,!0),n.nodeType===te&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!Ne&&!Le&&!ze&&-1===e.indexOf("<"))return ae&&Ve?ae.createHTML(e):e;if(i=xt(e),!i)return Ne?null:Ve?le:""}i&&Fe&&_t(i.firstChild);const c=wt(We?e:i);for(;o=c.nextNode();)Tt(o),Pt(o),o.content instanceof a&&Mt(o.content);if(We)return e;if(Ne){if(Ue)for(l=he.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(Te.shadowroot||Te.shadowrootmode)&&(l=pe.call(s,l,!0)),l}let u=ze?i.outerHTML:i.innerHTML;return ze&&Ee["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(J,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),Le&&p([me,ge,ye],(e=>{u=x(u,e," ")})),ae&&Ve?ae.createHTML(u):u},r.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},r.clearConfig=function(){pt=null,je=!1},r.isValidAttribute=function(e,t,r){pt||gt({});const i=dt(e),n=dt(t);return Ct(i,n,r)},r.addHook=function(e,t){"function"==typeof t&&g(fe[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=f(fe[e],t);return-1===r?void 0:y(fe[e],r,1)[0]}return m(fe[e])},r.removeHooks=function(e){fe[e]=[]},r.removeAllHooks=function(){fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()}}]); 24//# sourceMappingURL=sharedlargemodules.min.js.map
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.