EVOLUTION-MANAGER
Edit File: 2.20723cf4.chunk.js
/*! For license information please see 2.20723cf4.chunk.js.LICENSE.txt */ (this.webpackJsonptraccar=this.webpackJsonptraccar||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(411)},function(e,t,n){e.exports=n(415)()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.a=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(33);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(106);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(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(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=n.n(o),s=(n(1),n(51)),u=n.n(s),l=n(60),c=n(203),p=n(164),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,f=void 0!==s&&s,d=t.name,h=Object(i.a)(t,["defaultTheme","withTheme","name"]);var m=d,v=Object(l.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:d||n.displayName,classNamePrefix:m},h)),y=a.a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,l=Object(i.a)(e,["classes","innerRef"]),h=v(Object(r.a)({},n.defaultProps,e)),m=l;return("string"===typeof d||f)&&(s=Object(p.a)()||o,d&&(m=Object(c.a)({theme:s,name:d,props:l})),f&&!m.theme&&(m.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},m))}));return u()(y,n),y}},d=n(65);t.a=function(e,t){return f(e,Object(r.a)({defaultTheme:d.a},t))}},function(e,t,n){e.exports=n(432)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(48);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(354);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"k",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"j",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"i",(function(){return m}));var r=n(354);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(0===e.indexOf("#"))return e;var t=u(e).values;return"#".concat(t.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))}function s(e){var t=(e=u(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),l({type:s,values:c})}function u(e){if(e.type)return e;if("#"===e.charAt(0))return u(o(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function l(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e,t){var n=p(e),r=p(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function p(e){var t="hsl"===(e=u(e)).type?u(s(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?h(e,t):m(e,t)}function d(e,t){return e=u(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,l(e)}function h(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function m(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return l(e)}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(91),i=n(42);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(46);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return G})),n.d(t,"d",(function(){return $}));var r=n(0),i=n.n(r),o=(n(1),i.a.createContext(null));var a=function(e){e()},s={notify:function(){}};function u(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var l=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=u())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},e}(),c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var p=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=new l(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=s.subscription;return e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var p=n||o;return i.a.createElement(p.Provider,{value:s},a)},f=n(2),d=n(33),h=n(51),m=n.n(h),v=n(269),y=[],g=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function x(e,t,n){c((function(){return e.apply(void 0,t)}),n)}function _(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function w(e,t,n,r,i,o,a,s,u,l){if(e){var c=!1,p=null,f=function(){if(!c){var e,n,f=t.getState();try{e=r(f,i.current)}catch(d){n=d,p=d}n||(p=null),e===o.current?a.current||u():(o.current=e,s.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var E=function(){return[null,0]};function D(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=n.methodName,c=void 0===u?"connectAdvanced":u,p=n.renderCountProp,h=void 0===p?void 0:p,D=n.shouldHandleStateChanges,C=void 0===D||D,O=n.storeKey,S=void 0===O?"store":O,k=(n.withRef,n.forwardRef),A=void 0!==k&&k,T=n.context,P=void 0===T?o:T,M=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),j=P;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=Object(f.a)({},M,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:C,storeKey:S,displayName:o,wrappedComponentName:n,WrappedComponent:t}),u=M.pure;var p=u?r.useMemo:function(e){return e()};function D(n){var o=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Object(d.a)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),s=o[0],u=o[1],c=o[2],h=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(v.isContextConsumer)(i.a.createElement(s.Consumer,null))?s:j}),[s,j]),m=Object(r.useContext)(h),D=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var O=D?n.store:m.store,S=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(O)}),[O]),k=Object(r.useMemo)((function(){if(!C)return g;var e=new l(O,D?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[O,D,m]),A=k[0],T=k[1],P=Object(r.useMemo)((function(){return D?m:Object(f.a)({},m,{subscription:A})}),[D,m,A]),M=Object(r.useReducer)(b,y,E),I=M[0][0],F=M[1];if(I&&I.error)throw I.error;var R=Object(r.useRef)(),z=Object(r.useRef)(c),L=Object(r.useRef)(),B=Object(r.useRef)(!1),N=p((function(){return L.current&&c===z.current?L.current:S(O.getState(),c)}),[O,I,c]);x(_,[z,R,B,c,N,L,T]),x(w,[C,O,A,S,z,R,B,L,T,F],[O,A,S]);var V=Object(r.useMemo)((function(){return i.a.createElement(t,Object(f.a)({},N,{ref:u}))}),[u,t,N]);return Object(r.useMemo)((function(){return C?i.a.createElement(h.Provider,{value:P},V):V}),[h,V,P])}var O=u?i.a.memo(D):D;if(O.WrappedComponent=t,O.displayName=D.displayName=o,A){var k=i.a.forwardRef((function(e,t){return i.a.createElement(O,Object(f.a)({},e,{reactReduxForwardedRef:t}))}));return k.displayName=o,k.WrappedComponent=t,m()(k,t)}return m()(O,t)}}function C(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function O(e,t){if(C(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!C(e[n[i]],t[n[i]]))return!1;return!0}function S(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function k(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);var i=r(t,n);return"function"===typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=k(i),i=r(t,n)),i},r}}var T=[function(e){return"function"===typeof e?A(e):void 0},function(e){return e?void 0:S((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?S((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"===typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var P=[function(e){return"function"===typeof e?A(e):void 0},function(e){return e?void 0:S((function(){return{}}))}];function M(e,t,n){return Object(f.a)({},n,e,t)}var j=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var u=e(t,n,s);return a?i&&o(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return M}}];function I(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function F(e,t,n,r,i){var o,a,s,u,l,c=i.areStatesEqual,p=i.areOwnPropsEqual,f=i.areStatePropsEqual,d=!1;function h(i,d){var h=!p(d,a),m=!c(i,o);return o=i,a=d,h&&m?(s=e(o,a),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a)):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a)):m?function(){var t=e(o,a),r=!f(t,s);return s=t,r&&(l=n(s,u,a)),l}():l}return function(i,c){return d?h(i,c):(s=e(o=i,a=c),u=t(r,a),l=n(s,u,a),d=!0,l)}}function R(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(d.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),u=i(e,o);return(o.pure?F:I)(a,s,u,e,o)}function z(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?D:n,i=t.mapStateToPropsFactories,o=void 0===i?P:i,a=t.mapDispatchToPropsFactories,s=void 0===a?T:a,u=t.mergePropsFactories,l=void 0===u?j:u,c=t.selectorFactory,p=void 0===c?R:c;return function(e,t,n,i){void 0===i&&(i={});var a=i,u=a.pure,c=void 0===u||u,h=a.areStatesEqual,m=void 0===h?L:h,v=a.areOwnPropsEqual,y=void 0===v?O:v,g=a.areStatePropsEqual,b=void 0===g?O:g,x=a.areMergedPropsEqual,_=void 0===x?O:x,w=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=z(e,o,"mapStateToProps"),D=z(t,s,"mapDispatchToProps"),C=z(n,l,"mergeProps");return r(p,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:D,initMergeProps:C,pure:c,areStatesEqual:m,areOwnPropsEqual:y,areStatePropsEqual:b,areMergedPropsEqual:_},w))}}var N=B();function V(){return Object(r.useContext)(o)}function U(e){void 0===e&&(e=o);var t=e===o?V:function(){return Object(r.useContext)(e)};return function(){return t().store}}var H=U();function W(e){void 0===e&&(e=o);var t=e===o?H:U(e);return function(){return t().dispatch}}var G=W(),q=function(e,t){return e===t};function Y(e){void 0===e&&(e=o);var t=e===o?V:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=q);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return new l(n,i)}),[n,i]),u=Object(r.useRef)(),p=Object(r.useRef)(),f=Object(r.useRef)(),d=Object(r.useRef)(),h=n.getState();try{if(e!==p.current||h!==f.current||u.current){var m=e(h);o=void 0!==d.current&&t(m,d.current)?d.current:m}else o=d.current}catch(v){throw u.current&&(v.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),v}return c((function(){p.current=e,f.current=h,d.current=o,u.current=void 0})),c((function(){function e(){try{var e=n.getState(),r=p.current(e);if(t(r,d.current))return;d.current=r,f.current=e}catch(v){u.current=v}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var Z,$=Y(),K=n(21);Z=K.unstable_batchedUpdates,a=Z},,function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function l(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=d(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],g=!1;function b(e,t){var n,r,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)u(i=t[r=y[n]])||(e[r]=i);return e}function x(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,r.updateOffset(this),g=!1)}function _(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function w(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,u=[];for(o=0;o<arguments.length;o++){if(i="","object"===typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var D,C={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),C[e]||(w(t),C[e]=!0)}function S(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function A(e){null!=e&&this.set(e)}function T(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},I={};function F(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=z(t,e.localeData()),j[t]=j[t]||function(e){var t,n,r,i=e.match(P);for(t=0,n=i.length;t<n;t++)I[i[t]]?i[t]=I[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=S(i[r])?i[r].call(t,e):i[r];return o}}(t),j[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var L={};function B(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function N(e){return"string"===typeof e?L[e]||L[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)a(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}var U={};function H(e,t){U[e]=t}function W(e){return e%4===0&&e%100!==0||e%400===0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function Y(e,t){return function(n){return null!=n?($(this,e,n),r.updateOffset(this,t),this):Z(this,e)}}function Z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),_e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,J=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,n){K[e]=S(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(K,e)?K[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ve,ye={};function ge(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n<e.length;n++)ye[e[n]]=r}function be(e,t){ge(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function xe(e,t,n){null!=t&&a(ye,e)&&ye[e](t,n._a,n,e)}function _e(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?W(e)?29:28:31-r%7%2}ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),H("month",8),de("M",ne),de("MM",ne,J),de("MMM",(function(e,t){return t.monthsShortRegex(e)})),de("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[1]=q(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:h(n).invalidMonth=e}));var we="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),De=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce=fe,Oe=fe;function Se(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))||-1!==(i=ve.call(this._longMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))||-1!==(i=ve.call(this._shortMonthsParse,a))?i:null}function ke(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=q(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),_e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(ke(this,e),r.updateOffset(this,!0),this):Z(this,"Month")}function Te(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=me(r[t]),i[t]=me(i[t]);for(t=0;t<24;t++)o[t]=me(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Pe(e){return W(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?T(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),B("year","y"),H("year",1),de("Y",le),de("YY",ne,J),de("YYYY",ae,ee),de("YYYYY",se,te),de("YYYYYY",se,te),ge(["YYYYY","YYYYYY"],0),ge("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):q(e)})),ge("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return q(e)+(q(e)>68?1900:2e3)};var Me=Y("FullYear",!0);function je(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Ie(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Fe(e,r,i);return s<=0?a=Pe(o=e-1)+s:s>Pe(e)?(o=e+1,a=s-Pe(e)):(o=e,a=s),{year:o,dayOfYear:a}}function ze(e,t,n){var r,i,o=Fe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Le(i=e.year()-1,t,n):a>Le(e.year(),t,n)?(r=a-Le(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Le(e,t,n){var r=Fe(e,t,n),i=Fe(e+1,t,n);return(Pe(e)-r+i)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),de("w",ne),de("ww",ne,J),de("W",ne),de("WW",ne,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=q(e)})),F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),de("d",ne),de("e",ne),de("E",ne),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=q(e)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=fe,We=fe,Ge=fe;function qe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))||-1!==(i=ve.call(this._shortWeekdaysParse,a))||-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))||-1!==(i=ve.call(this._weekdaysParse,a))||-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))||-1!==(i=ve.call(this._weekdaysParse,a))||-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null}function Ye(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ze(){return this.hours()%12||12}function $e(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ze),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ze.apply(this)+T(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ze.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),$e("a",!0),$e("A",!1),B("hour","h"),H("hour",13),de("a",Ke),de("A",Ke),de("H",ne),de("h",ne),de("k",ne),de("HH",ne,J),de("hh",ne,J),de("kk",ne,J),de("hmm",re),de("hmmss",ie),de("Hmm",re),de("Hmmss",ie),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=q(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=q(e),h(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r)),h(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(i)),h(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(i))}));var Xe,Je=Y("Hours",!0),Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:we,monthsShort:Ee,week:{dow:0,doy:6},weekdays:Ne,weekdaysMin:Ue,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var n=null;if(void 0===et[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=Xe._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ot(n)}catch(r){et[t]=null}return et[t]}function ot(e,t){var n;return e&&((n=u(t)?st(e):at(e,t))?Xe=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function at(e,t){if(null!==t){var n,r=Qe;if(t.abbr=e,null!=et[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new A(k(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),ot(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=rt(e[o]).split("-")).length,n=(n=rt(e[o+1]))?n.split("-"):null;t>0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return Xe}(e)}function ut(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>_e(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,r,i,o,a,s=e._i,u=lt.exec(s)||ct.exec(s);if(u){for(h(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(u[1])){i=ft[t][0],r=!1!==ft[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=dt.length;t<n;t++)if(dt[t][1].exec(u[3])){o=(u[2]||" ")+dt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!pt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),wt(e)}else e._isValid=!1}function gt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(n){if(t=function(e,t,n,r,i,o){var a=[gt(e),Ee.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}(n[4],n[3],n[2],n[5],n[6],n[7]),!function(e,t,n){return!e||Ve.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(n[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(n[8],n[9],n[10]),e._d=Ie.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function xt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=xt(t.GG,e._a[0],ze(Ct(),1,4).year),r=xt(t.W,1),((i=xt(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,l=ze(Ct(),o,a),n=xt(t.gg,e._a[0],l.year),r=xt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Le(n,o,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=Re(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=xt(e._a[0],i[0]),(e._dayOfYear>Pe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ie(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:je).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function wt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,i,o,a,s,u=""+e._i,l=u.length,c=0;for(i=z(e._f,e._locale).match(P)||[],t=0;t<i.length;t++)o=i[t],(n=(u.match(he(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),c+=n.length),I[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),xe(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-c,u.length>0&&h(e).unusedInput.push(u),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),_t(e),ut(e)}else bt(e);else yt(e)}function Et(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new x(ut(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],wt(t),m(t)&&(a=!0),o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));f(e,n||t)}(e):n?wt(e):function(e){var t=e._i;u(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"===typeof t?function(e){var t=ht.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),_t(e)):o(t)?function(e){if(!e._d){var t=V(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),_t(e)}}(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Dt(e,t,n,r,a){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,function(e){var t=new x(ut(Et(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(u)}function Ct(e,t,n,r){return Dt(e,t,n,r,!1)}r.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ot=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),St=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function kt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Tt(e){var t=V(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,u=t.hour||0,l=t.minute||0,c=t.second||0,p=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(a(e,t)&&(-1===ve.call(At,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<At.length;++n)if(e[At[n]]){if(r)return!1;parseFloat(e[At[n]])!==q(e[At[n]])&&(r=!0)}return!0}(t),this._milliseconds=+p+1e3*c+6e4*l+1e3*u*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Pt(e){return e instanceof Tt}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+T(~~(e/60),2)+t+T(~~e%60,2)}))}jt("Z",":"),jt("ZZ",""),de("Z",pe),de("ZZ",pe),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ft(pe,e)}));var It=/([\+\-]|\d\d)/gi;function Ft(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(It)||["-",0,0])[1]+q(n[2]))?0:"+"===n[0]?r:-r}function Rt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(_(e)||c(e)?e.valueOf():Ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Ct(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Lt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var n,r,i,o=e,s=null;return Pt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Bt.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:q(s[2])*n,h:q(s[3])*n,m:q(s[4])*n,s:q(s[5])*n,ms:q(Mt(1e3*s[6]))*n}):(s=Nt.exec(e))?(n="-"===s[1]?-1:1,o={y:Ut(s[2],n),M:Ut(s[3],n),w:Ut(s[4],n),d:Ut(s[5],n),h:Ut(s[6],n),m:Ut(s[7],n),s:Ut(s[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Rt(t,e),e.isBefore(t)?n=Ht(e,t):((n=Ht(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Ct(o.from),Ct(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Tt(o),Pt(e)&&a(e,"_locale")&&(r._locale=e._locale),Pt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Gt(this,Vt(n,r),e),this}}function Gt(e,t,n,i){var o=t._milliseconds,a=Mt(t._days),s=Mt(t._months);e.isValid()&&(i=null==i||i,s&&ke(e,Z(e,"Month")+s*n),a&&$(e,"Date",Z(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Vt.fn=Tt.prototype,Vt.invalid=function(){return Vt(NaN)};var qt=Wt(1,"add"),Yt=Wt(-1,"subtract");function Zt(e){return"string"===typeof e||e instanceof String}function $t(e){return _(e)||c(e)||Zt(e)||l(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&Zt(e)})).length),t&&n}(e)||function(e){var t,n,r=o(e)&&!s(e),i=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<u.length;t+=1)n=u[t],i=i||a(e,n);return r&&i}(e)||null===e||void 0===e}function Kt(e){var t,n=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||a(e,i[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),i.push(me(a[e].narrow)),o.push(me(a[e].name)),o.push(me(a[e].abbr)),o.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function sn(e,t){F(0,[e,e.length],0,t)}function un(e,t,n,r,i){var o;return null==e?ze(this,r,i).year:(t>(o=Le(e,r,i))&&(t=o),ln.call(this,e,t,n,r,i))}function ln(e,t,n,r,i){var o=Re(e,t,n,r,i),a=Ie(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),de("N",on),de("NN",on),de("NNN",on),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?h(n).era=i:h(n).invalidEra=e})),de("y",ue),de("yy",ue),de("yyy",ue),de("yyyy",ue),de("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),de("G",le),de("g",le),de("GG",ne,J),de("gg",ne,J),de("GGGG",ae,ee),de("gggg",ae,ee),de("GGGGG",se,te),de("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=q(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),de("Q",X),ge("Q",(function(e,t){t[1]=3*(q(e)-1)})),F("D",["DD",2],"Do","date"),B("date","D"),H("date",9),de("D",ne),de("DD",ne,J),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=q(e.match(ne)[0])}));var cn=Y("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),de("DDD",oe),de("DDDD",Q),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),F("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),de("m",ne),de("mm",ne,J),ge(["m","mm"],4);var pn=Y("Minutes",!1);F("s",["ss",2],0,"second"),B("second","s"),H("second",15),de("s",ne),de("ss",ne,J),ge(["s","ss"],5);var fn,dn,hn=Y("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),H("millisecond",16),de("S",oe,X),de("SS",oe,J),de("SSS",oe,Q),fn="SSSS";fn.length<=9;fn+="S")de(fn,ue);function mn(e,t){t[6]=q(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ge(fn,mn);dn=Y("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var vn=x.prototype;function yn(e){return e}vn.add=qt,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?$t(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ct(),i=Rt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(S(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Ct(n)))},vn.clone=function(){return new x(this)},vn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Rt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=Xt(this,r)/12;break;case"month":o=Xt(this,r);break;case"quarter":o=Xt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},vn.endOf=function(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Ct(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(Ct(),e)},vn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Ct(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(Ct(),e)},vn.get=function(e){return S(this[e=N(e)])?this[e]():this},vn.invalidAt=function(){return h(this).overflow},vn.isAfter=function(e,t){var n=_(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=_(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,r){var i=_(e)?e:Ct(e),o=_(t)?t:Ct(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},vn.isSame=function(e,t){var n,r=_(e)?e:Ct(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return m(this)},vn.lang=Qt,vn.locale=Jt,vn.localeData=en,vn.max=St,vn.min=Ot,vn.parsingFlags=function(){return f({},h(this))},vn.set=function(e,t){if("object"===typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:U[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=V(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=N(e)]))return this[e](t);return this},vn.startOf=function(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},vn.subtract=Yt,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},vn.toDate=function(){return new Date(this.valueOf())},vn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},vn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},vn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},vn.eraYear=function(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()},vn.year=Me,vn.isLeapYear=function(){return W(this.year())},vn.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Ae,vn.daysInMonth=function(){return _e(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return Le(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return Le(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return Le(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return Le(this.isoWeekYear(),1,4)},vn.date=cn,vn.day=vn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},vn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},vn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},vn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},vn.hour=vn.hours=Je,vn.minute=vn.minutes=pn,vn.second=vn.seconds=hn,vn.millisecond=vn.milliseconds=dn,vn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=Ft(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=zt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Gt(this,Vt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},vn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=Ft(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60===0)},vn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Lt,vn.isUTC=Lt,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=E("dates accessor is deprecated. Use date instead.",cn),vn.months=E("months accessor is deprecated. Use month instead",Ae),vn.years=E("years accessor is deprecated. Use year instead",Me),vn.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Et(t))._a?(e=t._isUTC?d(t._a):Ct(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&q(e[r])!==q(t[r]))&&a++;return a+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=A.prototype;function bn(e,t,n,r){var i=st(),o=d().set(r,t);return i[n](o,e)}function xn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function _n(e,t,n,r){"boolean"===typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+a)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=yn,gn.postformat=yn,gn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return S(i)?i(e,t,n,r):i.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)a(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n<i;++n){switch(typeof a[n].since){case"string":o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}}return a},gn.erasParse=function(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ce),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",st);var wn=Math.abs;function En(e,t,n,r){var i=Vt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Dn(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function On(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var kn=Sn("ms"),An=Sn("s"),Tn=Sn("m"),Pn=Sn("h"),Mn=Sn("d"),jn=Sn("w"),In=Sn("M"),Fn=Sn("Q"),Rn=Sn("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ln=zn("milliseconds"),Bn=zn("seconds"),Nn=zn("minutes"),Vn=zn("hours"),Un=zn("days"),Hn=zn("months"),Wn=zn("years"),Gn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Yn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Zn=Math.abs;function $n(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=Zn(this._milliseconds)/1e3,l=Zn(this._days),c=Zn(this._months),p=this.asSeconds();return p?(e=G(u/60),t=G(e/60),u%=60,e%=60,n=G(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=p<0?"-":"",o=$n(this._months)!==$n(p)?"-":"",a=$n(this._days)!==$n(p)?"-":"",s=$n(this._milliseconds)!==$n(p)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Xn=Tt.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=wn(this._milliseconds),this._days=wn(this._days),this._months=wn(this._months),e.milliseconds=wn(e.milliseconds),e.seconds=wn(e.seconds),e.minutes=wn(e.minutes),e.hours=wn(e.hours),e.months=wn(e.months),e.years=wn(e.years),this},Xn.add=function(e,t){return En(this,e,t,1)},Xn.subtract=function(e,t){return En(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(On(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Xn.asMilliseconds=kn,Xn.asSeconds=An,Xn.asMinutes=Tn,Xn.asHours=Pn,Xn.asDays=Mn,Xn.asWeeks=jn,Xn.asMonths=In,Xn.asQuarters=Fn,Xn.asYears=Rn,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Dn(On(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=G(o/1e3),u.seconds=e%60,t=G(e/60),u.minutes=t%60,n=G(t/60),u.hours=n%24,a+=G(n/24),i=G(Cn(a)),s+=i,a-=Dn(On(i)),r=G(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Xn.clone=function(){return Vt(this)},Xn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Ln,Xn.seconds=Bn,Xn.minutes=Nn,Xn.hours=Vn,Xn.days=Un,Xn.weeks=function(){return G(this.days()/7)},Xn.months=Hn,Xn.years=Wn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=qn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},qn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Vt(e).abs(),o=Gn(i.as("s")),a=Gn(i.as("m")),s=Gn(i.as("h")),u=Gn(i.as("d")),l=Gn(i.as("M")),c=Gn(i.as("w")),p=Gn(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||p<=1&&["y"]||["yy",p])[2]=t,f[3]=+e>0,f[4]=r,Yn.apply(null,f)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Kn,Xn.toString=Kn,Xn.toJSON=Kn,Xn.locale=Jt,Xn.localeData=en,Xn.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Xn.lang=Qt,F("X",0,0,"unix"),F("x",0,0,"valueOf"),de("x",le),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(q(e))})),r.version="2.29.1",t=Ct,r.fn=vn,r.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return Ct(1e3*e)},r.months=function(e,t){return xn(e,t,"months")},r.isDate=c,r.locale=ot,r.invalid=v,r.duration=Vt,r.isMoment=_,r.weekdays=function(e,t,n){return _n(e,t,n,"weekdays")},r.parseZone=function(){return Ct.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Pt,r.monthsShort=function(e,t){return xn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return _n(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Qe;null!=et[e]&&null!=et[e].parentLocale?et[e].set(k(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=k(i,t),null==r&&(t.abbr=e),(n=new A(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return D(et)},r.weekdaysShort=function(e,t,n){return _n(e,t,n,"weekdaysShort")},r.normalizeUnits=N,r.relativeTimeRounding=function(e){return void 0===e?Gn:"function"===typeof e&&(Gn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=vn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(170)(e))},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";function r(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function o(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}n.d(t,"a",(function(){return a}));var a=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,s=r.pop(),u=o(r),l=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(n)),c=e((function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return l.apply(null,e)}));return c.resultFunc=s,c.dependencies=u,c.recomputations=function(){return a},c.resetRecomputations=function(){return a=0},c}}((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return i(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(412)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),i=n(0),o=n.n(i),a=n(4),s=(n(1),n(3)),u=n(6),l=n(9),c=i.forwardRef((function(e,t){var n=e.children,o=e.classes,u=e.className,c=e.color,p=void 0===c?"inherit":c,f=e.component,d=void 0===f?"svg":f,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,y=e.titleAccess,g=e.viewBox,b=void 0===g?"0 0 24 24":g,x=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(d,Object(r.a)({className:Object(s.a)(o.root,u,"inherit"!==p&&o["color".concat(Object(l.a)(p))],"default"!==m&&o["fontSize".concat(Object(l.a)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:t},x),n,y?i.createElement("title",null,y):null)}));c.muiName="SvgIcon";var p=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c);function f(e,t){var n=function(t,n){return o.a.createElement(p,Object(r.a)({ref:n},t),e)};return n.muiName=p.muiName,o.a.memo(o.a.forwardRef(n))}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){var r;!function(i){"use strict";var o,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,u="[DecimalError] ",l=u+"Invalid argument: ",c=u+"Exponent out of range: ",p=Math.floor,f=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,m=p(1286742750677284.5),v={};function y(e,t){var n,r,i,o,a,u,l,c,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),s?S(t,f):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i){for(o<0?(r=l,o=-o,u=c.length):(r=c,i=a,u=l.length),o>(u=(a=Math.ceil(f/7))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=l.length)-(o=c.length)<0&&(o=u,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/h|0,l[o]%=h;for(n&&(l.unshift(n),++i),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=i,s?S(t,f):t}function g(e,t,n){if(e!==~~e||e<t||e>n)throw Error(l+e)}function b(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=D(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=D(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}v.absoluteValue=v.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},v.comparedTo=v.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return x(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return S(x(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return w(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,t=x(C(n,a),C(e,a),a),s=!0,S(t,i))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k(t,e):y(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(u+"NaN");return n.s?(s=!1,t=x(n,e,0,1).times(e),s=!0,n.minus(t)):S(new r(n),i)},v.naturalExponential=v.exp=function(){return _(this)},v.naturalLogarithm=v.ln=function(){return C(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y(t,e):k(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=w(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(u+"NaN")}for(e=w(l),s=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=b(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(i.toString()),i=a=(n=c.precision)+3;;)if(r=(o=r).plus(x(l,o,a+2)).times(.5),b(o.d).slice(0,a)===(t=b(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(S(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if("9999"!=t)break;a+=4}return s=!0,S(r,n)},v.times=v.mul=function(e){var t,n,r,i,o,a,u,l,c,p=this,f=p.constructor,d=p.d,m=(e=new f(e)).d;if(!p.s||!e.s)return new f(0);for(e.s*=p.s,n=p.e+e.e,(l=d.length)<(c=m.length)&&(o=d,d=m,m=o,a=l,l=c,c=a),o=[],r=a=l+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)u=o[i]+m[r]*d[i-r-1]+t,o[i--]=u%h|0,t=u/h|0;o[i]=(o[i]+t)%h|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,s?S(e,f.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(g(e,0,1e9),void 0===t?t=r.rounding:g(t,0,8),S(n,e+w(n)+1,t))},v.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=A(r,!0):(g(e,0,1e9),void 0===t?t=i.rounding:g(t,0,8),n=A(r=S(new i(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?A(i):(g(e,0,1e9),void 0===t?t=o.rounding:g(t,0,8),n=A((r=S(new o(i),e+w(i)+1,t)).abs(),!1,e+w(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return S(new t(e),w(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,i,a,l,c=this,f=c.constructor,d=+(e=new f(e));if(!e.s)return new f(o);if(!(c=new f(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(o))return c;if(r=f.precision,e.eq(o))return S(c,r);if(l=(t=e.e)>=(n=e.d.length-1),a=c.s,l){if((n=d<0?-d:d)<=9007199254740991){for(i=new f(o),t=Math.ceil(r/7+4),s=!1;n%2&&T((i=i.times(c)).d,t),0!==(n=p(n/2));)T((c=c.times(c)).d,t);return s=!0,e.s<0?new f(o).div(i):S(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,s=!1,i=e.times(C(c,r+12)),s=!0,(i=_(i)).s=a,i},v.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=A(i,(n=w(i))<=o.toExpNeg||n>=o.toExpPos):(g(e,1,1e9),void 0===t?t=o.rounding:g(t,0,8),r=A(i=S(new o(i),e,t),e<=(n=w(i))||n<=o.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(g(e,1,1e9),void 0===t?t=n.rounding:g(t,0,8)),S(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=w(e),n=e.constructor;return A(e,t<=n.toExpNeg||t>=n.toExpPos)};var x=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%h|0,r=n/h|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*h+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,l,c,p,f,d,m,v,y,g,b,x,_,E,D,C,O,k,A=r.constructor,T=r.s==i.s?1:-1,P=r.d,M=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(u+"Division by zero");for(l=r.e-i.e,O=M.length,D=P.length,v=(m=new A(T)).d=[],c=0;M[c]==(P[c]||0);)++c;if(M[c]>(P[c]||0)&&--l,(x=null==o?o=A.precision:a?o+(w(r)-w(i))+1:o)<0)return new A(0);if(x=x/7+2|0,c=0,1==O)for(p=0,M=M[0],x++;(c<D||p)&&x--;c++)_=p*h+(P[c]||0),v[c]=_/M|0,p=_%M|0;else{for((p=h/(M[0]+1)|0)>1&&(M=e(M,p),P=e(P,p),O=M.length,D=P.length),E=O,g=(y=P.slice(0,O)).length;g<O;)y[g++]=0;(k=M.slice()).unshift(0),C=M[0],M[1]>=h/2&&++C;do{p=0,(s=t(M,y,O,g))<0?(b=y[0],O!=g&&(b=b*h+(y[1]||0)),(p=b/C|0)>1?(p>=h&&(p=h-1),1==(s=t(f=e(M,p),y,d=f.length,g=y.length))&&(p--,n(f,O<d?k:M,d))):(0==p&&(s=p=1),f=M.slice()),(d=f.length)<g&&f.unshift(0),n(y,f,g),-1==s&&(s=t(M,y,O,g=y.length))<1&&(p++,n(y,O<g?k:M,g)),g=y.length):0===s&&(p++,y=[0]),v[c++]=p,s&&y[0]?y[g++]=P[E]||0:(y=[P[E]],g=1)}while((E++<D||void 0!==y[0])&&x--)}return v[0]||v.shift(),m.e=l,S(m,a?o+w(m)+1:o)}}();function _(e,t){var n,r,i,a,u,l=0,p=0,d=e.constructor,h=d.precision;if(w(e)>16)throw Error(c+w(e));if(!e.s)return new d(o);for(null==t?(s=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),p+=5;for(u+=Math.log(f(2,p))/Math.LN10*2+5|0,n=r=i=new d(o),d.precision=u;;){if(r=S(r.times(e),u),n=n.times(++l),b((a=i.plus(x(r,n,u))).d).slice(0,u)===b(i.d).slice(0,u)){for(;p--;)i=S(i.times(i),u);return d.precision=h,null==t?(s=!0,S(i,h)):i}i=a}}function w(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function E(e,t,n){if(t>e.LN10.sd())throw s=!0,n&&(e.precision=n),Error(u+"LN10 precision limit exceeded");return S(new e(e.LN10),t)}function D(e){for(var t="";e--;)t+="0";return t}function C(e,t){var n,r,i,a,l,c,p,f,d,h=1,m=e,v=m.d,y=m.constructor,g=y.precision;if(m.s<1)throw Error(u+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new y(0);if(null==t?(s=!1,f=g):f=t,m.eq(10))return null==t&&(s=!0),E(y,f);if(f+=10,y.precision=f,r=(n=b(v)).charAt(0),a=w(m),!(Math.abs(a)<15e14))return p=E(y,f+2,g).times(a+""),m=C(new y(r+"."+n.slice(1)),f-10).plus(p),y.precision=g,null==t?(s=!0,S(m,g)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((m=m.times(e)).d)).charAt(0),h++;for(a=w(m),r>1?(m=new y("0."+n),a++):m=new y(r+"."+n.slice(1)),c=l=m=x(m.minus(o),m.plus(o),f),d=S(m.times(m),f),i=3;;){if(l=S(l.times(d),f),b((p=c.plus(x(l,new y(i),f))).d).slice(0,f)===b(c.d).slice(0,f))return c=c.times(2),0!==a&&(c=c.plus(E(y,f+2,g).times(a+""))),c=x(c,new y(h),f),y.precision=g,null==t?(s=!0,S(c,g)):c;c=p,i+=2}}function O(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=p(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),s&&(e.e>m||e.e<-m))throw Error(c+n)}else e.s=0,e.e=0,e.d=[0];return e}function S(e,t,n){var r,i,o,a,u,l,d,v,y=e.d;for(a=1,o=y[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=7,i=t,d=y[v=0];else{if((v=Math.ceil((r+1)/7))>=(o=y.length))return e;for(d=o=y[v],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(u=d/(o=f(10,a-i-1))%10|0,l=t<0||void 0!==y[v+1]||d%o,l=n<4?(u||l)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?i>0?d/f(10,a-i):0:y[v-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return l?(o=w(e),y.length=1,t=t-o-1,y[0]=f(10,(7-t%7)%7),e.e=p(-t/7)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(0==r?(y.length=v,o=1,v--):(y.length=v+1,o=f(10,7-r),y[v]=i>0?(d/f(10,a-i)%f(10,i)|0)*o:0),l)for(;;){if(0==v){(y[0]+=o)==h&&(y[0]=1,++e.e);break}if(y[v]+=o,y[v]!=h)break;y[v--]=0,o=1}for(r=y.length;0===y[--r];)y.pop();if(s&&(e.e>m||e.e<-m))throw Error(c+w(e));return e}function k(e,t){var n,r,i,o,a,u,l,c,p,f,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),s?S(t,m):t;if(l=e.d,f=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r){for((p=a<0)?(n=l,a=-a,u=f.length):(n=f,r=c,u=l.length),a>(i=Math.max(Math.ceil(m/7),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((p=(i=l.length)<(u=f.length))&&(u=i),i=0;i<u;i++)if(l[i]!=f[i]){p=l[i]<f[i];break}a=0}for(p&&(n=l,l=f,f=n,t.s=-t.s),u=l.length,i=f.length-u;i>0;--i)l[u++]=0;for(i=f.length;i>a;){if(l[--i]<f[i]){for(o=i;o&&0===l[--o];)l[o]=h-1;--l[o],l[i]+=h}l[i]-=f[i]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=r,s?S(t,m):t):new d(0)}function A(e,t,n){var r,i=w(e),o=b(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+D(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+D(-i-1)+o,n&&(r=n-a)>0&&(o+=D(r))):i>=a?(o+=D(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+D(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=D(r))),e.s<0?"-"+o:o}function T(e,t){if(e.length>t)return e.length=t,!0}function P(e){if(!e||"object"!==typeof e)throw Error(u+"Object expected");var t,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(p(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(l+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):O(t,e.toString())}if("string"!==typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(l+e);O(t,e)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=P,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(a)).default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},,function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(71),i=n(120),o=n(227),a=n(231),s=n(234),u=function e(t,n,u){var l,c,p,f,d=t&e.F,h=t&e.G,m=t&e.P,v=t&e.B,y=h?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,g=h?i:i[n]||(i[n]={}),b=g.prototype||(g.prototype={});for(l in h&&(u=n),u)p=((c=!d&&y&&void 0!==y[l])?y:u)[l],f=v&&c?s(p,r):m&&"function"==typeof p?s(Function.call,p):p,y&&a(y,l,p,t&e.U),g[l]!=p&&o(g,l,f),m&&b[l]!=p&&(b[l]=p)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(164),i=(n(0),n(65));function o(){return Object(r.a)()||i.a}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(149);var i=n(107),o=n(150);function a(e,t){return Object(r.a)(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},function(e,t,n){var r=n(436).default;function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(104)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return k}));var r=n(39),i=n(0),o=n.n(i),a=(n(1),n(59)),s=n(195),u=n(54),l=n(2),c=n(196),p=n.n(c),f=(n(434),n(33)),d=(n(51),function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(d.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;o.a.Component;var v={},y=0;function g(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=v[n]||(v[n]={});if(r[e])return r[e];var i=[],o={regexp:p()(e,i,t),keys:i};return y<1e4&&(r[e]=o,y++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],f=u.slice(1),d=e===c;return o&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var b=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?g(n.pathname,e.props):t.match,i=Object(l.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,p=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(h.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:c?o.a.createElement(c,i):p?p(i):null:"function"===typeof s?s(i):null)}))},t}(o.a.Component);function x(e){return"/"===e.charAt(0)?e:"/"+e}function _(e,t){if(!e)return t;var n=x(e);return 0!==t.pathname.indexOf(n)?t:Object(l.a)({},t,{pathname:t.pathname.substr(n.length)})}function w(e){return"string"===typeof e?e:Object(a.e)(e)}function E(e){return function(){Object(u.a)(!1)}}function D(){}o.a.Component;var C=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?g(i.pathname,Object(l.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);var O=o.a.useContext;function S(){return O(d)}function k(){var e=O(h).match;return e?e.params:{}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(4),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,u=t.easing,l=void 0===u?i.easeInOut:u,c=t.delay,p=void 0===c?0:c;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(l," ").concat("string"===typeof p?p:a(p))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(325);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Y})),n.d(t,"b",(function(){return K})),n.d(t,"c",(function(){return ye})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return me})),n.d(t,"f",(function(){return ve})),n.d(t,"g",(function(){return d}));var r=n(2),i=n(95),o=(n(73),n(85)),a=n(39),s=n(124),u=n(33),l={}.constructor;function c(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(c);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=c(e[n]);return t}function p(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=c(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},d=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=f(e[r]," ");else n=f(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function h(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function m(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;if(e&&o++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var u=a[s];for(var l in u){var c=u[l];null!=c&&(r&&(r+="\n"),r+=""+h(l+": "+d(c)+";",o))}}else for(var p in a){var f=a[p];null!=f&&(r&&(r+="\n"),r+=""+h(p+": "+d(f)+";",o))}for(var m in t){var v=t[m];null!=v&&"fallbacks"!==m&&(r&&(r+="\n"),r+=""+h(m+": "+d(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),h(e+" {"+r,--o)+h("}",o)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,y="undefined"!==typeof CSS&&CSS.escape,g=function(e){return y?y(e):e.replace(v,"\\$1")},b=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),x=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,u=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(Object(s.a)(Object(s.a)(i)),u),i.selectorText="."+g(i.id)),i}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=d(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return m(this.selectorText,this.style,n)},Object(o.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(b),_={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new x(e,t,n)}},w={indent:1,children:!0},E=/@([\w-]+)/,D=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var i=e.match(E);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Y(Object(r.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=w),null==e.indent&&(e.indent=w.indent),null==e.children&&(e.children=w.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),C=/@media|@supports\s+/,O={onCreateRule:function(e,t,n){return C.test(e)?new D(e,t,n):null}},S={indent:1,children:!0},k=/@keyframes\s+([\w-]+)/,A=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=e.match(k);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:g(s(this,a)),this.rules=new Y(Object(r.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),T=/@keyframes\s+/,P=/\$([\w-]+)/g,M=function(e,t){return"string"===typeof e?e.replace(P,(function(e,n){return n in t?t[n]:e})):e},j=function(e,t,n){var r=e[t],i=M(r,n);i!==r&&(e[t]=i)},I={onCreateRule:function(e,t,n){return"string"===typeof e&&T.test(e)?new A(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&j(e,"animation-name",n.keyframes),"animation"in e&&j(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return M(e,r.keyframes);default:return e}}},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(a.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return m(this.key,this.style,n)},t}(b),R={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=m(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return m(this.at,this.style,e)},e}(),L=/@font-face/,B={onCreateRule:function(e,t,n){return L.test(e)?new z(e,t,n):null}},N=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return m(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new N(e,t,n):null}},U=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),H={"@charset":!0,"@import":!0,"@namespace":!0},W=[_,O,I,R,B,V,{onCreateRule:function(e,t,n){return e in H?new U(e,t,n):null}}],G={process:!0},q={force:!0,process:!0},Y=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var i=this.options,o=i.parent,a=i.sheet,s=i.jss,u=i.Renderer,l=i.generateId,c=i.scoped,f=Object(r.a)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:u,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+g(this.classes[d]));var h=p(d,t,f);if(!h)return null;this.register(h);var m=void 0===f.index?this.index.length:f.index;return this.index.splice(m,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof x?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof A&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof x?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof A&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=G);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,u=s.style;if(o.onUpdate(n,t,a,r),r.process&&u&&u!==s.style){for(var l in o.onProcessStyle(s.style,s,a),s.style){var c=s.style[l];c!==u[l]&&s.prop(l,c,q)}for(var p in u){var f=s.style[p],d=u[p];null==f&&f!==d&&s.prop(p,null,q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(e);(o||r)&&(t&&(t+="\n"),t+=o)}return t},e}(),Z=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(r.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Y(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),$=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),K=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(u.a)(t,["attached"]),i="",o=0;o<this.registry.length;o++){var a=this.registry[o];null!=n&&a.attached!==n||(i&&(i+="\n"),i+=a.toString(r))}return i},Object(o.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),X=new K,J="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),Q="2f1acc6c3a606b082e5eef5e54414ffb";null==J[Q]&&(J[Q]=0);var ee=J[Q]++,te=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+ee+i+t:o+n.key+"-"+ee+(i?"-"+i:"")+"-"+t}},ne=function(e){var t;return function(){return t||(t=e()),t}},re=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=d(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(i){return!1}return!0},oe=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ae=function(e,t){return e.selectorText=t,e.selectorText===t},se=ne((function(){return document.querySelector("head")}));function ue(e){var t=X.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=se(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var le=ne((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ce=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(r){return!1}return e.cssRules[n]},pe=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fe=function(){function e(e){this.getPropertyValue=re,this.setProperty=ie,this.removeProperty=oe,this.setSelector=ae,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&X.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=le();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=pe(n,t);if(!1===(i=ce(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=pe(n,t),u=ce(n,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Z&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),de=0,he=function(){function e(e){this.id=de++,this.version="10.6.0",this.plugins=new $,this.options={id:{minify:!1},createGenerateId:te,Renderer:i.a?fe:null,plugins:[]},this.generateId=te({minify:!1});for(var t=0;t<W.length;t++)this.plugins.use(W[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(r.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===X.index?0:X.index+1);var i=new Z(e,Object(r.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(i),i},t.removeStyleSheet=function(e){return e.detach(),X.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var i=Object(r.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});i.generateId||(i.generateId=this.generateId),i.classes||(i.classes={}),i.keyframes||(i.keyframes={});var o=p(e,t,i);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function me(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=me(r);o&&(t||(t={}),t[n]=o)}}return t}var ve="object"===typeof CSS&&null!=CSS&&"number"in CSS,ye=function(e){return new he(e)};ye()},function(e,t,n){"use strict";n.r(t),n.d(t,"hexToRgb",(function(){return r.g})),n.d(t,"rgbToHex",(function(){return r.k})),n.d(t,"hslToRgb",(function(){return r.h})),n.d(t,"decomposeColor",(function(){return r.b})),n.d(t,"recomposeColor",(function(){return r.j})),n.d(t,"getContrastRatio",(function(){return r.e})),n.d(t,"getLuminance",(function(){return r.f})),n.d(t,"emphasize",(function(){return r.c})),n.d(t,"fade",(function(){return r.d})),n.d(t,"darken",(function(){return r.a})),n.d(t,"lighten",(function(){return r.i})),n.d(t,"createMuiTheme",(function(){return i.a})),n.d(t,"unstable_createMuiStrictModeTheme",(function(){return a})),n.d(t,"createStyles",(function(){return s})),n.d(t,"makeStyles",(function(){return u.a})),n.d(t,"responsiveFontSizes",(function(){return g})),n.d(t,"styled",(function(){return b.a})),n.d(t,"easing",(function(){return x.c})),n.d(t,"duration",(function(){return x.b})),n.d(t,"useTheme",(function(){return _.a})),n.d(t,"withStyles",(function(){return w.a})),n.d(t,"withTheme",(function(){return T})),n.d(t,"createGenerateClassName",(function(){return P.a})),n.d(t,"jssPreset",(function(){return M.a})),n.d(t,"ServerStyleSheets",(function(){return z})),n.d(t,"StylesProvider",(function(){return R.b})),n.d(t,"MuiThemeProvider",(function(){return L.a})),n.d(t,"ThemeProvider",(function(){return L.a}));var r=n(10),i=n(105),o=n(353);function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i.a.apply(void 0,[Object(o.a)({unstable_strictMode:!0},e)].concat(n))}function s(e){return e}var u=n(225),l=n(2),c=n(354),p=n(15);function f(e){return String(parseFloat(e)).length===String(e).length}function d(e){return parseFloat(e)}function h(e){return function(t,n){var r=String(t).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return t;var i=d(t);if("px"!==r)if("em"===r)i=d(t)*d(e);else if("rem"===r)return i=d(t)*d(e),t;var o=i;if("px"!==n)if("em"===n)o=i/d(e);else{if("rem"!==n)return t;o=i/d(e)}return parseFloat(o.toFixed(5))+n}}function m(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i}function v(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)}function y(e){var t=e.cssProperty,n=e.min,r=e.max,i=e.unit,o=void 0===i?"rem":i,a=e.breakpoints,s=void 0===a?[600,960,1280]:a,u=e.transform,l=void 0===u?null:u,c=Object(p.a)({},t,"".concat(n).concat(o)),f=(r-n)/s[s.length-1];return s.forEach((function(e){var r=n+f*e;null!==l&&(r=l(r)),c["@media (min-width:".concat(e,"px)")]=Object(p.a)({},t,"".concat(Math.round(1e4*r)/1e4).concat(o))})),c}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.breakpoints,r=void 0===n?["sm","md","lg"]:n,i=t.disableAlign,o=void 0!==i&&i,a=t.factor,s=void 0===a?2:a,u=t.variants,p=void 0===u?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:u,d=Object(l.a)({},e);d.typography=Object(l.a)({},d.typography);var g=d.typography,b=h(g.htmlFontSize),x=r.map((function(e){return d.breakpoints.values[e]}));return p.forEach((function(e){var t=g[e],n=parseFloat(b(t.fontSize,"rem"));if(!(n<=1)){var r=n,i=1+(r-1)/s,a=t.lineHeight;if(!f(a)&&!o)throw new Error(Object(c.a)(6));f(a)||(a=parseFloat(b(a,"rem"))/parseFloat(n));var u=null;o||(u=function(e){return m({size:e,grid:v({pixels:4,lineHeight:a,htmlFontSize:g.htmlFontSize})})}),g[e]=Object(l.a)({},t,y({cssProperty:"fontSize",min:i,max:r,unit:"rem",breakpoints:x,transform:u}))}})),d}var b=n(145),x=n(38),_=n(30),w=n(6),E=n(4),D=n(0),C=n.n(D),O=(n(1),n(51)),S=n.n(O),k=n(164);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=C.a.forwardRef((function(n,r){var i=n.innerRef,o=Object(E.a)(n,["innerRef"]),a=Object(k.a)()||t;return C.a.createElement(e,Object(l.a)({theme:a,ref:i||r},o))}));return S()(n,e),n};return n}A();var T=A({defaultTheme:n(65).a}),P=n(618),M=n(358),j=n(153),I=n(85),F=n(40),R=n(675),z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(j.a)(this,e),this.options=t}return Object(I.a)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new F.b;var n=Object(P.a)();return C.a.createElement(R.b,Object(l.a)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return C.a.createElement("style",Object(l.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),L=n(693)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[Y]}function o(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Function.toString.call(n)===Z}(e)||Array.isArray(e)||!!e[q]||!!e.constructor[q]||f(e)||d(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:$)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:d(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return U&&e instanceof Map}function d(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[Y];for(var n=$(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function v(e,t){return void 0===t&&(t=!1),g(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&a(e,(function(e,t){return v(t,!0)}),!0)),e}function y(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=X[e];return t||r(18,e),t}function x(e,t){X[e]||(X[e]=t)}function _(){return N}function w(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function E(e){D(e),e.p.forEach(O),e.p=null}function D(e){e===N&&(N=e.l)}function C(e){return N={p:[],l:N,h:e,m:!0,_:0}}function O(e){var t=e[Y];0===t.i||1===t.i?t.j():t.g=!0}function S(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,i),i?(n[Y].P&&(E(t),r(4)),o(e)&&(e=k(t,e),t.l||T(t,e)),t.u&&b("Patches").M(n[Y],e,t.u,t.s)):e=k(t,n,[]),E(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function k(e,t,n){if(g(t))return t;var r=t[Y];if(!r)return a(t,(function(i,o){return A(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return A(e,r,i,t,o,n)})),T(e,i,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function A(e,t,n,r,a,s){if(i(a)){var l=k(e,a,s&&t&&3!==t.i&&!u(t.D,r)?s.concat(r):void 0);if(c(n,r,l),!i(l))return;e.m=!1}if(o(a)&&!g(a)){if(!e.h.F&&e._<1)return;k(e,a),t&&t.A.l||T(e,a)}}function T(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&v(t,n)}function P(e,t){var n=e[Y];return(n?h(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function j(e){e.P||(e.P=!0,e.l&&j(e.l))}function I(e){e.o||(e.o=m(e.t))}function F(e,t,n){var r=f(t)?b("MapSet").N(t,n):d(t)?b("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=J;n&&(i=[r],o=Q);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):b("ES5").J(t,n);return(n?n.A:_()).p.push(r),r}function R(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[Y],i=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=z(t,i),r.I=!1}else n=z(t,i);return a(n,(function(t,i){r&&l(r.t,t)===i||c(n,t,e(i))})),3===i?new Set(n):n}(e)}function z(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function L(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Y];return J.get(t,e)},set:function(t){var n=this[Y];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][Y];if(!i.P)switch(i.i){case 5:r(i)&&j(i);break;case 4:n(i)&&j(i)}}}function n(e){for(var t=e.t,n=e.k,r=$(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Y){var a=t[o];if(void 0===a&&!u(t,o))return!0;var s=n[o],l=s&&s[Y];if(l?l.t!==a:!p(s,a))return!0}}var c=!!t[Y];return r.length!==$(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var o={};x("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=K(n);delete o[Y];for(var a=$(o),s=0;s<a.length;s++){var u=a[s];o[u]=e(u,t||!!o[u].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:_(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Y,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[Y].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[Y];if(n){var i=n.t,o=n.k,s=n.D,l=n.i;if(4===l)a(o,(function(t){t!==Y&&(void 0!==i[t]||u(i,t)?s[t]||e(o[t]):(s[t]=!0,j(n)))})),a(i,(function(e){void 0!==o[e]||u(o,e)||(s[e]=!1,j(n))}));else if(5===l){if(r(n)&&(j(n),s.length=!0),o.length<i.length)for(var c=o.length;c<i.length;c++)s[c]=!1;else for(var p=i.length;p<o.length;p++)s[p]=!0;for(var f=Math.min(o.length,i.length),d=0;d<f;d++)void 0===s[d]&&e(o[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,"a",(function(){return ye})),n.d(t,"b",(function(){return xe}));var B,N,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),U="undefined"!=typeof Map,H="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=V?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),q=V?Symbol.for("immer-draftable"):"__$immer_draftable",Y=V?Symbol.for("immer-state"):"__$immer_state",Z=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),$="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return $(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},J={get:function(e,t){if(t===Y)return e;var n=h(e);if(!u(n,t))return function(e,t,n){var r,i=M(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===P(e.t,t)?(I(e),e.o[t]=F(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=M(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=P(h(e),t),o=null==i?void 0:i[Y];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(p(n,i)&&(void 0!==n||u(e.t,t)))return!0;I(e),j(e)}return e.o[t]===n&&"number"!=typeof n||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==P(e.t,t)||t in e.t?(e.D[t]=!1,I(e),j(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a(J,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return J.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=new(function(){function e(e){var t=this;this.O=W,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var u;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var l=C(t),c=F(t,e,void 0),p=!0;try{u=n(c),p=!1}finally{p?E(l):D(l)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(e){return w(l,i),S(e,l)}),(function(e){throw E(l),e})):(w(l,i),S(u,l))}if(!e||"object"!=typeof e){if((u=n(e))===G)return;return void 0===u&&(u=e),t.F&&v(u,!0),u}r(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},"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){o(e)||r(8),i(e)&&(e=R(e));var t=C(this),n=F(this,e,void 0);return n[Y].C=!0,D(t),n},t.finishDraft=function(e,t){var n=(e&&e[Y]).A;return w(n,t),S(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!W&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),te=ee.produce,ne=(ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee),ee.createDraft.bind(ee),ee.finishDraft.bind(ee),te),re=n(75);n(20);function ie(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var oe=ie();oe.withExtraArgument=ie;var ae=oe;function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function pe(e,t,n){return(pe=ce()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&le(i,n.prototype),i}).apply(null,arguments)}function fe(e){var t="function"===typeof Map?new Map:void 0;return(fe=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return pe(e,arguments,ue(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),le(n,e)})(e)}var de="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?re.c:re.c.apply(null,arguments)};function he(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var me=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.concat=function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return pe(r,(t=e.prototype.concat).call.apply(t,[this].concat(i)))},i.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?pe(r,t[0].concat(this)):pe(r,t.concat(this))},r}(fe(Array));function ve(){return function(e){return function(e){void 0===e&&(e={});var t=e,n=t.thunk,r=void 0===n||n,i=(t.immutableCheck,t.serializableCheck,new me);r&&(!function(e){return"boolean"===typeof e}(r)?i.push(ae.withExtraArgument(r.extraArgument)):i.push(ae));0;return i}(e)}}function ye(e){var t,n=ve(),r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,u=r.devTools,l=void 0===u||u,c=r.preloadedState,p=void 0===c?void 0:c,f=r.enhancers,d=void 0===f?void 0:f;if("function"===typeof o)t=o;else{if(!he(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Object(re.b)(o)}var h=re.a.apply(void 0,"function"===typeof s?s(n):s),m=re.c;l&&(m=de(se({trace:!1},"object"===typeof l&&l)));var v=[h];Array.isArray(d)?v=[h].concat(d):"function"===typeof d&&(v=d(v));var y=m.apply(void 0,v);return Object(re.d)(t,p,y)}function ge(e,t){function n(){if(t){var n=t.apply(void 0,arguments);if(!n)throw new Error("prepareAction did not return an object");return se({type:e,payload:n.payload},"meta"in n&&{meta:n.meta},{},"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function be(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function xe(e){var t=e.name,n=e.initialState;if(!t)throw new Error("`name` is a required option for createSlice");var r=e.reducers||{},a="undefined"===typeof e.extraReducers?[]:"function"===typeof e.extraReducers?be(e.extraReducers):[e.extraReducers],s=a[0],u=void 0===s?{}:s,l=a[1],c=void 0===l?[]:l,p=a[2],f=void 0===p?void 0:p,d=Object.keys(r),h={},m={},v={};d.forEach((function(e){var n,i,o=r[e],a=t+"/"+e;"reducer"in o?(n=o.reducer,i=o.prepare):n=o,h[e]=n,m[a]=n,v[e]=i?ge(a,i):ge(a)}));var y=function(e,t,n,r){void 0===n&&(n=[]);var a="function"===typeof t?be(t):[t,n,r],s=a[0],u=a[1],l=a[2],c=ne(e,(function(){}));return function(e,t){void 0===e&&(e=c);var n=[s[t.type]].concat(u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){if(i(e)){var r=n(e,t);return"undefined"===typeof r?e:r}if(o(e))return ne(e,(function(e){return n(e,t)}));var a=n(e,t);if("undefined"===typeof a){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return a}return e}),e)}}(n,se({},u,{},m),c,f);return{name:t,reducer:y,actions:v,caseReducers:h}}"undefined"!==typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!==typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));L()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhCN=t.viVN=t.ukUA=t.trTR=t.svSE=t.skSK=t.ruRU=t.roRO=t.ptPT=t.ptBR=t.plPL=t.nlNL=t.koKR=t.jaJP=t.itIT=t.isIS=t.idID=t.hyAM=t.huHU=t.hiIN=t.heIL=t.frFR=t.fiFI=t.faIR=t.etEE=t.esES=t.enUS=t.deDE=t.csCZ=t.caES=t.bgBG=t.azAZ=void 0;var r={props:{MuiBreadcrumbs:{expandText:"Yolu g\xf6st\u0259r"},MuiTablePagination:{backIconButtonText:"\u018fvv\u0259lki s\u0259hif\u0259",labelRowsPerPage:"S\u0259hif\u0259y\u0259 d\xfc\u015f\u0259n s\u0259trl\u0259r:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," d\u0259n ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xf6vb\u0259ti s\u0259hif\u0259"},MuiRating:{getLabelText:function(e){var t="Ulduz",n=e%10;return n>1&&n<5&&(t="Ulduzlar"),"".concat(e," ").concat(t)},emptyLabelText:"Bo\u015f"},MuiAutocomplete:{clearText:"Silm\u0259k",closeText:"Ba\u011flamaq",loadingText:"Y\xfckl\u0259nir\u2026",noOptionsText:"Se\xe7iml\u0259r m\xf6vcud deyil",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},MuiAlert:{closeText:"Ba\u011flamaq"},MuiPagination:{"aria-label":"S\u0259hif\u0259nin naviqasiyas\u0131",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t," ").concat(n?"s\u0259hif\u0259":"s\u0259hif\u0259y\u0259 ke\xe7"):"first"===e?"Birinci s\u0259hif\u0259y\u0259 ke\xe7":"last"===e?"Sonuncu s\u0259hif\u0259y\u0259 ke\xe7":"next"===e?"N\xf6vb\u0259ti s\u0259hif\u0259y\u0259 ke\xe7":"previous"===e?"\u018fvv\u0259lki s\u0259hif\u0259y\u0259 ke\xe7":void 0}}}};t.azAZ=r;var i={props:{MuiBreadcrumbs:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u044a\u0442\u044f"},MuiTablePagination:{backIconButtonText:"\u041f\u0440\u0435\u0434\u0438\u0448\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0420\u0435\u0434\u043e\u0432\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u043e\u0442 ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0417\u0432\u0435\u0437\u0434").concat(1!==e?"\u0438":"\u0430")},emptyLabelText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438"},MuiAutocomplete:{clearText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438",closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438",loadingText:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435\u2026",noOptionsText:"\u041d\u044f\u043c\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u0438 \u043e\u043f\u0446\u0438\u0438",openText:"\u041e\u0442\u0432\u043e\u0440\u0438"},MuiAlert:{closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"},MuiPagination:{"aria-label":"\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041a\u044a\u043c ","\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 ").concat(t):"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"previous"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":void 0}}}};t.bgBG=i;t.caES={props:{MuiTablePagination:{backIconButtonText:"P\xe0gina anterior",labelRowsPerPage:"Files per p\xe0gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Seg\xfcent p\xe0gina"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Estrelles":"Estrella")},emptyLabelText:"Buit"},MuiAutocomplete:{clearText:"Netejar",closeText:"Tancar",loadingText:"Carregant\u2026",noOptionsText:"Sense opcions",openText:"Obert"},MuiAlert:{closeText:"Tancat"}}};var o={props:{MuiBreadcrumbs:{expandText:"Uk\xe1zat cestu"},MuiTablePagination:{backIconButtonText:"P\u0159edchoz\xed str\xe1nka",labelRowsPerPage:"\u0158\xe1dk\u016f na str\xe1nce:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Dal\u0161\xed str\xe1nka"},MuiRating:{getLabelText:function(e){return"".concat(e,1===e?" hv\u011bzdi\u010dka":e>=2&&e<=4?" hv\u011bzdi\u010dky":" hv\u011bzdi\u010dek")},emptyLabelText:"Pr\xe1zdn\xe9"},MuiAutocomplete:{clearText:"Vymazat",closeText:"Zav\u0159\xedt",loadingText:"Na\u010d\xedt\xe1n\xed\u2026",noOptionsText:"\u017d\xe1dn\xe9 mo\u017enosti",openText:"Otev\u0159\xedt"},MuiAlert:{closeText:"Zav\u0159\xedt"},MuiPagination:{"aria-label":"Navigace str\xe1nkov\xe1n\xedm",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"J\xedt na ").concat(t," str\xe1nku"):"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"previous"===e?"J\xedt na p\u0159edchoz\xed str\xe1nku":void 0}}}};t.csCZ=o;var a={props:{MuiBreadcrumbs:{expandText:"Pfad anzeigen"},MuiTablePagination:{backIconButtonText:"N\xe4chste Seite",labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," von ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe4chste Seite"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Sterne":"Stern")},emptyLabelText:"Keine Wertung"},MuiAutocomplete:{clearText:"Leeren",closeText:"Schlie\xdfen",loadingText:"Wird geladen\u2026",noOptionsText:"Keine Optionen",openText:"\xd6ffnen"},MuiAlert:{closeText:"Schlie\xdfen"},MuiPagination:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Gehe zu ","Seite ").concat(t):"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"previous"===e?"Zur vorherigen Seite":void 0}}}};t.deDE=a;t.enUS={};var s={props:{MuiBreadcrumbs:{expandText:"Mostrar ruta"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Filas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Siguiente p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrella").concat(1!==e?"s":"")},emptyLabelText:"Vac\xedo"},MuiAutocomplete:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando\u2026",noOptionsText:"Sin opciones",openText:"Abierto"},MuiAlert:{closeText:"Cerrar"},MuiPagination:{"aria-label":"Paginador",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir a la ","p\xe1gina ").concat(t):"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"previous"===e?"Ir a la p\xe1gina anterior":void 0}}}};t.esES=s;var u={props:{MuiBreadcrumbs:{expandText:"N\xe4ita teed"},MuiTablePagination:{backIconButtonText:"Eelmine lehek\xfclg",labelRowsPerPage:"Ridu lehek\xfcljel:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"J\xe4rgmine lehek\xfclg"},MuiRating:{getLabelText:function(e){return"".concat(e," T\xe4rn").concat(1!==e?"i":"")},emptyLabelText:"T\xfchi"},MuiAutocomplete:{clearText:"T\xfchjenda",closeText:"Sulge",loadingText:"Laen\u2026",noOptionsText:"Valikuid ei ole",openText:"Ava"},MuiAlert:{closeText:"Sulge"},MuiPagination:{"aria-label":"Lehek\xfclgede valik",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vali ","lehek\xfclg ").concat(t):"first"===e?"Vali esimene lehek\xfclg":"last"===e?"Vali viimane lehek\xfclg":"next"===e?"Vali j\xe4rgmine lehek\xfclg":"previous"===e?"Vali eelmine lehek\xfclg":void 0}}}};t.etEE=u;var l={props:{MuiBreadcrumbs:{expandText:"\u0646\u0645\u0627\u06cc\u0634 \u0645\u0633\u06cc\u0631"},MuiTablePagination:{backIconButtonText:"\u0635\u0641\u062d\u0647\u0654 \u0642\u0628\u0644",labelRowsPerPage:"\u062a\u0639\u062f\u0627\u062f \u0633\u0637\u0631\u0647\u0627\u06cc \u0647\u0631 \u0635\u0641\u062d\u0647:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0627\u0632 ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0635\u0641\u062d\u0647\u0654 \u0628\u0639\u062f"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0633\u062a\u0627\u0631\u0647")},emptyLabelText:"\u062e\u0627\u0644\u06cc"},MuiAutocomplete:{clearText:"\u067e\u0627\u06a9\u200c\u06a9\u0631\u062f\u0646",closeText:"\u0628\u0633\u062a\u0646",loadingText:"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u2026",noOptionsText:"\u0628\u06cc\u200c\u0646\u062a\u06cc\u062c\u0647",openText:"\u0628\u0627\u0632\u06a9\u0631\u062f\u0646"},MuiAlert:{closeText:"\u0628\u0633\u062a\u0646"},MuiPagination:{"aria-label":"\u0646\u0627\u0648\u0628\u0631\u06cc \u0635\u0641\u062d\u0647",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u0631\u0641\u062a\u0646 \u0628\u0647 ","\u0635\u0641\u062d\u0647\u0654 ").concat(t):"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"previous"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc":void 0}}}};t.faIR=l;var c={props:{MuiBreadcrumbs:{expandText:"N\xe4yt\xe4 reitti"},MuiTablePagination:{backIconButtonText:"Edellinen sivu",labelRowsPerPage:"Rivej\xe4 per sivu:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Seuraava sivu"},MuiRating:{getLabelText:function(e){return"".concat(e," T\xe4ht").concat(1!==e?"e\xe4":"i")},emptyLabelText:"Tyhj\xe4"},MuiAutocomplete:{clearText:"Tyhjenn\xe4",closeText:"Sulje",loadingText:"Ladataan\u2026",noOptionsText:"Ei valintoja",openText:"Avaa"},MuiAlert:{closeText:"Sulje"},MuiPagination:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"sivu":"Mene sivulle"," ").concat(t):"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"previous"===e?"Mene edelliselle sivulle":void 0}}}};t.fiFI=c;var p={props:{MuiBreadcrumbs:{expandText:"Montrer le chemin"},MuiTablePagination:{backIconButtonText:"Page pr\xe9c\xe9dente",labelRowsPerPage:"Lignes par page :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," sur ").concat(-1!==r?r:"plus que ".concat(n))},nextIconButtonText:"Page suivante"},MuiRating:{getLabelText:function(e){return"".concat(e," Etoile").concat(1!==e?"s":"")},emptyLabelText:"Vide"},MuiAutocomplete:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement\u2026",noOptionsText:"Pas de r\xe9sultats",openText:"Ouvrir"},MuiAlert:{closeText:"Fermer"},MuiPagination:{"aria-label":"navigation de pagination",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Aller \xe0 la ","page ").concat(t):"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"previous"===e?"Aller \xe0 la page pr\xe9c\xe9dente":void 0}}}};t.frFR=p;t.heIL={props:{MuiTablePagination:{backIconButtonText:"\u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd",labelRowsPerPage:"\u05e9\u05d5\u05e8\u05d5\u05ea \u05d1\u05e2\u05de\u05d5\u05d3:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u05de\u05ea\u05d5\u05da ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0"},MuiRating:{getLabelText:function(e){return"".concat(e," \u05db\u05d5\u05db\u05d1").concat(1!==e?"\u05d9\u05dd":"")},emptyLabelText:"\u05e8\u05d9\u05e7"},MuiAutocomplete:{clearText:"\u05e0\u05e7\u05d4",closeText:"\u05e1\u05d2\u05d5\u05e8",loadingText:"\u05d8\u05d5\u05e2\u05df\u2026",noOptionsText:"\u05d0\u05d9\u05df \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05ea",openText:"\u05e4\u05ea\u05d7"},MuiAlert:{closeText:"\u05e1\u05d2\u05d5\u05e8"}}};var f={props:{MuiBreadcrumbs:{expandText:"\u0930\u093e\u0938\u094d\u0924\u093e \u0926\u093f\u0916\u093e\u092f\u0947\u0902"},MuiTablePagination:{backIconButtonText:"\u092a\u093f\u091b\u0932\u093e \u092a\u0943\u0937\u094d\u0920",labelRowsPerPage:"\u092a\u0902\u0915\u094d\u0924\u093f\u092f\u093e\u0901 \u092a\u094d\u0930\u0924\u093f \u092a\u0943\u0937\u094d\u0920:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," \u0915\u0941\u0932 ").concat(r," \u092e\u0947\u0902")},nextIconButtonText:"\u0905\u0917\u0932\u093e \u092a\u0943\u0937\u094d\u0920"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0924\u093e\u0930").concat(1!==e?"\u0947":"\u093e")},emptyLabelText:"\u0930\u093f\u0915\u094d\u0924"},MuiAutocomplete:{clearText:"\u0939\u091f\u093e\u092f\u0947\u0902",closeText:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",loadingText:"\u0932\u094b\u0921 \u0939\u094b \u0930\u0939\u093e \u0939\u0948\u2026",noOptionsText:"\u0915\u094b\u0908 \u0935\u093f\u0915\u0932\u094d\u092a \u0928\u0939\u0940\u0902",openText:"\u0916\u094b\u0932\u0947\u0902"},MuiAlert:{closeText:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902"},MuiPagination:{"aria-label":"\u092a\u0943\u0938\u094d\u0920\u093e\u0928\u0941\u0938\u093e\u0930 \u0938\u0902\u091a\u093e\u0932\u0928",getItemAriaLabel:function(e,t,n){return"page"===e?"\u092a\u0943\u0937\u094d\u0920 ".concat(t," ").concat(n?"":" \u092a\u0930 \u091c\u093e\u090f\u0901"):"first"===e?"\u092a\u0939\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"last"===e?"\u0905\u0902\u0924\u093f\u092e \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"next"===e?"\u0905\u0917\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"previous"===e?"\u092a\u093f\u091b\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":void 0}}}};t.hiIN=f;var d={props:{MuiBreadcrumbs:{expandText:"\xdatvonal"},MuiTablePagination:{backIconButtonText:"El\u0151z\u0151 oldal",labelRowsPerPage:"Sorok sz\xe1ma:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"K\xf6vetkez\u0151 oldal"},MuiRating:{getLabelText:function(e){return"".concat(e," Csillag")},emptyLabelText:"\xdcres"},MuiAutocomplete:{clearText:"T\xf6rl\xe9s",closeText:"Bez\xe1r\xe1s",loadingText:"T\xf6lt\xe9s\u2026",noOptionsText:"Nincs tal\xe1lat",openText:"Megnyit\xe1s"},MuiAlert:{closeText:"Bez\xe1r\xe1s"},MuiPagination:{"aria-label":"Lapoz\xe1s",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". oldal").concat(n?"":"ra"):"first"===e?"Els\u0151 oldalra":"last"===e?"Utols\xf3 oldalra":"next"===e?"K\xf6vetkez\u0151 oldalra":"previous"===e?"El\u0151z\u0151 oldalra":void 0}}}};t.huHU=d;t.hyAM={props:{MuiTablePagination:{backIconButtonText:"\u0546\u0561\u056d\u0578\u0580\u0564\u0568",labelRowsPerPage:"\u054f\u0578\u0572\u0565\u0580 \u0574\u0565\u056f \u0567\u057b\u0578\u0582\u0574`",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0540\u0561\u057b\u0578\u0580\u0564\u0568"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0531\u057d\u057f\u0572")},emptyLabelText:"\u0534\u0561\u057f\u0561\u0580\u056f"},MuiAutocomplete:{clearText:"\u0544\u0561\u0584\u0580\u0565\u056c",closeText:"\u0553\u0561\u056f\u0565\u056c",loadingText:"\u0532\u0565\u057c\u0576\u0578\u0582\u0574\u2026",noOptionsText:"\u054f\u0561\u0580\u0562\u0565\u0580\u0561\u056f\u0576\u0565\u0580 \u0579\u056f\u0561\u0576",openText:"\u0532\u0561\u0581\u0565\u056c"},MuiAlert:{closeText:"\u0553\u0561\u056f\u0565\u056c"}}};t.idID={props:{MuiTablePagination:{backIconButtonText:"Halaman sebelumnya",labelRowsPerPage:"Baris per halaman:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," dari ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Halaman selanjutnya"},MuiRating:{getLabelText:function(e){return"".concat(e," Bintang")}},MuiAutocomplete:{clearText:"Hapus",closeText:"Tutup",loadingText:"Memuat\u2026",noOptionsText:"Tidak ada opsi",openText:"Buka"},MuiAlert:{closeText:"Tutup"}}};t.isIS={props:{MuiTablePagination:{backIconButtonText:"Fyrri s\xed\xf0a",labelRowsPerPage:"Ra\xf0ir \xe1 s\xed\xf0u:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," af ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe6sta s\xed\xf0a"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1===e?"Stjarna":"Stj\xf6rnur")},emptyLabelText:"T\xf3mt"},MuiAutocomplete:{clearText:"Hreinsa",closeText:"Loka",loadingText:"Hla\xf0a\u2026",noOptionsText:"Engar ni\xf0urst\xf6\xf0ur",openText:"Opna"},MuiAlert:{closeText:"Loka"}}};var h={props:{MuiBreadcrumbs:{expandText:"Visualizza percorso"},MuiTablePagination:{backIconButtonText:"Pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," di ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pagina successiva"},MuiRating:{getLabelText:function(e){return"".concat(e," Stell").concat(1!==e?"e":"a")},emptyLabelText:"Vuoto"},MuiAutocomplete:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso\u2026",noOptionsText:"Nessuna opzione",openText:"Apri"},MuiAlert:{closeText:"Chiudi"},MuiPagination:{"aria-label":"Navigazione impaginata",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vai alla ","pagina ").concat(t):"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"previous"===e?"Vai alla pagina precedente":void 0}}}};t.itIT=h;t.jaJP={props:{MuiTablePagination:{backIconButtonText:"\u524d\u306e\u30da\u30fc\u30b8",labelRowsPerPage:"\u30da\u30fc\u30b8\u3054\u3068\u306e\u884c:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u6b21\u306e\u30da\u30fc\u30b8"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"\u51fa\u6f14\u8005":"\u661f")}},MuiAutocomplete:{clearText:"\u30af\u30ea\u30a2",closeText:"\u9589\u3058\u308b",loadingText:"\u7a4d\u307f\u8fbc\u307f\u2026",noOptionsText:"\u7d50\u679c\u304c\u3042\u308a\u307e\u305b\u3093",openText:"\u958b\u3044\u305f"},MuiAlert:{closeText:"\u9589\u3058\u308b"}}};t.koKR={props:{MuiTablePagination:{backIconButtonText:"\uc774\uc804 \ud398\uc774\uc9c0",labelRowsPerPage:"\ud398\uc774\uc9c0 \ub2f9 \ud589:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\ub2e4\uc74c \ud398\uc774\uc9c0"},MuiRating:{getLabelText:function(e){return"".concat(e," \uc810")}},MuiAutocomplete:{clearText:"\uc9c0\uc6b0\uae30",closeText:"\ub2eb\uae30",loadingText:"\ubd88\ub7ec\uc624\ub294 \uc911\u2026",noOptionsText:"\uc635\uc158 \uc5c6\uc74c",openText:"\uc5f4\uae30"}}};t.nlNL={props:{MuiTablePagination:{backIconButtonText:"Vorige pagina",labelRowsPerPage:"Regels per pagina :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," van ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Volgende pagina"},MuiRating:{getLabelText:function(e){return"".concat(e," Ster").concat(1!==e?"ren":"")}},MuiAutocomplete:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden\u2026",noOptionsText:"Geen opties",openText:"Openen"},MuiAlert:{closeText:"Sluiten"}}};var m={props:{MuiBreadcrumbs:{expandText:"Poka\u017c \u015bcie\u017ck\u0119"},MuiTablePagination:{backIconButtonText:"Poprzednia strona",labelRowsPerPage:"Wierszy na stron\u0119:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Nast\u0119pna strona"},MuiRating:{getLabelText:function(e){var t="gwiazdek",n=e%10;return(e<10||e>20)&&n>1&&n<5?t="gwiazdki":1===e&&(t="gwiazdka"),"".concat(e," ").concat(t)},emptyLabelText:"Brak gwiazdek"},MuiAutocomplete:{clearText:"Wyczy\u015b\u0107",closeText:"Zamknij",loadingText:"\u0141adowanie\u2026",noOptionsText:"Brak opcji",openText:"Otw\xf3rz"},MuiAlert:{closeText:"Zamknij"},MuiPagination:{"aria-label":"Nawigacja podzia\u0142u na strony",getItemAriaLabel:function(e,t,n){return"page"===e?n?"".concat(t,". strona"):"Przejd\u017a do ".concat(t,". strony"):"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"previous"===e?"Przejd\u017a do poprzedniej strony":void 0}}}};t.plPL=m;var v={props:{MuiBreadcrumbs:{expandText:"Mostrar caminho"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pr\xf3xima p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"},MuiAutocomplete:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"},MuiAlert:{closeText:"Fechar"},MuiPagination:{"aria-label":"Navegar pela pagina\xe7\xe3o",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"previous"===e?"Ir para a p\xe1gina anterior":void 0}}}};t.ptBR=v;var y={props:{MuiBreadcrumbs:{expandText:"Mostrar caminho"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pr\xf3xima p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"},MuiAutocomplete:{clearText:"Limpar",closeText:"Fechar",loadingText:"A carregar\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"},MuiAlert:{closeText:"Fechar"},MuiPagination:{"aria-label":"Navegar por p\xe1ginas",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Primeira p\xe1gina":"last"===e?"\xdaltima p\xe1gina":"next"===e?"Pr\xf3xima p\xe1gina":"previous"===e?"P\xe1gina anterior":void 0}}}};t.ptPT=y;var g={props:{MuiBreadcrumbs:{expandText:"Arat\u0103 calea"},MuiTablePagination:{backIconButtonText:"Pagina precedent\u0103",labelRowsPerPage:"R\xe2nduri pe pagin\u0103:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," din ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pagina urm\u0103toare"},MuiRating:{getLabelText:function(e){return"".concat(e," St").concat(1!==e?"ele":"ea")},emptyLabelText:"Gol"},MuiAutocomplete:{clearText:"\u0218terge",closeText:"\xcenchide",loadingText:"Se \xeencarc\u0103\u2026",noOptionsText:"Nicio op\u021biune",openText:"Deschide"},MuiAlert:{closeText:"\xcenchide"},MuiPagination:{"aria-label":"Navigare prin paginare",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Mergi la ","pagina ").concat(t):"first"===e?"Mergi la prima pagin\u0103":"last"===e?"Mergi la ultima pagin\u0103":"next"===e?"Mergi la pagina urm\u0103toare":"previous"===e?"Mergi la pagina precedent\u0103":void 0}}}};t.roRO=g;t.ruRU={props:{MuiTablePagination:{backIconButtonText:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0421\u0442\u0440\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0438\u0437 ").concat(-1!==r?r:"\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c ".concat(n))},nextIconButtonText:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},MuiRating:{getLabelText:function(e){var t="\u0417\u0432\u0451\u0437\u0434",n=e%10;return n>1&&n<5?t="\u0417\u0432\u0435\u0437\u0434\u044b":1===n&&(t="\u0417\u0432\u0435\u0437\u0434\u0430"),"".concat(e," ").concat(t)}},MuiAutocomplete:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",loadingText:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u2026",noOptionsText:"\u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},MuiAlert:{closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}}};t.skSK={props:{MuiTablePagination:{backIconButtonText:"Predch\xe1dzaj\xfaca str\xe1nka",labelRowsPerPage:"Riadkov na str\xe1nke:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u010eal\u0161ia str\xe1nka"},MuiRating:{getLabelText:function(e){return"".concat(e,1===e?" hviezdi\u010dka":e>=2&&e<=4?" hviezdi\u010dky":" hviezdi\u010diek")}},MuiAutocomplete:{clearText:"Vymaza\u0165",closeText:"Zavrie\u0165",loadingText:"Na\u010d\xedtanie\u2026",noOptionsText:"\u017diadne mo\u017enosti",openText:"Otvori\u0165"},MuiAlert:{closeText:"Zavrie\u0165"}}};t.svSE={props:{MuiTablePagination:{backIconButtonText:"F\xf6reg\xe5ende sida",labelRowsPerPage:"Rader per sida:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," av ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe4sta sida"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Stj\xe4rnor":"Stj\xe4rna")}},MuiAutocomplete:{clearText:"Rensa",closeText:"St\xe4ng",loadingText:"Laddar\u2026",noOptionsText:"Inga alternativ",openText:"\xd6ppen"},MuiAlert:{closeText:"St\xe4ng"}}};var b={props:{MuiBreadcrumbs:{expandText:"Yolu g\xf6ster"},MuiTablePagination:{backIconButtonText:"\xd6nceki sayfa",labelRowsPerPage:"Sayfa ba\u015f\u0131na sat\u0131r:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," tanesinden ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Sonraki sayfa"},MuiRating:{getLabelText:function(e){return"".concat(e," Y\u0131ld\u0131z")},emptyLabelText:"Bo\u015f"},MuiAutocomplete:{clearText:"Temizle",closeText:"Kapat",loadingText:"Y\xfckleniyor\u2026",noOptionsText:"Se\xe7enek yok",openText:"A\xe7"},MuiAlert:{closeText:"Kapat"},MuiPagination:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". ").concat(n?"sayfa":"sayfaya git"):"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"previous"===e?"\xd6nceki sayfaya git":void 0}}}};t.trTR=b;var x={props:{MuiBreadcrumbs:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0448\u043b\u044f\u0445 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a"},MuiTablePagination:{backIconButtonText:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430",labelRowsPerPage:"\u0420\u044f\u0434\u043a\u0456\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0437 ").concat(-1!==r?r:"\u043f\u043e\u043d\u0430\u0434 ".concat(n))},nextIconButtonText:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430"},MuiRating:{getLabelText:function(e){var t="\u0417\u0456\u0440\u043e\u043a",n=e%10;return n>1&&n<5?t="\u0417\u0456\u0440\u043a\u0438":1===n&&(t="\u0417\u0456\u0440\u043a\u0430"),"".concat(e," ").concat(t)},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u0432\u0456\u0434\u0441\u0443\u0442\u043d\u0456\u0439"},MuiAutocomplete:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",loadingText:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f\u2026",noOptionsText:"\u041d\u0435\u043c\u0430\u0454 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432",openText:"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438"},MuiAlert:{closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438"},MuiPagination:{"aria-label":"\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430\u043c\u0438",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 ","\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 ").concat(t):"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"previous"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":void 0}}}};t.ukUA=x;t.viVN={props:{MuiTablePagination:{backIconButtonText:"Trang tr\u01b0\u1edbc",labelRowsPerPage:"S\u1ed1 h\xe0ng m\u1ed7i trang:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," trong ").concat(-1!==r?r:"nhi\u1ec1u h\u01a1n ".concat(n))},nextIconButtonText:"Trang sau"},MuiRating:{getLabelText:function(e){return"".concat(e," sao")},emptyLabelText:"Tr\u1ed1ng"},MuiAutocomplete:{clearText:"X\xf3a",closeText:"\u0110\xf3ng",loadingText:"\u0110ang t\u1ea3i\u2026",noOptionsText:"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn",openText:"M\u1edf"},MuiAlert:{closeText:"\u0110\xf3ng"}}};t.zhCN={props:{MuiTablePagination:{backIconButtonText:"\u4e0a\u4e00\u9875",labelRowsPerPage:"\u6bcf\u9875\u884c\u6570:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u7684 ").concat(-1!==r?r:"\u8d85\u8fc7 ".concat(n))},nextIconButtonText:"\u4e0b\u4e00\u9875"},MuiRating:{getLabelText:function(e){return"".concat(e," \u661f").concat(1!==e?"\u661f":"")}},MuiAutocomplete:{clearText:"\u660e\u786e",closeText:"\u5173",loadingText:"\u8f7d\u5165\u4e2d\u2026",noOptionsText:"\u6ca1\u6709\u9009\u62e9",openText:"\u6253\u5f00"},MuiAlert:{closeText:"\u5173"}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(123);var i=n(106);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(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(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.default=a},function(e,t,n){"use strict";var r=n(417),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var y=a[v];if(!o[y]&&(!r||!r[y])&&(!m||!m[y])&&(!s||!s[y])){var g=f(n,y);try{l(t,y,g)}catch(b){}}}}return t}},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(69);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},,function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(125);var i=n(147),o=n(107);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(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(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h}));var r=n(2);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),u=t&&i(t),l=s||u;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var p=0,f=a.length;f>=0;f--){var d=a[f];"."===d?o(a,f):".."===d?(o(a,f),p++):p&&(o(a,f),p--)}if(!l)for(;p--;p)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(54);function c(e){return"/"===e.charAt(0)?e:"/"+e}function p(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}function x(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),g||Object(l.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,p=void 0===u?b:u,v=o.keyLength,_=void 0===v?6:v,w=e.basename?d(c(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return w&&(o=f(o,w)),m(o,r,n)}function D(){return Math.random().toString(36).substr(2,_)}var C=y();function O(e){Object(r.a)(L,e),L.length=t.length,C.notifyListeners(L.location,L.action)}function S(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(E(e.state))}function k(){T(E(x()))}var A=!1;function T(e){if(A)A=!1,O();else{C.confirmTransitionTo(e,"POP",p,(function(t){t?O({action:"POP",location:e}):function(e){var t=L.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(A=!0,I(i))}(e)}))}}var P=E(x()),M=[P.key];function j(e){return w+h(e)}function I(e){t.go(e)}var F=0;function R(e){1===(F+=e)&&1===e?(window.addEventListener("popstate",S),i&&window.addEventListener("hashchange",k)):0===F&&(window.removeEventListener("popstate",S),i&&window.removeEventListener("hashchange",k))}var z=!1;var L={length:t.length,action:"POP",location:P,createHref:j,push:function(e,r){var i=m(e,r,D(),L.location);C.confirmTransitionTo(i,"PUSH",p,(function(e){if(e){var r=j(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var u=M.indexOf(L.location.key),l=M.slice(0,u+1);l.push(i.key),M=l,O({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(e,r){var i=m(e,r,D(),L.location);C.confirmTransitionTo(i,"REPLACE",p,(function(e){if(e){var r=j(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var u=M.indexOf(L.location.key);-1!==u&&(M[u]=i.key),O({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return z||(R(1),z=!0),function(){return z&&(z=!1,R(-1)),t()}},listen:function(e){var t=C.appendListener(e);return R(1),function(){R(-1),t()}}};return L}var w={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+p(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:p,decodePath:c},slash:{encodePath:c,decodePath:c}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function D(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(E(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),g||Object(l.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?d(c(e.basename)):"",p=w[s],v=p.encodePath,x=p.decodePath;function _(){var e=x(D());return u&&(e=f(e,u)),m(e)}var O=y();function S(e){Object(r.a)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}var k=!1,A=null;function T(){var e,t,n=D(),r=v(n);if(n!==r)C(r);else{var i=_(),a=B.location;if(!k&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(k)k=!1,S();else{O.confirmTransitionTo(e,"POP",o,(function(t){t?S({action:"POP",location:e}):function(e){var t=B.location,n=I.lastIndexOf(h(t));-1===n&&(n=0);var r=I.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,F(i))}(e)}))}}(i)}}var P=D(),M=v(P);P!==M&&C(M);var j=_(),I=[h(j)];function F(e){t.go(e)}var R=0;function z(e){1===(R+=e)&&1===e?window.addEventListener("hashchange",T):0===R&&window.removeEventListener("hashchange",T)}var L=!1;var B={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+v(u+h(e))},push:function(e,t){var n=m(e,void 0,void 0,B.location);O.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=h(n),r=v(u+t);if(D()!==r){A=t,function(e){window.location.hash=e}(r);var i=I.lastIndexOf(h(B.location)),o=I.slice(0,i+1);o.push(t),I=o,S({action:"PUSH",location:n})}else S()}}))},replace:function(e,t){var n=m(e,void 0,void 0,B.location);O.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=h(n),r=v(u+t);D()!==r&&(A=t,C(r));var i=I.indexOf(h(B.location));-1!==i&&(I[i]=t),S({action:"REPLACE",location:n})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return L||(z(1),L=!0),function(){return L&&(L=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function S(e,t,n){return Math.min(Math.max(e,t),n)}function k(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,c=y();function p(e){Object(r.a)(x,e),x.length=x.entries.length,c.notifyListeners(x.location,x.action)}function f(){return Math.random().toString(36).substr(2,l)}var d=S(s,0,o.length-1),v=o.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),g=h;function b(e){var t=S(x.index+e,0,x.entries.length-1),r=x.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?p({action:"POP",location:r,index:t}):p()}))}var x={length:v.length,action:"POP",location:v[d],index:d,entries:v,createHref:g,push:function(e,t){var r=m(e,t,f(),x.location);c.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),p({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,f(),x.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(x.entries[x.index]=r,p({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return x}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(4),i=n(2),o=n(0),a=n.n(o),s=n(40),u=n(674),l={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},c=n(164),p=n(675),f=-1e9;function d(){return f+=1}n(80);var h=n(353);function m(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=Object(i.a)({},o);return Object.keys(a).forEach((function(e){s[e]=Object(h.a)(s[e],a[e])})),s},options:{}}}var v={};function y(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Object(u.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function g(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,c=e.name;if(!o.disableGeneration){var p=l.get(o.sheetsManager,a,r);p||(p={refs:0,staticSheet:null,dynamicStyles:null},l.set(o.sheetsManager,a,r,p));var f=Object(i.a)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});f.generateId=f.serverGenerateClassName||f.generateClassName;var d=o.sheetsRegistry;if(0===p.refs){var h;o.sheetsCache&&(h=l.get(o.sheetsCache,a,r));var m=a.create(r,c);h||((h=o.jss.createStyleSheet(m,Object(i.a)({link:!1},f))).attach(),o.sheetsCache&&l.set(o.sheetsCache,a,r,h)),d&&d.add(h),p.staticSheet=h,p.dynamicStyles=Object(s.e)(m)}if(p.dynamicStyles){var v=o.jss.createStyleSheet(p.dynamicStyles,Object(i.a)({link:!0},f));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=Object(u.a)({baseClasses:p.staticSheet.classes,newClasses:v.classes}),d&&d.add(v)}else n.classes=p.staticSheet.classes;p.refs+=1}}function b(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function x(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=l.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(l.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function _(e,t){var n,r=a.a.useRef([]),i=a.a.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[i])}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,s=t.Component,u=t.defaultTheme,l=void 0===u?v:u,f=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),h=m(e),w=n||o||"makeStyles";h.options={index:d(),name:n,meta:w,classNamePrefix:w};var E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(c.a)()||l,r=Object(i.a)({},a.a.useContext(p.a),f),o=a.a.useRef(),u=a.a.useRef();_((function(){var i={name:n,state:{},stylesCreator:h,stylesOptions:r,theme:t};return g(i,e),u.current=!1,o.current=i,function(){x(i)}}),[t,h]),a.a.useEffect((function(){u.current&&b(o.current,e),u.current=!0}));var d=y(o.current,e.classes,s);return d};return E}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(37),i=n(39),o=n(0),a=n.n(o),s=n(59),u=(n(1),n(2)),l=n(33),c=n(54);a.a.Component;var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.b)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},t}(a.a.Component);var f=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},h=function(e){return e},m=a.a.forwardRef;"undefined"===typeof m&&(m=h);var v=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=Object(l.a)(e,["innerRef","navigate","onClick"]),s=o.target,c=Object(u.a)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=h!==m&&t||n,a.a.createElement("a",c)}));var y=m((function(e,t){var n=e.component,i=void 0===n?v:n,o=e.replace,s=e.to,p=e.innerRef,y=Object(l.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(c.a)(!1);var n=e.history,r=d(f(s,e.location),e.location),l=r?n.createHref(r):"",v=Object(u.a)({},y,{href:l,navigate:function(){var t=f(s,e.location);(o?n.replace:n.push)(t)}});return h!==m?v.ref=t||p:v.innerRef=p,a.a.createElement(i,v)}))})),g=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=g);b((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,p=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,x=e.location,_=e.sensitive,w=e.strict,E=e.style,D=e.to,C=e.innerRef,O=Object(l.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(c.a)(!1);var n=x||e.location,o=d(f(D,n),n),l=o.pathname,S=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=S?Object(r.e)(n.pathname,{path:S,exact:m,sensitive:_,strict:w}):null,A=!!(v?v(k,n):k),T=A?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(h,s):h,P=A?Object(u.a)({},E,{},p):E,M=Object(u.a)({"aria-current":A&&i||null,className:T,style:P,to:o},O);return g!==b?M.ref=t||C:M.innerRef=C,a.a.createElement(y,M)}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(2),i=n(4),o=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,u=e.step,l=void 0===u?5:u,c=Object(i.a)(e,["values","unit","step"]);function p(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=o.indexOf(t);return r===o.length-1?p(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[o[r+1]]?n[o[r+1]]:t)-l/100).concat(s,")")}return Object(r.a)({keys:o,values:n,up:p,down:function(e){var t=o.indexOf(e)+1,r=n[o[t]];return t===o.length?p("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}},function(e,t,n){var r=n(241),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),i=n(21),o=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function p(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||("TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable)}(t)}function d(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:f,onBlurVisible:d,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",p,!0))}),[])}}},function(e,t,n){"use strict";var r=n(105),i=Object(r.a)();t.a=i},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e,r,i){n.d(t,"a",(function(){return _a}));var o=n(113),a=n(114),s=n(202),u=n(201),l=n(48),c=n(45),p=n(5),f=n(0),d=n(9),h=n(27),m=n(24),v=n(22),y=n(34),g=n(14),b=n(82),x=n(66),_=n(3),w=n(210),E=n(41),D=n(30),C=n(10),O=n(203),S=n(60),k=n(209),A=n(359),T=n(20),P=n(205),M=n(96),j=n(206),I=n(357),F=n(356),R=n(163),z=n(207),L=n(89),B=n(204),N=n(627),V=n(88),U=n(626),H=n(620),W=n(129),G=n(211),q=n(208),Y=n(624),Z=n(628),$=n(630),K=n(44),X=n(629),J=n(1),Q=n.n(J),ee=n(70),te=f.createContext(void 0),ne=f.memo((function(e){var t=e.align,n=e.className,r=e.children,i=e.colIndex,o=e.cellMode,a=e.field,s=e.formattedValue,u=e.hasFocus,l=e.height,c=e.isEditable,p=e.isSelected,m=e.rowIndex,v=e.rowId,y=e.showRightBorder,g=e.tabIndex,b=e.value,x=e.width,w=null==s?b:s,E=f.useRef(null),D=f.useContext(te),C=Object(_.a)(n,"MuiDataGrid-cell"+Object(d.a)(t),{"MuiDataGrid-withBorder":y,"MuiDataGrid-cellEditable":c}),O=f.useCallback((function(e){return function(t){if(!t.relatedTarget||!t.currentTarget.contains(t.relatedTarget)){var n=D.current.getCellParams(v,a||"");D.current.publishEvent(e,n,t)}}}),[D,a,v]),S=f.useCallback((function(e){return function(t){var n=D.current.getCellParams(v,a||"");D.current.publishEvent(e,n,t),(null==n?void 0:n.colDef.disableClickEventBubbling)&&t.stopPropagation()}}),[D,a,v]),k=f.useCallback((function(e){return function(t){t.currentTarget.contains(t.target)&&D.current.publishEvent(e,D.current.getCellParams(v,a||""),t)}}),[D,a,v]),A=f.useMemo((function(){return{onClick:S("cellClick"),onDoubleClick:k("cellDoubleClick"),onMouseDown:k("cellMouseDown"),onMouseOver:k("cellOver"),onMouseOut:k("cellOut"),onMouseEnter:k("cellEnter"),onMouseLeave:k("cellLeave"),onKeyDown:k("cellKeydown"),onBlur:O("cellBlur"),onFocus:k("cellFocus"),onDragStart:k("cellDragStart"),onDragEnter:k("cellDragEnter"),onDragOver:k("cellDragOver")}}),[k,O,S]),T={minWidth:x,maxWidth:x,lineHeight:l-1+"px",minHeight:l,maxHeight:l};return f.useLayoutEffect((function(){var e=Object(h.a)(D.current.rootElementRef.current);if(u&&E.current&&(!e.activeElement||!E.current.contains(e.activeElement))){var t=E.current.querySelector('[tabindex="0"]');t?t.focus():E.current.focus()}})),f.createElement("div",Object.assign({ref:E,className:C,role:"cell","data-value":b,"data-field":a,"data-rowindex":m,"data-colindex":i,"data-rowselected":p,"data-editable":c,"data-mode":o,"aria-colindex":i+1,style:T,tabIndex:g},A),r||(null==w?void 0:w.toString()))}));function re(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function ie(e,t){return e===t||e!=e&&t!=t}function oe(e,t){for(var n=e.length;n--;)if(ie(e[n][0],t))return n;return-1}ne.displayName="GridCell";var ae=Array.prototype.splice;function se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}se.prototype.clear=function(){this.__data__=[],this.size=0},se.prototype.delete=function(e){var t=this.__data__,n=oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ae.call(t,n,1),--this.size,!0)},se.prototype.get=function(e){var t=this.__data__,n=oe(t,e);return n<0?void 0:t[n][1]},se.prototype.has=function(e){return oe(this.__data__,e)>-1},se.prototype.set=function(e,t){var n=this.__data__,r=oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ue="object"==typeof e&&e&&e.Object===Object&&e,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),pe=ce.Symbol,fe=Object.prototype,de=fe.hasOwnProperty,he=fe.toString,me=pe?pe.toStringTag:void 0,ve=Object.prototype.toString,ye=pe?pe.toStringTag:void 0;function ge(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ye&&ye in Object(e)?function(e){var t=de.call(e,me),n=e[me];try{e[me]=void 0;var r=!0}catch(e){}var i=he.call(e);return r&&(t?e[me]=n:delete e[me]),i}(e):function(e){return ve.call(e)}(e)}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){if(!be(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var _e,we=ce["__core-js_shared__"],Ee=(_e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+_e:"",De=Function.prototype.toString;function Ce(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Oe=/^\[object .+?Constructor\]$/,Se=Function.prototype,ke=Object.prototype,Ae=Se.toString,Te=ke.hasOwnProperty,Pe=RegExp("^"+Ae.call(Te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||(t=e,Ee&&Ee in t))&&(xe(e)?Pe:Oe).test(Ce(e));var t}(n)?n:void 0}var je=Me(ce,"Map"),Ie=Me(Object,"create"),Fe=Object.prototype.hasOwnProperty,Re=Object.prototype.hasOwnProperty;function ze(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Le(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=this.__data__=new se(e);this.size=t.size}function Ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Be;++t<n;)this.add(e[t])}function Ue(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function He(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,p=!0,f=2&n?new Ve:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var d=e[c],h=t[c];if(r)var m=a?r(h,d,c,t,e,o):r(d,h,c,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!Ue(t,(function(e,t){if(a=t,!f.has(a)&&(d===e||i(d,e,n,r,o)))return f.push(t);var a}))){p=!1;break}}else if(d!==h&&!i(d,h,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}ze.prototype.clear=function(){this.__data__=Ie?Ie(null):{},this.size=0},ze.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ze.prototype.get=function(e){var t=this.__data__;if(Ie){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0},ze.prototype.has=function(e){var t=this.__data__;return Ie?void 0!==t[e]:Re.call(t,e)},ze.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ie&&void 0===t?"__lodash_hash_undefined__":t,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new(je||se),string:new ze}},Be.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},Be.prototype.get=function(e){return Le(this,e).get(e)},Be.prototype.has=function(e){return Le(this,e).has(e)},Be.prototype.set=function(e,t){var n=Le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ne.prototype.clear=function(){this.__data__=new se,this.size=0},Ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!je||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Be(r)}return n.set(e,t),this.size=n.size,this},Ve.prototype.add=Ve.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ve.prototype.has=function(e){return this.__data__.has(e)};var We=ce.Uint8Array;function Ge(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qe(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ye=pe?pe.prototype:void 0,Ze=Ye?Ye.valueOf:void 0,$e=Array.isArray,Ke=Object.prototype.propertyIsEnumerable,Xe=Object.getOwnPropertySymbols,Je=Xe?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a)&&(o[i++]=a)}return o}(Xe(e),(function(t){return Ke.call(e,t)})))}:function(){return[]};function Qe(e){return null!=e&&"object"==typeof e}function et(e){return Qe(e)&&"[object Arguments]"==ge(e)}var tt=Object.prototype,nt=tt.hasOwnProperty,rt=tt.propertyIsEnumerable,it=et(function(){return arguments}())?et:function(e){return Qe(e)&&nt.call(e,"callee")&&!rt.call(e,"callee")},ot="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=ot&&"object"==typeof r&&r&&!r.nodeType&&r,st=at&&at.exports===ot?ce.Buffer:void 0,ut=(st?st.isBuffer:void 0)||function(){return!1},lt=/^(?:0|[1-9]\d*)$/;function ct(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&<.test(e))&&e>-1&&e%1==0&&e<t}function pt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft["[object Arguments]"]=ft["[object Array]"]=ft["[object ArrayBuffer]"]=ft["[object Boolean]"]=ft["[object DataView]"]=ft["[object Date]"]=ft["[object Error]"]=ft["[object Function]"]=ft["[object Map]"]=ft["[object Number]"]=ft["[object Object]"]=ft["[object RegExp]"]=ft["[object Set]"]=ft["[object String]"]=ft["[object WeakMap]"]=!1;var dt,ht="object"==typeof exports&&exports&&!exports.nodeType&&exports,mt=ht&&"object"==typeof r&&r&&!r.nodeType&&r,vt=mt&&mt.exports===ht&&ue.process,yt=function(){try{return vt&&vt.binding&&vt.binding("util")}catch(_t){}}(),gt=yt&&yt.isTypedArray,bt=gt?(dt=gt,function(e){return dt(e)}):function(e){return Qe(e)&&pt(e.length)&&!!ft[ge(e)]},xt=Object.prototype.hasOwnProperty;var _t,wt,Et=Object.prototype,Dt=(_t=Object.keys,wt=Object,function(e){return _t(wt(e))}),Ct=Object.prototype.hasOwnProperty;function Ot(e){return null!=(t=e)&&pt(t.length)&&!xe(t)?function(e,t){var n=$e(e),r=!n&&it(e),i=!n&&!r&&ut(e),o=!n&&!r&&!i&&bt(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)!t&&!xt.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ct(l,u))||s.push(l);return s}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Et))return Dt(e);var t,n,r=[];for(var i in Object(e))Ct.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e);var t}function St(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ot,Je)}var kt=Object.prototype.hasOwnProperty,At=Me(ce,"DataView"),Tt=Me(ce,"Promise"),Pt=Me(ce,"Set"),Mt=Me(ce,"WeakMap"),jt=Ce(At),It=Ce(je),Ft=Ce(Tt),Rt=Ce(Pt),zt=Ce(Mt),Lt=ge;(At&&"[object DataView]"!=Lt(new At(new ArrayBuffer(1)))||je&&"[object Map]"!=Lt(new je)||Tt&&"[object Promise]"!=Lt(Tt.resolve())||Pt&&"[object Set]"!=Lt(new Pt)||Mt&&"[object WeakMap]"!=Lt(new Mt))&&(Lt=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ce(n):"";if(r)switch(r){case jt:return"[object DataView]";case It:return"[object Map]";case Ft:return"[object Promise]";case Rt:return"[object Set]";case zt:return"[object WeakMap]"}return t});var Bt=Lt,Nt="[object Object]",Vt=Object.prototype.hasOwnProperty;function Ut(e,t,n,r,i){return e===t||(null==e||null==t||!Qe(e)&&!Qe(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=$e(e),s=$e(t),u=a?"[object Array]":Bt(e),l=s?"[object Array]":Bt(t),c=(u="[object Arguments]"==u?Nt:u)==Nt,p=(l="[object Arguments]"==l?Nt:l)==Nt,f=u==l;if(f&&ut(e)){if(!ut(t))return!1;a=!0,c=!1}if(f&&!c)return o||(o=new Ne),a||bt(e)?He(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ie(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ge;case"[object Set]":var u=1&r;if(s||(s=qe),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=He(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(Ze)return Ze.call(e)==Ze.call(t)}return!1}(e,t,u,n,r,i,o);if(!(1&n)){var d=c&&Vt.call(e,"__wrapped__"),h=p&&Vt.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,v=h?t.value():t;return o||(o=new Ne),i(m,v,n,r,o)}}return!!f&&(o||(o=new Ne),function(e,t,n,r,i,o){var a=1&n,s=St(e),u=s.length;if(u!=St(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:kt.call(t,c)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var f=!0;o.set(e,t),o.set(t,e);for(var d=a;++l<u;){var h=e[c=s[l]],m=t[c];if(r)var v=a?r(m,h,c,t,e,o):r(h,m,c,e,t,o);if(!(void 0===v?h===m||i(h,m,n,r,o):v)){f=!1;break}d||(d="constructor"==c)}if(f&&!d){var y=e.constructor,g=t.constructor;y==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}(e,t,n,r,Ut,i))}function Ht(e,t){return Ut(e,t)}function Wt(e){return Object(m.a)(e)}var Gt="undefined"!=typeof window?f.useLayoutEffect:f.useEffect;function qt(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e}),[]).join(" ")})),r}var Yt={active:"Mui-active",checked:"Mui-checked",disabled:"Mui-disabled",error:"Mui-error",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",expanded:"Mui-expanded",selected:"Mui-selected"};function Zt(e){return e instanceof Date}function $t(e){var t=e.value,n=e.withTime;if(Zt(t)&&function(e){return!Number.isNaN(e.getTime())}(t)){var r=t.getTimezoneOffset();return new Date(t.getTime()-60*r*1e3).toISOString().substr(0,n?16:10)}return t}function Kt(e){return"function"==typeof e}function Xt(e){return e.type||e.mode}function Jt(){return"alpha"in E}function Qt(e,t){var n,r;return Jt()?null===(n=E)||void 0===n?void 0:n.alpha(e,t):null===(r=E)||void 0===r?void 0:r.fade(e,t)}function en(){var e,t;return Jt()?null===(e=E)||void 0===e?void 0:e.createTheme():null===(t=E)||void 0===t?void 0:t.createMuiTheme()}function tn(){try{var e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(_t){return!1}}function nn(e){return function(e,t){return Yt[t]||"".concat(e,"-").concat(t)}("MuiDataGrid",e)}function rn(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),i=e.field,o=(e.row,e.colDef),a=(e.cellMode,e.isEditable,e.hasFocus,e.getValue,re(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","hasFocus","getValue"])),s=f.useState(n),u=Object(p.a)(s,2),l=u[0],c=u[1],d=function(e){switch(e){case"string":return"text";case"number":case"date":return e;case"dateTime":return"datetime-local";default:return"text"}}(o.type),h="date"===o.type,m="dateTime"===o.type,v=f.useCallback((function(e){var n=e.target.value,o={value:n};h?o.value=""===n?null:function(e){var t=e.split("-"),n=Object(p.a)(t,3),r=n[0],i=n[1],o=n[2];return new Date(Number(r),Number(i)-1,Number(o))}(n):m&&(o.value=""===n?null:function(e){var t=e.split("T"),n=Object(p.a)(t,2),r=n[0],i=n[1],o=r.split("-"),a=Object(p.a)(o,3),s=a[0],u=a[1],l=a[2],c=i.split(":"),f=Object(p.a)(c,2),d=f[0],h=f[1];return new Date(Number(s),Number(u)-1,Number(l),Number(d),Number(h))}(n)),c(n),r.publishEvent("cellEditPropsChange",{id:t,field:i,props:o},e)}),[r,i,t,h,m]);return f.useEffect((function(){n instanceof Date?c($t({value:n,withTime:"dateTime"===o.type})):c(n||"")}),[n,o.type]),f.createElement(w.a,Object.assign({autoFocus:!0,className:"MuiDataGrid-editCellInputBase",fullWidth:!0,type:d,value:l,onChange:v},a))}var on=f.memo((function(e){var t=e.width,n=e.height;return t&&n?f.createElement("div",{style:{minWidth:t,maxWidth:t,lineHeight:n-1+"px",minHeight:n,maxHeight:n},className:"MuiDataGrid-cell"}):null})),an=function(e,t){var n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},sn=function(e,t){return null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null},un=function(e,t){var n=sn(e,t);return null!==n?n:Number(e)-Number(t)},ln=function(e,t){var n=sn(e,t);return null!==n?n:e>t?1:e<t?-1:0};function cn(e,t){return e.closest("."+t)}function pn(e){return null!=e&&e.classList.contains("MuiDataGrid-columnHeader")}function fn(e){var t=e.getAttribute("data-field"),n=cn(e,"MuiDataGrid-root");if(!n)throw new Error("Material-UI: The root element is not found.");return n.querySelectorAll(':scope .MuiDataGrid-cell[data-field="'.concat(t,'"]'))}function dn(e,t){return e.querySelector(":scope .MuiDataGrid-row[data-id='".concat(t,"']"))}var hn=function(e){return"Escape"===e},mn=function(e){return"Enter"===e},vn=function(e){return"Tab"===e},yn=function(e){return" "===e},gn=function(e){return 0===e.indexOf("Arrow")},bn=function(e){return"Home"===e||"End"===e},xn=function(e){return 0===e.indexOf("Page")},_n=function(e){return"Delete"===e||"Backspace"===e},wn=/^((?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDEC0-\uDEEB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])|(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])|[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA])|(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDFFF]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]))$/i,En=function(e){return wn.test(e)},Dn=["Meta","Control","Shift"],Cn=["Enter","Escape","Tab"],On=["Enter","Tab"],Sn=function(e){return Dn.indexOf(e)>-1},kn=function(e){return On.indexOf(e)>-1},An=function(e){return bn(e)||gn(e)||xn(e)||yn(e)},Tn=function(e){return!!e.key},Pn=function(e){return vn(e)||hn(e)},Mn=Object(v.a)(f.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),jn=Object(v.a)(f.createElement("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),In=Object(v.a)(f.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Fn=Object(v.a)(f.createElement("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Rn=(Object(v.a)(f.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Object(v.a)(f.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Object(v.a)(f.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),Object(v.a)(f.createElement("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),zn=Object(v.a)(f.createElement("path",{d:"M11 19V5h2v14z"}),"Separator"),Ln=Object(v.a)(f.createElement("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Bn=Object(v.a)(f.createElement("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Nn=Object(v.a)(f.createElement("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Vn=Object(v.a)(f.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Un=Object(v.a)(f.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Hn=Object(v.a)(f.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Wn=Object(v.a)(f.createElement("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Gn=Object(v.a)(f.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),qn=Object(v.a)(f.createElement("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Yn=Object(v.a)(f.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");function Zn(e){var t=e.item,n=e.applyValue,r=e.type,i=e.apiRef,o=re(e,["item","applyValue","type","apiRef"]),a=f.useRef(),s=f.useState(t.value||""),u=Object(p.a)(s,2),l=u[0],c=u[1],d=f.useState(!1),h=Object(p.a)(d,2),m=h[0],v=h[1],g=Object(y.a)(),b=f.useCallback((function(e){clearTimeout(a.current);var r=e.target.value;c(r),v(!0),a.current=setTimeout((function(){n(Object.assign(Object.assign({},t),{value:r})),v(!1)}),500)}),[n,t]);f.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),f.useEffect((function(){c(t.value||"")}),[t.value]);var x=m?{endAdornment:f.createElement(Wn,null)}:o.InputProps;return f.createElement(k.a,Object.assign({id:g,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:l,onChange:b,type:r||"text",variant:"standard",InputProps:x,InputLabelProps:{shrink:!0}},o))}var $n={width:100,hide:!1,sortable:!0,resizable:!0,filterable:!0,sortComparator:function(e,t){var n=sn(e,t);return null!==n?n:"string"==typeof e?e.localeCompare(t.toString()):e-t},type:"string",align:"left",filterOperators:[{value:"contains",getApplyFilterFn:function(e){if(!e.columnField||!e.value||!e.operatorValue)return null;var t=new RegExp(e.value,"i");return function(e){var n=e.value;return t.test(n&&n.toString()||"")}},InputComponent:Zn},{value:"equals",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n,r=t.value;return 0===(null===(n=e.value)||void 0===n?void 0:n.localeCompare(r&&r.toString()||"",void 0,{sensitivity:"base"}))}:null},InputComponent:Zn},{value:"startsWith",getApplyFilterFn:function(e){if(!e.columnField||!e.value||!e.operatorValue)return null;var t=new RegExp("^".concat(e.value,".*$"),"i");return function(e){var n=e.value;return t.test(n&&n.toString()||"")}},InputComponent:Zn},{value:"endsWith",getApplyFilterFn:function(e){if(!e.columnField||!e.value||!e.operatorValue)return null;var t=new RegExp(".*".concat(e.value,"$"),"i");return function(e){var n=e.value;return t.test(n&&n.toString()||"")}},InputComponent:Zn}],renderEditCell:function(e){return f.createElement(rn,Object.assign({},e))}},Kn=Object.assign(Object.assign({},$n),{type:"number",align:"right",headerAlign:"right",sortComparator:un,valueFormatter:function(e){var t=e.value;return t&&function(e){return"number"==typeof e}(t)&&t.toLocaleString()||t},filterOperators:[{label:"=",value:"=",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n=t.value;return Number(n)===Number(e.value)}:null},InputComponent:Zn,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n=t.value;return Number(n)!==Number(e.value)}:null},InputComponent:Zn,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n=t.value;return Number(n)>Number(e.value)}:null},InputComponent:Zn,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n=t.value;return Number(n)>=Number(e.value)}:null},InputComponent:Zn,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n=t.value;return Number(n)<Number(e.value)}:null},InputComponent:Zn,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:function(e){return e.columnField&&e.value&&e.operatorValue?function(t){var n=t.value;return Number(n)<=Number(e.value)}:null},InputComponent:Zn,InputComponentProps:{type:"number"}}]}),Xn=/(\d+)-(\d+)-(\d+)/,Jn=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Qn(e,t,n,r){if(!e.columnField||!e.value||!e.operatorValue)return null;var i=e.value.match(n?Jn:Xn).slice(1).map(Number),o=Object(p.a)(i,5),a=o[0],s=o[1],u=o[2],l=o[3],c=o[4],f=new Date(a,s-1,u,l||0,c||0).getTime();return function(e){var i=e.value;if(!i)return!1;var o=i instanceof Date?i:new Date(i.toString());if(r)return t(o.getTime(),f);var a=(i instanceof Date?new Date(o):o).setHours(n?o.getHours():0,n?o.getMinutes():0,0,0);return t(a,f)}}var er=function(e){return[{value:"is",getApplyFilterFn:function(t){return Qn(t,(function(e,t){return e===t}),e)},InputComponent:Zn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:function(t){return Qn(t,(function(e,t){return e!==t}),e)},InputComponent:Zn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:function(t){return Qn(t,(function(e,t){return e>t}),e)},InputComponent:Zn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:function(t){return Qn(t,(function(e,t){return e>=t}),e)},InputComponent:Zn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:function(t){return Qn(t,(function(e,t){return e<t}),e,!e)},InputComponent:Zn,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:function(t){return Qn(t,(function(e,t){return e<=t}),e)},InputComponent:Zn,InputComponentProps:{type:e?"datetime-local":"date"}}]};var tr=Object.assign(Object.assign({},$n),{type:"date",sortComparator:ln,valueFormatter:function(e){var t=e.value;return Zt(t)?t.toLocaleDateString():t},filterOperators:er()}),nr=Object.assign(Object.assign({},$n),{type:"dateTime",sortComparator:ln,valueFormatter:function(e){var t=e.value;return Zt(t)?t.toLocaleString():t},filterOperators:er(!0)}),rr=f.memo((function(e){e.id;var t=e.value,n=(e.formattedValue,e.api),r=(e.field,e.row,e.colDef,e.cellMode,e.isEditable,e.hasFocus,e.tabIndex,e.getValue,re(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"])),i=f.useMemo((function(){return t?n.components.BooleanCellTrueIcon:n.components.BooleanCellFalseIcon}),[n.components.BooleanCellFalseIcon,n.components.BooleanCellTrueIcon,t]);return f.createElement(i,Object.assign({fontSize:"small",className:"MuiDataGrid-booleanCell",titleAccess:n.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(t)},r))}));function ir(e){var t=e.id,n=e.value,r=(e.formattedValue,e.api),i=e.field,o=(e.row,e.colDef,e.cellMode,e.isEditable,e.className),a=(e.getValue,re(e,["id","value","formattedValue","api","field","row","colDef","cellMode","isEditable","className","getValue"])),s=Object(y.a)(),u=f.useState(n),l=Object(p.a)(u,2),c=l[0],d=l[1],h=f.useCallback((function(e){var n=e.target.checked,o={value:n};d(n),r.publishEvent("cellEditPropsChange",{id:t,field:i,props:o},e)}),[r,i,t]);return f.useEffect((function(){d(n)}),[n]),f.createElement("label",Object.assign({htmlFor:s,className:Object(_.a)("MuiDataGrid-editCellBoolean",o)},a),f.createElement(A.a,{autoFocus:!0,id:s,checked:Boolean(c),onChange:h,size:"small"}))}var or=Object.assign(Object.assign({},$n),{type:"boolean",align:"center",headerAlign:"center",renderCell:function(e){return f.createElement(rr,Object.assign({},e))},renderEditCell:function(e){return f.createElement(ir,Object.assign({},e))},sortComparator:un,filterOperators:[{value:"is",getApplyFilterFn:function(e){if(!e.columnField||!e.value||!e.operatorValue)return null;var t="true"===e.value;return function(e){var n=e.value;return Boolean(n)===t}},InputComponent:function(e){var t=e.item,n=e.applyValue,r=e.apiRef,i=re(e,["item","applyValue","apiRef"]),o=f.useState(t.value||""),a=Object(p.a)(o,2),s=a[0],u=a[1],l=f.useCallback((function(e){var r=e.target.value;u(r),n(Object.assign(Object.assign({},t),{value:r}))}),[n,t]);return f.useEffect((function(){u(t.value||"")}),[t.value]),f.createElement(k.a,Object.assign({label:r.current.getLocaleText("filterPanelInputLabel"),value:s,onChange:l,variant:"standard",select:!0,SelectProps:{native:!0},InputLabelProps:{shrink:!0}},i),f.createElement("option",{value:""},r.current.getLocaleText("filterValueAny")),f.createElement("option",{value:"true"},r.current.getLocaleText("filterValueTrue")),f.createElement("option",{value:"false"},r.current.getLocaleText("filterValueFalse")))}}]}),ar=function(){var e={string:$n,number:Kn,date:tr,dateTime:nr,boolean:or};return e.__default__=$n,e};function sr(e,t){return t=function(e){var t=Object.assign({},e);return Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&void 0===e[n]&&delete t[n]})),t}(t),Object.assign(Object.assign({},e),t)}var ur=function(e,t){return Jt()?{components:Object.assign({MuiDataGrid:{defaultProps:{localeText:e}}},null==t?void 0:t.components)}:{props:Object.assign({MuiDataGrid:{localeText:e}},null==t?void 0:t.props)}};var lr=function(e){return e.density},cr=Object(T.a)(lr,(function(e){return e.value})),pr=Object(T.a)(lr,(function(e){return e.rowHeight})),fr=Object(T.a)(lr,(function(e){return e.headerHeight})),dr=tn()&&null!=window.localStorage.getItem("DEBUG"),hr=function(){},mr={debug:hr,info:hr,warn:hr,error:hr},vr=["debug","info","warn","error"];function yr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console,r=vr.indexOf(t);if(-1===r)throw new Error("Material-UI: Log level ".concat(t," not recognized."));return vr.reduce((function(t,i,o){return t[i]=o>=r?function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var a=r[0],s=r.slice(1);n[i].apply(n,["Material-UI: ".concat(e," - ").concat(a)].concat(Object(c.a)(s)))}:hr,t}),{})}var gr,br=function(e){return function(t){return yr(t,e)}};function xr(e){return f.useRef(gr?gr(e):mr).current}function _r(e,t,n){var r=xr("useGridApiMethod"),i=f.useRef(t),o=f.useState(Object.keys(t)),a=Object(p.a)(o,1)[0];f.useEffect((function(){i.current=t}),[t]),f.useEffect((function(){a.forEach((function(t){e.current.hasOwnProperty(t)||(r.debug("Adding ".concat(n,".").concat(t," to apiRef")),e.current[t]=function(){var e;return(e=i.current)[t].apply(e,arguments)})}))}),[a,n,e,r])}var wr,Er={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:function(e){return 1!==e?e+" active filters":e+" active filter"},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelOperators:"Operators",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:function(e){return 1!==e?e+" active filters":e+" active filter"},columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:function(e){return 1!==e?e.toLocaleString()+" rows selected":e.toLocaleString()+" row selected"},footerTotalRows:"Total Rows:",checkboxSelectionHeaderName:"Checkbox selection",booleanCellTrueLabel:"true",booleanCellFalseLabel:"false"};!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(wr||(wr={}));var Dr,Cr="client",Or="server",Sr={columnBuffer:2,columnTypes:ar(),density:wr.Standard,filterMode:Cr,headerHeight:56,localeText:Er,pageSize:100,paginationMode:Cr,rowHeight:52,rowsPerPageOptions:[25,50,100],scrollEndThreshold:80,sortingMode:Cr,sortingOrder:["asc","desc",null]};!function(e){e.And="and",e.Or="or"}(Dr||(Dr={}));var kr=function(){return{items:[],linkOperator:Dr.And}};var Ar=function(e){var t=xr("useGridApi"),n=f.useState(),r=Object(p.a)(n,2)[1];e.current.isInitialised||e.current.state||(t.info("Initialising state."),e.current.state={rows:{idRowsLookup:{},allRows:[],totalRowCount:0},editRows:{},pagination:{page:0,pageCount:0,pageSize:0,paginationMode:"client",rowCount:0},options:Sr,isScrolling:!1,columns:{all:[],lookup:{}},columnReorder:{dragCol:""},columnResize:{resizingColumnField:""},rendering:{realScroll:{left:0,top:0},renderContext:null,renderingZoneScroll:{left:0,top:0},virtualPage:0,virtualRowsCount:0,renderedSizes:null},containerSizes:null,scrollBar:{hasScrollX:!1,hasScrollY:!1,scrollBarSize:{x:0,y:0}},viewportSizes:{width:0,height:1},sorting:{sortedRows:[],sortModel:[]},keyboard:{isMultipleKeyPressed:!1},focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null},selection:{},filter:kr(),columnMenu:{open:!1},preferencePanel:{open:!1},visibleRows:{visibleRowsLookup:{}},density:{value:Sr.density,rowHeight:Sr.rowHeight,headerHeight:Sr.headerHeight}},e.current.forceUpdate=r);var i=f.useCallback((function(t){return t?e.current.state[t]:e.current.state}),[e]),o=f.useCallback((function(t){var n;n=Kt(t)?t(e.current.state):t,e.current.state=n,r((function(){return n}));var i={api:e.current,state:n};e.current.publishEvent("stateChange",i)}),[e]);return _r(e,{getState:i,setState:o},"GridStateApi"),e.current},Tr=function(e){Ar(e);var t=f.useCallback((function(){return e.current.forceUpdate((function(){return e.current.state}))}),[e]),n=f.useCallback((function(t){var n=t(e.current.state),r=e.current.state!==n;if(e.current.state=n,r&&e.current.publishEvent){var i={api:e.current,state:n};e.current.publishEvent("stateChange",i)}return r}),[e]);return[e.current.state,n,t]},Pr=function(e,t){var n=Tr(e);return t(Object(p.a)(n,1)[0])},Mr=f.memo((function(e){var t=e.columns,n=e.firstColIdx,r=e.hasScrollX,i=e.hasScrollY,o=e.id,a=e.getCellClassName,s=e.lastColIdx,u=e.rowIndex,l=e.cellFocus,c=e.cellTabIndex,p=e.showCellRightBorder,d=e.isSelected,h=e.editRowState,m=e.cellClassName,v=re(e,["columns","firstColIdx","hasScrollX","hasScrollY","id","getCellClassName","lastColIdx","rowIndex","cellFocus","cellTabIndex","showCellRightBorder","isSelected","editRowState","cellClassName"]),y=f.useContext(te),g=Pr(y,pr),b=t.slice(n,s+1).map((function(s,f){var b=n+f,x=b===t.length-1,w=x?!(x&&r&&!i)&&!e.extendRowFullWidth:p,E=y.current.getCellParams(o,s.field),D=[m];s.cellClassName&&D.push(Object(_.a)(Kt(s.cellClassName)?s.cellClassName(E):s.cellClassName));var C=h&&h[s.field],O=null;if(null==C&&s.renderCell&&(O=s.renderCell(E),D.push("MuiDataGrid-cellWithRenderer")),null!=C&&s.renderEditCell){var S=Object.assign(Object.assign({},E),C);O=s.renderEditCell(S),D.push("MuiDataGrid-cellEditing")}return a&&D.push(a(E)),Object.assign({value:E.value,field:s.field,width:s.width,rowId:o,height:g,showRightBorder:w,formattedValue:E.formattedValue,align:s.align||"left",rowIndex:u,cellMode:E.cellMode,colIndex:b,children:O,isEditable:E.isEditable,isSelected:d,hasFocus:null!==l&&l.id===o&&l.field===s.field,tabIndex:null!==c&&c.id===o&&c.field===s.field?0:-1,className:Object(_.a)(D)},v)}));return f.createElement(f.Fragment,null,b.map((function(e){return f.createElement(ne,Object.assign({key:e.field},e))})))}));Mr.displayName="GridRowCells";var jr=Object(S.a)((function(e){var t="light"===Xt(e.palette)?Object(C.i)(Qt(e.palette.divider,1),.88):Object(C.a)(Qt(e.palette.divider,1),.68),n={root:Object.assign(Object.assign({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid "+t,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2),{outline:"none",height:"100%",display:"flex",flexDirection:"column","& *, & *::before, & *::after":{boxSizing:"inherit"},"&.MuiDataGrid-autoHeight":{height:"auto"},"& .MuiDataGrid-main":{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},"& .MuiDataGrid-overlay":{display:"flex",position:"absolute",top:0,left:0,right:0,bottom:0,alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:Qt(e.palette.background.default,e.palette.action.disabledOpacity)},"& .MuiDataGrid-toolbar":{display:"flex",alignItems:"center",padding:"4px 4px 0"},"& .MuiDataGrid-columnsContainer":{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",flexDirection:"column",borderBottom:"1px solid "+t},"& .MuiDataGrid-scrollArea":{position:"absolute",top:0,zIndex:101,width:20,bottom:0},"& .MuiDataGrid-scrollArea-left":{left:0},"& .MuiDataGrid-scrollArea-right":{right:0},"& .MuiDataGrid-columnHeaderWrapper":{display:"flex",width:"100%",alignItems:"center",overflow:"hidden"},"& .MuiDataGrid-columnHeader, & .MuiDataGrid-cell":{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px"},"& .MuiDataGrid-columnHeader:focus-within, & .MuiDataGrid-cell:focus-within":{outline:"solid ".concat(Qt(e.palette.primary.main,.5)," 1px"),outlineWidth:1,outlineOffset:-2},"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-cell:focus":{outline:"solid ".concat(e.palette.primary.main," 1px")},"& .MuiDataGrid-columnHeaderCheckbox, & .MuiDataGrid-cellCheckbox":{padding:0,justifyContent:"center",alignItems:"center"},"& .MuiDataGrid-columnHeader":{position:"relative",display:"flex",alignItems:"center"},"& .MuiDataGrid-columnHeader:not(.MuiDataGrid-columnHeaderSorted) .MuiDataGrid-sortIcon":{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},"& .MuiDataGrid-columnHeader:not(.MuiDataGrid-columnHeaderSorted):hover .MuiDataGrid-sortIcon":{opacity:.5},"& .MuiDataGrid-columnHeaderTitleContainer":{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",padding:"0 6px"},"& .MuiDataGrid-sortIcon, & .MuiDataGrid-filterIcon":{fontSize:"inherit"},"& .MuiDataGrid-columnHeaderSortable":{cursor:"pointer"},"& .MuiDataGrid-columnHeaderCenter .MuiDataGrid-columnHeaderTitleContainer":{justifyContent:"center"},"& .MuiDataGrid-columnHeaderRight .MuiDataGrid-columnHeader-draggable, & .MuiDataGrid-columnHeaderRight .MuiDataGrid-columnHeaderTitleContainer":{flexDirection:"row-reverse"},"& .MuiDataGrid-columnHeaderCenter .MuiDataGrid-menuIcon, & .MuiDataGrid-columnHeaderRight .MuiDataGrid-menuIcon":{marginRight:"auto",marginLeft:-6},"& .MuiDataGrid-columnHeaderTitle":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium},"& .MuiDataGrid-columnHeaderMoving":{backgroundColor:e.palette.action.hover},"& .MuiDataGrid-columnSeparator":{position:"absolute",right:-12,zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"& .MuiDataGrid-columnSeparatorResizable":{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},"&.Mui-resizing":{color:e.palette.text.primary}},"& .MuiDataGrid-iconSeparator":{color:"inherit"},"& .MuiDataGrid-menuIcon":{visibility:"hidden",fontSize:20,marginRight:-6,display:"flex",alignItems:"center"},"& .MuiDataGrid-columnHeader:hover .MuiDataGrid-menuIcon, .MuiDataGrid-menuOpen":{visibility:"visible"},"& .MuiDataGrid-columnHeaderWrapper.scroll .MuiDataGrid-columnHeader:last-child":{borderRight:"none"},"& .MuiDataGrid-dataContainer":{position:"relative",flexGrow:1,display:"flex",flexDirection:"column"},"& .MuiDataGrid-window":{position:"absolute",bottom:0,left:0,right:0,overflowX:"auto"},"& .MuiDataGrid-viewport":{position:"sticky",top:0,left:0,display:"flex",flexDirection:"column",overflow:"hidden"},"& .MuiDataGrid-row":{display:"flex",width:"fit-content","&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:Qt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:Qt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:Qt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},"& .MuiDataGrid-cell":{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderBottom:"1px solid "+t},"& .MuiDataGrid-cell.MuiDataGrid-cellEditing":{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:"solid ".concat(e.palette.primary.main," 1px"),outlineOffset:"-1px"}},"& .MuiDataGrid-editCellInputBase":Object.assign(Object.assign({},e.typography.body2),{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),"& .MuiDataGrid-editCellBoolean":{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},'& .MuiDataGrid-booleanCell[data-value="true"]':{color:e.palette.text.secondary},'& .MuiDataGrid-booleanCell[data-value="false"]':{color:e.palette.text.disabled},"& .MuiDataGrid-columnHeaderWrapper .MuiDataGrid-cell":{borderBottom:"none"},"& .MuiDataGrid-cellWithRenderer":{display:"flex",alignItems:"center"},"& .MuiDataGrid-withBorder":{borderRight:"1px solid "+t},"& .MuiDataGrid-cellLeft":{textAlign:"left"},"& .MuiDataGrid-cellLeft.MuiDataGrid-cellWithRenderer, & .MuiDataGrid-cellLeft.MuiDataGrid-cellEditing":{justifyContent:"flex-start"},"& .MuiDataGrid-cellRight":{textAlign:"right"},"& .MuiDataGrid-cellRight.MuiDataGrid-cellWithRenderer, & .MuiDataGrid-cellRight.MuiDataGrid-cellEditing":{justifyContent:"flex-end"},"& .MuiDataGrid-cellCenter":{textAlign:"center"},"& .MuiDataGrid-cellCenter.MuiDataGrid-cellWithRenderer, & .MuiDataGrid-cellCenter.MuiDataGrid-cellEditing":{justifyContent:"center"},"& .MuiDataGrid-rowCount, & .MuiDataGrid-selectedRowCount":{alignItems:"center",display:"flex",margin:e.spacing(0,2)},"& .MuiDataGrid-footer":{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,"& .MuiDataGrid-selectedRowCount":Object(l.a)({visibility:"hidden",width:0,height:0},e.breakpoints.up("sm"),{visibility:"visible",width:"auto",height:"auto"})},"& .MuiDataGrid-columnHeader-dropZone .MuiDataGrid-columnHeader-draggable":{cursor:"move"},"& .MuiDataGrid-columnHeader-draggable":{display:"flex",width:"100%"},"& .MuiDataGrid-columnHeader-dragging":{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity}})};if("dark"===Xt(e.palette)){var r="#202022",i="#838384";n.root=Object.assign(Object.assign({},n.root),{scrollbarColor:"".concat("#585859"," ").concat(r),"& *::-webkit-scrollbar":{backgroundColor:r},"& *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:"#585859",minHeight:24,border:"3px solid "+r},"& *::-webkit-scrollbar-thumb:focus":{backgroundColor:i},"& *::-webkit-scrollbar-thumb:active":{backgroundColor:i},"& *::-webkit-scrollbar-thumb:hover":{backgroundColor:i},"& *::-webkit-scrollbar-corner":{backgroundColor:r}})}return n}),{name:"MuiDataGrid",defaultTheme:en()}),Ir=function(e){return e.columns.lookup},Fr=Object(T.a)((function(e){return e.columns.all}),Ir,(function(e,t){return e.map((function(e){return t[e]}))})),Rr=Object(T.a)(Fr,(function(e){return e.filter((function(e){return null!=e.field&&!e.hide}))})),zr=Object(T.a)(Rr,(function(e){var t=[];return{totalWidth:e.reduce((function(e,n){return t.push(e),e+n.width}),0),positions:t}})),Lr=Object(T.a)(Fr,(function(e){return e.filter((function(e){return e.filterable}))})),Br=Object(T.a)(Lr,(function(e){return e.map((function(e){return e.field}))})),Nr=Object(T.a)(Rr,(function(e){return e.length})),Vr=Object(T.a)(zr,(function(e){return e.totalWidth})),Ur=f.forwardRef((function(e,t){var n=e.className,r=re(e,["className"]),i=jr(),o=f.useContext(te),a=Pr(o,Nr),s=Tr(o),u=Object(p.a)(s,1)[0];return f.createElement("div",Object.assign({ref:t,className:Object(_.a)(i.root,n,{"MuiDataGrid-autoHeight":u.options.autoHeight}),role:"grid","aria-colcount":a,"aria-rowcount":u.rows.totalRowCount,"aria-multiselectable":!u.options.disableMultipleSelection},r))})),Hr=f.forwardRef((function(e,t){var n=e.className,r=e.style,i=re(e,["className","style"]),o=f.useContext(te),a=Pr(o,fr);return f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-columnsContainer",n)},i,{style:Object.assign({minHeight:a,maxHeight:a,lineHeight:a+"px"},r)}))})),Wr=function(e){return e.containerSizes},Gr=function(e){return e.viewportSizes},qr=function(e){return e.scrollBar},Yr=Object(T.a)(Wr,(function(e){return null==e?null:e.dataContainerSizes})),Zr=Object(T.a)(Wr,(function(e){return null==e?0:e.dataContainerSizes.height}));function $r(e){var t=e.className,n=re(e,["className"]),r=f.useContext(te),i=Pr(r,Yr),o=Pr(r,qr),a={minWidth:null==i?void 0:i.width};return o.hasScrollY&&(a.minHeight=null==i?void 0:i.height),f.createElement("div",Object.assign({className:Object(_.a)("MuiDataGrid-dataContainer","data-container",t),style:a},n))}var Kr=f.forwardRef((function(e,t){var n=e.className,r=re(e,["className"]);return f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-footer",n)},r))})),Xr=f.forwardRef((function(e,t){var n=e.className,r=e.style,i=re(e,["className","style"]),o=f.useContext(te),a=Pr(o,fr);return f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-overlay",n),style:Object.assign({top:a},r)},i))})),Jr=function(e){return e.options},Qr=f.forwardRef((function(e,t){var n=e.className,r=e.size,i=re(e,["className","size"]),o=f.useContext(te),a=Pr(o,Jr).autoHeight,s=Pr(o,fr),u=Pr(o,pr),l=Pr(o,Zr);f.useEffect((function(){o.current.resize()}),[o]);var c=f.useMemo((function(){return a?s+(l<u?2*u:l):r.height}),[a,l,s,u,r.height]);return f.createElement("div",{className:"MuiDataGrid-windowContainer",style:{width:r.width,height:c}},f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-window",n)},i,{style:{top:s,overflowY:a?"hidden":"auto"}})))})),ei=f.forwardRef((function(e,t){var n=e.className,r=e.children,i=re(e,["className","children"]);return r?f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-toolbar",n)},i),r):null})),ti=f.forwardRef((function(e,t){var n,r=e.field,i=e.id,o=e.value,a=e.tabIndex,s=e.hasFocus,u=f.useContext(te),l=Pr(u,Jr),c=f.useRef(null),p=Object(g.a)(c,t),d=e.api.getCellElement(i,r);f.useLayoutEffect((function(){0===a&&d&&(d.tabIndex=-1)}),[d,a]),f.useLayoutEffect((function(){s&&c.current&&c.current.querySelector("input").focus()}),[s]);var h=f.useCallback((function(t){yn(t.key)&&t.stopPropagation(),An(t.key)&&!t.shiftKey&&u.current.publishEvent("cellNavigationKeyDown",e,t)}),[u,e]),m=null==u?void 0:u.current.components.Checkbox,v=!l.isRowSelectable||l.isRowSelectable(u.current.getRowParams(i));return f.createElement(m,Object.assign({ref:p,tabIndex:a,checked:!!o,onChange:function(e){u.current.selectRow(i,e.target.checked,!0)},className:"MuiDataGrid-checkboxInput",color:"primary",inputProps:{"aria-label":"Select Row checkbox"},onKeyDown:h,disabled:!v},null===(n=null==u?void 0:u.current.componentsProps)||void 0===n?void 0:n.checkbox))})),ni=f.memo(ti),ri=function(e){return e.rows},ii=Object(T.a)(ri,(function(e){return e&&e.totalRowCount})),oi=Object(T.a)(ri,(function(e){return e&&e.idRowsLookup})),ai=Object(T.a)(ri,(function(e){return e.allRows})),si=(Object(T.a)(ri,(function(e){return e.allRows.map((function(t){return e.idRowsLookup[t]}))})),function(e){return e.sorting}),ui=Object(T.a)(si,ai,(function(e,t){return e.sortedRows.length?e.sortedRows:t})),li=Object(T.a)(ui,oi,(function(e,t){var n=new Map;return e.forEach((function(e){n.set(e,t[e])})),n})),ci=Object(T.a)(si,(function(e){return e.sortModel})),pi=Object(T.a)(ci,(function(e){return e.reduce((function(t,n,r){return t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t}),{})})),fi=function(e){return e.visibleRows},di=Object(T.a)(fi,li,(function(e,t){var n=new Map;return t.forEach((function(t,r){!1!==e.visibleRowsLookup[r]&&n.set(r,t)})),n})),hi=Object(T.a)(di,(function(e){return Object(c.a)(e.entries())})),mi=Object(T.a)(di,(function(e){return Object(c.a)(e.keys())})),vi=Object(T.a)(fi,ii,(function(e,t){return null==e.visibleRows?t:e.visibleRows.length})),yi=Object(T.a)((function(e){return e.filter}),(function(e){var t;return null===(t=e.items)||void 0===t?void 0:t.filter((function(e){var t;return null!=e.value&&""!==(null===(t=e.value)||void 0===t?void 0:t.toString())}))})),gi=Object(T.a)(yi,(function(e){return e.length})),bi=Object(T.a)(yi,(function(e){return e.reduce((function(e,t){return e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e}),{})})),xi=function(e){return e.focus},_i=Object(T.a)(xi,(function(e){return e.cell})),wi=Object(T.a)(xi,(function(e){return e.columnHeader})),Ei=function(e){return e.tabIndex},Di=Object(T.a)(Ei,(function(e){return e.cell})),Ci=Object(T.a)(Ei,(function(e){return e.columnHeader})),Oi=function(e){return e.selection},Si=Object(T.a)(Oi,(function(e){return Object.keys(e).length})),ki=Object(T.a)(Oi,oi,(function(e,t){return new Map(Object.values(e).map((function(e){return[e,t[e]]})))})),Ai=f.forwardRef((function(e,t){var n,r=f.useState(!1),i=Object(p.a)(r,2)[1],o=f.useContext(te),a=Pr(o,mi),s=Pr(o,Ci),u=o.current.getColumnHeaderElement(e.field),l=Pr(o,Si),c=Pr(o,ii),d=f.useState(l>0&&l!==c),h=Object(p.a)(d,2),m=h[0],v=h[1],y=f.useState(l===c||m),g=Object(p.a)(y,2),b=g[0],x=g[1];f.useEffect((function(){var e=l>0&&l!==c;x(c>0&&l===c||m),v(e)}),[m,c,l]);var _=null!==s&&s.field===e.field?0:-1;f.useLayoutEffect((function(){0===_&&u&&(u.tabIndex=-1)}),[u,_]);var w=f.useCallback((function(t){yn(t.key)&&t.stopPropagation(),An(t.key)&&!t.shiftKey&&o.current.publishEvent("columnHeaderNavigationKeydown",e,t)}),[o,e]),E=f.useCallback((function(){i((function(e){return!e}))}),[]);f.useEffect((function(){return null==o?void 0:o.current.subscribeEvent("selectionChange",E)}),[o,E]);var D=null==o?void 0:o.current.components.Checkbox;return f.createElement(D,Object.assign({ref:t,indeterminate:m,checked:b,onChange:function(e){var t=e.target.checked;x(t),o.current.selectRows(a,t)},className:"MuiDataGrid-checkboxInput",color:"primary",inputProps:{"aria-label":"Select All Rows checkbox"},tabIndex:_,onKeyDown:w},null===(n=null==o?void 0:o.current.componentsProps)||void 0===n?void 0:n.checkbox))})),Ti=Object.assign(Object.assign({},or),{field:"__check__",type:"checkboxSelection",width:48,resizable:!1,sortable:!1,filterable:!1,disableClickEventBubbling:!0,disableColumnMenu:!0,valueGetter:function(e){return void 0!==e.api.getState().selection[e.id]},renderHeader:function(e){return f.createElement(Ai,Object.assign({},e))},renderCell:function(e){return f.createElement(ni,Object.assign({},e))},cellClassName:"MuiDataGrid-cellCheckbox",headerClassName:"MuiDataGrid-columnHeaderCheckbox"}),Pi=f.memo((function(e){var t=e.direction,n=e.index,r=f.useContext(te),i=r.current.components.ColumnUnsortedIcon;if(null==t&&null===i)return null;var o=f.createElement(M.a,{tabIndex:-1,"aria-label":r.current.getLocaleText("columnHeaderSortIconLabel"),title:r.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},function(e,t){var n=e.ColumnUnsortedIcon;return"asc"===t?n=e.ColumnSortedAscendingIcon:"desc"===t&&(n=e.ColumnSortedDescendingIcon),f.createElement(n,{fontSize:"small",className:"MuiDataGrid-sortIcon"})}(r.current.components,t));return f.createElement("div",{className:"MuiDataGrid-iconButtonContainer"},null!=n&&f.createElement(P.a,{badgeContent:n,color:"default"},o),null==n&&o)})),Mi=f.forwardRef((function(e,t){var n=e.className,r=re(e,["className"]);return f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-columnHeaderTitle",n)},r))}));function ji(e){var t=e.label,n=e.description,r=e.columnWidth,i=f.useRef(null),o=f.useState(""),a=Object(p.a)(o,2),s=a[0],u=a[1];return f.useEffect((function(){if(!n&&i&&i.current){var e=function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(i.current);u(e?t:"")}}),[i,r,n,t]),f.createElement(j.a,{title:n||s},f.createElement(Mi,{ref:i},t))}var Ii,Fi=f.memo((function(e){var t=e.resizable,n=e.resizing,r=e.height,i=re(e,["resizable","resizing","height"]),o=f.useContext(te),a=Pr(o,Jr).showColumnRightBorder,s=o.current.components.ColumnResizeIcon,u=f.useCallback((function(e){e.preventDefault(),e.stopPropagation()}),[]);return f.createElement("div",Object.assign({className:Object(_.a)("MuiDataGrid-columnSeparator",{"MuiDataGrid-columnSeparatorResizable":t,"Mui-resizing":n}),style:{minHeight:r,opacity:a?0:1}},i,{onClick:u}),f.createElement(s,{className:"MuiDataGrid-iconSeparator"}))})),Ri=f.memo((function(e){var t=e.column,n=e.open,r=e.columnMenuId,i=e.columnMenuButtonId,o=e.iconButtonRef,a=f.useContext(te),s=a.current.components.ColumnMenuIcon,u=f.useCallback((function(e){e.preventDefault(),e.stopPropagation(),a.current.toggleColumnMenu(t.field)}),[a,t.field]);return f.createElement("div",{className:Object(_.a)("MuiDataGrid-menuIcon",{"MuiDataGrid-menuOpen":n})},f.createElement(M.a,{ref:o,tabIndex:-1,className:"MuiDataGrid-menuIconButton","aria-label":a.current.getLocaleText("columnMenuLabel"),title:a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:u,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:i},f.createElement(s,{fontSize:"small"})))})),zi=function(e){return e.preferencePanel};function Li(e){var t=e.counter,n=f.useContext(te),r=n.current.components.ColumnFilteredIcon,i=f.useCallback((function(e){e.preventDefault(),e.stopPropagation();var t=zi(n.current.getState()),r=t.open,i=t.openedPanelValue;r&&i===Ii.filters?n.current.hideFilterPanel():n.current.showFilterPanel()}),[n]);if(!t)return null;var o=f.createElement(M.a,{onClick:i,color:"default","aria-label":n.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1},f.createElement(r,{className:"MuiDataGrid-filterIcon",fontSize:"small"}));return f.createElement(j.a,{title:n.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},f.createElement("div",{className:"MuiDataGrid-iconButtonContainer"},t>1&&f.createElement(P.a,{badgeContent:t,color:"default"},o),1===t&&o))}!function(e){e.filters="filters",e.columns="columns"}(Ii||(Ii={}));var Bi=Object(S.a)((function(e){return{root:{zIndex:e.zIndex.modal,"& .MuiDataGrid-gridMenuList":{outline:0}}}}),{name:"MuiDataGridMenu",defaultTheme:en()}),Ni={"bottom-start":"top left","bottom-end":"top right"},Vi=function(e){var t=e.open,n=e.target,r=e.onClickAway,i=e.children,o=e.position,a=re(e,["open","target","onClickAway","children","position"]),s=f.useRef(n),u=f.useRef(t),l=Bi();return f.useEffect((function(){u.current&&s.current&&s.current.focus(),u.current=t,s.current=n}),[t,n]),f.createElement(z.a,Object.assign({className:l.root,open:t,anchorEl:n,transition:!0,placement:o},a),(function(e){var t=e.TransitionProps,n=e.placement;return f.createElement(I.a,{onClickAway:r},f.createElement(F.a,Object.assign({},t,{style:{transformOrigin:Ni[n]}}),f.createElement(R.a,null,i)))}))};function Ui(e){var t=e.columnMenuId,n=e.columnMenuButtonId,r=e.ContentComponent,i=e.contentComponentProps,o=e.field,a=e.open,s=e.target,u=f.useContext(te),l=null==u?void 0:u.current.getColumn(o),c=f.useCallback((function(e){e.stopPropagation(),null==u||u.current.hideColumnMenu()}),[u]);return s?f.createElement(Vi,{placement:"bottom-"+("right"===l.align?"start":"end"),open:a,target:s,onClickAway:c},f.createElement(r,Object.assign({currentColumn:l,hideMenu:c,open:a,id:t,labelledby:n},i))):null}var Hi=f.memo((function(e){var t,n=e.column,r=e.columnMenuOpen,i=e.colIndex,o=e.headerHeight,a=e.isDragging,s=e.isResizing,u=e.sortDirection,l=e.sortIndex,c=e.options,p=e.filterItemsCounter,d=e.hasFocus,h=e.tabIndex,m=f.useContext(te),v=f.useRef(null),g=Object(y.a)(),b=Object(y.a)(),x=f.useRef(null),w=c.classes,E=c.disableColumnReorder,D=c.showColumnRightBorder,C=c.disableColumnResize,O=c.disableColumnMenu,S=c.disableColumnFilter,k=null!=u,A="number"===n.type,T=null;n.renderHeader&&m.current&&(T=n.renderHeader(m.current.getColumnHeaderParams(n.field)));var P,M=f.useCallback((function(e){return function(t){return m.current.publishEvent(e,m.current.getColumnHeaderParams(n.field),t)}}),[m,n.field]),j=f.useMemo((function(){return{onClick:M("columnHeaderClick"),onDoubleClick:M("columnHeaderDoubleClick"),onMouseOver:M("columnHeaderOver"),onMouseOut:M("columnHeaderOut"),onMouseEnter:M("columnHeaderEnter"),onMouseLeave:M("columnHeaderLeave"),onKeyDown:M("columnHeaderKeydown"),onFocus:M("columnHeaderFocus"),onBlur:M("columnHeaderBlur")}}),[M]),I=f.useMemo((function(){return{onDragStart:M("columnHeaderDragStart"),onDragEnter:M("columnHeaderDragEnter"),onDragOver:M("columnHeaderDragOver"),onDragEnd:M("columnHeaderDragEnd")}}),[M]),F=f.useMemo((function(){return{onMouseDown:M("columnSeparatorMouseDown")}}),[M]),R=Object(_.a)(n.headerClassName,"center"===n.headerAlign&&"MuiDataGrid-columnHeaderCenter","right"===n.headerAlign&&"MuiDataGrid-columnHeaderRight",{"MuiDataGrid-columnHeaderSortable":n.sortable,"MuiDataGrid-columnHeaderMoving":a,"MuiDataGrid-columnHeaderSorted":k,"MuiDataGrid-columnHeaderNumeric":A,"MuiDataGrid-withBorder":D},null==w?void 0:w.columnHeader),z=n.width;null!=u&&(P={"aria-sort":"asc"===u?"ascending":"descending"});var L=!O&&!n.disableColumnMenu&&f.createElement(Ri,{column:n,columnMenuId:g,columnMenuButtonId:b,open:r,iconButtonRef:x}),B=f.createElement(f.Fragment,null,!S&&f.createElement(Li,{counter:p}),n.sortable&&!n.hideSortIcons&&f.createElement(Pi,{direction:u,index:l}));return f.useLayoutEffect((function(){var e=m.current.getState().columnMenu;if(d&&!e.open){var t=v.current.querySelector('[tabindex="0"]');t?t.focus():v.current.focus()}})),f.createElement("div",Object.assign({ref:v,className:R,key:n.field,"data-field":n.field,style:{width:z,minWidth:z,maxWidth:z},role:"columnheader",tabIndex:h,"aria-colindex":i+1},P,j),f.createElement("div",Object.assign({className:"MuiDataGrid-columnHeader-draggable",draggable:!E},I),f.createElement("div",{className:"MuiDataGrid-columnHeaderTitleContainer"},T||f.createElement(ji,{label:n.headerName||n.field,description:n.description,columnWidth:z}),B),L),f.createElement(Fi,Object.assign({resizable:!C&&!!n.resizable,resizing:s,height:o},F)),f.createElement(Ui,{columnMenuId:g,columnMenuButtonId:b,field:n.field,open:r,target:x.current,ContentComponent:m.current.components.ColumnMenu,contentComponentProps:null===(t=m.current.componentsProps)||void 0===t?void 0:t.columnMenu}))})),Wi=function(e){return e.rendering},Gi=Object(T.a)(Wi,(function(e){return e.realScroll}));function qi(e,t,n,r){var i=xr("useGridApiEventHandler");f.useEffect((function(){if(n&&t)return e.current.subscribeEvent(t,n,r)}),[e,i,t,n,r])}var Yi={isFirst:!0};function Zi(e,t,n){qi(e,t,n,Yi)}var $i=f.memo((function(e){var t=e.scrollDirection,n=f.useRef(null),r=f.useContext(te),i=f.useRef(),o=f.useState(!1),a=Object(p.a)(o,2),s=a[0],u=a[1],l=f.useRef({left:0,top:0}),c=f.useCallback((function(e){l.current=e}),[]),d=f.useCallback((function(e){var o;if("left"===t)o=e.clientX-n.current.getBoundingClientRect().right;else{if("right"!==t)throw new Error("wrong dir");o=Math.max(1,e.clientX-n.current.getBoundingClientRect().left)}o=1.5*(o-1)+1,clearTimeout(i.current),i.current=setTimeout((function(){r.current.scroll({left:l.current.left+o,top:l.current.top})}))}),[t,r]);f.useEffect((function(){return function(){clearTimeout(i.current)}}),[]);var h=f.useCallback((function(){u((function(e){return!e}))}),[]);return qi(r,"rowsScroll",c),qi(r,"columnHeaderDragStart",h),qi(r,"columnHeaderDragEnd",h),s?f.createElement("div",{ref:n,className:Object(_.a)("MuiDataGrid-scrollArea","MuiDataGrid-scrollArea-"+t),onDragOver:d}):null})),Ki=Object(T.a)((function(e){return e.columnReorder}),(function(e){return e.dragCol})),Xi=Object(T.a)((function(e){return e.columnResize}),(function(e){return e.resizingColumnField})),Ji=function(e){return e.columnMenu};function Qi(e){var t=e.columns,n=f.useContext(te),r=Pr(n,Jr),i=Pr(n,pi),o=Pr(n,bi),a=Pr(n,Ki),s=Pr(n,Xi),u=Pr(n,wi),l=Pr(n,Wi).renderContext,c=Pr(n,Ci),p=Pr(n,Di),d=Pr(n,fr),h=Pr(n,Ji),m=t.map((function(e,t){var n,m=(n=t,null==l?n:n+l.firstColIdx),v=0===m,y=!(null===c&&null===p),g=null!==c&&c.field===e.field||v&&!y?0:-1,b=null!==u&&u.field===e.field,x=h.open&&h.field===e.field;return f.createElement(Hi,Object.assign({key:e.field},i[e.field],{columnMenuOpen:x,filterItemsCounter:o[e.field]&&o[e.field].length,options:r,headerHeight:d,isDragging:e.field===a,column:e,colIndex:m,isResizing:s===e.field,hasFocus:b,tabIndex:g}))}));return f.createElement(f.Fragment,null,m)}var eo=function(e){return e.scrollBar},to=f.forwardRef((function(e,t){var n,r=f.useContext(te),i=Pr(r,Rr),o=Pr(r,Wr),a=Pr(r,fr),s=Pr(r,Wi).renderContext,u=Pr(r,eo).hasScrollX,l=Pr(r,Ki),c=Object(_.a)("MuiDataGrid-columnHeaderWrapper",{scroll:u,"MuiDataGrid-columnHeader-dropZone":l}),p=f.useMemo((function(){return null==s?[]:i.slice(s.firstColIdx,s.lastColIdx+1)}),[i,s]);return f.createElement(f.Fragment,null,f.createElement($i,{scrollDirection:"left"}),f.createElement("div",{ref:t,className:c,"aria-rowindex":1,role:"row",style:{minWidth:null===(n=null==o?void 0:o.totalSizes)||void 0===n?void 0:n.width}},f.createElement(on,{width:null==s?void 0:s.leftEmptyWidth,height:a}),f.createElement(Qi,{columns:p}),f.createElement(on,{width:null==s?void 0:s.rightEmptyWidth,height:a})),f.createElement($i,{scrollDirection:"right"}))})),no=function(e){var t=e.onClick,n=f.useContext(te),r=Pr(n,Jr),i=f.useCallback((function(e){t(e),n.current.showPreferences(Ii.columns)}),[n,t]);return r.disableColumnSelector?null:f.createElement(L.a,{onClick:i},n.current.getLocaleText("columnMenuShowColumns"))},ro=function(e){var t=e.column,n=e.onClick,r=f.useContext(te),i=Pr(r,Jr),o=f.useCallback((function(e){n(e),r.current.showFilterPanel(null==t?void 0:t.field)}),[r,null==t?void 0:t.field,n]);return i.disableColumnFilter||!(null==t?void 0:t.filterable)?null:f.createElement(L.a,{onClick:o},r.current.getLocaleText("columnMenuFilter"))},io=f.forwardRef((function(e,t){var n=e.hideMenu,r=(e.currentColumn,e.open),i=e.id,o=e.labelledby,a=e.className,s=e.children,u=re(e,["hideMenu","currentColumn","open","id","labelledby","className","children"]),l=f.useCallback((function(e){vn(e.key)&&e.preventDefault(),Pn(e.key)&&n()}),[n]);return f.createElement(B.a,Object.assign({id:i,ref:t,className:Object(_.a)("MuiDataGrid-gridMenuList",a),"aria-labelledby":o,onKeyDown:l,autoFocus:r},u),s)})),oo=function(e){var t=e.column,n=e.onClick,r=f.useContext(te),i=Pr(r,Jr),o=f.useRef(),a=f.useCallback((function(e){n(e),o.current=setTimeout((function(){r.current.setColumnVisibility(null==t?void 0:t.field,!1)}),100)}),[r,null==t?void 0:t.field,n]);return f.useEffect((function(){return function(){return clearTimeout(o.current)}}),[]),i.disableColumnSelector?null:f.createElement(L.a,{onClick:a},r.current.getLocaleText("columnMenuHideColumn"))},ao=function(e){var t=e.column,n=e.onClick,r=f.useContext(te),i=Pr(r,ci),o=f.useMemo((function(){if(!t)return null;var e=i.find((function(e){return e.field===t.field}));return null==e?void 0:e.sort}),[t,i]),a=f.useCallback((function(e){n(e);var i=e.currentTarget.getAttribute("data-value")||null;null==r||r.current.sortColumn(t,i)}),[r,t,n]);return t&&t.sortable?f.createElement(f.Fragment,null,f.createElement(L.a,{onClick:a,disabled:null==o},r.current.getLocaleText("columnMenuUnsort")),f.createElement(L.a,{onClick:a,"data-value":"asc",disabled:"asc"===o},r.current.getLocaleText("columnMenuSortAsc")),f.createElement(L.a,{onClick:a,"data-value":"desc",disabled:"desc"===o},r.current.getLocaleText("columnMenuSortDesc"))):null},so=f.forwardRef((function(e,t){var n=e.hideMenu,r=e.currentColumn;return f.createElement(io,Object.assign({ref:t},e),f.createElement(ao,{onClick:n,column:r}),f.createElement(ro,{onClick:n,column:r}),f.createElement(oo,{onClick:n,column:r}),f.createElement(no,{onClick:n,column:r}))})),uo=Object(S.a)((function(){return{root:{display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400}}}),{name:"MuiDataGridPanelContent"});function lo(e){var t=uo(),n=e.className,r=re(e,["className"]);return f.createElement("div",Object.assign({className:Object(_.a)(t.root,n)},r))}var co=Object(S.a)((function(){return{root:{padding:4,display:"flex",justifyContent:"space-between"}}}),{name:"MuiDataGridPanelFooter"});function po(e){var t=co(),n=e.className,r=re(e,["className"]);return f.createElement("div",Object.assign({className:Object(_.a)(t.root,n)},r))}var fo=Object(S.a)((function(e){return{root:{padding:e.spacing(1)}}}),{name:"MuiDataGridPanelHeader",defaultTheme:en()});function ho(e){var t=fo(),n=e.className,r=re(e,["className"]);return f.createElement("div",Object.assign({className:Object(_.a)(t.root,n)},r))}var mo=Object(S.a)((function(){return{root:{display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}}}),{name:"MuiDataGridPanelWrapper"}),vo=function(){return!0};function yo(e){var t=mo(),n=e.className,r=re(e,["className"]);return f.createElement(H.a,{open:!0,disableEnforceFocus:!0,isEnabled:vo,getDoc:function(){return document}},f.createElement("div",Object.assign({tabIndex:-1,className:Object(_.a)(t.root,n)},r)))}var go=Object(S.a)({container:{padding:"8px 0px 8px 8px"},column:{display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},switch:{marginRight:4},dragIcon:{justifyContent:"flex-end"}},{name:"MuiDataGridColumnsPanel"});var bo=Object(S.a)((function(e){return{root:{zIndex:e.zIndex.modal},paper:{backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}}}),{name:"MuiDataGridPanel",defaultTheme:en()}),xo=f.forwardRef((function(e,t){var n,r,i,o=e.children,a=e.open,s=re(e,["children","open"]),u=bo(),l=f.useContext(te),c=f.useCallback((function(){l.current.hidePreferences()}),[l]),p=f.useCallback((function(e){hn(e.key)&&l.current.hidePreferences()}),[l]);return l.current&&(null===(n=l.current.columnHeadersElementRef)||void 0===n?void 0:n.current)&&(i=null===(r=null==l?void 0:l.current.columnHeadersElementRef)||void 0===r?void 0:r.current),i?f.createElement(z.a,Object.assign({ref:t,placement:"bottom-start",className:u.root,open:a,anchorEl:i,modifiers:Jt()?[{name:"flip",enabled:!1}]:{flip:{enabled:!1}}},s),f.createElement(I.a,{onClickAway:c},f.createElement(R.a,{className:u.paper,elevation:8,onKeyDown:p},o))):null})),_o=f.forwardRef((function(e,t){var n,r,i,o=f.useContext(te),a=Pr(o,Fr),s=Pr(o,Jr),u=Pr(o,zi),l=u.openedPanelValue===Ii.columns,c=!u.openedPanelValue||!l,p=o.current.components.ColumnsPanel,d=o.current.components.FilterPanel,h=o.current.components.Panel;return f.createElement(h,Object.assign({ref:t,open:a.length>0&&u.open},null===(n=null==o?void 0:o.current.componentsProps)||void 0===n?void 0:n.panel,e),!s.disableColumnSelector&&l&&f.createElement(p,Object.assign({},null===(r=null==o?void 0:o.current.componentsProps)||void 0===r?void 0:r.columnsPanel)),!s.disableColumnFilter&&c&&f.createElement(d,Object.assign({},null===(i=null==o?void 0:o.current.componentsProps)||void 0===i?void 0:i.filterPanel)))})),wo=Object(S.a)({root:{display:"flex",justifyContent:"space-around",padding:8},linkOperatorSelect:{width:60},columnSelect:{width:150},operatorSelect:{width:120},filterValueInput:{width:190},closeIcon:{flexShrink:0,justifyContent:"flex-end",marginRight:6,marginBottom:2}},{name:"MuiDataGridFilterForm"});function Eo(e){var t,n=e.item,r=e.hasMultipleFilters,i=e.deleteFilter,o=e.applyFilterChanges,a=e.multiFilterOperator,s=e.showMultiFilterOperators,u=e.disableMultiFilterOperator,l=e.applyMultiFilterOperatorChanges,c=wo(),h=f.useContext(te),m=Pr(h,Lr),v=Object(y.a)(),g=Object(y.a)(),b=Object(y.a)(),x=Object(y.a)(),_=Object(y.a)(),w=Object(y.a)(),E=f.useState((function(){return n.columnField?h.current.getColumn(n.columnField):null})),D=Object(p.a)(E,2),C=D[0],O=D[1],S=f.useState((function(){var e;return n.operatorValue&&C&&(null===(e=C.filterOperators)||void 0===e?void 0:e.find((function(e){return e.value===n.operatorValue})))||null})),k=Object(p.a)(S,2),A=k[0],T=k[1],P=f.useCallback((function(e){var t=e.target.value,r=h.current.getColumn(t),i=r.filterOperators[0];T(i),O(r),o(Object.assign(Object.assign({},n),{value:void 0,columnField:t,operatorValue:i.value}))}),[h,o,n]),j=f.useCallback((function(e){var t,r=e.target.value;o(Object.assign(Object.assign({},n),{operatorValue:r}));var i=(null===(t=C.filterOperators)||void 0===t?void 0:t.find((function(e){return e.value===r})))||null;T(i)}),[o,C,n]),I=f.useCallback((function(e){var t=e.target.value===Dr.And.toString()?Dr.And:Dr.Or;l(t)}),[l]),F=f.useCallback((function(){i(n)}),[i,n]);return f.createElement("div",{className:c.root},f.createElement(W.a,{variant:"standard",className:c.closeIcon},f.createElement(M.a,{"aria-label":h.current.getLocaleText("filterPanelDeleteIconLabel"),title:h.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:F,size:"small"},f.createElement(Un,{fontSize:"small"}))),f.createElement(W.a,{className:c.linkOperatorSelect,style:{display:r?"block":"none",visibility:s?"visible":"hidden"}},f.createElement(G.a,{htmlFor:v,id:g},h.current.getLocaleText("filterPanelOperators")),f.createElement(q.a,{labelId:g,id:v,value:a,onChange:I,disabled:!!u,native:!0},f.createElement("option",{key:Dr.And.toString(),value:Dr.And.toString()},h.current.getLocaleText("filterPanelOperatorAnd")),f.createElement("option",{key:Dr.Or.toString(),value:Dr.Or.toString()},h.current.getLocaleText("filterPanelOperatorOr")))),f.createElement(W.a,{variant:"standard",className:c.columnSelect},f.createElement(G.a,{htmlFor:b,id:x},h.current.getLocaleText("filterPanelColumns")),f.createElement(q.a,{labelId:x,id:b,value:n.columnField||"",onChange:P,native:!0},m.map((function(e){return f.createElement("option",{key:e.field,value:e.field},e.headerName||e.field)})))),f.createElement(W.a,{variant:"standard",className:c.operatorSelect},f.createElement(G.a,{htmlFor:_,id:w},h.current.getLocaleText("filterPanelOperators")),f.createElement(q.a,{labelId:w,id:_,value:n.operatorValue,onChange:j,native:!0},null===(t=null==C?void 0:C.filterOperators)||void 0===t?void 0:t.map((function(e){return f.createElement("option",{key:e.value,value:e.value},e.label||h.current.getLocaleText("filterOperator"+Object(d.a)(e.value)))})))),f.createElement(W.a,{variant:"standard",className:c.filterValueInput},C&&A&&f.createElement(A.InputComponent,Object.assign({apiRef:h,item:n,applyValue:o},A.InputComponentProps))))}var Do=f.forwardRef((function(e,t){var n=f.useContext(te),r=Pr(n,Jr),i=n.current.components.ColumnSelectorIcon,o=Pr(n,zi),a=o.open,s=o.openedPanelValue,u=f.useCallback((function(){a&&s===Ii.columns?n.current.hidePreferences():n.current.showPreferences(Ii.columns)}),[n,a,s]);return r.disableColumnSelector?null:f.createElement(V.a,Object.assign({ref:t,onClick:u,size:"small",color:"primary","aria-label":n.current.getLocaleText("toolbarColumnsLabel"),startIcon:f.createElement(i,null)},e),n.current.getLocaleText("toolbarColumns"))})),Co=f.forwardRef((function(e,t){var n=f.useContext(te),r=Pr(n,Jr),i=Pr(n,cr),o=Object(y.a)(),a=Object(y.a)(),s=f.useState(null),u=Object(p.a)(s,2),l=u[0],c=u[1],d=n.current.components.DensityCompactIcon,h=n.current.components.DensityStandardIcon,m=n.current.components.DensityComfortableIcon,v=[{icon:f.createElement(d,null),label:n.current.getLocaleText("toolbarDensityCompact"),value:wr.Compact},{icon:f.createElement(h,null),label:n.current.getLocaleText("toolbarDensityStandard"),value:wr.Standard},{icon:f.createElement(m,null),label:n.current.getLocaleText("toolbarDensityComfortable"),value:wr.Comfortable}],g=f.useCallback((function(){switch(i){case wr.Compact:return f.createElement(d,null);case wr.Comfortable:return f.createElement(m,null);default:return f.createElement(h,null)}}),[i,d,m,h]),b=function(){return c(null)};if(r.disableDensitySelector)return null;var x=v.map((function(e,t){return f.createElement(L.a,{key:t,onClick:function(){return t=e.value,n.current.setDensity(t),void c(null);var t},selected:e.value===i},f.createElement(Y.a,null,e.icon),e.label)}));return f.createElement(f.Fragment,null,f.createElement(V.a,Object.assign({ref:t,color:"primary",size:"small",startIcon:g(),onClick:function(e){return c(e.currentTarget)},"aria-label":n.current.getLocaleText("toolbarDensityLabel"),"aria-expanded":l?"true":void 0,"aria-haspopup":"menu","aria-labelledby":a,id:o},e),n.current.getLocaleText("toolbarDensity")),f.createElement(Vi,{open:Boolean(l),target:l,onClickAway:b,position:"bottom-start"},f.createElement(B.a,{id:a,className:"MuiDataGrid-gridMenuList","aria-labelledby":o,onKeyDown:function(e){vn(e.key)&&e.preventDefault(),Pn(e.key)&&b()},autoFocusItem:Boolean(l)},x)))})),Oo=Object(S.a)((function(e){return{list:{margin:e.spacing(1,1,.5),padding:e.spacing(0,1)}}}),{name:"MuiDataGridToolbarFilterButton",defaultTheme:en()}),So=f.forwardRef((function(e,t){var n=Oo(),r=f.useContext(te),i=Pr(r,Jr),o=Pr(r,gi),a=Pr(r,yi),s=Pr(r,Ir),u=Pr(r,zi),l=f.useMemo((function(){return u.open?r.current.getLocaleText("toolbarFiltersTooltipHide"):0===o?r.current.getLocaleText("toolbarFiltersTooltipShow"):f.createElement("div",null,r.current.getLocaleText("toolbarFiltersTooltipActive")(o),f.createElement("ul",{className:n.list},a.map((function(e){return Object.assign({},s[e.columnField]&&f.createElement("li",{key:e.id},"".concat(s[e.columnField].headerName||e.columnField,"\n ").concat(function(e){return s[e.columnField].filterOperators.find((function(t){return t.value===e.operatorValue})).label||r.current.getLocaleText("filterOperator"+Object(d.a)(e.operatorValue)).toString()}(e),"\n ").concat(e.value)))}))))}),[r,u.open,o,a,s,n]),c=f.useCallback((function(){var e=u.open,t=u.openedPanelValue;e&&t===Ii.filters?r.current.hideFilterPanel():r.current.showFilterPanel()}),[r,u]);if(i.disableColumnFilter)return null;var p=r.current.components.OpenFilterButtonIcon;return f.createElement(j.a,{title:l,enterDelay:1e3},f.createElement(V.a,Object.assign({ref:t},e,{onClick:c,size:"small",color:"primary","aria-label":r.current.getLocaleText("toolbarFiltersLabel"),startIcon:f.createElement(P.a,{badgeContent:o,color:"primary"},f.createElement(p,null))}),r.current.getLocaleText("toolbarFilters")))})),ko=f.forwardRef((function(e,t){var n=f.useContext(te),r=Object(y.a)(),i=Object(y.a)(),o=f.useState(null),a=Object(p.a)(o,2),s=a[0],u=a[1],l=n.current.components.ExportIcon,c=[{label:n.current.getLocaleText("toolbarExportCSV"),format:"csv"}],d=function(){return u(null)},h=c.map((function(e,t){return f.createElement(L.a,{key:t,onClick:function(){return"csv"===e.format&&n.current.exportDataAsCsv(),void u(null)}},e.label)}));return f.createElement(f.Fragment,null,f.createElement(V.a,Object.assign({ref:t,color:"primary",size:"small",startIcon:f.createElement(l,null),onClick:function(e){return u(e.currentTarget)},"aria-expanded":s?"true":void 0,"aria-haspopup":"menu","aria-labelledby":i,id:r},e),n.current.getLocaleText("toolbarExport")),f.createElement(Vi,{open:Boolean(s),target:s,onClickAway:d,position:"bottom-start"},f.createElement(B.a,{id:i,className:"MuiDataGrid-gridMenuList","aria-labelledby":r,onKeyDown:function(e){vn(e.key)&&e.preventDefault(),Pn(e.key)&&d()},autoFocusItem:Boolean(s)},h)))}));f.forwardRef((function(e,t){var n=Object(f.useContext)(te),r=Pr(n,Jr);return r.disableColumnFilter&&r.disableColumnSelector&&r.disableDensitySelector?null:f.createElement(ei,Object.assign({ref:t},e),f.createElement(Do,null),f.createElement(So,null),f.createElement(Co,null),f.createElement(ko,null))}));var Ao=f.forwardRef((function(e,t){var n=e.children,r=e.defaultHeight,i=void 0===r?null:r,o=e.defaultWidth,a=void 0===o?null:o,s=e.disableHeight,u=void 0!==s&&s,l=e.disableWidth,c=void 0!==l&&l,d=e.nonce,h=e.onResize,m=e.style,v=re(e,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"]),y=f.useState({height:i,width:a}),x=Object(p.a)(y,2),_=x[0],w=x[1],E=f.useRef(null),D=f.useRef(null),C=Wt((function(){if(D.current){var e=D.current.offsetHeight||0,t=D.current.offsetWidth||0,n=Object(b.a)(D.current).getComputedStyle(D.current),r=parseInt(n.paddingLeft,10)||0,i=parseInt(n.paddingRight,10)||0,o=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),a=t-r-i;(!u&&_.height!==o||!c&&_.width!==a)&&(w({height:o,width:a}),h&&h({height:o,width:a}))}}));Gt((function(){var e;if(D.current=E.current.parentElement,D){var t=Object(b.a)(null!==(e=D.current)&&void 0!==e?e:void 0),n=function(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},i=!1,o="",a="animationstart",s="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),l=document.createElement("fakeelement");if(void 0!==l.style.animationName&&(i=!0),!1===i)for(var c=0;c<s.length;c++)if(void 0!==l.style[s[c]+"AnimationName"]){o="-"+s[c].toLowerCase()+"-",a=u[c],i=!0;break}var p="@"+o+"keyframes resizeanim { from { opacity: 0; } to { opacity: 0; } } ",f=o+"animation: 1ms resizeanim; ";return{addResizeListener:function(i,o){if(!i.__resizeTriggers__){var s=i.ownerDocument,u=t.getComputedStyle(i);u&&"static"==u.position&&(i.style.position="relative"),function(t){if(!t.getElementById("muiDetectElementResize")){var n=(p||"")+".Mui-resizeTriggers { "+(f||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="muiDetectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="Mui-resizeTriggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),n(i),i.addEventListener("scroll",r,!0),a&&(i.__resizeTriggers__.__animationListener__=function(e){"resizeanim"==e.animationName&&n(i)},i.__resizeTriggers__.addEventListener(a,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(o)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(d,t);return n.addResizeListener(D.current,C),C(),function(){n.removeResizeListener(D.current,C)}}}),[d,C]);var O={overflow:"visible"},S={};u||(O.height=0,S.height=_.height),c||(O.width=0,S.width=_.width);var k=Object(g.a)(E,t);return f.createElement("div",Object.assign({ref:k,style:Object.assign(Object.assign({},O),m)},v),null===_.height&&null===_.width?null:n(S))})),To=function(e){return e.pagination},Po=f.forwardRef((function(e,t){var n=e.className,r=e.rowCount,i=re(e,["className","rowCount"]),o=f.useContext(te);return 0===r?null:f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-rowCount",n)},i),"".concat(o.current.getLocaleText("footerTotalRows")," ").concat(r.toLocaleString()))})),Mo=f.forwardRef((function(e,t){var n=e.className,r=e.selectedRowCount,i=re(e,["className","selectedRowCount"]),o=f.useContext(te).current.getLocaleText("footerRowSelected")(r);return f.createElement("div",Object.assign({ref:t,className:Object(_.a)("MuiDataGrid-selectedRowCount",n)},i),o)})),jo=f.forwardRef((function(e,t){var n,r=f.useContext(te),i=Pr(r,ii),o=Pr(r,Jr),a=Pr(r,Si),s=Pr(r,To),u=!o.hideFooterSelectedRowCount&&a>0?f.createElement(Mo,{selectedRowCount:a}):f.createElement("div",null),l=o.hideFooterRowCount||o.pagination?null:f.createElement(Po,{rowCount:i}),c=!!o.pagination&&null!=s.pageSize&&!o.hideFooterPagination&&(null==r?void 0:r.current.components.Pagination),p=c&&f.createElement(c,Object.assign({},null===(n=null==r?void 0:r.current.componentsProps)||void 0===n?void 0:n.pagination));return f.createElement(Kr,Object.assign({ref:t},e),u,l,p)})),Io=f.forwardRef((function(e,t){var n,r,i=f.useContext(te),o=null==i?void 0:i.current.components.PreferencesPanel,a=o&&f.createElement(o,Object.assign({},null===(n=null==i?void 0:i.current.componentsProps)||void 0===n?void 0:n.preferencesPanel)),s=null==i?void 0:i.current.components.Toolbar,u=s&&f.createElement(s,Object.assign({},null===(r=null==i?void 0:i.current.componentsProps)||void 0===r?void 0:r.toolbar));return f.createElement("div",Object.assign({ref:t},e),a,u)})),Fo=f.forwardRef((function(e,t){return f.createElement(Xr,Object.assign({ref:t},e),f.createElement(Z.a,null))})),Ro=f.forwardRef((function(e,t){var n=f.useContext(te).current.getLocaleText("noRowsLabel");return f.createElement(Xr,Object.assign({ref:t},e),n)})),zo=Object(S.a)((function(e){return{selectLabel:Object(l.a)({display:"none"},e.breakpoints.up("md"),{display:"block"}),caption:{"&[id]":Object(l.a)({display:"none"},e.breakpoints.up("md"),{display:"block"})},input:Object(l.a)({display:"none"},e.breakpoints.up("md"),{display:"inline-flex"})}}),{defaultTheme:en()}),Lo=f.forwardRef((function(e,t){var n=zo(),r=f.useContext(te),i=Pr(r,To),o=f.useMemo((function(){return Math.floor(i.rowCount/(i.pageSize||1))}),[i.rowCount,i.pageSize]),a=Pr(r,Jr),s=f.useCallback((function(e){var t=Number(e.target.value);r.current.setPageSize(t)}),[r]),u=f.useCallback((function(e,t){r.current.setPage(t)}),[r]);return f.createElement($.a,Object.assign({ref:t,classes:Object.assign(Object.assign({},Jt()?{selectLabel:n.selectLabel}:{caption:n.caption}),{input:n.input}),component:"div",count:i.rowCount,page:i.page<=o?i.page:o,rowsPerPageOptions:a.rowsPerPageOptions&&a.rowsPerPageOptions.indexOf(i.pageSize)>-1?a.rowsPerPageOptions:[],rowsPerPage:i.pageSize},Jt()?{onPageChange:u,onRowsPerPageChange:s}:{onChangePage:u,onChangeRowsPerPage:s},e))})),Bo=f.forwardRef((function(e,t){var n=e.height,r=e.width,i=e.children;return f.createElement("div",{ref:t,className:"MuiDataGrid-renderingZone",style:{maxHeight:n,width:r}},i)}));Bo.displayName="GridRenderingZone";var No=function(e){var t=e.selected,n=e.id,r=e.className,i=e.rowIndex,o=e.children,a=i+2,s=f.useContext(te),u=Pr(s,pr),l=Pr(s,Jr),c=l.classes,p=l.getRowClassName,d=f.useCallback((function(e){return function(t){t.currentTarget.contains(t.target)&&s.current.publishEvent(e,null==s?void 0:s.current.getRowParams(n),t)}}),[s,n]),h=f.useMemo((function(){return{onClick:d("rowClick"),onDoubleClick:d("rowDoubleClick"),onMouseOver:d("rowOver"),onMouseOut:d("rowOut"),onMouseEnter:d("rowEnter"),onMouseLeave:d("rowLeave")}}),[d]),m={maxHeight:u,minHeight:u},v=Kt(p)&&p(s.current.getRowParams(n)),y=Object(_.a)(r,v,null==c?void 0:c.row,{"Mui-selected":t});return f.createElement("div",Object.assign({key:n,"data-id":n,"data-rowindex":i,role:"row",className:y,"aria-rowindex":a,"aria-selected":t,style:m},h),o)};No.displayName="GridRow";var Vo,Uo=function(e){var t=e.height,n=e.width,r=e.children;return f.createElement("div",{className:"MuiDataGrid-viewport",style:{minWidth:n,maxWidth:n,maxHeight:t}},r)},Ho=function(e){return e.editRows},Wo=f.forwardRef((function(e,t){var n=f.useContext(te),r=Pr(n,Jr),i=Pr(n,Wr),o=Pr(n,Gr),a=Pr(n,qr),s=Pr(n,Rr),u=Pr(n,Wi),l=Pr(n,_i),c=Pr(n,Di),d=Pr(n,Oi),h=Pr(n,hi),m=Pr(n,pr),v=Pr(n,Ho);return f.createElement($r,null,f.createElement(Uo,Object.assign({},o),f.createElement(Bo,Object.assign({ref:t},(null==i?void 0:i.renderingZone)||{width:0,height:0}),null==u.renderContext?null:h.slice(u.renderContext.firstRowIdx,u.renderContext.lastRowIdx).map((function(e,t){var n,i=Object(p.a)(e,2),o=i[0],h=i[1];return f.createElement(No,{className:(u.renderContext.firstRowIdx+t)%2==0?"Mui-even":"Mui-odd",key:o,id:o,selected:void 0!==d[o],rowIndex:u.renderContext.firstRowIdx+t},f.createElement(on,{width:u.renderContext.leftEmptyWidth,height:m}),f.createElement(Mr,{columns:s,row:h,id:o,firstColIdx:u.renderContext.firstColIdx,lastColIdx:u.renderContext.lastColIdx,hasScrollX:a.hasScrollX,hasScrollY:a.hasScrollY,showCellRightBorder:!!r.showCellRightBorder,extendRowFullWidth:!r.disableExtendRowFullWidth,rowIndex:u.renderContext.firstRowIdx+t,cellFocus:l,cellTabIndex:c,isSelected:void 0!==d[o],editRowState:v[o],cellClassName:null===(n=r.classes)||void 0===n?void 0:n.cell,getCellClassName:r.getCellClassName}),f.createElement(on,{width:u.renderContext.rightEmptyWidth,height:m}))})))))}));Wo.displayName="GridViewport",function(e){e.NotFound="NotFound",e.Invalid="Invalid",e.Expired="Expired",e.Valid="Valid"}(Vo||(Vo={}));var Go=function(e){var t=e.licenseStatus;return t===Vo.Valid.toString()?null:f.createElement("div",{style:{position:"absolute",pointerEvents:"none",color:"#8282829e",zIndex:1e5,width:"100%",textAlign:"center",bottom:"50%",right:0,letterSpacing:5,fontSize:24}}," ",function(e){switch(e){case Vo.Expired.toString():return"Material-UI X License Expired";case Vo.Invalid.toString():return"Material-UI X Invalid License";case Vo.NotFound.toString():return"Material-UI X Unlicensed product";default:throw new Error("Material-UI: Unhandled license status.")}}(t)," ")};"undefined"!=typeof i&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"/modern",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_NAME:"localhost:8082"}).GRID_EXPERIMENTAL_ENABLED&&tn()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!=typeof i&&Object({NODE_ENV:"production",PUBLIC_URL:"/modern",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_URL_NAME:"localhost:8082"}).GRID_EXPERIMENTAL_ENABLED;var qo=function(e,t){return e.x<=t.x?"right":"left"};function Yo(e,t){var n=e.filter((function(e){return!!e.flex&&!e.hide})).length,r=0;n&&t&&e.forEach((function(e){e.hide||(e.flex?r+=e.flex:t-=e.width)}));var i=e;if(t>0&&n){var o=t/r;i=e.map((function(e){return Object.assign(Object.assign({},e),{width:e.flex?Math.floor(o*e.flex):e.width})}))}return i}function Zo(e,t){return e.debug("Building columns lookup"),t.reduce((function(e,t){return e[t.field]=t,e}),{})}function $o(e,t){var n=xr("useGridColumns"),r=Tr(t),i=Object(p.a)(r,3),o=i[0],a=i[1],s=i[2],u=Pr(t,zr),l=Pr(t,Fr),d=Pr(t,Rr),h=Pr(t,Jr),m=f.useCallback((function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.debug("Updating columns state."),a((function(t){return Object.assign(Object.assign({},t),{columns:e})})),s(),t.current&&r&&t.current.publishEvent("columnsUpdated",e.all)}),[n,a,s,t]),v=f.useCallback((function(e){return t.current.state.columns.lookup[e]}),[t]),y=f.useCallback((function(){return l}),[l]),g=f.useCallback((function(){return d}),[d]),b=f.useCallback((function(){return u}),[u]),x=f.useCallback((function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?d.findIndex((function(t){return t.field===e})):l.findIndex((function(t){return t.field===e}))}),[l,d]),_=f.useCallback((function(e){var t=x(e);return u.positions[t]}),[u.positions,x]),w=f.useCallback((function(e){n.debug("updating GridColumns with new state");var t=function(e,t){var n={all:Object(c.a)(e.all),lookup:Object.assign({},e.lookup)};return t.forEach((function(e){null==n.lookup[e.field]?(n.lookup[e.field]=e,n.all.push(e.field)):n.lookup[e.field]=Object.assign(Object.assign({},n.lookup[e.field]),e)})),n}(o.columns,e);m(t,!1)}),[n,o.columns,m]),E=f.useCallback((function(e){return w([e])}),[w]),D=f.useCallback((function(e,n){var r=v(e),i=Object.assign(Object.assign({},r),{hide:!n});w([i]),s(),t.current.publishEvent("columnVisibilityChange",{field:e,colDef:i,api:t,isVisible:n})}),[t,s,v,w]),C=f.useCallback((function(e,r){var i=o.columns.all.findIndex((function(t){return t===e}));if(i!==r){n.debug("Moving column ".concat(e," to index ").concat(r));var a={field:e,element:t.current.getColumnHeaderElement(e),colDef:t.current.getColumn(e),targetIndex:r,oldIndex:i,api:t.current};t.current.publishEvent("columnOrderChange",a);var s=Object(c.a)(o.columns.all);s.splice(r,0,s.splice(i,1)[0]),m(Object.assign(Object.assign({},o.columns),{all:s}))}}),[t,o.columns,n,m]),O=f.useCallback((function(e,r){n.debug("Updating column ".concat(e," width to ").concat(r));var i=t.current.getColumn(e);t.current.updateColumn(Object.assign(Object.assign({},i),{width:r})),t.current.publishEvent("columnResizeCommitted",{element:t.current.getColumnHeaderElement(e),colDef:i,api:t,width:r})}),[t,n]);_r(t,{getColumn:v,getAllColumns:y,getColumnIndex:x,getColumnPosition:_,getVisibleColumns:g,getColumnsMeta:b,updateColumn:E,updateColumns:w,setColumnVisibility:D,setColumnIndex:C,setColumnWidth:O},"ColApi"),f.useEffect((function(){if(n.info("GridColumns have changed, new length "+e.length),e.length>0){var r=Yo(function(e,t,n,r,i){r.debug("Hydrating GridColumns with default definitions");var o=function(e,t){var n=Object.assign(Object.assign({},e),t),r={};return Object.entries(n).forEach((function(e){var t=Object(p.a)(e,2),i=t[0],o=t[1];o=Object.assign(Object.assign({},n[o.extendType||"__default__"]),o),r[i]=o})),r}(ar(),t),a=e.map((function(e){return Object.assign(Object.assign({},function(e,t){return t?e[t]:e.__default__}(o,e.type)),e)}));if(n){var s=Object.assign({},Ti);return s.headerName=i("checkboxSelectionHeaderName"),[s].concat(Object(c.a)(a))}return a}(e,h.columnTypes,!!h.checkboxSelection,n,t.current.getLocaleText),t.current.getState().viewportSizes.width);m({all:r.map((function(e){return e.field})),lookup:Zo(n,r)})}else m({all:[],lookup:{}})}),[n,t,e,h.columnTypes,h.checkboxSelection,m]),f.useEffect((function(){n.debug("GridColumns gridState.viewportSizes.width, changed "+o.viewportSizes.width);var e=Yo(Fr(t.current.getState()),o.viewportSizes.width);t.current.updateColumns(e)}),[t,o.viewportSizes.width,n]),Zi(t,"columnVisibilityChange",h.onColumnVisibilityChange)}var Ko=Object(T.a)((function(e){return e.keyboard}),(function(e){return e.isMultipleKeyPressed})),Xo=function(e,t){var n=xr("useGridKeyboard"),r=Tr(t),i=Object(p.a)(r,3),o=i[1],a=i[2],s=Pr(t,Oi),u=f.useCallback((function(e){o((function(t){if(t.keyboard.isMultipleKeyPressed===e)return t;n.debug("Toggling keyboard multiple key pressed to "+e);var r=Object.assign(Object.assign({},t.keyboard),{isMultipleKeyPressed:e});return Object.assign(Object.assign({},t),{keyboard:r})}))&&a()}),[a,n,o]),l=f.useCallback((function(e,r){var i=cn(r.target,"MuiDataGrid-row"),o=Number(i.getAttribute("data-rowindex")),a=o,s=Object(c.a)(t.current.getSelectedRows().keys());if(s.length>0){var u=s.map((function(e){return t.current.getRowIndex(e)})),l=u.map((function(e){return Math.abs(o-e)})),p=Math.max.apply(Math,Object(c.a)(l));a=u[l.indexOf(p)]}t.current.publishEvent("cellNavigationKeyDown",e,r);var f=t.current.getState().focus.cell,d=t.current.getRowIndex(f.id),h=Array(Math.abs(d-a)+1).fill(d>a?a:d);n.debug("Selecting rows "),t.current.selectRows(h,!0,!0)}),[n,t]),d=f.useCallback((function(e){var t,n,r=function(e){return e?cn(e,"MuiDataGrid-row"):null}(e),i=function(e){return e.getAttribute("data-id")}(r);s[i]?null===(t=null===window||void 0===window?void 0:window.getSelection())||void 0===t||t.selectAllChildren(r):null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.selectAllChildren(e),document.execCommand("copy")}),[s]),h=f.useCallback((function(e){Sn(e.key)&&(n.debug("Multiple Select key pressed"),u(!0))}),[n,u]),m=f.useCallback((function(e){Sn(e.key)&&(n.debug("Multiple Select key released"),u(!1))}),[n,u]),v=f.useCallback((function(e){n.debug("Grid lost focus, releasing key press",e),u(!1)}),[n,u]),y=f.useCallback((function(e,n){if(function(e){return null!=e&&e.classList.contains("MuiDataGrid-cell")}(n.target)&&!n.isPropagationStopped()&&"edit"!==e.cellMode){if(yn(n.key)&&n.shiftKey)return n.preventDefault(),void t.current.selectRow(e.id);if(!An(n.key)||n.shiftKey)return An(n.key)&&n.shiftKey?(n.preventDefault(),void l(e,n)):void("c"!==n.key.toLowerCase()||!n.ctrlKey&&!n.metaKey?"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),t.current.selectRows(t.current.getAllRowIds(),!0)):d(n.target));t.current.publishEvent("cellNavigationKeyDown",e,n)}}),[t,l,d]),g=f.useCallback((function(e,n){pn(n.target)&&(n.isPropagationStopped()||(yn(n.key)&&pn(n.target)&&n.preventDefault(),!An(n.key)||yn(n.key)||n.shiftKey?mn(n.key)&&(n.ctrlKey||n.metaKey)&&t.current.toggleColumnMenu(e.field):t.current.publishEvent("columnHeaderNavigationKeydown",e,n)))}),[t]);qi(t,"keydown",h),qi(t,"cellKeydown",y),qi(t,"columnHeaderKeydown",g),qi(t,"keyup",m),qi(t,"gridFocusOut",v)};function Jo(e,t){var n=e.pageSize&&e.rowCount>0?Math.ceil(e.rowCount/e.pageSize):1;return Object.assign(Object.assign({},e),{pageCount:n,page:Math.min(n-1,void 0!==t?t:e.page)})}function Qo(e){var t=Pr(e,_i),n=Pr(e,Di),r=f.useCallback((function(t){return{field:t,colDef:e.current.getColumn(t),api:e.current}}),[e]),i=f.useCallback((function(t){return{id:t,columns:e.current.getAllColumns(),row:e.current.getRow(t),api:e.current,getValue:e.current.getCellValue}}),[e]),o=f.useCallback((function(r,i){var o=e.current.getRow(r);return{id:r,field:i,row:o,value:o[i],colDef:e.current.getColumn(i),cellMode:e.current.getCellMode(r,i),getValue:e.current.getCellValue,api:e.current,hasFocus:null!==t&&t.field===i&&t.id===r,tabIndex:n&&n.field===i&&n.id===r?0:-1}}),[e,t,n]),a=f.useCallback((function(t,n){var r=e.current.getColumn(n),i=e.current.getCellValue(t,n),a=o(t,n),s=Object.assign(Object.assign({},a),{value:i,formattedValue:i});return r.valueFormatter&&(s.formattedValue=r.valueFormatter(s)),s.isEditable=r&&e.current.isCellEditable(s),s}),[e,o]),s=f.useCallback((function(t,n){var r=e.current.getColumn(n);return r&&r.valueGetter?r.valueGetter(o(t,n)):e.current.getRow(t)[n]}),[e,o]),u=f.useCallback((function(t){return e.current.rootElementRef.current?function(e,t){return e.querySelector("[role='columnheader'][data-field='".concat(t,"']"))}(e.current.rootElementRef.current,t):null}),[e]),l=f.useCallback((function(t){return e.current.rootElementRef.current?dn(e.current.rootElementRef.current,t):null}),[e]),c=f.useCallback((function(t,n){return e.current.rootElementRef.current?function(e,t){var n=t.id,r=t.field,i=dn(e,n);return i?i.querySelector(".MuiDataGrid-cell[data-field='".concat(r,"']")):null}(e.current.rootElementRef.current,{id:t,field:n}):null}),[e]);_r(e,{getCellValue:s,getCellParams:a,getCellElement:c,getRowParams:i,getRowElement:l,getColumnHeaderParams:r,getColumnHeaderElement:u},"GridParamsApi")}function ea(e,t,n){var r=t?t(e):e.id;return function(e,t,n){if(null==e)throw new Error(["Material-UI: The data grid component requires all rows to have a unique id property.",n||"A row was provided without id in the rows prop:",JSON.stringify(t)].join("\n"))}(r,e,n),r}var ta=function(e,t,n){var r=xr("useGridRows"),i=Tr(e),o=Object(p.a)(i,3),a=o[0],s=o[1],u=o[2],l=f.useRef(),d=f.useCallback((function(e){null==l.current&&(l.current=setTimeout((function(){r.debug("Updating component"),l.current=null,e&&e(),u()}),100))}),[r,u]),h=f.useRef(a.rows);f.useEffect((function(){return function(){return clearTimeout(l.current)}}),[]),f.useEffect((function(){s((function(e){return h.current=function(e,t,n){var r=Object.assign(Object.assign({},{idRowsLookup:{},allRows:[],totalRowCount:0}),{totalRowCount:t&&t>e.length?t:e.length});return e.forEach((function(e){var t=ea(e,n);r.allRows.push(t),r.idRowsLookup[t]=e})),r}(t,e.options.rowCount,n),Object.assign(Object.assign({},e),{rows:h.current})}))}),[n,t,s]);var m=f.useCallback((function(t){return e.current.getSortedRowIds?e.current.getSortedRowIds().indexOf(t):e.current.state.rows.allRows.indexOf(t)}),[e]),v=f.useCallback((function(t){return e.current.getSortedRowIds?e.current.getSortedRowIds()[t]:e.current.state.rows.allRows[t]}),[e]),y=f.useCallback((function(t){return e.current.state.rows.idRowsLookup[t]}),[e]),g=f.useCallback((function(t){r.debug("updating all rows, new length "+t.length),h.current.allRows.length>0&&e.current.publishEvent("rowsCleared");var i=[],o=t.reduce((function(e,t){var r=ea(t,n);return e[r]=t,i.push(r),e}),{}),u=a.options&&a.options.rowCount&&a.options.rowCount>i.length?a.options.rowCount:i.length;h.current={idRowsLookup:o,allRows:i,totalRowCount:u},s((function(e){return Object.assign(Object.assign({},e),{rows:h.current})})),d((function(){return e.current.publishEvent("rowsSet")}))}),[r,a.options,s,d,e,n]),b=f.useCallback((function(t){var r=t.reduce((function(e,t){var r=ea(t,n,"A row was provided without id when calling updateRows():");return e[r]=null!=e[r]?Object.assign(Object.assign({},e[r]),t):t,e}),{}),i=[],o=[];if(Object.entries(r).forEach((function(e){var t=Object(p.a)(e,2),n=t[0],r=t[1];if("delete"!==r._action){var a=y(n);if(a){var s=Object.assign({},h.current.idRowsLookup);s[n]=Object.assign(Object.assign({},a),r),h.current.idRowsLookup=s}else i.push(r)}else o.push(n)})),s((function(e){return Object.assign(Object.assign({},e),{rows:Object.assign({},h.current)})})),o.length>0||i.length>0){o.forEach((function(e){delete h.current.idRowsLookup[e]}));var a=[].concat(Object(c.a)(Object.values(h.current.idRowsLookup)),i);g(a)}d((function(){return e.current.publishEvent("rowsUpdated")}))}),[e,d,y,n,s,g]),x=f.useCallback((function(){return new Map(e.current.state.rows.allRows.map((function(t){return[t,e.current.state.rows.idRowsLookup[t]]})))}),[e]),_=f.useCallback((function(){return e.current.state.rows.totalRowCount}),[e]),w=f.useCallback((function(){return e.current.state.rows.allRows}),[e]);_r(e,{getRowIndex:m,getRowIdFromRowIndex:v,getRow:y,getRowModels:x,getRowsCount:_,getAllRowIds:w,setRows:g,updateRows:b},"GridRowApi")};function na(e){var t=xr("useGridEditRows"),n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=Pr(e,Jr),s=f.useRef(null),u=f.useCallback((function(n,r,a){var u=!1;if(i((function(t){var i=t.editRows[n]&&t.editRows[n][r],o=Object.assign({},t.editRows);return"edit"===a&&i||"view"===a&&!i?t:("edit"===a?(o[n]=Object.assign({},o[n])||{},o[n][r]={value:e.current.getCellValue(n,r)},s.current=e.current.getCellParams(n,r)):(delete o[n][r],s.current=null,Object.keys(o[n]).length||delete o[n]),u=!0,Object.assign(Object.assign({},t),{editRows:o}))})),u){t.debug("Switching cell id: ".concat(n," field: ").concat(r," to mode: ").concat(a)),o(),e.current.publishEvent("cellModeChange",{id:n,field:r,mode:a,api:e.current});var l={api:e.current,model:e.current.getState().editRows};e.current.publishEvent("editRowModelChange",l)}}),[e,o,t,i]),l=f.useCallback((function(t,n){var r=e.current.getState().editRows;return r[t]&&r[t][n]?"edit":"view"}),[e]),c=f.useCallback((function(e){return e.colDef.editable&&e.colDef.renderEditCell&&(!a.isCellEditable||a.isCellEditable(e))}),[a.isCellEditable]),d=f.useCallback((function(n,r){if(!(null==r?void 0:r.isPropagationStopped())){var a=n.id,s=n.field,u=n.props;t.debug("Setting cell props on id: ".concat(a," field: ").concat(s)),i((function(e){var t=Object.assign({},e.editRows);return t[a]=Object.assign({},e.editRows[a]),t[a][s]=u,Object.assign(Object.assign({},e),{editRows:t})})),o();var l={api:e.current,model:e.current.getState().editRows};e.current.publishEvent("editRowModelChange",l)}}),[e,o,t,i]),h=f.useCallback((function(t,n){var r=e.current.getEditRowsModel();return r[t]&&r[t][n]?r[t][n]:{id:t,field:n,value:e.current.getCellValue(t,n)}}),[e]),m=f.useCallback((function(e){t.debug("Setting row model"),i((function(t){return Object.assign(Object.assign({},t),{editRows:e})})),o()}),[o,t,i]),v=f.useCallback((function(){return e.current.getState().editRows}),[e]),y=f.useCallback((function(t,n){return{id:t,field:n,props:e.current.getEditCellProps(t,n)}}),[e]),g=f.useCallback((function(n){var r;t.debug("Setting cell id: ".concat(n.id," field: ").concat(n.field," to value: ").concat(null===(r=n.value)||void 0===r?void 0:r.toString()));var i={id:n.id};i[n.field]=n.value,e.current.updateRows([i]),e.current.publishEvent("cellValueChange",n)}),[e,t]),b=f.useCallback((function(n,r){if(!(null==r?void 0:r.isPropagationStopped())){t.debug("Committing cell change on id: ".concat(n.id," field: ").concat(n.field));var i=n.props&&n.props.value;e.current.setCellValue({id:n.id,field:n.field,value:i})}}),[e,t]),x=f.useCallback((function(t,n){u(t.id,t.field,"view"),Tn(n)&&(kn(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):(hn(n.key)||_n(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e,u]),_=f.useCallback((function(t,n){if(t.isEditable&&!n.isPropagationStopped()){if(Tn(n)&&En(n.key)){var r=e.current.getEditCellPropsParams(t.id,t.field);r.props.value="",e.current.setEditCellProps(r)}u(t.id,t.field,"edit")}}),[e,u]),w=f.useCallback((function(e,t){var n=t.detail>1;e.isEditable&&"view"===e.cellMode&&n&&t.preventDefault()}),[]),E=f.useCallback((function(t,n){if(!n.isPropagationStopped()&&"view"!==t.cellMode){var r=e.current.getEditCellPropsParams(t.id,t.field);r.props.error||e.current.publishEvent("cellEditPropsChangeCommitted",r,n),e.current.publishEvent("cellEditExit",t,n)}}),[e]),D=f.useCallback((function(t,n){if(t.isEditable&&!n.isPropagationStopped()){var r="edit"===t.cellMode;if(!r&&function(e){return mn(e)||_n(e)||En(e)}(n.key)&&e.current.publishEvent("cellEditEnter",t,n),!r&&_n(n.key)){var i=e.current.getEditCellPropsParams(t.id,t.field);i.props.value="",e.current.publishEvent("cellEditPropsChangeCommitted",i,n),e.current.publishEvent("cellEditExit",t,n)}if(r&&kn(n.key)){var o=e.current.getEditCellPropsParams(t.id,t.field);if(o.props.error)return;e.current.publishEvent("cellEditPropsChangeCommitted",o,n)}r&&!n.isPropagationStopped()&&function(e){return Cn.indexOf(e)>-1}(n.key)&&e.current.publishEvent("cellEditExit",t,n)}}),[e]),C=f.useCallback((function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=e.current).publishEvent.apply(t,["cellEditEnter"].concat(r))}),[e]);qi(e,"cellKeydown",D),qi(e,"cellBlur",E),qi(e,"cellMouseDown",w),qi(e,"cellDoubleClick",C),qi(e,"cellEditEnter",_),qi(e,"cellEditExit",x),qi(e,"cellEditPropsChange",d),qi(e,"cellEditPropsChangeCommitted",b),Zi(e,"cellEditPropsChangeCommitted",a.onEditCellChangeCommitted),Zi(e,"cellEditPropsChange",a.onEditCellChange),Zi(e,"cellValueChange",a.onCellValueChange),Zi(e,"cellModeChange",a.onCellModeChange),Zi(e,"editRowModelChange",a.onEditRowModelChange),_r(e,{setCellMode:u,getCellMode:l,isCellEditable:c,setCellValue:g,commitCellChange:b,setEditCellProps:d,getEditCellProps:h,getEditCellPropsParams:y,setEditRowsModel:m,getEditRowsModel:v},"EditRowApi"),f.useEffect((function(){e.current.setEditRowsModel(a.editRowsModel||{})}),[e,a.editRowsModel])}var ra=function(e,t,n,r,i){var o=xr("useNativeEventListener"),a=f.useState(!1),s=Object(p.a)(a,2),u=s[0],l=s[1],c=f.useRef(r),d=f.useCallback((function(e){return c.current&&c.current(e)}),[]);f.useEffect((function(){c.current=r}),[r]),f.useEffect((function(){var r;if((r=Kt(t)?t():t&&t.current?t.current:null)&&d&&n&&!u){o.debug("Binding native ".concat(n," event")),r.addEventListener(n,d,i);var a=r;l(!0);e.current.subscribeEvent("unmount",(function(){o.debug("Clearing native ".concat(n," event")),a.removeEventListener(n,d,i)}))}}),[t,d,n,u,o,i,e])};var ia=function(e,t,n,r){var i,o=xr("useGridVirtualRows"),a=Tr(r),s=Object(p.a)(a,3),u=s[0],l=s[1],d=s[2],h=Pr(r,Jr),m=Pr(r,pr),v=Pr(r,To),y=Pr(r,ii),g=Pr(r,Rr),b=Pr(r,zr),_=function(e,t){var n=xr("useGridScrollFn"),r=f.useRef(),i=f.useMemo((function(){return Object(x.a)((function(){null!=e.current&&(e.current.style.pointerEvents="unset")}),300)}),[e]),o=f.useCallback((function(o){var a;o.left===(null===(a=r.current)||void 0===a?void 0:a.left)&&o.top===r.current.top||e&&e.current&&(n.debug("Moving ".concat(e.current.className," to: ").concat(o.left,"-").concat(o.top)),"none"!==e.current.style.pointerEvents&&(e.current.style.pointerEvents="none"),e.current.style.transform="translate3d(-".concat(o.left,"px, -").concat(o.top,"px, 0)"),t.current.style.transform="translate3d(-".concat(o.left,"px, 0, 0)"),i(),r.current=o)}),[e,n,t,i]);return f.useEffect((function(){return function(){i.clear()}}),[e,i]),[o]}(n,e),w=Object(p.a)(_,1)[0],E=function(e,t){var n=xr("useGridVirtualColumns"),r=f.useRef(null),i=f.useRef(null),o=f.useRef(0),a=Pr(t,zr),s=Pr(t,Nr),u=Pr(t,Rr),l=f.useCallback((function(e){var t=a.positions;if(!s)return-1;var n=Object(c.a)(t).reverse().findIndex((function(t){return e>=t}));return n=t.length-1-n}),[a.positions,s]),p=f.useCallback((function(e){return u.length?u[l(e)]:null}),[l,u]),d=f.useCallback((function(e){if(!i.current)return!1;var t=i.current.windowSizes.width,n=p(o.current),r=p(o.current+t),a=u.findIndex((function(e){return e.field===(null==n?void 0:n.field)}))+1,s=u.findIndex((function(e){return e.field===(null==r?void 0:r.field)}))-1;return e>=a&&e<=s}),[p,u]),h=f.useCallback((function(s,c){var f,d,h,m;if(!s)return!1;i.current=s;var v=s.windowSizes.width;o.current=c,n.debug("GridColumns from ".concat(null===(f=p(c))||void 0===f?void 0:f.field," to ").concat(null===(d=p(c+v))||void 0===d?void 0:d.field));var y=l(c),g=l(c+v),b=(null===(h=null==r?void 0:r.current)||void 0===h?void 0:h.firstColIdx)||0,x=(null===(m=null==r?void 0:r.current)||void 0===m?void 0:m.lastColIdx)||0,_=e.columnBuffer,w=_>1?_-1:_,E=Math.abs(y-w-b),D=Math.abs(g+w-x);n.debug("Column buffer: ".concat(_,", tolerance: ").concat(w)),n.debug("Previous values => first: ".concat(b,", last: ").concat(x)),n.debug("Current displayed values => first: ".concat(y,", last: ").concat(g)),n.debug("Difference with first: ".concat(E," and last: ").concat(D," "));var C=u.length>0?u.length-1:0,O=y-_>=0?y-_:0,S={leftEmptyWidth:a.positions[O],rightEmptyWidth:0,firstColIdx:O,lastColIdx:g+_>=C?C:g+_};return t.current.state.scrollBar.hasScrollX?S.rightEmptyWidth=a.totalWidth-a.positions[S.lastColIdx]-u[S.lastColIdx].width:e.disableExtendRowFullWidth||(S.rightEmptyWidth=t.current.state.viewportSizes.width-a.totalWidth),Ht(S,r.current)?(n.debug("No rendering needed on columns"),!1):(r.current=S,n.debug("New columns state to render",S),!0)}),[n,p,l,e.columnBuffer,e.disableExtendRowFullWidth,u,a.positions,a.totalWidth,t]);_r(t,{isColumnVisibleInWindow:d},"ColumnVirtualizationApi");var m=f.useCallback((function(){n.debug("Clearing previous renderedColRef"),r.current=null}),[n,r]);return qi(t,"columnsUpdated",m),qi(t,"resize",m),[r,h]}(h,r),D=Object(p.a)(E,2),C=D[0],O=D[1],S=f.useCallback((function(e){var t=!1;return l((function(n){var r=Object.assign(Object.assign({},n.rendering),e);return Ht(n.rendering,r)?n:(t=!0,Object.assign(Object.assign({},n),{rendering:r}))})),t}),[l]),k=f.useCallback((function(e){if(null==r.current.state.containerSizes)return null;var t=0;h.pagination&&null!=v.pageSize&&"client"===v.paginationMode&&(t=v.pageSize*v.page);var n=e*r.current.state.containerSizes.viewportPageSize+t,i=n+r.current.state.containerSizes.renderingZonePageSize,o=r.current.state.containerSizes.virtualRowsCount+t;return i>o&&(i=o),{page:e,firstRowIdx:n,lastRowIdx:i}}),[r,h.pagination,v.pageSize,v.paginationMode,v.page]),A=f.useCallback((function(){return null==r.current.state.containerSizes?null:Object.assign(Object.assign(Object.assign({},C.current),k(r.current.state.rendering.virtualPage)),{paginationCurrentPage:v.page,pageSize:v.pageSize})}),[C,k,r,v.page,v.pageSize]),T=f.useCallback((function(){var e=A();S({renderContext:e,renderedSizes:r.current.state.containerSizes})&&(o.debug("reRender: trigger rendering"),d())}),[r,A,o,d,S]),P=f.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=r.current.getState(),i=n.containerSizes;if(t&&t.current&&i){var a=n.scrollBar,s=t.current,u=s.scrollLeft,l=s.scrollTop;o.debug("Handling scroll Left: ".concat(u," Top: ").concat(l));var c=O(i,u),p=u,f=n.containerSizes.renderingZoneScrollHeight,d=n.rendering.virtualPage,h=f>0?Math.floor(l/f):0,m=l%f,y={left:a.hasScrollX?p:0,top:i.isVirtualized?m:l};i.isVirtualized&&d!==h?(S({virtualPage:h}),o.debug("Changing page from ".concat(d," to ").concat(h)),c=!0):(!i.isVirtualized&&d>0&&(o.debug("Virtualization disabled, setting virtualPage to 0"),S({virtualPage:0})),w(y)),S({renderingZoneScroll:y,realScroll:{left:t.current.scrollLeft,top:t.current.scrollTop}}),r.current.publishEvent("rowsScroll",y);var g=n.rendering.renderContext&&n.rendering.renderContext.paginationCurrentPage!==v.page;(e||c||g)&&T()}}),[r,o,v.page,T,w,S,O,t]),M=f.useCallback((function(e){if(0===y||0===g.length)return!1;o.debug("Scrolling to cell at row ".concat(e.rowIndex,", col: ").concat(e.colIndex," "));var n={},i=r.current.isColumnVisibleInWindow(e.colIndex);if(o.debug("Column ".concat(e.colIndex," is ").concat(i?"already":"not"," visible.")),!i){if(e.colIndex+1===b.positions.length){var a=g[e.colIndex].width;n.left=b.positions[e.colIndex]+a-u.containerSizes.windowSizes.width}else n.left=b.positions[e.colIndex+1]-u.containerSizes.windowSizes.width+u.scrollBar.scrollBarSize.y,o.debug("Scrolling to the right, scrollLeft: "+n.left);u.rendering.renderingZoneScroll.left>n.left&&(n.left=b.positions[e.colIndex],o.debug("Scrolling to the left, scrollLeft: "+n.left))}var s=!1,l=!1;if(e.rowIndex||0===e.rowIndex){var c=(h.pagination?e.rowIndex-v.page*v.pageSize:e.rowIndex)/u.containerSizes.viewportPageSize*u.viewportSizes.height,p=u.viewportSizes.height;s=t.current.scrollTop>c,l=t.current.scrollTop+p<c,s?(n.top=c,o.debug("Row is above, setting top to "+n.top)):l&&(n.top=c-p+m,o.debug("Row is below, setting top to "+n.top))}var f=!i||s||l;return f&&r.current.scroll(n),f}),[y,g,o,r,h.pagination,v.page,v.pageSize,u,t,b.positions,m]),j=f.useCallback((function(){w({left:0,top:0}),S({virtualPage:0}),t&&t.current&&(t.current.scrollTop=0,t.current.scrollLeft=0),S({renderingZoneScroll:{left:0,top:0}})}),[w,S,t]),I=f.useRef(null),F=f.useCallback((function(){t.current.scrollLeft<0||t.current.scrollTop<0||(I.current||l((function(e){return Object.assign(Object.assign({},e),{isScrolling:!0})})),clearTimeout(I.current),I.current=setTimeout((function(){I.current=null,l((function(e){return Object.assign(Object.assign({},e),{isScrolling:!1})})),d()}),300),r.current.updateViewport&&r.current.updateViewport())}),[t,r,l,d]),R=f.useCallback((function(n){t.current&&null!=n.left&&e.current&&(e.current.scrollLeft=n.left,t.current.scrollLeft=n.left,o.debug("Scrolling left: "+n.left)),t.current&&null!=n.top&&(t.current.scrollTop=n.top,o.debug("Scrolling top: "+n.top)),o.debug("Scrolling, updating container, and viewport")}),[t,e,o]),z=f.useCallback((function(){return Gi(r.current.getState())}),[r]),L=f.useCallback((function(){return u.containerSizes}),[u.containerSizes]),B=f.useCallback((function(){return u.rendering.renderContext||void 0}),[u.rendering.renderContext]);Gt((function(){n&&n.current&&(o.debug("applying scrollTop ",u.rendering.renderingZoneScroll.top),w(u.rendering.renderingZoneScroll))})),_r(r,{scroll:R,scrollToIndexes:M,getContainerPropsState:L,getRenderContextState:B,getScrollPosition:z,updateViewport:P},"GridVirtualizationApi"),f.useEffect((function(){var e;(null===(e=u.rendering.renderContext)||void 0===e?void 0:e.paginationCurrentPage)!==u.pagination.page&&r.current.updateViewport&&(o.debug("State pagination.page changed to ".concat(u.pagination.page,". ")),r.current.updateViewport(!0),j())}),[r,u.pagination.page,null===(i=u.rendering.renderContext)||void 0===i?void 0:i.paginationCurrentPage,o,j]),f.useEffect((function(){u.containerSizes!==u.rendering.renderedSizes&&r.current.updateViewport&&(o.debug("gridState.containerSizes updated, updating viewport. "),r.current.updateViewport(!0))}),[r,u.containerSizes,u.rendering.renderedSizes,o]),f.useEffect((function(){r.current.updateViewport&&(o.debug("totalRowCount has changed to ".concat(y,", updating viewport.")),r.current.updateViewport(!0))}),[o,y,u.viewportSizes,u.scrollBar,u.containerSizes,r]),f.useEffect((function(){return function(){clearTimeout(I.current)}}),[]);var N=f.useCallback((function(e){return o.debug("Using keyboard to navigate cells, converting scroll events "),e.target.scrollLeft=0,e.target.scrollTop=0,e.preventDefault(),e.stopPropagation(),!1}),[o]);ra(r,t,"scroll",F,{passive:!0}),ra(r,(function(){var e;return null===(e=n.current)||void 0===e?void 0:e.parentElement}),"scroll",N),ra(r,(function(){var t;return null===(t=e.current)||void 0===t?void 0:t.parentElement}),"scroll",N),qi(r,"resize",P)},oa=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"on",value:function(e,t,n){Array.isArray(this.events[e])||(this.events[e]=[]),n&&n.isFirst?this.events[e].splice(0,0,t):this.events[e].push(t)}}]),n}(function(){function e(){Object(o.a)(this,e),this.maxListeners=10,this.warnOnce=!1,this.events={}}return Object(a.a)(e,[{key:"on",value:function(e,t){Array.isArray(this.events[e])||(this.events[e]=[]),this.events[e].push(t)}},{key:"removeListener",value:function(e,t){if(Array.isArray(this.events[e])){var n=this.events[e].indexOf(t);n>-1&&this.events[e].splice(n,1)}}},{key:"removeAllListeners",value:function(e){e?Array.isArray(this.events[e])&&(this.events[e]=[]):this.events={}}},{key:"emit",value:function(e){if(Array.isArray(this.events[e])){for(var t=this.events[e].slice(),n=t.length,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(var a=0;a<n;a+=1)t[a].apply(this,i)}}},{key:"once",value:function(e,t){var n=this;this.on(e,(function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.removeListener(e,r),t.apply(n,o)}))}}]),e}());var aa=!1;function sa(){if(!aa){var e=document.createElement("div");e.style.touchAction="none",document.body.appendChild(e),aa="none"===window.getComputedStyle(e).touchAction,e.parentElement.removeChild(e)}return aa}function ua(e,t){if(void 0!==t&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}var la=f.forwardRef((function(e,t){var n=e.message,r=re(e,["message"]),i=f.useContext(te).current.getLocaleText("errorOverlayDefaultLabel");return f.createElement(Xr,Object.assign({ref:t},r),n||i)})),ca=f.forwardRef((function(e,t){var n=f.useContext(te).current.getLocaleText("noResultsOverlayLabel");return f.createElement(Xr,Object.assign({ref:t},e),n)})),pa=f.memo((function(e){var t=f.useContext(te),n=Pr(t,Jr),r="asc"===Object(p.a)(n.sortingOrder,1)[0]?null==t?void 0:t.current.components.ColumnSortedAscendingIcon:null==t?void 0:t.current.components.ColumnSortedDescendingIcon;return r?f.createElement(r,Object.assign({},e)):null})),fa={BooleanCellTrueIcon:Yn,BooleanCellFalseIcon:Un,OpenFilterButtonIcon:In,ColumnFilteredIcon:Fn,ColumnSelectorIcon:Rn,ColumnMenuIcon:Vn,ColumnUnsortedIcon:pa,ColumnSortedAscendingIcon:Mn,ColumnSortedDescendingIcon:jn,ColumnResizeIcon:zn,DensityCompactIcon:Ln,DensityStandardIcon:Bn,DensityComfortableIcon:Nn,ExportIcon:qn},da=Object.assign(Object.assign({},fa),{Checkbox:A.a,ColumnMenu:so,ColumnsPanel:function(){var e=go(),t=f.useContext(te),n=f.useRef(null),r=Pr(t,Fr),i=Pr(t,Jr).disableColumnReorder,o=f.useState(""),a=Object(p.a)(o,2),s=a[0],u=a[1],l=f.useCallback((function(e){var n=e.target.name,r=t.current.getColumn(n);t.current.setColumnVisibility(n,!!r.hide)}),[t]),c=f.useCallback((function(e){t.current.updateColumns(r.map((function(t){return t.hide=e,t})))}),[t,r]),d=f.useCallback((function(){return c(!1)}),[c]),h=f.useCallback((function(){return c(!0)}),[c]),m=f.useCallback((function(e){u(e.target.value)}),[]),v=f.useMemo((function(){return s?r.filter((function(e){return e.field.toLowerCase().indexOf(s.toLowerCase())>-1||e.headerName&&e.headerName.toLowerCase().indexOf(s.toLowerCase())>-1})):r}),[r,s]);return f.useEffect((function(){n.current.focus()}),[]),f.createElement(yo,null,f.createElement(ho,null,f.createElement(k.a,{label:t.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:t.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:n,value:s,onChange:m,variant:"standard",fullWidth:!0})),f.createElement(lo,null,f.createElement("div",{className:e.container},v.map((function(n){return f.createElement("div",{key:n.field,className:e.column},f.createElement(U.a,{control:f.createElement(N.a,{className:e.switch,checked:!n.hide,onClick:l,name:n.field,color:"primary",size:"small"}),label:n.headerName||n.field}),!i&&f.createElement(M.a,{draggable:!0,className:e.dragIcon,"aria-label":t.current.getLocaleText("columnsPanelDragIconLabel"),title:t.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0},f.createElement(Gn,null)))})))),f.createElement(po,null,f.createElement(V.a,{onClick:h,color:"primary"},t.current.getLocaleText("columnsPanelHideAllButton")),f.createElement(V.a,{onClick:d,color:"primary"},t.current.getLocaleText("columnsPanelShowAllButton"))))},ErrorOverlay:la,FilterPanel:function(){var e=f.useContext(te),t=Tr(e),n=Object(p.a)(t,1)[0],r=Pr(e,Jr).disableMultipleColumnsFiltering,i=f.useMemo((function(){return n.filter.items.length>1}),[n.filter.items.length]),o=f.useCallback((function(t){e.current.upsertFilter(t)}),[e]),a=f.useCallback((function(t){e.current.applyFilterLinkOperator(t)}),[e]),s=f.useCallback((function(){e.current.upsertFilter({})}),[e]),u=f.useCallback((function(t){e.current.deleteFilter(t)}),[e]);return f.useEffect((function(){0===n.filter.items.length&&s()}),[s,n.filter.items.length]),f.createElement(yo,null,f.createElement(lo,null,n.filter.items.map((function(e,t){return f.createElement(Eo,{key:e.id,item:e,applyFilterChanges:o,deleteFilter:u,hasMultipleFilters:i,showMultiFilterOperators:t>0,multiFilterOperator:n.filter.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:a})}))),!r&&f.createElement(po,null,f.createElement(V.a,{onClick:s,startIcon:f.createElement(Hn,null),color:"primary"},e.current.getLocaleText("filterPanelAddFilter"))))},Footer:jo,Header:Io,PreferencesPanel:_o,LoadingOverlay:Fo,NoResultsOverlay:ca,NoRowsOverlay:Ro,Pagination:Lo,Panel:xo});ur({noRowsLabel:"\u041d\u044f\u043c\u0430 \u0440\u0435\u0434\u043e\u0432\u0435",errorOverlayDefaultLabel:"\u0412\u044a\u0437\u043d\u0438\u043a\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430.",toolbarDensity:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityLabel:"\u0413\u044a\u0441\u0442\u043e\u0442\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430",toolbarColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",toolbarColumnsLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0438",toolbarFilters:"\u0424\u0438\u043b\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u0438\u0439 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",toolbarFiltersTooltipActive:function(e){return e+" \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438"},columnsPanelTextFieldLabel:"\u041d\u0430\u043c\u0435\u0440\u0438 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043b\u0430\u0432\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelDragIconLabel:"\u041f\u0440\u0435\u043d\u0430\u0440\u0435\u0434\u0438 \u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0412\u0441\u0438\u0447\u043a\u0438",columnsPanelHideAllButton:"\u0421\u043a\u0440\u0438\u0439 \u0412\u0441\u0438\u0447\u043a\u0438",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438 \u0424\u0438\u043b\u0442\u044a\u0440",filterPanelDeleteIconLabel:"\u0418\u0437\u0442\u0440\u0438\u0439",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u041a\u043e\u043b\u043e\u043d\u0438",filterOperatorContains:"\u0441\u044a\u0434\u044a\u0440\u0436\u0430",filterOperatorEquals:"\u0440\u0430\u0432\u043d\u043e",filterOperatorStartsWith:"\u0437\u0430\u043f\u043e\u0447\u0432\u0430 \u0441",filterOperatorEndsWith:"\u0437\u0430\u0432\u044a\u0440\u0448\u0432\u0430 \u0441",filterOperatorIs:"\u0435",filterOperatorNot:"\u043d\u0435 \u0435",filterOperatorAfter:"\u0435 \u0441\u043b\u0435\u0434",filterOperatorOnOrAfter:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u0441\u043b\u0435\u0434",filterOperatorBefore:"\u0435 \u043f\u0440\u0435\u0434\u0438",filterOperatorOnOrBefore:"\u0435 \u043d\u0430 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u0438",filterPanelInputLabel:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442",filterPanelInputPlaceholder:"\u0421\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043d\u0430 \u0444\u0438\u043b\u0442\u044a\u0440\u0430",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0436\u0438 \u043a\u043e\u043b\u043e\u043d\u0438\u0442\u0435",columnMenuFilter:"\u0424\u0438\u043b\u0442\u0440\u0438",columnMenuHideColumn:"\u0421\u043a\u0440\u0438\u0439",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0430\u043d\u0435\u0442\u043e",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u0432\u044a\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439 \u043f\u043e \u043d\u0438\u0437\u0445\u043e\u0434\u044f\u0449 \u0440\u0435\u0434",columnHeaderFiltersTooltipActive:function(e){return e+" \u0430\u043a\u0442\u0438\u0432\u043d\u0438 \u0444\u0438\u043b\u0442\u0440\u0438"},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0436\u0438 \u0424\u0438\u043b\u0442\u0440\u0438\u0442\u0435",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u0430\u0439",footerRowSelected:function(e){return 1!==e?e.toLocaleString()+" \u0438\u0437\u0431\u0440\u0430\u043d\u0438 \u0440\u0435\u0434\u043e\u0432\u0435":e.toLocaleString()+" \u0438\u0437\u0431\u0440\u0430\u043d \u0440\u0435\u0434"},footerTotalRows:"\u041e\u0431\u0449\u043e R\u0435\u0434\u043e\u0432\u0435:"},K.bgBG),ur({noRowsLabel:"\u017d\xe1dn\xe9 z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li se \u017eadn\xe9 v\xfdsledky.",errorOverlayDefaultLabel:"Stala sa nep\u0159edv\xeddan\xe1 chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xed",toolbarDensityStandard:"Standartn\xed",toolbarDensityComfortable:"Komfortn\xed",toolbarColumns:"Sloupce",toolbarColumnsLabel:"Vybrat sloupec",toolbarFilters:"Filtry",toolbarFiltersLabel:"Zobrazit filtry",toolbarFiltersTooltipHide:"Skr\xfdt filtry",toolbarFiltersTooltipShow:"Zobrazit filtry",toolbarFiltersTooltipActive:function(e){var t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),"".concat(e," ").concat(t)},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"St\xe1hnout jako CSV",columnsPanelTextFieldLabel:"Naj\xedt sloupec",columnsPanelTextFieldPlaceholder:"N\xe1zev sloupce",columnsPanelDragIconLabel:"Uspo\u0159\xe1dat sloupce",columnsPanelShowAllButton:"Zobrazit v\u0161e",columnsPanelHideAllButton:"Skr\xfdt v\u0161e",filterPanelAddFilter:"P\u0159idat filtr",filterPanelDeleteIconLabel:"Odstranit",filterPanelOperators:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Nebo",filterPanelColumns:"Sloupce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtru",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 se",filterOperatorStartsWith:"za\u010d\xedn\xe1 s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nen\xed",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na nebo po",filterOperatorBefore:"je p\u0159ed",filterOperatorOnOrBefore:"je na nebo d\u0159\xedve",filterValueAny:"jak\xfdkoliv",filterValueTrue:"ano",filterValueFalse:"ne",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazit sloupce",columnMenuFilter:"Filtr",columnMenuHideColumn:"Skr\xfdt",columnMenuUnsort:"Zru\u0161it filtry",columnMenuSortAsc:"Se\u0159adit vzestupn\u011b",columnMenuSortDesc:"Se\u0159adit sestupn\u011b",columnHeaderFiltersTooltipActive:function(e){var t="aktivn\xedch filtr\u016f";return e>1&&e<5?t="aktivn\xed filtry":1===e&&(t="aktivn\xed filtr"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"Zobrazit filtry",columnHeaderSortIconLabel:"Filtrovat",footerRowSelected:function(e){var t="vybran\xfdch z\xe1znam\u016f";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),"".concat(e," ").concat(t)},footerTotalRows:"Celkem \u0159\xe1dk\u016f:",checkboxSelectionHeaderName:"V\xfdb\u011br \u0159\xe1dku",booleanCellTrueLabel:"ano",booleanCellFalseLabel:"ne"},K.csCZ),ur({noRowsLabel:"Keine Eintr\xe4ge",noResultsOverlayLabel:"Keine Ergebnisse gefunden.",errorOverlayDefaultLabel:"Ein unerwarteter Fehler ist aufgetreten.",toolbarDensity:"Zeilenh\xf6he",toolbarDensityLabel:"Zeilenh\xf6he",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Breit",toolbarColumns:"Spalten",toolbarColumnsLabel:"Zeige Spaltenauswahl",toolbarFilters:"Filter",toolbarFiltersLabel:"Zeige Filter",toolbarFiltersTooltipHide:"Verberge Filter",toolbarFiltersTooltipShow:"Zeige Filter",toolbarFiltersTooltipActive:function(e){return 1!==e?e+" aktive Filter":e+" aktiver Filter"},columnsPanelTextFieldLabel:"Finde Spalte",columnsPanelTextFieldPlaceholder:"Spalten\xfcberschrift",columnsPanelDragIconLabel:"Spalte umsortieren",columnsPanelShowAllButton:"Zeige alle",columnsPanelHideAllButton:"Verberge alle",filterPanelAddFilter:"Filter hinzuf\xfcgen",filterPanelDeleteIconLabel:"L\xf6schen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"Und",filterPanelOperatorOr:"Oder",filterPanelColumns:"Spalten",filterPanelInputLabel:"Wert",filterPanelInputPlaceholder:"Wert filtern",filterOperatorContains:"beinhaltet",filterOperatorEquals:"ist gleich",filterOperatorStartsWith:"beginnt mit",filterOperatorEndsWith:"endet mit",filterOperatorIs:"ist",filterOperatorNot:"ist nicht",filterOperatorOnOrAfter:"ist an oder nach",filterOperatorBefore:"ist vor",filterOperatorOnOrBefore:"ist an oder vor",filterOperatorAfter:"ist nach",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"Zeige alle Spalten",columnMenuFilter:"Filter",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Sortierung deaktivieren",columnMenuSortAsc:"Sortiere aufsteigend",columnMenuSortDesc:"Sortiere absteigend",columnHeaderFiltersTooltipActive:function(e){return 1!==e?e+" aktive Filter":e+" aktiver Filter"},columnHeaderFiltersLabel:"Zeige Filter",columnHeaderSortIconLabel:"Sortieren",footerRowSelected:function(e){return 1!==e?e.toLocaleString()+" Eintr\xe4ge ausgew\xe4hlt":e.toLocaleString()+" Eintrag ausgew\xe4hlt"},footerTotalRows:"Gesamt:"},K.deDE),ur({noRowsLabel:"\u0394\u03b5\u03bd \u03c5\u03c0\u03ac\u03c1\u03c7\u03bf\u03c5\u03bd \u03ba\u03b1\u03c4\u03b1\u03c7\u03c9\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2",errorOverlayDefaultLabel:"\u03a0\u03b1\u03c1\u03bf\u03c5\u03c3\u03b9\u03ac\u03c3\u03c4\u03b7\u03ba\u03b5 \u03b1\u03c0\u03c1\u03cc\u03b2\u03bb\u03b5\u03c0\u03c4\u03bf \u03c3\u03c6\u03ac\u03bb\u03bc\u03b1.",toolbarDensity:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityLabel:"\u038e\u03c8\u03bf\u03c2 \u03c3\u03b5\u03b9\u03c1\u03ac\u03c2",toolbarDensityCompact:"\u03a3\u03c5\u03bc\u03c0\u03b1\u03b3\u03ae\u03c2",toolbarDensityStandard:"\u03a0\u03c1\u03bf\u03ba\u03b1\u03b8\u03bf\u03c1\u03b9\u03c3\u03bc\u03ad\u03bd\u03bf",toolbarDensityComfortable:"\u03a0\u03bb\u03b1\u03c4\u03cd",toolbarColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarColumnsLabel:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03c3\u03c4\u03ae\u03bb\u03b5\u03c2",toolbarFilters:"\u03a6\u03af\u03bb\u03c4\u03c1\u03b1",toolbarFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipHide:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipShow:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",toolbarFiltersTooltipActive:function(e){return 1!==e?e+" \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1":e+" \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf"},toolbarExport:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportLabel:"\u0395\u03be\u03b1\u03b3\u03c9\u03b3\u03ae",toolbarExportCSV:"\u039b\u03ae\u03c8\u03b7 \u03c9\u03c2 CSV",columnsPanelTextFieldLabel:"\u0395\u03cd\u03c1\u03b5\u03c3\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelTextFieldPlaceholder:"\u0395\u03c0\u03b9\u03ba\u03b5\u03c6\u03b1\u03bb\u03af\u03b4\u03b1 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelDragIconLabel:"\u0391\u03bd\u03b1\u03b4\u03b9\u03ac\u03c4\u03b1\u03be\u03b7 \u03c3\u03c4\u03ae\u03bb\u03b7\u03c2",columnsPanelShowAllButton:"\u03a0\u03c1\u03bf\u03b2\u03bf\u03bb\u03ae \u03cc\u03bb\u03c9\u03bd",columnsPanelHideAllButton:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7 \u03cc\u03bb\u03c9\u03bd",filterPanelAddFilter:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterPanelDeleteIconLabel:"\u0394\u03b9\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae",filterPanelOperators:"\u03a4\u03b5\u03bb\u03b5\u03c3\u03c4\u03ad\u03c2",filterPanelOperatorAnd:"\u039a\u03b1\u03af",filterPanelOperatorOr:"\u0389",filterPanelColumns:"\u03a3\u03c4\u03ae\u03bb\u03b5\u03c2",filterPanelInputLabel:"\u03a4\u03b9\u03bc\u03ae",filterPanelInputPlaceholder:"\u03a4\u03b9\u03bc\u03ae \u03c6\u03af\u03bb\u03c4\u03c1\u03bf\u03c5",filterOperatorContains:"\u03c0\u03b5\u03c1\u03b9\u03ad\u03c7\u03b5\u03b9",filterOperatorEquals:"\u03b9\u03c3\u03bf\u03cd\u03c4\u03b1\u03b9",filterOperatorStartsWith:"\u03be\u03b5\u03ba\u03b9\u03bd\u03ac\u03b5\u03b9 \u03bc\u03b5",filterOperatorEndsWith:"\u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03bd\u03b5\u03b9 \u03bc\u03b5",filterOperatorIs:"\u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorNot:"\u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9",filterOperatorAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03b5\u03c4\u03ac",filterOperatorOnOrAfter:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03bc\u03b5\u03c4\u03ac",filterOperatorBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03b9\u03bd",filterOperatorOnOrBefore:"\u03b5\u03af\u03bd\u03b1\u03b9 \u03af\u03c3\u03bf \u03ae \u03c0\u03c1\u03b9\u03bd",columnMenuLabel:"\u039c\u03b5\u03bd\u03bf\u03cd",columnMenuShowColumns:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c3\u03c4\u03b7\u03bb\u03ce\u03bd",columnMenuFilter:"\u03a6\u03af\u03bb\u03c4\u03c1\u03bf",columnMenuHideColumn:"\u0391\u03c0\u03cc\u03ba\u03c1\u03c5\u03c8\u03b7",columnMenuUnsort:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7\u03c2",columnMenuSortAsc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03b1\u03cd\u03be\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnMenuSortDesc:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7 \u03c3\u03b5 \u03c6\u03b8\u03af\u03bd\u03bf\u03c5\u03c3\u03b1 \u03c3\u03b5\u03b9\u03c1\u03ac",columnHeaderFiltersTooltipActive:function(e){return 1!==e?e+" \u03b5\u03bd\u03b5\u03c1\u03b3\u03ac \u03c6\u03af\u03bb\u03c4\u03c1\u03b1":e+" \u03b5\u03bd\u03b5\u03c1\u03b3\u03cc \u03c6\u03af\u03bb\u03c4\u03c1\u03bf"},columnHeaderFiltersLabel:"\u0395\u03bc\u03c6\u03ac\u03bd\u03b9\u03c3\u03b7 \u03c6\u03af\u03bb\u03c4\u03c1\u03c9\u03bd",columnHeaderSortIconLabel:"\u03a4\u03b1\u03be\u03b9\u03bd\u03cc\u03bc\u03b7\u03c3\u03b7",footerRowSelected:function(e){return 1!==e?e.toLocaleString()+" \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b5\u03c2 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ad\u03c2":e.toLocaleString()+" \u03b5\u03c0\u03b9\u03bb\u03b5\u03b3\u03bc\u03ad\u03bd\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae"},footerTotalRows:"\u03a3\u03cd\u03bd\u03bf\u03bb\u03bf \u0393\u03c1\u03b1\u03bc\u03bc\u03ce\u03bd:"}),ur(Er,K.enUS),ur({noRowsLabel:"Sin filas",errorOverlayDefaultLabel:"Ha ocurrido un error.",toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comoda",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarFiltersTooltipActive:function(e){return e>1?e+" filtros activos":e+" filtro activo"},toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",columnsPanelTextFieldLabel:"Columna de b\xfasqueda",columnsPanelTextFieldPlaceholder:"T\xedtulo de columna",columnsPanelDragIconLabel:"Reorder columna",columnsPanelShowAllButton:"Mostrar todo",columnsPanelHideAllButton:"Ocultar todo",filterPanelAddFilter:"Agregar filtro",filterPanelDeleteIconLabel:"Borrar",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor de filtro",filterOperatorContains:"contiene",filterOperatorEquals:"es igual",filterOperatorStartsWith:"comienza con",filterOperatorEndsWith:"termina con",filterOperatorIs:"es",filterOperatorNot:"no es",filterOperatorAfter:"es posterior",filterOperatorOnOrAfter:"es en o posterior",filterOperatorBefore:"es anterior",filterOperatorOnOrBefore:"es en o anterior",columnMenuLabel:"Men\xfa",columnMenuShowColumns:"Mostrar columnas",columnMenuFilter:"Filtro",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desordenar",columnMenuSortAsc:"Ordenar ASC",columnMenuSortDesc:"Ordenar DESC",columnHeaderFiltersTooltipActive:function(e){return e>1?e+" filtros activos":e+" filtro activo"},columnHeaderFiltersLabel:"Mostrar filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:function(e){return e>1?e.toLocaleString()+" filas seleccionadas":e.toLocaleString()+" fila seleccionada"},footerTotalRows:"Filas Totales:"},K.esES),ur({noRowsLabel:"Pas de r\xe9sultats",noResultsOverlayLabel:"Aucun r\xe9sultat.",errorOverlayDefaultLabel:"Une erreur est apparue.",toolbarDensity:"Densit\xe9",toolbarDensityLabel:"Densit\xe9",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonnes",toolbarColumnsLabel:"Choisir les colonnes",toolbarFilters:"Filtres",toolbarFiltersLabel:"Afficher les filtres",toolbarFiltersTooltipHide:"Cacher les filtres",toolbarFiltersTooltipShow:"Afficher les filtres",toolbarFiltersTooltipActive:function(e){return e>1?e+" filtres actifs":e+" filtre actif"},columnsPanelTextFieldLabel:"Chercher colonne",columnsPanelTextFieldPlaceholder:"Titre de la colonne",columnsPanelDragIconLabel:"R\xe9organiser la colonne",columnsPanelShowAllButton:"Tout afficher",columnsPanelHideAllButton:"Tout cacher",filterPanelAddFilter:"Ajouter un filtre",filterPanelDeleteIconLabel:"Supprimer",filterPanelOperators:"Op\xe9rateurs",filterPanelOperatorAnd:"Et",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colonnes",filterPanelInputLabel:"Valeur",filterPanelInputPlaceholder:"Filtrer la valeur",filterOperatorContains:"contient",filterOperatorEquals:"\xe9gal \xe0",filterOperatorStartsWith:"commence par",filterOperatorEndsWith:"se termine par",filterOperatorIs:"est",filterOperatorNot:"n'est pas",filterOperatorOnOrAfter:"\xe9gal ou post\xe9rieur",filterOperatorAfter:"post\xe9rieur",filterOperatorOnOrBefore:"\xe9gal ou post\xe9rieur",filterOperatorBefore:"ant\xe9rieur",columnMenuLabel:"Menu",columnMenuShowColumns:"Afficher les colonnes",columnMenuFilter:"Filtrer",columnMenuHideColumn:"Cacher",columnMenuUnsort:"Annuler le tri",columnMenuSortAsc:"Tri ascendant",columnMenuSortDesc:"Tri descendant",columnHeaderFiltersTooltipActive:function(e){return e>1?e+" filtres actifs":e+" filtre actif"},columnHeaderFiltersLabel:"Afficher les filtres",columnHeaderSortIconLabel:"Trier",footerRowSelected:function(e){return e>1?e.toLocaleString()+" lignes s\xe9lectionn\xe9es":e.toLocaleString()+" ligne s\xe9lectionn\xe9e"},footerTotalRows:"Lignes totales :",checkboxSelectionHeaderName:"S\xe9lection"},K.frFR),ur({noRowsLabel:"Nessun record",noResultsOverlayLabel:"Nessun record trovato.",errorOverlayDefaultLabel:"Si \xe8 verificato un errore.",toolbarDensity:"Densit\xe0",toolbarDensityLabel:"Densit\xe0",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Confortable",toolbarColumns:"Colonne",toolbarColumnsLabel:"Seleziona le colonne",toolbarFilters:"Filtri",toolbarFiltersLabel:"Mostra i filtri",toolbarFiltersTooltipHide:"Nascondi i filtri",toolbarFiltersTooltipShow:"Mostra i filtri",toolbarFiltersTooltipActive:function(e){return e>1?e+" filtri attivi":e+" filtro attivo"},columnsPanelTextFieldLabel:"Cerca colonna",columnsPanelTextFieldPlaceholder:"Titolo della colonna",columnsPanelDragIconLabel:"Riordina la colonna",columnsPanelShowAllButton:"Mostra tutto",columnsPanelHideAllButton:"Nascondi tutto",filterPanelAddFilter:"Aggiungi un filtro",filterPanelDeleteIconLabel:"Rimuovi",filterPanelOperators:"Operatori",filterPanelOperatorAnd:"E (and)",filterPanelOperatorOr:"O (or)",filterPanelColumns:"Colonne",filterPanelInputLabel:"Valore",filterPanelInputPlaceholder:"Filtra il valore",filterOperatorContains:"contiene",filterOperatorEquals:"uguale a",filterOperatorStartsWith:"comincia per",filterOperatorEndsWith:"termina per",filterOperatorIs:"uguale a",filterOperatorNot:"diversa da",filterOperatorOnOrAfter:"a partire dal",filterOperatorAfter:"dopo il",filterOperatorOnOrBefore:"fino al",filterOperatorBefore:"prima del",columnMenuLabel:"Menu",columnMenuShowColumns:"Mostra le colonne",columnMenuFilter:"Filtra",columnMenuHideColumn:"Nascondi",columnMenuUnsort:"Annulla l'ordinamento",columnMenuSortAsc:"Ordinamento crescente",columnMenuSortDesc:"Ordinamento decrescente",columnHeaderFiltersTooltipActive:function(e){return e>1?e+" filtri attivi":e+" filtro attivo"},columnHeaderFiltersLabel:"Mostra i filtri",columnHeaderSortIconLabel:"Ordina",footerRowSelected:function(e){return e>1?e.toLocaleString()+" record selezionati":e.toLocaleString()+" record selezionato"},footerTotalRows:"Record totali :",checkboxSelectionHeaderName:"Seleziona"},K.itIT),ur({noRowsLabel:"\u884c\u304c\u3042\u308a\u307e\u305b\u3093",errorOverlayDefaultLabel:"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",toolbarDensity:"\u884c\u9593\u9694",toolbarDensityLabel:"\u884c\u9593\u9694",toolbarDensityCompact:"\u30b3\u30f3\u30d1\u30af\u30c8",toolbarDensityStandard:"\u6a19\u6e96",toolbarDensityComfortable:"\u3072\u308d\u3081",toolbarColumns:"\u5217\u4e00\u89a7",toolbarColumnsLabel:"\u5217\u9078\u629e",toolbarFilters:"\u30d5\u30a3\u30eb\u30bf\u30fc",toolbarFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipHide:"\u30d5\u30a3\u30eb\u30bf\u30fc\u975e\u8868\u793a",toolbarFiltersTooltipShow:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",toolbarFiltersTooltipActive:function(e){return e+"\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d"},toolbarExport:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportLabel:"\u30a8\u30af\u30b9\u30dd\u30fc\u30c8",toolbarExportCSV:"CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",columnsPanelTextFieldLabel:"\u5217\u691c\u7d22",columnsPanelTextFieldPlaceholder:"\u691c\u7d22\u30af\u30a8\u30ea\u3092\u5165\u529b...",columnsPanelDragIconLabel:"\u5217\u4e26\u3079\u66ff\u3048",columnsPanelShowAllButton:"\u3059\u3079\u3066\u8868\u793a",columnsPanelHideAllButton:"\u3059\u3079\u3066\u975e\u8868\u793a",filterPanelAddFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8ffd\u52a0",filterPanelDeleteIconLabel:"\u524a\u9664",filterPanelOperators:"\u30aa\u30da\u30ec\u30fc\u30bf",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"\u5217",filterPanelInputLabel:"\u5024",filterPanelInputPlaceholder:"\u5024\u3092\u5165\u529b...",filterOperatorContains:"...\u3092\u542b\u3080",filterOperatorEquals:"...\u306b\u7b49\u3057\u3044",filterOperatorStartsWith:"...\u3067\u59cb\u307e\u308b",filterOperatorEndsWith:"...\u3067\u7d42\u308f\u308b",filterOperatorIs:"...\u3067\u3042\u308b",filterOperatorNot:"...\u3067\u306a\u3044",filterOperatorAfter:"...\u3088\u308a\u5f8c\u308d",filterOperatorOnOrAfter:"...\u4ee5\u964d",filterOperatorBefore:"...\u3088\u308a\u524d",filterOperatorOnOrBefore:"...\u4ee5\u524d",columnMenuLabel:"\u30e1\u30cb\u30e5\u30fc",columnMenuShowColumns:"\u5217\u8868\u793a",columnMenuFilter:"\u30d5\u30a3\u30eb\u30bf\u30fc",columnMenuHideColumn:"\u5217\u975e\u8868\u793a",columnMenuUnsort:"\u30bd\u30fc\u30c8\u89e3\u9664",columnMenuSortAsc:"\u6607\u9806\u30bd\u30fc\u30c8",columnMenuSortDesc:"\u964d\u9806\u30bd\u30fc\u30c8",columnHeaderFiltersTooltipActive:function(e){return e+"\u4ef6\u306e\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u9069\u7528\u4e2d"},columnHeaderFiltersLabel:"\u30d5\u30a3\u30eb\u30bf\u30fc\u8868\u793a",columnHeaderSortIconLabel:"\u30bd\u30fc\u30c8",footerRowSelected:function(e){return e+"\u884c\u3092\u9078\u629e\u4e2d"},footerTotalRows:"\u7dcf\u884c\u6570:"},K.jaJP),ur({noRowsLabel:"Geen resultaten.",errorOverlayDefaultLabel:"Er deed zich een fout voor.",toolbarDensity:"Grootte",toolbarDensityLabel:"Grootte",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Normaal",toolbarDensityComfortable:"Breed",toolbarColumns:"Kolommen",toolbarColumnsLabel:"Kies kolommen",toolbarFilters:"Filters",toolbarFiltersLabel:"Toon filters",toolbarFiltersTooltipHide:"Verberg filters",toolbarFiltersTooltipShow:"Toon filters",toolbarFiltersTooltipActive:function(e){return e>1?e+" actieve filters":e+" filter actief"},columnsPanelTextFieldLabel:"Zoek kolom",columnsPanelTextFieldPlaceholder:"Kolomtitel",columnsPanelDragIconLabel:"Kolom herschikken",columnsPanelShowAllButton:"Alles tonen",columnsPanelHideAllButton:"Alles verbergen",filterPanelAddFilter:"Filter toevoegen",filterPanelDeleteIconLabel:"Verwijderen",filterPanelOperators:"Operatoren",filterPanelOperatorAnd:"En",filterPanelOperatorOr:"Of",filterPanelColumns:"Kolommen",filterPanelInputLabel:"Waarde",filterPanelInputPlaceholder:"Filter waarde",filterOperatorContains:"bevat",filterOperatorEquals:"gelijk aan",filterOperatorStartsWith:"begint met",filterOperatorEndsWith:"eindigt met",filterOperatorIs:"is",filterOperatorNot:"is niet",filterOperatorOnOrAfter:"is gelijk of er voor",filterOperatorAfter:"is voor",filterOperatorOnOrBefore:"is gelijk of er na",filterOperatorBefore:"is na",columnMenuLabel:"Menu",columnMenuShowColumns:"Toon kolommen",columnMenuFilter:"Filteren",columnMenuHideColumn:"Verbergen",columnMenuUnsort:"Annuleer sortering",columnMenuSortAsc:"Oplopend sorteren",columnMenuSortDesc:"Aflopend sorteren",columnHeaderFiltersTooltipActive:function(e){return e>1?e+" actieve filters":e+" filter actief"},columnHeaderFiltersLabel:"Toon filters",columnHeaderSortIconLabel:"Sorteren",footerRowSelected:function(e){return e>1?e.toLocaleString()+" rijen geselecteerd":e.toLocaleString()+" rij geselecteerd"},footerTotalRows:"Totaal:"},K.nlNL),ur({noRowsLabel:"Brak danych",errorOverlayDefaultLabel:"Wyst\u0105pi\u0142 b\u0142\u0105d.",toolbarDensity:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityLabel:"Wysoko\u015b\u0107 rz\u0119du",toolbarDensityCompact:"Kompakt",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Komfort",toolbarColumns:"Kolumny",toolbarColumnsLabel:"Zaznacz kolumny",toolbarFilters:"Filtry",toolbarFiltersLabel:"Poka\u017c filtry",toolbarFiltersTooltipHide:"Ukryj filtry",toolbarFiltersTooltipShow:"Poka\u017c filtry",toolbarFiltersTooltipActive:function(e){return"Liczba aktywnych filtr\xf3w: "+e},toolbarExport:"Eksportuj",toolbarExportLabel:"Eksportuj",toolbarExportCSV:"Pobierz jako plik CSV",columnsPanelTextFieldLabel:"Znajd\u017a kolumn\u0119",columnsPanelTextFieldPlaceholder:"Tytu\u0142 kolumny",columnsPanelDragIconLabel:"Zmie\u0144 kolejno\u015b\u0107 kolumn",columnsPanelShowAllButton:"Poka\u017c wszystko",columnsPanelHideAllButton:"Ukryj wszystko",filterPanelAddFilter:"Dodaj filtr",filterPanelDeleteIconLabel:"Usu\u0144",filterPanelOperators:"Operator",filterPanelOperatorAnd:"I",filterPanelOperatorOr:"Lub",filterPanelColumns:"Kolumny",filterPanelInputLabel:"Warto\u015b\u0107",filterPanelInputPlaceholder:"Filtrowana warto\u015b\u0107",filterOperatorContains:"zawiera",filterOperatorEquals:"r\xf3wna si\u0119",filterOperatorStartsWith:"zaczyna si\u0119 od",filterOperatorEndsWith:"ko\u0144czy si\u0119 na",filterOperatorIs:"r\xf3wna si\u0119",filterOperatorNot:"r\xf3\u017cne",filterOperatorAfter:"wi\u0119ksze ni\u017c",filterOperatorOnOrAfter:"wi\u0119ksze lub r\xf3wne",filterOperatorBefore:"mniejsze ni\u017c",filterOperatorOnOrBefore:"mniejsze lub r\xf3wne",columnMenuLabel:"Menu",columnMenuShowColumns:"Poka\u017c wszystkie kolumny",columnMenuFilter:"Filtr",columnMenuHideColumn:"Ukryj",columnMenuUnsort:"Anuluj sortowanie",columnMenuSortAsc:"Sortuj rosn\u0105co",columnMenuSortDesc:"Sortuj malej\u0105co",columnHeaderFiltersTooltipActive:function(e){return"Liczba aktywnych filtr\xf3w: "+e},columnHeaderFiltersLabel:"Poka\u017c filtry",columnHeaderSortIconLabel:"Sortuj",footerRowSelected:function(e){return"Liczba wybranych wierszy: "+e.toLocaleString()},footerTotalRows:"\u0141\u0105czna liczba wierszy:"},K.plPL),ur({noRowsLabel:"Nenhuma linha",noResultsOverlayLabel:"Nenhum resultado encontrado.",errorOverlayDefaultLabel:"Ocorreu um erro.",toolbarDensity:"Densidade",toolbarDensityLabel:"Densidade",toolbarDensityCompact:"Compacto",toolbarDensityStandard:"Padr\xe3o",toolbarDensityComfortable:"Confort\xe1vel",toolbarColumns:"Colunas",toolbarColumnsLabel:"Exibir seletor de colunas",toolbarFilters:"Filtros",toolbarFiltersLabel:"Exibir filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Exibir filtros",toolbarFiltersTooltipActive:function(e){return"".concat(e," ").concat(1!==e?"filtros":"filtro"," ").concat(1!==e?"ativos":"ativo")},columnsPanelTextFieldLabel:"Localizar coluna",columnsPanelTextFieldPlaceholder:"T\xedtulo da coluna",columnsPanelDragIconLabel:"Reordenar Coluna",columnsPanelShowAllButton:"Mostrar todas",columnsPanelHideAllButton:"Ocultar todas",filterPanelAddFilter:"Adicionar filtro",filterPanelDeleteIconLabel:"Excluir",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"E",filterPanelOperatorOr:"Ou",filterPanelColumns:"Colunas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Filtrar valor",filterOperatorContains:"cont\xe9m",filterOperatorEquals:"\xe9 igual a",filterOperatorStartsWith:"come\xe7a com",filterOperatorEndsWith:"termina com",filterOperatorIs:"\xe9",filterOperatorNot:"n\xe3o \xe9",filterOperatorOnOrAfter:"em ou ap\xf3s",filterOperatorBefore:"antes de",filterOperatorOnOrBefore:"em ou antes de",filterOperatorAfter:"ap\xf3s",columnMenuLabel:"Menu",columnMenuShowColumns:"Exibir colunas",columnMenuFilter:"Filtrar",columnMenuHideColumn:"Ocultar",columnMenuUnsort:"Desfazer ordena\xe7\xe3o",columnMenuSortAsc:"Ordenar do menor para o maior",columnMenuSortDesc:"Ordenar do maior para o menor",columnHeaderFiltersTooltipActive:function(e){return"".concat(e," ").concat(1!==e?"filtros":"filtro"," ").concat(1!==e?"ativos":"ativo")},columnHeaderFiltersLabel:"Exibir Filtros",columnHeaderSortIconLabel:"Ordenar",footerRowSelected:function(e){return 1!==e?e.toLocaleString()+" linhas selecionadas":e.toLocaleString()+" linha selecionada"},footerTotalRows:"Total de linhas:",checkboxSelectionHeaderName:"Sele\xe7\xe3o",booleanCellTrueLabel:"sim",booleanCellFalseLabel:"n\xe3o"},K.ptBR),ur({noRowsLabel:"\u041d\u0435\u0442 \u0441\u0442\u0440\u043e\u043a",errorOverlayDefaultLabel:"\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430.",toolbarDensity:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityLabel:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0430\u044f",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0430\u044f",toolbarColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",toolbarColumnsLabel:"\u0412\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b",toolbarFilters:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipHide:"\u0421\u043a\u0440\u044b\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",toolbarFiltersTooltipActive:function(e){var t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432",n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),"".concat(e," ").concat(t)},toolbarExport:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 CSV",columnsPanelTextFieldLabel:"\u041d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u043b\u0431\u0435\u0446",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelDragIconLabel:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435",columnsPanelHideAllButton:"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u0435",filterPanelAddFilter:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b",filterPanelOperatorAnd:"\u0418",filterPanelOperatorOr:"\u0418\u043b\u0438",filterPanelColumns:"\u0421\u0442\u043e\u043b\u0431\u0446\u044b",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442",filterOperatorEquals:"\u0440\u0430\u0432\u0435\u043d",filterOperatorStartsWith:"\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441",filterOperatorEndsWith:"\u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0440\u0430\u0432\u0435\u043d",filterOperatorNot:"\u043d\u0435 \u0440\u0430\u0432\u0435\u043d",filterOperatorAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrAfter:"\u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterOperatorBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e",filterValueAny:"\u043b\u044e\u0431\u043e\u0439",filterValueTrue:"\u0438\u0441\u0442\u0438\u043d\u0430",filterValueFalse:"\u043b\u043e\u0436\u044c",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0446\u044b",columnMenuFilter:"\u0424\u0438\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u043a\u0440\u044b\u0442\u044c",columnMenuUnsort:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e",columnHeaderFiltersTooltipActive:function(e){var t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432",n=e%10;return n>1&&n<5?t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u0430":1===n&&(t="\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c",footerRowSelected:function(e){var t="\u0441\u0442\u0440\u043e\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043e",n=e%10;return n>1&&n<5?t="\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b":1===n&&(t="\u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430"),"".concat(e," ").concat(t)},footerTotalRows:"\u0412\u0441\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a:",checkboxSelectionHeaderName:"\u0412\u044b\u0431\u043e\u0440 \u0444\u043b\u0430\u0436\u043a\u0430",booleanCellTrueLabel:"\u0438\u0441\u0442\u0438\u043d\u0430",booleanCellFalseLabel:"\u043b\u043e\u0436\u044c"},K.ruRU),ur({noRowsLabel:"\u017diadne z\xe1znamy",noResultsOverlayLabel:"Nena\u0161li sa \u017eadne v\xfdsledky.",errorOverlayDefaultLabel:"Stala sa nepredv\xeddan\xe1 chyba.",toolbarDensity:"Hustota",toolbarDensityLabel:"Hustota",toolbarDensityCompact:"Kompaktn\xe1",toolbarDensityStandard:"\u0160tandartn\xe1",toolbarDensityComfortable:"Komfortn\xe1",toolbarColumns:"St\u013apce",toolbarColumnsLabel:"Vybra\u0165 st\u013apce",toolbarFilters:"Filtre",toolbarFiltersLabel:"Zobrazi\u0165 filtre",toolbarFiltersTooltipHide:"Skry\u0165 filtre ",toolbarFiltersTooltipShow:"Zobrazi\u0165 filtre",toolbarFiltersTooltipActive:function(e){var t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),"".concat(e," ").concat(t)},toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Stiahnu\u0165 ako CSV",columnsPanelTextFieldLabel:"N\xe1js\u0165 st\u013apec",columnsPanelTextFieldPlaceholder:"N\xe1zov st\u013apca",columnsPanelDragIconLabel:"Usporiad\u0165 st\u013apce",columnsPanelShowAllButton:"Zobrazi\u0165 v\u0161etko",columnsPanelHideAllButton:"Skry\u0165 v\u0161etko",filterPanelAddFilter:"Prida\u0165 filter",filterPanelDeleteIconLabel:"Odstr\xe1ni\u0165",filterPanelOperators:"Oper\xe1tory",filterPanelOperatorAnd:"A",filterPanelOperatorOr:"Alebo",filterPanelColumns:"St\u013apce",filterPanelInputLabel:"Hodnota",filterPanelInputPlaceholder:"Hodnota filtra",filterOperatorContains:"obsahuje",filterOperatorEquals:"rovn\xe1 sa",filterOperatorStartsWith:"za\u010d\xedna s",filterOperatorEndsWith:"kon\u010d\xed na",filterOperatorIs:"je",filterOperatorNot:"nie je",filterOperatorAfter:"je po",filterOperatorOnOrAfter:"je na alebo po",filterOperatorBefore:"je pred",filterOperatorOnOrBefore:"je na alebo sk\xf4r",filterValueAny:"ak\xfdko\u013evek",filterValueTrue:"\xe1no",filterValueFalse:"nie",columnMenuLabel:"Menu",columnMenuShowColumns:"Zobrazi\u0165 st\u013apce",columnMenuFilter:"Filter",columnMenuHideColumn:"Skry\u0165",columnMenuUnsort:"Zru\u0161i\u0165 filtre",columnMenuSortAsc:"Zoradi\u0165 vzostupne",columnMenuSortDesc:"Zoradi\u0165 zostupne",columnHeaderFiltersTooltipActive:function(e){var t="akt\xedvnych filtrov";return e>1&&e<5?t="akt\xedvne filtre":1===e&&(t="akt\xedvny filter"),"".concat(e," ").concat(t)},columnHeaderFiltersLabel:"Zobrazi\u0165 filtre",columnHeaderSortIconLabel:"Filtrova\u0165",footerRowSelected:function(e){var t="vybran\xfdch z\xe1znamov";return e>1&&e<5?t="vybran\xe9 z\xe1znamy":1===e&&(t="vybran\xfd z\xe1znam"),"".concat(e," ").concat(t)},footerTotalRows:"Riadkov spolu:",checkboxSelectionHeaderName:"V\xfdber riadku",booleanCellTrueLabel:"\xe1no",booleanCellFalseLabel:"nie"},K.skSK),ur({noRowsLabel:"Sat\u0131r yok",errorOverlayDefaultLabel:"Bir hata olu\u015ftu.",toolbarDensity:"S\u0131k\u0131l\u0131k",toolbarDensityLabel:"S\u0131k\u0131l\u0131k",toolbarDensityCompact:"S\u0131k\u0131",toolbarDensityStandard:"Standart",toolbarDensityComfortable:"Rahat",toolbarColumns:"S\xfctunlar",toolbarColumnsLabel:"S\xfctun se\xe7",toolbarFilters:"Filtreler",toolbarFiltersLabel:"Filtreleri g\xf6ster",toolbarFiltersTooltipHide:"Filtreleri Gizle",toolbarFiltersTooltipShow:"Filtreleri g\xf6ster",toolbarFiltersTooltipActive:function(e){return e+" aktif filtre"},toolbarExport:"D\u0131\u015fa aktar",toolbarExportLabel:"D\u0131\u015fa aktar",toolbarExportCSV:"CSV olarak aktar",columnsPanelTextFieldLabel:"S\xfctun ara",columnsPanelTextFieldPlaceholder:"S\xfctun ad\u0131",columnsPanelDragIconLabel:"S\xfctunlar\u0131 yeniden s\u0131rala",columnsPanelShowAllButton:"Hepsini g\xf6ster",columnsPanelHideAllButton:"Hepsini gizle",filterPanelAddFilter:"Filtre Ekle",filterPanelDeleteIconLabel:"Kald\u0131r",filterPanelOperators:"Operat\xf6r",filterPanelOperatorAnd:"Ve",filterPanelOperatorOr:"Veya",filterPanelColumns:"S\xfctunlar",filterPanelInputLabel:"De\u011fer",filterPanelInputPlaceholder:"Filtre de\u011feri",filterOperatorContains:"i\xe7erir",filterOperatorEquals:"e\u015fittir",filterOperatorStartsWith:"ile ba\u015flar",filterOperatorEndsWith:"ile biter",filterOperatorIs:"e\u015fittir",filterOperatorNot:"e\u015fit de\u011fildir",filterOperatorAfter:"b\xfcy\xfck",filterOperatorOnOrAfter:"b\xfcy\xfck e\u015fit",filterOperatorBefore:"k\xfc\xe7\xfck",filterOperatorOnOrBefore:"k\xfc\xe7\xfck e\u015fit",columnMenuLabel:"Men\xfc",columnMenuShowColumns:"S\xfctunlar\u0131 g\xf6ster",columnMenuFilter:"Filtre uygula",columnMenuHideColumn:"Gizle",columnMenuUnsort:"S\u0131ralama",columnMenuSortAsc:"S\u0131rala - Artan",columnMenuSortDesc:"S\u0131rala - Azalan",columnHeaderFiltersTooltipActive:function(e){return e+" filtre aktif"},columnHeaderFiltersLabel:"Filtreleri g\xf6ster",columnHeaderSortIconLabel:"S\u0131rala",footerRowSelected:function(e){return e.toLocaleString()+" sat\u0131r se\xe7ildi"},footerTotalRows:"Toplam Sat\u0131r:"},K.trTR),ur({noRowsLabel:"\u041d\u0435\u043c\u0430\u0454 \u0440\u044f\u0434\u043a\u0456\u0432",errorOverlayDefaultLabel:"\u0412\u0438\u044f\u0432\u043b\u0435\u043d\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0443.",toolbarDensity:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityLabel:"\u0412\u0438\u0441\u043e\u0442\u0430 \u0440\u044f\u0434\u043a\u0430",toolbarDensityCompact:"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u0438\u0439",toolbarDensityStandard:"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0439",toolbarDensityComfortable:"\u041a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u0438\u0439",toolbarColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",toolbarColumnsLabel:"\u0412\u0438\u0434\u0456\u043b\u0456\u0442\u044c \u0441\u0442\u043e\u0432\u043f\u0446\u0456",toolbarFilters:"\u0424\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipHide:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipShow:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",toolbarFiltersTooltipActive:function(e){return 1!==e?e+" \u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438":e+" \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440"},toolbarExport:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportLabel:"\u0415\u043a\u0441\u043f\u043e\u0440\u0442",toolbarExportCSV:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 CSV",columnsPanelTextFieldLabel:"\u0417\u043d\u0430\u0439\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c",columnsPanelTextFieldPlaceholder:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelDragIconLabel:"\u0417\u043c\u0456\u043d\u0438\u0442\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u043e\u0432\u043f\u0446\u044f",columnsPanelShowAllButton:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0443\u0441\u0456",columnsPanelHideAllButton:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438 \u0443\u0441\u0456",filterPanelAddFilter:"\u0414\u043e\u0434\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440",filterPanelDeleteIconLabel:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",filterPanelOperators:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438",filterPanelOperatorAnd:"\u0406",filterPanelOperatorOr:"\u0410\u0431\u043e",filterPanelColumns:"\u0421\u0442\u043e\u0432\u043f\u0446\u0456",filterPanelInputLabel:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f",filterPanelInputPlaceholder:"\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0444\u0456\u043b\u044c\u0442\u0440\u0430",filterOperatorContains:"\u043c\u0456\u0441\u0442\u0438\u0442\u044c",filterOperatorEquals:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorStartsWith:"\u043f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f \u0437",filterOperatorEndsWith:"\u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u043d\u0430",filterOperatorIs:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorNot:"\u043d\u0435",filterOperatorAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrAfter:"\u0431\u0456\u043b\u044c\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterOperatorBefore:"\u043c\u0435\u043d\u0448\u0435 \u043d\u0456\u0436",filterOperatorOnOrBefore:"\u043c\u0435\u043d\u0448\u0435 \u0430\u0431\u043e \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454",filterValueAny:"\u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439",filterValueTrue:"\u043f\u0440\u0430\u0432\u0434\u0430",filterValueFalse:"\u043f\u043e\u043c\u0438\u043b\u043a\u043e\u0432\u0438\u0439",columnMenuLabel:"\u041c\u0435\u043d\u044e",columnMenuShowColumns:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0446\u0456",columnMenuFilter:"\u0424\u0456\u043b\u044c\u0442\u0440",columnMenuHideColumn:"\u0421\u0445\u043e\u0432\u0430\u0442\u0438",columnMenuUnsort:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0441\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f",columnMenuSortAsc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0437\u0440\u043e\u0441\u0442\u0430\u043d\u043d\u044f\u043c",columnMenuSortDesc:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0441\u043f\u0430\u0434\u0430\u043d\u043d\u044f\u043c",columnHeaderFiltersTooltipActive:function(e){return 1!==e?e+" \u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0444\u0456\u043b\u044c\u0442\u0440\u0438":e+" \u0430\u043a\u0442\u0438\u0432\u043d\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440"},columnHeaderFiltersLabel:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440\u0438",columnHeaderSortIconLabel:"\u0421\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438",footerRowSelected:function(e){return 1!==e?e.toLocaleString()+" \u0432\u0438\u0431\u0440\u0430\u043d\u0456 \u0440\u044f\u0434\u043a\u0438":e.toLocaleString()+" \u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a"},footerTotalRows:"\u0412\u0441\u044c\u043e\u0433\u043e \u0440\u044f\u0434\u043a\u0456\u0432:",checkboxSelectionHeaderName:"\u0412\u0438\u0431\u0456\u0440 \u043f\u0440\u0430\u043f\u043e\u0440\u0446\u044f",booleanCellTrueLabel:"\u043f\u0440\u0430\u0432\u0434\u0430",booleanCellFalseLabel:"\u043f\u043e\u043c\u0438\u043b\u043a\u043e\u0432\u0438\u0439"},K.ukUA);var ha=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"componentDidCatch",value:function(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}},{key:"logError",value:function(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}},{key:"render",value:function(){var e;return this.props.hasError||(null===(e=this.state)||void 0===e?void 0:e.hasError)?this.props.render(this.props.componentProps||this.state):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(f.Component);function ma(e){return f.createElement("div",{className:"MuiDataGrid-main"},e.children)}function va(e,t){switch(t.type){case"options::UPDATE":return sr(e,t.payload);default:throw new Error("Material-UI: Action ".concat(t.type," not found."))}}var ya=function(e){if("string"==typeof e){var t=e.replace(/"/g,'""');return t.includes(",")?'"'.concat(t,'"'):t}return e};var ga=f.forwardRef((function(e,t){var n,r,i,o,a,s,u=f.useRef(null),l=Object(g.a)(u,t),d=f.useRef(null),m=f.useRef(null),v=f.useRef(null),y=f.useRef(null),b=f.useRef(null),w=f.useRef(null),E=function(){var e=arguments.length<=0?void 0:arguments[0],t=f.useRef(0===arguments.length?null:new oa);return f.useImperativeHandle(e,(function(){return t.current}),[t]),t}(e.apiRef),D=Pr(E,ii),C=Pr(E,vi),O=function(e,t){var n,r,i=xr("useOptionsProp"),o=f.useState(0),a=Object(p.a)(o,2),s=a[0],u=a[1],l=f.useCallback((function(){var t,n;if(null===(n=null===(t=e.current)||void 0===t?void 0:t.rootElementRef)||void 0===n?void 0:n.current){var r=function(e){var t=e.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",e.body.appendChild(t);var n=t.offsetWidth-t.clientWidth;return e.body.removeChild(t),n}(Object(h.a)(e.current.rootElementRef.current));return i.debug("Detected Scroll Bar size ".concat(r,".")),r}return 0}),[e,i,null===(r=null===(n=e.current)||void 0===n?void 0:n.rootElementRef)||void 0===r?void 0:r.current]);Gt((function(){u(l())}),[l]);var c=f.useMemo((function(){return Object.assign(Object.assign({},t),{classes:qt({root:["root"],columnHeader:["columnHeader"],row:["row"],cell:["cell"]},nn,t.classes),localeText:Object.assign(Object.assign({},Er),t.localeText),scrollbarSize:null==t.scrollbarSize?s:t.scrollbarSize||0})}),[s,t]),d=function(e,t,n,r){var i=Ar(e),o=Tr(e),a=Object(p.a)(o,3),s=a[0],u=a[1],l=a[2],c=f.useCallback((function(e){void 0===s[t]&&(s[t]=r),u((function(r){var i=Object.assign({},r);return i[t]=n(r[t],e),i})),l()}),[l,s,r,n,u,t]),d=f.useRef(c);f.useEffect((function(){d.current=c}),[c]);var h=f.useCallback((function(e){return d.current(e)}),[]);return{gridState:s,dispatch:h,gridApi:i}}(e,"options",va,Object.assign({},Sr)),m=d.gridState,v=d.dispatch,y=f.useCallback((function(e){v({type:"options::UPDATE",payload:e})}),[v]);return f.useEffect((function(){y(c)}),[c,y]),m.options}(E,e);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";gr=dr?br("debug"):e?Kt(e)?e:t?function(n){return yr(n,t.toString(),e)}:null:t?br(t.toString()):null}(O.logger,O.logLevel);var S=xr("GridComponent");!function(e,t,n){var r=f.useState(!1),i=Object(p.a)(r,2),o=i[0],a=i[1],s=xr("useApi"),u=f.useCallback((function(e,t,r){r&&r.isPropagationStopped()||n.current.emit(e,t,r)}),[n]),l=f.useCallback((function(e,t,r){s.debug("Binding ".concat(e," event")),n.current.on(e,t,r);var i=n.current;return function(){s.debug("Clearing ".concat(e," event")),i.removeListener(e,t)}}),[n,s]),c=f.useCallback((function(e){u("componentError",e)}),[u]);f.useEffect((function(){s.debug("Initializing grid api."),n.current.isInitialised=!0,n.current.rootElementRef=e,n.current.columnHeadersElementRef=t,a(!0);var r=n.current;return function(){s.debug("Unmounting Grid component"),r.emit("unmount"),s.debug("Clearing all events listeners"),r.removeAllListeners()}}),[e,s,n,t]),_r(n,{subscribeEvent:l,publishEvent:u,showError:c},"GridCoreApi")}(u,y,E);var k=function(e,t){var n=f.useState(null),r=Object(p.a)(n,2),i=r[0],o=r[1],a=function(e){o(e)};return f.useEffect((function(){return e.current.subscribeEvent("componentError",a)}),[e]),f.useEffect((function(){e.current.showError(t.error)}),[e,t.error]),i}(E,e);!function(e,t){var n,r=xr("useEvents"),i=Pr(t,Jr),o=f.useCallback((function(e){return function(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=t.current).publishEvent.apply(n,[e].concat(i))}}),[t]),a=f.useCallback((function(e){t.current.publishEvent("focusout",e),null===e.relatedTarget&&t.current.publishEvent("gridFocusOut",e)}),[t]),s=f.useCallback((function(){var e;return t.current.publishEvent("resize",{containerSize:null===(e=t.current.getState().containerSizes)||void 0===e?void 0:e.windowSizes})}),[t]);_r(t,{resize:s},"GridEventsApi"),Zi(t,"columnHeaderClick",i.onColumnHeaderClick),Zi(t,"columnHeaderDoubleClick",i.onColumnHeaderDoubleClick),Zi(t,"columnHeaderOver",i.onColumnHeaderOver),Zi(t,"columnHeaderOut",i.onColumnHeaderOut),Zi(t,"columnHeaderEnter",i.onColumnHeaderEnter),Zi(t,"columnHeaderLeave",i.onColumnHeaderLeave),Zi(t,"columnOrderChange",i.onColumnOrderChange),Zi(t,"cellClick",i.onCellClick),Zi(t,"cellDoubleClick",i.onCellDoubleClick),Zi(t,"cellOver",i.onCellOver),Zi(t,"cellOut",i.onCellOut),Zi(t,"cellEnter",i.onCellEnter),Zi(t,"cellLeave",i.onCellLeave),Zi(t,"cellKeydown",i.onCellKeyDown),Zi(t,"cellBlur",i.onCellBlur),Zi(t,"rowDoubleClick",i.onRowDoubleClick),Zi(t,"rowClick",i.onRowClick),Zi(t,"rowOver",i.onRowOver),Zi(t,"rowOut",i.onRowOut),Zi(t,"rowEnter",i.onRowEnter),Zi(t,"rowLeave",i.onRowLeave),Zi(t,"resize",i.onResize),Zi(t,"componentError",i.onError),Zi(t,"stateChange",i.onStateChange),f.useEffect((function(){var n;if(e&&e.current&&(null===(n=t.current)||void 0===n?void 0:n.isInitialised)){r.debug("Binding events listeners");var i=o("keydown"),s=o("keyup"),u=e.current;u.addEventListener("focusout",a),u.addEventListener("keydown",i),u.addEventListener("keyup",s),t.current.isInitialised=!0;var l=t.current;return function(){r.debug("Clearing all events listeners"),l.publishEvent("unmount"),u.removeEventListener("focusout",a),u.removeEventListener("keydown",i),u.removeEventListener("keyup",s),l.removeAllListeners()}}}),[e,null===(n=t.current)||void 0===n?void 0:n.isInitialised,o,r,a,t])}(u,E),function(e){var t=Pr(e,Jr).localeText;_r(e,{getLocaleText:f.useCallback((function(e){if(null==t[e])throw new Error("Missing translation for key ".concat(e,"."));return t[e]}),[t])},"LocaleTextApi")}(E);var A=function(e){var t=xr("useResizeContainer"),n=Pr(e,Jr).autoHeight,r=f.useCallback((function(n){t.info("resized...",n),e.current.resize()}),[e,t]),i=f.useMemo((function(){return Object(x.a)(r,60)}),[r]),o=f.useCallback((function(e){var r=/jsdom/.test(window.navigator.userAgent);0!==e.height||n||r||t.warn(["The parent of the grid has an empty height.","You need to make sure the container has an intrinsic height.","The grid displays with a height of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/layout/"].join("\n")),0!==e.width||r||t.warn(["The parent of the grid has an empty width.","You need to make sure the container has an intrinsic width.","The grid displays with a width of 0px.","","You can find a solution in the docs:","https://material-ui.com/components/data-grid/layout/"].join("\n")),i(e)}),[n,i,t,r]);return f.useEffect((function(){return function(){t.info("canceling resize..."),i.clear()}}),[t,i]),o}(E);e.rows,$o(e.columns,E),Qo(E),ta(E,e.rows,e.getRowId),na(E),function(e){var t=xr("useGridFocus"),n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=f.useCallback((function(n,r){i((function(e){return t.debug("Focusing on cell with id=".concat(n," and field=").concat(r)),Object.assign(Object.assign({},e),{tabIndex:{cell:{id:n,field:r},columnHeader:null},focus:{cell:{id:n,field:r},columnHeader:null}})})),e.current.publishEvent("cellFocusChange"),o()}),[e,o,t,i]),s=f.useCallback((function(n){i((function(e){return t.debug("Focusing on column header with colIndex="+n),Object.assign(Object.assign({},e),{tabIndex:{columnHeader:{field:n},cell:null},focus:{columnHeader:{field:n},cell:null}})})),e.current.publishEvent("cellFocusChange"),o()}),[e,o,t,i]),u=f.useCallback((function(t,n){var r=t.id,i=t.field;(null==n?void 0:n.target)===(null==n?void 0:n.currentTarget)&&e.current.setCellFocus(r,i)}),[e]),l=f.useCallback((function(t,n){var r=t.field;(null==n?void 0:n.target)===(null==n?void 0:n.currentTarget)&&e.current.setColumnHeaderFocus(r)}),[e]),c=f.useCallback((function(){t.debug("Clearing focus"),i((function(e){return Object.assign(Object.assign({},e),{focus:{cell:null,columnHeader:null}})}))}),[t,i]);_r(e,{setCellFocus:a,setColumnHeaderFocus:s},"GridFocusApi"),qi(e,"columnHeaderBlur",c),qi(e,"cellBlur",c),qi(e,"cellFocus",u),qi(e,"columnHeaderFocus",l)}(E),Xo(0,E),function(e,t){var n=xr("useGridKeyboardNavigation"),r=Pr(t,Jr),i=Pr(t,To),o=Pr(t,ii),a=Pr(t,Nr),s=Pr(t,Wr),u=function(e){return mn(e.key)?"ArrowDown":vn(e.key)?e.shiftKey?"ArrowLeft":"ArrowRight":e.key},l=f.useCallback((function(e,l){l.preventDefault();var c,p=t.current.getColumnIndex(e.field),f=t.current.getRowIndex(e.id),d=u(l),h=l.ctrlKey||l.metaKey||l.shiftKey,m=o;if(r.pagination&&o>i.pageSize&&(m=i.pageSize*(i.page+1)),gn(d))c=function(e,t){if(!gn(e))throw new Error("Material-UI: The first argument (key) should be an arrow key code.");switch(e){case"ArrowLeft":return Object.assign(Object.assign({},t),{colIndex:t.colIndex-1});case"ArrowRight":return Object.assign(Object.assign({},t),{colIndex:t.colIndex+1});case"ArrowUp":return Object.assign(Object.assign({},t),{rowIndex:t.rowIndex-1});default:return Object.assign(Object.assign({},t),{rowIndex:t.rowIndex+1})}}(d,{colIndex:p,rowIndex:f});else if(bn(d)){var v="Home"===d?0:a-1;if(h){c={colIndex:v,rowIndex:0===v?r.pagination?m-i.pageSize:0:m-1}}else c={colIndex:v,rowIndex:f}}else{if(!xn(d)&&!yn(d))throw new Error("Material-UI. Key not mapped to navigation behavior.");c={colIndex:p,rowIndex:f+(d.indexOf("Down")>-1||yn(d)?s.viewportPageSize:-1*s.viewportPageSize)}}if(c.rowIndex<0){var y=t.current.getVisibleColumns()[c.colIndex].field;t.current.setColumnHeaderFocus(y)}else{c.rowIndex=c.rowIndex>=m&&m>0?m-1:c.rowIndex,c.colIndex=c.colIndex<=0?0:c.colIndex,c.colIndex=c.colIndex>=a?a-1:c.colIndex,n.debug("Navigating to next cell row ".concat(c.rowIndex,", col ").concat(c.colIndex)),t.current.scrollToIndexes(c);var g=t.current.getVisibleColumns()[c.colIndex].field,b=t.current.getRowIdFromRowIndex(c.rowIndex);t.current.setCellFocus(b,g)}}),[o,r.pagination,i.pageSize,i.page,a,n,t,s]),c=f.useCallback((function(e,r){var i;r.preventDefault();var o=t.current.getColumnIndex(e.field),l=u(r);if(gn(l))i=function(e,t){if(!gn(e))throw new Error("Material-UI: The first argument (key) should be an arrow key code.");switch(e){case"ArrowLeft":return{colIndex:t.colIndex-1};case"ArrowRight":return{colIndex:t.colIndex+1};case"ArrowDown":return null;default:return Object.assign({},t)}}(l,{colIndex:o});else{if(!bn(l)){if(xn(l)){if(l.indexOf("Down")>-1){var c=t.current.getVisibleColumns()[o].field,p=t.current.getRowIdFromRowIndex(s.viewportPageSize-1);t.current.setCellFocus(p,c)}return}throw new Error("Material-UI. Key not mapped to navigation behavior.")}i={colIndex:"Home"===l?0:a-1}}if(i){i.colIndex=Math.max(0,i.colIndex),i.colIndex=i.colIndex>=a?a-1:i.colIndex,n.debug("Navigating to next column row "+i.colIndex),t.current.scrollToIndexes(i);var f=t.current.getVisibleColumns()[i.colIndex].field;t.current.setColumnHeaderFocus(f)}else{var d=t.current.getVisibleColumns()[o].field,h=t.current.getRowIdFromRowIndex(0);t.current.setCellFocus(h,d)}}),[t,a,s,n]);qi(t,"cellNavigationKeyDown",l),qi(t,"columnHeaderNavigationKeydown",c)}(0,E),function(e){var t=xr("useGridSelection"),n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=Pr(e,Jr),s=Pr(e,oi),u=Pr(e,Ko),l=f.useRef(!1),c=a.checkboxSelection,d=a.disableMultipleSelection,h=a.disableSelectionOnClick,m=a.selectionModel,v=a.isRowSelectable,y=a.onRowSelected,g=a.onSelectionModelChange;f.useEffect((function(){l.current=!d&&u}),[u,d]);var b=f.useCallback((function(){return ki(e.current.getState())}),[e]),x=f.useCallback((function(n,r,a,s){if(!v||v(e.current.getRowParams(n)))if(e.current.isInitialised){t.debug("Selecting row "+n);var u=a||l.current||c;i(u?function(e){var t=Object.assign({},e.selection);return(u&&null!=s?s:void 0===t[n])?t[n]=n:delete t[n],Object.assign(Object.assign({},e),{selection:t})}:function(e){var t={};return t[n]=n,Object.assign(Object.assign({},e),{selection:t})}),o();var p=e.current.getState("selection"),f={api:e,data:r,isSelected:void 0!==p[n]},d={selectionModel:Object.values(p)};e.current.publishEvent("rowSelected",f),e.current.publishEvent("selectionChange",d)}else i((function(e){var t={};return t[n]=n,Object.assign(Object.assign({},e),{selection:t})}))}),[v,e,t,c,o,i]),_=f.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];x(t,e.current.getRow(t),r,n)}),[e,x]),w=f.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=v?t.filter((function(t){return v(e.current.getRowParams(t))})):t;if(!(d&&a.length>1)||c){i((function(e){var t=r?{}:Object.assign({},e.selection);return a.forEach((function(e){n?t[e]=e:void 0!==t[e]&&delete t[e]})),Object.assign(Object.assign({},e),{selection:t})})),o();var s={selectionModel:Object.values(e.current.getState("selection"))};e.current.publishEvent("selectionChange",s)}}),[v,d,c,i,o,e]),E=f.useCallback((function(t){e.current.selectRows(t,!0,!0)}),[e]),D=f.useCallback((function(e){h||x(e.id,e.row)}),[h,x]);qi(e,"rowClick",D),Zi(e,"rowSelected",y),Zi(e,"selectionChange",g),_r(e,{selectRow:_,getSelectedRows:b,selectRows:w,setSelectionModel:E},"GridSelectionApi"),f.useEffect((function(){i((function(e){var t=Object.assign({},e.selection),n=!1;return Object.keys(t).forEach((function(e){s[e]||(delete t[e],n=!0)})),n?Object.assign(Object.assign({},e),{selection:t}):e})),o()}),[s,e,i,o]),f.useEffect((function(){Ht(Object.values(e.current.getState().selection),m)||e.current.setSelectionModel(m||[])}),[e,m]),f.useEffect((function(){i((function(t){var n=Object.assign({},t.selection),r=!1;return Object.keys(n).forEach((function(t){!v||v(e.current.getRowParams(t))||(delete n[t],r=!0)})),r?Object.assign(Object.assign({},t),{selection:n}):t})),o()}),[e,i,o,v])}(E),function(e,t){var n=xr("useGridSorting"),r=Tr(e),i=Object(p.a)(r,3),o=i[0],a=i[1],s=i[2],u=Pr(e,Jr),l=Pr(e,Rr),d=Pr(e,ii),h=f.useCallback((function(t){return{sortModel:t,api:e.current,columns:e.current.getAllColumns()}}),[e]),m=f.useCallback((function(e,t){var n=o.sorting.sortModel.findIndex((function(t){return t.field===e})),r=Object(c.a)(o.sorting.sortModel);return n>-1?t?r.splice(n,1,t):r.splice(n,1):r=[].concat(Object(c.a)(o.sorting.sortModel),[t]),r}),[o.sorting.sortModel]),v=f.useCallback((function(e,t){var n=o.sorting.sortModel.find((function(t){return t.field===e.field}));if(n){var r=void 0===t?an(u.sortingOrder,n.sort):t;return null==r?void 0:Object.assign(Object.assign({},n),{sort:r})}return{field:e.field,sort:void 0===t?an(u.sortingOrder):t}}),[o.sorting.sortModel,u.sortingOrder]),y=f.useCallback((function(t,n){return{id:t,field:n,value:e.current.getCellValue(t,n),api:e.current}}),[e]),g=f.useCallback((function(e){return function(t,n){return e.reduce((function(e,r,i){if(0!==e)return e;var o=r.comparator,a=t[i],s=n[i];return o(a.value,s.value,a,s)}),0)}}),[]),b=f.useCallback((function(t){return t.map((function(t){var n=e.current.getColumn(t.field);if(!n)throw new Error("Error sorting: column with field '".concat(t.field,"' not found. "));var r=function(e){return"desc"===e}(t.sort)?function(e,t,r,i){return-1*n.sortComparator(e,t,r,i)}:n.sortComparator;return{field:n.field,comparator:r}}))}),[e]),x=f.useCallback((function(){var t=e.current.getAllRowIds();if(u.sortingMode===Or)return n.debug("Skipping sorting rows as sortingMode = server"),void a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:t})})}));var r=e.current.getState().sorting.sortModel,i=t;if(r.length>0){var o=b(r);n.debug("Sorting rows with ",r),i=t.map((function(e){return o.map((function(t){return y(e,t.field)}))})).sort(g(o)).map((function(e){return e[0].id}))}a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:i})})})),s()}),[e,n,y,a,s,b,g,u.sortingMode]),_=f.useCallback((function(t){a((function(e){var n=Object.assign(Object.assign({},e.sorting),{sortModel:t});return Object.assign(Object.assign({},e),{sorting:Object.assign({},n)})})),s(),0!==l.length&&(e.current.publishEvent("sortModelChange",h(t)),e.current.applySorting())}),[a,s,l.length,e,h]),w=f.useCallback((function(e,t,n){if(e.sortable){var r,i=v(e,t);r=!n||u.disableMultipleColumnsSorting?i?[i]:[]:m(e.field,i),_(r)}}),[m,_,v,u.disableMultipleColumnsSorting]),E=f.useCallback((function(e,t){var n=e.colDef;w(n,void 0,function(e){return e.shiftKey||e.metaKey||e.ctrlKey}(t))}),[w]),D=f.useCallback((function(e,t){var n=e.colDef;!mn(t.key)||t.ctrlKey||t.metaKey||w(n,void 0,t.shiftKey)}),[w]),C=f.useCallback((function(){a((function(e){return Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortedRows:[]})})}))}),[a]),O=f.useCallback((function(){return o.sorting.sortModel}),[o.sorting.sortModel]),S=f.useCallback((function(){return Object.values(li(e.current.state))}),[e]),k=f.useCallback((function(){return ui(e.current.state)}),[e]),A=f.useCallback((function(){a((function(e){var t=e.sorting.sortModel,n=Fr(e),r=t;return t.length>0&&(r=t.reduce((function(e,t){return n.find((function(e){return e.field===t.field}))&&e.push(t),e}),[])),Object.assign(Object.assign({},e),{sorting:Object.assign(Object.assign({},e.sorting),{sortModel:r})})}))}),[a]);qi(e,"columnHeaderClick",E),qi(e,"columnHeaderKeydown",D),qi(e,"rowsSet",e.current.applySorting),qi(e,"rowsCleared",C),qi(e,"rowsUpdated",e.current.applySorting),qi(e,"columnsUpdated",A),Zi(e,"sortModelChange",u.onSortModelChange),_r(e,{getSortModel:O,getSortedRows:S,getSortedRowIds:k,setSortModel:_,sortColumn:w,applySorting:x},"GridSortApi"),f.useEffect((function(){e.current.applySorting()}),[e,t]),f.useEffect((function(){d>0&&(n.debug("row changed, applying sortModel"),e.current.applySorting())}),[d,e,n]),f.useEffect((function(){var t=u.sortModel||[];Ht(t,e.current.state.sorting.sortModel)||e.current.setSortModel(t)}),[u.sortModel,e])}(E,e.rows),function(e){var t=xr("useGridColumnMenu"),n=Tr(e),r=Object(p.a)(n,3),i=r[0],o=r[1],a=r[2],s=f.useCallback((function(n){t.debug("Opening Column Menu"),o((function(e){return Object.assign(Object.assign({},e),{columnMenu:{open:!0,field:n}})})),e.current.hidePreferences(),a()}),[e,a,t,o]),u=f.useCallback((function(){t.debug("Hiding Column Menu"),o((function(e){return Object.assign(Object.assign({},e),{columnMenu:Object.assign(Object.assign({},e.columnMenu),{open:!1,field:void 0})})})),a()}),[a,t,o]),l=f.useCallback((function(e){t.debug("Toggle Column Menu"),i.columnMenu.open&&i.columnMenu.field===e?u():s(e)}),[t,s,u,i]);f.useEffect((function(){i.isScrolling&&u()}),[i.isScrolling,u]),_r(e,{showColumnMenu:s,hideColumnMenu:u,toggleColumnMenu:l},"ColumnMenuApi")}(E),function(e){var t=xr("useGridPreferencesPanel"),n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=f.useRef(),s=f.useRef(),u=f.useCallback((function(){t.debug("Hiding Preferences Panel"),i((function(e){return Object.assign(Object.assign({},e),{preferencePanel:{open:!1}})})),o()}),[o,t,i]),l=f.useCallback((function(){s.current=setTimeout((function(){return clearTimeout(a.current)}),0)}),[]),c=f.useCallback((function(){a.current=setTimeout(u,100)}),[u]);_r(e,{showPreferences:f.useCallback((function(e){t.debug("Opening Preferences Panel"),l(),i((function(t){return Object.assign(Object.assign({},t),{preferencePanel:Object.assign(Object.assign({},t.preferencePanel),{open:!0,openedPanelValue:e})})})),o()}),[l,o,t,i]),hidePreferences:c},"ColumnMenuApi"),f.useEffect((function(){return function(){clearTimeout(a.current),clearTimeout(s.current)}}),[])}(E),function(e,t){var n=xr("useGridFilter"),r=Tr(e),i=Object(p.a)(r,3),o=i[0],a=i[1],s=i[2],u=Pr(e,Br),l=Pr(e,Jr),d=f.useCallback((function(){return{filterModel:e.current.getState("filter"),api:e.current,columns:e.current.getAllColumns(),rows:e.current.getRowModels(),visibleRows:e.current.getVisibleRowModels()}}),[e]),h=f.useCallback((function(){n.debug("clearing filtered rows"),a((function(e){return Object.assign(Object.assign({},e),{visibleRows:{visibleRowsLookup:{}}})}))}),[n,a]),m=f.useCallback((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dr.And;if(t.columnField&&t.operatorValue&&t.value){n.debug("Filtering column: ".concat(t.columnField," ").concat(t.operatorValue," ").concat(t.value," "));var i=e.current.getColumn(t.columnField);if(i){var o=i.filterOperators;if(!(null==o?void 0:o.length))throw new Error("Material-UI: No filter operators found for column '".concat(i.field,"'."));var u=o.find((function(e){return e.value===t.operatorValue}));if(!u)throw new Error("Material-UI: No filter operator found for column '".concat(i.field,"' and operator value '").concat(t.operatorValue,"'."));var l=u.getApplyFilterFn(t,i);a((function(n){var i=Object.assign({},n.visibleRows.visibleRowsLookup);return li(n).forEach((function(n,o){var a=e.current.getCellParams(o,t.columnField),s=l(a);null==i[o]?i[o]=s:i[o]=r===Dr.And?i[o]&&s:i[o]||s})),Object.assign(Object.assign({},n),{visibleRows:{visibleRowsLookup:i,visibleRows:Object.entries(i).filter((function(e){return Object(p.a)(e,2)[1]})).map((function(e){return Object(p.a)(e,1)[0]}))}})})),s()}}}),[e,s,n,a]),v=f.useCallback((function(){if(l.filterMode!==Or){h();var t=e.current.state.filter,n=t.items,r=t.linkOperator;n.forEach((function(t){e.current.applyFilter(t,r)})),s()}else s()}),[e,h,s,l.filterMode]),y=f.useCallback((function(t){n.debug("Upserting filter"),a((function(n){var r=Object(c.a)(n.filter.items),i=Object.assign({},t),o=r.findIndex((function(e){return e.id===i.id}));if(1===r.length&&Ht(r[0],{})?r[0]=i:-1===o?r.push(i):r[o]=i,null==i.id&&(i.id=Math.round(1e5*Math.random())),null==i.columnField&&(i.columnField=u[0]),null!=i.columnField&&null==i.operatorValue){var a=e.current.getColumn(i.columnField);i.operatorValue=a&&a.filterOperators[0].value}return l.disableMultipleColumnsFiltering&&r.length>1&&(r.length=1),Object.assign(Object.assign({},n),{filter:Object.assign(Object.assign({},n.filter),{items:r})})})),v(),e.current.publishEvent("filterModelChange",d())}),[n,a,e,d,v,l.disableMultipleColumnsFiltering,u]),g=f.useCallback((function(t){n.debug("Deleting filter on column ".concat(t.columnField," with value ").concat(t.value));var r=!1;a((function(e){var n=Object(c.a)(e.filter.items.filter((function(e){return e.id!==t.id})));return r=0===n.length,Object.assign(Object.assign({},e),{filter:Object.assign(Object.assign({},e.filter),{items:n})})})),r&&y({}),v(),e.current.publishEvent("filterModelChange",d())}),[e,v,d,n,a,y]),b=f.useCallback((function(t){if(n.debug("Displaying filter panel"),t){var r=o.filter.items.length>0?o.filter.items[o.filter.items.length-1]:null;r&&r.columnField===t||e.current.upsertFilter({columnField:t})}e.current.showPreferences(Ii.filters)}),[e,o.filter.items,n]),x=f.useCallback((function(){n.debug("Hiding filter panel"),null==e||e.current.hidePreferences()}),[e,n]),_=f.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dr.And;n.debug("Applying filter link operator"),a((function(e){return Object.assign(Object.assign({},e),{filter:Object.assign(Object.assign({},e.filter),{linkOperator:t})})})),v(),e.current.publishEvent("filterModelChange",d())}),[e,v,d,n,a]),w=f.useCallback((function(){h(),n.debug("Clearing filter model"),a((function(e){return Object.assign(Object.assign({},e),{filter:kr()})}))}),[h,n,a]),E=f.useCallback((function(t){w(),n.debug("Setting filter model"),_(t.linkOperator),t.items.forEach((function(e){return y(e)})),e.current.publishEvent("filterModelChange",d())}),[e,_,w,d,n,y]),D=f.useCallback((function(){return di(e.current.state)}),[e]);_r(e,{applyFilterLinkOperator:_,applyFilters:v,applyFilter:m,deleteFilter:g,upsertFilter:y,setFilterModel:E,showFilterPanel:b,hideFilterPanel:x,getVisibleRowModels:D},"FilterApi"),qi(e,"rowsSet",e.current.applyFilters),qi(e,"rowsUpdated",e.current.applyFilters),Zi(e,"filterModelChange",l.onFilterModelChange),f.useEffect((function(){var t=l.filterModel,r=e.current.state.filter;t&&!Ht(t,r)&&(n.debug("filterModel prop changed, applying filters"),e.current.setFilterModel(t))}),[e,n,l.filterModel]),f.useEffect((function(){e.current&&(n.debug("Rows prop changed, applying filters"),h(),e.current.applyFilters())}),[e,h,n,t]);var C=f.useCallback((function(){n.debug("onColUpdated - GridColumns changed, applying filters");var t=e.current.getState("filter"),r=Br(e.current.state);n.debug("GridColumns changed, applying filters"),t.items.forEach((function(t){r.find((function(e){return e===t.columnField}))||e.current.deleteFilter(t)})),e.current.applyFilters()}),[e,n]);qi(e,"columnsUpdated",C)}(E,e.rows),function(e,t){var n=xr("useGridContainerProps"),r=Tr(t),i=Object(p.a)(r,3),o=i[0],a=i[1],s=i[2],u=f.useRef({width:0,height:0}),l=Pr(t,Jr),c=Pr(t,pr),d=Pr(t,Vr),h=Pr(t,vi),m=Pr(t,To),v=f.useCallback((function(){if(n.debug("Calculating virtual row count."),l.pagination&&!l.autoPageSize){var e=h-m.page*m.pageSize;return e>m.pageSize?m.pageSize:e}return h}),[n,l.autoPageSize,l.pagination,m.page,m.pageSize,h]),y=f.useCallback((function(e){n.debug("Calculating scrollbar sizes.");var t=d>u.current.width,r={y:0,x:t?l.scrollbarSize:0};if(0===e)return{hasScrollX:t,hasScrollY:!1,scrollBarSize:r};var i=e*c,o=!l.autoPageSize&&!l.autoHeight&&i+r.x>u.current.height;return r.y=o?l.scrollbarSize:0,n.debug("Scrollbar size on axis x: ".concat(r.x,", y: ").concat(r.y)),{hasScrollX:t,hasScrollY:o,scrollBarSize:r}}),[n,d,l.scrollbarSize,l.autoPageSize,l.autoHeight,c]),g=f.useCallback((function(t,r){if(!e.current)return null;n.debug("Calculating container sizes.");var i=e.current.getBoundingClientRect();return u.current={width:i.width,height:i.height},n.debug("window Size - W: ".concat(u.current.width," H: ").concat(u.current.height," ")),{width:u.current.width-r.scrollBarSize.y,height:l.autoHeight?t*c:u.current.height-r.scrollBarSize.x}}),[n,l.autoHeight,c,e]),b=f.useCallback((function(t,r,i){if(!e||!e.current||0===d||Number.isNaN(d))return null;var o=t*c-u.current.height>2*c;if(l.autoPageSize||l.autoHeight||!o){var a=Math.floor(r.height/c),s=i.hasScrollY||t<a?t:a,p=s*c+i.scrollBarSize.x,f={isVirtualized:!1,virtualRowsCount:s,renderingZonePageSize:s,viewportPageSize:s,totalSizes:{width:d,height:p},dataContainerSizes:{width:d,height:p},renderingZoneScrollHeight:p-r.height,renderingZone:{width:d,height:p},windowSizes:u.current,lastPage:1};return n.debug("Fixed container props",f),f}var h=Math.floor(r.height/c),m=Math.ceil(t/h)-1,v=2*h,y=v*c,g=y-r.height,b=m*g+r.height,x=t%h;x>0&&(b=b-g+x*c);var _={isVirtualized:o,virtualRowsCount:t,viewportPageSize:h,totalSizes:{width:d,height:b||1},dataContainerSizes:{width:d,height:b||1},renderingZonePageSize:v,renderingZone:{width:d,height:y},renderingZoneScrollHeight:g,windowSizes:u.current,lastPage:m};return n.debug("virtualized container props",_),_}),[e,d,c,l.autoPageSize,l.autoHeight,n]),x=f.useCallback((function(e,t){var n=!1;a((function(r){return(n=e(r))?t(r):r})),n&&s()}),[s,a]),_=f.useCallback((function(){n.debug("Refreshing container sizes");var e=v(),t=y(e),r=g(e,t);if(r){x((function(e){return e.scrollBar!==t}),(function(e){return Object.assign(Object.assign({},e),{scrollBar:t})})),x((function(e){return e.viewportSizes!==r}),(function(e){return Object.assign(Object.assign({},e),{viewportSizes:r})}));var i=b(e,r,t);x((function(e){return!Ht(e.containerSizes,i)}),(function(e){return Object.assign(Object.assign({},e),{containerSizes:i})}))}}),[b,y,g,v,n,x]);f.useEffect((function(){_()}),[o.columns,o.options.hideFooter,_,h]),qi(t,"resize",_)}(b,E),function(e){var t=xr("useDensity"),n=Pr(e,Jr),r=n.density,i=n.rowHeight,o=n.headerHeight,a=Tr(e),s=Object(p.a)(a,3),u=s[1],l=s[2],c=f.useCallback((function(e,t,n){switch(e){case wr.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n)};case wr.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n)};default:return{value:e,headerHeight:t,rowHeight:n}}}),[]),d=f.useCallback((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;t.debug("Set grid density to "+e),u((function(t){return Object.assign(Object.assign({},t),{density:Object.assign(Object.assign({},t.density),c(e,n,r))})})),l()}),[t,u,l,c,o,i]);f.useEffect((function(){d(r,o,i)}),[d,r,i,o]),_r(e,{setDensity:d},"GridDensityApi")}(E),ia(v,b,w,E),function(e){var t=xr("useGridColumnReorder"),n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=Pr(e,Ki),s=f.useRef(null),u=f.useRef({x:0,y:0}),l=f.useRef(null),c=f.useRef();f.useEffect((function(){return function(){clearTimeout(c.current)}}),[]);var d=f.useCallback((function(n,r){t.debug("Start dragging col "+n.field),s.current=r.currentTarget,s.current.classList.add("MuiDataGrid-columnHeader-dragging"),i((function(e){return Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:n.field})})})),o(),c.current=setTimeout((function(){s.current.classList.remove("MuiDataGrid-columnHeader-dragging")})),l.current=e.current.getColumnIndex(n.field,!1)}),[o,t,i,e]),h=f.useCallback((function(e,t){t.preventDefault()}),[]),m=f.useCallback((function(n,r){t.debug("Dragging over col "+n.field),r.preventDefault();var i,o,s={x:r.clientX,y:r.clientY};if(n.field!==a&&(o=s,(i=u.current).x!==o.x||i.y!==o.y)){var l=e.current.getColumnIndex(n.field,!1),c=e.current.getColumnIndex(a,!1);("right"===qo(u.current,s)&&c<l||"left"===qo(u.current,s)&&l<c)&&e.current.setColumnIndex(a,l),u.current=s}}),[e,a,t]),v=f.useCallback((function(n,r){t.debug("End dragging col"),r.preventDefault(),clearTimeout(c.current),s.current=null,"none"===r.dataTransfer.dropEffect&&(e.current.setColumnIndex(n.field,l.current),l.current=null),i((function(e){return Object.assign(Object.assign({},e),{columnReorder:Object.assign(Object.assign({},e.columnReorder),{dragCol:""})})})),o()}),[t,i,o,e]);qi(e,"columnHeaderDragStart",d),qi(e,"columnHeaderDragEnter",h),qi(e,"columnHeaderDragOver",m),qi(e,"columnHeaderDragEnd",v),qi(e,"cellDragEnter",h),qi(e,"cellDragOver",m),qi(e,"cellDragEnd",v)}(E),function(e,t){var n=xr("useGridColumnResize"),r=Tr(t),i=Object(p.a)(r,3),o=i[1],a=i[2],s=f.useRef(),u=f.useRef(),l=f.useRef(),c=f.useRef(),d=f.useRef(),m=f.useRef(),v=Pr(t,Jr),y=e.current,g=function(e){n.debug("Updating width to ".concat(e," for col ").concat(s.current.field)),s.current.width=e,u.current.style.width=e+"px",u.current.style.minWidth=e+"px",u.current.style.maxWidth=e+"px",l.current.forEach((function(t){var n=t;n.style.width=e+"px",n.style.minWidth=e+"px",n.style.maxWidth=e+"px"}))},b=Wt((function(){C(),t.current.updateColumn(s.current),clearTimeout(d.current),d.current=setTimeout((function(){var e;t.current.publishEvent("columnResizeStop"),t.current.publishEvent("columnResizeCommitted",{element:u.current,colDef:s.current,api:t,width:null===(e=s.current)||void 0===e?void 0:e.width})})),n.debug("Updating col ".concat(s.current.field," with new width: ").concat(s.current.width))})),x=Wt((function(e){if(0!==e.buttons){var n=c.current+e.clientX-u.current.getBoundingClientRect().left;n=Math.max(50,n),g(n),t.current.publishEvent("columnResize",{element:u.current,colDef:s.current,api:t,width:n})}else b()})),_=Wt((function(e,r){var i=e.colDef;if(0===r.button&&r.currentTarget.classList.contains("MuiDataGrid-columnSeparatorResizable")){r.preventDefault(),u.current=cn(r.currentTarget,"MuiDataGrid-columnHeader"),n.debug("Start Resize on col "+i.field),t.current.publishEvent("columnResizeStart",{field:i.field}),s.current=i,u.current=y.querySelector('[data-field="'.concat(i.field,'"]')),l.current=fn(u.current);var o=Object(h.a)(t.current.rootElementRef.current);o.body.style.cursor="col-resize",c.current=s.current.width-(r.clientX-u.current.getBoundingClientRect().left),o.addEventListener("mousemove",x),o.addEventListener("mouseup",b)}})),w=Wt((function(e){ua(e,m.current)&&(C(),t.current.updateColumn(s.current),clearTimeout(d.current),d.current=setTimeout((function(){t.current.publishEvent("columnResizeStop")})),n.debug("Updating col ".concat(s.current.field," with new width: ").concat(s.current.width)))})),E=Wt((function(e){var n=ua(e,m.current);if(n)if("mousemove"!==e.type||0!==e.buttons){var r=c.current+n.x-u.current.getBoundingClientRect().left;r=Math.max(50,r),g(r),t.current.publishEvent("columnResize",{element:u.current,colDef:s.current,api:t,width:r})}else w(e)})),D=Wt((function(e){if(cn(e.target,"MuiDataGrid-columnSeparatorResizable")){sa()||e.preventDefault();var r=e.changedTouches[0];null!=r&&(m.current=r.identifier),u.current=cn(e.target,"MuiDataGrid-columnHeader");var i=function(e){return e.getAttribute("data-field")}(u.current),o=t.current.getColumn(i);n.debug("Start Resize on col "+o.field),t.current.publishEvent("columnResizeStart",{field:i}),s.current=o,u.current=function(e,t){return e.querySelector('[data-field="'.concat(t,'"]'))}(y,o.field),l.current=fn(u.current),c.current=s.current.width-(r.clientX-u.current.getBoundingClientRect().left);var a=Object(h.a)(e.currentTarget);a.addEventListener("touchmove",E),a.addEventListener("touchend",w)}})),C=f.useCallback((function(){var e=Object(h.a)(t.current.rootElementRef.current);e.body.style.removeProperty("cursor"),e.removeEventListener("mousemove",x),e.removeEventListener("mouseup",b),e.removeEventListener("touchmove",E),e.removeEventListener("touchend",w)}),[t,x,b,E,w]),O=f.useCallback((function(e){var t=e.field;o((function(e){return Object.assign(Object.assign({},e),{columnResize:Object.assign(Object.assign({},e.columnResize),{resizingColumnField:t})})})),a()}),[o,a]),S=f.useCallback((function(){o((function(e){return Object.assign(Object.assign({},e),{columnResize:Object.assign(Object.assign({},e.columnResize),{resizingColumnField:""})})})),a()}),[o,a]);f.useEffect((function(){return null==y||y.addEventListener("touchstart",D,{passive:sa()}),function(){null==y||y.removeEventListener("touchstart",D),clearTimeout(d.current),C()}}),[y,D,C]),qi(t,"columnSeparatorMouseDown",_),qi(t,"columnResizeStart",O),qi(t,"columnResizeStop",S),Zi(t,"columnResize",v.onColumnResize),Zi(t,"columnResizeCommitted",v.onColumnResizeCommitted)}(v,E),function(e){var t=xr("useGridPagination"),n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=Pr(e,Jr),s=Pr(e,vi),u=Pr(e,Wr),l=f.useCallback((function(n){t.debug("Setting page to "+n),i((function(e){return Object.assign(Object.assign({},e),{pagination:Jo(Object.assign(Object.assign({},e.pagination),{page:n}),a.page)})})),o();var r=e.current.getState("pagination");e.current.publishEvent("pageChange",Object.assign(Object.assign({},r),{page:n}))}),[e,i,o,t,a.page]),c=f.useCallback((function(n){t.debug("Setting page size to "+n),i((function(e){return Object.assign(Object.assign({},e),{pagination:Jo(Object.assign(Object.assign({},e.pagination),{pageSize:n}),a.page)})})),o();var r=e.current.getState("pagination");e.current.publishEvent("pageSizeChange",Object.assign(Object.assign({},r),{pageSize:n}))}),[e,i,o,t,a.page]);Zi(e,"pageChange",a.onPageChange),Zi(e,"pageSizeChange",a.onPageSizeChange),f.useEffect((function(){i((function(e){return Object.assign(Object.assign({},e),{pagination:Jo(Object.assign(Object.assign({},e.pagination),{paginationMode:null!=a.paginationMode?a.paginationMode:e.pagination.paginationMode,rowCount:void 0!==a.rowCount?a.rowCount:s,pageSize:(a.autoPageSize?null==u?void 0:u.viewportPageSize:a.pageSize)||e.pagination.pageSize}),a.page)})})),o()}),[i,o,a.paginationMode,s,a.rowCount,a.autoPageSize,null==u?void 0:u.viewportPageSize,a.pageSize,a.page]),_r(e,{setPageSize:c,setPage:l},"GridPaginationApi")}(E),function(e){var t=xr("useGridCsvExport"),n=Pr(e,Rr),r=Pr(e,di),i=Pr(e,Oi),o=f.useCallback((function(){return t.debug("Get data as CSV"),function(e,t,n,r){var i=Object(c.a)(t.keys()),o=Object.keys(n);return o.length&&(i=i.filter((function(e){return o.includes(""+e)}))),"".concat(e.filter((function(e){return e.field!==Ti.field})).map((function(e){return ya(e.headerName||e.field)})).toString()+"\r\n").concat(i.reduce((function(t,n){return"".concat(t).concat(function(e,t,n){var r=[];return t.forEach((function(t){return t.field!==Ti.field&&r.push(ya(n(e,t.field)))})),r}(n,e,r),"\r\n")}),"").trim()).trim()}(n,r,i,e.current.getCellValue)}),[t,n,r,i,e]),a=f.useCallback((function(){t.debug("Export data as CSV");var e=o();!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title,r="".concat(n,".").concat(t);if("download"in HTMLAnchorElement.prototype){var i=URL.createObjectURL(e),o=document.createElement("a");return o.href=i,o.download=r,o.click(),void setTimeout((function(){URL.revokeObjectURL(i)}))}throw new Error("exportAs not supported")}(new Blob([e],{type:"text/csv"}),"csv","data")}),[t,o]);_r(e,{getDataAsCsv:o,exportDataAsCsv:a},"GridCsvExportApi")}(E),function(e){var t=Pr(e,Jr),n=Pr(e,Wr),r=Pr(e,Rr),i=f.useRef(!1),o=f.useCallback((function(){if(n){var o=e.current.getScrollPosition().top+n.windowSizes.height+t.scrollEndThreshold;if(o<n.dataContainerSizes.height&&(i.current=!1),o>=n.dataContainerSizes.height&&!i.current){var a={api:e,visibleColumns:r,viewportPageSize:n.viewportPageSize,virtualRowsCount:n.virtualRowsCount};e.current.publishEvent("rowsScrollEnd",a),i.current=!0}}}),[t,n,e,r]);qi(e,"rowsScroll",o),Zi(e,"rowsScrollEnd",t.onRowsScrollEnd)}(E);var T=function(e,t,n){var r=f.useMemo((function(){var t={BooleanCellTrueIcon:e&&e.BooleanCellTrueIcon||da.BooleanCellTrueIcon,BooleanCellFalseIcon:e&&e.BooleanCellFalseIcon||da.BooleanCellFalseIcon,ColumnFilteredIcon:e&&e.ColumnFilteredIcon||da.ColumnFilteredIcon,ColumnMenuIcon:e&&e.ColumnMenuIcon||da.ColumnMenuIcon,ColumnResizeIcon:e&&e.ColumnResizeIcon||da.ColumnResizeIcon,ColumnSelectorIcon:e&&e.ColumnSelectorIcon||da.ColumnSelectorIcon,ColumnUnsortedIcon:void 0===(null==e?void 0:e.ColumnUnsortedIcon)?da.ColumnUnsortedIcon:null==e?void 0:e.ColumnUnsortedIcon,ColumnSortedAscendingIcon:e&&e.ColumnSortedAscendingIcon||da.ColumnSortedAscendingIcon,ColumnSortedDescendingIcon:e&&e.ColumnSortedDescendingIcon||da.ColumnSortedDescendingIcon,DensityComfortableIcon:e&&e.DensityComfortableIcon||da.DensityComfortableIcon,DensityCompactIcon:e&&e.DensityCompactIcon||da.DensityCompactIcon,DensityStandardIcon:e&&e.DensityStandardIcon||da.DensityStandardIcon,ExportIcon:e&&e.ExportIcon||da.ExportIcon,OpenFilterButtonIcon:e&&e.OpenFilterButtonIcon||da.OpenFilterButtonIcon,Checkbox:e&&e.Checkbox||da.Checkbox,ColumnMenu:e&&e.ColumnMenu||da.ColumnMenu,ErrorOverlay:e&&e.ErrorOverlay||da.ErrorOverlay,Footer:e&&e.Footer||da.Footer,Header:e&&e.Header||da.Header,Toolbar:e&&e.Toolbar,PreferencesPanel:e&&e.PreferencesPanel||da.PreferencesPanel,LoadingOverlay:e&&e.LoadingOverlay||da.LoadingOverlay,NoResultsOverlay:e&&e.NoResultsOverlay||da.NoResultsOverlay,NoRowsOverlay:e&&e.NoRowsOverlay||da.NoRowsOverlay,Pagination:e&&e.Pagination||da.Pagination,FilterPanel:e&&e.FilterPanel||da.FilterPanel,ColumnsPanel:e&&e.ColumnsPanel||da.ColumnsPanel,Panel:e&&e.Panel||da.Panel};return n.current.components=t,t}),[n,e]);return n.current.componentsProps=t,r}(e.components,e.componentsProps,E);!function(e,t){var n=Tr(e),r=Object(p.a)(n,3),i=r[1],o=r[2],a=xr("useStateProp");f.useEffect((function(){null!=t&&e.current.state!==t&&(a.debug("Overriding state with props.state"),i((function(e){return Object.assign(Object.assign({},e),t)})),o())}),[e,o,a,t,i])}(E,e.state),function(e,t){var n=Tr(e),r=Object(p.a)(n,1)[0];if(null!=r.rendering.renderContext){var i=r.rendering.renderContext,o=i.page,a=i.firstColIdx,s=i.lastColIdx,u=i.firstRowIdx,l=i.lastRowIdx;t.info("Rendering, page: ".concat(o,", col: ").concat(a,"-").concat(s,", row: ").concat(u,"-").concat(l))}}(E,S);var P=!e.loading&&0===D,M=!e.loading&&D>0&&0===C,j={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]};return f.createElement(te.Provider,{value:E},f.createElement(X.a,null,f.createElement(Ur,Object.assign({ref:l,className:Object(_.a)(null===(n=O.classes)||void 0===n?void 0:n.root,e.className)},j),f.createElement(ha,{hasError:null!=k,componentProps:k,api:E,logger:S,render:function(t){var n;return f.createElement(ma,null,f.createElement(T.ErrorOverlay,Object.assign({},t,null===(n=e.componentsProps)||void 0===n?void 0:n.errorOverlay)))}},f.createElement("div",{ref:m},f.createElement(T.Header,Object.assign({},null===(r=e.componentsProps)||void 0===r?void 0:r.header))),f.createElement(ma,null,f.createElement(Go,{licenseStatus:e.licenseStatus}),f.createElement(Hr,{ref:y},f.createElement(to,{ref:v})),P&&f.createElement(T.NoRowsOverlay,Object.assign({},null===(i=e.componentsProps)||void 0===i?void 0:i.noRowsOverlay)),M&&f.createElement(T.NoResultsOverlay,Object.assign({},null===(o=e.componentsProps)||void 0===o?void 0:o.noResultsOverlay)),e.loading&&f.createElement(T.LoadingOverlay,Object.assign({},null===(a=e.componentsProps)||void 0===a?void 0:a.loadingOverlay)),f.createElement(Ao,{onResize:A,nonce:e.nonce,disableHeight:e.autoHeight},(function(e){return f.createElement(Qr,{ref:b,size:e},f.createElement(Wo,{ref:w}))}))),!O.hideFooter&&f.createElement("div",{ref:d},f.createElement(T.Footer,Object.assign({},null===(s=e.componentsProps)||void 0===s?void 0:s.footer)))))))})),ba={disableColumnResize:!0,disableColumnReorder:!0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,pagination:!0,apiRef:void 0,onRowsScrollEnd:void 0},xa=f.forwardRef((function(e,t){var n=function(e){var t=e.props,n=e.name,r=Object.assign({},t),i=Object(D.a)(),o=Object(O.a)({theme:i,name:n,props:r}),a=o.theme||i,s="rtl"===a.direction;return Object.assign({theme:a,isRtl:s},o)}({props:e,name:"MuiDataGrid"}),r=n.pageSize,i=re(n,["pageSize"]),o=r;return o&&o>100&&(o=100),f.createElement(ga,Object.assign({ref:t,pageSize:o},i,ba,{licenseStatus:"Valid"}))})),_a=f.memo(xa);_a.propTypes={apiRef:Object(ee.a)(Q.a.any,(function(e){return null!=e.apiRef?new Error(["Material-UI: `apiRef` is not a valid prop.","GridApiRef is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),columns:Object(ee.a)(Q.a.array.isRequired,(function(e){return e.columns&&e.columns.some((function(e){return e.resizable}))?new Error(["Material-UI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableColumnReorder:Object(ee.a)(Q.a.bool,(function(e){return!1===e.disableColumnReorder?new Error(["Material-UI: `<DataGrid disableColumnReorder={false} />` is not a valid prop.","Column reordering is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableColumnResize:Object(ee.a)(Q.a.bool,(function(e){return!1===e.disableColumnResize?new Error(["Material-UI: `<DataGrid disableColumnResize={false} />` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableMultipleColumnsFiltering:Object(ee.a)(Q.a.bool,(function(e){return!1===e.disableMultipleColumnsFiltering?new Error(["Material-UI: `<DataGrid disableMultipleColumnsFiltering={false} />` is not a valid prop.","Only single column sorting is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableMultipleColumnsSorting:Object(ee.a)(Q.a.bool,(function(e){return!1===e.disableMultipleColumnsSorting?new Error(["Material-UI: `<DataGrid disableMultipleColumnsSorting={false} />` is not a valid prop.","Only single column sorting is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),disableMultipleSelection:Object(ee.a)(Q.a.bool,(function(e){return!1===e.disableMultipleSelection?new Error(["Material-UI: `<DataGrid disableMultipleSelection={false} />` is not a valid prop.","Only single column selection is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),pageSize:Object(ee.a)(Q.a.number,(function(e){return e.pageSize&&e.pageSize>100?new Error(["Material-UI: `<DataGrid pageSize={".concat(e.pageSize,"} />` is not a valid prop."),"Only page size below 100 is available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),pagination:function(e){return!1===e.pagination?new Error(["Material-UI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the XGrid component to disable the pagination."].join("\n")):null},onRowsScrollEnd:Object(ee.a)(Q.a.any,(function(e){return null!=e.onRowsScrollEnd?new Error(["Material-UI: `onRowsScrollEnd` is not a valid prop.","onRowsScrollEnd is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null})),rows:Q.a.array.isRequired,scrollEndThreshold:Object(ee.a)(Q.a.number,(function(e){return e.scrollEndThreshold?new Error(["Material-UI: `<DataGrid scrollEndThreshold={".concat(e.scrollEndThreshold,"} />` is not a valid prop."),"scrollEndThreshold is not available in the MIT version.","","You need to upgrade to the XGrid component to unlock this feature."].join("\n")):null}))}}).call(this,n(77),n(440)(e),n(226))},function(e,t,n){e.exports=function(){"use strict";var e,t,n;function r(r,i){if(e)if(t){var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",a={};e(a),n=i(a),"undefined"!==typeof window&&(n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=i;else e=i}return r(0,(function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r;function r(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var i=o;function o(e,t){this.x=e,this.y=t}o.prototype={clone:function(){return new o(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,n=e.y-this.y;return t*t+n*n},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),n=Math.sin(e),r=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-r*(this.y-t.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function u(e,t,r,i){var o=new n(e,t,r,i);return function(e){return o.solve(e)}}var l=u(.25,.1,.25,1);function c(e,t,n){return Math.min(n,Math.max(t,e))}function p(e,t,n){var r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function f(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,i=t;r<i.length;r+=1){var o=i[r];for(var a in o)e[a]=o[a]}return e}var d=1;function h(){return d++}function m(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function v(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 y(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}function g(e,t){return-1!==e.indexOf(t,e.length-t.length)}function b(e,t,n){var r={};for(var i in e)r[i]=t.call(n||this,e[i],i,e);return r}function x(e,t,n){var r={};for(var i in e)t.call(n||this,e[i],i,e)&&(r[i]=e[i]);return r}function _(e){return Array.isArray(e)?e.map(_):"object"==typeof e&&e?b(e,_):e}var w={};function E(e){w[e]||("undefined"!=typeof console&&console.warn(e),w[e]=!0)}function D(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function C(e){for(var t=0,n=0,r=e.length,i=r-1,o=void 0,a=void 0;n<r;i=n++)t+=((a=e[i]).x-(o=e[n]).x)*(o.y+a.y);return t}function O(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function S(e){var t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(e,n,r,i){var o=r||i;return t[n]=!o||o.toLowerCase(),""})),t["max-age"]){var n=parseInt(t["max-age"],10);isNaN(n)?delete t["max-age"]:t["max-age"]=n}return t}var k=null;function A(e){if(null==k){var t=e.navigator?e.navigator.userAgent:null;k=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return k}function T(e){try{var t=a[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}var P,M,j,I,F=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),R=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,z=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,L={now:F,frame:function(e){var t=R(e);return{cancel:function(){return z(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var n=a.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,r.drawImage(e,0,0,e.width,e.height),r.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:function(e){return P||(P=a.document.createElement("a")),P.href=e,P.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==M&&(M=a.matchMedia("(prefers-reduced-motion: reduce)")),M.matches)}},B={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},N={supported:!1,testSupport:function(e){!V&&I&&(U?H(e):j=e)}},V=!1,U=!1;function H(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,I),e.isContextLost())return;N.supported=!0}catch(e){}e.deleteTexture(t),V=!0}a.document&&((I=a.document.createElement("img")).onload=function(){j&&H(j),j=null,U=!0},I.onerror=function(){V=!0,j=null},I.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var W="01",G=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function q(e){return 0===e.indexOf("mapbox:")}G.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",W,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},G.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},G.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},G.prototype.normalizeStyleURL=function(e,t){if(!q(e))return e;var n=K(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},G.prototype.normalizeGlyphsURL=function(e,t){if(!q(e))return e;var n=K(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},G.prototype.normalizeSourceURL=function(e,t){if(!q(e))return e;var n=K(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},G.prototype.normalizeSpriteURL=function(e,t,n,r){var i=K(e);return q(e)?(i.path="/styles/v1"+i.path+"/sprite"+t+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+t+n,X(i))},G.prototype.normalizeTileURL=function(e,t){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!q(e))return e;var n=K(e);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(L.devicePixelRatio>=2||512===t?"@2x":"")+(N.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t].match(/^access_token=(.*)$/);if(r)return r[1]}return null}(n.params)||B.ACCESS_TOKEN;return B.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,r)},G.prototype.canonicalizeTileURL=function(e,t){var n=K(e);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return e;var r="mapbox://tiles/";r+=n.path.replace("/v4/","");var i=n.params;return t&&(i=i.filter((function(e){return!e.match(/^access_token=/)}))),i.length&&(r+="?"+i.join("&")),r},G.prototype.canonicalizeTileset=function(e,t){for(var n=!!t&&q(t),r=[],i=0,o=e.tiles||[];i<o.length;i+=1){var a=o[i];Z(a)?r.push(this.canonicalizeTileURL(a,n)):r.push(a)}return r},G.prototype._makeAPIURL=function(e,t){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=K(B.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"http"===e.protocol){var i=e.params.indexOf("secure");i>=0&&e.params.splice(i,1)}if("/"!==r.path&&(e.path=""+r.path+e.path),!B.REQUIRE_ACCESS_TOKEN)return X(e);if(!(t=t||B.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter((function(e){return-1===e.indexOf("access_token")})),e.params.push("access_token="+t),X(e)};var Y=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Z(e){return Y.test(e)}var $=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function K(e){var t=e.match($);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 X(e){var t=e.params.length?"?"+e.params.join("&"):"";return e.protocol+"://"+e.authority+e.path+t}function J(e){if(!e)return null;var t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(t[1]).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(e){return null}}var Q=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Q.prototype.getStorageKey=function(e){var t,n=J(B.ACCESS_TOKEN);return t=n&&n.u?a.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))}))):B.ACCESS_TOKEN||"",e?"mapbox.eventData."+e+":"+t:"mapbox.eventData:"+t},Q.prototype.fetchEventData=function(){var e=T("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=a.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var i=a.localStorage.getItem(n);i&&(this.anonId=i)}catch(e){E("Unable to read from LocalStorage")}},Q.prototype.saveEventData=function(){var e=T("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{a.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){E("Unable to write to LocalStorage")}},Q.prototype.processRequests=function(e){},Q.prototype.postEvent=function(e,t,n,r){var i=this;if(B.EVENTS_URL){var o=K(B.EVENTS_URL);o.params.push("access_token="+(r||B.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.1",skuId:W,userId:this.anonId},s=t?f(a,t):a,u={url:X(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=_e(u,(function(e){i.pendingRequest=null,n(e),i.saveEventData(),i.processRequests(r)}))}},Q.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var ee,te,ne=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.postMapLoadEvent=function(e,t,n,r){this.skuToken=n,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return q(e)||Z(e)})))&&this.queueRequest({id:t,timestamp:Date.now()},r)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,i=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),v(this.anonId)||(this.anonId=m()),this.postEvent(i,{skuToken:this.skuToken},(function(e){e||r&&(t.success[r]=!0)}),e))}},t}(Q),re=new(function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.postTurnstileEvent=function(e,t){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return q(e)||Z(e)}))&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=J(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,i=r!==this.eventData.tokenU;v(this.anonId)||(this.anonId=m(),i=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),u=(o-this.eventData.lastSuccess)/864e5;i=i||u>=1||u<-1||a.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(e){e||(t.eventData.lastSuccess=o,t.eventData.tokenU=r)}),e)}},t}(Q)),ie=re.postTurnstileEvent.bind(re),oe=new ne,ae=oe.postMapLoadEvent.bind(oe),se=500,ue=50;function le(){a.caches&&!ee&&(ee=a.caches.open("mapbox-tiles"))}function ce(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var pe,fe=1/0;function de(){return null==pe&&(pe=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),pe}var he={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(he);var me,ve,ye=function(e){function t(t,n,r){401===n&&Z(r)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),e.call(this,t),this.status=n,this.url=r,this.name=this.constructor.name,this.message=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error),ge=O()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href},be=function(e,t){if(!(/^file:/.test(n=e.url)||/^file:/.test(ge())&&!/^\w+:/.test(n))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return function(e,t){var n,r=new a.AbortController,i=new a.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ge(),signal:r.signal}),o=!1,s=!1,u=(n=i.url).indexOf("sku=")>0&&Z(n);"json"===e.type&&i.headers.set("Accept","application/json");var l=function(n,r,o){if(!s){if(n&&"SecurityError"!==n.message&&E(n),r&&o)return c(r);var l=Date.now();a.fetch(i).then((function(n){if(n.ok){var r=u?n.clone():null;return c(n,r,l)}return t(new ye(n.statusText,n.status,e.url))})).catch((function(e){20!==e.code&&t(new Error(e.message))}))}},c=function(n,r,u){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then((function(e){s||(r&&u&&function(e,t,n){if(le(),ee){var r={status:t.status,statusText:t.statusText,headers:new a.Headers};t.headers.forEach((function(e,t){return r.headers.set(t,e)}));var i=S(t.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&r.headers.set("Expires",new Date(n+1e3*i["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===te)try{new Response(new ReadableStream),te=!0}catch(e){te=!1}te?t(e.body):e.blob().then(t)}(t,(function(t){var n=new a.Response(t,r);le(),ee&&ee.then((function(t){return t.put(ce(e.url),n)})).catch((function(e){return E(e.message)}))})))}}(i,r,u),o=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(e){s||t(new Error(e.message))}))};return u?function(e,t){if(le(),!ee)return t(null);var n=ce(e.url);ee.then((function(e){e.match(n).then((function(r){var i=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")||0),n=S(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),i&&e.put(n,r.clone()),t(null,r,i)})).catch(t)})).catch(t)}(i,l):l(null,null),{cancel:function(){s=!0,o||r.abort()}}}(e,t);if(O()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){var n=new a.XMLHttpRequest;for(var r in n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)n.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new ye(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},xe=function(e,t){return be(f(e,{type:"arrayBuffer"}),t)},_e=function(e,t){return be(f(e,{method:"POST"}),t)},we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ee(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function De(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}me=[],ve=0;var Ce=function(e,t){void 0===t&&(t={}),f(this,t),this.type=e},Oe=function(e){function t(t,n){void 0===n&&(n={}),e.call(this,"error",f({error:t},n))}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(Ce),Se=function(){};Se.prototype.on=function(e,t){return this._listeners=this._listeners||{},Ee(e,t,this._listeners),this},Se.prototype.off=function(e,t){return De(e,t,this._listeners),De(e,t,this._oneTimeListeners),this},Se.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},Ee(e,t,this._oneTimeListeners),this},Se.prototype.fire=function(e,t){"string"==typeof e&&(e=new Ce(e,t||{}));var n=e.type;if(this.listens(n)){e.target=this;for(var r=0,i=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<i.length;r+=1)i[r].call(this,e);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];o<a.length;o+=1){var s=a[o];De(n,s,this._oneTimeListeners),s.call(this,e)}var u=this._eventedParent;u&&(f(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),u.fire(e))}else e instanceof Oe&&console.error(e.error);return this},Se.prototype.listens=function(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)},Se.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var ke={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Ae=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)};function Te(e){var t=e.value;return t?[new Ae(e.key,t,"constants have been deprecated as of v8")]:[]}function Pe(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,i=t;r<i.length;r+=1){var o=i[r];for(var a in o)e[a]=o[a]}return e}function Me(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function je(e){if(Array.isArray(e))return e.map(je);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){var t={};for(var n in e)t[n]=je(e[n]);return t}return Me(e)}var Ie=function(e){function t(t,n){e.call(this,n),this.message=n,this.key=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(Error),Fe=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.bindings[i[0]]=i[1]}};Fe.prototype.concat=function(e){return new Fe(this,e)},Fe.prototype.get=function(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.")},Fe.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var Re={kind:"null"},ze={kind:"number"},Le={kind:"string"},Be={kind:"boolean"},Ne={kind:"color"},Ve={kind:"object"},Ue={kind:"value"},He={kind:"collator"},We={kind:"formatted"},Ge={kind:"resolvedImage"};function qe(e,t){return{kind:"array",itemType:e,N:t}}function Ye(e){if("array"===e.kind){var t=Ye(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var Ze=[Re,ze,Le,Be,Ne,We,Ve,qe(Ue),Ge];function $e(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!$e(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(var n=0,r=Ze;n<r.length;n+=1)if(!$e(r[n],t))return null}return"Expected "+Ye(e)+" but found "+Ye(t)+" instead."}function Ke(e,t){return t.some((function(t){return t.kind===e.kind}))}function Xe(e,t){return t.some((function(t){return"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e}))}var Je=t((function(e,t){var n={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 r(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return r("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function o(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function a(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,s=e.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(t=parseInt(s.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===s.length&&(t=parseInt(s.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var u=s.indexOf("("),l=s.indexOf(")");if(-1!==u&&l+1===s.length){var c=s.substr(0,u),p=s.substr(u+1,l-(u+1)).split(","),f=1;switch(c){case"rgba":if(4!==p.length)return null;f=o(p.pop());case"rgb":return 3!==p.length?null:[i(p[0]),i(p[1]),i(p[2]),f];case"hsla":if(4!==p.length)return null;f=o(p.pop());case"hsl":if(3!==p.length)return null;var d=(parseFloat(p[0])%360+360)%360/360,h=o(p[1]),m=o(p[2]),v=m<=.5?m*(h+1):m+h-m*h,y=2*m-v;return[r(255*a(y,v,d+1/3)),r(255*a(y,v,d)),r(255*a(y,v,d-1/3)),f];default:return null}}return null}}catch(e){}})).parseCSSColor,Qe=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};Qe.parse=function(e){if(e){if(e instanceof Qe)return e;if("string"==typeof e){var t=Je(e);if(t)return new Qe(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},Qe.prototype.toString=function(){var e=this.toArray(),t=e[1],n=e[2],r=e[3];return"rgba("+Math.round(e[0])+","+Math.round(t)+","+Math.round(n)+","+r+")"},Qe.prototype.toArray=function(){var e=this.a;return 0===e?[0,0,0,0]:[255*this.r/e,255*this.g/e,255*this.b/e,e]},Qe.black=new Qe(0,0,0,1),Qe.white=new Qe(1,1,1,1),Qe.transparent=new Qe(0,0,0,0),Qe.red=new Qe(1,0,0,1);var et=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};et.prototype.compare=function(e,t){return this.collator.compare(e,t)},et.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var tt=function(e,t,n,r,i){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=i},nt=function(e){this.sections=e};nt.fromString=function(e){return new nt([new tt(e,null,null,null,null)])},nt.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))},nt.factory=function(e){return e instanceof nt?e:nt.fromString(e)},nt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")},nt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];if(r.image)e.push(["image",r.image.name]);else{e.push(r.text);var i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(i)}}return e};var rt=function(e){this.name=e.name,this.available=e.available};function it(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ot(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 Qe)return!0;if(e instanceof et)return!0;if(e instanceof nt)return!0;if(e instanceof rt)return!0;if(Array.isArray(e)){for(var t=0,n=e;t<n.length;t+=1)if(!ot(n[t]))return!1;return!0}if("object"==typeof e){for(var r in e)if(!ot(e[r]))return!1;return!0}return!1}function at(e){if(null===e)return Re;if("string"==typeof e)return Le;if("boolean"==typeof e)return Be;if("number"==typeof e)return ze;if(e instanceof Qe)return Ne;if(e instanceof et)return He;if(e instanceof nt)return We;if(e instanceof rt)return Ge;if(Array.isArray(e)){for(var t,n=e.length,r=0,i=e;r<i.length;r+=1){var o=at(i[r]);if(t){if(t===o)continue;t=Ue;break}t=o}return qe(t||Ue,n)}return Ve}function st(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Qe||e instanceof nt||e instanceof rt?e.toString():JSON.stringify(e)}rt.prototype.toString=function(){return this.name},rt.fromString=function(e){return e?new rt({name:e,available:!1}):null},rt.prototype.serialize=function(){return["image",this.name]};var ut=function(e,t){this.type=e,this.value=t};ut.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!ot(e[1]))return t.error("invalid value");var n=e[1],r=at(n),i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new ut(r,n)},ut.prototype.evaluate=function(){return this.value},ut.prototype.eachChild=function(){},ut.prototype.outputDefined=function(){return!0},ut.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof nt?this.value.serialize():this.value};var lt=function(e){this.name="ExpressionEvaluationError",this.message=e};lt.prototype.toJSON=function(){return this.message};var ct={string:Le,number:ze,boolean:Be,object:Ve},pt=function(e,t){this.type=e,this.args=t};pt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,i=e[0];if("array"===i){var o,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in ct)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);o=ct[s],r++}else o=Ue;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);a=e[2],r++}n=qe(o,a)}else n=ct[i];for(var u=[];r<e.length;r++){var l=t.parse(e[r],r,Ue);if(!l)return null;u.push(l)}return new pt(n,u)},pt.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!$e(this.type,at(n)))return n;if(t===this.args.length-1)throw new lt("Expected value to be of type "+Ye(this.type)+", but found "+Ye(at(n))+" instead.")}return null},pt.prototype.eachChild=function(e){this.args.forEach(e)},pt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},pt.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);var r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((function(e){return e.serialize()})))};var ft=function(e){this.type=We,this.sections=e};ft.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");for(var r=[],i=!1,o=1;o<=e.length-1;++o){var a=e[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=t.parse(a["font-scale"],1,ze)))return null;var u=null;if(a["text-font"]&&!(u=t.parse(a["text-font"],1,qe(Le))))return null;var l=null;if(a["text-color"]&&!(l=t.parse(a["text-color"],1,Ne)))return null;var c=r[r.length-1];c.scale=s,c.font=u,c.textColor=l}else{var p=t.parse(e[o],1,Ue);if(!p)return null;var f=p.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:p,scale:null,font:null,textColor:null})}}return new ft(r)},ft.prototype.evaluate=function(e){return new nt(this.sections.map((function(t){var n=t.content.evaluate(e);return at(n)===Ge?new tt("",n,null,null,null):new tt(st(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))},ft.prototype.eachChild=function(e){for(var t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}},ft.prototype.outputDefined=function(){return!1},ft.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.content.serialize());var i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),e.push(i)}return e};var dt=function(e){this.type=Ge,this.input=e};dt.parse=function(e,t){if(2!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Le);return n?new dt(n):t.error("No image name provided.")},dt.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=rt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n},dt.prototype.eachChild=function(e){e(this.input)},dt.prototype.outputDefined=function(){return!1},dt.prototype.serialize=function(){return["image",this.input.serialize()]};var ht={"to-boolean":Be,"to-color":Ne,"to-number":ze,"to-string":Le},mt=function(e,t){this.type=e,this.args=t};mt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=ht[n],i=[],o=1;o<e.length;o++){var a=t.parse(e[o],o,Ue);if(!a)return null;i.push(a)}return new mt(r,i)},mt.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,n,r=0,i=this.args;r<i.length;r+=1){if(n=null,(t=i[r].evaluate(e))instanceof Qe)return t;if("string"==typeof t){var o=e.parseColor(t);if(o)return o}else if(Array.isArray(t)&&!(n=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":it(t[0],t[1],t[2],t[3])))return new Qe(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new lt(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,u=this.args;s<u.length;s+=1){if(null===(a=u[s].evaluate(e)))return 0;var l=Number(a);if(!isNaN(l))return l}throw new lt("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?nt.fromString(st(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?rt.fromString(st(this.args[0].evaluate(e))):st(this.args[0].evaluate(e))},mt.prototype.eachChild=function(e){this.args.forEach(e)},mt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},mt.prototype.serialize=function(){if("formatted"===this.type.kind)return new ft([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new dt(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild((function(t){e.push(t.serialize())})),e};var vt=["Unknown","Point","LineString","Polygon"],yt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};yt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},yt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?vt[this.feature.type]:this.feature.type:null},yt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},yt.prototype.canonicalID=function(){return this.canonical},yt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},yt.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Qe.parse(e)),t};var gt=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};gt.prototype.evaluate=function(e){return this._evaluate(e,this.args)},gt.prototype.eachChild=function(e){this.args.forEach(e)},gt.prototype.outputDefined=function(){return!1},gt.prototype.serialize=function(){return[this.name].concat(this.args.map((function(e){return e.serialize()})))},gt.parse=function(e,t){var n,r=e[0],i=gt.definitions[r];if(!i)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1})),u=null,l=0,c=s;l<c.length;l+=1){var p=c[l],f=p[0],d=p[1];u=new Nt(t.registry,t.path,null,t.scope);for(var h=[],m=!1,v=1;v<e.length;v++){var y=e[v],g=Array.isArray(f)?f[v-1]:f.type,b=u.parse(y,1+h.length,g);if(!b){m=!0;break}h.push(b)}if(!m)if(Array.isArray(f)&&f.length!==h.length)u.error("Expected "+f.length+" arguments, but found "+h.length+" instead.");else{for(var x=0;x<h.length;x++){var _=Array.isArray(f)?f[x]:f.type,w=h[x];u.concat(x+1).checkSubtype(_,w.type)}if(0===u.errors.length)return new gt(r,o,d,h)}}if(1===s.length)(n=t.errors).push.apply(n,u.errors);else{for(var E=(s.length?s:a).map((function(e){var t;return t=e[0],Array.isArray(t)?"("+t.map(Ye).join(", ")+")":"("+Ye(t.type)+"...)"})).join(" | "),D=[],C=1;C<e.length;C++){var O=t.parse(e[C],1+D.length);if(!O)return null;D.push(Ye(O.type))}t.error("Expected arguments of type "+E+", but found ("+D.join(", ")+") instead.")}return null},gt.register=function(e,t){for(var n in gt.definitions=t,t)e[n]=gt};var bt=function(e,t,n){this.type=He,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};function xt(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 _t(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function wt(e,t){var n=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,i=Math.pow(2,t.z);return[Math.round(n*i*8192),Math.round(r*i*8192)]}function Et(e,t,n){return t[1]>e[1]!=n[1]>e[1]&&e[0]<(n[0]-t[0])*(e[1]-t[1])/(n[1]-t[1])+t[0]}function Dt(e,t){for(var n,r,i,o,a,s,u,l=!1,c=0,p=t.length;c<p;c++)for(var f=t[c],d=0,h=f.length;d<h-1;d++){if((o=(n=e)[0]-(r=f[d])[0])*(u=n[1]-(i=f[d+1])[1])-(s=n[0]-i[0])*(a=n[1]-r[1])==0&&o*s<=0&&a*u<=0)return!1;Et(e,f[d],f[d+1])&&(l=!l)}return l}function Ct(e,t){for(var n=0;n<t.length;n++)if(Dt(e,t[n]))return!0;return!1}function Ot(e,t,n,r){var i=r[0]-n[0],o=r[1]-n[1],a=(e[0]-n[0])*o-i*(e[1]-n[1]),s=(t[0]-n[0])*o-i*(t[1]-n[1]);return a>0&&s<0||a<0&&s>0}function St(e,t,n){for(var r=0,i=n;r<i.length;r+=1)for(var o=i[r],a=0;a<o.length-1;++a)if(0!=(p=[(c=o[a+1])[0]-(l=o[a])[0],c[1]-l[1]])[0]*(f=[(u=t)[0]-(s=e)[0],u[1]-s[1]])[1]-p[1]*f[0]&&Ot(s,u,l,c)&&Ot(l,c,s,u))return!0;var s,u,l,c,p,f;return!1}function kt(e,t){for(var n=0;n<e.length;++n)if(!Dt(e[n],t))return!1;for(var r=0;r<e.length-1;++r)if(St(e[r],e[r+1],t))return!1;return!0}function At(e,t){for(var n=0;n<t.length;n++)if(kt(e,t[n]))return!0;return!1}function Tt(e,t,n){for(var r=[],i=0;i<e.length;i++){for(var o=[],a=0;a<e[i].length;a++){var s=wt(e[i][a],n);xt(t,s),o.push(s)}r.push(o)}return r}function Pt(e,t,n){for(var r=[],i=0;i<e.length;i++){var o=Tt(e[i],t,n);r.push(o)}return r}function Mt(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){var i=.5*r,o=e[0]-n[0]>i?-r:n[0]-e[0]>i?r:0;0===o&&(o=e[0]-n[2]>i?-r:n[2]-e[0]>i?r:0),e[0]+=o}xt(t,e)}function jt(e,t,n,r){for(var i=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[],s=0,u=e;s<u.length;s+=1)for(var l=0,c=u[s];l<c.length;l+=1){var p=c[l],f=[p.x+o[0],p.y+o[1]];Mt(f,t,n,i),a.push(f)}return a}function It(e,t,n,r){for(var i,o=8192*Math.pow(2,r.z),a=[8192*r.x,8192*r.y],s=[],u=0,l=e;u<l.length;u+=1){for(var c=[],p=0,f=l[u];p<f.length;p+=1){var d=f[p],h=[d.x+a[0],d.y+a[1]];xt(t,h),c.push(h)}s.push(c)}if(t[2]-t[0]<=o/2){(i=t)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var m=0,v=s;m<v.length;m+=1)for(var y=0,g=v[m];y<g.length;y+=1)Mt(g[y],t,n,o)}return s}bt.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");var r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Be);if(!r)return null;var i=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Be);if(!i)return null;var o=null;return n.locale&&!(o=t.parse(n.locale,1,Le))?null:new bt(r,i,o)},bt.prototype.evaluate=function(e){return new et(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},bt.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},bt.prototype.outputDefined=function(){return!1},bt.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var Ft=function(e,t){this.type=Be,this.geojson=e,this.geometries=t};function Rt(e){if(e instanceof gt){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 Ft)return!1;var t=!0;return e.eachChild((function(e){t&&!Rt(e)&&(t=!1)})),t}function zt(e){if(e instanceof gt&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild((function(e){t&&!zt(e)&&(t=!1)})),t}function Lt(e,t){if(e instanceof gt&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild((function(e){n&&!Lt(e,t)&&(n=!1)})),n}Ft.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(ot(e[1])){var n=e[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var i=n.features[r].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Ft(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Ft(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new Ft(n,n)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Ft.prototype.evaluate=function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var o=Tt(t.coordinates,r,i),a=jt(e.geometry(),n,r,i);if(!_t(n,r))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!Dt(u[s],o))return!1}if("MultiPolygon"===t.type){var l=Pt(t.coordinates,r,i),c=jt(e.geometry(),n,r,i);if(!_t(n,r))return!1;for(var p=0,f=c;p<f.length;p+=1)if(!Ct(f[p],l))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var o=Tt(t.coordinates,r,i),a=It(e.geometry(),n,r,i);if(!_t(n,r))return!1;for(var s=0,u=a;s<u.length;s+=1)if(!kt(u[s],o))return!1}if("MultiPolygon"===t.type){var l=Pt(t.coordinates,r,i),c=It(e.geometry(),n,r,i);if(!_t(n,r))return!1;for(var p=0,f=c;p<f.length;p+=1)if(!At(f[p],l))return!1}return!0}(e,this.geometries)}return!1},Ft.prototype.eachChild=function(){},Ft.prototype.outputDefined=function(){return!0},Ft.prototype.serialize=function(){return["within",this.geojson]};var Bt=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};Bt.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var n=e[1];return t.scope.has(n)?new Bt(n,t.scope.get(n)):t.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},Bt.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},Bt.prototype.eachChild=function(){},Bt.prototype.outputDefined=function(){return!1},Bt.prototype.serialize=function(){return["var",this.name]};var Nt=function(e,t,n,r,i){void 0===t&&(t=[]),void 0===r&&(r=new Fe),void 0===i&&(i=[]),this.registry=e,this.path=t,this.key=t.map((function(e){return"["+e+"]"})).join(""),this.scope=r,this.errors=i,this.expectedType=n};function Vt(e,t){for(var n,r=e.length-1,i=0,o=r,a=0;i<=o;)if((n=e[a=Math.floor((i+o)/2)])<=t){if(a===r||t<e[a+1])return a;i=a+1}else{if(!(n>t))throw new lt("Input is not a number.");o=a-1}return 0}Nt.prototype.parse=function(e,t,n,r,i){return void 0===i&&(i={}),t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)},Nt.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new pt(t,[e]):"coerce"===n?new mt(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", []].');var r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[r];if(i){var o=i.parse(e,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,t.typeAnnotation||"coerce");else o=n(o,a,t.typeAnnotation||"assert")}if(!(o instanceof ut)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof Bt)return e(t.boundExpression);if(t instanceof gt&&"error"===t.name)return!1;if(t instanceof bt)return!1;if(t instanceof Ft)return!1;var n=t instanceof mt||t instanceof pt,r=!0;return t.eachChild((function(t){r=n?r&&e(t):r&&t instanceof ut})),!!r&&Rt(t)&&Lt(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var u=new yt;try{o=new ut(o.type,o.evaluate(u))}catch(e){return this.error(e.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}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.")},Nt.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new Nt(this.registry,r,t||null,i,this.errors)},Nt.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map((function(e){return"["+e+"]"})).join("");this.errors.push(new Ie(r,e))},Nt.prototype.checkSubtype=function(e,t){var n=$e(e,t);return n&&this.error(n),n};var Ut=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,i=n;r<i.length;r+=1){var o=i[r],a=o[1];this.labels.push(o[0]),this.outputs.push(a)}};function Ht(e,t,n){return e*(1-n)+t*n}Ut.parse=function(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.");var n=t.parse(e[1],1,ze);if(!n)return null;var r=[],i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(var o=1;o<e.length;o+=2){var a=1===o?-1/0:e[o],s=e[o+1],u=o,l=o+1;if("number"!=typeof a)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',u);if(r.length&&r[r.length-1][0]>=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var c=t.parse(s,l,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new Ut(i,n,r)},Ut.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[Vt(t,r)].evaluate(e)},Ut.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},Ut.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},Ut.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Wt=Object.freeze({__proto__:null,number:Ht,color:function(e,t,n){return new Qe(Ht(e.r,t.r,n),Ht(e.g,t.g,n),Ht(e.b,t.b,n),Ht(e.a,t.a,n))},array:function(e,t,n){return e.map((function(e,r){return Ht(e,t[r],n)}))}}),Gt=6/29*3*(6/29),qt=Math.PI/180,Yt=180/Math.PI;function Zt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Gt+4/29}function $t(e){return e>6/29?e*e*e:Gt*(e-4/29)}function Kt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Jt(e){var t=Xt(e.r),n=Xt(e.g),r=Xt(e.b),i=Zt((.4124564*t+.3575761*n+.1804375*r)/.95047),o=Zt((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Zt((.0193339*t+.119192*n+.9503041*r)/1.08883)),alpha:e.a}}function Qt(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*$t(t),n=.95047*$t(n),r=1.08883*$t(r),new Qe(Kt(3.2404542*n-1.5371385*t-.4985314*r),Kt(-.969266*n+1.8760108*t+.041556*r),Kt(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function en(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var tn={forward:Jt,reverse:Qt,interpolate:function(e,t,n){return{l:Ht(e.l,t.l,n),a:Ht(e.a,t.a,n),b:Ht(e.b,t.b,n),alpha:Ht(e.alpha,t.alpha,n)}}},nn={forward:function(e){var t=Jt(e),n=t.l,r=t.a,i=t.b,o=Math.atan2(i,r)*Yt;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:e.a}},reverse:function(e){var t=e.h*qt,n=e.c;return Qt({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:en(e.h,t.h,n),c:Ht(e.c,t.c,n),l:Ht(e.l,t.l,n),alpha:Ht(e.alpha,t.alpha,n)}}},rn=Object.freeze({__proto__:null,lab:tn,hcl:nn}),on=function(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],u=s[1];this.labels.push(s[0]),this.outputs.push(u)}};function an(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}on.interpolationFactor=function(e,t,r,i){var o=0;if("exponential"===e.name)o=an(t,e.base,r,i);else if("linear"===e.name)o=an(t,1,r,i);else if("cubic-bezier"===e.name){var a=e.controlPoints;o=new n(a[0],a[1],a[2],a[3]).solve(an(t,1,r,i))}return o},on.parse=function(e,t){var n=e[0],r=e[1],i=e[2],o=e.slice(3);if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.slice(1);if(4!==s.length||s.some((function(e){return"number"!=typeof e||e<0||e>1})))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}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(!(i=t.parse(i,2,ze)))return null;var u=[],l=null;"interpolate-hcl"===n||"interpolate-lab"===n?l=Ne:t.expectedType&&"value"!==t.expectedType.kind&&(l=t.expectedType);for(var c=0;c<o.length;c+=2){var p=o[c],f=o[c+1],d=c+3,h=c+4;if("number"!=typeof p)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(u.length&&u[u.length-1][0]>=p)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var m=t.parse(f,h,l);if(!m)return null;l=l||m.type,u.push([p,m])}return"number"===l.kind||"color"===l.kind||"array"===l.kind&&"number"===l.itemType.kind&&"number"==typeof l.N?new on(l,n,r,i,u):t.error("Type "+Ye(l)+" is not interpolatable.")},on.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);var o=Vt(t,r),a=on.interpolationFactor(this.interpolation,r,t[o],t[o+1]),s=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?Wt[this.type.kind.toLowerCase()](s,u,a):"interpolate-hcl"===this.operator?nn.reverse(nn.interpolate(nn.forward(s),nn.forward(u),a)):tn.reverse(tn.interpolate(tn.forward(s),tn.forward(u),a))},on.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},on.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},on.prototype.serialize=function(){var 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);for(var t=[this.operator,e,this.input.serialize()],n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t};var sn=function(e,t){this.type=e,this.args=t};sn.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);for(var i=[],o=0,a=e.slice(1);o<a.length;o+=1){var s=t.parse(a[o],1+i.length,n,void 0,{typeAnnotation:"omit"});if(!s)return null;n=n||s.type,i.push(s)}var u=r&&i.some((function(e){return $e(r,e.type)}));return new sn(u?Ue:n,i)},sn.prototype.evaluate=function(e){for(var t,n=null,r=0,i=0,o=this.args;i<o.length&&(r++,(n=o[i].evaluate(e))&&n instanceof rt&&!n.available&&(t||(t=n.name),n=null,r===this.args.length&&(n=t)),null===n);i+=1);return n},sn.prototype.eachChild=function(e){this.args.forEach(e)},sn.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},sn.prototype.serialize=function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e};var un=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};un.prototype.evaluate=function(e){return this.result.evaluate(e)},un.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},un.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var n=[],r=1;r<e.length-1;r+=2){var i=e[r];if("string"!=typeof i)return t.error("Expected string, but found "+typeof i+" instead.",r);if(/[^a-zA-Z0-9_]/.test(i))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=t.parse(e[r+1],r+1);if(!o)return null;n.push([i,o])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return a?new un(n,a):null},un.prototype.outputDefined=function(){return this.result.outputDefined()},un.prototype.serialize=function(){for(var e=["let"],t=0,n=this.bindings;t<n.length;t+=1){var r=n[t];e.push(r[0],r[1].serialize())}return e.push(this.result.serialize()),e};var ln=function(e,t,n){this.type=e,this.index=t,this.input=n};ln.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,ze),r=t.parse(e[2],2,qe(t.expectedType||Ue));return n&&r?new ln(r.type.itemType,n,r):null},ln.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new lt("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new lt("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new lt("Array index must be an integer, but found "+t+" instead.");return n[t]},ln.prototype.eachChild=function(e){e(this.index),e(this.input)},ln.prototype.outputDefined=function(){return!1},ln.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var cn=function(e,t){this.type=Be,this.needle=e,this.haystack=t};cn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ue),r=t.parse(e[2],2,Ue);return n&&r?Ke(n.type,[Be,Le,ze,Re,Ue])?new cn(n,r):t.error("Expected first argument to be of type boolean, string, number or null, but found "+Ye(n.type)+" instead"):null},cn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!Xe(t,["boolean","string","number","null"]))throw new lt("Expected first argument to be of type boolean, string, number or null, but found "+Ye(at(t))+" instead.");if(!Xe(n,["string","array"]))throw new lt("Expected second argument to be of type array or string, but found "+Ye(at(n))+" instead.");return n.indexOf(t)>=0},cn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},cn.prototype.outputDefined=function(){return!0},cn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pn=function(e,t,n){this.type=ze,this.needle=e,this.haystack=t,this.fromIndex=n};pn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ue),r=t.parse(e[2],2,Ue);if(!n||!r)return null;if(!Ke(n.type,[Be,Le,ze,Re,Ue]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+Ye(n.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,ze);return i?new pn(n,r,i):null}return new pn(n,r)},pn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Xe(t,["boolean","string","number","null"]))throw new lt("Expected first argument to be of type boolean, string, number or null, but found "+Ye(at(t))+" instead.");if(!Xe(n,["string","array"]))throw new lt("Expected second argument to be of type array or string, but found "+Ye(at(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)},pn.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},pn.prototype.outputDefined=function(){return!1},pn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var fn=function(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};fn.parse=function(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.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var i={},o=[],a=2;a<e.length-1;a+=2){var s=e[a],u=e[a+1];Array.isArray(s)||(s=[s]);var l=t.concat(a);if(0===s.length)return l.error("Expected at least one branch label.");for(var c=0,p=s;c<p.length;c+=1){var f=p[c];if("number"!=typeof f&&"string"!=typeof f)return l.error("Branch labels must be numbers or strings.");if("number"==typeof f&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return l.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return l.error("Numeric branch labels must be integer values.");if(n){if(l.checkSubtype(n,at(f)))return null}else n=at(f);if(void 0!==i[String(f)])return l.error("Branch labels must be unique.");i[String(f)]=o.length}var d=t.parse(u,a,r);if(!d)return null;r=r||d.type,o.push(d)}var h=t.parse(e[1],1,Ue);if(!h)return null;var m=t.parse(e[e.length-1],e.length-1,r);return m?"value"!==h.type.kind&&t.concat(1).checkSubtype(n,h.type)?null:new fn(n,r,h,i,o,m):null},fn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(at(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},fn.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},fn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()},fn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(p=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[p][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},u=0,l=n;u<l.length;u+=1){var c=l[u],p=c[0],f=c[1];t.push(1===f.length?s(f[0]):f.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var dn=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};dn.parse=function(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.");var n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var r=[],i=1;i<e.length-1;i+=2){var o=t.parse(e[i],i,Be);if(!o)return null;var a=t.parse(e[i+1],i+1,n);if(!a)return null;r.push([o,a]),n=n||a.type}var s=t.parse(e[e.length-1],e.length-1,n);return s?new dn(n,r,s):null},dn.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[1];if(r[0].evaluate(e))return i.evaluate(e)}return this.otherwise.evaluate(e)},dn.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[1];e(r[0]),e(i)}e(this.otherwise)},dn.prototype.outputDefined=function(){return this.branches.every((function(e){return e[1].outputDefined()}))&&this.otherwise.outputDefined()},dn.prototype.serialize=function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e};var hn=function(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r};function mn(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 vn(e,t,n,r){return 0===r.compare(t,n)}function yn(e,t,n){var r="=="!==e&&"!="!==e;return function(){function i(e,t,n){this.type=Be,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return i.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var n=e[0],o=t.parse(e[1],1,Ue);if(!o)return null;if(!mn(n,o.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+Ye(o.type)+"'.");var a=t.parse(e[2],2,Ue);if(!a)return null;if(!mn(n,a.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+Ye(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+Ye(o.type)+"' and '"+Ye(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new pt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new pt(o.type,[a])));var s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,He)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){var s=at(o),u=at(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new lt('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+u.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var l=at(o),c=at(a);if("string"!==l.kind||"string"!==c.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)},i.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t},i}()}hn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ue),r=t.parse(e[2],2,ze);if(!n||!r)return null;if(!Ke(n.type,[qe(Ue),Le,Ue]))return t.error("Expected first argument to be of type array or string, but found "+Ye(n.type)+" instead");if(4===e.length){var i=t.parse(e[3],3,ze);return i?new hn(n.type,n,r,i):null}return new hn(n.type,n,r)},hn.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Xe(t,["string","array"]))throw new lt("Expected first argument to be of type array or string, but found "+Ye(at(t))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)},hn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},hn.prototype.outputDefined=function(){return!1},hn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var gn=yn("==",(function(e,t,n){return t===n}),vn),bn=yn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!vn(0,t,n,r)})),xn=yn("<",(function(e,t,n){return t<n}),(function(e,t,n,r){return r.compare(t,n)<0})),_n=yn(">",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),wn=yn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),En=yn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0})),Dn=function(e,t,n,r,i){this.type=Le,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};Dn.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,ze);if(!n)return null;var r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=t.parse(r.locale,1,Le)))return null;var o=null;if(r.currency&&!(o=t.parse(r.currency,1,Le)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=t.parse(r["min-fraction-digits"],1,ze)))return null;var s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,ze))?null:new Dn(n,i,o,a,s)},Dn.prototype.evaluate=function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.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))},Dn.prototype.eachChild=function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)},Dn.prototype.outputDefined=function(){return!1},Dn.prototype.serialize=function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.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]};var Cn=function(e){this.type=ze,this.input=e};Cn.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+Ye(n.type)+" instead."):new Cn(n):null},Cn.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new lt("Expected value to be of type string or array, but found "+Ye(at(t))+" instead.")},Cn.prototype.eachChild=function(e){e(this.input)},Cn.prototype.outputDefined=function(){return!1},Cn.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var On={"==":gn,"!=":bn,">":_n,"<":xn,">=":En,"<=":wn,array:pt,at:ln,boolean:pt,case:dn,coalesce:sn,collator:bt,format:ft,image:dt,in:cn,"index-of":pn,interpolate:on,"interpolate-hcl":on,"interpolate-lab":on,length:Cn,let:un,literal:ut,match:fn,number:pt,"number-format":Dn,object:pt,slice:hn,step:Ut,string:pt,"to-boolean":mt,"to-color":mt,"to-number":mt,"to-string":mt,var:Bt,within:Ft};function Sn(e,t){var n=t[0],r=t[1],i=t[2],o=t[3];n=n.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);var a=o?o.evaluate(e):1,s=it(n,r,i,a);if(s)throw new lt(s);return new Qe(n/255*a,r/255*a,i/255*a,a)}function kn(e,t){return e in t}function An(e,t){var n=t[e];return void 0===n?null:n}function Tn(e){return{type:e}}function Pn(e){return{result:"success",value:e}}function Mn(e){return{result:"error",value:e}}function jn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function In(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Fn(e){return!!e.expression&&e.expression.interpolated}function Rn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function zn(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ln(e){return e}function Bn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Nn(e,t,n,r,i){return Bn(typeof n===i?r[n]:void 0,e.default,t.default)}function Vn(e,t,n){if("number"!==Rn(n))return Bn(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var i=Vt(e.stops.map((function(e){return e[0]})),n);return e.stops[i][1]}function Un(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==Rn(n))return Bn(e.default,t.default);var i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];var o=Vt(e.stops.map((function(e){return e[0]})),n),a=function(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],u=e.stops[o+1][1],l=Wt[t.type]||Ln;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=rn[e.colorSpace];l=function(e,t){return c.reverse(c.interpolate(c.forward(e),c.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=s.evaluate.apply(void 0,e),r=u.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return l(n,r,a)}}:l(s,u,a)}function Hn(e,t,n){return"color"===t.type?n=Qe.parse(n):"formatted"===t.type?n=nt.fromString(n.toString()):"resolvedImage"===t.type?n=rt.fromString(n.toString()):Rn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Bn(n,e.default,t.default)}gt.register(On,{error:[{kind:"error"},[Le],function(e,t){throw new lt(t[0].evaluate(e))}],typeof:[Le,[Ue],function(e,t){return Ye(at(t[0].evaluate(e)))}],"to-rgba":[qe(ze,4),[Ne],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Ne,[ze,ze,ze],Sn],rgba:[Ne,[ze,ze,ze,ze],Sn],has:{type:Be,overloads:[[[Le],function(e,t){return kn(t[0].evaluate(e),e.properties())}],[[Le,Ve],function(e,t){var n=t[1];return kn(t[0].evaluate(e),n.evaluate(e))}]]},get:{type:Ue,overloads:[[[Le],function(e,t){return An(t[0].evaluate(e),e.properties())}],[[Le,Ve],function(e,t){var n=t[1];return An(t[0].evaluate(e),n.evaluate(e))}]]},"feature-state":[Ue,[Le],function(e,t){return An(t[0].evaluate(e),e.featureState||{})}],properties:[Ve,[],function(e){return e.properties()}],"geometry-type":[Le,[],function(e){return e.geometryType()}],id:[Ue,[],function(e){return e.id()}],zoom:[ze,[],function(e){return e.globals.zoom}],"heatmap-density":[ze,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[ze,[],function(e){return e.globals.lineProgress||0}],accumulated:[Ue,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[ze,Tn(ze),function(e,t){for(var n=0,r=0,i=t;r<i.length;r+=1)n+=i[r].evaluate(e);return n}],"*":[ze,Tn(ze),function(e,t){for(var n=1,r=0,i=t;r<i.length;r+=1)n*=i[r].evaluate(e);return n}],"-":{type:ze,overloads:[[[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)-n.evaluate(e)}],[[ze],function(e,t){return-t[0].evaluate(e)}]]},"/":[ze,[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)/n.evaluate(e)}],"%":[ze,[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)%n.evaluate(e)}],ln2:[ze,[],function(){return Math.LN2}],pi:[ze,[],function(){return Math.PI}],e:[ze,[],function(){return Math.E}],"^":[ze,[ze,ze],function(e,t){var n=t[1];return Math.pow(t[0].evaluate(e),n.evaluate(e))}],sqrt:[ze,[ze],function(e,t){return Math.sqrt(t[0].evaluate(e))}],log10:[ze,[ze],function(e,t){return Math.log(t[0].evaluate(e))/Math.LN10}],ln:[ze,[ze],function(e,t){return Math.log(t[0].evaluate(e))}],log2:[ze,[ze],function(e,t){return Math.log(t[0].evaluate(e))/Math.LN2}],sin:[ze,[ze],function(e,t){return Math.sin(t[0].evaluate(e))}],cos:[ze,[ze],function(e,t){return Math.cos(t[0].evaluate(e))}],tan:[ze,[ze],function(e,t){return Math.tan(t[0].evaluate(e))}],asin:[ze,[ze],function(e,t){return Math.asin(t[0].evaluate(e))}],acos:[ze,[ze],function(e,t){return Math.acos(t[0].evaluate(e))}],atan:[ze,[ze],function(e,t){return Math.atan(t[0].evaluate(e))}],min:[ze,Tn(ze),function(e,t){return Math.min.apply(Math,t.map((function(t){return t.evaluate(e)})))}],max:[ze,Tn(ze),function(e,t){return Math.max.apply(Math,t.map((function(t){return t.evaluate(e)})))}],abs:[ze,[ze],function(e,t){return Math.abs(t[0].evaluate(e))}],round:[ze,[ze],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ze,[ze],function(e,t){return Math.floor(t[0].evaluate(e))}],ceil:[ze,[ze],function(e,t){return Math.ceil(t[0].evaluate(e))}],"filter-==":[Be,[Le,Ue],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[Be,[Ue],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[Be,[Le],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[Be,[Le,Ue],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[Be,[Ue],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r<i}],"filter->":[Be,[Le,Ue],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[Be,[Ue],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[Be,[Le,Ue],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[Be,[Ue],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[Be,[Le,Ue],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[Be,[Ue],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[Be,[Ue],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[Be,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[Be,[qe(Le)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[Be,[qe(Ue)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[Be,[Le,qe(Ue)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[Be,[Le,qe(Ue)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:Be,overloads:[[[Be,Be],function(e,t){var n=t[1];return t[0].evaluate(e)&&n.evaluate(e)}],[Tn(Be),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(!r[n].evaluate(e))return!1;return!0}]]},any:{type:Be,overloads:[[[Be,Be],function(e,t){var n=t[1];return t[0].evaluate(e)||n.evaluate(e)}],[Tn(Be),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[Be,[Be],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[Be,[Le],function(e,t){var n=e.globals&&e.globals.isSupportedScript;return!n||n(t[0].evaluate(e))}],upcase:[Le,[Le],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[Le,[Le],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[Le,Tn(Ue),function(e,t){return t.map((function(t){return st(t.evaluate(e))})).join("")}],"resolved-locale":[Le,[He],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var Wn=function(e,t){this.expression=e,this._warningHistory={},this._evaluator=new yt,this._defaultValue=t?function(e){return"color"===e.type&&zn(e.default)?new Qe(0,0,0,0):"color"===e.type?Qe.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null};function Gn(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in On}function qn(e,t){var n=new Nt(On,[],t?function(e){var t={color:Ne,string:Le,number:ze,enum:Le,boolean:Be,formatted:We,resolvedImage:Ge};return"array"===e.type?qe(t[e.value]||Ue,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?Pn(new Wn(r,t)):Mn(n.errors)}Wn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},Wn.prototype.evaluate=function(e,t,n,r,i,o){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new lt("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var Yn=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!zt(t.expression)};Yn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)},Yn.prototype.evaluate=function(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)};var Zn=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!zt(t.expression),this.interpolationType=r};function $n(e,t){if("error"===(e=qn(e,t)).result)return e;var n=e.value.expression,r=Rt(n);if(!r&&!jn(t))return Mn([new Ie("","data expressions not supported")]);var i=Lt(n,["zoom"]);if(!i&&!In(t))return Mn([new Ie("","zoom expressions not supported")]);var o=function e(t){var n=null;if(t instanceof un)n=e(t.result);else if(t instanceof sn)for(var r=0,i=t.args;r<i.length&&!(n=e(i[r]));r+=1);else(t instanceof Ut||t instanceof on)&&t.input instanceof gt&&"zoom"===t.input.name&&(n=t);return n instanceof Ie||t.eachChild((function(t){var r=e(t);r instanceof Ie?n=r:!n&&r?n=new Ie("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Ie("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);return o||i?o instanceof Ie?Mn([o]):o instanceof on&&!Fn(t)?Mn([new Ie("",'"interpolate" expressions cannot be used with this property')]):Pn(o?new Zn(r?"camera":"composite",e.value,o.labels,o instanceof on?o.interpolation:void 0):new Yn(r?"constant":"source",e.value)):Mn([new Ie("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}Zn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i,o)},Zn.prototype.evaluate=function(e,t,n,r,i,o){return this._styleExpression.evaluate(e,t,n,r,i,o)},Zn.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?on.interpolationFactor(this.interpolationType,e,t,n):0};var Kn=function(e,t){this._parameters=e,this._specification=t,Pe(this,function e(t,n){var r,i,o,a="color"===n.type,s=t.stops&&"object"==typeof t.stops[0][0],u=s||!(s||void 0!==t.property),l=t.type||(Fn(n)?"exponential":"interval");if(a&&((t=Pe({},t)).stops&&(t.stops=t.stops.map((function(e){return[e[0],Qe.parse(e[1])]}))),t.default=Qe.parse(t.default?t.default:n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!rn[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===l)r=Un;else if("interval"===l)r=Vn;else if("categorical"===l){r=Nn,i=Object.create(null);for(var c=0,p=t.stops;c<p.length;c+=1){var f=p[c];i[f[0]]=f[1]}o=typeof t.stops[0][0]}else{if("identity"!==l)throw new Error('Unknown function type "'+l+'"');r=Hn}if(s){for(var d={},h=[],m=0;m<t.stops.length;m++){var v=t.stops[m],y=v[0].zoom;void 0===d[y]&&(d[y]={zoom:y,type:t.type,property:t.property,default:t.default,stops:[]},h.push(y)),d[y].stops.push([v[0].value,v[1]])}for(var g=[],b=0,x=h;b<x.length;b+=1){var _=x[b];g.push([d[_].zoom,e(d[_],n)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:on.interpolationFactor.bind(void 0,w),zoomStops:g.map((function(e){return e[0]})),evaluate:function(e,r){var i=e.zoom;return Un({stops:g,base:t.base},n,i).evaluate(i,r)}}}if(u){var E="exponential"===l?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:E,interpolationFactor:on.interpolationFactor.bind(void 0,E),zoomStops:t.stops.map((function(e){return e[0]})),evaluate:function(e){return r(t,n,e.zoom,i,o)}}}return{kind:"source",evaluate:function(e,a){var s=a&&a.properties?a.properties[t.property]:void 0;return void 0===s?Bn(t.default,n.default):r(t,n,s,i,o)}}}(this._parameters,this._specification))};function Xn(e){var t=e.key,n=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,a=e.styleSpec,s=[],u=Rn(n);if("object"!==u)return[new Ae(t,n,"object expected, "+u+" found")];for(var l in n){var c=l.split(".")[0],p=r[c]||r["*"],f=void 0;if(i[c])f=i[c];else if(r[c])f=wr;else if(i["*"])f=i["*"];else{if(!r["*"]){s.push(new Ae(t,n[l],'unknown property "'+l+'"'));continue}f=wr}s=s.concat(f({key:(t?t+".":t)+l,value:n[l],valueSpec:p,style:o,styleSpec:a,object:n,objectKey:l},n))}for(var d in r)i[d]||r[d].required&&void 0===r[d].default&&void 0===n[d]&&s.push(new Ae(t,n,'missing required property "'+d+'"'));return s}function Jn(e){var t=e.value,n=e.valueSpec,r=e.style,i=e.styleSpec,o=e.key,a=e.arrayElementValidator||wr;if("array"!==Rn(t))return[new Ae(o,t,"array expected, "+Rn(t)+" found")];if(n.length&&t.length!==n.length)return[new Ae(o,t,"array length "+n.length+" expected, length "+t.length+" found")];if(n["min-length"]&&t.length<n["min-length"])return[new Ae(o,t,"array length at least "+n["min-length"]+" expected, length "+t.length+" found")];var s={type:n.value,values:n.values};i.$version<7&&(s.function=n.function),"object"===Rn(n.value)&&(s=n.value);for(var u=[],l=0;l<t.length;l++)u=u.concat(a({array:t,arrayIndex:l,value:t[l],valueSpec:s,style:r,styleSpec:i,key:o+"["+l+"]"}));return u}function Qn(e){var t=e.key,n=e.value,r=e.valueSpec,i=Rn(n);return"number"===i&&n!=n&&(i="NaN"),"number"!==i?[new Ae(t,n,"number expected, "+i+" found")]:"minimum"in r&&n<r.minimum?[new Ae(t,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new Ae(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function er(e){var t,n,r,i=e.valueSpec,o=Me(e.value.type),a={},s="categorical"!==o&&void 0===e.value.property,u=!s,l="array"===Rn(e.value.stops)&&"array"===Rn(e.value.stops[0])&&"object"===Rn(e.value.stops[0][0]),c=Xn({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===o)return[new Ae(e.key,e.value,'identity function may not have a "stops" property')];var t=[],n=e.value;return t=t.concat(Jn({key:e.key,value:n,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:p})),"array"===Rn(n)&&0===n.length&&t.push(new Ae(e.key,n,"array must have at least one stop")),t},default:function(e){return wr({key:e.key,value:e.value,valueSpec:i,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&s&&c.push(new Ae(e.key,e.value,'missing required property "property"')),"identity"===o||e.value.stops||c.push(new Ae(e.key,e.value,'missing required property "stops"')),"exponential"===o&&e.valueSpec.expression&&!Fn(e.valueSpec)&&c.push(new Ae(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(u&&!jn(e.valueSpec)?c.push(new Ae(e.key,e.value,"property functions not supported")):s&&!In(e.valueSpec)&&c.push(new Ae(e.key,e.value,"zoom functions not supported"))),"categorical"!==o&&!l||void 0!==e.value.property||c.push(new Ae(e.key,e.value,'"property" property is required')),c;function p(e){var t=[],o=e.value,s=e.key;if("array"!==Rn(o))return[new Ae(s,o,"array expected, "+Rn(o)+" found")];if(2!==o.length)return[new Ae(s,o,"array length 2 expected, length "+o.length+" found")];if(l){if("object"!==Rn(o[0]))return[new Ae(s,o,"object expected, "+Rn(o[0])+" found")];if(void 0===o[0].zoom)return[new Ae(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new Ae(s,o,"object stop key must have value")];if(r&&r>Me(o[0].zoom))return[new Ae(s,o[0].zoom,"stop zoom values must appear in ascending order")];Me(o[0].zoom)!==r&&(r=Me(o[0].zoom),n=void 0,a={}),t=t.concat(Xn({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Qn,value:f}}))}else t=t.concat(f({key:s+"[0]",value:o[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},o));return Gn(je(o[1]))?t.concat([new Ae(s+"[1]",o[1],"expressions are not allowed in function stops.")]):t.concat(wr({key:s+"[1]",value:o[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function f(e,r){var s=Rn(e.value),u=Me(e.value),l=null!==e.value?e.value:r;if(t){if(s!==t)return[new Ae(e.key,l,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Ae(e.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return jn(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ae(e.key,l,c)]}return"categorical"!==o||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==o&&"number"===s&&void 0!==n&&u<n?[new Ae(e.key,l,"stop domain values must appear in ascending order")]:(n=u,"categorical"===o&&u in a?[new Ae(e.key,l,"stop domain values must be unique")]:(a[u]=!0,[])):[new Ae(e.key,l,"integer expected, found "+u)]}}function tr(e){var t=("property"===e.expressionContext?$n:qn)(je(e.value),e.valueSpec);if("error"===t.result)return t.value.map((function(t){return new Ae(""+e.key+t.key,e.value,t.message)}));var n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new Ae(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&&!zt(n))return[new Ae(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!zt(n))return[new Ae(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Lt(n,["zoom","feature-state"]))return[new Ae(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Rt(n))return[new Ae(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function nr(e){var t=e.key,n=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(Me(n))&&i.push(new Ae(t,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(Me(n))&&i.push(new Ae(t,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),i}function rr(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(var t=0,n=e.slice(1);t<n.length;t+=1){var r=n[t];if(!rr(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Kn.deserialize=function(e){return new Kn(e._parameters,e._specification)},Kn.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var ir={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function or(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};rr(e)||(e=sr(e));var t=qn(e,ir);if("error"===t.result)throw new Error(t.value.map((function(e){return e.key+": "+e.message})).join(", "));return{filter:function(e,n,r){return t.value.evaluate(e,n,{},r)},needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var n=1;n<t.length;n++)if(e(t[n]))return!0;return!1}(e)}}function ar(e,t){return e<t?-1:e>t?1:0}function sr(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?ur(e[1],e[2],"=="):"!="===n?pr(ur(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?ur(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(sr))):"all"===n?["all"].concat(e.slice(1).map(sr)):"none"===n?["all"].concat(e.slice(1).map(sr).map(pr)):"in"===n?lr(e[1],e.slice(2)):"!in"===n?pr(lr(e[1],e.slice(2))):"has"===n?cr(e[1]):"!has"===n?pr(cr(e[1])):"within"!==n||e}function ur(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function lr(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((function(e){return typeof e!=typeof t[0]}))?["filter-in-large",e,["literal",t.sort(ar)]]:["filter-in-small",e,["literal",t]]}}function cr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function pr(e){return["!",e]}function fr(e){return rr(je(e.value))?tr(Pe({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var n=t.value,r=t.key;if("array"!==Rn(n))return[new Ae(r,n,"array expected, "+Rn(n)+" found")];var i,o=t.styleSpec,a=[];if(n.length<1)return[new Ae(r,n,"filter array must have at least 1 element")];switch(a=a.concat(nr({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:t.style,styleSpec:t.styleSpec})),Me(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Me(n[1])&&a.push(new Ae(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new Ae(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(i=Rn(n[1]))&&a.push(new Ae(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s<n.length;s++)i=Rn(n[s]),"$type"===Me(n[1])?a=a.concat(nr({key:r+"["+s+"]",value:n[s],valueSpec:o.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&a.push(new Ae(r+"["+s+"]",n[s],"string, number, or boolean expected, "+i+" found"));break;case"any":case"all":case"none":for(var u=1;u<n.length;u++)a=a.concat(e({key:r+"["+u+"]",value:n[u],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=Rn(n[1]),2!==n.length?a.push(new Ae(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==i&&a.push(new Ae(r+"[1]",n[1],"string expected, "+i+" found"));break;case"within":i=Rn(n[1]),2!==n.length?a.push(new Ae(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"object"!==i&&a.push(new Ae(r+"[1]",n[1],"object expected, "+i+" found"))}return a}(e)}function dr(e,t){var n=e.key,r=e.style,i=e.styleSpec,o=e.value,a=e.objectKey,s=i[t+"_"+e.layerType];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===t&&u&&s[u[1]]&&s[u[1]].transition)return wr({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});var l,c=e.valueSpec||s[a];if(!c)return[new Ae(n,o,'unknown property "'+a+'"')];if("string"===Rn(o)&&jn(c)&&!c.tokens&&(l=/^{([^}]+)}$/.exec(o)))return[new Ae(n,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(l[1])+" }`.")];var p=[];return"symbol"===e.layerType&&("text-field"===a&&r&&!r.glyphs&&p.push(new Ae(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&zn(je(o))&&"identity"===Me(o.type)&&p.push(new Ae(n,o,'"text-font" does not support identity functions'))),p.concat(wr({key:e.key,value:o,valueSpec:c,style:r,styleSpec:i,expressionContext:"property",propertyType:t,propertyKey:a}))}function hr(e){return dr(e,"paint")}function mr(e){return dr(e,"layout")}function vr(e){var t=[],n=e.value,r=e.key,i=e.style,o=e.styleSpec;n.type||n.ref||t.push(new Ae(r,n,'either "type" or "ref" is required'));var a,s=Me(n.type),u=Me(n.ref);if(n.id)for(var l=Me(n.id),c=0;c<e.arrayIndex;c++){var p=i.layers[c];Me(p.id)===l&&t.push(new Ae(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+p.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(e){e in n&&t.push(new Ae(r,n[e],'"'+e+'" is prohibited for ref layers'))})),i.layers.forEach((function(e){Me(e.id)===u&&(a=e)})),a?a.ref?t.push(new Ae(r,n.ref,"ref cannot reference another ref layer")):s=Me(a.type):t.push(new Ae(r,n.ref,'ref layer "'+u+'" not found'));else if("background"!==s)if(n.source){var f=i.sources&&i.sources[n.source],d=f&&Me(f.type);f?"vector"===d&&"raster"===s?t.push(new Ae(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===d&&"raster"!==s?t.push(new Ae(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==d||n["source-layer"]?"raster-dem"===d&&"hillshade"!==s?t.push(new Ae(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===d&&f.lineMetrics||t.push(new Ae(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new Ae(r,n,'layer "'+n.id+'" must specify a "source-layer"')):t.push(new Ae(r,n.source,'source "'+n.source+'" not found'))}else t.push(new Ae(r,n,'missing required property "source"'));return t=t.concat(Xn({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return wr({key:r+".type",value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"})},filter:fr,layout:function(e){return Xn({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return mr(Pe({layerType:s},e))}}})},paint:function(e){return Xn({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return hr(Pe({layerType:s},e))}}})}}}))}function yr(e){var t=e.value,n=e.key,r=Rn(t);return"string"!==r?[new Ae(n,t,"string expected, "+r+" found")]:[]}var gr={promoteId:function(e){var t=e.key,n=e.value;if("string"===Rn(n))return yr({key:t,value:n});var r=[];for(var i in n)r.push.apply(r,yr({key:t+"."+i,value:n[i]}));return r}};function br(e){var t=e.value,n=e.key,r=e.styleSpec,i=e.style;if(!t.type)return[new Ae(n,t,'"type" is required')];var o,a=Me(t.type);switch(a){case"vector":case"raster":case"raster-dem":return Xn({key:n,value:t,valueSpec:r["source_"+a.replace("-","_")],style:e.style,styleSpec:r,objectElementValidators:gr});case"geojson":if(o=Xn({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r,objectElementValidators:gr}),t.cluster)for(var s in t.clusterProperties){var u=t.clusterProperties[s],l=u[0],c="string"==typeof l?[l,["accumulated"],["get",s]]:l;o.push.apply(o,tr({key:n+"."+s+".map",value:u[1],expressionContext:"cluster-map"})),o.push.apply(o,tr({key:n+"."+s+".reduce",value:c,expressionContext:"cluster-reduce"}))}return o;case"video":return Xn({key:n,value:t,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return Xn({key:n,value:t,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new Ae(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return nr({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:r})}}function xr(e){var t=e.value,n=e.styleSpec,r=n.light,i=e.style,o=[],a=Rn(t);if(void 0===t)return o;if("object"!==a)return o.concat([new Ae("light",t,"object expected, "+a+" found")]);for(var s in t){var u=s.match(/^(.*)-transition$/);o=o.concat(u&&r[u[1]]&&r[u[1]].transition?wr({key:s,value:t[s],valueSpec:n.transition,style:i,styleSpec:n}):r[s]?wr({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n}):[new Ae(s,t[s],'unknown property "'+s+'"')])}return o}var _r={"*":function(){return[]},array:Jn,boolean:function(e){var t=e.value,n=e.key,r=Rn(t);return"boolean"!==r?[new Ae(n,t,"boolean expected, "+r+" found")]:[]},number:Qn,color:function(e){var t=e.key,n=e.value,r=Rn(n);return"string"!==r?[new Ae(t,n,"color expected, "+r+" found")]:null===Je(n)?[new Ae(t,n,'color expected, "'+n+'" found')]:[]},constants:Te,enum:nr,filter:fr,function:er,layer:vr,object:Xn,source:br,light:xr,string:yr,formatted:function(e){return 0===yr(e).length?[]:tr(e)},resolvedImage:function(e){return 0===yr(e).length?[]:tr(e)}};function wr(e){var t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&zn(Me(t))?er(e):n.expression&&Gn(je(t))?tr(e):n.type&&_r[n.type]?_r[n.type](e):Xn(Pe({},e,{valueSpec:n.type?r[n.type]:n}))}function Er(e){var t=e.value,n=e.key,r=yr(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Ae(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Ae(n,t,'"glyphs" url must include a "{range}" token'))),r}function Dr(e,t){void 0===t&&(t=ke);var n=[];return n=n.concat(wr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Er,"*":function(){return[]}}})),e.constants&&(n=n.concat(Te({key:"constants",value:e.constants,style:e,styleSpec:t}))),Cr(n)}function Cr(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function Or(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return Cr(e.apply(this,t))}}Dr.source=Or(br),Dr.light=Or(xr),Dr.layer=Or(vr),Dr.filter=Or(fr),Dr.paintProperty=Or(hr),Dr.layoutProperty=Or(mr);var Sr=Dr,kr=Sr.light,Ar=Sr.paintProperty,Tr=Sr.layoutProperty;function Pr(e,t){var n=!1;if(t&&t.length)for(var r=0,i=t;r<i.length;r+=1)e.fire(new Oe(new Error(i[r].message))),n=!0;return n}var Mr=jr;function jr(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var i=new Int32Array(this.arrayBuffer);e=i[0],this.d=(t=i[1])+2*(n=i[2]);for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var u=i[3+r.length+1];this.keys=i.subarray(i[3+r.length],u),this.bboxes=i.subarray(u),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var l=0;l<this.d*this.d;l++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var c=n/t*e;this.min=-c,this.max=e+c}jr.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},jr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},jr.prototype._insertCell=function(e,t,n,r,i,o){this.cells[i].push(o)},jr.prototype.query=function(e,t,n,r,i){var o=this.min,a=this.max;if(e<=o&&t<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,r,this._queryCell,s,{},i),s},jr.prototype._queryCell=function(e,t,n,r,i,o,a,s){var u=this.cells[i];if(null!==u)for(var l=this.keys,c=this.bboxes,p=0;p<u.length;p++){var f=u[p];if(void 0===a[f]){var d=4*f;(s?s(c[d+0],c[d+1],c[d+2],c[d+3]):e<=c[d+2]&&t<=c[d+3]&&n>=c[d+0]&&r>=c[d+1])?(a[f]=!0,o.push(l[f])):a[f]=!1}}},jr.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var u=this._convertToCellCoord(e),l=this._convertToCellCoord(t),c=this._convertToCellCoord(n),p=this._convertToCellCoord(r),f=u;f<=c;f++)for(var d=l;d<=p;d++){var h=this.d*d+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&i.call(this,e,t,n,r,h,o,a,s))return}},jr.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},jr.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},jr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(t+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=t,a=0;a<e.length;a++){var s=e[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+e.length]=o,i.set(this.keys,o),i[3+e.length+1]=o+=this.keys.length,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer};var Ir=a.ImageData,Fr=a.ImageBitmap,Rr={};function zr(e,t,n){void 0===n&&(n={}),Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Rr[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}for(var Lr in zr("Object",Object),Mr.serialize=function(e,t){var n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Mr.deserialize=function(e){return new Mr(e.buffer)},zr("Grid",Mr),zr("Color",Qe),zr("Error",Error),zr("ResolvedImage",rt),zr("StylePropertyFunction",Kn),zr("StyleExpression",Wn,{omit:["_evaluator"]}),zr("ZoomDependentExpression",Zn),zr("ZoomConstantExpression",Yn),zr("CompoundExpression",gt,{omit:["_evaluate"]}),On)On[Lr]._classRegistryKey||zr("Expression_"+Lr,On[Lr]);function Br(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Nr(e){return Fr&&e instanceof Fr}function Vr(e,t){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(Br(e)||Nr(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){var n=e;return t&&t.push(n.buffer),n}if(e instanceof Ir)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){for(var r=[],i=0,o=e;i<o.length;i+=1)r.push(Vr(o[i],t));return r}if("object"==typeof e){var a=e.constructor,s=a._classRegistryKey;if(!s)throw new Error("can't serialize object of unregistered class");var u=a.serialize?a.serialize(e,t):{};if(!a.serialize){for(var l in e)if(e.hasOwnProperty(l)&&!(Rr[s].omit.indexOf(l)>=0)){var c=e[l];u[l]=Rr[s].shallow.indexOf(l)>=0?c:Vr(c,t)}e instanceof Error&&(u.message=e.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(u.$name=s),u}throw new Error("can't serialize object of type "+typeof e)}function Ur(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||Br(e)||Nr(e)||ArrayBuffer.isView(e)||e instanceof Ir)return e;if(Array.isArray(e))return e.map(Ur);if("object"==typeof e){var t=e.$name||"Object",n=Rr[t].klass;if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);for(var r=Object.create(n.prototype),i=0,o=Object.keys(e);i<o.length;i+=1){var a=o[i];if("$name"!==a){var s=e[a];r[a]=Rr[t].shallow.indexOf(a)>=0?s:Ur(s)}}return r}throw new Error("can't deserialize object of type "+typeof e)}var Hr=function(){this.first=!0};Hr.prototype.update=function(e,t){var n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))};var Wr={"Latin-1 Supplement":function(e){return e>=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}};function Gr(e){for(var t=0,n=e;t<n.length;t+=1)if(qr(n[t].charCodeAt(0)))return!0;return!1}function qr(e){return!(746!==e&&747!==e&&(e<4352||!(Wr["Bopomofo Extended"](e)||Wr.Bopomofo(e)||Wr["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Wr["CJK Compatibility Ideographs"](e)||Wr["CJK Compatibility"](e)||Wr["CJK Radicals Supplement"](e)||Wr["CJK Strokes"](e)||!(!Wr["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Wr["CJK Unified Ideographs Extension A"](e)||Wr["CJK Unified Ideographs"](e)||Wr["Enclosed CJK Letters and Months"](e)||Wr["Hangul Compatibility Jamo"](e)||Wr["Hangul Jamo Extended-A"](e)||Wr["Hangul Jamo Extended-B"](e)||Wr["Hangul Jamo"](e)||Wr["Hangul Syllables"](e)||Wr.Hiragana(e)||Wr["Ideographic Description Characters"](e)||Wr.Kanbun(e)||Wr["Kangxi Radicals"](e)||Wr["Katakana Phonetic Extensions"](e)||Wr.Katakana(e)&&12540!==e||!(!Wr["Halfwidth and Fullwidth Forms"](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)||!(!Wr["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Wr["Unified Canadian Aboriginal Syllabics"](e)||Wr["Unified Canadian Aboriginal Syllabics Extended"](e)||Wr["Vertical Forms"](e)||Wr["Yijing Hexagram Symbols"](e)||Wr["Yi Syllables"](e)||Wr["Yi Radicals"](e))))}function Yr(e){return!(qr(e)||function(e){return!!(Wr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Wr["General Punctuation"](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)||Wr["Letterlike Symbols"](e)||Wr["Number Forms"](e)||Wr["Miscellaneous Technical"](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)||Wr["Control Pictures"](e)&&9251!==e||Wr["Optical Character Recognition"](e)||Wr["Enclosed Alphanumerics"](e)||Wr["Geometric Shapes"](e)||Wr["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Wr["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Wr["CJK Symbols and Punctuation"](e)||Wr.Katakana(e)||Wr["Private Use Area"](e)||Wr["CJK Compatibility Forms"](e)||Wr["Small Form Variants"](e)||Wr["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Zr(e){return e>=1424&&e<=2303||Wr["Arabic Presentation Forms-A"](e)||Wr["Arabic Presentation Forms-B"](e)}function $r(e,t){return!(!t&&Zr(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Wr.Khmer(e))}function Kr(e){for(var t=0,n=e;t<n.length;t+=1)if(Zr(n[t].charCodeAt(0)))return!0;return!1}var Xr=null,Jr="unavailable",Qr=null,ei=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Jr="error"),Xr&&Xr(e)};function ti(){ni.fire(new Ce("pluginStateChange",{pluginStatus:Jr,pluginURL:Qr}))}var ni=new Se,ri=function(){return Jr},ii=function(){if("deferred"!==Jr||!Qr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Jr="loading",ti(),Qr&&xe({url:Qr},(function(e){e?ei(e):(Jr="loaded",ti())}))},oi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Jr||null!=oi.applyArabicShaping},isLoading:function(){return"loading"===Jr},setState:function(e){Jr=e.pluginStatus,Qr=e.pluginURL},isParsed:function(){return null!=oi.applyArabicShaping&&null!=oi.processBidirectionalText&&null!=oi.processStyledBidirectionalText},getPluginURL:function(){return Qr}},ai=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Hr,this.transition={})};ai.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;n<r.length;n+=1)if(!$r(r[n].charCodeAt(0),t))return!1;return!0}(e,oi.isLoaded())},ai.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ai.prototype.getCrossfadeParameters=function(){var e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}};var si=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(zn(e))return new Kn(e,t);if(Gn(e)){var n=$n(e,t);if("error"===n.result)throw new Error(n.value.map((function(e){return e.key+": "+e.message})).join(", "));return n.value}var r=e;return"string"==typeof e&&"color"===t.type&&(r=Qe.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};si.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},si.prototype.possiblyEvaluate=function(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)};var ui=function(e){this.property=e,this.value=new si(e,void 0)};ui.prototype.transitioned=function(e,t){return new ci(this.property,this.value,t,f({},e.transition,this.transition),e.now)},ui.prototype.untransitioned=function(){return new ci(this.property,this.value,null,{},0)};var li=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};li.prototype.getValue=function(e){return _(this._values[e].value.value)},li.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ui(this._values[e].property)),this._values[e].value=new si(this._values[e].property,null===t?void 0:_(t))},li.prototype.getTransition=function(e){return _(this._values[e].transition)},li.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ui(this._values[e].property)),this._values[e].transition=_(t)||void 0},li.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],i=this.getValue(r);void 0!==i&&(e[r]=i);var o=this.getTransition(r);void 0!==o&&(e[r+"-transition"]=o)}return e},li.prototype.transitioned=function(e,t){for(var n=new pi(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var o=i[r];n._values[o]=this._values[o].transitioned(e,t._values[o])}return n},li.prototype.untransitioned=function(){for(var e=new pi(this._properties),t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t];e._values[r]=this._values[r].untransitioned()}return e};var ci=function(e,t,n,r,i){this.property=e,this.value=t,this.begin=i+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};ci.prototype.possiblyEvaluate=function(e,t,n){var r=e.now||0,i=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r<this.begin)return o.possiblyEvaluate(e,t,n);var a=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,n),i,function(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(a))}return i};var pi=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};pi.prototype.possiblyEvaluate=function(e,t,n){for(var r=new hi(this._properties),i=0,o=Object.keys(this._values);i<o.length;i+=1){var a=o[i];r._values[a]=this._values[a].possiblyEvaluate(e,t,n)}return r},pi.prototype.hasTransition=function(){for(var e=0,t=Object.keys(this._values);e<t.length;e+=1)if(this._values[t[e]].prior)return!0;return!1};var fi=function(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)};fi.prototype.getValue=function(e){return _(this._values[e].value)},fi.prototype.setValue=function(e,t){this._values[e]=new si(this._values[e].property,null===t?void 0:_(t))},fi.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],i=this.getValue(r);void 0!==i&&(e[r]=i)}return e},fi.prototype.possiblyEvaluate=function(e,t,n){for(var r=new hi(this._properties),i=0,o=Object.keys(this._values);i<o.length;i+=1){var a=o[i];r._values[a]=this._values[a].possiblyEvaluate(e,t,n)}return r};var di=function(e,t,n){this.property=e,this.value=t,this.parameters=n};di.prototype.isConstant=function(){return"constant"===this.value.kind},di.prototype.constantOr=function(e){return"constant"===this.value.kind?this.value.value:e},di.prototype.evaluate=function(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)};var hi=function(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(e){return this._values[e]};var mi=function(e){this.specification=e};mi.prototype.possiblyEvaluate=function(e,t){return e.expression.evaluate(t)},mi.prototype.interpolate=function(e,t,n){var r=Wt[this.specification.type];return r?r(e,t,n):e};var vi=function(e,t){this.specification=e,this.overrides=t};vi.prototype.possiblyEvaluate=function(e,t,n,r){return new di(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)}:e.expression,t)},vi.prototype.interpolate=function(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new di(this,{kind:"constant",value:void 0},e.parameters);var r=Wt[this.specification.type];return r?new di(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e},vi.prototype.evaluate=function(e,t,n,r,i,o){return"constant"===e.kind?e.value:e.evaluate(t,n,r,i,o)};var yi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0===e.value)return new di(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){var i=e.expression.evaluate(t,null,{},n,r),o="resolvedImage"===e.property.specification.type&&"string"!=typeof i?i.name:i,a=this._calculate(o,o,o,t);return new di(this,{kind:"constant",value:a},t)}if("camera"===e.expression.kind){var s=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new di(this,{kind:"constant",value:s},t)}return new di(this,e.expression,t)},t.prototype.evaluate=function(e,t,n,r,i,o){if("source"===e.kind){var a=e.evaluate(t,n,r,i,o);return this._calculate(a,a,a,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value},t.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},t.prototype.interpolate=function(e){return e},t}(vi),gi=function(e){this.specification=e};gi.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){var i=e.expression.evaluate(t,null,{},n,r);return this._calculate(i,i,i,t)}return this._calculate(e.expression.evaluate(new ai(Math.floor(t.zoom-1),t)),e.expression.evaluate(new ai(Math.floor(t.zoom),t)),e.expression.evaluate(new ai(Math.floor(t.zoom+1),t)),t)}},gi.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},gi.prototype.interpolate=function(e){return e};var bi=function(e){this.specification=e};bi.prototype.possiblyEvaluate=function(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)},bi.prototype.interpolate=function(){return!1};var xi=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var n=e[t];n.specification.overridable&&this.overridableProperties.push(t);var r=this.defaultPropertyValues[t]=new si(n,void 0),i=this.defaultTransitionablePropertyValues[t]=new ui(n);this.defaultTransitioningPropertyValues[t]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};zr("DataDrivenProperty",vi),zr("DataConstantProperty",mi),zr("CrossFadedDataDrivenProperty",yi),zr("CrossFadedProperty",gi),zr("ColorRampProperty",bi);var _i=function(e){function t(t,n){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==t.type&&(this.metadata=(t=t).metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),n.layout&&(this._unevaluatedLayout=new fi(n.layout)),n.paint)){for(var r in this._transitionablePaint=new li(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(n.paint)}}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,n){void 0===n&&(n={}),null!=t&&this._validate(Tr,"layers."+this.id+".layout."+e,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)},t.prototype.getPaintProperty=function(e){return g(e,"-transition")?this._transitionablePaint.getTransition(e.slice(0,-"-transition".length)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t&&this._validate(Ar,"layers."+this.id+".paint."+e,e,t,n))return!1;if(g(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;var r=this._transitionablePaint._values[e],i="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var s=this._transitionablePaint._values[e].value;return s.isDataDriven()||o||i||this._handleOverridablePaintPropertyUpdate(e,a,s)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,n){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)},t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),x(e,(function(e,t){return!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)}))},t.prototype._validate=function(e,t,n,r,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&Pr(this,e.call(Sr,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:ke,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof di&&jn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(Se),wi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ei=function(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},Di=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ci(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map((function(e){var i=wi[e.type].BYTES_PER_ELEMENT,o=n=Oi(n,Math.max(t,i)),a=e.components||1;return r=Math.max(r,i),n+=i*a,{name:e.name,type:e.type,components:a,offset:o}})),size:Oi(n,Math.max(r,t)),alignment:t}}function Oi(e,t){return Math.ceil(e/t)*t}Di.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},Di.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},Di.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Di.prototype.clear=function(){this.length=0},Di.prototype.resize=function(e){this.reserve(e),this.length=e},Di.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},Di.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Si=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e},t}(Di);Si.prototype.bytesPerElement=4,zr("StructArrayLayout2i4",Si);var ki=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,e},t}(Di);ki.prototype.bytesPerElement=8,zr("StructArrayLayout4i8",ki);var Ai=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e},t}(Di);Ai.prototype.bytesPerElement=12,zr("StructArrayLayout2i4i12",Ai);var Ti=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=4*e,u=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[u+4]=r,this.uint8[u+5]=i,this.uint8[u+6]=o,this.uint8[u+7]=a,e},t}(Di);Ti.prototype.bytesPerElement=8,zr("StructArrayLayout2i4ub8",Ti);var Pi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e},t}(Di);Pi.prototype.bytesPerElement=8,zr("StructArrayLayout2f8",Pi);var Mi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,u,l){var c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,i,o,a,s,u,l)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c){var p=10*e;return this.uint16[p+0]=t,this.uint16[p+1]=n,this.uint16[p+2]=r,this.uint16[p+3]=i,this.uint16[p+4]=o,this.uint16[p+5]=a,this.uint16[p+6]=s,this.uint16[p+7]=u,this.uint16[p+8]=l,this.uint16[p+9]=c,e},t}(Di);Mi.prototype.bytesPerElement=20,zr("StructArrayLayout10ui20",Mi);var ji=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,u,l,c,p){var f=this.length;return this.resize(f+1),this.emplace(f,e,t,n,r,i,o,a,s,u,l,c,p)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c,p,f){var d=12*e;return this.int16[d+0]=t,this.int16[d+1]=n,this.int16[d+2]=r,this.int16[d+3]=i,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=u,this.int16[d+8]=l,this.int16[d+9]=c,this.int16[d+10]=p,this.int16[d+11]=f,e},t}(Di);ji.prototype.bytesPerElement=24,zr("StructArrayLayout4i4ui4i24",ji);var Ii=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=3*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,e},t}(Di);Ii.prototype.bytesPerElement=12,zr("StructArrayLayout3f12",Ii);var Fi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.uint32[1*e+0]=t,e},t}(Di);Fi.prototype.bytesPerElement=4,zr("StructArrayLayout1ul4",Fi);var Ri=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,u){var l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,i,o,a,s,u)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l){var c=10*e,p=5*e;return this.int16[c+0]=t,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=i,this.int16[c+4]=o,this.int16[c+5]=a,this.uint32[p+3]=s,this.uint16[c+8]=u,this.uint16[c+9]=l,e},t}(Di);Ri.prototype.bytesPerElement=20,zr("StructArrayLayout6i1ul2ui20",Ri);var zi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e},t}(Di);zi.prototype.bytesPerElement=12,zr("StructArrayLayout2i2i2i12",zi);var Li=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,i)},t.prototype.emplace=function(e,t,n,r,i,o){var a=4*e,s=8*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,e},t}(Di);Li.prototype.bytesPerElement=16,zr("StructArrayLayout2f1f2i16",Li);var Bi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=12*e,a=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,e},t}(Di);Bi.prototype.bytesPerElement=12,zr("StructArrayLayout2ub2f12",Bi);var Ni=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,this.uint16[i+2]=r,e},t}(Di);Ni.prototype.bytesPerElement=6,zr("StructArrayLayout3ui6",Ni);var Vi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v){var y=this.length;return this.resize(y+1),this.emplace(y,e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v,y){var g=24*e,b=12*e,x=48*e;return this.int16[g+0]=t,this.int16[g+1]=n,this.uint16[g+2]=r,this.uint16[g+3]=i,this.uint32[b+2]=o,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[g+10]=u,this.uint16[g+11]=l,this.uint16[g+12]=c,this.float32[b+7]=p,this.float32[b+8]=f,this.uint8[x+36]=d,this.uint8[x+37]=h,this.uint8[x+38]=m,this.uint32[b+10]=v,this.int16[g+22]=y,e},t}(Di);Vi.prototype.bytesPerElement=48,zr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Vi);var Ui=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v,y,g,b,x,_,w,E,D,C,O,S){var k=this.length;return this.resize(k+1),this.emplace(k,e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v,y,g,b,x,_,w,E,D,C,O,S)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v,y,g,b,x,_,w,E,D,C,O,S,k){var A=34*e,T=17*e;return this.int16[A+0]=t,this.int16[A+1]=n,this.int16[A+2]=r,this.int16[A+3]=i,this.int16[A+4]=o,this.int16[A+5]=a,this.int16[A+6]=s,this.int16[A+7]=u,this.uint16[A+8]=l,this.uint16[A+9]=c,this.uint16[A+10]=p,this.uint16[A+11]=f,this.uint16[A+12]=d,this.uint16[A+13]=h,this.uint16[A+14]=m,this.uint16[A+15]=v,this.uint16[A+16]=y,this.uint16[A+17]=g,this.uint16[A+18]=b,this.uint16[A+19]=x,this.uint16[A+20]=_,this.uint16[A+21]=w,this.uint16[A+22]=E,this.uint32[T+12]=D,this.float32[T+13]=C,this.float32[T+14]=O,this.float32[T+15]=S,this.float32[T+16]=k,e},t}(Di);Ui.prototype.bytesPerElement=68,zr("StructArrayLayout8i15ui1ul4f68",Ui);var Hi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.float32[1*e+0]=t,e},t}(Di);Hi.prototype.bytesPerElement=4,zr("StructArrayLayout1f4",Hi);var Wi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=3*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,e},t}(Di);Wi.prototype.bytesPerElement=6,zr("StructArrayLayout3i6",Wi);var Gi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=4*e;return this.uint32[2*e+0]=t,this.uint16[i+2]=n,this.uint16[i+3]=r,e},t}(Di);Gi.prototype.bytesPerElement=8,zr("StructArrayLayout1ul2ui8",Gi);var qi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e},t}(Di);qi.prototype.bytesPerElement=4,zr("StructArrayLayout2ui4",qi);var Yi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.uint16[1*e+0]=t,e},t}(Di);Yi.prototype.bytesPerElement=2,zr("StructArrayLayout1ui2",Yi);var Zi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,e},t}(Di);Zi.prototype.bytesPerElement=16,zr("StructArrayLayout4f16",Zi);var $i=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(Ei);$i.prototype.size=20;var Ki=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new $i(this,e)},t}(Ri);zr("CollisionBoxArray",Ki);var Xi=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(t.prototype,n),t}(Ei);Xi.prototype.size=48;var Ji=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Xi(this,e)},t}(Vi);zr("PlacedSymbolArray",Ji);var Qi=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+12]=e},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(t.prototype,n),t}(Ei);Qi.prototype.size=68;var eo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Qi(this,e)},t}(Ui);zr("SymbolInstanceArray",eo);var to=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t}(Hi);zr("GlyphOffsetArray",to);var no=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t}(Wi);zr("SymbolLineVertexArray",no);var ro=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(t.prototype,n),t}(Ei);ro.prototype.size=8;var io=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new ro(this,e)},t}(Gi);zr("FeatureIndexArray",io);var oo=Ci([{name:"a_pos",components:2,type:"Int16"}],4).members,ao=function(e){void 0===e&&(e=[]),this.segments=e};function so(e,t){return 256*(e=c(Math.floor(e),0,255))+c(Math.floor(t),0,255)}ao.prototype.prepareSegment=function(e,t,n,r){var i=this.segments[this.segments.length-1];return e>ao.MAX_VERTEX_ARRAY_LENGTH&&E("Max vertices per segment is "+ao.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!i||i.vertexLength+e>ao.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},ao.prototype.get=function(){return this.segments},ao.prototype.destroy=function(){for(var e=0,t=this.segments;e<t.length;e+=1){var n=t[e];for(var r in n.vaos)n.vaos[r].destroy()}},ao.simpleSegment=function(e,t,n,r){return new ao([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},ao.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,zr("SegmentVector",ao);var uo=Ci([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),lo=t((function(e){e.exports=function(e,t){var n,r,i,o,a,s,u,l;for(r=e.length-(n=3&e.length),i=t,a=3432918353,s=461845907,l=0;l<r;)u=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,i=27492+(65535&(o=5*(65535&(i=(i^=u=(65535&(u=(u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&e.charCodeAt(l+2))<<16;case 2:u^=(255&e.charCodeAt(l+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(l)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),co=t((function(e){e.exports=function(e,t){for(var n,r=e.length,i=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),po=lo,fo=co;po.murmur3=lo,po.murmur2=fo;var ho=function(){this.ids=[],this.positions=[],this.indexed=!1};ho.prototype.add=function(e,t,n,r){this.ids.push(vo(e)),this.positions.push(t,n,r)},ho.prototype.getPositions=function(e){for(var t=vo(e),n=0,r=this.ids.length-1;n<r;){var i=n+r>>1;this.ids[i]>=t?r=i:n=i+1}for(var o=[];this.ids[n]===t;)o.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return o},ho.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,i){for(;r<i;){for(var o=t[r+i>>1],a=r-1,s=i+1;;){do{a++}while(t[a]<o);do{s--}while(t[s]>o);if(a>=s)break;yo(t,a,s),yo(n,3*a,3*s),yo(n,3*a+1,3*s+1),yo(n,3*a+2,3*s+2)}s-r<i-s?(e(t,n,r,s),r=s+1):(e(t,n,s+1,i),i=s)}}(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}},ho.deserialize=function(e){var t=new ho;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t};var mo=Math.pow(2,53)-1;function vo(e){var t=+e;return!isNaN(t)&&t<=mo?t:po(String(e))}function yo(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}zr("FeaturePositionMap",ho);var go=function(e,t){this.gl=e.gl,this.location=t},bo=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))},t}(go),xo=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))},t}(go),_o=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0]}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))},t}(go),wo=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0]}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))},t}(go),Eo=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0,0]}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))},t}(go),Do=function(e){function t(t,n){e.call(this,t,n),this.current=Qe.transparent}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))},t}(go),Co=new Float32Array(16),Oo=function(e){function t(t,n){e.call(this,t,n),this.current=Co}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(var t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}},t}(go);function So(e){return[so(255*e.r,255*e.g),so(255*e.b,255*e.a)]}var ko=function(e,t,n){this.value=e,this.uniformNames=t.map((function(e){return"u_"+e})),this.type=n};ko.prototype.setUniform=function(e,t,n){e.set(n.constantOr(this.value))},ko.prototype.getBinding=function(e,t,n){return"color"===this.type?new Do(e,t):new xo(e,t)};var Ao=function(e,t){this.uniformNames=t.map((function(e){return"u_"+e})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Ao.prototype.setConstantPatternPositions=function(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr},Ao.prototype.setUniform=function(e,t,n,r){var i="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;i&&e.set(i)},Ao.prototype.getBinding=function(e,t,n){return"u_pattern"===n.substr(0,9)?new Eo(e,t):new xo(e,t)};var To=function(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0}})),this.paintVertexArray=new r};To.prototype.populatePaintArray=function(e,t,n,r,i){var o=this.paintVertexArray.length,a=this.expression.evaluate(new ai(0),t,{},r,[],i);this.paintVertexArray.resize(e),this._setPaintValue(o,e,a)},To.prototype.updatePaintArray=function(e,t,n,r){var i=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(e,t,i)},To.prototype._setPaintValue=function(e,t,n){if("color"===this.type)for(var r=So(n),i=e;i<t;i++)this.paintVertexArray.emplace(i,r[0],r[1]);else{for(var o=e;o<t;o++)this.paintVertexArray.emplace(o,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}},To.prototype.upload=function(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))},To.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var Po=function(e,t,n,r,i,o){this.expression=e,this.uniformNames=t.map((function(e){return"u_"+e+"_t"})),this.type=n,this.useIntegerZoom=r,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0}})),this.paintVertexArray=new o};Po.prototype.populatePaintArray=function(e,t,n,r,i){var o=this.expression.evaluate(new ai(this.zoom),t,{},r,[],i),a=this.expression.evaluate(new ai(this.zoom+1),t,{},r,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(s,e,o,a)},Po.prototype.updatePaintArray=function(e,t,n,r){var i=this.expression.evaluate({zoom:this.zoom},n,r),o=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(e,t,i,o)},Po.prototype._setPaintValue=function(e,t,n,r){if("color"===this.type)for(var i=So(n),o=So(r),a=e;a<t;a++)this.paintVertexArray.emplace(a,i[0],i[1],o[0],o[1]);else{for(var s=e;s<t;s++)this.paintVertexArray.emplace(s,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}},Po.prototype.upload=function(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))},Po.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Po.prototype.setUniform=function(e,t){var n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,r=c(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(r)},Po.prototype.getBinding=function(e,t,n){return new xo(e,t)};var Mo=function(e,t,n,r,i,o){this.expression=e,this.type=t,this.useIntegerZoom=n,this.zoom=r,this.layerId=o,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Mo.prototype.populatePaintArray=function(e,t,n){var r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],n)},Mo.prototype.updatePaintArray=function(e,t,n,r,i){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],i)},Mo.prototype._setPaintValues=function(e,t,n,r){if(r&&n){var i=r[n.min],o=r[n.mid],a=r[n.max];if(i&&o&&a)for(var s=e;s<t;s++)this.zoomInPaintVertexArray.emplace(s,o.tl[0],o.tl[1],o.br[0],o.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],o.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,o.tl[0],o.tl[1],o.br[0],o.br[1],a.tl[0],a.tl[1],a.br[0],a.br[1],o.pixelRatio,a.pixelRatio)}},Mo.prototype.upload=function(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,uo.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,uo.members,this.expression.isStateDependent))},Mo.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var jo=function(e,t,n){this.binders={},this._buffers=[];var r=[];for(var i in e.paint._values)if(n(i)){var o=e.paint.get(i);if(o instanceof di&&jn(o.property.specification)){var a=Fo(i,e.type),s=o.value,u=o.property.specification.type,l=o.property.useIntegerZoom,c=o.property.specification["property-type"],p="cross-faded"===c||"cross-faded-data-driven"===c;if("constant"===s.kind)this.binders[i]=p?new Ao(s.value,a):new ko(s.value,a,u),r.push("/u_"+i);else if("source"===s.kind||p){var f=Ro(i,u,"source");this.binders[i]=p?new Mo(s,u,l,t,f,e.id):new To(s,a,u,f),r.push("/a_"+i)}else{var d=Ro(i,u,"composite");this.binders[i]=new Po(s,a,u,l,t,d),r.push("/z_"+i)}}}this.cacheKey=r.sort().join("")};jo.prototype.getMaxValue=function(e){var t=this.binders[e];return t instanceof To||t instanceof Po?t.maxValue:0},jo.prototype.populatePaintArrays=function(e,t,n,r,i){for(var o in this.binders){var a=this.binders[o];(a instanceof To||a instanceof Po||a instanceof Mo)&&a.populatePaintArray(e,t,n,r,i)}},jo.prototype.setConstantPatternPositions=function(e,t){for(var n in this.binders){var r=this.binders[n];r instanceof Ao&&r.setConstantPatternPositions(e,t)}},jo.prototype.updatePaintArrays=function(e,t,n,r,i){var o=!1;for(var a in e)for(var s=0,u=t.getPositions(a);s<u.length;s+=1){var l=u[s],c=n.feature(l.index);for(var p in this.binders){var f=this.binders[p];if((f instanceof To||f instanceof Po||f instanceof Mo)&&!0===f.expression.isStateDependent){var d=r.paint.get(p);f.expression=d.value,f.updatePaintArray(l.start,l.end,c,e[a],i),o=!0}}}return o},jo.prototype.defines=function(){var e=[];for(var t in this.binders){var n=this.binders[t];(n instanceof ko||n instanceof Ao)&&e.push.apply(e,n.uniformNames.map((function(e){return"#define HAS_UNIFORM_"+e})))}return e},jo.prototype.getBinderAttributes=function(){var e=[];for(var t in this.binders){var n=this.binders[t];if(n instanceof To||n instanceof Po)for(var r=0;r<n.paintVertexAttributes.length;r++)e.push(n.paintVertexAttributes[r].name);else if(n instanceof Mo)for(var i=0;i<uo.members.length;i++)e.push(uo.members[i].name)}return e},jo.prototype.getBinderUniforms=function(){var e=[];for(var t in this.binders){var n=this.binders[t];if(n instanceof ko||n instanceof Ao||n instanceof Po)for(var r=0,i=n.uniformNames;r<i.length;r+=1)e.push(i[r])}return e},jo.prototype.getPaintVertexBuffers=function(){return this._buffers},jo.prototype.getUniforms=function(e,t){var n=[];for(var r in this.binders){var i=this.binders[r];if(i instanceof ko||i instanceof Ao||i instanceof Po)for(var o=0,a=i.uniformNames;o<a.length;o+=1){var s=a[o];if(t[s]){var u=i.getBinding(e,t[s],s);n.push({name:s,property:r,binding:u})}}}return n},jo.prototype.setUniforms=function(e,t,n,r){for(var i=0,o=t;i<o.length;i+=1){var a=o[i],s=a.name,u=a.property;this.binders[u].setUniform(a.binding,r,n.get(u),s)}},jo.prototype.updatePaintBuffers=function(e){for(var t in this._buffers=[],this.binders){var n=this.binders[t];if(e&&n instanceof Mo){var r=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(n instanceof To||n instanceof Po)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},jo.prototype.upload=function(e){for(var t in this.binders){var n=this.binders[t];(n instanceof To||n instanceof Po||n instanceof Mo)&&n.upload(e)}this.updatePaintBuffers()},jo.prototype.destroy=function(){for(var e in this.binders){var t=this.binders[e];(t instanceof To||t instanceof Po||t instanceof Mo)&&t.destroy()}};var Io=function(e,t,n){void 0===n&&(n=function(){return!0}),this.programConfigurations={};for(var r=0,i=e;r<i.length;r+=1){var o=i[r];this.programConfigurations[o.id]=new jo(o,t,n)}this.needsUpload=!1,this._featureMap=new ho,this._bufferOffset=0};function Fo(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(t+"-","").replace(/-/g,"_")]}function Ro(e,t,n){var r={color:{source:Pi,composite:Zi},number:{source:Hi,composite:Pi}},i=function(e){return{"line-pattern":{source:Mi,composite:Mi},"fill-pattern":{source:Mi,composite:Mi},"fill-extrusion-pattern":{source:Mi,composite:Mi}}[e]}(e);return i&&i[n]||r[t][n]}Io.prototype.populatePaintArrays=function(e,t,n,r,i,o){for(var a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(e,t,r,i,o);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0},Io.prototype.updatePaintArrays=function(e,t,n,r){for(var i=0,o=n;i<o.length;i+=1){var a=o[i];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,r)||this.needsUpload}},Io.prototype.get=function(e){return this.programConfigurations[e]},Io.prototype.upload=function(e){if(this.needsUpload){for(var t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}},Io.prototype.destroy=function(){for(var e in this.programConfigurations)this.programConfigurations[e].destroy()},zr("ConstantBinder",ko),zr("CrossFadedConstantBinder",Ao),zr("SourceExpressionBinder",To),zr("CrossFadedCompositeBinder",Mo),zr("CompositeExpressionBinder",Po),zr("ProgramConfiguration",jo,{omit:["_buffers"]}),zr("ProgramConfigurationSet",Io);var zo=Math.pow(2,14)-1,Lo=-zo-1;function Bo(e){for(var t=8192/e.extent,n=e.loadGeometry(),r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.length;o++){var a=i[o],s=Math.round(a.x*t),u=Math.round(a.y*t);a.x=c(s,Lo,zo),a.y=c(u,Lo,zo),(s<a.x||s>a.x+1||u<a.y||u>a.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function No(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Bo(e):[]}}function Vo(e,t,n,r,i){e.emplaceBack(2*t+(r+1)/2,2*n+(i+1)/2)}var Uo=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Ni,this.segments=new ao,this.programConfigurations=new Io(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Ho(e,t){for(var n=0;n<e.length;n++)if(Jo(t,e[n]))return!0;for(var r=0;r<t.length;r++)if(Jo(e,t[r]))return!0;return!!Yo(e,t)}function Wo(e,t,n){return!!Jo(e,t)||!!$o(t,e,n)}function Go(e,t){if(1===e.length)return Xo(t,e[0]);for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;i++)if(Jo(e,r[i]))return!0;for(var o=0;o<e.length;o++)if(Xo(t,e[o]))return!0;for(var a=0;a<t.length;a++)if(Yo(e,t[a]))return!0;return!1}function qo(e,t,n){if(e.length>1){if(Yo(e,t))return!0;for(var r=0;r<t.length;r++)if($o(t[r],e,n))return!0}for(var i=0;i<e.length;i++)if($o(e[i],t,n))return!0;return!1}function Yo(e,t){if(0===e.length||0===t.length)return!1;for(var n=0;n<e.length-1;n++)for(var r=e[n],i=e[n+1],o=0;o<t.length-1;o++)if(Zo(r,i,t[o],t[o+1]))return!0;return!1}function Zo(e,t,n,r){return D(e,n,r)!==D(t,n,r)&&D(e,t,n)!==D(e,t,r)}function $o(e,t,n){var r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(var i=1;i<t.length;i++)if(Ko(e,t[i-1],t[i])<r)return!0;return!1}function Ko(e,t,n){var r=t.distSqr(n);if(0===r)return e.distSqr(t);var i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return e.distSqr(i<0?t:i>1?n:n.sub(t)._mult(i)._add(t))}function Xo(e,t){for(var n,r,i,o=!1,a=0;a<e.length;a++)for(var s=0,u=(n=e[a]).length-1;s<n.length;u=s++)(r=n[s]).y>t.y!=(i=n[u]).y>t.y&&t.x<(i.x-r.x)*(t.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function Jo(e,t){for(var n=!1,r=0,i=e.length-1;r<e.length;i=r++){var o=e[r],a=e[i];o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function Qo(e,t,n){var r=n[0],i=n[2];if(e.x<r.x&&t.x<r.x||e.x>i.x&&t.x>i.x||e.y<r.y&&t.y<r.y||e.y>i.y&&t.y>i.y)return!1;var o=D(e,t,n[0]);return o!==D(e,t,n[1])||o!==D(e,t,n[2])||o!==D(e,t,n[3])}function ea(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function ta(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function na(e,t,n,r,o){if(!t[0]&&!t[1])return e;var a=i.convert(t)._mult(o);"viewport"===n&&a._rotate(-r);for(var s=[],u=0;u<e.length;u++)s.push(e[u].sub(a));return s}Uo.prototype.populate=function(e,t,n){var r=this.layers[0],i=[],o=null;"circle"===r.type&&(o=r.layout.get("circle-sort-key"));for(var a=0,s=e;a<s.length;a+=1){var u=s[a],l=u.feature,c=u.id,p=u.index,f=u.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,h=No(l,d);if(this.layers[0]._featureFilter.filter(new ai(this.zoom),h,n)){var m=o?o.evaluate(h,{},n):void 0,v={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:p,geometry:d?h.geometry:Bo(l),patterns:{},sortKey:m};i.push(v)}}o&&i.sort((function(e,t){return e.sortKey-t.sortKey}));for(var y=0,g=i;y<g.length;y+=1){var b=g[y],x=b.geometry,_=b.index,w=b.sourceLayerIndex,E=e[_].feature;this.addFeature(b,x,_,n),t.featureIndex.insert(E,x,_,w,this.index)}},Uo.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Uo.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Uo.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Uo.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,oo),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Uo.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Uo.prototype.addFeature=function(e,t,n,r){for(var i=0,o=t;i<o.length;i+=1)for(var a=0,s=o[i];a<s.length;a+=1){var u=s[a],l=u.x,c=u.y;if(!(l<0||l>=8192||c<0||c>=8192)){var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),f=p.vertexLength;Vo(this.layoutVertexArray,l,c,-1,-1),Vo(this.layoutVertexArray,l,c,1,-1),Vo(this.layoutVertexArray,l,c,1,1),Vo(this.layoutVertexArray,l,c,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),p.vertexLength+=4,p.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r)},zr("CircleBucket",Uo,{omit:["layers"]});var ra=new xi({"circle-sort-key":new vi(ke.layout_circle["circle-sort-key"])}),ia={paint:new xi({"circle-radius":new vi(ke.paint_circle["circle-radius"]),"circle-color":new vi(ke.paint_circle["circle-color"]),"circle-blur":new vi(ke.paint_circle["circle-blur"]),"circle-opacity":new vi(ke.paint_circle["circle-opacity"]),"circle-translate":new mi(ke.paint_circle["circle-translate"]),"circle-translate-anchor":new mi(ke.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new mi(ke.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new mi(ke.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new vi(ke.paint_circle["circle-stroke-width"]),"circle-stroke-color":new vi(ke.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new vi(ke.paint_circle["circle-stroke-opacity"])}),layout:ra},oa="undefined"!=typeof Float32Array?Float32Array:Array;function aa(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 sa(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],p=t[8],f=t[9],d=t[10],h=t[11],m=t[12],v=t[13],y=t[14],g=t[15],b=n[0],x=n[1],_=n[2],w=n[3];return e[0]=b*r+x*s+_*p+w*m,e[1]=b*i+x*u+_*f+w*v,e[2]=b*o+x*l+_*d+w*y,e[3]=b*a+x*c+_*h+w*g,e[4]=(b=n[4])*r+(x=n[5])*s+(_=n[6])*p+(w=n[7])*m,e[5]=b*i+x*u+_*f+w*v,e[6]=b*o+x*l+_*d+w*y,e[7]=b*a+x*c+_*h+w*g,e[8]=(b=n[8])*r+(x=n[9])*s+(_=n[10])*p+(w=n[11])*m,e[9]=b*i+x*u+_*f+w*v,e[10]=b*o+x*l+_*d+w*y,e[11]=b*a+x*c+_*h+w*g,e[12]=(b=n[12])*r+(x=n[13])*s+(_=n[14])*p+(w=n[15])*m,e[13]=b*i+x*u+_*f+w*v,e[14]=b*o+x*l+_*d+w*y,e[15]=b*a+x*c+_*h+w*g,e}Math.hypot||(Math.hypot=function(){for(var e=arguments,t=0,n=arguments.length;n--;)t+=e[n]*e[n];return Math.sqrt(t)});var ua,la=sa;function ca(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e}ua=new oa(3),oa!=Float32Array&&(ua[0]=0,ua[1]=0,ua[2]=0),function(){var e=new oa(4);oa!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}();var pa=(function(){var e=new oa(2);oa!=Float32Array&&(e[0]=0,e[1]=0)}(),function(e){function t(t){e.call(this,t,ia)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new Uo(e)},t.prototype.queryRadius=function(e){var t=e;return ea("circle-radius",this,t)+ea("circle-stroke-width",this,t)+ta(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,a,s){for(var u=na(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),l=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),c="map"===this.paint.get("circle-pitch-alignment"),p=c?u:function(e,t){return e.map((function(e){return fa(e,t)}))}(u,s),f=c?l*a:l,d=0,h=r;d<h.length;d+=1)for(var m=0,v=h[d];m<v.length;m+=1){var y=v[m],g=c?y:fa(y,s),b=f,x=ca([],[y.x,y.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?b*=x[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(b*=o.cameraToCenterDistance/x[3]),Wo(p,g,b))return!0}return!1},t}(_i));function fa(e,t){var n=ca([],[e.x,e.y,0,1],t);return new i(n[0]/n[3],n[1]/n[3])}var da=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(Uo);function ha(e,t,n,r){var i=t.width,o=t.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return e.width=i,e.height=o,e.data=r,e}function ma(e,t,n){var r=t.width,i=t.height;if(r!==e.width||i!==e.height){var o=ha({},{width:r,height:i},n);va(e,o,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,i)},n),e.width=r,e.height=i,e.data=o.data}}function va(e,t,n,r,i,o){if(0===i.width||0===i.height)return t;if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=e.data,s=t.data,u=0;u<i.height;u++)for(var l=((n.y+u)*e.width+n.x)*o,c=((r.y+u)*t.width+r.x)*o,p=0;p<i.width*o;p++)s[c+p]=a[l+p];return t}zr("HeatmapBucket",da,{omit:["layers"]});var ya=function(e,t){ha(this,e,1,t)};ya.prototype.resize=function(e){ma(this,e,1)},ya.prototype.clone=function(){return new ya({width:this.width,height:this.height},new Uint8Array(this.data))},ya.copy=function(e,t,n,r,i){va(e,t,n,r,i,1)};var ga=function(e,t){ha(this,e,4,t)};ga.prototype.resize=function(e){ma(this,e,4)},ga.prototype.replace=function(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e},ga.prototype.clone=function(){return new ga({width:this.width,height:this.height},new Uint8Array(this.data))},ga.copy=function(e,t,n,r,i){va(e,t,n,r,i,4)},zr("AlphaImage",ya),zr("RGBAImage",ga);var ba={paint:new xi({"heatmap-radius":new vi(ke.paint_heatmap["heatmap-radius"]),"heatmap-weight":new vi(ke.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new mi(ke.paint_heatmap["heatmap-intensity"]),"heatmap-color":new bi(ke.paint_heatmap["heatmap-color"]),"heatmap-opacity":new mi(ke.paint_heatmap["heatmap-opacity"])})};function xa(e){var t={},n=e.resolution||256,r=e.clips?e.clips.length:1,i=e.image||new ga({width:n,height:r}),o=function(n,r,o){t[e.evaluationKey]=o;var a=e.expression.evaluate(t);i.data[n+r+0]=Math.floor(255*a.r/a.a),i.data[n+r+1]=Math.floor(255*a.g/a.a),i.data[n+r+2]=Math.floor(255*a.b/a.a),i.data[n+r+3]=Math.floor(255*a.a)};if(e.clips)for(var a=0,s=0;a<r;++a,s+=4*n)for(var u=0,l=0;u<n;u++,l+=4){var c=u/(n-1),p=e.clips[a];o(s,l,p.start*(1-c)+p.end*c)}else for(var f=0,d=0;f<n;f++,d+=4)o(0,d,f/(n-1));return i}var _a=function(e){function t(t){e.call(this,t,ba),this._updateColorRamp()}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new da(e)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){"heatmap-color"===e&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){this.colorRamp=xa({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null},t.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},t}(_i),wa={paint:new xi({"hillshade-illumination-direction":new mi(ke.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new mi(ke.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new mi(ke.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new mi(ke.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new mi(ke.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new mi(ke.paint_hillshade["hillshade-accent-color"])})},Ea=function(e){function t(t){e.call(this,t,wa)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},t}(_i),Da=Ci([{name:"a_pos",components:2,type:"Int16"}],4).members,Ca=Sa,Oa=Sa;function Sa(e,t,n){n=n||2;var r,i,o,a,s,u,l,c=t&&t.length,p=c?t[0]*n:e.length,f=ka(e,0,p,n,!0),d=[];if(!f||f.next===f.prev)return d;if(c&&(f=function(e,t,n,r){var i,o,a,s=[];for(i=0,o=t.length;i<o;i++)(a=ka(e,t[i]*r,i<o-1?t[i+1]*r:e.length,r,!1))===a.next&&(a.steiner=!0),s.push(Ba(a));for(s.sort(Fa),i=0;i<s.length;i++)Ra(s[i],n),n=Aa(n,n.next);return n}(e,t,f,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var h=n;h<p;h+=n)(s=e[h])<r&&(r=s),(u=e[h+1])<i&&(i=u),s>o&&(o=s),u>a&&(a=u);l=0!==(l=Math.max(o-r,a-i))?1/l:0}return Ta(f,d,n,r,i,l),d}function ka(e,t,n,r,i){var o,a;if(i===Ja(e,t,n,r)>0)for(o=t;o<n;o+=r)a=$a(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=$a(o,e[o],e[o+1],a);return a&&Ha(a,a.next)&&(Ka(a),a=a.next),a}function Aa(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Ha(r,r.next)&&0!==Ua(r.prev,r,r.next))r=r.next;else{if(Ka(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Ta(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=La(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,u,l=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<l&&(s++,r=r.nextZ);t++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(e,r,i,o);for(var s,u,l=e;e.prev!==e.next;)if(s=e.prev,u=e.next,o?Ma(e,r,i,o):Pa(e))t.push(s.i/n),t.push(e.i/n),t.push(u.i/n),Ka(e),e=u.next,l=u.next;else if((e=u)===l){a?1===a?Ta(e=ja(Aa(e),t,n),t,n,r,i,o,2):2===a&&Ia(e,t,n,r,i,o):Ta(Aa(e),t,n,r,i,o,1);break}}}function Pa(e){var t=e.prev,n=e,r=e.next;if(Ua(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Na(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ua(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Ma(e,t,n,r){var i=e.prev,o=e,a=e.next;if(Ua(i,o,a)>=0)return!1;for(var s=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,l=La(i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,t,n,r),c=La(s,u,t,n,r),p=e.prevZ,f=e.nextZ;p&&p.z>=l&&f&&f.z<=c;){if(p!==e.prev&&p!==e.next&&Na(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Ua(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==e.prev&&f!==e.next&&Na(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ua(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;p&&p.z>=l;){if(p!==e.prev&&p!==e.next&&Na(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Ua(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;f&&f.z<=c;){if(f!==e.prev&&f!==e.next&&Na(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ua(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function ja(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Ha(i,o)&&Wa(i,r,r.next,o)&&Ya(i,o)&&Ya(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),Ka(r),Ka(r.next),r=e=o),r=r.next}while(r!==e);return Aa(r)}function Ia(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Va(a,s)){var u=Za(a,s);return a=Aa(a,a.next),u=Aa(u,u.next),Ta(a,t,n,r,i,o),void Ta(u,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}function Fa(e,t){return e.x-t.x}function Ra(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n;var u,l=n,c=n.x,p=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&Na(o<p?i:a,o,c,p,o<p?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),Ya(r,e)&&(u<f||u===f&&(r.x>n.x||r.x===n.x&&za(n,r)))&&(n=r,f=u)),r=r.next}while(r!==l);return n}(e,t)){var n=Za(t,e);Aa(t,t.next),Aa(n,n.next)}}function za(e,t){return Ua(e.prev,e,t.prev)<0&&Ua(t.next,e,e.next)<0}function La(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Ba(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function Na(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Va(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Wa(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Ya(e,t)&&Ya(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Ua(e.prev,e,t.prev)||Ua(e,t.prev,t))||Ha(e,t)&&Ua(e.prev,e,e.next)>0&&Ua(t.prev,t,t.next)>0)}function Ua(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Ha(e,t){return e.x===t.x&&e.y===t.y}function Wa(e,t,n,r){var i=qa(Ua(e,t,n)),o=qa(Ua(e,t,r)),a=qa(Ua(n,r,e)),s=qa(Ua(n,r,t));return i!==o&&a!==s||!(0!==i||!Ga(e,n,t))||!(0!==o||!Ga(e,r,t))||!(0!==a||!Ga(n,e,r))||!(0!==s||!Ga(n,t,r))}function Ga(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function qa(e){return e>0?1:e<0?-1:0}function Ya(e,t){return Ua(e.prev,e,e.next)<0?Ua(e,t,e.next)>=0&&Ua(e,e.prev,t)>=0:Ua(e,t,e.prev)<0||Ua(e,e.next,t)<0}function Za(e,t){var n=new Xa(e.i,e.x,e.y),r=new Xa(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function $a(e,t,n,r){var i=new Xa(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Ka(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 Xa(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ja(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}function Qa(e,t,n,r,i){!function e(t,n,r,i,o){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-s*l/a+c)),Math.min(i,Math.floor(n+(a-s)*l/a+c)),o)}var p=t[n],f=r,d=i;for(es(t,r,n),o(t[i],p)>0&&es(t,r,i);f<d;){for(es(t,f,d),f++,d--;o(t[f],p)<0;)f++;for(;o(t[d],p)>0;)d--}0===o(t[r],p)?es(t,r,d):es(t,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}}(e,t,n||0,r||e.length-1,i||ts)}function es(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ts(e,t){return e<t?-1:e>t?1:0}function ns(e,t){var n=e.length;if(n<=1)return[e];for(var r,i,o=[],a=0;a<n;a++){var s=C(e[a]);0!==s&&(e[a].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(r&&o.push(r),r=[e[a]]):r.push(e[a]))}if(r&&o.push(r),t>1)for(var u=0;u<o.length;u++)o[u].length<=t||(Qa(o[u],t,1,o[u].length-1,rs),o[u]=o[u].slice(0,t));return o}function rs(e,t){return t.area-e.area}function is(e,t,n){for(var r=n.patternDependencies,i=!1,o=0,a=t;o<a.length;o+=1){var s=a[o].paint.get(e+"-pattern");s.isConstant()||(i=!0);var u=s.constantOr(null);u&&(i=!0,r[u.to]=!0,r[u.from]=!0)}return i}function os(e,t,n,r,i){for(var o=i.patternDependencies,a=0,s=t;a<s.length;a+=1){var u=s[a],l=u.paint.get(e+"-pattern").value;if("constant"!==l.kind){var c=l.evaluate({zoom:r-1},n,{},i.availableImages),p=l.evaluate({zoom:r},n,{},i.availableImages),f=l.evaluate({zoom:r+1},n,{},i.availableImages);p=p&&p.name?p.name:p,f=f&&f.name?f.name:f,o[c=c&&c.name?c.name:c]=!0,o[p]=!0,o[f]=!0,n.patterns[u.id]={min:c,mid:p,max:f}}}return n}Sa.deviation=function(e,t,n,r){var i=t&&t.length,o=Math.abs(Ja(e,0,i?t[0]*n:e.length,n));if(i)for(var a=0,s=t.length;a<s;a++)o-=Math.abs(Ja(e,t[a]*n,a<s-1?t[a+1]*n:e.length,n));var u=0;for(a=0;a<r.length;a+=3){var l=r[a]*n,c=r[a+1]*n,p=r[a+2]*n;u+=Math.abs((e[l]-e[p])*(e[c+1]-e[l+1])-(e[l]-e[c])*(e[p+1]-e[l+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},Sa.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&n.holes.push(r+=e[i-1].length)}return n},Ca.default=Oa;var as=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Si,this.indexArray=new Ni,this.indexArray2=new qi,this.programConfigurations=new Io(e.layers,e.zoom),this.segments=new ao,this.segments2=new ao,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};as.prototype.populate=function(e,t,n){this.hasPattern=is("fill",this.layers,t);for(var r=this.layers[0].layout.get("fill-sort-key"),i=[],o=0,a=e;o<a.length;o+=1){var s=a[o],u=s.feature,l=s.id,c=s.index,p=s.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,d=No(u,f);if(this.layers[0]._featureFilter.filter(new ai(this.zoom),d,n)){var h=r?r.evaluate(d,{},n,t.availableImages):void 0,m={id:l,properties:u.properties,type:u.type,sourceLayerIndex:p,index:c,geometry:f?d.geometry:Bo(u),patterns:{},sortKey:h};i.push(m)}}r&&i.sort((function(e,t){return e.sortKey-t.sortKey}));for(var v=0,y=i;v<y.length;v+=1){var g=y[v],b=g.geometry,x=g.index,_=g.sourceLayerIndex;if(this.hasPattern){var w=os("fill",this.layers,g,this.zoom,t);this.patternFeatures.push(w)}else this.addFeature(g,b,x,n,{});t.featureIndex.insert(e[x].feature,b,x,_,this.index)}},as.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},as.prototype.addFeatures=function(e,t,n){for(var r=0,i=this.patternFeatures;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,t,n)}},as.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},as.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},as.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Da),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0},as.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},as.prototype.addFeature=function(e,t,n,r,i){for(var o=0,a=ns(t,500);o<a.length;o+=1){for(var s=a[o],u=0,l=0,c=s;l<c.length;l+=1)u+=c[l].length;for(var p=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray),f=p.vertexLength,d=[],h=[],m=0,v=s;m<v.length;m+=1){var y=v[m];if(0!==y.length){y!==s[0]&&h.push(d.length/2);var g=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),b=g.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(b+y.length-1,b),d.push(y[0].x),d.push(y[0].y);for(var x=1;x<y.length;x++)this.layoutVertexArray.emplaceBack(y[x].x,y[x].y),this.indexArray2.emplaceBack(b+x-1,b+x),d.push(y[x].x),d.push(y[x].y);g.vertexLength+=y.length,g.primitiveLength+=y.length}}for(var _=Ca(d,h),w=0;w<_.length;w+=3)this.indexArray.emplaceBack(f+_[w],f+_[w+1],f+_[w+2]);p.vertexLength+=u,p.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)},zr("FillBucket",as,{omit:["layers","patternFeatures"]});var ss=new xi({"fill-sort-key":new vi(ke.layout_fill["fill-sort-key"])}),us={paint:new xi({"fill-antialias":new mi(ke.paint_fill["fill-antialias"]),"fill-opacity":new vi(ke.paint_fill["fill-opacity"]),"fill-color":new vi(ke.paint_fill["fill-color"]),"fill-outline-color":new vi(ke.paint_fill["fill-outline-color"]),"fill-translate":new mi(ke.paint_fill["fill-translate"]),"fill-translate-anchor":new mi(ke.paint_fill["fill-translate-anchor"]),"fill-pattern":new yi(ke.paint_fill["fill-pattern"])}),layout:ss},ls=function(e){function t(t){e.call(this,t,us)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n);var 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"])},t.prototype.createBucket=function(e){return new as(e)},t.prototype.queryRadius=function(){return ta(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,a){return Go(na(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),r)},t.prototype.isTileClipped=function(){return!0},t}(_i),cs=Ci([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,ps=fs;function fs(e,t,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=i,e.readFields(ds,this,t)}function ds(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],i=t._values[e.readVarint()];t.properties[r]=i}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function hs(e){for(var t,n,r=0,i=0,o=e.length,a=o-1;i<o;a=i++)r+=((n=e[a]).x-(t=e[i]).x)*(t.y+n.y);return r}fs.types=["Unknown","Point","LineString","Polygon"],fs.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,o=0,a=0,s=0,u=[];e.pos<n;){if(o<=0){var l=e.readVarint();r=7&l,o=l>>3}if(o--,1===r||2===r)a+=e.readSVarint(),s+=e.readSVarint(),1===r&&(t&&u.push(t),t=[]),t.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&u.push(t),u},fs.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;e.pos<t;){if(r<=0){var c=e.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(i+=e.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=e.readSVarint())<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,l]},fs.prototype.toGeoJSON=function(e,t,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*e,s=this.extent*t,u=this.loadGeometry(),l=fs.types[this.type];function c(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+a)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(r=0;r<u.length;r++)p[r]=u[r][0];c(u=p);break;case 2:for(r=0;r<u.length;r++)c(u[r]);break;case 3:for(u=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,i=[],o=0;o<t;o++){var a=hs(e[o]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&i.push(n),n=[e[o]]):n.push(e[o]))}return n&&i.push(n),i}(u),r=0;r<u.length;r++)for(i=0;i<u[r].length;i++)c(u[r][i])}1===u.length?u=u[0]:l="Multi"+l;var f={type:"Feature",geometry:{type:l,coordinates:u},properties:this.properties};return"id"in this&&(f.id=this.id),f};var ms=vs;function vs(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(ys,this,t),this.length=this._features.length}function ys(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}function gs(e,t,n){if(3===e){var r=new ms(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}vs.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 ps(this._pbf,t,this.extent,this._keys,this._values)};var bs={VectorTile:function(e,t){this.layers=e.readFields(gs,{},t)},VectorTileFeature:ps,VectorTileLayer:ms},xs=bs.VectorTileFeature.types,_s=Math.pow(2,13);function ws(e,t,n,r,i,o,a,s){e.emplaceBack(t,n,2*Math.floor(r*_s)+a,i*_s*2,o*_s*2,Math.round(s))}var Es=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new Ai,this.indexArray=new Ni,this.programConfigurations=new Io(e.layers,e.zoom),this.segments=new ao,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Ds(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}Es.prototype.populate=function(e,t,n){this.features=[],this.hasPattern=is("fill-extrusion",this.layers,t);for(var r=0,i=e;r<i.length;r+=1){var o=i[r],a=o.feature,s=o.id,u=o.index,l=o.sourceLayerIndex,c=this.layers[0]._featureFilter.needGeometry,p=No(a,c);if(this.layers[0]._featureFilter.filter(new ai(this.zoom),p,n)){var f={id:s,sourceLayerIndex:l,index:u,geometry:c?p.geometry:Bo(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(os("fill-extrusion",this.layers,f,this.zoom,t)):this.addFeature(f,f.geometry,u,n,{}),t.featureIndex.insert(a,f.geometry,u,l,this.index,!0)}}},Es.prototype.addFeatures=function(e,t,n){for(var r=0,i=this.features;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,t,n)}},Es.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Es.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Es.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Es.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cs),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Es.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Es.prototype.addFeature=function(e,t,n,r,i){for(var o=0,a=ns(t,500);o<a.length;o+=1){for(var s=a[o],u=0,l=0,c=s;l<c.length;l+=1)u+=c[l].length;for(var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),f=0,d=s;f<d.length;f+=1){var h=d[f];if(0!==h.length&&!((M=h).every((function(e){return e.x<0}))||M.every((function(e){return e.x>8192}))||M.every((function(e){return e.y<0}))||M.every((function(e){return e.y>8192}))))for(var m=0,v=0;v<h.length;v++){var y=h[v];if(v>=1){var g=h[v-1];if(!Ds(y,g)){p.vertexLength+4>ao.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=y.sub(g)._perp()._unit(),x=g.dist(y);m+x>32768&&(m=0),ws(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,m),ws(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,m),ws(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,0,m+=x),ws(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,1,m);var _=p.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),p.vertexLength+=4,p.primitiveLength+=2}}}}if(p.vertexLength+u>ao.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray)),"Polygon"===xs[e.type]){for(var w=[],E=[],D=p.vertexLength,C=0,O=s;C<O.length;C+=1){var S=O[C];if(0!==S.length){S!==s[0]&&E.push(w.length/2);for(var k=0;k<S.length;k++){var A=S[k];ws(this.layoutVertexArray,A.x,A.y,0,0,1,1,0),w.push(A.x),w.push(A.y)}}}for(var T=Ca(w,E),P=0;P<T.length;P+=3)this.indexArray.emplaceBack(D+T[P],D+T[P+2],D+T[P+1]);p.primitiveLength+=T.length/3,p.vertexLength+=u}}var M;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)},zr("FillExtrusionBucket",Es,{omit:["layers","features"]});var Cs={paint:new xi({"fill-extrusion-opacity":new mi(ke["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new vi(ke["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new mi(ke["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new mi(ke["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new yi(ke["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new vi(ke["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new vi(ke["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new mi(ke["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Os=function(e){function t(t){e.call(this,t,Cs)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new Es(e)},t.prototype.queryRadius=function(){return ta(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,a,s,u){var l=na(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),c=this.paint.get("fill-extrusion-height").evaluate(t,n),p=this.paint.get("fill-extrusion-base").evaluate(t,n),f=function(e,t,n,r){for(var o=[],a=0,s=e;a<s.length;a+=1){var u=s[a],l=[u.x,u.y,0,1];ca(l,l,t),o.push(new i(l[0]/l[3],l[1]/l[3]))}return o}(l,u),d=function(e,t,n,r){for(var o=[],a=[],s=r[8]*t,u=r[9]*t,l=r[10]*t,c=r[11]*t,p=r[8]*n,f=r[9]*n,d=r[10]*n,h=r[11]*n,m=0,v=e;m<v.length;m+=1){for(var y=[],g=[],b=0,x=v[m];b<x.length;b+=1){var _=x[b],w=_.x,E=_.y,D=r[0]*w+r[4]*E+r[12],C=r[1]*w+r[5]*E+r[13],O=r[2]*w+r[6]*E+r[14],S=r[3]*w+r[7]*E+r[15],k=O+l,A=S+c,T=D+p,P=C+f,M=O+d,j=S+h,I=new i((D+s)/A,(C+u)/A);I.z=k/A,y.push(I);var F=new i(T/j,P/j);F.z=M/j,g.push(F)}o.push(y),a.push(g)}return[o,a]}(r,p,c,u);return function(e,t,n){var r=1/0;Go(n,t)&&(r=ks(n,t[0]));for(var i=0;i<t.length;i++)for(var o=t[i],a=e[i],s=0;s<o.length-1;s++){var u=o[s],l=[u,o[s+1],a[s+1],a[s],u];Ho(n,l)&&(r=Math.min(r,ks(n,l)))}return r!==1/0&&r}(d[0],d[1],f)},t}(_i);function Ss(e,t){return e.x*t.x+e.y*t.y}function ks(e,t){if(1===e.length){for(var n,r=0,i=t[r++];!n||i.equals(n);)if(!(n=t[r++]))return 1/0;for(;r<t.length;r++){var o=t[r],a=e[0],s=n.sub(i),u=o.sub(i),l=a.sub(i),c=Ss(s,s),p=Ss(s,u),f=Ss(u,u),d=Ss(l,s),h=Ss(l,u),m=c*f-p*p,v=(f*d-p*h)/m,y=(c*h-p*d)/m,g=i.z*(1-v-y)+n.z*v+o.z*y;if(isFinite(g))return g}return 1/0}for(var b=1/0,x=0,_=t;x<_.length;x+=1)b=Math.min(b,_[x].z);return b}var As=Ci([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Ts=Ci([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]).members,Ps=bs.VectorTileFeature.types,Ms=Math.cos(Math.PI/180*37.5),js=Math.pow(2,14)/.5,Is=function(e){var t=this;this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((function(e){t.gradients[e.id]={}})),this.layoutVertexArray=new Ti,this.layoutVertexArray2=new Pi,this.indexArray=new Ni,this.programConfigurations=new Io(e.layers,e.zoom),this.segments=new ao,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};Is.prototype.populate=function(e,t,n){this.hasPattern=is("line",this.layers,t);for(var r=this.layers[0].layout.get("line-sort-key"),i=[],o=0,a=e;o<a.length;o+=1){var s=a[o],u=s.feature,l=s.id,c=s.index,p=s.sourceLayerIndex,f=this.layers[0]._featureFilter.needGeometry,d=No(u,f);if(this.layers[0]._featureFilter.filter(new ai(this.zoom),d,n)){var h=r?r.evaluate(d,{},n):void 0,m={id:l,properties:u.properties,type:u.type,sourceLayerIndex:p,index:c,geometry:f?d.geometry:Bo(u),patterns:{},sortKey:h};i.push(m)}}r&&i.sort((function(e,t){return e.sortKey-t.sortKey}));for(var v=0,y=i;v<y.length;v+=1){var g=y[v],b=g.geometry,x=g.index,_=g.sourceLayerIndex;if(this.hasPattern){var w=os("line",this.layers,g,this.zoom,t);this.patternFeatures.push(w)}else this.addFeature(g,b,x,n,{});t.featureIndex.insert(e[x].feature,b,x,_,this.index)}},Is.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Is.prototype.addFeatures=function(e,t,n){for(var r=0,i=this.patternFeatures;r<i.length;r+=1){var o=i[r];this.addFeature(o,o.geometry,o.index,t,n)}},Is.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Is.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Is.prototype.upload=function(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ts)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,As),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Is.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Is.prototype.lineFeatureClips=function(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}},Is.prototype.addFeature=function(e,t,n,r,i){var o=this.layers[0].layout,a=o.get("line-join").evaluate(e,{}),s=o.get("line-cap"),u=o.get("line-miter-limit"),l=o.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(var c=0,p=t;c<p.length;c+=1)this.addLine(p[c],e,a,s,u,l);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,i,r)},Is.prototype.addLine=function(e,t,n,r,i,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(var a=0;a<e.length-1;a++)this.totalDistance+=e[a].dist(e[a+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}for(var s="Polygon"===Ps[t.type],u=e.length;u>=2&&e[u-1].equals(e[u-2]);)u--;for(var l=0;l<u-1&&e[l].equals(e[l+1]);)l++;if(!(u<(s?3:2))){"bevel"===n&&(i=1.05);var c,p=this.overscaling<=16?122880/(512*this.overscaling):0,f=this.segments.prepareSegment(10*u,this.layoutVertexArray,this.indexArray),d=void 0,h=void 0,m=void 0,v=void 0;this.e1=this.e2=-1,s&&(v=e[l].sub(c=e[u-2])._unit()._perp());for(var y=l;y<u;y++)if(!(h=y===u-1?s?e[l+1]:void 0:e[y+1])||!e[y].equals(h)){v&&(m=v),c&&(d=c),c=e[y],v=h?h.sub(c)._unit()._perp():m;var g=(m=m||v).add(v);0===g.x&&0===g.y||g._unit();var b=m.x*v.x+m.y*v.y,x=g.x*v.x+g.y*v.y,_=0!==x?1/x:1/0,w=2*Math.sqrt(2-2*x),E=x<Ms&&d&&h,D=m.x*v.y-m.y*v.x>0;if(E&&y>l){var C=c.dist(d);if(C>2*p){var O=c.sub(c.sub(d)._mult(p/C)._round());this.updateDistance(d,O),this.addCurrentVertex(O,m,0,0,f),d=O}}var S=d&&h,k=S?n:s?"butt":r;if(S&&"round"===k&&(_<o?k="miter":_<=2&&(k="fakeround")),"miter"===k&&_>i&&(k="bevel"),"bevel"===k&&(_>2&&(k="flipbevel"),_<i&&(k="miter")),d&&this.updateDistance(d,c),"miter"===k)g._mult(_),this.addCurrentVertex(c,g,0,0,f);else if("flipbevel"===k){if(_>100)g=v.mult(-1);else{var A=_*m.add(v).mag()/m.sub(v).mag();g._perp()._mult(A*(D?-1:1))}this.addCurrentVertex(c,g,0,0,f),this.addCurrentVertex(c,g.mult(-1),0,0,f)}else if("bevel"===k||"fakeround"===k){var T=-Math.sqrt(_*_-1),P=D?T:0,M=D?0:T;if(d&&this.addCurrentVertex(c,m,P,M,f),"fakeround"===k)for(var j=Math.round(180*w/Math.PI/20),I=1;I<j;I++){var F=I/j;if(.5!==F){var R=F-.5;F+=F*R*(F-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*R*R+(.848013+b*(.215638*b-1.06021)))}var z=v.sub(m)._mult(F)._add(m)._unit()._mult(D?-1:1);this.addHalfVertex(c,z.x,z.y,!1,D,0,f)}h&&this.addCurrentVertex(c,v,-P,-M,f)}else if("butt"===k)this.addCurrentVertex(c,g,0,0,f);else if("square"===k){var L=d?1:-1;this.addCurrentVertex(c,g,L,L,f)}else"round"===k&&(d&&(this.addCurrentVertex(c,m,0,0,f),this.addCurrentVertex(c,m,1,1,f,!0)),h&&(this.addCurrentVertex(c,v,-1,-1,f,!0),this.addCurrentVertex(c,v,0,0,f)));if(E&&y<u-1){var B=c.dist(h);if(B>2*p){var N=c.add(h.sub(c)._mult(p/B)._round());this.updateDistance(c,N),this.addCurrentVertex(N,v,0,0,f),c=N}}}}},Is.prototype.addCurrentVertex=function(e,t,n,r,i,o){void 0===o&&(o=!1);var a=t.y*r-t.x,s=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,o,!1,n,i),this.addHalfVertex(e,a,s,o,!0,-r,i),this.distance>js/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,i,o))},Is.prototype.addHalfVertex=function(e,t,n,r,i,o,a){var s=.5*(this.lineClips?this.scaledDistance*(js-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e.x<<1)+(r?1:0),(e.y<<1)+(i?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var u=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),i?this.e2=u:this.e1=u},Is.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Is.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.updateScaledDistance()},zr("LineBucket",Is,{omit:["layers","patternFeatures"]});var Fs=new xi({"line-cap":new mi(ke.layout_line["line-cap"]),"line-join":new vi(ke.layout_line["line-join"]),"line-miter-limit":new mi(ke.layout_line["line-miter-limit"]),"line-round-limit":new mi(ke.layout_line["line-round-limit"]),"line-sort-key":new vi(ke.layout_line["line-sort-key"])}),Rs={paint:new xi({"line-opacity":new vi(ke.paint_line["line-opacity"]),"line-color":new vi(ke.paint_line["line-color"]),"line-translate":new mi(ke.paint_line["line-translate"]),"line-translate-anchor":new mi(ke.paint_line["line-translate-anchor"]),"line-width":new vi(ke.paint_line["line-width"]),"line-gap-width":new vi(ke.paint_line["line-gap-width"]),"line-offset":new vi(ke.paint_line["line-offset"]),"line-blur":new vi(ke.paint_line["line-blur"]),"line-dasharray":new gi(ke.paint_line["line-dasharray"]),"line-pattern":new yi(ke.paint_line["line-pattern"]),"line-gradient":new bi(ke.paint_line["line-gradient"])}),layout:Fs},zs=new(function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.possiblyEvaluate=function(t,n){return n=new ai(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),e.prototype.possiblyEvaluate.call(this,t,n)},t.prototype.evaluate=function(t,n,r,i){return n=f({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,i)},t}(vi))(Rs.paint.properties["line-width"].specification);zs.useIntegerZoom=!0;var Ls=function(e){function t(t){e.call(this,t,Rs),this.gradientVersion=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ut,this.gradientVersion=(this.gradientVersion+1)%s)},t.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n),this.paint._values["line-floorwidth"]=zs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new Is(e)},t.prototype.queryRadius=function(e){var t=e,n=Bs(ea("line-width",this,t),ea("line-gap-width",this,t)),r=ea("line-offset",this,t);return n/2+Math.abs(r)+ta(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,a,s){var u=na(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),l=s/2*Bs(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),c=this.paint.get("line-offset").evaluate(t,n);return c&&(r=function(e,t){for(var n=[],r=new i(0,0),o=0;o<e.length;o++){for(var a=e[o],s=[],u=0;u<a.length;u++){var l=a[u],c=a[u+1],p=0===u?r:l.sub(a[u-1])._unit()._perp(),f=u===a.length-1?r:c.sub(l)._unit()._perp(),d=p._add(f)._unit();d._mult(1/(d.x*f.x+d.y*f.y)),s.push(d._mult(t)._add(l))}n.push(s)}return n}(r,c*s)),function(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];if(e.length>=3)for(var o=0;o<i.length;o++)if(Jo(e,i[o]))return!0;if(qo(e,i,n))return!0}return!1}(u,r,l)},t.prototype.isTileClipped=function(){return!0},t}(_i);function Bs(e,t){return t>0?t+2*e:e}var Ns=Ci([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Vs=Ci([{name:"a_projected_pos",components:3,type:"Float32"}],4),Us=(Ci([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ci([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Hs=(Ci([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Ci([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Ws=Ci([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Gs(e,t,n){return e.sections.forEach((function(e){e.text=function(e,t,n){var r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),oi.applyArabicShaping&&(e=oi.applyArabicShaping(e)),e}(e.text,t,n)})),e}Ci([{name:"triangle",components:3,type:"Uint16"}]),Ci([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ci([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{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",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Ci([{type:"Float32",name:"offsetX"}]),Ci([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var qs={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"},Ys=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,p=n?i-1:0,f=n?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+p],p+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},Zs=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(t*u-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*m},$s=Ks;function Ks(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Ks.Varint=0,Ks.Fixed64=1,Ks.Bytes=2,Ks.Fixed32=5;var Xs="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Js(e){return e.type===Ks.Bytes?e.readVarint()+e.pos:e.pos+1}function Qs(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function eu(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function tu(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function nu(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function ru(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function iu(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function ou(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function au(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function su(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function uu(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function lu(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function cu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function pu(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function fu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function du(e,t,n){1===e&&n.readMessage(hu,t)}function hu(e,t,n){if(3===e){var r=n.readMessage(mu,{}),i=r.width,o=r.height,a=r.left,s=r.top,u=r.advance;t.push({id:r.id,bitmap:new ya({width:i+6,height:o+6},r.bitmap),metrics:{width:i,height:o,left:a,top:s,advance:u}})}}function mu(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function vu(e){for(var t=0,n=0,r=0,i=e;r<i.length;r+=1){var o=i[r];t+=o.w*o.h,n=Math.max(n,o.w)}e.sort((function(e,t){return t.h-e.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],s=0,u=0,l=0,c=e;l<c.length;l+=1)for(var p=c[l],f=a.length-1;f>=0;f--){var d=a[f];if(!(p.w>d.w||p.h>d.h)){if(p.x=d.x,p.y=d.y,u=Math.max(u,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===d.w&&p.h===d.h){var h=a.pop();f<a.length&&(a[f]=h)}else p.h===d.h?(d.x+=p.w,d.w-=p.w):p.w===d.w?(d.y+=p.h,d.h-=p.h):(a.push({x:d.x+p.w,y:d.y,w:d.w-p.w,h:p.h}),d.y+=p.h,d.h-=p.h);break}}return{w:s,h:u,fill:t/(s*u)||0}}Ks.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=cu(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=fu(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=cu(this.buf,this.pos)+4294967296*cu(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=cu(this.buf,this.pos)+4294967296*fu(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=Ys(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Ys(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return Qs(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return Qs(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return Qs(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return Qs(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return Qs(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return Qs(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[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&&Xs?function(e,t,n){return Xs.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i<n;){var o,a,s,u=e[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>n)break;1===c?u<128&&(l=u):2===c?128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(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!==Ks.Bytes)return e.push(this.readVarint(t));var n=Js(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==Ks.Bytes)return e.push(this.readSVarint());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==Ks.Bytes)return e.push(this.readBoolean());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==Ks.Bytes)return e.push(this.readFloat());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==Ks.Bytes)return e.push(this.readDouble());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==Ks.Bytes)return e.push(this.readFixed32());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==Ks.Bytes)return e.push(this.readSFixed32());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==Ks.Bytes)return e.push(this.readFixed64());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==Ks.Bytes)return e.push(this.readSFixed64());var t=Js(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===Ks.Varint)for(;this.buf[this.pos++]>127;);else if(t===Ks.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Ks.Fixed32)this.pos+=4;else{if(t!==Ks.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 n=new Uint8Array(t);n.set(this.buf),this.buf=n,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),pu(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),pu(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),pu(this.buf,-1&e,this.pos),pu(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),pu(this.buf,-1&e,this.pos),pu(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((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)))))}(r,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,n){for(var r,i,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&eu(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Zs(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Zs(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 n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&eu(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Ks.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,tu,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,nu,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,ou,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,ru,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,iu,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,au,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,su,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,uu,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,lu,t)},writeBytesField:function(e,t){this.writeTag(e,Ks.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Ks.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Ks.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Ks.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Ks.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Ks.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Ks.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Ks.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Ks.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Ks.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var yu=function(e,t){var n=t.pixelRatio,r=t.version,i=t.stretchX,o=t.stretchY,a=t.content;this.paddedRect=e,this.pixelRatio=n,this.stretchX=i,this.stretchY=o,this.content=a,this.version=r},gu={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};gu.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},gu.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},gu.tlbr.get=function(){return this.tl.concat(this.br)},gu.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yu.prototype,gu);var bu=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(e,n,i),this.addImages(t,r,i);var o=vu(i),a=new ga({width:o.w||1,height:o.h||1});for(var s in e){var u=e[s],l=n[s].paddedRect;ga.copy(u.data,a,{x:0,y:0},{x:l.x+1,y:l.y+1},u.data)}for(var c in t){var p=t[c],f=r[c].paddedRect,d=f.x+1,h=f.y+1,m=p.data.width,v=p.data.height;ga.copy(p.data,a,{x:0,y:0},{x:d,y:h},p.data),ga.copy(p.data,a,{x:0,y:v-1},{x:d,y:h-1},{width:m,height:1}),ga.copy(p.data,a,{x:0,y:0},{x:d,y:h+v},{width:m,height:1}),ga.copy(p.data,a,{x:m-1,y:0},{x:d-1,y:h},{width:1,height:v}),ga.copy(p.data,a,{x:0,y:0},{x:d+m,y:h},{width:1,height:v})}this.image=a,this.iconPositions=n,this.patternPositions=r};bu.prototype.addImages=function(e,t,n){for(var r in e){var i=e[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),t[r]=new yu(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},bu.prototype.patchUpdatedImages=function(e,t){for(var n in e.dispatchRenderCallbacks(this.haveRenderCallbacks),e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)},bu.prototype.patchUpdatedImage=function(e,t,n){if(e&&t&&e.version!==t.version){e.version=t.version;var r=e.tl;n.update(t.data,void 0,{x:r[0],y:r[1]})}},zr("ImagePosition",yu),zr("ImageAtlas",bu);var xu={horizontal:1,vertical:2,horizontalOnly:3},_u=function(){this.scale=1,this.fontStack="",this.imageName=null};_u.forText=function(e,t){var n=new _u;return n.scale=e||1,n.fontStack=t,n},_u.forImage=function(e){var t=new _u;return t.imageName=e,t};var wu=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Eu(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m){var v,y=wu.fromFeature(e,i);p===xu.vertical&&y.verticalizePunctuation();var g=oi.processBidirectionalText,b=oi.processStyledBidirectionalText;if(g&&1===y.sections.length){v=[];for(var x=0,_=g(y.toString(),Tu(y,l,o,t,r,d,h));x<_.length;x+=1){var w=_[x],E=new wu;E.text=w,E.sections=y.sections;for(var D=0;D<w.length;D++)E.sectionIndex.push(0);v.push(E)}}else if(b){v=[];for(var C=0,O=b(y.text,y.sectionIndex,Tu(y,l,o,t,r,d,h));C<O.length;C+=1){var S=O[C],k=new wu;k.text=S[0],k.sectionIndex=S[1],k.sections=y.sections,v.push(k)}}else v=function(e,t){for(var n=[],r=e.text,i=0,o=0,a=t;o<a.length;o+=1){var s=a[o];n.push(e.substring(i,s)),i=s}return i<r.length&&n.push(e.substring(i,r.length)),n}(y,Tu(y,l,o,t,r,d,h));var A=[],T={positionedLines:A,text:y.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:p,iconsInText:!1,verticalizable:!1};return function(e,t,n,r,i,o,a,s,u,l,c,p){for(var f=0,d=-17,h=0,m=0,v="right"===s?1:"left"===s?0:.5,y=0,g=0,b=i;g<b.length;g+=1){var x=b[g];x.trim();var _=x.getMaxScale(),w=24*(_-1),E={positionedGlyphs:[],lineOffset:0};e.positionedLines[y]=E;var D=E.positionedGlyphs,C=0;if(x.length()){for(var O=0;O<x.length();O++){var S=x.getSection(O),k=x.getSectionIndex(O),A=x.getCharCode(O),T=0,P=null,M=null,j=null,I=24,F=!(u===xu.horizontal||!c&&!qr(A)||c&&(Du[A]||(W=A,Wr.Arabic(W)||Wr["Arabic Supplement"](W)||Wr["Arabic Extended-A"](W)||Wr["Arabic Presentation Forms-A"](W)||Wr["Arabic Presentation Forms-B"](W))));if(S.imageName){var R=r[S.imageName];if(!R)continue;j=S.imageName,e.iconsInText=e.iconsInText||!0,M=R.paddedRect;var z=R.displaySize;S.scale=24*S.scale/p,T=w+(24-z[1]*S.scale),I=(P={width:z[0],height:z[1],left:1,top:-3,advance:F?z[1]:z[0]}).advance;var L=F?z[0]*S.scale-24*_:z[1]*S.scale-24*_;L>0&&L>C&&(C=L)}else{var B=n[S.fontStack],N=B&&B[A];if(N&&N.rect)M=N.rect,P=N.metrics;else{var V=t[S.fontStack],U=V&&V[A];if(!U)continue;P=U.metrics}T=24*(_-S.scale)}F?(e.verticalizable=!0,D.push({glyph:A,imageName:j,x:f,y:d+T,vertical:F,scale:S.scale,fontStack:S.fontStack,sectionIndex:k,metrics:P,rect:M}),f+=I*S.scale+l):(D.push({glyph:A,imageName:j,x:f,y:d+T,vertical:F,scale:S.scale,fontStack:S.fontStack,sectionIndex:k,metrics:P,rect:M}),f+=P.advance*S.scale+l)}0!==D.length&&(h=Math.max(f-l,h),Mu(D,0,D.length-1,v,C)),f=0;var H=o*_+C;E.lineOffset=Math.max(C,w),d+=H,m=Math.max(H,m),++y}else d+=o,++y}var W,G=d- -17,q=Pu(a),Y=q.horizontalAlign,Z=q.verticalAlign;(function(e,t,n,r,i,o,a,s,u){var l,c=(t-n)*i;l=o!==a?-s*r- -17:(-r*u+.5)*a;for(var p=0,f=e;p<f.length;p+=1)for(var d=0,h=f[p].positionedGlyphs;d<h.length;d+=1){var m=h[d];m.x+=c,m.y+=l}})(e.positionedLines,v,Y,Z,h,m,o,G,i.length),e.top+=-Z*G,e.bottom=e.top+G,e.left+=-Y*h,e.right=e.left+h}(T,t,n,r,v,a,s,u,p,l,f,m),!function(e){for(var t=0,n=e;t<n.length;t+=1)if(0!==n[t].positionedGlyphs.length)return!1;return!0}(A)&&T}wu.fromFeature=function(e,t){for(var n=new wu,r=0;r<e.sections.length;r++){var i=e.sections[r];i.image?n.addImageSection(i):n.addTextSection(i,t)}return n},wu.prototype.length=function(){return this.text.length},wu.prototype.getSection=function(e){return this.sections[this.sectionIndex[e]]},wu.prototype.getSectionIndex=function(e){return this.sectionIndex[e]},wu.prototype.getCharCode=function(e){return this.text.charCodeAt(e)},wu.prototype.verticalizePunctuation=function(){this.text=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n+1)||null,i=e.charCodeAt(n-1)||null;t+=r&&Yr(r)&&!qs[e[n+1]]||i&&Yr(i)&&!qs[e[n-1]]||!qs[e[n]]?e[n]:qs[e[n]]}return t}(this.text)},wu.prototype.trim=function(){for(var e=0,t=0;t<this.text.length&&Du[this.text.charCodeAt(t)];t++)e++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=e&&Du[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},wu.prototype.substring=function(e,t){var n=new wu;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},wu.prototype.toString=function(){return this.text},wu.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce((function(t,n){return Math.max(t,e.sections[n].scale)}),0)},wu.prototype.addTextSection=function(e,t){this.text+=e.text,this.sections.push(_u.forText(e.scale,e.fontStack||t));for(var n=this.sections.length-1,r=0;r<e.text.length;++r)this.sectionIndex.push(n)},wu.prototype.addImageSection=function(e){var t=e.image?e.image.name:"";if(0!==t.length){var n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(_u.forImage(t)),this.sectionIndex.push(this.sections.length-1)):E("Reached maximum number of images 6401")}else E("Can't add FormattedSection with an empty image.")},wu.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Du={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Cu={};function Ou(e,t,n,r,i,o){if(t.imageName){var a=r[t.imageName];return a?a.displaySize[0]*t.scale*24/o+i:0}var s=n[t.fontStack],u=s&&s[e];return u?u.metrics.advance*t.scale+i:0}function Su(e,t,n,r){var i=Math.pow(e-t,2);return r?e<t?i/2:2*i:i+Math.abs(n)*n}function ku(e,t,n){var r=0;return 10===e&&(r-=1e4),n&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function Au(e,t,n,r,i,o){for(var a=null,s=Su(t,n,i,o),u=0,l=r;u<l.length;u+=1){var c=l[u],p=Su(t-c.x,n,i,o)+c.badness;p<=s&&(a=c,s=p)}return{index:e,x:t,priorBreak:a,badness:s}}function Tu(e,t,n,r,i,o,a){if("point"!==o)return[];if(!e)return[];for(var s,u=[],l=function(e,t,n,r,i,o){for(var a=0,s=0;s<e.length();s++){var u=e.getSection(s);a+=Ou(e.getCharCode(s),u,r,i,t,o)}return a/Math.max(1,Math.ceil(a/n))}(e,t,n,r,i,a),c=e.text.indexOf("\u200b")>=0,p=0,f=0;f<e.length();f++){var d=e.getSection(f),h=e.getCharCode(f);if(Du[h]||(p+=Ou(h,d,r,i,t,a)),f<e.length()-1){var m=!((s=h)<11904||!(Wr["Bopomofo Extended"](s)||Wr.Bopomofo(s)||Wr["CJK Compatibility Forms"](s)||Wr["CJK Compatibility Ideographs"](s)||Wr["CJK Compatibility"](s)||Wr["CJK Radicals Supplement"](s)||Wr["CJK Strokes"](s)||Wr["CJK Symbols and Punctuation"](s)||Wr["CJK Unified Ideographs Extension A"](s)||Wr["CJK Unified Ideographs"](s)||Wr["Enclosed CJK Letters and Months"](s)||Wr["Halfwidth and Fullwidth Forms"](s)||Wr.Hiragana(s)||Wr["Ideographic Description Characters"](s)||Wr["Kangxi Radicals"](s)||Wr["Katakana Phonetic Extensions"](s)||Wr.Katakana(s)||Wr["Vertical Forms"](s)||Wr["Yi Radicals"](s)||Wr["Yi Syllables"](s)));(Cu[h]||m||d.imageName)&&u.push(Au(f+1,p,l,u,ku(h,e.getCharCode(f+1),m&&c),!1))}}return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(Au(e.length(),p,l,u,0,!0))}function Pu(e){var t=.5,n=.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":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function Mu(e,t,n,r,i){if(r||i)for(var o=e[n],a=(e[n].x+o.metrics.advance*o.scale)*r,s=t;s<=n;s++)e[s].x-=a,e[s].y+=i}function ju(e,t,n,r,i,o){var a,s=e.image;if(s.content){var u=s.content,l=s.pixelRatio||1;a=[u[0]/l,u[1]/l,s.displaySize[0]-u[2]/l,s.displaySize[1]-u[3]/l]}var c,p,f,d,h=t.left*o,m=t.right*o;"width"===n||"both"===n?(d=i[0]+h-r[3],p=i[0]+m+r[1]):p=(d=i[0]+(h+m-s.displaySize[0])/2)+s.displaySize[0];var v=t.top*o,y=t.bottom*o;return"height"===n||"both"===n?(c=i[1]+v-r[0],f=i[1]+y+r[2]):f=(c=i[1]+(v+y-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:c,right:p,bottom:f,left:d,collisionPadding:a}}Cu[10]=!0,Cu[32]=!0,Cu[38]=!0,Cu[40]=!0,Cu[41]=!0,Cu[43]=!0,Cu[45]=!0,Cu[47]=!0,Cu[173]=!0,Cu[183]=!0,Cu[8203]=!0,Cu[8208]=!0,Cu[8211]=!0,Cu[8231]=!0;var Iu=function(e){function t(t,n,r,i){e.call(this,t,n),this.angle=r,void 0!==i&&(this.segment=i)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.clone=function(){return new t(this.x,this.y,this.angle,this.segment)},t}(i);function Fu(e,t){var n=t.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new ai(e+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,i=n.interpolationType,o=0;o<r.length&&r[o]<=e;)o++;for(var a=o=Math.max(0,o-1);a<r.length&&r[a]<e+1;)a++;a=Math.min(r.length-1,a);var s=r[o],u=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:u,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:u,minSize:n.evaluate(new ai(s)),maxSize:n.evaluate(new ai(u)),interpolationType:i}}function Ru(e,t,n){var r=t.uSize,i=n.lowerSize;return"source"===e.kind?i/128:"composite"===e.kind?Ht(i/128,n.upperSize/128,t.uSizeT):r}function zu(e,t){var n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){var i=e.interpolationType,o=i?c(on.interpolationFactor(i,t,e.minZoom,e.maxZoom),0,1):0;"camera"===e.kind?r=Ht(e.minSize,e.maxSize,o):n=o}return{uSizeT:n,uSize:r}}zr("Anchor",Iu);var Lu=Object.freeze({__proto__:null,getSizeData:Fu,evaluateSizeForFeature:Ru,evaluateSizeForZoom:zu,SIZE_PACK_FACTOR:128});function Bu(e,t,n,r,i){if(void 0===t.segment)return!0;for(var o=t,a=t.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;for(var u=[],l=0;s<n/2;){var c=e[a],p=e[a+1];if(!p)return!1;var f=e[a-1].angleTo(c)-c.angleTo(p);for(f=Math.abs((f+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:s,angleDelta:f}),l+=f;s-u[0].distance>r;)l-=u.shift().angleDelta;if(l>i)return!1;a++,s+=c.dist(p)}return!0}function Nu(e){for(var t=0,n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Vu(e,t,n){return e?.6*t*n:0}function Uu(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Hu(e,t,n,r,i,o){for(var a=Vu(n,i,o),s=Uu(n,r)*o,u=0,l=Nu(e)/2,c=0;c<e.length-1;c++){var p=e[c],f=e[c+1],d=p.dist(f);if(u+d>l){var h=(l-u)/d,m=Ht(p.x,f.x,h),v=Ht(p.y,f.y,h),y=new Iu(m,v,f.angleTo(p),c);return y._round(),!a||Bu(e,y,s,a,t)?y:void 0}u+=d}}function Wu(e,t,n,r,i,o,a,s,u){var l=Vu(r,o,a),c=Uu(r,i),p=c*a,f=0===e[0].x||e[0].x===u||0===e[0].y||e[0].y===u;return t-p<t/4&&(t=p+t/4),function e(t,n,r,i,o,a,s,u,l){for(var c=a/2,p=Nu(t),f=0,d=n-r,h=[],m=0;m<t.length-1;m++){for(var v=t[m],y=t[m+1],g=v.dist(y),b=y.angleTo(v);d+r<f+g;){var x=((d+=r)-f)/g,_=Ht(v.x,y.x,x),w=Ht(v.y,y.y,x);if(_>=0&&_<l&&w>=0&&w<l&&d-c>=0&&d+c<=p){var E=new Iu(_,w,b,m);E._round(),i&&!Bu(t,E,a,i,o)||h.push(E)}}f+=g}return u||h.length||s||(h=e(t,f/2,r,i,o,a,s,!0,l)),h}(e,f?t/2*s%t:(c/2+2*o)*a*s%t,t,l,n,p,f,!1,u)}function Gu(e,t,n,r,o){for(var a=[],s=0;s<e.length;s++)for(var u=e[s],l=void 0,c=0;c<u.length-1;c++){var p=u[c],f=u[c+1];p.x<t&&f.x<t||(p.x<t?p=new i(t,p.y+(t-p.x)/(f.x-p.x)*(f.y-p.y))._round():f.x<t&&(f=new i(t,p.y+(t-p.x)/(f.x-p.x)*(f.y-p.y))._round()),p.y<n&&f.y<n||(p.y<n?p=new i(p.x+(n-p.y)/(f.y-p.y)*(f.x-p.x),n)._round():f.y<n&&(f=new i(p.x+(n-p.y)/(f.y-p.y)*(f.x-p.x),n)._round()),p.x>=r&&f.x>=r||(p.x>=r?p=new i(r,p.y+(r-p.x)/(f.x-p.x)*(f.y-p.y))._round():f.x>=r&&(f=new i(r,p.y+(r-p.x)/(f.x-p.x)*(f.y-p.y))._round()),p.y>=o&&f.y>=o||(p.y>=o?p=new i(p.x+(o-p.y)/(f.y-p.y)*(f.x-p.x),o)._round():f.y>=o&&(f=new i(p.x+(o-p.y)/(f.y-p.y)*(f.x-p.x),o)._round()),l&&p.equals(l[l.length-1])||a.push(l=[p]),l.push(f)))))}return a}function qu(e,t,n,r){var o=[],a=e.image,s=a.pixelRatio,u=a.paddedRect.w-2,l=a.paddedRect.h-2,c=e.right-e.left,p=e.bottom-e.top,f=a.stretchX||[[0,u]],d=a.stretchY||[[0,l]],h=function(e,t){return e+t[1]-t[0]},m=f.reduce(h,0),v=d.reduce(h,0),y=u-m,g=l-v,b=0,x=m,_=0,w=v,E=0,D=y,C=0,O=g;if(a.content&&r){var S=a.content;b=Yu(f,0,S[0]),_=Yu(d,0,S[1]),x=Yu(f,S[0],S[2]),w=Yu(d,S[1],S[3]),E=S[0]-b,C=S[1]-_,D=S[2]-S[0]-x,O=S[3]-S[1]-w}var k=function(r,o,u,l){var f=$u(r.stretch-b,x,c,e.left),d=Ku(r.fixed-E,D,r.stretch,m),h=$u(o.stretch-_,w,p,e.top),y=Ku(o.fixed-C,O,o.stretch,v),g=$u(u.stretch-b,x,c,e.left),S=Ku(u.fixed-E,D,u.stretch,m),k=$u(l.stretch-_,w,p,e.top),A=Ku(l.fixed-C,O,l.stretch,v),T=new i(f,h),P=new i(g,h),M=new i(g,k),j=new i(f,k),I=new i(d/s,y/s),F=new i(S/s,A/s),R=t*Math.PI/180;if(R){var z=Math.sin(R),L=Math.cos(R),B=[L,-z,z,L];T._matMult(B),P._matMult(B),j._matMult(B),M._matMult(B)}var N=r.stretch+r.fixed,V=o.stretch+o.fixed;return{tl:T,tr:P,bl:j,br:M,tex:{x:a.paddedRect.x+1+N,y:a.paddedRect.y+1+V,w:u.stretch+u.fixed-N,h:l.stretch+l.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:I,pixelOffsetBR:F,minFontScaleX:D/s/c,minFontScaleY:O/s/p,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var A=Zu(f,y,m),T=Zu(d,g,v),P=0;P<A.length-1;P++)for(var M=A[P],j=A[P+1],I=0;I<T.length-1;I++)o.push(k(M,T[I],j,T[I+1]));else o.push(k({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:u+1},{fixed:0,stretch:l+1}));return o}function Yu(e,t,n){for(var r=0,i=0,o=e;i<o.length;i+=1){var a=o[i];r+=Math.max(t,Math.min(n,a[1]))-Math.max(t,Math.min(n,a[0]))}return r}function Zu(e,t,n){for(var r=[{fixed:-1,stretch:0}],i=0,o=e;i<o.length;i+=1){var a=o[i],s=a[0],u=a[1],l=r[r.length-1];r.push({fixed:s-l.stretch,stretch:l.stretch}),r.push({fixed:s-l.stretch,stretch:l.stretch+(u-s)})}return r.push({fixed:t+1,stretch:n}),r}function $u(e,t,n,r){return e/t*n+r}function Ku(e,t,n,r){return e-t*n/r}var Xu=function(e,t,n,r,o,a,s,u,l,c){if(this.boxStartIndex=e.length,l){var p=a.top,f=a.bottom,d=a.collisionPadding;d&&(p-=d[1],f+=d[3]);var h=f-p;h>0&&(h=Math.max(10,h),this.circleDiameter=h)}else{var m=a.top*s-u,v=a.bottom*s+u,y=a.left*s-u,g=a.right*s+u,b=a.collisionPadding;if(b&&(y-=b[0]*s,m-=b[1]*s,g+=b[2]*s,v+=b[3]*s),c){var x=new i(y,m),_=new i(g,m),w=new i(y,v),E=new i(g,v),D=c*Math.PI/180;x._rotate(D),_._rotate(D),w._rotate(D),E._rotate(D),y=Math.min(x.x,_.x,w.x,E.x),g=Math.max(x.x,_.x,w.x,E.x),m=Math.min(x.y,_.y,w.y,E.y),v=Math.max(x.y,_.y,w.y,E.y)}e.emplaceBack(t.x,t.y,y,m,g,v,n,r,o)}this.boxEndIndex=e.length},Ju=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=Qu),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function Qu(e,t){return e<t?-1:e>t?1:0}function el(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,u=e[0],l=0;l<u.length;l++){var c=u[l];(!l||c.x<r)&&(r=c.x),(!l||c.y<o)&&(o=c.y),(!l||c.x>a)&&(a=c.x),(!l||c.y>s)&&(s=c.y)}var p=Math.min(a-r,s-o),f=p/2,d=new Ju([],tl);if(0===p)return new i(r,o);for(var h=r;h<a;h+=p)for(var m=o;m<s;m+=p)d.push(new nl(h+f,m+f,f,e));for(var v=function(e){for(var t=0,n=0,r=0,i=e[0],o=0,a=i.length,s=a-1;o<a;s=o++){var u=i[o],l=i[s],c=u.x*l.y-l.x*u.y;n+=(u.x+l.x)*c,r+=(u.y+l.y)*c,t+=3*c}return new nl(n/t,r/t,0,e)}(e),y=d.length;d.length;){var g=d.pop();(g.d>v.d||!v.d)&&(v=g,n&&console.log("found best %d after %d probes",Math.round(1e4*g.d)/1e4,y)),g.max-v.d<=t||(d.push(new nl(g.p.x-(f=g.h/2),g.p.y-f,f,e)),d.push(new nl(g.p.x+f,g.p.y-f,f,e)),d.push(new nl(g.p.x-f,g.p.y+f,f,e)),d.push(new nl(g.p.x+f,g.p.y+f,f,e)),y+=4)}return n&&(console.log("num probes: "+y),console.log("best distance: "+v.d)),v.p}function tl(e,t){return t.max-e.max}function nl(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,i=0;i<t.length;i++)for(var o=t[i],a=0,s=o.length,u=s-1;a<s;u=a++){var l=o[a],c=o[u];l.y>e.y!=c.y>e.y&&e.x<(c.x-l.x)*(e.y-l.y)/(c.y-l.y)+l.x&&(n=!n),r=Math.min(r,Ko(e,l,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ju.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},Ju.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}},Ju.prototype.peek=function(){return this.data[0]},Ju.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r},Ju.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,i=t[e];e<r;){var o=1+(e<<1),a=t[o],s=o+1;if(s<this.length&&n(t[s],a)<0&&(o=s,a=t[s]),n(a,i)>=0)break;t[e]=a,e=o}t[e]=i};var rl=Number.POSITIVE_INFINITY;function il(e,t){return t[1]!==rl?function(e,t,n){var r=0,i=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,i]}(e,t[0],t[1]):function(e,t){var n=0,r=0;t<0&&(t=0);var i=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function ol(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 al(e,t,n,r,o,a,s,u,l,c,p,f,d,h,m){var v=function(e,t,n,r,o,a,s,u){for(var l=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],p=0,f=t.positionedLines;p<f.length;p+=1)for(var d=f[p],h=0,m=d.positionedGlyphs;h<m.length;h+=1){var v=m[h];if(v.rect){var y=v.rect||{},g=4,b=!0,x=1,_=0,w=(o||u)&&v.vertical,E=v.metrics.advance*v.scale/2;if(u&&t.verticalizable&&(_=d.lineOffset/2-(v.imageName?-(24-v.metrics.width*v.scale)/2:24*(v.scale-1))),v.imageName){var D=s[v.imageName];b=D.sdf,g=1/(x=D.pixelRatio)}var C=o?[v.x+E,v.y]:[0,0],O=o?[0,0]:[v.x+E+n[0],v.y+n[1]-_],S=[0,0];w&&(S=O,O=[0,0]);var k=(v.metrics.left-g)*v.scale-E+O[0],A=(-v.metrics.top-g)*v.scale+O[1],T=k+y.w*v.scale/x,P=A+y.h*v.scale/x,M=new i(k,A),j=new i(T,A),I=new i(k,P),F=new i(T,P);if(w){var R=new i(-E,E- -17),z=-Math.PI/2,L=12-E,B=new i(22-L,-(v.imageName?L:0)),N=new(Function.prototype.bind.apply(i,[null].concat(S)));M._rotateAround(z,R)._add(B)._add(N),j._rotateAround(z,R)._add(B)._add(N),I._rotateAround(z,R)._add(B)._add(N),F._rotateAround(z,R)._add(B)._add(N)}if(l){var V=Math.sin(l),U=Math.cos(l),H=[U,-V,V,U];M._matMult(H),j._matMult(H),I._matMult(H),F._matMult(H)}var W=new i(0,0),G=new i(0,0);c.push({tl:M,tr:j,bl:I,br:F,tex:y,writingMode:t.writingMode,glyphOffset:C,sectionIndex:v.sectionIndex,isSDF:b,pixelOffsetTL:W,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return c}(0,n,u,o,a,s,r,e.allowVerticalPlacement),y=e.textSizeData,g=null;"source"===y.kind?(g=[128*o.layout.get("text-size").evaluate(s,{})])[0]>32640&&E(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===y.kind&&((g=[128*h.compositeTextSizes[0].evaluate(s,{},m),128*h.compositeTextSizes[1].evaluate(s,{},m)])[0]>32640||g[1]>32640)&&E(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),e.addSymbols(e.text,v,g,u,a,s,c,t,l.lineStartIndex,l.lineLength,d,m);for(var b=0,x=p;b<x.length;b+=1)f[x[b]]=e.text.placedSymbolArray.length-1;return 4*v.length}function sl(e){for(var t in e)return e[t];return null}function ul(e,t,n,r){var i=e.compareText;if(t in i){for(var o=i[t],a=o.length-1;a>=0;a--)if(r.dist(o[a])<n)return!0}else i[t]=[];return i[t].push(r),!1}var ll=bs.VectorTileFeature.types,cl=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function pl(e,t,n,r,i,o,a,s,u,l,c,p,f){var d=s?Math.min(32640,Math.round(s[0])):0,h=s?Math.min(32640,Math.round(s[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*i),o,a,(d<<1)+(u?1:0),h,16*l,16*c,256*p,256*f)}function fl(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function dl(e){for(var t=0,n=e.sections;t<n.length;t+=1)if(Kr(n[t].text))return!0;return!1}var hl=function(e){this.layoutVertexArray=new ji,this.indexArray=new Ni,this.programConfigurations=e,this.segments=new ao,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Fi,this.placedSymbolArray=new Ji};hl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},hl.prototype.upload=function(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ns.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Vs.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,cl,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))},hl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},zr("SymbolBuffers",hl);var ml=function(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new ao,this.collisionVertexArray=new Bi};ml.prototype.upload=function(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Us.members,!0)},ml.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},zr("CollisionBuffers",ml);var vl=function(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=aa([]),this.placementViewportMatrix=aa([]);var t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Fu(this.zoom,t["text-size"]),this.iconSizeData=Fu(this.zoom,t["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((function(e){return xu[e]}))),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id})),this.sourceID=e.sourceID};vl.prototype.createArrays=function(){this.text=new hl(new Io(this.layers,this.zoom,(function(e){return/^text/.test(e)}))),this.icon=new hl(new Io(this.layers,this.zoom,(function(e){return/^icon/.test(e)}))),this.glyphOffsetArray=new to,this.lineVertexArray=new no,this.symbolInstances=new eo},vl.prototype.calculateGlyphDependencies=function(e,t,n,r,i){for(var o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,(n||r)&&i){var a=qs[e.charAt(o)];a&&(t[a.charCodeAt(0)]=!0)}},vl.prototype.populate=function(e,t,n){var r=this.layers[0],i=r.layout,o=i.get("text-font"),a=i.get("text-field"),s=i.get("icon-image"),u=("constant"!==a.value.kind||a.value.value instanceof nt&&!a.value.value.isEmpty()||a.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],u||l){for(var p=t.iconDependencies,f=t.glyphDependencies,d=t.availableImages,h=new ai(this.zoom),m=0,v=e;m<v.length;m+=1){var y=v[m],g=y.feature,b=y.id,x=y.index,_=y.sourceLayerIndex,w=r._featureFilter.needGeometry,E=No(g,w);if(r._featureFilter.filter(h,E,n)){w||(E.geometry=Bo(g));var D=void 0;if(u){var C=r.getValueAndResolveTokens("text-field",E,n,d),O=nt.factory(C);dl(O)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===ri()||this.hasRTLText&&oi.isParsed())&&(D=Gs(O,r,E))}var S=void 0;if(l){var k=r.getValueAndResolveTokens("icon-image",E,n,d);S=k instanceof rt?k:rt.fromString(k)}if(D||S){var A=this.sortFeaturesByKey?c.evaluate(E,{},n):void 0;if(this.features.push({id:b,text:D,icon:S,index:x,sourceLayerIndex:_,geometry:E.geometry,properties:g.properties,type:ll[g.type],sortKey:A}),S&&(p[S.name]=!0),D){var T=o.evaluate(E,{},n).join(","),P="map"===i.get("text-rotation-alignment")&&"point"!==i.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(xu.vertical)>=0;for(var M=0,j=D.sections;M<j.length;M+=1){var I=j[M];if(I.image)p[I.image.name]=!0;else{var F=Gr(D.toString()),R=I.fontStack||T,z=f[R]=f[R]||{};this.calculateGlyphDependencies(I.text,z,P,this.allowVerticalPlacement,F)}}}}}}"line"===i.get("symbol-placement")&&(this.features=function(e){var t={},n={},r=[],i=0;function o(t){r.push(e[t]),i++}function a(e,t,i){var o=n[e];return delete n[e],n[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(e,n,i){var o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function u(e,t,n){var r=n?t[0][t[0].length-1]:t[0][0];return e+":"+r.x+":"+r.y}for(var l=0;l<e.length;l++){var c=e[l],p=c.geometry,f=c.text?c.text.toString():null;if(f){var d=u(f,p),h=u(f,p,!0);if(d in n&&h in t&&n[d]!==t[h]){var m=s(d,h,p),v=a(d,h,r[m].geometry);delete t[d],delete n[h],n[u(f,r[v].geometry,!0)]=v,r[m].geometry=null}else d in n?a(d,h,p):h in t?s(d,h,p):(o(l),t[d]=i-1,n[h]=i-1)}else o(l)}return r.filter((function(e){return e.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(e,t){return e.sortKey-t.sortKey}))}},vl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))},vl.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},vl.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},vl.prototype.upload=function(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.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},vl.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},vl.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},vl.prototype.addToLineVertexArray=function(e,t){var n=this.lineVertexArray.length;if(void 0!==e.segment){for(var r=e.dist(t[e.segment+1]),i=e.dist(t[e.segment]),o={},a=e.segment+1;a<t.length;a++)o[a]={x:t[a].x,y:t[a].y,tileUnitDistanceFromAnchor:r},a<t.length-1&&(r+=t[a+1].dist(t[a]));for(var s=e.segment||0;s>=0;s--)o[s]={x:t[s].x,y:t[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=t[s-1].dist(t[s]));for(var u=0;u<t.length;u++){var l=o[u];this.lineVertexArray.emplaceBack(l.x,l.y,l.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},vl.prototype.addSymbols=function(e,t,n,r,i,o,a,s,u,l,c,p){for(var f=e.indexArray,d=e.layoutVertexArray,h=e.segments.prepareSegment(4*t.length,d,f,this.canOverlap?o.sortKey:void 0),m=this.glyphOffsetArray.length,v=h.vertexLength,y=this.allowVerticalPlacement&&a===xu.vertical?Math.PI/2:0,g=o.text&&o.text.sections,b=0;b<t.length;b++){var x=t[b],_=x.tl,w=x.tr,E=x.bl,D=x.br,C=x.tex,O=x.pixelOffsetTL,S=x.pixelOffsetBR,k=x.minFontScaleX,A=x.minFontScaleY,T=x.glyphOffset,P=x.isSDF,M=x.sectionIndex,j=h.vertexLength,I=T[1];pl(d,s.x,s.y,_.x,I+_.y,C.x,C.y,n,P,O.x,O.y,k,A),pl(d,s.x,s.y,w.x,I+w.y,C.x+C.w,C.y,n,P,S.x,O.y,k,A),pl(d,s.x,s.y,E.x,I+E.y,C.x,C.y+C.h,n,P,O.x,S.y,k,A),pl(d,s.x,s.y,D.x,I+D.y,C.x+C.w,C.y+C.h,n,P,S.x,S.y,k,A),fl(e.dynamicLayoutVertexArray,s,y),f.emplaceBack(j,j+1,j+2),f.emplaceBack(j+1,j+2,j+3),h.vertexLength+=4,h.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(T[0]),b!==t.length-1&&M===t[b+1].sectionIndex||e.programConfigurations.populatePaintArrays(d.length,o,o.index,{},p,g&&g[M])}e.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,v,u,l,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,c)},vl.prototype._addCollisionDebugVertex=function(e,t,n,r,i,o){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,i,Math.round(o.x),Math.round(o.y))},vl.prototype.addCollisionDebugVertices=function(e,t,n,r,o,a,s){var u=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),l=u.vertexLength,c=o.layoutVertexArray,p=o.collisionVertexArray,f=s.anchorX,d=s.anchorY;this._addCollisionDebugVertex(c,p,a,f,d,new i(e,t)),this._addCollisionDebugVertex(c,p,a,f,d,new i(n,t)),this._addCollisionDebugVertex(c,p,a,f,d,new i(n,r)),this._addCollisionDebugVertex(c,p,a,f,d,new i(e,r)),u.vertexLength+=4;var h=o.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),u.primitiveLength+=4},vl.prototype.addDebugCollisionBoxes=function(e,t,n,r){for(var i=e;i<t;i++){var o=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(o.x1,o.y1,o.x2,o.y2,r?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,n)}},vl.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new ml(zi,Hs.members,qi),this.iconCollisionBox=new ml(zi,Hs.members,qi);for(var e=0;e<this.symbolInstances.length;e++){var t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}},vl.prototype._deserializeCollisionBoxesForSymbol=function(e,t,n,r,i,o,a,s,u){for(var l={},c=t;c<n;c++){var p=e.get(c);l.textBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},l.textFeatureIndex=p.featureIndex;break}for(var f=r;f<i;f++){var d=e.get(f);l.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},l.verticalTextFeatureIndex=d.featureIndex;break}for(var h=o;h<a;h++){var m=e.get(h);l.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},l.iconFeatureIndex=m.featureIndex;break}for(var v=s;v<u;v++){var y=e.get(v);l.verticalIconBox={x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,anchorPointX:y.anchorPointX,anchorPointY:y.anchorPointY},l.verticalIconFeatureIndex=y.featureIndex;break}return l},vl.prototype.deserializeCollisionBoxes=function(e){this.collisionArrays=[];for(var t=0;t<this.symbolInstances.length;t++){var n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},vl.prototype.hasTextData=function(){return this.text.segments.get().length>0},vl.prototype.hasIconData=function(){return this.icon.segments.get().length>0},vl.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},vl.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},vl.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},vl.prototype.addIndicesForPlacedSymbol=function(e,t){for(var n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs,i=n.vertexStartIndex;i<r;i+=4)e.indexArray.emplaceBack(i,i+1,i+2),e.indexArray.emplaceBack(i+1,i+2,i+3)},vl.prototype.getSortedSymbolIndexes=function(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var t=Math.sin(e),n=Math.cos(e),r=[],i=[],o=[],a=0;a<this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(t*s.anchorX+n*s.anchorY)),i.push(s.featureIndex)}return o.sort((function(e,t){return r[e]-r[t]||i[t]-i[e]})),o},vl.prototype.addToSortKeyRanges=function(e,t){var n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})},vl.prototype.sortFeatures=function(e){var t=this;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(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var i=this.symbolInstances.get(r[n]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(e,n,r){e>=0&&r.indexOf(e)===n&&t.addIndicesForPlacedSymbol(t.text,e)})),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},zr("SymbolBucket",vl,{omit:["layers","collisionBoxArray","features","compareText"]}),vl.MAX_GLYPHS=65535,vl.addDynamicAttributes=fl;var yl=new xi({"symbol-placement":new mi(ke.layout_symbol["symbol-placement"]),"symbol-spacing":new mi(ke.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new mi(ke.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new vi(ke.layout_symbol["symbol-sort-key"]),"symbol-z-order":new mi(ke.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new mi(ke.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new mi(ke.layout_symbol["icon-ignore-placement"]),"icon-optional":new mi(ke.layout_symbol["icon-optional"]),"icon-rotation-alignment":new mi(ke.layout_symbol["icon-rotation-alignment"]),"icon-size":new vi(ke.layout_symbol["icon-size"]),"icon-text-fit":new mi(ke.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new mi(ke.layout_symbol["icon-text-fit-padding"]),"icon-image":new vi(ke.layout_symbol["icon-image"]),"icon-rotate":new vi(ke.layout_symbol["icon-rotate"]),"icon-padding":new mi(ke.layout_symbol["icon-padding"]),"icon-keep-upright":new mi(ke.layout_symbol["icon-keep-upright"]),"icon-offset":new vi(ke.layout_symbol["icon-offset"]),"icon-anchor":new vi(ke.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new mi(ke.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new mi(ke.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new mi(ke.layout_symbol["text-rotation-alignment"]),"text-field":new vi(ke.layout_symbol["text-field"]),"text-font":new vi(ke.layout_symbol["text-font"]),"text-size":new vi(ke.layout_symbol["text-size"]),"text-max-width":new vi(ke.layout_symbol["text-max-width"]),"text-line-height":new mi(ke.layout_symbol["text-line-height"]),"text-letter-spacing":new vi(ke.layout_symbol["text-letter-spacing"]),"text-justify":new vi(ke.layout_symbol["text-justify"]),"text-radial-offset":new vi(ke.layout_symbol["text-radial-offset"]),"text-variable-anchor":new mi(ke.layout_symbol["text-variable-anchor"]),"text-anchor":new vi(ke.layout_symbol["text-anchor"]),"text-max-angle":new mi(ke.layout_symbol["text-max-angle"]),"text-writing-mode":new mi(ke.layout_symbol["text-writing-mode"]),"text-rotate":new vi(ke.layout_symbol["text-rotate"]),"text-padding":new mi(ke.layout_symbol["text-padding"]),"text-keep-upright":new mi(ke.layout_symbol["text-keep-upright"]),"text-transform":new vi(ke.layout_symbol["text-transform"]),"text-offset":new vi(ke.layout_symbol["text-offset"]),"text-allow-overlap":new mi(ke.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new mi(ke.layout_symbol["text-ignore-placement"]),"text-optional":new mi(ke.layout_symbol["text-optional"])}),gl={paint:new xi({"icon-opacity":new vi(ke.paint_symbol["icon-opacity"]),"icon-color":new vi(ke.paint_symbol["icon-color"]),"icon-halo-color":new vi(ke.paint_symbol["icon-halo-color"]),"icon-halo-width":new vi(ke.paint_symbol["icon-halo-width"]),"icon-halo-blur":new vi(ke.paint_symbol["icon-halo-blur"]),"icon-translate":new mi(ke.paint_symbol["icon-translate"]),"icon-translate-anchor":new mi(ke.paint_symbol["icon-translate-anchor"]),"text-opacity":new vi(ke.paint_symbol["text-opacity"]),"text-color":new vi(ke.paint_symbol["text-color"],{runtimeType:Ne,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new vi(ke.paint_symbol["text-halo-color"]),"text-halo-width":new vi(ke.paint_symbol["text-halo-width"]),"text-halo-blur":new vi(ke.paint_symbol["text-halo-blur"]),"text-translate":new mi(ke.paint_symbol["text-translate"]),"text-translate-anchor":new mi(ke.paint_symbol["text-translate-anchor"])}),layout:yl},bl=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Re,this.defaultValue=e};bl.prototype.evaluate=function(e){if(e.formattedSection){var 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},bl.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},bl.prototype.outputDefined=function(){return!1},bl.prototype.serialize=function(){return null},zr("FormatSectionOverride",bl,{omit:["defaultValue"]});var xl=function(e){function t(t){e.call(this,t,gl)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.recalculate=function(t,n){if(e.prototype.recalculate.call(this,t,n),"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")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var i=[],o=0,a=r;o<a.length;o+=1){var s=a[o];i.indexOf(s)<0&&i.push(s)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},t.prototype.getValueAndResolveTokens=function(e,t,n,r){var i=this.layout.get(e).evaluate(t,{},n,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Gn(o.value)||!i?i:function(e,t){return t.replace(/{([^{}]+)}/g,(function(t,n){return n in e?String(e[n]):""}))}(t.properties,i)},t.prototype.createBucket=function(e){return new vl(e)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype._setPaintOverrides=function(){for(var e=0,n=gl.paint.overridableProperties;e<n.length;e+=1){var r=n[e];if(t.hasPaintOverride(this.layout,r)){var i,o=this.paint.get(r),a=new bl(o),s=new Wn(a,o.property.specification);i="constant"===o.value.kind||"source"===o.value.kind?new Yn("source",s):new Zn("composite",s,o.value.zoomStops,o.value._interpolationType),this.paint._values[r]=new di(o.property,i,o.parameters)}}},t.prototype._handleOverridablePaintPropertyUpdate=function(e,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,e)},t.hasPaintOverride=function(e,t){var n=e.get("text-field"),r=gl.paint.properties[t],i=!1,o=function(e){for(var t=0,n=e;t<n.length;t+=1)if(r.overrides&&r.overrides.hasOverride(n[t]))return void(i=!0)};if("constant"===n.value.kind&&n.value.value instanceof nt)o(n.value.value.sections);else if("source"===n.value.kind){var a=n.value;a._styleExpression&&function e(t){i||(t instanceof ut&&at(t.value)===We?o(t.value.sections):t instanceof ft?o(t.sections):t.eachChild(e))}(a._styleExpression.expression)}return i},t}(_i),_l={paint:new xi({"background-color":new mi(ke.paint_background["background-color"]),"background-pattern":new gi(ke.paint_background["background-pattern"]),"background-opacity":new mi(ke.paint_background["background-opacity"])})},wl=function(e){function t(t){e.call(this,t,_l)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(_i),El={paint:new xi({"raster-opacity":new mi(ke.paint_raster["raster-opacity"]),"raster-hue-rotate":new mi(ke.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new mi(ke.paint_raster["raster-brightness-min"]),"raster-brightness-max":new mi(ke.paint_raster["raster-brightness-max"]),"raster-saturation":new mi(ke.paint_raster["raster-saturation"]),"raster-contrast":new mi(ke.paint_raster["raster-contrast"]),"raster-resampling":new mi(ke.paint_raster["raster-resampling"]),"raster-fade-duration":new mi(ke.paint_raster["raster-fade-duration"])})},Dl=function(e){function t(t){e.call(this,t,El)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(_i),Cl=function(e){function t(t){e.call(this,t,{}),this.implementation=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},t.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},t.prototype.recalculate=function(){},t.prototype.updateTransitions=function(){},t.prototype.hasTransition=function(){},t.prototype.serialize=function(){},t.prototype.onAdd=function(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},t.prototype.onRemove=function(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},t}(_i),Ol={circle:pa,heatmap:_a,hillshade:Ea,fill:ls,"fill-extrusion":Os,line:Ls,symbol:xl,background:wl,raster:Dl},Sl=a.HTMLImageElement,kl=a.HTMLCanvasElement,Al=a.HTMLVideoElement,Tl=a.ImageData,Pl=a.ImageBitmap,Ml=function(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)};Ml.prototype.update=function(e,t,n){var r=e.width,i=e.height,o=!(this.size&&this.size[0]===r&&this.size[1]===i||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(t&&t.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!t||!1!==t.premultiply)),o)this.size=[r,i],e instanceof Sl||e instanceof kl||e instanceof Al||e instanceof Tl||Pl&&e instanceof Pl?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,r,i,0,this.format,s.UNSIGNED_BYTE,e.data);else{var u=n||{x:0,y:0},l=u.x,c=u.y;e instanceof Sl||e instanceof kl||e instanceof Al||e instanceof Tl||Pl&&e instanceof Pl?s.texSubImage2D(s.TEXTURE_2D,0,l,c,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,l,c,r,i,s.RGBA,s.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},Ml.prototype.bind=function(e,t,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)},Ml.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Ml.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var jl=function(e){var t=this;this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){t._triggered=!1,t._callback()})};jl.prototype.trigger=function(){var e=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){e._triggered=!1,e._callback()}),0))},jl.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Il=function(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},y(["receive","process"],this),this.invoker=new jl(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=O()?e:a};function Fl(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}Il.prototype.send=function(e,t,n,r,i){var o=this;void 0===i&&(i=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[a]=n);var s=A(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:e,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:Vr(t,s)},s),{cancel:function(){n&&delete o.callbacks[a],o.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},Il.prototype.receive=function(e){var t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else O()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)},Il.prototype.process=function(){if(this.taskQueue.length){var e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}},Il.prototype.processTask=function(e,t){var n=this;if("<response>"===t.type){var r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(Ur(t.error)):r(null,Ur(t.data)))}else{var i=!1,o=A(this.globalScope)?void 0:[],a=t.hasCallback?function(t,r){i=!0,delete n.cancelCallbacks[e],n.target.postMessage({id:e,type:"<response>",sourceMapId:n.mapId,error:t?Vr(t):null,data:Vr(r,o)},o)}:function(e){i=!0},s=null,u=Ur(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,u,a);else if(this.parent.getWorkerSource){var l=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,l[0],u.source)[l[1]](u,a)}else a(new Error("Could not find function "+t.type));!i&&s&&s.cancel&&(this.cancelCallbacks[e]=s.cancel)}},Il.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Rl=function(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]))};Rl.prototype.setNorthEast=function(e){return this._ne=e instanceof zl?new zl(e.lng,e.lat):zl.convert(e),this},Rl.prototype.setSouthWest=function(e){return this._sw=e instanceof zl?new zl(e.lng,e.lat):zl.convert(e),this},Rl.prototype.extend=function(e){var t,n,r=this._sw,i=this._ne;if(e instanceof zl)t=e,n=e;else{if(!(e instanceof Rl))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Rl.convert(e)):this.extend(zl.convert(e)):this;if(n=e._ne,!(t=e._sw)||!n)return this}return r||i?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new zl(t.lng,t.lat),this._ne=new zl(n.lng,n.lat)),this},Rl.prototype.getCenter=function(){return new zl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Rl.prototype.getSouthWest=function(){return this._sw},Rl.prototype.getNorthEast=function(){return this._ne},Rl.prototype.getNorthWest=function(){return new zl(this.getWest(),this.getNorth())},Rl.prototype.getSouthEast=function(){return new zl(this.getEast(),this.getSouth())},Rl.prototype.getWest=function(){return this._sw.lng},Rl.prototype.getSouth=function(){return this._sw.lat},Rl.prototype.getEast=function(){return this._ne.lng},Rl.prototype.getNorth=function(){return this._ne.lat},Rl.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Rl.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Rl.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Rl.prototype.contains=function(e){var t=zl.convert(e),n=t.lng,r=t.lat,i=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&i},Rl.convert=function(e){return!e||e instanceof Rl?e:new Rl(e)};var zl=function(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")};zl.prototype.wrap=function(){return new zl(p(this.lng,-180,180),this.lat)},zl.prototype.toArray=function(){return[this.lng,this.lat]},zl.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},zl.prototype.distanceTo=function(e){var t=Math.PI/180,n=this.lat*t,r=e.lat*t,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return 6371008.8*Math.acos(Math.min(i,1))},zl.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Rl(new zl(this.lng-n,this.lat-t),new zl(this.lng+n,this.lat+t))},zl.convert=function(e){if(e instanceof zl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new zl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new zl(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 Ll=2*Math.PI*6371008.8;function Bl(e){return Ll*Math.cos(e*Math.PI/180)}function Nl(e){return(180+e)/360}function Vl(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Ul(e,t){return e/Bl(t)}function Hl(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}var Wl=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Wl.fromLngLat=function(e,t){void 0===t&&(t=0);var n=zl.convert(e);return new Wl(Nl(n.lng),Vl(n.lat),Ul(t,n.lat))},Wl.prototype.toLngLat=function(){return new zl(360*this.x-180,Hl(this.y))},Wl.prototype.toAltitude=function(){return this.z*Bl(Hl(this.y))},Wl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Ll*(e=Hl(this.y),1/Math.cos(e*Math.PI/180));var e};var Gl=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Zl(0,e,e,t,n)};Gl.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Gl.prototype.url=function(e,t){var n,r,i,o,a,s=(r=this.y,i=this.z,o=Fl(256*(n=this.x),256*(r=Math.pow(2,i)-r-1),i),a=Fl(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),u=function(e,t,n){for(var r,i="",o=e;o>0;o--)i+=(t&(r=1<<o-1)?1:0)+(n&r?2:0);return i}(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}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",u).replace("{bbox-epsg-3857}",s)},Gl.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new i(8192*(e.x*t-this.x),8192*(e.y*t-this.y))},Gl.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var ql=function(e,t){this.wrap=e,this.canonical=t,this.key=Zl(e,t.z,t.z,t.x,t.y)},Yl=function(e,t,n,r,i){this.overscaledZ=e,this.wrap=t,this.canonical=new Gl(n,+r,+i),this.key=Zl(t,e,n,r,i)};function Zl(e,t,n,r,i){(e*=2)<0&&(e=-1*e-1);var o=1<<n;return(o*o*e+o*i+r).toString(36)+n.toString(36)+t.toString(36)}Yl.prototype.equals=function(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)},Yl.prototype.scaledTo=function(e){var t=this.canonical.z-e;return e>this.canonical.z?new Yl(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Yl(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Yl.prototype.calculateScaledKey=function(e,t){var n=this.canonical.z-e;return e>this.canonical.z?Zl(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Zl(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)},Yl.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t},Yl.prototype.children=function(e){if(this.overscaledZ>=e)return[new Yl(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Yl(t,this.wrap,t,n,r),new Yl(t,this.wrap,t,n+1,r),new Yl(t,this.wrap,t,n,r+1),new Yl(t,this.wrap,t,n+1,r+1)]},Yl.prototype.isLessThan=function(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))},Yl.prototype.wrapped=function(){return new Yl(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Yl.prototype.unwrapTo=function(e){return new Yl(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)},Yl.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Yl.prototype.toUnwrapped=function(){return new ql(this.wrap,this.canonical)},Yl.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Yl.prototype.getTilePoint=function(e){return this.canonical.getTilePoint(new Wl(e.x-this.wrap,e.y))},zr("CanonicalTileID",Gl),zr("OverscaledTileID",Yl,{omit:["posMatrix"]});var $l=function(e,t,n){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return E('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=t.height;var r=this.dim=t.height-2;this.data=new Uint32Array(t.data.buffer),this.encoding=n||"mapbox";for(var i=0;i<r;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(r,i)]=this.data[this._idx(r-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,r)]=this.data[this._idx(i,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};$l.prototype.get=function(e,t){var n=new Uint8Array(this.data.buffer),r=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[r],n[r+1],n[r+2])},$l.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},$l.prototype._idx=function(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)},$l.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},$l.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},$l.prototype.getPixels=function(){return new ga({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},$l.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,i=t*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}for(var s=-t*this.dim,u=-n*this.dim,l=o;l<a;l++)for(var c=r;c<i;c++)this.data[this._idx(c,l)]=e.data[this._idx(c+s,l+u)]},zr("DEMData",$l);var Kl=function(e){this._stringToNumber={},this._numberToString=[];for(var t=0;t<e.length;t++){var n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}};Kl.prototype.encode=function(e){return this._stringToNumber[e]},Kl.prototype.decode=function(e){return this._numberToString[e]};var Xl=function(e,t,n,r,i){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,this.id=i},Jl={geometry:{configurable:!0}};Jl.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Jl.geometry.set=function(e){this._geometry=e},Xl.prototype.toJSON=function(){var e={geometry:this.geometry};for(var t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e},Object.defineProperties(Xl.prototype,Jl);var Ql=function(){this.state={},this.stateChanges={},this.deletedStates={}};Ql.prototype.updateState=function(e,t,n){var r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},f(this.stateChanges[e][r],n),null===this.deletedStates[e])for(var i in this.deletedStates[e]={},this.state[e])i!==r&&(this.deletedStates[e][i]=null);else if(this.deletedStates[e]&&null===this.deletedStates[e][r])for(var o in this.deletedStates[e][r]={},this.state[e][r])n[o]||(this.deletedStates[e][r][o]=null);else for(var a in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][a]&&delete this.deletedStates[e][r][a]},Ql.prototype.removeFeatureState=function(e,t,n){if(null!==this.deletedStates[e]){var r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}},Ql.prototype.getState=function(e,t){var n=String(t),r=f({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){var i=this.deletedStates[e][t];if(null===i)return{};for(var o in i)delete r[o]}return r},Ql.prototype.initializeTileState=function(e,t){e.setFeatureState(this.state,t)},Ql.prototype.coalesceChanges=function(e,t){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var i={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),f(this.state[r][o],this.stateChanges[r][o]),i[o]=this.state[r][o];n[r]=i}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var u in this.state[a])s[u]={},this.state[a][u]={};else for(var l in this.deletedStates[a]){if(null===this.deletedStates[a][l])this.state[a][l]={};else for(var c=0,p=Object.keys(this.deletedStates[a][l]);c<p.length;c+=1)delete this.state[a][l][p[c]];s[l]=this.state[a][l]}n[a]=n[a]||{},f(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var d in e)e[d].setFeatureState(n,t)};var ec=function(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Mr(8192,16,0),this.grid3D=new Mr(8192,16,0),this.featureIndexArray=new io,this.promoteId=t};function tc(e,t,n,r,i){return b(e,(function(e,o){var a=t instanceof hi?t.get(o):null;return a&&a.evaluate?a.evaluate(n,r,i):a}))}function nc(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0,a=e;o<a.length;o+=1){var s=a[o];t=Math.min(t,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),i=Math.max(i,s.y)}return{minX:t,minY:n,maxX:r,maxY:i}}function rc(e,t){return t-e}ec.prototype.insert=function(e,t,n,r,i,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);for(var s=o?this.grid3D:this.grid,u=0;u<t.length;u++){for(var l=t[u],c=[1/0,1/0,-1/0,-1/0],p=0;p<l.length;p++){var f=l[p];c[0]=Math.min(c[0],f.x),c[1]=Math.min(c[1],f.y),c[2]=Math.max(c[2],f.x),c[3]=Math.max(c[3],f.y)}c[0]<8192&&c[1]<8192&&c[2]>=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},ec.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new bs.VectorTile(new $s(this.rawTileData)).layers,this.sourceLayerCoder=new Kl(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},ec.prototype.query=function(e,t,n,r){var o=this;this.loadVTLayers();for(var a=e.params||{},s=8192/e.tileSize/e.scale,u=or(a.filter),l=e.queryGeometry,c=e.queryPadding*s,p=nc(l),f=this.grid.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c),d=nc(e.cameraQueryGeometry),h=0,m=this.grid3D.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c,(function(t,n,r,o){return function(e,t,n,r,o){for(var a=0,s=e;a<s.length;a+=1){var u=s[a];if(t<=u.x&&n<=u.y&&r>=u.x&&o>=u.y)return!0}var l=[new i(t,n),new i(t,o),new i(r,o),new i(r,n)];if(e.length>2)for(var c=0,p=l;c<p.length;c+=1)if(Jo(e,p[c]))return!0;for(var f=0;f<e.length-1;f++)if(Qo(e[f],e[f+1],l))return!0;return!1}(e.cameraQueryGeometry,t-c,n-c,r+c,o+c)}));h<m.length;h+=1)f.push(m[h]);f.sort(rc);for(var v,y={},g=function(i){var c=f[i];if(c!==v){v=c;var p=o.featureIndexArray.get(c),d=null;o.loadMatchingFeature(y,p.bucketIndex,p.sourceLayerIndex,p.featureIndex,u,a.layers,a.availableImages,t,n,r,(function(t,n,r){return d||(d=Bo(t)),n.queryIntersectsFeature(l,t,r,d,o.z,e.transform,s,e.pixelPosMatrix)}))}},b=0;b<f.length;b++)g(b);return y},ec.prototype.loadMatchingFeature=function(e,t,n,r,i,o,a,s,u,l,c){var p=this.bucketLayerIDs[t];if(!o||function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(o,p)){var d=this.sourceLayerCoder.decode(n),h=this.vtLayers[d].feature(r);if(i.needGeometry){var m=No(h,!0);if(!i.filter(new ai(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!i.filter(new ai(this.tileID.overscaledZ),h))return;for(var v=this.getId(h,d),y=0;y<p.length;y++){var g=p[y];if(!(o&&o.indexOf(g)<0)){var b=s[g];if(b){var x={};void 0!==v&&l&&(x=l.getState(b.sourceLayer||"_geojsonTileLayer",v));var _=f({},u[g]);_.paint=tc(_.paint,b.paint,h,x,a),_.layout=tc(_.layout,b.layout,h,x,a);var w=!c||c(h,b,x);if(w){var E=new Xl(h,this.z,this.x,this.y,v);E.layer=_;var D=e[g];void 0===D&&(D=e[g]=[]),D.push({featureIndex:r,feature:E,intersectionZ:w})}}}}}},ec.prototype.lookupSymbolFeatures=function(e,t,n,r,i,o,a,s){var u={};this.loadVTLayers();for(var l=or(i),c=0,p=e;c<p.length;c+=1)this.loadMatchingFeature(u,n,r,p[c],l,o,a,s,t);return u},ec.prototype.hasLayer=function(e){for(var t=0,n=this.bucketLayerIDs;t<n.length;t+=1)for(var r=0,i=n[t];r<i.length;r+=1)if(e===i[r])return!0;return!1},ec.prototype.getId=function(e,t){var n=e.id;return this.promoteId&&"boolean"==typeof(n=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]])&&(n=Number(n)),n},zr("FeatureIndex",ec,{omit:["rawTileData","sourceLayerCoder"]});var ic=function(e,t){this.tileID=e,this.uid=h(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};ic.prototype.registerFadeDuration=function(e){var t=e+this.timeAdded;t<L.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)},ic.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},ic.prototype.loadVectorData=function(e,t,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){for(var r in 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){var n={};if(!t)return n;for(var r=function(){var e=o[i],r=e.layerIds.map((function(e){return t.getLayer(e)})).filter(Boolean);if(0!==r.length){e.layers=r,e.stateDependentLayerIds&&(e.stateDependentLayers=e.stateDependentLayerIds.map((function(e){return r.filter((function(t){return t.id===e}))[0]})));for(var a=0,s=r;a<s.length;a+=1)n[s[a].id]=e}},i=0,o=e;i<o.length;i+=1)r();return n}(e.buckets,t.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[r];if(i instanceof vl){if(this.hasSymbolBuckets=!0,!n)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var o in this.buckets){var a=this.buckets[o];if(a instanceof vl&&a.hasRTLText){this.hasRTLText=!0,oi.isLoading()||oi.isLoaded()||"deferred"!==ri()||ii();break}}for(var s in this.queryPadding=0,this.buckets){var u=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(s).queryRadius(u))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Ki},ic.prototype.unloadVectorData=function(){for(var e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},ic.prototype.getBucket=function(e){return this.buckets[e.id]},ic.prototype.upload=function(e){for(var t in this.buckets){var n=this.buckets[t];n.uploadPending()&&n.upload(e)}var r=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Ml(e,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Ml(e,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},ic.prototype.prepare=function(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)},ic.prototype.queryRenderedFeatures=function(e,t,n,r,i,o,a,s,u,l){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:o,tileSize:this.tileSize,pixelPosMatrix:l,transform:s,params:a,queryPadding:this.queryPadding*u},e,t,n):{}},ic.prototype.querySourceFeatures=function(e,t){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var r=n.loadVTLayers(),i=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[i];if(o)for(var a=or(t&&t.filter),s=this.tileID.canonical,u=s.z,l=s.x,c=s.y,p={z:u,x:l,y:c},f=0;f<o.length;f++){var d=o.feature(f);if(a.needGeometry){var h=No(d,!0);if(!a.filter(new ai(this.tileID.overscaledZ),h,this.tileID.canonical))continue}else if(!a.filter(new ai(this.tileID.overscaledZ),d))continue;var m=n.getId(d,i),v=new Xl(d,u,l,c,m);v.tile=p,e.push(v)}}},ic.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},ic.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},ic.prototype.setExpiryData=function(e){var t=this.expirationTime;if(e.cacheControl){var n=S(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var r=Date.now(),i=!1;if(this.expirationTime>r)i=!1;else if(t)if(this.expirationTime<t)i=!0;else{var o=this.expirationTime-t;o?this.expirationTime=r+Math.max(o,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},ic.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},ic.prototype.setFeatureState=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(e).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets)if(t.style.hasLayer(r)){var i=this.buckets[r],o=i.layers[0].sourceLayer||"_geojsonTileLayer",a=n[o],s=e[o];if(a&&s&&0!==Object.keys(s).length){i.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{});var u=t&&t.style&&t.style.getLayer(r);u&&(this.queryPadding=Math.max(this.queryPadding,u.queryRadius(i)))}}}},ic.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},ic.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<L.now()},ic.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},ic.prototype.setHoldDuration=function(e){this.symbolFadeHoldUntil=L.now()+e},ic.prototype.setDependencies=function(e,t){for(var n={},r=0,i=t;r<i.length;r+=1)n[i[r]]=!0;this.dependencies[e]=n},ic.prototype.hasDependency=function(e,t){for(var n=0,r=e;n<r.length;n+=1){var i=this.dependencies[r[n]];if(i)for(var o=0,a=t;o<a.length;o+=1)if(i[a[o]])return!0}return!1};var oc=a.performance,ac=function(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},oc.mark(this._marks.start)};ac.prototype.finish=function(){oc.mark(this._marks.end);var e=oc.getEntriesByName(this._marks.measure);return 0===e.length&&(oc.measure(this._marks.measure,this._marks.start,this._marks.end),e=oc.getEntriesByName(this._marks.measure),oc.clearMarks(this._marks.start),oc.clearMarks(this._marks.end),oc.clearMeasures(this._marks.measure)),e},e.Actor=Il,e.AlphaImage=ya,e.CanonicalTileID=Gl,e.CollisionBoxArray=Ki,e.Color=Qe,e.DEMData=$l,e.DataConstantProperty=mi,e.DictionaryCoder=Kl,e.EXTENT=8192,e.ErrorEvent=Oe,e.EvaluationParameters=ai,e.Event=Ce,e.Evented=Se,e.FeatureIndex=ec,e.FillBucket=as,e.FillExtrusionBucket=Es,e.ImageAtlas=bu,e.ImagePosition=yu,e.LineBucket=Is,e.LngLat=zl,e.LngLatBounds=Rl,e.MercatorCoordinate=Wl,e.ONE_EM=24,e.OverscaledTileID=Yl,e.Point=i,e.Point$1=i,e.Properties=xi,e.Protobuf=$s,e.RGBAImage=ga,e.RequestManager=G,e.RequestPerformance=ac,e.ResourceType=he,e.SegmentVector=ao,e.SourceFeatureState=Ql,e.StructArrayLayout1ui2=Yi,e.StructArrayLayout2f1f2i16=Li,e.StructArrayLayout2i4=Si,e.StructArrayLayout3ui6=Ni,e.StructArrayLayout4i8=ki,e.SymbolBucket=vl,e.Texture=Ml,e.Tile=ic,e.Transitionable=li,e.Uniform1f=xo,e.Uniform1i=bo,e.Uniform2f=_o,e.Uniform3f=wo,e.Uniform4f=Eo,e.UniformColor=Do,e.UniformMatrix4f=Oo,e.UnwrappedTileID=ql,e.ValidationError=Ae,e.WritingMode=xu,e.ZoomHistory=Hr,e.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},e.addDynamicAttributes=fl,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);var r=e.length,i=new Array(e.length),o=null;e.forEach((function(e,a){t(e,(function(e,t){e&&(o=e),i[a]=t,0==--r&&n(o,i)}))}))},e.bezier=u,e.bindAll=y,e.browser=L,e.cacheEntryPossiblyAdded=function(e){++fe>ue&&(e.getActor().send("enforceCacheSizeLimit",se),fe=0)},e.clamp=c,e.clearTileCache=function(e){var t=a.caches.delete("mapbox-tiles");e&&t.catch(e).then((function(){return e()}))},e.clipLine=Gu,e.clone=function(e){var t=new oa(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},e.clone$1=_,e.clone$2=function(e){var t=new oa(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.collisionCircleLayout=Ws,e.config=B,e.create=function(){var e=new oa(16);return oa!=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},e.create$1=function(){var e=new oa(9);return oa!=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},e.create$2=function(){var e=new oa(4);return oa!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=qn,e.createLayout=Ci,e.createStyleLayer=function(e){return"custom"===e.type?new Cl(e):new Ol[e.type](e)},e.cross=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],u=n[2];return e[0]=i*u-o*s,e[1]=o*a-r*u,e[2]=r*s-i*a,e},e.deepEqual=function e(t,n){if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var i in t)if(!e(t[i],n[i]))return!1;return!0}return t===n},e.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},e.dot$1=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.ease=l,e.emitValidationErrors=Pr,e.endsWith=g,e.enforceCacheSizeLimit=function(e){le(),ee&&ee.then((function(t){t.keys().then((function(n){for(var r=0;r<n.length-e;r++)t.delete(n[r])}))}))},e.evaluateSizeForFeature=Ru,e.evaluateSizeForZoom=zu,e.evaluateVariableOffset=il,e.evented=ni,e.extend=f,e.featureFilter=or,e.filterObject=x,e.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.getAnchorAlignment=Pu,e.getAnchorJustification=ol,e.getArrayBuffer=xe,e.getImage=function e(t,n){if(N.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),ve>=B.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:n,cancelled:!1,cancel:function(){this.cancelled=!0}};return me.push(r),r}ve++;var i=!1,o=function(){if(!i)for(i=!0,ve--;me.length&&ve<B.MAX_PARALLEL_IMAGE_REQUESTS;){var t=me.shift();t.cancelled||(t.cancel=e(t.requestParameters,t.callback).cancel)}},s=xe(t,(function(e,t,r,i){o(),e?n(e):t&&(de()?function(e,t){var n=new a.Blob([new Uint8Array(e)],{type:"image/png"});a.createImageBitmap(n).then((function(e){t(null,e)})).catch((function(e){t(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."))}))}(t,n):function(e,t,n,r){var i=new a.Image,o=a.URL;i.onload=function(){t(null,i),o.revokeObjectURL(i.src),i.onload=null,a.requestAnimationFrame((function(){i.src=we}))},i.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var s=new a.Blob([new Uint8Array(e)],{type:"image/png"});i.cacheControl=n,i.expires=r,i.src=e.byteLength?o.createObjectURL(s):we}(t,n,r,i))}));return{cancel:function(){s.cancel(),o()}}},e.getJSON=function(e,t){return be(f(e,{type:"json"}),t)},e.getRTLTextPluginStatus=ri,e.getReferrer=ge,e.getVideo=function(e,t){var n,r,i=a.document.createElement("video");i.muted=!0,i.onloadstart=function(){t(null,i)};for(var o=0;o<e.length;o++){var s=a.document.createElement("source");n=e[o],r=void 0,(r=a.document.createElement("a")).href=n,(r.protocol!==a.document.location.protocol||r.host!==a.document.location.host)&&(i.crossOrigin="Anonymous"),s.src=e[o],i.appendChild(s)}return{cancel:function(){}}},e.identity=aa,e.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],p=t[9],f=t[10],d=t[11],h=t[12],m=t[13],v=t[14],y=t[15],g=n*s-r*a,b=n*u-i*a,x=n*l-o*a,_=r*u-i*s,w=r*l-o*s,E=i*l-o*u,D=c*m-p*h,C=c*v-f*h,O=c*y-d*h,S=p*v-f*m,k=p*y-d*m,A=f*y-d*v,T=g*A-b*k+x*S+_*O-w*C+E*D;return T?(e[0]=(s*A-u*k+l*S)*(T=1/T),e[1]=(i*k-r*A-o*S)*T,e[2]=(m*E-v*w+y*_)*T,e[3]=(f*w-p*E-d*_)*T,e[4]=(u*O-a*A-l*C)*T,e[5]=(n*A-i*O+o*C)*T,e[6]=(v*x-h*E-y*b)*T,e[7]=(c*E-f*x+d*b)*T,e[8]=(a*k-s*O+l*D)*T,e[9]=(r*O-n*k-o*D)*T,e[10]=(h*w-m*x+y*g)*T,e[11]=(p*x-c*w-d*g)*T,e[12]=(s*C-a*S-u*D)*T,e[13]=(n*S-r*C+i*D)*T,e[14]=(m*b-h*_-v*g)*T,e[15]=(c*_-p*b+f*g)*T,e):null},e.isChar=Wr,e.isMapboxURL=q,e.keysDifference=function(e,t){var n=[];for(var r in e)r in t||n.push(r);return n},e.makeRequest=be,e.mapObject=b,e.mercatorXfromLng=Nl,e.mercatorYfromLat=Vl,e.mercatorZfromAltitude=Ul,e.mul=la,e.multiply=sa,e.mvt=bs,e.nextPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.normalize=function(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e},e.number=Ht,e.offscreenCanvasSupported=de,e.ortho=function(e,t,n,r,i,o,a){var s=1/(t-n),u=1/(r-i),l=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*u,e[14]=(a+o)*l,e[15]=1,e},e.parseGlyphPBF=function(e){return new $s(e).readFields(du,[])},e.pbf=$s,e.performSymbolLayout=function(e,t,n,r,i,o,a){e.createArrays(),e.tilePixelRatio=8192/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;var s=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,l={};if("composite"===e.textSizeData.kind){var c=e.textSizeData,p=c.maxZoom;l.compositeTextSizes=[u["text-size"].possiblyEvaluate(new ai(c.minZoom),a),u["text-size"].possiblyEvaluate(new ai(p),a)]}if("composite"===e.iconSizeData.kind){var f=e.iconSizeData,d=f.maxZoom;l.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new ai(f.minZoom),a),u["icon-size"].possiblyEvaluate(new ai(d),a)]}l.layoutTextSize=u["text-size"].possiblyEvaluate(new ai(e.zoom+1),a),l.layoutIconSize=u["icon-size"].possiblyEvaluate(new ai(e.zoom+1),a),l.textMaxSize=u["text-size"].possiblyEvaluate(new ai(18));for(var h=24*s.get("text-line-height"),m="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),v=s.get("text-keep-upright"),y=s.get("text-size"),g=function(){var o=x[b],u=s.get("text-font").evaluate(o,{},a).join(","),c=y.evaluate(o,{},a),p=l.layoutTextSize.evaluate(o,{},a),f=l.layoutIconSize.evaluate(o,{},a),d={horizontal:{},vertical:void 0},g=o.text,_=[0,0];if(g){var w=g.toString(),D=24*s.get("text-letter-spacing").evaluate(o,{},a),C=function(e){for(var t=0,n=e;t<n.length;t+=1)if(r=n[t].charCodeAt(0),Wr.Arabic(r)||Wr["Arabic Supplement"](r)||Wr["Arabic Extended-A"](r)||Wr["Arabic Presentation Forms-A"](r)||Wr["Arabic Presentation Forms-B"](r))return!1;var r;return!0}(w)?D:0,O=s.get("text-anchor").evaluate(o,{},a),S=s.get("text-variable-anchor");if(!S){var k=s.get("text-radial-offset").evaluate(o,{},a);_=k?il(O,[24*k,rl]):s.get("text-offset").evaluate(o,{},a).map((function(e){return 24*e}))}var A=m?"center":s.get("text-justify").evaluate(o,{},a),T=s.get("symbol-placement"),P="point"===T?24*s.get("text-max-width").evaluate(o,{},a):0,M=function(){e.allowVerticalPlacement&&Gr(w)&&(d.vertical=Eu(g,t,n,i,u,P,h,O,"left",C,_,xu.vertical,!0,T,p,c))};if(!m&&S){for(var j="auto"===A?S.map((function(e){return ol(e)})):[A],I=!1,F=0;F<j.length;F++){var R=j[F];if(!d.horizontal[R])if(I)d.horizontal[R]=d.horizontal[0];else{var z=Eu(g,t,n,i,u,P,h,"center",R,C,_,xu.horizontal,!1,T,p,c);z&&(d.horizontal[R]=z,I=1===z.positionedLines.length)}}M()}else{"auto"===A&&(A=ol(O));var L=Eu(g,t,n,i,u,P,h,O,A,C,_,xu.horizontal,!1,T,p,c);L&&(d.horizontal[A]=L),M(),Gr(w)&&m&&v&&(d.vertical=Eu(g,t,n,i,u,P,h,O,A,C,_,xu.vertical,!1,T,p,c))}}var B=void 0,N=!1;if(o.icon&&o.icon.name){var V=r[o.icon.name];V&&(B=function(e,t,n){var r=Pu(n),i=t[0]-e.displaySize[0]*r.horizontalAlign,o=t[1]-e.displaySize[1]*r.verticalAlign;return{image:e,top:o,bottom:o+e.displaySize[1],left:i,right:i+e.displaySize[0]}}(i[o.icon.name],s.get("icon-offset").evaluate(o,{},a),s.get("icon-anchor").evaluate(o,{},a)),N=V.sdf,void 0===e.sdfIcons?e.sdfIcons=V.sdf:e.sdfIcons!==V.sdf&&E("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(V.pixelRatio!==e.pixelRatio||0!==s.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}var U=sl(d.horizontal)||d.vertical;e.iconsInText=!!U&&U.iconsInText,(U||B)&&function(e,t,n,r,i,o,a,s,u,l,c){var p=o.textMaxSize.evaluate(t,{});void 0===p&&(p=a);var f,d=e.layers[0].layout,h=d.get("icon-offset").evaluate(t,{},c),m=sl(n.horizontal),v=a/24,y=e.tilePixelRatio*v,g=e.tilePixelRatio*p/24,b=e.tilePixelRatio*s,x=e.tilePixelRatio*d.get("symbol-spacing"),_=d.get("text-padding")*e.tilePixelRatio,w=d.get("icon-padding")*e.tilePixelRatio,D=d.get("text-max-angle")/180*Math.PI,C="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),O="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),S=d.get("symbol-placement"),k=x/2,A=d.get("icon-text-fit");r&&"none"!==A&&(e.allowVerticalPlacement&&n.vertical&&(f=ju(r,n.vertical,A,d.get("icon-text-fit-padding"),h,v)),m&&(r=ju(r,m,A,d.get("icon-text-fit-padding"),h,v)));var T=function(s,p){p.x<0||p.x>=8192||p.y<0||p.y>=8192||function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m,v,y,g,b,x,_,w,D,C){var O,S,k,A,T,P=e.addToLineVertexArray(t,n),M=0,j=0,I=0,F=0,R=-1,z=-1,L={},B=po(""),N=0,V=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(N=(O=s.layout.get("text-offset").evaluate(x,{},D).map((function(e){return 24*e})))[0],V=O[1]):(N=24*s.layout.get("text-radial-offset").evaluate(x,{},D),V=rl),e.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(x,{},D)+90;A=new Xu(u,t,l,c,p,r.vertical,f,d,h,U),a&&(T=new Xu(u,t,l,c,p,a,v,y,h,U))}if(i){var H=s.layout.get("icon-rotate").evaluate(x,{}),W="none"!==s.layout.get("icon-text-fit"),G=qu(i,H,w,W),q=a?qu(a,H,w,W):void 0;k=new Xu(u,t,l,c,p,i,v,y,!1,H),M=4*G.length;var Y=e.iconSizeData,Z=null;"source"===Y.kind?(Z=[128*s.layout.get("icon-size").evaluate(x,{})])[0]>32640&&E(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===Y.kind&&((Z=[128*_.compositeIconSizes[0].evaluate(x,{},D),128*_.compositeIconSizes[1].evaluate(x,{},D)])[0]>32640||Z[1]>32640)&&E(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),e.addSymbols(e.icon,G,Z,b,g,x,!1,t,P.lineStartIndex,P.lineLength,-1,D),R=e.icon.placedSymbolArray.length-1,q&&(j=4*q.length,e.addSymbols(e.icon,q,Z,b,g,x,xu.vertical,t,P.lineStartIndex,P.lineLength,-1,D),z=e.icon.placedSymbolArray.length-1)}for(var $ in r.horizontal){var K=r.horizontal[$];if(!S){B=po(K.text);var X=s.layout.get("text-rotate").evaluate(x,{},D);S=new Xu(u,t,l,c,p,K,f,d,h,X)}var J=1===K.positionedLines.length;if(I+=al(e,t,K,o,s,h,x,m,P,r.vertical?xu.horizontal:xu.horizontalOnly,J?Object.keys(r.horizontal):[$],L,R,_,D),J)break}r.vertical&&(F+=al(e,t,r.vertical,o,s,h,x,m,P,xu.vertical,["vertical"],L,z,_,D));var Q=S?S.boxStartIndex:e.collisionBoxArray.length,ee=S?S.boxEndIndex:e.collisionBoxArray.length,te=A?A.boxStartIndex:e.collisionBoxArray.length,ne=A?A.boxEndIndex:e.collisionBoxArray.length,re=k?k.boxStartIndex:e.collisionBoxArray.length,ie=k?k.boxEndIndex:e.collisionBoxArray.length,oe=T?T.boxStartIndex:e.collisionBoxArray.length,ae=T?T.boxEndIndex:e.collisionBoxArray.length,se=-1,ue=function(e,t){return e&&e.circleDiameter?Math.max(e.circleDiameter,t):t};se=ue(S,se),se=ue(A,se),se=ue(k,se);var le=(se=ue(T,se))>-1?1:0;le&&(se*=C/24),e.glyphOffsetArray.length>=vl.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,x.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,L.right>=0?L.right:-1,L.center>=0?L.center:-1,L.left>=0?L.left:-1,L.vertical||-1,R,z,B,Q,ee,te,ne,re,ie,oe,ae,l,I,F,M,j,le,0,f,N,V,se)}(e,p,s,n,r,i,f,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,y,_,C,u,b,w,O,h,t,o,l,c,a)};if("line"===S)for(var P=0,M=Gu(t.geometry,0,0,8192,8192);P<M.length;P+=1)for(var j=M[P],I=0,F=Wu(j,x,D,n.vertical||m,r,24,g,e.overscaling,8192);I<F.length;I+=1){var R=F[I];m&&ul(e,m.text,k,R)||T(j,R)}else if("line-center"===S)for(var z=0,L=t.geometry;z<L.length;z+=1){var B=L[z];if(B.length>1){var N=Hu(B,D,n.vertical||m,r,24,g);N&&T(B,N)}}else if("Polygon"===t.type)for(var V=0,U=ns(t.geometry,0);V<U.length;V+=1){var H=U[V],W=el(H,16);T(H[0],new Iu(W.x,W.y,0))}else if("LineString"===t.type)for(var G=0,q=t.geometry;G<q.length;G+=1){var Y=q[G];T(Y,new Iu(Y[0].x,Y[0].y,0))}else if("Point"===t.type)for(var Z=0,$=t.geometry;Z<$.length;Z+=1)for(var K=0,X=$[Z];K<X.length;K+=1){var J=X[K];T([J],new Iu(J.x,J.y,0))}}(e,o,d,B,r,l,p,f,_,N,a)},b=0,x=e.features;b<x.length;b+=1)g();o&&e.generateCollisionDebugBuffers()},e.perspective=function(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,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!=i&&i!==1/0?(e[10]=(i+r)*(o=1/(r-i)),e[14]=2*i*r*o):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r];i in e&&(n[i]=e[i])}return n},e.plugin=oi,e.polygonIntersectsPolygon=Ho,e.postMapLoadEvent=ae,e.postTurnstileEvent=ie,e.potpack=vu,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.register=zr,e.registerForPluginStateChange=function(e){return e({pluginStatus:Jr,pluginURL:Qr}),ni.on("pluginStateChange",e),e},e.renderColorRamp=xa,e.rotate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),u=Math.cos(n);return e[0]=r*u+o*s,e[1]=i*u+a*s,e[2]=r*-s+o*u,e[3]=i*-s+a*u,e},e.rotateX=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=t[9],p=t[10],f=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]=o*i+l*r,e[5]=a*i+c*r,e[6]=s*i+p*r,e[7]=u*i+f*r,e[8]=l*i-o*r,e[9]=c*i-a*r,e[10]=p*i-s*r,e[11]=f*i-u*r,e},e.rotateZ=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],u=t[3],l=t[4],c=t[5],p=t[6],f=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]=o*i+l*r,e[1]=a*i+c*r,e[2]=s*i+p*r,e[3]=u*i+f*r,e[4]=l*i-o*r,e[5]=c*i-a*r,e[6]=p*i-s*r,e[7]=f*i-u*r,e},e.scale=function(e,t,n){var r=n[0],i=n[1],o=n[2];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]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.scale$1=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},e.scale$2=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},e.setCacheLimits=function(e,t){se=e,ue=t},e.setRTLTextPlugin=function(e,t,n){if(void 0===n&&(n=!1),"deferred"===Jr||"loading"===Jr||"loaded"===Jr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Qr=L.resolveURL(e),Jr="deferred",Xr=t,ti(),n||ii()},e.sphericalToCartesian=function(e){var t=e[0],n=e[1],r=e[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(n)*Math.sin(r),y:t*Math.sin(n)*Math.sin(r),z:t*Math.cos(r)}},e.sqrLen=function(e){var t=e[0],n=e[1];return t*t+n*n},e.styleSpec=ke,e.sub=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e},e.symbolSize=Lu,e.transformMat3=function(e,t,n){var r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e},e.transformMat4=ca,e.translate=function(e,t,n){var r,i,o,a,s,u,l,c,p,f,d,h,m=n[0],v=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*v+t[8]*y+t[12],e[13]=t[1]*m+t[5]*v+t[9]*y+t[13],e[14]=t[2]*m+t[6]*v+t[10]*y+t[14],e[15]=t[3]*m+t[7]*v+t[11]*y+t[15]):(i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],p=t[8],f=t[9],d=t[10],h=t[11],e[0]=r=t[0],e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=u,e[6]=l,e[7]=c,e[8]=p,e[9]=f,e[10]=d,e[11]=h,e[12]=r*m+s*v+p*y+t[12],e[13]=i*m+u*v+f*y+t[13],e[14]=o*m+l*v+d*y+t[14],e[15]=a*m+c*v+h*y+t[15]),e},e.triggerPluginCompletionEvent=ei,e.uniqueId=h,e.validateCustomStyleLayer=function(e){var t=[],n=e.id;return void 0===n&&t.push({message:"layers."+n+': missing required property "id"'}),void 0===e.render&&t.push({message:"layers."+n+': missing required method "render"'}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),t},e.validateLight=kr,e.validateStyle=Sr,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.vectorTile=bs,e.version="1.13.1",e.warnOnce=E,e.webpSupported=N,e.window=a,e.wrap=p})),r(0,(function(e){function t(e){var n=typeof e;if("number"===n||"boolean"===n||"string"===n||null==e)return JSON.stringify(e);if(Array.isArray(e)){for(var r="[",i=0,o=e;i<o.length;i+=1)r+=t(o[i])+",";return r+"]"}for(var a=Object.keys(e).sort(),s="{",u=0;u<a.length;u++)s+=JSON.stringify(a[u])+":"+t(e[a[u]])+",";return s+"}"}function n(n){for(var r="",i=0,o=e.refProperties;i<o.length;i+=1)r+="/"+t(n[o[i]]);return r}var r=function(e){this.keyCache={},e&&this.replace(e)};r.prototype.replace=function(e){this._layerConfigs={},this._layers={},this.update(e,[])},r.prototype.update=function(t,r){for(var i=this,o=0,a=t;o<a.length;o+=1){var s=a[o];this._layerConfigs[s.id]=s;var u=this._layers[s.id]=e.createStyleLayer(s);u._featureFilter=e.featureFilter(u.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var l=0,c=r;l<c.length;l+=1){var p=c[l];delete this.keyCache[p],delete this._layerConfigs[p],delete this._layers[p]}this.familiesBySource={};for(var f=0,d=function(e,t){for(var r={},i=0;i<e.length;i++){var o=t&&t[e[i].id]||n(e[i]);t&&(t[e[i].id]=o);var a=r[o];a||(a=r[o]=[]),a.push(e[i])}var s=[];for(var u in r)s.push(r[u]);return s}(e.values(this._layerConfigs),this.keyCache);f<d.length;f+=1){var h=d[f].map((function(e){return i._layers[e.id]})),m=h[0];if("none"!==m.visibility){var v=m.source||"",y=this.familiesBySource[v];y||(y=this.familiesBySource[v]={});var g=m.sourceLayer||"_geojsonTileLayer",b=y[g];b||(b=y[g]=[]),b.push(h)}}};var i=function(t){var n={},r=[];for(var i in t){var o=t[i],a=n[i]={};for(var s in o){var u=o[+s];if(u&&0!==u.bitmap.width&&0!==u.bitmap.height){var l={x:0,y:0,w:u.bitmap.width+2,h:u.bitmap.height+2};r.push(l),a[s]={rect:l,metrics:u.metrics}}}}var c=e.potpack(r),p=new e.AlphaImage({width:c.w||1,height:c.h||1});for(var f in t){var d=t[f];for(var h in d){var m=d[+h];if(m&&0!==m.bitmap.width&&0!==m.bitmap.height){var v=n[f][h].rect;e.AlphaImage.copy(m.bitmap,p,{x:0,y:0},{x:v.x+1,y:v.y+1},m.bitmap)}}}this.image=p,this.positions=n};e.register("GlyphAtlas",i);var o=function(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId};function a(t,n,r){for(var i=new e.EvaluationParameters(n),o=0,a=t;o<a.length;o+=1)a[o].recalculate(i,r)}function s(t,n){var r=e.getArrayBuffer(t.request,(function(t,r,i,o){t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(r)),rawData:r,cacheControl:i,expires:o})}));return function(){r.cancel(),n()}}o.prototype.parse=function(t,n,r,o,s){var u=this;this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;var l=new e.DictionaryCoder(Object.keys(t.layers).sort()),c=new e.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];var p,f,d,h,m={},v={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},y=n.familiesBySource[this.source];for(var g in y){var b=t.layers[g];if(b){1===b.version&&e.warnOnce('Vector tile source "'+this.source+'" layer "'+g+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var x=l.encode(g),_=[],w=0;w<b.length;w++){var E=b.feature(w),D=c.getId(E,g);_.push({feature:E,id:D,index:w,sourceLayerIndex:x})}for(var C=0,O=y[g];C<O.length;C+=1){var S=O[C],k=S[0];k.minzoom&&this.zoom<Math.floor(k.minzoom)||k.maxzoom&&this.zoom>=k.maxzoom||"none"!==k.visibility&&(a(S,this.zoom,r),(m[k.id]=k.createBucket({index:c.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:x,sourceID:this.source})).populate(_,v,this.tileID.canonical),c.bucketLayerIDs.push(S.map((function(e){return e.id}))))}}}var A=e.mapObject(v.glyphDependencies,(function(e){return Object.keys(e).map(Number)}));Object.keys(A).length?o.send("getGlyphs",{uid:this.uid,stacks:A},(function(e,t){p||(p=e,f=t,M.call(u))})):f={};var T=Object.keys(v.iconDependencies);T.length?o.send("getImages",{icons:T,source:this.source,tileID:this.tileID,type:"icons"},(function(e,t){p||(p=e,d=t,M.call(u))})):d={};var P=Object.keys(v.patternDependencies);function M(){if(p)return s(p);if(f&&d&&h){var t=new i(f),n=new e.ImageAtlas(d,h);for(var o in m){var u=m[o];u instanceof e.SymbolBucket?(a(u.layers,this.zoom,r),e.performSymbolLayout(u,f,t.positions,d,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):u.hasPattern&&(u instanceof e.LineBucket||u instanceof e.FillBucket||u instanceof e.FillExtrusionBucket)&&(a(u.layers,this.zoom,r),u.addFeatures(v,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:e.values(m).filter((function(e){return!e.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?t.positions:null})}}P.length?o.send("getImages",{icons:P,source:this.source,tileID:this.tileID,type:"patterns"},(function(e,t){p||(p=e,h=t,M.call(u))})):h={},M.call(this)};var u=function(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};u.prototype.loadTile=function(t,n){var r=this,i=t.uid;this.loading||(this.loading={});var a=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),s=this.loading[i]=new o(t);s.abort=this.loadVectorData(t,(function(t,o){if(delete r.loading[i],t||!o)return s.status="done",r.loaded[i]=s,n(t);var u=o.rawData,l={};o.expires&&(l.expires=o.expires),o.cacheControl&&(l.cacheControl=o.cacheControl);var c={};if(a){var p=a.finish();p&&(c.resourceTiming=JSON.parse(JSON.stringify(p)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:u.slice(0)},r,l,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},u.prototype.reloadTile=function(e,t){var n=this,r=this.loaded,i=e.uid,o=this;if(r&&r[i]){var a=r[i];a.showCollisionBoxes=e.showCollisionBoxes;var s=function(e,r){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),t(e,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.prototype.abortTile=function(e,t){var n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()},u.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var l=e.window.ImageBitmap,c=function(){this.loaded={}};function p(e,t){if(0!==e.length){f(e[0],t);for(var n=1;n<e.length;n++)f(e[n],!t)}}function f(e,t){for(var n=0,r=0,i=e.length,o=i-1;r<i;o=r++)n+=(e[r][0]-e[o][0])*(e[o][1]+e[r][1]);n>=0!=!!t&&e.reverse()}c.prototype.loadTile=function(t,n){var r=t.uid,i=t.encoding,o=t.rawImageData,a=l&&o instanceof l?this.getImageData(o):o,s=new e.DEMData(r,a,i);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},c.prototype.getImageData=function(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(e){var t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]};var d=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,h=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};h.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var i=r[n];t.push([new e.Point$1(i[0],i[1])])}return t}for(var o=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var u=[],l=0,c=s[a];l<c.length;l+=1){var p=c[l];u.push(new e.Point$1(p[0],p[1]))}o.push(u)}return o},h.prototype.toGeoJSON=function(e,t,n){return d.call(this,e,t,n)};var m=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t};m.prototype.feature=function(e){return new h(this._features[e])};var v=e.vectorTile.VectorTileFeature,y=g;function g(e,t){this.options=t||{},this.features=e,this.length=e.length}function b(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}g.prototype.feature=function(e){return new b(this.features[e],this.options.extent)},b.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],i=[],o=0;o<r.length;o++)i.push(new e.Point$1(r[o][0],r[o][1]));this.geometry.push(i)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.length;s++){var u=a[s];t=Math.min(t,u.x),n=Math.max(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.y)}return[t,r,n,i]},b.prototype.toGeoJSON=v.prototype.toGeoJSON;var x=w,_=y;function w(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,E,e.layers[n])}(t,n),n.finish()}function E(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,D,r);var i=r.keys;for(n=0;n<i.length;n++)t.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)t.writeMessage(4,A,o[n])}function D(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,C,e),t.writeVarintField(3,n.type),t.writeMessage(4,k,n)}function C(e,t){var n=e.feature,r=e.keys,i=e.values,o=e.keycache,a=e.valuecache;for(var s in n.properties){var u=o[s];void 0===u&&(r.push(s),o[s]=u=r.length-1),t.writeVarint(u);var l=n.properties[s],c=typeof l;"string"!==c&&"boolean"!==c&&"number"!==c&&(l=JSON.stringify(l));var p=c+":"+l,f=a[p];void 0===f&&(i.push(l),a[p]=f=i.length-1),t.writeVarint(f)}}function O(e,t){return(t<<3)+(7&e)}function S(e){return e<<1^e>>31}function k(e,t){for(var n=e.loadGeometry(),r=e.type,i=0,o=0,a=n.length,s=0;s<a;s++){var u=n[s],l=1;1===r&&(l=u.length),t.writeVarint(O(1,l));for(var c=3===r?u.length-1:u.length,p=0;p<c;p++){1===p&&1!==r&&t.writeVarint(O(2,c-1));var f=u[p].x-i,d=u[p].y-o;t.writeVarint(S(f)),t.writeVarint(S(d)),i+=f,o+=d}3===r&&t.writeVarint(O(7,1))}}function A(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function T(e,t,n,r){P(e,n,r),P(t,2*n,2*r),P(t,2*n+1,2*r+1)}function P(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function M(e,t,n,r){var i=e-n,o=t-r;return i*i+o*o}x.fromVectorTileJs=w,x.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new y(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return w({layers:n})},x.GeoJSONWrapper=_;var j=function(e){return e[0]},I=function(e){return e[1]},F=function(e,t,n,r,i){void 0===t&&(t=j),void 0===n&&(n=I),void 0===r&&(r=64),void 0===i&&(i=Float64Array),this.nodeSize=r,this.points=e;for(var o=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(e.length),s=this.coords=new i(2*e.length),u=0;u<e.length;u++)a[u]=u,s[2*u]=t(e[u]),s[2*u+1]=n(e[u]);!function e(t,n,r,i,o,a){if(!(o-i<=r)){var s=i+o>>1;!function e(t,n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);e(t,n,r,Math.max(i,Math.floor(r-u*c/s+p)),Math.min(o,Math.floor(r+(s-u)*c/s+p)),a)}var f=n[2*r+a],d=i,h=o;for(T(t,n,i,r),n[2*o+a]>f&&T(t,n,i,o);d<h;){for(T(t,n,d,h),d++,h--;n[2*d+a]<f;)d++;for(;n[2*h+a]>f;)h--}n[2*i+a]===f?T(t,n,i,h):T(t,n,++h,o),h<=r&&(i=h+1),r<=h&&(o=h-1)}}(t,n,s,i,o,a%2),e(t,n,r,i,s-1,a+1),e(t,n,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};F.prototype.range=function(e,t,n,r){return function(e,t,n,r,i,o,a){for(var s,u,l=[0,e.length-1,0],c=[];l.length;){var p=l.pop(),f=l.pop(),d=l.pop();if(f-d<=a)for(var h=d;h<=f;h++)u=t[2*h+1],(s=t[2*h])>=n&&s<=i&&u>=r&&u<=o&&c.push(e[h]);else{var m=Math.floor((d+f)/2);u=t[2*m+1],(s=t[2*m])>=n&&s<=i&&u>=r&&u<=o&&c.push(e[m]);var v=(p+1)%2;(0===p?n<=s:r<=u)&&(l.push(d),l.push(m-1),l.push(v)),(0===p?i>=s:o>=u)&&(l.push(m+1),l.push(f),l.push(v))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},F.prototype.within=function(e,t,n){return function(e,t,n,r,i,o){for(var a=[0,e.length-1,0],s=[],u=i*i;a.length;){var l=a.pop(),c=a.pop(),p=a.pop();if(c-p<=o)for(var f=p;f<=c;f++)M(t[2*f],t[2*f+1],n,r)<=u&&s.push(e[f]);else{var d=Math.floor((p+c)/2),h=t[2*d],m=t[2*d+1];M(h,m,n,r)<=u&&s.push(e[d]);var v=(l+1)%2;(0===l?n-i<=h:r-i<=m)&&(a.push(p),a.push(d-1),a.push(v)),(0===l?n+i>=h:r+i>=m)&&(a.push(d+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)};var R={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},z=function(e){this.options=W(Object.create(R),e),this.trees=new Array(this.options.maxZoom+1)};function L(e,t,n,r,i){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function B(e,t){var n=e.geometry.coordinates,r=n[1];return{x:U(n[0]),y:H(r),zoom:1/0,index:t,parentId:-1}}function N(e){return{type:"Feature",id:e.id,properties:V(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function V(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return W(W({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function U(e){return e/360+.5}function H(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function W(e,t){for(var n in t)e[n]=t[n];return e}function G(e){return e.x}function q(e){return e.y}function Y(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((e-n)*a+(t-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=e-n)*a+(s=t-r)*s}function Z(e,t,n,r){var i={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)$(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)$(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var i=0;i<t[r].length;i++)$(e,t[r][i])}(i),i}function $(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function K(e,t,n,r){if(t.geometry){var i=t.geometry.coordinates,o=t.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],u=t.id;if(n.promoteId?u=t.properties[n.promoteId]:n.generateId&&(u=r||0),"Point"===o)X(i,s);else if("MultiPoint"===o)for(var l=0;l<i.length;l++)X(i[l],s);else if("LineString"===o)J(i,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(l=0;l<i.length;l++)J(i[l],s=[],a,!1),e.push(Z(u,"LineString",s,t.properties));return}Q(i,s,a,!1)}else if("Polygon"===o)Q(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(l=0;l<t.geometry.geometries.length;l++)K(e,{id:u,geometry:t.geometry.geometries[l],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(l=0;l<i.length;l++){var c=[];Q(i[l],c,a,!0),s.push(c)}}e.push(Z(u,o,s,t.properties))}}function X(e,t){t.push(ee(e[0])),t.push(te(e[1])),t.push(0)}function J(e,t,n,r){for(var i,o,a=0,s=0;s<e.length;s++){var u=ee(e[s][0]),l=te(e[s][1]);t.push(u),t.push(l),t.push(0),s>0&&(a+=r?(i*l-u*o)/2:Math.sqrt(Math.pow(u-i,2)+Math.pow(l-o,2))),i=u,o=l}var c=t.length-3;t[2]=1,function e(t,n,r,i){for(var o,a=i,s=r-n>>1,u=r-n,l=t[n],c=t[n+1],p=t[r],f=t[r+1],d=n+3;d<r;d+=3){var h=Y(t[d],t[d+1],l,c,p,f);if(h>a)o=d,a=h;else if(h===a){var m=Math.abs(d-s);m<u&&(o=d,u=m)}}a>i&&(o-n>3&&e(t,n,o,i),t[o+2]=a,r-o>3&&e(t,o,r,i))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function Q(e,t,n,r){for(var i=0;i<e.length;i++){var o=[];J(e[i],o,n,r),t.push(o)}}function ee(e){return e/360+.5}function te(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function ne(e,t,n,r,i,o,a,s){if(r/=t,o>=(n/=t)&&a<r)return e;if(a<n||o>=r)return null;for(var u=[],l=0;l<e.length;l++){var c=e[l],p=c.geometry,f=c.type,d=0===i?c.minX:c.minY,h=0===i?c.maxX:c.maxY;if(d>=n&&h<r)u.push(c);else if(!(h<n||d>=r)){var m=[];if("Point"===f||"MultiPoint"===f)re(p,m,n,r,i);else if("LineString"===f)ie(p,m,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===f)ae(p,m,n,r,i,!1);else if("Polygon"===f)ae(p,m,n,r,i,!0);else if("MultiPolygon"===f)for(var v=0;v<p.length;v++){var y=[];ae(p[v],y,n,r,i,!0),y.length&&m.push(y)}if(m.length){if(s.lineMetrics&&"LineString"===f){for(v=0;v<m.length;v++)u.push(Z(c.id,f,m[v],c.tags));continue}"LineString"!==f&&"MultiLineString"!==f||(1===m.length?(f="LineString",m=m[0]):f="MultiLineString"),"Point"!==f&&"MultiPoint"!==f||(f=3===m.length?"Point":"MultiPoint"),u.push(Z(c.id,f,m,c.tags))}}}return u.length?u:null}function re(e,t,n,r,i){for(var o=0;o<e.length;o+=3){var a=e[o+i];a>=n&&a<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function ie(e,t,n,r,i,o,a){for(var s,u,l=oe(e),c=0===i?ue:le,p=e.start,f=0;f<e.length-3;f+=3){var d=e[f],h=e[f+1],m=e[f+2],v=e[f+3],y=e[f+4],g=0===i?d:h,b=0===i?v:y,x=!1;a&&(s=Math.sqrt(Math.pow(d-v,2)+Math.pow(h-y,2))),g<n?b>n&&(u=c(l,d,h,v,y,n),a&&(l.start=p+s*u)):g>r?b<r&&(u=c(l,d,h,v,y,r),a&&(l.start=p+s*u)):se(l,d,h,m),b<n&&g>=n&&(u=c(l,d,h,v,y,n),x=!0),b>r&&g<=r&&(u=c(l,d,h,v,y,r),x=!0),!o&&x&&(a&&(l.end=p+s*u),t.push(l),l=oe(e)),a&&(p+=s)}var _=e.length-3;d=e[_],h=e[_+1],m=e[_+2],(g=0===i?d:h)>=n&&g<=r&&se(l,d,h,m),_=l.length-3,o&&_>=3&&(l[_]!==l[0]||l[_+1]!==l[1])&&se(l,l[0],l[1],l[2]),l.length&&t.push(l)}function oe(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ae(e,t,n,r,i,o){for(var a=0;a<e.length;a++)ie(e[a],t,n,r,i,o,!1)}function se(e,t,n,r){e.push(t),e.push(n),e.push(r)}function ue(e,t,n,r,i,o){var a=(o-t)/(r-t);return e.push(o),e.push(n+(i-n)*a),e.push(1),a}function le(e,t,n,r,i,o){var a=(o-n)/(i-n);return e.push(t+(r-t)*a),e.push(o),e.push(1),a}function ce(e,t){for(var n=[],r=0;r<e.length;r++){var i,o=e[r],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)i=pe(o.geometry,t);else if("MultiLineString"===a||"Polygon"===a){i=[];for(var s=0;s<o.geometry.length;s++)i.push(pe(o.geometry[s],t))}else if("MultiPolygon"===a)for(i=[],s=0;s<o.geometry.length;s++){for(var u=[],l=0;l<o.geometry[s].length;l++)u.push(pe(o.geometry[s][l],t));i.push(u)}n.push(Z(o.id,a,i,o.tags))}return n}function pe(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function fe(e,t){if(e.transformed)return e;var n,r,i,o=1<<e.z,a=e.x,s=e.y;for(n=0;n<e.features.length;n++){var u=e.features[n],l=u.geometry,c=u.type;if(u.geometry=[],1===c)for(r=0;r<l.length;r+=2)u.geometry.push(de(l[r],l[r+1],t,o,a,s));else for(r=0;r<l.length;r++){var p=[];for(i=0;i<l[r].length;i+=2)p.push(de(l[r][i],l[r][i+1],t,o,a,s));u.geometry.push(p)}}return e.transformed=!0,e}function de(e,t,n,r,i,o){return[Math.round(n*(e*r-i)),Math.round(n*(t*r-o))]}function he(e,t,n,r,i){for(var o=t===i.maxZoom?0:i.tolerance/((1<<t)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){a.numFeatures++,me(a,e[s],o,i);var u=e[s].minX,l=e[s].minY,c=e[s].maxX,p=e[s].maxY;u<a.minX&&(a.minX=u),l<a.minY&&(a.minY=l),c>a.maxX&&(a.maxX=c),p>a.maxY&&(a.maxY=p)}return a}function me(e,t,n,r){var i=t.geometry,o=t.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)ve(a,i,e,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)ve(a,i[s],e,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var u=0;u<i.length;u++){var l=i[u];for(s=0;s<l.length;s++)ve(a,l[s],e,n,!0,0===s)}if(a.length){var c=t.tags||null;if("LineString"===o&&r.lineMetrics){for(var p in c={},t.tags)c[p]=t.tags[p];c.mapbox_clip_start=i.start/i.size,c.mapbox_clip_end=i.end/i.size}var f={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==t.id&&(f.id=t.id),e.features.push(f)}}function ve(e,t,n,r,i,o){var a=r*r;if(r>0&&t.size<(i?a:r))n.numPoints+=t.length/3;else{for(var s=[],u=0;u<t.length;u+=3)(0===r||t[u+2]>a)&&(n.numSimplified++,s.push(t[u]),s.push(t[u+1])),n.numPoints++;i&&function(e,t){for(var n=0,r=0,i=e.length,o=i-2;r<i;o=r,r+=2)n+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(n>0===t)for(r=0,i=e.length;r<i/2;r+=2){var a=e[r],s=e[r+1];e[r]=e[i-2-r],e[r+1]=e[i-1-r],e[i-2-r]=a,e[i-1-r]=s}}(s,o),e.push(s)}}function ye(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&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 r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)K(n,e.features[r],t,r);else K(n,"Feature"===e.type?e:{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,i=ne(e,1,-1-n,n,0,-1,2,t),o=ne(e,1,1-n,2+n,0,-1,2,t);return(i||o)&&(r=ne(e,1,-n,1+n,0,-1,2,t)||[],i&&(r=ce(i,1).concat(r)),o&&(r=r.concat(ce(o,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.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 ge(e,t,n){return 32*((1<<e)*n+t)+e}function be(e,t){var n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);var i=new m(r.features),o=x(i);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:i,rawData:o.buffer})}z.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,i=t.maxZoom,o=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s=[],u=0;u<e.length;u++)e[u].geometry&&s.push(B(e[u],u));this.trees[i+1]=new F(s,G,q,o,Float32Array),n&&console.timeEnd(a);for(var l=i;l>=r;l--){var c=+Date.now();s=this._cluster(s,l),this.trees[l]=new F(s,G,q,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},z.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),i=180===e[2]?180:((e[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],t),s=this.getClusters([-180,r,i,o],t);return a.concat(s)}for(var u=this.trees[this._limitZoom(t)],l=[],c=0,p=u.range(U(n),H(o),U(i),H(r));c<p.length;c+=1){var f=u.points[p[c]];l.push(f.numPoints?N(f):this.points[f.index])}return l},z.prototype.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);var o=i.points[t];if(!o)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],u=0,l=i.within(o.x,o.y,a);u<l.length;u+=1){var c=i.points[l[u]];c.parentId===e&&s.push(c.numPoints?N(c):this.points[c.index])}if(0===s.length)throw new Error(r);return s},z.prototype.getLeaves=function(e,t,n){var r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r},z.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),o=this.options,a=o.radius/o.extent,s=(n-a)/i,u=(n+1+a)/i,l={features:[]};return this._addTileFeatures(r.range((t-a)/i,s,(t+1+a)/i,u),r.points,t,n,i,l),0===t&&this._addTileFeatures(r.range(1-a/i,s,1,u),r.points,i,n,i,l),t===i-1&&this._addTileFeatures(r.range(0,s,a/i,u),r.points,-1,n,i,l),l.features.length?l:null},z.prototype.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},z.prototype._appendLeaves=function(e,t,n,r,i){for(var o=0,a=this.getChildren(t);o<a.length;o+=1){var s=a[o],u=s.properties;if(u&&u.cluster?i+u.point_count<=r?i+=u.point_count:i=this._appendLeaves(e,u.cluster_id,n,r,i):i<r?i++:e.push(s),e.length===n)break}return i},z.prototype._addTileFeatures=function(e,t,n,r,i,o){for(var a=0,s=e;a<s.length;a+=1){var u=t[s[a]],l=u.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(u.x*i-n)),Math.round(this.options.extent*(u.y*i-r))]],tags:l?V(u):this.points[u.index].properties},p=void 0;l?p=u.id:this.options.generateId?p=u.index:this.points[u.index].id&&(p=this.points[u.index].id),void 0!==p&&(c.id=p),o.features.push(c)}},z.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))},z.prototype._cluster=function(e,t){for(var n=[],r=this.options,i=r.reduce,o=r.minPoints,a=r.radius/(r.extent*Math.pow(2,t)),s=0;s<e.length;s++){var u=e[s];if(!(u.zoom<=t)){u.zoom=t;for(var l=this.trees[t+1],c=l.within(u.x,u.y,a),p=u.numPoints||1,f=p,d=0,h=c;d<h.length;d+=1){var m=l.points[h[d]];m.zoom>t&&(f+=m.numPoints||1)}if(f>=o){for(var v=u.x*p,y=u.y*p,g=i&&p>1?this._map(u,!0):null,b=(s<<5)+(t+1)+this.points.length,x=0,_=c;x<_.length;x+=1){var w=l.points[_[x]];if(!(w.zoom<=t)){w.zoom=t;var E=w.numPoints||1;v+=w.x*E,y+=w.y*E,w.parentId=b,i&&(g||(g=this._map(u,!0)),i(g,this._map(w)))}}u.parentId=b,n.push(L(v/f,y/f,b,f,g))}else if(n.push(u),f>1)for(var D=0,C=c;D<C.length;D+=1){var O=l.points[C[D]];O.zoom<=t||(O.zoom=t,n.push(O))}}}return n},z.prototype._getOriginId=function(e){return e-this.points.length>>5},z.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},z.prototype._map=function(e,t){if(e.numPoints)return t?W({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?W({},r):r},ye.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ye.prototype.splitTile=function(e,t,n,r,i,o,a){for(var s=[e,t,n,r],u=this.options,l=u.debug;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var c=1<<t,p=ge(t,n,r),f=this.tiles[p];if(!f&&(l>1&&console.time("creation"),f=this.tiles[p]=he(e,t,n,r,u),this.tileCoords.push({z:t,x:n,y:r}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var d="z"+t;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(f.source=e,i){if(t===u.maxZoom||t===i)continue;var h=1<<i-t;if(n!==Math.floor(o/h)||r!==Math.floor(a/h))continue}else if(t===u.indexMaxZoom||f.numPoints<=u.indexMaxPoints)continue;if(f.source=null,0!==e.length){l>1&&console.time("clipping");var m,v,y,g,b,x,_=.5*u.buffer/u.extent,w=.5-_,E=.5+_,D=1+_;m=v=y=g=null,b=ne(e,c,n-_,n+E,0,f.minX,f.maxX,u),x=ne(e,c,n+w,n+D,0,f.minX,f.maxX,u),e=null,b&&(m=ne(b,c,r-_,r+E,1,f.minY,f.maxY,u),v=ne(b,c,r+w,r+D,1,f.minY,f.maxY,u),b=null),x&&(y=ne(x,c,r-_,r+E,1,f.minY,f.maxY,u),g=ne(x,c,r+w,r+D,1,f.minY,f.maxY,u),x=null),l>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(v||[],t+1,2*n,2*r+1),s.push(y||[],t+1,2*n+1,2*r),s.push(g||[],t+1,2*n+1,2*r+1)}}},ye.prototype.getTile=function(e,t,n){var r=this.options,i=r.extent,o=r.debug;if(e<0||e>24)return null;var a=1<<e,s=ge(e,t=(t%a+a)%a,n);if(this.tiles[s])return fe(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var u,l=e,c=t,p=n;!u&&l>0;)l--,c=Math.floor(c/2),p=Math.floor(p/2),u=this.tiles[ge(l,c,p)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,c,p),o>1&&console.time("drilling down"),this.splitTile(u.source,l,c,p,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?fe(this.tiles[s],i):null):null};var xe=function(t){function n(e,n,r,i){t.call(this,e,n,r,be),i&&(this.loadGeoJSON=i)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(r&&r.request&&r.request.collectResourceTiming)&&new e.RequestPerformance(r.request);this.loadGeoJSON(r,(function(o,a){if(o||!a)return n(o);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function e(t,n){var r,i=t&&t.type;if("FeatureCollection"===i)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===i)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===i)e(t.geometry,n);else if("Polygon"===i)p(t.coordinates,n);else if("MultiPolygon"===i)for(r=0;r<t.coordinates.length;r++)p(t.coordinates[r],n);return t}(a,!0);try{if(r.filter){var s=e.createExpression(r.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===s.result)throw new Error(s.value.map((function(e){return e.key+": "+e.message})).join(", "));var u=a.features.filter((function(e){return s.value.evaluate({zoom:0},e)}));a={type:"FeatureCollection",features:u}}t._geoJSONIndex=r.cluster?new z(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var i={},o={},a={accumulated:null,zoom:0},s={properties:null},u=Object.keys(r),l=0,c=u;l<c.length;l+=1){var p=c[l],f=r[p],d=f[0],h=e.createExpression(f[1]),m=e.createExpression("string"==typeof d?[d,["accumulated"],["get",p]]:d);i[p]=h.value,o[p]=m.value}return n.map=function(e){s.properties=e;for(var t={},n=0,r=u;n<r.length;n+=1){var o=r[n];t[o]=i[o].evaluate(a,s)}return t},n.reduce=function(e,t){s.properties=t;for(var n=0,r=u;n<r.length;n+=1){var i=r[n];a.accumulated=e[i],e[i]=o[i].evaluate(a,s)}},n}(r)).load(a.features):function(e,t){return new ye(e,t)}(a,r.geojsonVtOptions)}catch(o){return n(o)}t.loaded={};var l={};if(i){var c=i.finish();c&&(l.resourceTiming={},l.resourceTiming[r.source]=JSON.parse(JSON.stringify(c)))}n(null,l)}))}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(e,n){var r=this.loaded;return r&&r[e.uid]?t.prototype.reloadTile.call(this,e,n):this.loadTile(e,n)},n.prototype.loadGeoJSON=function(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()},n.prototype.getClusterExpansionZoom=function(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}},n.prototype.getClusterChildren=function(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}},n.prototype.getClusterLeaves=function(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}},n}(u),_e=function(t){var n=this;this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:u,geojson:xe},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(e,t){if(n.workerSourceTypes[e])throw new Error('Worker source with name "'+e+'" already registered.');n.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=function(t){if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}};return _e.prototype.setReferrer=function(e,t){this.referrer=t},_e.prototype.setImages=function(e,t,n){for(var r in this.availableImages[e]=t,this.workerSources[e]){var i=this.workerSources[e][r];for(var o in i)i[o].availableImages=t}n()},_e.prototype.setLayers=function(e,t,n){this.getLayerIndex(e).replace(t),n()},_e.prototype.updateLayers=function(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()},_e.prototype.loadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)},_e.prototype.loadDEMTile=function(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)},_e.prototype.reloadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)},_e.prototype.abortTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)},_e.prototype.removeTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)},_e.prototype.removeDEMTile=function(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)},_e.prototype.removeSource=function(e,t,n){if(this.workerSources[e]&&this.workerSources[e][t.type]&&this.workerSources[e][t.type][t.source]){var r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}},_e.prototype.loadWorkerSource=function(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}},_e.prototype.syncRTLPluginState=function(t,n,r){try{e.plugin.setState(n);var i=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=i){this.self.importScripts(i);var o=e.plugin.isParsed();r(o?void 0:new Error("RTL Text Plugin failed to import scripts from "+i),o)}}catch(e){r(e.toString())}},_e.prototype.getAvailableImages=function(e){var t=this.availableImages[e];return t||(t=[]),t},_e.prototype.getLayerIndex=function(e){var t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t},_e.prototype.getWorkerSource=function(e,t,n){var r=this;return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][n]||(this.workerSources[e][t][n]=new this.workerSourceTypes[t]({send:function(t,n,i){r.actor.send(t,n,i,e)}},this.getLayerIndex(e),this.getAvailableImages(e))),this.workerSources[e][t][n]},_e.prototype.getDEMWorkerSource=function(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new c),this.demWorkerSources[e][t]},_e.prototype.enforceCacheSizeLimit=function(t,n){e.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new _e(self)),_e})),r(0,(function(e){var t=e.createCommonjsModule((function(e){function t(e){return!n(e)}function n(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,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),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 n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(void 0===r[n=e&&e.failIfMajorPerformanceCaveat]&&(r[n]=function(e){var n=function(e){var n=document.createElement("canvas"),r=Object.create(t.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(e);if(!n)return!1;var r=n.createShader(n.VERTEX_SHADER);return!(!r||n.isContextLost())&&(n.shaderSource(r,"void main() {}"),n.compileShader(r),!0===n.getShaderParameter(r,n.COMPILE_STATUS))}(n)),r[n]?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 n}e.exports?e.exports=t:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t,window.mapboxgl.notSupportedReason=n);var r={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),n={create:function(t,n,r){var i=e.window.document.createElement(t);return void 0!==n&&(i.className=n),r&&r.appendChild(i),i},createNS:function(t,n){return e.window.document.createElementNS(t,n)}},r=e.window.document&&e.window.document.documentElement.style;function i(e){if(!r)return e[0];for(var t=0;t<e.length;t++)if(e[t]in r)return e[t];return e[0]}var o,a=i(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&a&&(o=r[a],r[a]="none")},n.enableDrag=function(){r&&a&&(r[a]=o)};var s=i(["transform","WebkitTransform"]);n.setTransform=function(e,t){e.style[s]=t};var u=!1;try{var l=Object.defineProperty({},"passive",{get:function(){u=!0}});e.window.addEventListener("test",l,l),e.window.removeEventListener("test",l,l)}catch(e){u=!1}n.addEventListener=function(e,t,n,r){void 0===r&&(r={}),e.addEventListener(t,n,"passive"in r&&u?r:r.capture)},n.removeEventListener=function(e,t,n,r){void 0===r&&(r={}),e.removeEventListener(t,n,"passive"in r&&u?r:r.capture)};var c=function t(n){n.preventDefault(),n.stopPropagation(),e.window.removeEventListener("click",t,!0)};function p(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}n.suppressClick=function(){e.window.addEventListener("click",c,!0),e.window.setTimeout((function(){e.window.removeEventListener("click",c,!0)}),0)},n.mousePos=function(t,n){var r=t.getBoundingClientRect();return new e.Point(n.clientX-r.left-t.clientLeft,n.clientY-r.top-t.clientTop)},n.touchPos=function(t,n){for(var r=t.getBoundingClientRect(),i=[],o=0;o<n.length;o++)i.push(new e.Point(n[o].clientX-r.left-t.clientLeft,n[o].clientY-r.top-t.clientTop));return i},n.mouseButton=function(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},n.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var f=function(t){function n(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,n=this.requestors;t<n.length;t+=1){var r=n[t];this._notify(r.ids,r.callback)}this.requestors=[]}},n.prototype.getImage=function(e){return this.images[e]},n.prototype.addImage=function(e,t){this._validate(e,t)&&(this.images[e]=t)},n.prototype._validate=function(t,n){var r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchX" value'))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchY" value'))),r=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "content" value'))),r=!1),r},n.prototype._validateStretch=function(e,t){if(!e)return!0;for(var n=0,r=0,i=e;r<i.length;r+=1){var o=i[r];if(o[0]<n||o[1]<o[0]||t<o[1])return!1;n=o[1]}return!0},n.prototype._validateContent=function(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]))},n.prototype.updateImage=function(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0},n.prototype.removeImage=function(e){var t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()},n.prototype.listImages=function(){return Object.keys(this.images)},n.prototype.getImages=function(e,t){var n=!0;if(!this.isLoaded())for(var r=0,i=e;r<i.length;r+=1)this.images[i[r]]||(n=!1);this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})},n.prototype._notify=function(t,n){for(var r={},i=0,o=t;i<o.length;i+=1){var a=o[i];this.images[a]||this.fire(new e.Event("styleimagemissing",{id:a}));var s=this.images[a];s?r[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:e.warnOnce('Image "'+a+'" 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.')}n(null,r)},n.prototype.getPixelSize=function(){var e=this.atlasImage;return{width:e.width,height:e.height}},n.prototype.getPattern=function(t){var n=this.patterns[t],r=this.getImage(t);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var i={w:r.data.width+2,h:r.data.height+2,x:0,y:0},o=new e.ImagePosition(i,r);this.patterns[t]={bin:i,position:o}}return this._updatePatternAtlas(),this.patterns[t].position},n.prototype.bind=function(t){var n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},n.prototype._updatePatternAtlas=function(){var t=[];for(var n in this.patterns)t.push(this.patterns[n].bin);var r=e.potpack(t),i=r.w,o=r.h,a=this.atlasImage;for(var s in a.resize({width:i||1,height:o||1}),this.patterns){var u=this.patterns[s].bin,l=u.x+1,c=u.y+1,p=this.images[s].data,f=p.width,d=p.height;e.RGBAImage.copy(p,a,{x:0,y:0},{x:l,y:c},{width:f,height:d}),e.RGBAImage.copy(p,a,{x:0,y:d-1},{x:l,y:c-1},{width:f,height:1}),e.RGBAImage.copy(p,a,{x:0,y:0},{x:l,y:c+d},{width:f,height:1}),e.RGBAImage.copy(p,a,{x:f-1,y:0},{x:l-1,y:c},{width:1,height:d}),e.RGBAImage.copy(p,a,{x:0,y:0},{x:l+f,y:c},{width:1,height:d})}this.dirty=!0},n.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},n.prototype.dispatchRenderCallbacks=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var i=this.images[r];p(i)&&this.updateImage(r,i)}}},n}(e.Evented),d=v,h=v,m=1e20;function v(e,t,n,r,i,o){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=i||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(e,t,n,r,i,o,a){for(var s=0;s<t;s++){for(var u=0;u<n;u++)r[u]=e[u*t+s];for(g(r,i,o,a,n),u=0;u<n;u++)e[u*t+s]=i[u]}for(u=0;u<n;u++){for(s=0;s<t;s++)r[s]=e[u*t+s];for(g(r,i,o,a,t),s=0;s<t;s++)e[u*t+s]=Math.sqrt(i[s])}}function g(e,t,n,r,i){n[0]=0,r[0]=-m,r[1]=+m;for(var o=1,a=0;o<i;o++){for(var s=(e[o]+o*o-(e[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);s<=r[a];)a--,s=(e[o]+o*o-(e[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);n[++a]=o,r[a]=s,r[a+1]=+m}for(o=0,a=0;o<i;o++){for(;r[a+1]<o;)a++;t[o]=(o-n[a])*(o-n[a])+e[n[a]]}}v.prototype.draw=function(e){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(e,this.buffer,this.middle);for(var t=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var i=t.data[4*r+3]/255;this.gridOuter[r]=1===i?0:0===i?m:Math.pow(Math.max(0,.5-i),2),this.gridInner[r]=1===i?m:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(y(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),y(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++)n[r]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[r]-this.gridInner[r])/this.radius+this.cutoff))));return n},d.default=h;var b=function(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}};b.prototype.setURL=function(e){this.url=e},b.prototype.getGlyphs=function(t,n){var r=this,i=[];for(var o in t)for(var a=0,s=t[o];a<s.length;a+=1)i.push({stack:o,id:s[a]});e.asyncAll(i,(function(e,t){var n=e.stack,i=e.id,o=r.entries[n];o||(o=r.entries[n]={glyphs:{},requests:{},ranges:{}});var a=o.glyphs[i];if(void 0===a){if(a=r._tinySDF(o,n,i))return o.glyphs[i]=a,void t(null,{stack:n,id:i,glyph:a});var s=Math.floor(i/256);if(256*s>65535)t(new Error("glyphs > 65535 not supported"));else if(o.ranges[s])t(null,{stack:n,id:i,glyph:a});else{var u=o.requests[s];u||(u=o.requests[s]=[],b.loadGlyphRange(n,s,r.url,r.requestManager,(function(e,t){if(t){for(var n in t)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=t[+n]);o.ranges[s]=!0}for(var i=0,a=u;i<a.length;i+=1)(0,a[i])(e,t);delete o.requests[s]}))),u.push((function(e,r){e?t(e):r&&t(null,{stack:n,id:i,glyph:r[i]||null})}))}}else t(null,{stack:n,id:i,glyph:a})}),(function(e,t){if(e)n(e);else if(t){for(var r={},i=0,o=t;i<o.length;i+=1){var a=o[i],s=a.stack,u=a.id,l=a.glyph;(r[s]||(r[s]={}))[u]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics}}n(null,r)}}))},b.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&(e.isChar["CJK Unified Ideographs"](t)||e.isChar["Hangul Syllables"](t)||e.isChar.Hiragana(t)||e.isChar.Katakana(t))},b.prototype._tinySDF=function(t,n,r){var i=this.localIdeographFontFamily;if(i&&this._doesCharSupportLocalGlyph(r)){var o=t.tinySDF;if(!o){var a="400";/bold/i.test(n)?a="900":/medium/i.test(n)?a="500":/light/i.test(n)&&(a="200"),o=t.tinySDF=new b.TinySDF(24,3,8,.25,i,a)}return{id:r,bitmap:new e.AlphaImage({width:30,height:30},o.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},b.loadGlyphRange=function(t,n,r,i,o){var a=256*n,s=a+255,u=i.transformRequest(i.normalizeGlyphsURL(r).replace("{fontstack}",t).replace("{range}",a+"-"+s),e.ResourceType.Glyphs);e.getArrayBuffer(u,(function(t,n){if(t)o(t);else if(n){for(var r={},i=0,a=e.parseGlyphPBF(n);i<a.length;i+=1){var s=a[i];r[s.id]=s}o(null,r)}}))},b.TinySDF=d;var x=function(){this.specification=e.styleSpec.light.position};x.prototype.possiblyEvaluate=function(t,n){return e.sphericalToCartesian(t.expression.evaluate(n))},x.prototype.interpolate=function(t,n,r){return{x:e.number(t.x,n.x,r),y:e.number(t.y,n.y,r),z:e.number(t.z,n.z,r)}};var _=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new x,color:new e.DataConstantProperty(e.styleSpec.light.color),intensity:new e.DataConstantProperty(e.styleSpec.light.intensity)}),w=function(t){function n(n){t.call(this),this._transitionable=new e.Transitionable(_),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(t,n){if(void 0===n&&(n={}),!this._validate(e.validateLight,t,n))for(var r in t){var i=t[r];e.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),i):this._transitionable.setValue(r,i)}},n.prototype.updateTransitions=function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(e){this.properties=this._transitioning.possiblyEvaluate(e)},n.prototype._validate=function(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.styleSpec})))},n}(e.Evented),E=function(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};E.prototype.getDash=function(e,t){var n=e.join(",")+String(t);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(e,t)),this.dashEntry[n]},E.prototype.getDashRanges=function(e,t,n){var r=[],i=e.length%2==1?-e[e.length-1]*n:0,o=e[0]*n,a=!0;r.push({left:i,right:o,isDash:a,zeroLength:0===e[0]});for(var s=e[0],u=1;u<e.length;u++){var l=e[u];r.push({left:i=s*n,right:o=(s+=l)*n,isDash:a=!a,zeroLength:0===l})}return r},E.prototype.addRoundDash=function(e,t,n){for(var r=t/2,i=-n;i<=n;i++)for(var o=this.width*(this.nextRow+n+i),a=0,s=e[a],u=0;u<this.width;u++){u/s.right>1&&(s=e[++a]);var l=Math.abs(u-s.left),c=Math.abs(u-s.right),p=Math.min(l,c),f=void 0,d=i/n*(r+1);if(s.isDash){var h=r-Math.abs(d);f=Math.sqrt(p*p+h*h)}else f=r-Math.sqrt(p*p+d*d);this.data[o+u]=Math.max(0,Math.min(255,f+128))}},E.prototype.addRegularDash=function(e){for(var t=e.length-1;t>=0;--t){var n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}var i=e[0],o=e[e.length-1];i.isDash===o.isDash&&(i.left=o.left-this.width,o.right=i.right+this.width);for(var a=this.width*this.nextRow,s=0,u=e[s],l=0;l<this.width;l++){l/u.right>1&&(u=e[++s]);var c=Math.abs(l-u.left),p=Math.abs(l-u.right),f=Math.min(c,p);this.data[a+l]=Math.max(0,Math.min(255,(u.isDash?f:-f)+128))}},E.prototype.addDash=function(t,n){var r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a<t.length;a++)o+=t[a];if(0!==o){var s=this.width/o,u=this.getDashRanges(t,this.width,s);n?this.addRoundDash(u,s,r):this.addRegularDash(u)}var l={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:o};return this.nextRow+=i,this.dirty=!0,l},E.prototype.bind=function(e){var t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))};var D=function t(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=e.uniqueId();for(var i=this.workerPool.acquire(this.id),o=0;o<i.length;o++){var a=new t.Actor(i[o],r,this.id);a.name="Worker "+o,this.actors.push(a)}};function C(t,n,r){var i=function(i,o){if(i)return r(i);if(o){var a=e.pick(e.extend(o,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);o.vector_layers&&(a.vectorLayers=o.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(e){return e.id}))),a.tiles=n.canonicalizeTileset(a,t.url),r(null,a)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),i):e.browser.frame((function(){return i(null,t)}))}D.prototype.broadcast=function(t,n,r){e.asyncAll(this.actors,(function(e,r){e.send(t,n,r)}),r=r||function(){})},D.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},D.prototype.remove=function(){this.actors.forEach((function(e){e.remove()})),this.actors=[],this.workerPool.release(this.id)},D.Actor=e.Actor;var O=function(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24};O.prototype.validateBounds=function(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]},O.prototype.contains=function(t){var n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<o&&t.y>=i&&t.y<a};var S=function(t){function n(n,r,i,o){if(t.call(this),this.id=n,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(r,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(o)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=C(this._options,this.map._requestManager,(function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new O(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles,t.map._requestManager._customAccessToken),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken,t.map._requestManager._customAccessToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setSourceProperty=function(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.map.style.sourceCaches[this.id].clearTiles(),this.load()},n.prototype.setTiles=function(e){var t=this;return this.setSourceProperty((function(){t._options.tiles=e})),this},n.prototype.setUrl=function(e){var t=this;return this.setSourceProperty((function(){t.url=e,t._options.url=e})),this},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function o(r,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",i,o.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,o.bind(this)))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(e.Evented),k=function(t){function n(n,r,i,o){t.call(this),this.id=n,this.dispatcher=i,this.setEventedParent(o),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},r),e.extend(this,e.pick(r,["url","scheme","tileSize"]))}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=C(this._options,this.map._requestManager,(function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new O(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.loadTile=function(t,n){var r=this,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(i,e.ResourceType.Tile),(function(i,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(i)t.state="errored",n(i);else if(o){r.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=r.map.painter.context,s=a.gl;t.texture=r.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0}):(t.texture=new e.Texture(a,o,s.RGBA,{useMipmap:!0}),t.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(r.dispatcher),n(null)}}))},n.prototype.abortTile=function(e,t){e.request&&(e.request.cancel(),delete e.request),t()},n.prototype.unloadTile=function(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()},n.prototype.hasTransition=function(){return!1},n}(e.Evented),A=function(t){function n(n,r,i,o){t.call(this,n,r,i,o),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported()?o:e.browser.getImageData(o,1),s={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:a,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",s,i.bind(this)))}}.bind(this)),t.neighboringTiles=this._getNeighboringTiles(t.tileID)},n.prototype._getNeighboringTiles=function(t){var n=t.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,u={};return u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(u[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),u},n.prototype.unloadTile=function(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&e.actor.send("removeDEMTile",{uid:e.uid,source:this.id})},n}(k),T=function(t){function n(n,r,i,o){t.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(o),this._data=r.data,this._options=e.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution),this.promoteId=r.promoteId;var a=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*a,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*a,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,r.clusterMinPoints||2),extent:e.EXTENT,radius:(r.clusterRadius||50)*a,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties,filter:r.filter},r.workerOptions)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(n){if(n)t.fire(new e.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};t._collectResourceTiming&&t._resourceTiming&&t._resourceTiming.length>0&&(r.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",r))}}))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(t){if(t)n.fire(new e.ErrorEvent(t));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new e.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},n.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},n.prototype.getClusterLeaves=function(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this},n.prototype._updateWorkerData=function(t){var n=this;this._loaded=!1;var r=e.extend({},this.workerOptions),i=this._data;"string"==typeof i?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(i),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(i),this.actor.send(this.type+".loadData",r,(function(e,i){n._removed||i&&i.abandoned||(n._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[n.id]&&(n._resourceTiming=i.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),t(e))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(t,n){var r=this,i=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(i,{type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(e,o){return delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(o,r.map.painter,"reloadTile"===i),n(null))}))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},n.prototype.unloadTile=function(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(e.Evented),P=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),M=function(t){function n(e,n,r,i){t.call(this),this.id=e,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=n}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(t,n){var r=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(function(i,o){r._loaded=!0,i?r.fire(new e.ErrorEvent(i)):o&&(r.image=o,t&&(r.coordinates=t),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,(function(){t.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setCoordinates=function(t){var n=this;this.coordinates=t;var r=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0,s=t;a<s.length;a+=1){var u=s[a];n=Math.min(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.x),o=Math.max(o,u.y)}var l=Math.max(i-n,o-r),c=Math.max(0,Math.floor(-Math.log(l)/Math.LN2)),p=Math.pow(2,c);return new e.CanonicalTileID(c,Math.floor((n+i)/2*p),Math.floor((r+o)/2*p))}(r),this.minzoom=this.maxzoom=this.tileID.z;var i=r.map((function(e){return n.tileID.getTilePoint(e)._round()}));return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.loadTile=function(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))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(e.Evented),j=function(t){function n(e,n,r,i){t.call(this,e,n,r,i),this.roundZoom=!0,this.type="video",this.options=n}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,i=n.urls;r<i.length;r+=1)this.urls.push(this.map._requestManager.transformRequest(i[r],e.ResourceType.Source).url);e.getVideo(this.urls,(function(n,r){t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(t.video=r,t.video.loop=!0,t.video.addEventListener("playing",(function(){t.map.triggerRepaint()})),t.map&&t.video.play(),t._finishLoading())}))},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(t){if(this.video){var n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=t}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(M),I=function(t){function n(n,r,i,o){t.call(this,n,r,i,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(e){return!Array.isArray(e)||2!==e.length||e.some((function(e){return"number"!=typeof e}))}))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,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 e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[i];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];e<t.length;e+=1){var n=t[e];if(isNaN(n)||n<=0)return!0}return!1},n}(M),F={vector:S,raster:k,"raster-dem":A,geojson:T,video:j,image:M,canvas:I};function R(t,n){var r=e.identity([]);return e.translate(r,r,[1,1,0]),e.scale(r,r,[.5*t.width,.5*t.height,1]),e.multiply(r,r,t.calculatePosMatrix(n.toUnwrapped()))}function z(e,t,n,r,i,o){var a=function(e,t,n){if(e)for(var r=0,i=e;r<i.length;r+=1){var o=t[i[r]];if(o&&o.source===n&&"fill-extrusion"===o.type)return!0}else for(var a in t){var s=t[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(i&&i.layers,t,e.id),s=o.maxPitchScaleFactor(),u=e.tilesIn(r,s,a);u.sort(L);for(var l=[],c=0,p=u;c<p.length;c+=1){var f=p[c];l.push({wrappedTileID:f.tileID.wrapped().key,queryResults:f.tile.queryRenderedFeatures(t,n,e._state,f.queryGeometry,f.cameraQueryGeometry,f.scale,i,o,s,R(e.transform,f.tileID))})}var d=function(e){for(var t={},n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=o.queryResults,s=o.wrappedTileID,u=n[s]=n[s]||{};for(var l in a)for(var c=a[l],p=u[l]=u[l]||{},f=t[l]=t[l]||[],d=0,h=c;d<h.length;d+=1){var m=h[d];p[m.featureIndex]||(p[m.featureIndex]=!0,f.push(m))}}return t}(l);for(var h in d)d[h].forEach((function(t){var n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}));return d}function L(e,t){var n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}var B=function(e,t){this.max=e,this.onRemove=t,this.reset()};B.prototype.reset=function(){for(var e in this.data)for(var t=0,n=this.data[e];t<n.length;t+=1){var r=n[t];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},B.prototype.add=function(e,t,n){var r=this,i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var o={value:t,timeout:void 0};if(void 0!==n&&(o.timeout=setTimeout((function(){r.remove(e,o)}),n)),this.data[i].push(o),this.order.push(i),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},B.prototype.has=function(e){return e.wrapped().key in this.data},B.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},B.prototype._getAndRemoveByKey=function(e){var 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},B.prototype.getByKey=function(e){var t=this.data[e];return t?t[0].value:null},B.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},B.prototype.remove=function(e,t){if(!this.has(e))return this;var n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this},B.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this},B.prototype.filter=function(e){var t=[];for(var n in this.data)for(var r=0,i=this.data[n];r<i.length;r+=1){var o=i[r];e(o.value)||t.push(o)}for(var a=0,s=t;a<s.length;a+=1){var u=s[a];this.remove(u.value.tileID,u)}};var N=function(e,t,n){this.context=e;var r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};N.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},N.prototype.updateData=function(e){var t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)},N.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var V={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},U=function(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;var i=e.gl;this.buffer=i.createBuffer(),e.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};U.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},U.prototype.updateData=function(e){var t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)},U.prototype.enableAttributes=function(e,t){for(var n=0;n<this.attributes.length;n++){var r=t.attributes[this.attributes[n].name];void 0!==r&&e.enableVertexAttribArray(r)}},U.prototype.setVertexAttribPointers=function(e,t,n){for(var r=0;r<this.attributes.length;r++){var i=this.attributes[r],o=t.attributes[i.name];void 0!==o&&e.vertexAttribPointer(o,i.components,e[V[i.type]],!1,this.itemSize,i.offset+this.itemSize*(n||0))}},U.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var H=function(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};H.prototype.get=function(){return this.current},H.prototype.set=function(e){},H.prototype.getDefault=function(){return this.default},H.prototype.setDefault=function(){this.set(this.default)};var W=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var 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)},n}(H),G=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 1},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)},t}(H),q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)},t}(H),Y=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return[!0,!0,!0,!0]},t.prototype.set=function(e){var 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)},t}(H),Z=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)},t}(H),$=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 255},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)},t}(H),K=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},t.prototype.set=function(e){var 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)},t}(H),X=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]},t.prototype.set=function(e){var 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)},t}(H),J=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},t}(H),Q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return[0,1]},t.prototype.set=function(e){var 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)},t}(H),ee=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},t}(H),te=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.LESS},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)},t}(H),ne=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},t}(H),re=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.ONE,e.ZERO]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)},t}(H),ie=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(H),oe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.FUNC_ADD},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)},t}(H),ae=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},t}(H),se=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.BACK},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)},t}(H),ue=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.CCW},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)},t}(H),le=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)},t}(H),ce=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.TEXTURE0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)},t}(H),pe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]},t.prototype.set=function(e){var 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)},t}(H),fe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},t}(H),de=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(H),he=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},t}(H),me=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},t}(H),ve=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){var t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1},t}(H),ye=function(e){function t(t){e.call(this,t),this.vao=t.extVertexArrayObject}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)},t}(H),ge=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 4},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},t}(H),be=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},t}(H),xe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},t}(H),_e=function(e){function t(t,n){e.call(this,t),this.context=t,this.parent=n}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t}(H),we=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.setDirty=function(){this.dirty=!0},t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},t}(_e),Ee=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(_e),De=function(e,t,n,r){this.context=e,this.width=t,this.height=n;var i=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new we(e,i),r&&(this.depthAttachment=new Ee(e,i))};De.prototype.destroy=function(){var e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){var n=this.depthAttachment.get();n&&e.deleteRenderbuffer(n)}e.deleteFramebuffer(this.framebuffer)};var Ce=function(e,t,n){this.func=e,this.mask=t,this.range=n};Ce.ReadOnly=!1,Ce.ReadWrite=!0,Ce.disabled=new Ce(519,Ce.ReadOnly,[0,1]);var Oe=function(e,t,n,r,i,o){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o};Oe.disabled=new Oe({func:519,mask:0},0,0,7680,7680,7680);var Se=function(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n};Se.disabled=new Se(Se.Replace=[1,0],e.Color.transparent,[!1,!1,!1,!1]),Se.unblended=new Se(Se.Replace,e.Color.transparent,[!0,!0,!0,!0]),Se.alphaBlended=new Se([1,771],e.Color.transparent,[!0,!0,!0,!0]);var ke=function(e,t,n){this.enable=e,this.mode=t,this.frontFace=n};ke.disabled=new ke(!1,1029,2305),ke.backCCW=new ke(!0,1029,2305);var Ae=function(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new W(this),this.clearDepth=new G(this),this.clearStencil=new q(this),this.colorMask=new Y(this),this.depthMask=new Z(this),this.stencilMask=new $(this),this.stencilFunc=new K(this),this.stencilOp=new X(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new ee(this),this.depthFunc=new te(this),this.blend=new ne(this),this.blendFunc=new re(this),this.blendColor=new ie(this),this.blendEquation=new oe(this),this.cullFace=new ae(this),this.cullFaceSide=new se(this),this.frontFace=new ue(this),this.program=new le(this),this.activeTexture=new ce(this),this.viewport=new pe(this),this.bindFramebuffer=new fe(this),this.bindRenderbuffer=new de(this),this.bindTexture=new he(this),this.bindVertexBuffer=new me(this),this.bindElementBuffer=new ve(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ye(this),this.pixelStoreUnpack=new ge(this),this.pixelStoreUnpackPremultiplyAlpha=new be(this),this.pixelStoreUnpackFlipY=new xe(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.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)};Ae.prototype.setDefault=function(){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()},Ae.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ae.prototype.createIndexBuffer=function(e,t){return new N(this,e,t)},Ae.prototype.createVertexBuffer=function(e,t,n){return new U(this,e,t,n)},Ae.prototype.createRenderbuffer=function(e,t,n){var r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),i},Ae.prototype.createFramebuffer=function(e,t,n){return new De(this,e,t,n)},Ae.prototype.clear=function(e){var t=e.color,n=e.depth,r=this.gl,i=0;t&&(i|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(i|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(i)},Ae.prototype.setCullFace=function(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))},Ae.prototype.setDepthMode=function(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)},Ae.prototype.setStencilMode=function(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)},Ae.prototype.setColorMode=function(t){e.deepEqual(t.blendFunction,Se.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Ae.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Te=function(t){function n(n,r,i){var o=this;t.call(this),this.id=n,this.dispatcher=i,this.on("data",(function(e){"source"===e.dataType&&"metadata"===e.sourceDataType&&(o._sourceLoaded=!0),o._sourceLoaded&&!o._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(o.reload(),o.transform&&o.update(o.transform))})),this.on("error",(function(){o._sourceErrored=!0})),this._source=function(t,n,r,i){var o=new F[n.type](t,n,r,i);if(o.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+o.id);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o}(n,r,i,this),this._tiles={},this._cache=new B(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new e.SourceFeatureState}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.onAdd=function(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(e)},n.prototype.onRemove=function(e){this._source&&this._source.onRemove&&this._source.onRemove(e)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var e in this._tiles){var t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(e,t){return this._source.loadTile(e,t)},n.prototype._unloadTile=function(e){if(this._source.unloadTile)return this._source.unloadTile(e,(function(){}))},n.prototype._abortTile=function(e){if(this._source.abortTile)return this._source.abortTile(e,(function(){}))},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(e){for(var t in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return e.values(this._tiles).map((function(e){return e.tileID})).sort(Pe).map((function(e){return e.key}))},n.prototype.getRenderableIds=function(t){var n=this,r=[];for(var i in this._tiles)this._isIdRenderable(i,t)&&r.push(this._tiles[i]);return t?r.sort((function(t,r){var i=t.tileID,o=r.tileID,a=new e.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle),s=new e.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle);return i.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.x})).map((function(e){return e.tileID.key})):r.map((function(e){return e.tileID})).sort(Pe).map((function(e){return e.key}))},n.prototype.hasRenderableParent=function(e){var t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)},n.prototype._isIdRenderable=function(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var e in this._cache.reset(),this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")},n.prototype._reloadTile=function(e,t){var n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))},n.prototype._tileLoaded=function(t,n,r,i){if(i)return t.state="errored",void(404!==i.status?this._source.fire(new e.ErrorEvent(i,{tile:t})):this.update(this.transform));t.timeAdded=e.browser.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new e.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},n.prototype._backfillDEM=function(e){for(var t=this.getRenderableIds(),n=0;n<t.length;n++){var r=t[n];if(e.neighboringTiles&&e.neighboringTiles[r]){var i=this.getTileByID(r);o(e,i),o(i,e)}}function o(e,t){e.needsHillshadePrepare=!0;var n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,i=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}},n.prototype.getTile=function(e){return this.getTileByID(e.key)},n.prototype.getTileByID=function(e){return this._tiles[e]},n.prototype._retainLoadedChildren=function(e,t,n,r){for(var i in this._tiles){var o=this._tiles[i];if(!(r[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>t+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var u=a;u.overscaledZ>t;)if(e[(u=u.scaledTo(u.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(e,t){if(e.key in this._loadedParentTiles){var n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(var r=e.overscaledZ-1;r>=t;r--){var i=e.scaledTo(r),o=this._getLoadedTile(i);if(o)return o}},n.prototype._getLoadedTile=function(e){var t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)},n.prototype.updateCacheSize=function(e){var t=Math.ceil(e.width/this._source.tileSize)+1,n=Math.ceil(e.height/this._source.tileSize)+1,r=Math.floor(t*n*5),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)},n.prototype.handleWrapJump=function(e){var t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){var n={};for(var r in this._tiles){var i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),n[i.tileID.key]=i}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)})):(i=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(e){return r._source.hasTile(e)})))):i=[];var o=t.coveringZoomLevel(this._source),a=Math.max(o-n.maxOverzooming,this._source.minzoom),s=Math.max(o+n.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(i,o);if(Me(this._source.type)){for(var l={},c={},p=0,f=Object.keys(u);p<f.length;p+=1){var d=f[p],h=u[d],m=this._tiles[d];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=e.browser.now())){var v=this.findLoadedParent(h,a);v&&(this._addTile(v.tileID),l[v.tileID.key]=v.tileID),c[d]=h}}for(var y in this._retainLoadedChildren(c,o,s,u),l)u[y]||(this._coveredTiles[y]=!0,u[y]=l[y])}for(var g in u)this._tiles[g].clearFadeHold();for(var b=0,x=e.keysDifference(this._tiles,u);b<x.length;b+=1){var _=x[b],w=this._tiles[_];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},n.prototype.releaseSymbolFadeTiles=function(){for(var e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)},n.prototype._updateRetainedTiles=function(e,t){for(var r={},i={},o=Math.max(t-n.maxOverzooming,this._source.minzoom),a=Math.max(t+n.maxUnderzooming,this._source.minzoom),s={},u=0,l=e;u<l.length;u+=1){var c=l[u],p=this._addTile(c);r[c.key]=c,p.hasData()||t<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,t,a,r);for(var f=0,d=e;f<d.length;f+=1){var h=d[f],m=this._tiles[h.key];if(!m.hasData()){if(t+1>this._source.maxzoom){var v=h.children(this._source.maxzoom)[0],y=this.getTile(v);if(y&&y.hasData()){r[v.key]=v;continue}}else{var g=h.children(this._source.maxzoom);if(r[g[0].key]&&r[g[1].key]&&r[g[2].key]&&r[g[3].key])continue}for(var b=m.wasRequested(),x=h.overscaledZ-1;x>=o;--x){var _=h.scaledTo(x);if(i[_.key])break;if(i[_.key]=!0,!(m=this.getTile(_))&&b&&(m=this._addTile(_)),m&&(r[_.key]=_,b=m.wasRequested(),m.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var e in this._loadedParentTiles={},this._tiles){for(var t=[],n=void 0,r=this._tiles[e].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);var i=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(i))break;r=i}for(var o=0,a=t;o<a.length;o+=1)this._loadedParentTiles[a[o]]=n}},n.prototype._addTile=function(t){var n=this._tiles[t.key];if(n)return n;(n=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));var r=Boolean(n);return r||(n=new e.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n?(n.uses++,this._tiles[t.key]=n,r||this._source.fire(new e.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(e,t){var n=this;e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);var r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout((function(){n._reloadTile(e,"expired"),delete n._timers[e]}),r))},n.prototype._removeTile=function(e){var 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))))},n.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},n.prototype.tilesIn=function(t,n,r){var i=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(t):t,u=t.map((function(e){return a.pointCoordinate(e)})),l=s.map((function(e){return a.pointCoordinate(e)})),c=this.getIds(),p=1/0,f=1/0,d=-1/0,h=-1/0,m=0,v=l;m<v.length;m+=1){var y=v[m];p=Math.min(p,y.x),f=Math.min(f,y.y),d=Math.max(d,y.x),h=Math.max(h,y.y)}for(var g=function(t){var r=i._tiles[c[t]];if(!r.holdingForFade()){var s=r.tileID,m=Math.pow(2,a.zoom-r.tileID.overscaledZ),v=n*r.queryPadding*e.EXTENT/r.tileSize/m,y=[s.getTilePoint(new e.MercatorCoordinate(p,f)),s.getTilePoint(new e.MercatorCoordinate(d,h))];if(y[0].x-v<e.EXTENT&&y[0].y-v<e.EXTENT&&y[1].x+v>=0&&y[1].y+v>=0){var g=u.map((function(e){return s.getTilePoint(e)})),b=l.map((function(e){return s.getTilePoint(e)}));o.push({tile:r,tileID:s,queryGeometry:g,cameraQueryGeometry:b,scale:m})}}},b=0;b<c.length;b++)g(b);return o},n.prototype.getVisibleCoordinates=function(e){for(var t=this,n=this.getRenderableIds(e).map((function(e){return t._tiles[e].tileID})),r=0,i=n;r<i.length;r+=1){var o=i[r];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Me(this._source.type))for(var t in this._tiles){var n=this._tiles[t];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=e.browser.now())return!0}return!1},n.prototype.setFeatureState=function(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)},n.prototype.removeFeatureState=function(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)},n.prototype.getFeatureState=function(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)},n.prototype.setDependencies=function(e,t,n){var r=this._tiles[e];r&&r.setDependencies(t,n)},n.prototype.reloadTilesForDependencies=function(e,t){for(var n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(e,t)}))},n}(e.Evented);function Pe(e,t){var n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Me(e){return"raster"===e||"image"===e||"video"===e}function je(){return new e.window.Worker($i.workerUrl)}Te.maxOverzooming=10,Te.maxUnderzooming=3;var Ie="mapboxgl_preloaded_worker_pool",Fe=function(){this.active={}};Fe.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length<Fe.workerCount;)this.workers.push(new je);return this.active[e]=!0,this.workers.slice()},Fe.prototype.release=function(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((function(e){e.terminate()})),this.workers=null)},Fe.prototype.isPreloaded=function(){return!!this.active[Ie]},Fe.prototype.numActive=function(){return Object.keys(this.active).length};var Re,ze=Math.floor(e.browser.hardwareConcurrency/2);function Le(){return Re||(Re=new Fe),Re}function Be(t,n){var r={};for(var i in t)"ref"!==i&&(r[i]=t[i]);return e.refProperties.forEach((function(e){e in n&&(r[e]=n[e])})),r}function Ne(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=Be(e[r],t[e[r].ref]));return e}Fe.workerCount=Math.max(Math.min(ze,6),1);var Ve={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Ue(e,t,n){n.push({command:Ve.addSource,args:[e,t[e]]})}function He(e,t,n){t.push({command:Ve.removeSource,args:[e]}),n[e]=!0}function We(e,t,n,r){He(e,n,r),Ue(e,t,n)}function Ge(t,n,r){var i;for(i in t[r])if(t[r].hasOwnProperty(i)&&"data"!==i&&!e.deepEqual(t[r][i],n[r][i]))return!1;for(i in n[r])if(n[r].hasOwnProperty(i)&&"data"!==i&&!e.deepEqual(t[r][i],n[r][i]))return!1;return!0}function qe(t,n,r,i,o,a){var s;for(s in n=n||{},t=t||{})t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}));for(s in n)n.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}))}function Ye(e){return e.id}function Ze(e,t){return e[t.id]=t,e}var $e=function(e,t){this.reset(e,t)};$e.prototype.reset=function(e,t){this.points=e||[],this._distances=[0];for(var n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-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},$e.prototype.lerp=function(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);for(var n=1,r=this._distances[n],i=t*this.paddedLength+this.padding;r<i&&n<this._distances.length;)r=this._distances[++n];var o=n-1,a=this._distances[o],s=r-a,u=s>0?(i-a)/s:0;return this.points[o].mult(1-u).add(this.points[n].mult(u))};var Ke=function(e,t,n){var r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(var o=0;o<this.xCellCount*this.yCellCount;o++)r.push([]),i.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};function Xe(t,n,r,i,o){var a=e.create();return n?(e.scale(a,a,[1/o,1/o,1]),r||e.rotateZ(a,a,i.angle)):e.multiply(a,i.labelPlaneMatrix,t),a}function Je(t,n,r,i,o){if(n){var a=e.clone(t);return e.scale(a,a,[o,o,1]),r||e.rotateZ(a,a,-i.angle),a}return i.glCoordMatrix}function Qe(t,n){var r=[t.x,t.y,0,1];ct(r,r,n);var i=r[3];return{point:new e.Point(r[0]/i,r[1]/i),signedDistanceFromCamera:i}}function et(e,t){return.5+e/t*.5}function tt(e,t){var n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function nt(t,n,r,i,o,a,s,u){var l=i?t.textSizeData:t.iconSizeData,c=e.evaluateSizeForZoom(l,r.transform.zoom),p=[256/r.width*2+1,256/r.height*2+1],f=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();for(var d=t.lineVertexArray,h=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,m=r.transform.width/r.transform.height,v=!1,y=0;y<h.length;y++){var g=h.get(y);if(g.hidden||g.writingMode===e.WritingMode.vertical&&!v)lt(g.numGlyphs,f);else{v=!1;var b=[g.anchorX,g.anchorY,0,1];if(e.transformMat4(b,b,n),tt(b,p)){var x=et(r.transform.cameraToCenterDistance,b[3]),_=e.evaluateSizeForFeature(l,c,g),w=s?_/x:_*x,E=new e.Point(g.anchorX,g.anchorY),D=Qe(E,o).point,C={},O=ot(g,w,!1,u,n,o,a,t.glyphOffsetArray,d,f,D,E,C,m);v=O.useVertical,(O.notEnoughRoom||v||O.needsFlipping&&ot(g,w,!0,u,n,o,a,t.glyphOffsetArray,d,f,D,E,C,m).notEnoughRoom)&<(g.numGlyphs,f)}else lt(g.numGlyphs,f)}}i?t.text.dynamicLayoutVertexBuffer.updateData(f):t.icon.dynamicLayoutVertexBuffer.updateData(f)}function rt(e,t,n,r,i,o,a,s,u,l,c){var p=s.glyphStartIndex+s.numGlyphs,f=s.lineStartIndex,d=s.lineStartIndex+s.lineLength,h=t.getoffsetX(s.glyphStartIndex),m=t.getoffsetX(p-1),v=st(e*h,n,r,i,o,a,s.segment,f,d,u,l,c);if(!v)return null;var y=st(e*m,n,r,i,o,a,s.segment,f,d,u,l,c);return y?{first:v,last:y}:null}function it(t,n,r,i){return t===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*i?{useVertical:!0}:(t===e.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function ot(t,n,r,i,o,a,s,u,l,c,p,f,d,h){var m,v=n/24,y=t.lineOffsetX*v,g=t.lineOffsetY*v;if(t.numGlyphs>1){var b=t.glyphStartIndex+t.numGlyphs,x=t.lineStartIndex,_=t.lineStartIndex+t.lineLength,w=rt(v,u,y,g,r,p,f,t,l,a,d);if(!w)return{notEnoughRoom:!0};var E=Qe(w.first.point,s).point,D=Qe(w.last.point,s).point;if(i&&!r){var C=it(t.writingMode,E,D,h);if(C)return C}m=[w.first];for(var O=t.glyphStartIndex+1;O<b-1;O++)m.push(st(v*u.getoffsetX(O),y,g,r,p,f,t.segment,x,_,l,a,d));m.push(w.last)}else{if(i&&!r){var S=Qe(f,o).point,k=t.lineStartIndex+t.segment+1,A=new e.Point(l.getx(k),l.gety(k)),T=Qe(A,o),P=T.signedDistanceFromCamera>0?T.point:at(f,A,S,1,o),M=it(t.writingMode,S,P,h);if(M)return M}var j=st(v*u.getoffsetX(t.glyphStartIndex),y,g,r,p,f,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,l,a,d);if(!j)return{notEnoughRoom:!0};m=[j]}for(var I=0,F=m;I<F.length;I+=1){var R=F[I];e.addDynamicAttributes(c,R.point,R.angle)}return{}}function at(e,t,n,r,i){var o=Qe(e.add(e.sub(t)._unit()),i).point,a=n.sub(o);return n.add(a._mult(r/a.mag()))}function st(t,n,r,i,o,a,s,u,l,c,p,f){var d=i?t-n:t+n,h=d>0?1:-1,m=0;i&&(h*=-1,m=Math.PI),h<0&&(m+=Math.PI);for(var v=h>0?u+s:u+s+1,y=o,g=o,b=0,x=0,_=Math.abs(d),w=[];b+x<=_;){if((v+=h)<u||v>=l)return null;if(g=y,w.push(y),void 0===(y=f[v])){var E=new e.Point(c.getx(v),c.gety(v)),D=Qe(E,p);if(D.signedDistanceFromCamera>0)y=f[v]=D.point;else{var C=v-h;y=at(0===b?a:new e.Point(c.getx(C),c.gety(C)),E,g,_-b+1,p)}}b+=x,x=g.dist(y)}var O=(_-b)/x,S=y.sub(g),k=S.mult(O)._add(g);k._add(S._unit()._perp()._mult(r*h));var A=m+Math.atan2(y.y-g.y,y.x-g.x);return w.push(k),{point:k,angle:A,path:w}}Ke.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ke.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Ke.prototype.insertCircle=function(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)},Ke.prototype._insertBoxCell=function(e,t,n,r,i,o){this.boxCells[i].push(o)},Ke.prototype._insertCircleCell=function(e,t,n,r,i,o){this.circleCells[i].push(o)},Ke.prototype._query=function(e,t,n,r,i,o){if(n<0||e>this.width||r<0||t>this.height)return!i&&[];var a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var u=0;u<this.circleKeys.length;u++){var l=this.circles[3*u],c=this.circles[3*u+1],p=this.circles[3*u+2];a.push({key:this.circleKeys[u],x1:l-p,y1:c-p,x2:l+p,y2:c+p})}return o?a.filter(o):a}return this._forEachCell(e,t,n,r,this._queryCell,a,{hitTest:i,seenUids:{box:{},circle:{}}},o),i?a.length>0:a},Ke.prototype._queryCircle=function(e,t,n,r,i){var o=e-n,a=e+n,s=t-n,u=t+n;if(a<0||o>this.width||u<0||s>this.height)return!r&&[];var l=[];return this._forEachCell(o,s,a,u,this._queryCellCircle,l,{hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},i),r?l.length>0:l},Ke.prototype.query=function(e,t,n,r,i){return this._query(e,t,n,r,!1,i)},Ke.prototype.hitTest=function(e,t,n,r,i){return this._query(e,t,n,r,!0,i)},Ke.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},Ke.prototype._queryCell=function(e,t,n,r,i,o,a,s){var u=a.seenUids,l=this.boxCells[i];if(null!==l)for(var c=this.bboxes,p=0,f=l;p<f.length;p+=1){var d=f[p];if(!u.box[d]){u.box[d]=!0;var h=4*d;if(e<=c[h+2]&&t<=c[h+3]&&n>=c[h+0]&&r>=c[h+1]&&(!s||s(this.boxKeys[d]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[h],y1:c[h+1],x2:c[h+2],y2:c[h+3]})}}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,g=m;y<g.length;y+=1){var b=g[y];if(!u.circle[b]){u.circle[b]=!0;var x=3*b;if(this._circleAndRectCollide(v[x],v[x+1],v[x+2],e,t,n,r)&&(!s||s(this.circleKeys[b]))){if(a.hitTest)return o.push(!0),!0;var _=v[x],w=v[x+1],E=v[x+2];o.push({key:this.circleKeys[b],x1:_-E,y1:w-E,x2:_+E,y2:w+E})}}}},Ke.prototype._queryCellCircle=function(e,t,n,r,i,o,a,s){var u=a.circle,l=a.seenUids,c=this.boxCells[i];if(null!==c)for(var p=this.bboxes,f=0,d=c;f<d.length;f+=1){var h=d[f];if(!l.box[h]){l.box[h]=!0;var m=4*h;if(this._circleAndRectCollide(u.x,u.y,u.radius,p[m+0],p[m+1],p[m+2],p[m+3])&&(!s||s(this.boxKeys[h])))return o.push(!0),!0}}var v=this.circleCells[i];if(null!==v)for(var y=this.circles,g=0,b=v;g<b.length;g+=1){var x=b[g];if(!l.circle[x]){l.circle[x]=!0;var _=3*x;if(this._circlesCollide(y[_],y[_+1],y[_+2],u.x,u.y,u.radius)&&(!s||s(this.circleKeys[x])))return o.push(!0),!0}}},Ke.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var u=this._convertToXCellCoord(e),l=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),p=this._convertToYCellCoord(r),f=u;f<=c;f++)for(var d=l;d<=p;d++)if(i.call(this,e,t,n,r,this.xCellCount*d+f,o,a,s))return},Ke.prototype._convertToXCellCoord=function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))},Ke.prototype._convertToYCellCoord=function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))},Ke.prototype._circlesCollide=function(e,t,n,r,i,o){var a=r-e,s=i-t,u=n+o;return u*u>a*a+s*s},Ke.prototype._circleAndRectCollide=function(e,t,n,r,i,o,a){var s=(o-r)/2,u=Math.abs(e-(r+s));if(u>s+n)return!1;var l=(a-i)/2,c=Math.abs(t-(i+l));if(c>l+n)return!1;if(u<=s||c<=l)return!0;var p=u-s,f=c-l;return p*p+f*f<=n*n};var ut=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function lt(e,t){for(var n=0;n<e;n++){var r=t.length;t.resize(r+4),t.float32.set(ut,3*r)}}function ct(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e[3]=n[3]*r+n[7]*i+n[15],e}var pt=function(e,t,n){void 0===t&&(t=new Ke(e.width+200,e.height+200,25)),void 0===n&&(n=new Ke(e.width+200,e.height+200,25)),this.transform=e,this.grid=t,this.ignoredGrid=n,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200};function ft(t,n,r){return n*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}pt.prototype.placeCollisionBox=function(e,t,n,r,i){var o=this.projectAndGetPerspectiveRatio(r,e.anchorPointX,e.anchorPointY),a=n*o.perspectiveRatio,s=e.x1*a+o.point.x,u=e.y1*a+o.point.y,l=e.x2*a+o.point.x,c=e.y2*a+o.point.y;return!this.isInsideGrid(s,u,l,c)||!t&&this.grid.hitTest(s,u,l,c,i)?{box:[],offscreen:!1}:{box:[s,u,l,c],offscreen:this.isOffscreen(s,u,l,c)}},pt.prototype.placeCollisionCircles=function(t,n,r,i,o,a,s,u,l,c,p,f,d){var h=[],m=new e.Point(n.anchorX,n.anchorY),v=Qe(m,a),y=et(this.transform.cameraToCenterDistance,v.signedDistanceFromCamera),g=(c?o/y:o*y)/e.ONE_EM,b=Qe(m,s).point,x=rt(g,i,n.lineOffsetX*g,n.lineOffsetY*g,!1,b,m,n,r,s,{}),_=!1,w=!1,E=!0;if(x){for(var D=.5*f*y+d,C=new e.Point(-100,-100),O=new e.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new $e,k=x.first,A=x.last,T=[],P=k.path.length-1;P>=1;P--)T.push(k.path[P]);for(var M=1;M<A.path.length;M++)T.push(A.path[M]);var j=2.5*D;if(u){var I=T.map((function(e){return Qe(e,u)}));T=I.some((function(e){return e.signedDistanceFromCamera<=0}))?[]:I.map((function(e){return e.point}))}var F=[];if(T.length>0){for(var R=T[0].clone(),z=T[0].clone(),L=1;L<T.length;L++)R.x=Math.min(R.x,T[L].x),R.y=Math.min(R.y,T[L].y),z.x=Math.max(z.x,T[L].x),z.y=Math.max(z.y,T[L].y);F=R.x>=C.x&&z.x<=O.x&&R.y>=C.y&&z.y<=O.y?[T]:z.x<C.x||R.x>O.x||z.y<C.y||R.y>O.y?[]:e.clipLine([T],C.x,C.y,O.x,O.y)}for(var B=0,N=F;B<N.length;B+=1){var V;S.reset(N[B],.25*D),V=S.length<=.5*D?1:Math.ceil(S.paddedLength/j)+1;for(var U=0;U<V;U++){var H=U/Math.max(V-1,1),W=S.lerp(H),G=W.x+100,q=W.y+100;h.push(G,q,D,0);var Y=G-D,Z=q-D,$=G+D,K=q+D;if(E=E&&this.isOffscreen(Y,Z,$,K),w=w||this.isInsideGrid(Y,Z,$,K),!t&&this.grid.hitTestCircle(G,q,D,p)&&(_=!0,!l))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!l&&_||!w?[]:h,offscreen:E,collisionDetected:_}},pt.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,i=1/0,o=-1/0,a=-1/0,s=0,u=t;s<u.length;s+=1){var l=u[s],c=new e.Point(l.x+100,l.y+100);r=Math.min(r,c.x),i=Math.min(i,c.y),o=Math.max(o,c.x),a=Math.max(a,c.y),n.push(c)}for(var p={},f={},d=0,h=this.grid.query(r,i,o,a).concat(this.ignoredGrid.query(r,i,o,a));d<h.length;d+=1){var m=h[d],v=m.key;if(void 0===p[v.bucketInstanceId]&&(p[v.bucketInstanceId]={}),!p[v.bucketInstanceId][v.featureIndex]){var y=[new e.Point(m.x1,m.y1),new e.Point(m.x2,m.y1),new e.Point(m.x2,m.y2),new e.Point(m.x1,m.y2)];e.polygonIntersectsPolygon(n,y)&&(p[v.bucketInstanceId][v.featureIndex]=!0,void 0===f[v.bucketInstanceId]&&(f[v.bucketInstanceId]=[]),f[v.bucketInstanceId].push(v.featureIndex))}}return f},pt.prototype.insertCollisionBox=function(e,t,n,r,i){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:i},e[0],e[1],e[2],e[3])},pt.prototype.insertCollisionCircles=function(e,t,n,r,i){for(var o=t?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:i},s=0;s<e.length;s+=4)o.insertCircle(a,e[s],e[s+1],e[s+2])},pt.prototype.projectAndGetPerspectiveRatio=function(t,n,r){var i=[n,r,0,1];return ct(i,i,t),{point:new e.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},pt.prototype.isOffscreen=function(e,t,n,r){return n<100||e>=this.screenRightBoundary||r<100||t>this.screenBottomBoundary},pt.prototype.isInsideGrid=function(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary},pt.prototype.getViewportMatrix=function(){var t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t};var dt=function(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n};dt.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var ht=function(e,t,n,r,i){this.text=new dt(e?e.text:null,t,n,i),this.icon=new dt(e?e.icon:null,t,r,i)};ht.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var mt=function(e,t,n){this.text=e,this.icon=t,this.skipFade=n},vt=function(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]},yt=function(e,t,n,r,i){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i},gt=function(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}};function bt(t,n,r,i,o){var a=e.getAnchorAlignment(t),s=-(a.horizontalAlign-.5)*n,u=-(a.verticalAlign-.5)*r,l=e.evaluateVariableOffset(t,i);return new e.Point(s+l[0]*o,u+l[1]*o)}function xt(t,n,r,i,o,a){var s=t.x1,u=t.x2,l=t.y1,c=t.y2,p=t.anchorPointX,f=t.anchorPointY,d=new e.Point(n,r);return i&&d._rotate(o?a:-a),{x1:s+d.x,y1:l+d.y,x2:u+d.x,y2:c+d.y,anchorPointX:p,anchorPointY:f}}gt.prototype.get=function(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){var t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:function(e){return e.collisionGroupID===t}}}return this.collisionGroups[e]};var _t=function(e,t,n,r){this.transform=e.clone(),this.collisionIndex=new pt(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new gt(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function wt(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}_t.prototype.getBucketParts=function(t,n,r,i){var o=r.getBucket(n),a=r.latestFeatureIndex;if(o&&a&&n.id===o.layerIds[0]){var s=r.collisionBoxArray,u=o.layers[0].layout,l=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/e.EXTENT,p=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),f="map"===u.get("text-pitch-alignment"),d="map"===u.get("text-rotation-alignment"),h=ft(r,1,this.transform.zoom),m=Xe(p,f,d,this.transform,h),v=null;if(f){var y=Je(p,f,d,this.transform,h);v=e.multiply([],this.transform.labelPlaneMatrix,y)}this.retainedQueryData[o.bucketInstanceId]=new yt(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID);var g={bucket:o,layout:u,posMatrix:p,textLabelPlaneMatrix:m,labelToScreenMatrix:v,scale:l,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(i)for(var b=0,x=o.sortKeyRanges;b<x.length;b+=1){var _=x[b];t.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:g})}},_t.prototype.attemptAnchorPlacement=function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h){var m,v=[p.textOffset0,p.textOffset1],y=bt(e,n,r,v,i),g=this.collisionIndex.placeCollisionBox(xt(t,y.x,y.y,o,a,this.transform.angle),c,s,u,l.predicate);if(!h||0!==this.collisionIndex.placeCollisionBox(xt(h,y.x,y.y,o,a,this.transform.angle),c,s,u,l.predicate).box.length)return g.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID]&&this.prevPlacement.placements[p.crossTileID].text&&(m=this.prevPlacement.variableOffsets[p.crossTileID].anchor),this.variableOffsets[p.crossTileID]={textOffset:v,width:n,height:r,anchor:e,textBoxScale:i,prevAnchor:m},this.markUsedJustification(f,e,p,d),f.allowVerticalPlacement&&(this.markUsedOrientation(f,d,p),this.placedOrientations[p.crossTileID]=d),{shift:y,placedGlyphBoxes:g}):void 0},_t.prototype.placeLayerBucketPart=function(t,n,r){var i=this,o=t.parameters,a=o.bucket,s=o.layout,u=o.posMatrix,l=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,p=o.textPixelRatio,f=o.holdingForFade,d=o.collisionBoxArray,h=o.partiallyEvaluatedTextSize,m=o.collisionGroup,v=s.get("text-optional"),y=s.get("icon-optional"),g=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),x="map"===s.get("text-rotation-alignment"),_="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),E="viewport-y"===s.get("symbol-z-order"),D=g&&(b||!a.hasIconData()||y),C=b&&(g||!a.hasTextData()||v);!a.collisionArrays&&d&&a.deserializeCollisionBoxes(d);var O=function(t,o){if(!n[t.crossTileID])if(f)i.placements[t.crossTileID]=new mt(!1,!1,!1);else{var d,E=!1,O=!1,S=!0,k=null,A={box:null,offscreen:null},T={box:null,offscreen:null},P=null,M=null,j=0,I=0,F=0;o.textFeatureIndex?j=o.textFeatureIndex:t.useRuntimeCollisionCircles&&(j=t.featureIndex),o.verticalTextFeatureIndex&&(I=o.verticalTextFeatureIndex);var R=o.textBox;if(R){var z=function(n){var r=e.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&i.prevPlacement){var o=i.prevPlacement.placedOrientations[t.crossTileID];o&&(i.placedOrientations[t.crossTileID]=o,i.markUsedOrientation(a,r=o,t))}return r},L=function(n,r){if(a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var i=0,s=a.writingModes;i<s.length&&(s[i]===e.WritingMode.vertical?(A=r(),T=A):A=n(),!(A&&A.box&&A.box.length));i+=1);else A=n()};if(s.get("text-variable-anchor")){var B=s.get("text-variable-anchor");if(i.prevPlacement&&i.prevPlacement.variableOffsets[t.crossTileID]){var N=i.prevPlacement.variableOffsets[t.crossTileID];B.indexOf(N.anchor)>0&&(B=B.filter((function(e){return e!==N.anchor}))).unshift(N.anchor)}var V=function(e,n,r){for(var o=e.x2-e.x1,s=e.y2-e.y1,l=t.textBoxScale,c=w&&!b?n:null,f={box:[],offscreen:!1},d=g?2*B.length:B.length,h=0;h<d;++h){var v=i.attemptAnchorPlacement(B[h%B.length],e,o,s,l,x,_,p,u,m,h>=B.length,t,a,r,c);if(v&&(f=v.placedGlyphBoxes)&&f.box&&f.box.length){E=!0,k=v.shift;break}}return f};L((function(){return V(R,o.iconBox,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&!(A&&A.box&&A.box.length)&&t.numVerticalGlyphVertices>0&&n?V(n,o.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}})),A&&(E=A.box,S=A.offscreen);var U=z(A&&A.box);if(!E&&i.prevPlacement){var H=i.prevPlacement.variableOffsets[t.crossTileID];H&&(i.variableOffsets[t.crossTileID]=H,i.markUsedJustification(a,H.anchor,t,U))}}else{var W=function(e,n){var r=i.collisionIndex.placeCollisionBox(e,g,p,u,m.predicate);return r&&r.box&&r.box.length&&(i.markUsedOrientation(a,n,t),i.placedOrientations[t.crossTileID]=n),r};L((function(){return W(R,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?W(n,e.WritingMode.vertical):{box:null,offscreen:null}})),z(A&&A.box&&A.box.length)}}if(E=(d=A)&&d.box&&d.box.length>0,S=d&&d.offscreen,t.useRuntimeCollisionCircles){var G=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),q=e.evaluateSizeForFeature(a.textSizeData,h,G),Y=s.get("text-padding");P=i.collisionIndex.placeCollisionCircles(g,G,a.lineVertexArray,a.glyphOffsetArray,q,u,l,c,r,_,m.predicate,t.collisionCircleDiameter,Y),E=g||P.circles.length>0&&!P.collisionDetected,S=S&&P.offscreen}if(o.iconFeatureIndex&&(F=o.iconFeatureIndex),o.iconBox){var Z=function(e){var t=w&&k?xt(e,k.x,k.y,x,_,i.transform.angle):e;return i.collisionIndex.placeCollisionBox(t,b,p,u,m.predicate)};O=T&&T.box&&T.box.length&&o.verticalIconBox?(M=Z(o.verticalIconBox)).box.length>0:(M=Z(o.iconBox)).box.length>0,S=S&&M.offscreen}var $=v||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,K=y||0===t.numIconVertices;if($||K?K?$||(O=O&&E):E=O&&E:O=E=O&&E,E&&d&&d.box&&i.collisionIndex.insertCollisionBox(d.box,s.get("text-ignore-placement"),a.bucketInstanceId,T&&T.box&&I?I:j,m.ID),O&&M&&i.collisionIndex.insertCollisionBox(M.box,s.get("icon-ignore-placement"),a.bucketInstanceId,F,m.ID),P&&(E&&i.collisionIndex.insertCollisionCircles(P.circles,s.get("text-ignore-placement"),a.bucketInstanceId,j,m.ID),r)){var X=a.bucketInstanceId,J=i.collisionCircleArrays[X];void 0===J&&(J=i.collisionCircleArrays[X]=new vt);for(var Q=0;Q<P.circles.length;Q+=4)J.circles.push(P.circles[Q+0]),J.circles.push(P.circles[Q+1]),J.circles.push(P.circles[Q+2]),J.circles.push(P.collisionDetected?1:0)}i.placements[t.crossTileID]=new mt(E||D,O||C,S||a.justReloaded),n[t.crossTileID]=!0}};if(E)for(var S=a.getSortedSymbolIndexes(this.transform.angle),k=S.length-1;k>=0;--k){var A=S[k];O(a.symbolInstances.get(A),a.collisionArrays[A])}else for(var T=t.symbolInstanceStart;T<t.symbolInstanceEnd;T++)O(a.symbolInstances.get(T),a.collisionArrays[T]);if(r&&a.bucketInstanceId in this.collisionCircleArrays){var P=this.collisionCircleArrays[a.bucketInstanceId];e.invert(P.invProjMatrix,u),P.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1},_t.prototype.markUsedJustification=function(t,n,r,i){var o;o=i===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(n)];for(var a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];a<s.length;a+=1){var u=s[a];u>=0&&(t.text.placedSymbolArray.get(u).crossTileID=o>=0&&u!==o?0:r.crossTileID)}},_t.prototype.markUsedOrientation=function(t,n,r){for(var i=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a<s.length;a+=1)t.text.placedSymbolArray.get(s[a]).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)},_t.prototype.commit=function(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;var t=this.prevPlacement,n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;var r=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(var s in this.placements){var u=this.placements[s],l=i[s];l?(this.opacities[s]=new ht(l,r,u.text,u.icon),n=n||u.text!==l.text.placed||u.icon!==l.icon.placed):(this.opacities[s]=new ht(null,r,u.text,u.icon,u.skipFade),n=n||u.text||u.icon)}for(var c in i){var p=i[c];if(!this.opacities[c]){var f=new ht(p,r,!1,!1);f.isHidden()||(this.opacities[c]=f,n=n||p.text.placed||p.icon.placed)}}for(var d in o)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=o[d]);for(var h in a)this.placedOrientations[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.placedOrientations[h]=a[h]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},_t.prototype.updateLayerOpacities=function(e,t){for(var n={},r=0,i=t;r<i.length;r+=1){var o=i[r],a=o.getBucket(e);a&&o.latestFeatureIndex&&e.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,o.collisionBoxArray)}},_t.prototype.updateBucketOpacities=function(t,n,r){var i=this;t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();var o=t.layers[0].layout,a=new ht(null,0,!1,!1,!0),s=o.get("text-allow-overlap"),u=o.get("icon-allow-overlap"),l=o.get("text-variable-anchor"),c="map"===o.get("text-rotation-alignment"),p="map"===o.get("text-pitch-alignment"),f="none"!==o.get("icon-text-fit"),d=new ht(null,0,s&&(u||!t.hasIconData()||o.get("icon-optional")),u&&(s||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);for(var h=function(e,t,n){for(var r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(n)},m=function(r){var o=t.symbolInstances.get(r),s=o.numHorizontalGlyphVertices,u=o.numVerticalGlyphVertices,m=o.crossTileID,v=i.opacities[m];n[m]?v=a:v||(i.opacities[m]=v=d),n[m]=!0;var y=o.numIconVertices>0,g=i.placedOrientations[o.crossTileID],b=g===e.WritingMode.vertical,x=g===e.WritingMode.horizontal||g===e.WritingMode.horizontalOnly;if(s>0||u>0){var _=Tt(v.text);h(t.text,s,b?Pt:_),h(t.text,u,x?Pt:_);var w=v.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=w||b?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=w||x?1:0);var E=i.variableOffsets[o.crossTileID];E&&i.markUsedJustification(t,E.anchor,o,g);var D=i.placedOrientations[o.crossTileID];D&&(i.markUsedJustification(t,"left",o,D),i.markUsedOrientation(t,D,o))}if(y){var C=Tt(v.icon),O=!(f&&o.verticalPlacedIconSymbolIndex&&b);o.placedIconSymbolIndex>=0&&(h(t.icon,o.numIconVertices,O?C:Pt),t.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=v.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(h(t.icon,o.numVerticalIconVertices,O?Pt:C),t.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var S=t.collisionArrays[r];if(S){var k=new e.Point(0,0);if(S.textBox||S.verticalTextBox){var A=!0;if(l){var T=i.variableOffsets[m];T?(k=bt(T.anchor,T.width,T.height,T.textOffset,T.textBoxScale),c&&k._rotate(p?i.transform.angle:-i.transform.angle)):A=!1}S.textBox&&wt(t.textCollisionBox.collisionVertexArray,v.text.placed,!A||b,k.x,k.y),S.verticalTextBox&&wt(t.textCollisionBox.collisionVertexArray,v.text.placed,!A||x,k.x,k.y)}var P=Boolean(!x&&S.verticalIconBox);S.iconBox&&wt(t.iconCollisionBox.collisionVertexArray,v.icon.placed,P,f?k.x:0,f?k.y:0),S.verticalIconBox&&wt(t.iconCollisionBox.collisionVertexArray,v.icon.placed,!P,f?k.x:0,f?k.y:0)}}},v=0;v<t.symbolInstances.length;v++)m(v);if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){var y=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=y.invProjMatrix,t.placementViewportMatrix=y.viewportMatrix,t.collisionCircleArray=y.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}},_t.prototype.symbolFadeChange=function(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_t.prototype.zoomAdjustment=function(e){return Math.max(0,(this.transform.zoom-e)/1.5)},_t.prototype.hasTransitions=function(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration},_t.prototype.stillRecent=function(e,t){var n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e},_t.prototype.setStale=function(){this.stale=!0};var Et=Math.pow(2,25),Dt=Math.pow(2,24),Ct=Math.pow(2,17),Ot=Math.pow(2,16),St=Math.pow(2,9),kt=Math.pow(2,8),At=Math.pow(2,1);function Tt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Et+t*Dt+n*Ct+t*Ot+n*St+t*kt+n*At+t}var Pt=0,Mt=function(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={},this._bucketParts=[]};Mt.prototype.continuePlacement=function(e,t,n,r,i){for(var o=this._bucketParts;this._currentTileIndex<e.length;)if(t.getBucketParts(o,r,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((function(e,t){return e.sortKey-t.sortKey})));this._currentPartIndex<o.length;)if(t.placeLayerBucketPart(o[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,i())return!0;return!1};var jt=function(e,t,n,r,i,o,a){this.placement=new _t(e,i,o,a),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};jt.prototype.isDone=function(){return this._done},jt.prototype.continuePlacement=function(t,n,r){for(var i=this,o=e.browser.now(),a=function(){var t=e.browser.now()-o;return!i._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=n[t[this._currentPlacementIndex]],u=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=u)&&(!s.maxzoom||s.maxzoom>u)){if(this._inProgressLayer||(this._inProgressLayer=new Mt(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},jt.prototype.commit=function(e){return this.placement.commit(e),this.placement};var It=512/e.EXTENT/2,Ft=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<t.length;r++){var i=t.get(r),o=i.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,e)})}};Ft.prototype.getScaledCoordinates=function(t,n){var r=It/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*e.EXTENT+t.anchorX)*r),y:Math.floor((n.canonical.y*e.EXTENT+t.anchorY)*r)}},Ft.prototype.findMatches=function(e,t,n){for(var r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z),i=0;i<e.length;i++){var o=e.get(i);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,t),u=0,l=a;u<l.length;u+=1){var c=l[u];if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.y)<=r&&!n[c.crossTileID]){n[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var Rt=function(){this.maxCrossTileID=0};Rt.prototype.generate=function(){return++this.maxCrossTileID};var zt=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};zt.prototype.handleWrapJump=function(e){var t=Math.round((e-this.lng)/360);if(0!==t)for(var n in this.indexes){var r=this.indexes[n],i={};for(var o in r){var a=r[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),i[a.tileID.key]=a}this.indexes[n]=i}this.lng=e},zt.prototype.addBucket=function(e,t,n){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(var r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});var i=this.usedCrossTileIDs[e.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>e.overscaledZ)for(var s in a){var u=a[s];u.tileID.isChildOf(e)&&u.findMatches(t.symbolInstances,e,i)}else{var l=a[e.scaledTo(Number(o)).key];l&&l.findMatches(t.symbolInstances,e,i)}}for(var c=0;c<t.symbolInstances.length;c++){var p=t.symbolInstances.get(c);p.crossTileID||(p.crossTileID=n.generate(),i[p.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Ft(e,t.symbolInstances,t.bucketInstanceId),!0},zt.prototype.removeBucketCrossTileIDs=function(e,t){for(var n in t.indexedSymbolInstances)for(var r=0,i=t.indexedSymbolInstances[n];r<i.length;r+=1)delete this.usedCrossTileIDs[e][i[r].crossTileID]},zt.prototype.removeStaleBuckets=function(e){var t=!1;for(var n in this.indexes){var r=this.indexes[n];for(var i in r)e[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],t=!0)}return t};var Lt=function(){this.layerIndexes={},this.crossTileIDs=new Rt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Lt.prototype.addLayer=function(e,t,n){var r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new zt);var i=!1,o={};r.handleWrapJump(n);for(var a=0,s=t;a<s.length;a+=1){var u=s[a],l=u.getBucket(e);l&&e.id===l.layerIds[0]&&(l.bucketInstanceId||(l.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(u.tileID,l,this.crossTileIDs)&&(i=!0),o[l.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(i=!0),i},Lt.prototype.pruneUnusedLayers=function(e){var t={};for(var n in e.forEach((function(e){t[e]=!0})),this.layerIndexes)t[n]||delete this.layerIndexes[n]};var Bt=function(t,n){return e.emitValidationErrors(t,n&&n.filter((function(e){return"source.canvas"!==e.identifier})))},Nt=e.pick(Ve,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Vt=e.pick(Ve,["setCenter","setZoom","setBearing","setPitch"]),Ut=function(){var t={},n=e.styleSpec.$version;for(var r in e.styleSpec.$root){var i,o=e.styleSpec.$root[r];o.required&&null!=(i="version"===r?n:"array"===o.type?[]:{})&&(t[r]=i)}return t}(),Ht=function(t){function n(r,i){var o=this;void 0===i&&(i={}),t.call(this),this.map=r,this.dispatcher=new D(Le(),this),this.imageManager=new f,this.imageManager.setEventedParent(this),this.glyphManager=new b(r._requestManager,i.localIdeographFontFamily),this.lineAtlas=new E(256,512),this.crossTileSymbolIndex=new Lt,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());var a=this;this._rtlTextPluginCallback=n.registerForPluginStateChange((function(t){a.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(function(t,n){if(e.triggerPluginCompletionEvent(t),n&&n.every((function(e){return e})))for(var r in a.sourceCaches)a.sourceCaches[r].reload()}))})),this.on("data",(function(e){if("source"===e.dataType&&"metadata"===e.sourceDataType){var t=o.sourceCaches[e.sourceId];if(t){var n=t.getSource();if(n&&n.vectorLayerIds)for(var r in o._layers){var i=o._layers[r];i.source===n.id&&o._validateLayer(i)}}}}))}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.loadURL=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"}));var i="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);var o=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(o,(function(t,n){r._request=null,t?r.fire(new e.ErrorEvent(t)):n&&r._load(n,i)}))},n.prototype.loadJSON=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.browser.frame((function(){r._request=null,r._load(t,!1!==n.validate)}))},n.prototype.loadEmpty=function(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Ut,!1)},n.prototype._load=function(t,n){if(!n||!Bt(this,e.validateStyle(t))){for(var r in this._loaded=!0,this.stylesheet=t,t.sources)this.addSource(r,t.sources[r],{validate:!1});t.sprite?this._loadSprite(t.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);var i=Ne(this.stylesheet.layers);this._order=i.map((function(e){return e.id})),this._layers={},this._serializedLayers={};for(var o=0,a=i;o<a.length;o+=1){var s=a[o];(s=e.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}},n.prototype._loadSprite=function(t){var n=this;this._spriteRequest=function(t,n,r){var i,o,a,s=e.browser.devicePixelRatio>1?"@2x":"",u=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(function(e,t){u=null,a||(a=e,i=t,c())})),l=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(function(e,t){l=null,a||(a=e,o=t,c())}));function c(){if(a)r(a);else if(i&&o){var t=e.browser.getImageData(o),n={};for(var s in i){var u=i[s],l=u.width,c=u.height,p=u.x,f=u.y,d=u.sdf,h=u.pixelRatio,m=u.stretchX,v=u.stretchY,y=u.content,g=new e.RGBAImage({width:l,height:c});e.RGBAImage.copy(t,g,{x:p,y:f},{x:0,y:0},{width:l,height:c}),n[s]={data:g,pixelRatio:h,sdf:d,stretchX:m,stretchY:v,content:y}}r(null,n)}}return{cancel:function(){u&&(u.cancel(),u=null),l&&(l.cancel(),l=null)}}}(t,this.map._requestManager,(function(t,r){if(n._spriteRequest=null,t)n.fire(new e.ErrorEvent(t));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new e.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(t){var n=this.sourceCaches[t.source];if(n){var r=t.sourceLayer;if(r){var i=n.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+i.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var i=this._layers[r[n]];"custom"!==i.type&&t.push(i.serialize())}return t},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(var t in this._layers)if(this._layers[t].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(t){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var o in(r.length||i.length)&&this._updateWorkerLayers(r,i),this._updatedSources){var a=this._updatedSources[o];"reload"===a?this._reloadSource(o):"clear"===a&&this._clearSource(o)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}var u={};for(var l in this.sourceCaches){var c=this.sourceCaches[l];u[l]=c.used,c.used=!1}for(var p=0,f=this._order;p<f.length;p+=1){var d=this._layers[f[p]];d.recalculate(t,this._availableImages),!d.isHidden(t.zoom)&&d.source&&(this.sourceCaches[d.source].used=!0)}for(var h in u){var m=this.sourceCaches[h];u[h]!==m.used&&m.fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:h}))}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new e.Event("data",{dataType:"style"}))}},n.prototype._updateTilesForChangedImages=function(){var e=Object.keys(this._changedImages);if(e.length){for(var t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}},n.prototype._updateWorkerLayers=function(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},n.prototype.setState=function(t){var n=this;if(this._checkLoaded(),Bt(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=Ne(t.layers);var r=function(t,n){if(!t)return[{command:Ve.setStyle,args:[n]}];var r=[];try{if(!e.deepEqual(t.version,n.version))return[{command:Ve.setStyle,args:[n]}];e.deepEqual(t.center,n.center)||r.push({command:Ve.setCenter,args:[n.center]}),e.deepEqual(t.zoom,n.zoom)||r.push({command:Ve.setZoom,args:[n.zoom]}),e.deepEqual(t.bearing,n.bearing)||r.push({command:Ve.setBearing,args:[n.bearing]}),e.deepEqual(t.pitch,n.pitch)||r.push({command:Ve.setPitch,args:[n.pitch]}),e.deepEqual(t.sprite,n.sprite)||r.push({command:Ve.setSprite,args:[n.sprite]}),e.deepEqual(t.glyphs,n.glyphs)||r.push({command:Ve.setGlyphs,args:[n.glyphs]}),e.deepEqual(t.transition,n.transition)||r.push({command:Ve.setTransition,args:[n.transition]}),e.deepEqual(t.light,n.light)||r.push({command:Ve.setLight,args:[n.light]});var i={},o=[];!function(t,n,r,i){var o;for(o in n=n||{},t=t||{})t.hasOwnProperty(o)&&(n.hasOwnProperty(o)||He(o,r,i));for(o in n)n.hasOwnProperty(o)&&(t.hasOwnProperty(o)?e.deepEqual(t[o],n[o])||("geojson"===t[o].type&&"geojson"===n[o].type&&Ge(t,n,o)?r.push({command:Ve.setGeoJSONSourceData,args:[o,n[o].data]}):We(o,n,r,i)):Ue(o,n,r))}(t.sources,n.sources,o,i);var a=[];t.layers&&t.layers.forEach((function(e){i[e.source]?r.push({command:Ve.removeLayer,args:[e.id]}):a.push(e)})),r=r.concat(o),function(t,n,r){n=n||[];var i,o,a,s,u,l,c,p=(t=t||[]).map(Ye),f=n.map(Ye),d=t.reduce(Ze,{}),h=n.reduce(Ze,{}),m=p.slice(),v=Object.create(null);for(i=0,o=0;i<p.length;i++)h.hasOwnProperty(a=p[i])?o++:(r.push({command:Ve.removeLayer,args:[a]}),m.splice(m.indexOf(a,o),1));for(i=0,o=0;i<f.length;i++)m[m.length-1-i]!==(a=f[f.length-1-i])&&(d.hasOwnProperty(a)?(r.push({command:Ve.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-o),1)):o++,r.push({command:Ve.addLayer,args:[h[a],l=m[m.length-i]]}),m.splice(m.length-i,0,a),v[a]=!0);for(i=0;i<f.length;i++)if(s=d[a=f[i]],u=h[a],!v[a]&&!e.deepEqual(s,u))if(e.deepEqual(s.source,u.source)&&e.deepEqual(s["source-layer"],u["source-layer"])&&e.deepEqual(s.type,u.type)){for(c in qe(s.layout,u.layout,r,a,null,Ve.setLayoutProperty),qe(s.paint,u.paint,r,a,null,Ve.setPaintProperty),e.deepEqual(s.filter,u.filter)||r.push({command:Ve.setFilter,args:[a,u.filter]}),e.deepEqual(s.minzoom,u.minzoom)&&e.deepEqual(s.maxzoom,u.maxzoom)||r.push({command:Ve.setLayerZoomRange,args:[a,u.minzoom,u.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?qe(s[c],u[c],r,a,c.slice(6),Ve.setPaintProperty):e.deepEqual(s[c],u[c])||r.push({command:Ve.setLayerProperty,args:[a,c,u[c]]}));for(c in u)u.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?qe(s[c],u[c],r,a,c.slice(6),Ve.setPaintProperty):e.deepEqual(s[c],u[c])||r.push({command:Ve.setLayerProperty,args:[a,c,u[c]]}))}else r.push({command:Ve.removeLayer,args:[a]}),l=m[m.lastIndexOf(a)+1],r.push({command:Ve.addLayer,args:[u,l]})}(a,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Ve.setStyle,args:[n]}]}return r}(this.serialize(),t).filter((function(e){return!(e.command in Vt)}));if(0===r.length)return!1;var i=r.filter((function(e){return!(e.command in Nt)}));if(i.length>0)throw new Error("Unimplemented: "+i.map((function(e){return e.command})).join(", ")+".");return r.forEach((function(e){"setTransition"!==e.command&&n[e.command].apply(n,e.args)})),this.stylesheet=t,!0},n.prototype.addImage=function(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,n),this._afterImageUpdated(t)},n.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},n.prototype.getImage=function(e){return this.imageManager.getImage(e)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._afterImageUpdated(t)},n.prototype._afterImageUpdated=function(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,n,r){var i=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateStyle.source,"sources."+t,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var o=this.sourceCaches[t]=new Te(t,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:o.serialize(),sourceId:t}})),o.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},n.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},n.prototype.addLayer=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var i=t.id;if(this.getLayer(i))this.fire(new e.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var o;if("custom"===t.type){if(Bt(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateStyle.layer,"layers."+i,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o,this._removedLayers[i]&&o.source&&"custom"!==o.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},n.prototype.moveLayer=function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(i,0,t),this._layerOrderChanged=!0)}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(e){return this._layers[e]},n.prototype.hasLayer=function(e){return e in this._layers},n.prototype.setLayerZoomRange=function(t,n,r){this._checkLoaded();var i=this.getLayer(t);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var i=this.getLayer(t);if(i){if(!e.deepEqual(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(e.validateStyle.filter,"layers."+i.id+".filter",n,null,r)||(i.filter=e.clone$1(n),this._updateLayer(i)))}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,i),this._updateLayer(o)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,i)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},n.prototype.setFeatureState=function(t,n){this._checkLoaded();var r=t.source,i=t.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var a=o.getSource().type;"geojson"===a&&i?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||i?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(i,t.id,n)):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type,a="vector"===o?t.sourceLayer:void 0;"vector"!==o||a?n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(a,t.id,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,i=this.sourceCaches[n];if(void 0!==i){if("vector"!==i.getSource().type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,(function(e){return e.serialize()})),layers:this._serializeLayers(this._order)},(function(e){return void 0!==e}))},n.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},i=[],o=this._order.length-1;o>=0;o--){var a=this._order[o];if(n(a)){r[a]=o;for(var s=0,u=e;s<u.length;s+=1){var l=u[s][a];if(l)for(var c=0,p=l;c<p.length;c+=1)i.push(p[c])}}}i.sort((function(e,t){return t.intersectionZ-e.intersectionZ}));for(var f=[],d=this._order.length-1;d>=0;d--){var h=this._order[d];if(n(h))for(var m=i.length-1;m>=0;m--){var v=i[m].feature;if(r[v.layer.id]<d)break;f.push(v),i.pop()}else for(var y=0,g=e;y<g.length;y+=1){var b=g[y][h];if(b)for(var x=0,_=b;x<_.length;x+=1)f.push(_[x].feature)}}return f},n.prototype.queryRenderedFeatures=function(t,n,r){n&&n.filter&&this._validate(e.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var i={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var o=0,a=n.layers;o<a.length;o+=1){var s=a[o],u=this._layers[s];if(!u)return this.fire(new e.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];i[u.source]=!0}}var l=[];for(var c in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!i[c]||l.push(z(this.sourceCaches[c],this._layers,this._serializedLayers,t,n,r));return this.placement&&l.push(function(e,t,n,r,i,o,a){for(var s={},u=o.queryRenderedSymbols(r),l=[],c=0,p=Object.keys(u).map(Number);c<p.length;c+=1)l.push(a[p[c]]);l.sort(L);for(var f=function(){var n=h[d],r=n.featureIndex.lookupSymbolFeatures(u[n.bucketInstanceId],t,n.bucketIndex,n.sourceLayerIndex,i.filter,i.layers,i.availableImages,e);for(var o in r){var a=s[o]=s[o]||[],l=r[o];l.sort((function(e,t){var r=n.featureSortOrder;if(r){var i=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex}));for(var c=0,p=l;c<p.length;c+=1)a.push(p[c])}},d=0,h=l;d<h.length;d+=1)f();var m=function(t){s[t].forEach((function(r){var i=r.feature,o=n[e[t].source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o}))};for(var v in s)m(v);return s}(this._layers,this._serializedLayers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(l)},n.prototype.querySourceFeatures=function(t,n){n&&n.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[t];return r?function(e,t){for(var n=e.getRenderableIds().map((function(t){return e.getTileByID(t)})),r=[],i={},o=0;o<n.length;o++){var a=n[o],s=a.tileID.canonical.key;i[s]||(i[s]=!0,a.querySourceFeatures(r,t))}return r}(r,n):[]},n.prototype.addSourceType=function(e,t,r){return n.getSourceType(e)?r(new Error('A source type called "'+e+'" already exists.')):(n.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(t,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),i=!1;for(var o in t)if(!e.deepEqual(t[o],r[o])){i=!0;break}if(i){var a={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(a)}},n.prototype._validate=function(t,n,r,i,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&Bt(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.styleSpec},i)))},n.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var n in this.sourceCaches)this.sourceCaches[n].clearTiles(),this.sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(e){this.sourceCaches[e].clearTiles()},n.prototype._reloadSource=function(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()},n.prototype._updateSources=function(e){for(var t in this.sourceCaches)this.sourceCaches[t].update(e)},n.prototype._generateCollisionBoxes=function(){for(var e in this.sourceCaches)this._reloadSource(e)},n.prototype._updatePlacement=function(t,n,r,i,o){void 0===o&&(o=!1);for(var a=!1,s=!1,u={},l=0,c=this._order;l<c.length;l+=1){var p=this._layers[c[l]];if("symbol"===p.type){if(!u[p.source]){var f=this.sourceCaches[p.source];u[p.source]=f.getRenderableIds(!0).map((function(e){return f.getTileByID(e)})).sort((function(e,t){return t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(p,u[p.source],t.center.lng);a=a||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((o=o||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.browser.now(),t.zoom))&&(this.pauseablePlacement=new jt(t,this._order,o,n,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,u),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),s=!0),a&&this.pauseablePlacement.placement.setStale()),s||a)for(var h=0,m=this._order;h<m.length;h+=1){var v=this._layers[m[h]];"symbol"===v.type&&this.placement.updateLayerOpacities(v,u[v.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()},n.prototype.getImages=function(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();var r=this.sourceCaches[t.source];r&&r.setDependencies(t.tileID.key,t.type,t.icons)},n.prototype.getGlyphs=function(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)},n.prototype.getResource=function(t,n,r){return e.makeRequest(n,r)},n}(e.Evented);Ht.getSourceType=function(e){return F[e]},Ht.setSourceType=function(e,t){F[e]=t},Ht.registerForPluginStateChange=e.registerForPluginStateChange;var Wt=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),Gt=gn("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\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(unpack_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);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),qt=gn("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Yt=gn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Zt=gn("varying vec3 v_data;\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\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\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(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\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\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),$t=gn("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);}"),Kt=gn("uniform 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 OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying 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;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Xt=gn("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\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Jt=gn("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;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_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Qt=gn("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;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;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-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(0.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);}"),en=gn("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);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),tn=gn("#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_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute 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);}"),nn=gn("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\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute 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;}"),rn=gn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),on=gn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),an=gn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform 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;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),sn=gn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;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 vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),un=gn("#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,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);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((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","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;}"),ln=gn("uniform 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;\n#define PI 3.141592653589793\nvoid 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 OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform 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;}"),cn=gn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\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);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;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 float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\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;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_width2=vec2(outset,inset);}"),pn=gn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\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);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\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\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\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;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_width2=vec2(outset,inset);}"),fn=gn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;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_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.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_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;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_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\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_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\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;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),dn=gn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\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);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\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;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;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_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float 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;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),hn=gn("uniform 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;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(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);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),mn=gn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform 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 highp float u_pitch;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;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];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;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.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(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp 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);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),vn=gn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying 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\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\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;if (u_is_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);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform 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 highp float u_pitch;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;varying 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\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\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];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;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.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(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp 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);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;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(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),yn=gn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying 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\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\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_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;if (u_is_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);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform 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 highp float u_pitch;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 vec2 u_texsize_icon;varying 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\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\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.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[2];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;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.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(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp 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);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;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(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function gn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),i=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(i):i,s={};return{fragmentSource:e=e.replace(n,(function(e,t,n,r,i){return s[i]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),vertexSource:t=t.replace(n,(function(e,t,n,r,i){var o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var bn=Object.freeze({__proto__:null,prelude:Gt,background:qt,backgroundPattern:Yt,circle:Zt,clippingMask:$t,heatmap:Kt,heatmapTexture:Xt,collisionBox:Jt,collisionCircle:Qt,debug:en,fill:tn,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:un,hillshade:ln,line:cn,lineGradient:pn,linePattern:fn,lineSDF:dn,raster:hn,symbolIcon:mn,symbolSDF:vn,symbolTextAndIcon:yn}),xn=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function _n(e){for(var t=[],n=0;n<e.length;n++)if(null!==e[n]){var r=e[n].split(" ");t.push(r.pop())}return t}xn.prototype.bind=function(e,t,n,r,i,o,a,s){this.context=e;for(var u=this.boundPaintVertexBuffers.length!==r.length,l=0;!u&&l<r.length;l++)this.boundPaintVertexBuffers[l]!==r[l]&&(u=!0);e.extVertexArrayObject&&this.vao&&this.boundProgram===t&&this.boundLayoutVertexBuffer===n&&!u&&this.boundIndexBuffer===i&&this.boundVertexOffset===o&&this.boundDynamicVertexBuffer===a&&this.boundDynamicVertexBuffer2===s?(e.bindVertexArrayOES.set(this.vao),a&&a.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind()):this.freshBind(t,n,r,i,o,a,s)},xn.prototype.freshBind=function(e,t,n,r,i,o,a){var s,u=e.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=l.currentNumAttributes||0;for(var p=u;p<s;p++)c.disableVertexAttribArray(p)}t.enableAttributes(c,e);for(var f=0,d=n;f<d.length;f+=1)d[f].enableAttributes(c,e);o&&o.enableAttributes(c,e),a&&a.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,i);for(var h=0,m=n;h<m.length;h+=1){var v=m[h];v.bind(),v.setVertexAttribPointers(c,e,i)}o&&(o.bind(),o.setVertexAttribPointers(c,e,i)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,e,i)),l.currentNumAttributes=u},xn.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var wn=function(e,t,n,r,i,o){var a=e.gl;this.program=a.createProgram();for(var s=_n(n.staticAttributes),u=r?r.getBinderAttributes():[],l=s.concat(u),c=n.staticUniforms?_n(n.staticUniforms):[],p=r?r.getBinderUniforms():[],f=[],d=0,h=c.concat(p);d<h.length;d+=1){var m=h[d];f.indexOf(m)<0&&f.push(m)}var v=r?r.defines():[];o&&v.push("#define OVERDRAW_INSPECTOR;");var y=v.concat(Gt.fragmentSource,n.fragmentSource).join("\n"),g=v.concat(Gt.vertexSource,n.vertexSource).join("\n"),b=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(b,y),a.compileShader(b),a.attachShader(this.program,b);var x=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(x,g),a.compileShader(x),a.attachShader(this.program,x),this.attributes={};var _={};this.numAttributes=l.length;for(var w=0;w<this.numAttributes;w++)l[w]&&(a.bindAttribLocation(this.program,w,l[w]),this.attributes[l[w]]=w);a.linkProgram(this.program),a.deleteShader(x),a.deleteShader(b);for(var E=0;E<f.length;E++){var D=f[E];if(D&&!_[D]){var C=a.getUniformLocation(this.program,D);C&&(_[D]=C)}}this.fixedUniforms=i(e,_),this.binderUniforms=r?r.getUniforms(e,_):[]}}};function En(e,t,n){var r=1/ft(n,1,t.transform.tileZoom),i=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,t.transform.tileZoom)/i,a=o*(n.tileID.canonical.x+n.tileID.wrap*i),s=o*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[a>>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}wn.prototype.draw=function(e,t,n,r,i,o,a,s,u,l,c,p,f,d,h,m){var v,y=e.gl;if(!this.failedToCreate){for(var g in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(o),this.fixedUniforms)this.fixedUniforms[g].set(a[g]);d&&d.setUniforms(e,this.binderUniforms,p,{zoom:f});for(var b=(v={},v[y.LINES]=2,v[y.TRIANGLES]=3,v[y.LINE_STRIP]=1,v)[t],x=0,_=c.get();x<_.length;x+=1){var w=_[x],E=w.vaos||(w.vaos={});(E[s]||(E[s]=new xn)).bind(e,this,u,d?d.getPaintVertexBuffers():[],l,w.vertexOffset,h,m),y.drawElements(t,w.primitiveLength*b,y.UNSIGNED_SHORT,w.primitiveOffset*b*2)}}};var Dn=function(t,n,r,i){var o=n.style.light,a=o.properties.get("position"),s=[a.x,a.y,a.z],u=e.create$1();"viewport"===o.properties.get("anchor")&&e.fromRotation(u,-n.transform.angle),e.transformMat3(s,s,u);var l=o.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+r,u_opacity:i}},Cn=function(t,n,r,i,o,a,s){return e.extend(Dn(t,n,r,i),En(a,n,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8})},On=function(e){return{u_matrix:e}},Sn=function(t,n,r,i){return e.extend(On(t),En(r,n,i))},kn=function(e,t){return{u_matrix:e,u_world:t}},An=function(t,n,r,i,o){return e.extend(Sn(t,n,r,i),{u_world:o})},Tn=function(t,n,r,i){var o,a,s=t.transform;if("map"===i.paint.get("circle-pitch-alignment")){var u=ft(r,1,s.zoom);o=!0,a=[u,u]}else o=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:a}},Pn=function(e,t,n){var r=ft(n,1,t.zoom),i=Math.pow(2,t.zoom-n.tileID.overscaledZ),o=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*i),t.pixelsToGLUnits[1]/(r*i)],u_overscale_factor:o}},Mn=function(e,t,n){return{u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}},jn=function(e,t,n){return void 0===n&&(n=1),{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}},In=function(e){return{u_matrix:e}},Fn=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:ft(t,1,n),u_intensity:r}},Rn=function(t,n,r){var i=t.transform;return{u_matrix:Vn(t,n,r),u_ratio:1/ft(n,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},zn=function(t,n,r,i){return e.extend(Rn(t,n,r),{u_image:0,u_image_height:i})},Ln=function(t,n,r,i){var o=t.transform,a=Nn(n,o);return{u_matrix:Vn(t,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/ft(n,1,o.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[a,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Bn=function(t,n,r,i,o){var a=t.lineAtlas,s=Nn(n,t.transform),u="round"===r.layout.get("line-cap"),l=a.getDash(i.from,u),c=a.getDash(i.to,u),p=l.width*o.fromScale,f=c.width*o.toScale;return e.extend(Rn(t,n,r),{u_patternscale_a:[s/p,-l.height/2],u_patternscale_b:[s/f,-c.height/2],u_sdfgamma:a.width/(256*Math.min(p,f)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:l.y,u_tex_y_b:c.y,u_mix:o.t})};function Nn(e,t){return 1/ft(e,1,t.tileZoom)}function Vn(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Un=function(e,t,n,r,i){return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(a=i.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Hn(i.paint.get("raster-hue-rotate"))};var o,a};function Hn(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}var Wn,Gn=function(e,t,n,r,i,o,a,s,u,l){var c=i.transform;return{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:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+u,u_pitch_with_map:+r,u_texsize:l,u_texture:0}},qn=function(t,n,r,i,o,a,s,u,l,c,p){var f=o.transform;return e.extend(Gn(t,n,r,i,o,a,s,u,l,c),{u_gamma_scale:i?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+p})},Yn=function(t,n,r,i,o,a,s,u,l,c){return e.extend(qn(t,n,r,i,o,a,s,u,!0,l,!0),{u_texsize_icon:c,u_texture_icon:1})},Zn=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},$n=function(t,n,r,i,o,a){return e.extend(function(e,t,n,r){var i=n.imageManager.getPattern(e.from.toString()),o=n.imageManager.getPattern(e.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,u=a.height,l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/l,p=c*(r.tileID.canonical.x+r.tileID.wrap*l),f=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,u],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/ft(r,1,n.transform.tileZoom),u_pixel_coord_upper:[p>>16,f>>16],u_pixel_coord_lower:[65535&p,65535&f]}}(i,a,r,o),{u_matrix:t,u_opacity:n})},Kn={fillExtrusion:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fillExtrusionPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fill:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},fillPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},fillOutline:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}},fillOutlinePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},circle:function(t,n){return{u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},collisionBox:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}},collisionCircle:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,n.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,n.u_viewport_size)}},debug:function(t,n){return{u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_overlay:new e.Uniform1i(t,n.u_overlay),u_overlay_scale:new e.Uniform1f(t,n.u_overlay_scale)}},clippingMask:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmap:function(t,n){return{u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmapTexture:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}},hillshade:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}},hillshadePrepare:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}},line:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}},lineGradient:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image),u_image_height:new e.Uniform1f(t,n.u_image_height)}},linePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},lineSDF:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}},raster:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}},symbolIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}},symbolSDF:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},symbolTextAndIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texsize_icon:new e.Uniform2f(t,n.u_texsize_icon),u_texture:new e.Uniform1i(t,n.u_texture),u_texture_icon:new e.Uniform1i(t,n.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},background:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}},backgroundPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}}};function Xn(t,n,r,i,o,a,s){for(var u=t.context,l=u.gl,c=t.useProgram("collisionBox"),p=[],f=0,d=0,h=0;h<i.length;h++){var m=i[h],v=n.getTile(m),y=v.getBucket(r);if(y){var g=m.posMatrix;0===o[0]&&0===o[1]||(g=t.translatePosMatrix(m.posMatrix,v,o,a));var b=s?y.textCollisionBox:y.iconCollisionBox,x=y.collisionCircleArray;if(x.length>0){var _=e.create(),w=g;e.mul(_,y.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(_,_,y.placementViewportMatrix),p.push({circleArray:x,circleOffset:d,transform:w,invTransform:_}),d=f+=x.length/4}b&&c.draw(u,l.LINES,Ce.disabled,Oe.disabled,t.colorModeForRenderPass(),ke.disabled,Pn(g,t.transform,v),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,t.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&p.length){var E=t.useProgram("collisionCircle"),D=new e.StructArrayLayout2f1f2i16;D.resize(4*f),D._trim();for(var C=0,O=0,S=p;O<S.length;O+=1)for(var k=S[O],A=0;A<k.circleArray.length/4;A++){var T=4*A,P=k.circleArray[T+0],M=k.circleArray[T+1],j=k.circleArray[T+2],I=k.circleArray[T+3];D.emplace(C++,P,M,j,I,0),D.emplace(C++,P,M,j,I,1),D.emplace(C++,P,M,j,I,2),D.emplace(C++,P,M,j,I,3)}(!Wn||Wn.length<2*f)&&(Wn=function(t){var n=2*t,r=new e.StructArrayLayout3ui6;r.resize(n),r._trim();for(var i=0;i<n;i++){var o=6*i;r.uint16[o+0]=4*i+0,r.uint16[o+1]=4*i+1,r.uint16[o+2]=4*i+2,r.uint16[o+3]=4*i+2,r.uint16[o+4]=4*i+3,r.uint16[o+5]=4*i+0}return r}(f));for(var F=u.createIndexBuffer(Wn,!0),R=u.createVertexBuffer(D,e.collisionCircleLayout.members,!0),z=0,L=p;z<L.length;z+=1){var B=L[z],N=Mn(B.transform,B.invTransform,t.transform);E.draw(u,l.TRIANGLES,Ce.disabled,Oe.disabled,t.colorModeForRenderPass(),ke.disabled,N,r.id,R,F,e.SegmentVector.simpleSegment(0,2*B.circleOffset,B.circleArray.length,B.circleArray.length/2),null,t.transform.zoom,null,null,null)}R.destroy(),F.destroy()}}var Jn=e.identity(new Float32Array(16));function Qn(t,n,r,i,o,a){var s=e.getAnchorAlignment(t),u=-(s.horizontalAlign-.5)*n,l=-(s.verticalAlign-.5)*r,c=e.evaluateVariableOffset(t,i);return new e.Point((u/o+c[0])*a,(l/o+c[1])*a)}function er(t,n,r,i,o,a,s,u,l,c,p){var f=t.text.placedSymbolArray,d=t.text.dynamicLayoutVertexArray,h=t.icon.dynamicLayoutVertexArray,m={};d.clear();for(var v=0;v<f.length;v++){var y=f.get(v),g=y.hidden||!y.crossTileID||t.allowVerticalPlacement&&!y.placedOrientation?null:i[y.crossTileID];if(g){var b=new e.Point(y.anchorX,y.anchorY),x=Qe(b,r?u:s),_=et(a.cameraToCenterDistance,x.signedDistanceFromCamera),w=o.evaluateSizeForFeature(t.textSizeData,c,y)*_/e.ONE_EM;r&&(w*=t.tilePixelRatio/l);for(var E=Qn(g.anchor,g.width,g.height,g.textOffset,g.textBoxScale,w),D=r?Qe(b.add(E),s).point:x.point.add(n?E.rotate(-a.angle):E),C=t.allowVerticalPlacement&&y.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,O=0;O<y.numGlyphs;O++)e.addDynamicAttributes(d,D,C);p&&y.associatedIconIndex>=0&&(m[y.associatedIconIndex]={shiftedAnchor:D,angle:C})}else lt(y.numGlyphs,d)}if(p){h.clear();for(var S=t.icon.placedSymbolArray,k=0;k<S.length;k++){var A=S.get(k);if(A.hidden)lt(A.numGlyphs,h);else{var T=m[k];if(T)for(var P=0;P<A.numGlyphs;P++)e.addDynamicAttributes(h,T.shiftedAnchor,T.angle);else lt(A.numGlyphs,h)}}t.icon.dynamicLayoutVertexBuffer.updateData(h)}t.text.dynamicLayoutVertexBuffer.updateData(d)}function tr(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function nr(t,n,r,i,o,a,s,u,l,c,p,f){for(var d=t.context,h=d.gl,m=t.transform,v="map"===u,y="map"===l,g=v&&"point"!==r.layout.get("symbol-placement"),b=v&&!y&&!g,x=void 0!==r.layout.get("symbol-sort-key").constantOr(1),_=!1,w=t.depthModeForSublayer(0,Ce.ReadOnly),E=r.layout.get("text-variable-anchor"),D=[],C=0,O=i;C<O.length;C+=1){var S=O[C],k=n.getTile(S),A=k.getBucket(r);if(A){var T=o?A.text:A.icon;if(T&&T.segments.get().length){var P=T.programConfigurations.get(r.id),M=o||A.sdfIcons,j=o?A.textSizeData:A.iconSizeData,I=y||0!==m.pitch,F=t.useProgram(tr(M,o,A),P),R=e.evaluateSizeForZoom(j,m.zoom),z=void 0,L=[0,0],B=void 0,N=void 0,V=null,U=void 0;if(o)B=k.glyphAtlasTexture,N=h.LINEAR,z=k.glyphAtlasTexture.size,A.iconsInText&&(L=k.imageAtlasTexture.size,V=k.imageAtlasTexture,U=I||t.options.rotating||t.options.zooming||"composite"===j.kind||"camera"===j.kind?h.LINEAR:h.NEAREST);else{var H=1!==r.layout.get("icon-size").constantOr(0)||A.iconsNeedLinear;B=k.imageAtlasTexture,N=M||t.options.rotating||t.options.zooming||H||I?h.LINEAR:h.NEAREST,z=k.imageAtlasTexture.size}var W=ft(k,1,t.transform.zoom),G=Xe(S.posMatrix,y,v,t.transform,W),q=Je(S.posMatrix,y,v,t.transform,W),Y=E&&A.hasTextData(),Z="none"!==r.layout.get("icon-text-fit")&&Y&&A.hasIconData();g&&nt(A,S.posMatrix,t,o,G,q,y,c);var $=t.translatePosMatrix(S.posMatrix,k,a,s),K=g||o&&E||Z?Jn:G,X=t.translatePosMatrix(q,k,a,s,!0),J=M&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),Q={program:F,buffers:T,uniformValues:M?A.iconsInText?Yn(j.kind,R,b,y,t,$,K,X,z,L):qn(j.kind,R,b,y,t,$,K,X,o,z,!0):Gn(j.kind,R,b,y,t,$,K,X,o,z),atlasTexture:B,atlasTextureIcon:V,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:M,hasHalo:J};if(x&&A.canOverlap){_=!0;for(var ee=0,te=T.segments.get();ee<te.length;ee+=1){var ne=te[ee];D.push({segments:new e.SegmentVector([ne]),sortKey:ne.sortKey,state:Q})}}else D.push({segments:T.segments,sortKey:0,state:Q})}}}_&&D.sort((function(e,t){return e.sortKey-t.sortKey}));for(var re=0,ie=D;re<ie.length;re+=1){var oe=ie[re],ae=oe.state;if(d.activeTexture.set(h.TEXTURE0),ae.atlasTexture.bind(ae.atlasInterpolation,h.CLAMP_TO_EDGE),ae.atlasTextureIcon&&(d.activeTexture.set(h.TEXTURE1),ae.atlasTextureIcon&&ae.atlasTextureIcon.bind(ae.atlasInterpolationIcon,h.CLAMP_TO_EDGE)),ae.isSDF){var se=ae.uniformValues;ae.hasHalo&&(se.u_is_halo=1,rr(ae.buffers,oe.segments,r,t,ae.program,w,p,f,se)),se.u_is_halo=0}rr(ae.buffers,oe.segments,r,t,ae.program,w,p,f,ae.uniformValues)}}function rr(e,t,n,r,i,o,a,s,u){var l=r.context;i.draw(l,l.gl.TRIANGLES,o,a,s,ke.disabled,u,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function ir(e,t,n,r,i,o,a){var s,u,l,c,p,f=e.context.gl,d=n.paint.get("fill-pattern"),h=d&&d.constantOr(1),m=n.getCrossfadeParameters();a?(u=h&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=f.LINES):(u=h?"fillPattern":"fill",s=f.TRIANGLES);for(var v=0,y=r;v<y.length;v+=1){var g=y[v],b=t.getTile(g);if(!h||b.patternsLoaded()){var x=b.getBucket(n);if(x){var _=x.programConfigurations.get(n.id),w=e.useProgram(u,_);h&&(e.context.activeTexture.set(f.TEXTURE0),b.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),_.updatePaintBuffers(m));var E=d.constantOr(null);if(E&&b.imageAtlas){var D=b.imageAtlas,C=D.patternPositions[E.to.toString()],O=D.patternPositions[E.from.toString()];C&&O&&_.setConstantPatternPositions(C,O)}var S=e.translatePosMatrix(g.posMatrix,b,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){c=x.indexBuffer2,p=x.segments2;var k=[f.drawingBufferWidth,f.drawingBufferHeight];l="fillOutlinePattern"===u&&h?An(S,e,m,b,k):kn(S,k)}else c=x.indexBuffer,p=x.segments,l=h?Sn(S,e,m,b):On(S);w.draw(e.context,s,i,e.stencilModeForClipping(g),o,ke.disabled,l,n.id,x.layoutVertexBuffer,c,p,n.paint,e.transform.zoom,_)}}}}function or(e,t,n,r,i,o,a){for(var s=e.context,u=s.gl,l=n.paint.get("fill-extrusion-pattern"),c=l.constantOr(1),p=n.getCrossfadeParameters(),f=n.paint.get("fill-extrusion-opacity"),d=0,h=r;d<h.length;d+=1){var m=h[d],v=t.getTile(m),y=v.getBucket(n);if(y){var g=y.programConfigurations.get(n.id),b=e.useProgram(c?"fillExtrusionPattern":"fillExtrusion",g);c&&(e.context.activeTexture.set(u.TEXTURE0),v.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),g.updatePaintBuffers(p));var x=l.constantOr(null);if(x&&v.imageAtlas){var _=v.imageAtlas,w=_.patternPositions[x.to.toString()],E=_.patternPositions[x.from.toString()];w&&E&&g.setConstantPatternPositions(w,E)}var D=e.translatePosMatrix(m.posMatrix,v,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),C=n.paint.get("fill-extrusion-vertical-gradient"),O=c?Cn(D,e,C,f,m,p,v):Dn(D,e,C,f);b.draw(s,s.gl.TRIANGLES,i,o,a,ke.backCCW,O,n.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,n.paint,e.transform.zoom,g)}}}function ar(t,n,r,i,o,a){var s=t.context,u=s.gl,l=n.fbo;if(l){var c=t.useProgram("hillshade");s.activeTexture.set(u.TEXTURE0),u.bindTexture(u.TEXTURE_2D,l.colorAttachment.get());var p=function(t,n,r){var i=r.paint.get("hillshade-shadow-color"),o=r.paint.get("hillshade-highlight-color"),a=r.paint.get("hillshade-accent-color"),s=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(s-=t.transform.angle);var u,l,c,p=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(n.tileID.toUnwrapped(),p),u_image:0,u_latrange:(u=n.tileID,l=Math.pow(2,u.canonical.z),c=u.canonical.y,[new e.MercatorCoordinate(0,c/l).toLngLat().lat,new e.MercatorCoordinate(0,(c+1)/l).toLngLat().lat]),u_light:[r.paint.get("hillshade-exaggeration"),s],u_shadow:i,u_highlight:o,u_accent:a}}(t,n,r);c.draw(s,u.TRIANGLES,i,o,a,ke.disabled,p,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function sr(t,n,r,i,o,a){var s=t.context,u=s.gl,l=n.dem;if(l&&l.data){var c=l.dim,p=l.stride,f=l.getPixels();if(s.activeTexture.set(u.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(p),n.demTexture){var d=n.demTexture;d.update(f,{premultiply:!1}),d.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new e.Texture(s,f,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);s.activeTexture.set(u.TEXTURE0);var h=n.fbo;if(!h){var m=new e.Texture(s,{width:c,height:c,data:null},u.RGBA);m.bind(u.LINEAR,u.CLAMP_TO_EDGE),(h=n.fbo=s.createFramebuffer(c,c,!0)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(h.framebuffer),s.viewport.set([0,0,c,c]),t.useProgram("hillshadePrepare").draw(s,u.TRIANGLES,i,o,a,ke.disabled,function(t,n){var r=n.stride,i=e.create();return e.ortho(i,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(i,i,[0,-e.EXTENT,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:n.getUnpackVector()}}(n.tileID,l),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function ur(t,n,r,i,o){var a=i.paint.get("raster-fade-duration");if(a>0){var s=e.browser.now(),u=(s-t.timeAdded)/a,l=n?(s-n.timeAdded)/a:-1,c=r.getSource(),p=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!n||Math.abs(n.tileID.overscaledZ-p)>Math.abs(t.tileID.overscaledZ-p),d=f&&t.refreshedUponExpiration?1:e.clamp(f?u:1-l,0,1);return t.refreshedUponExpiration&&u>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}var lr=new e.Color(1,0,0,1),cr=new e.Color(0,1,0,1),pr=new e.Color(0,0,1,1),fr=new e.Color(1,0,1,1),dr=new e.Color(0,1,1,1);function hr(e,t,n,r){vr(e,0,t+n/2,e.transform.width,n,r)}function mr(e,t,n,r){vr(e,t-n/2,0,n,e.transform.height,r)}function vr(t,n,r,i,o,a){var s=t.context,u=s.gl;u.enable(u.SCISSOR_TEST),u.scissor(n*e.browser.devicePixelRatio,r*e.browser.devicePixelRatio,i*e.browser.devicePixelRatio,o*e.browser.devicePixelRatio),s.clear({color:a}),u.disable(u.SCISSOR_TEST)}function yr(t,n,r){var i=t.context,o=i.gl,a=r.posMatrix,s=t.useProgram("debug"),u=Ce.disabled,l=Oe.disabled,c=t.colorModeForRenderPass();i.activeTexture.set(o.TEXTURE0),t.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(i,o.LINE_STRIP,u,l,c,ke.disabled,jn(a,e.Color.red),"$debug",t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);var p=n.getTileByID(r.key).latestRawTileData,f=Math.floor((p&&p.byteLength||0)/1024),d=n.getTile(r).tileSize,h=512/Math.min(d,512)*(r.overscaledZ/t.transform.zoom)*.5,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=" => "+r.overscaledZ),function(e,t){e.initDebugOverlayCanvas();var n=e.debugOverlayCanvas,r=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,m+" "+f+"kb"),s.draw(i,o.TRIANGLES,u,l,Se.alphaBlended,ke.disabled,jn(a,e.Color.transparent,h),"$debug",t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}var gr={symbol:function(t,n,r,i,o){if("translucent"===t.renderPass){var a=Oe.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,o,a,s){for(var u=n.transform,l="map"===o,c="map"===a,p=0,f=t;p<f.length;p+=1){var d=f[p],h=i.getTile(d),m=h.getBucket(r);if(m&&m.text&&m.text.segments.get().length){var v=e.evaluateSizeForZoom(m.textSizeData,u.zoom),y=ft(h,1,n.transform.zoom),g=Xe(d.posMatrix,c,l,n.transform,y),b="none"!==r.layout.get("icon-text-fit")&&m.hasIconData();if(v){var x=Math.pow(2,u.zoom-h.tileID.overscaledZ);er(m,l,c,s,e.symbolSize,u,g,d.posMatrix,x,v,b)}}}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&nr(t,n,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"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&nr(t,n,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"),a,s),n.map.showCollisionBoxes&&(Xn(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Xn(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(t,n,r,i){if("translucent"===t.renderPass){var o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),u=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==o.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var l=t.context,c=l.gl,p=t.depthModeForSublayer(0,Ce.ReadOnly),f=Oe.disabled,d=t.colorModeForRenderPass(),h=[],m=0;m<i.length;m++){var v=i[m],y=n.getTile(v),g=y.getBucket(r);if(g){var b=g.programConfigurations.get(r.id),x={programConfiguration:b,program:t.useProgram("circle",b),layoutVertexBuffer:g.layoutVertexBuffer,indexBuffer:g.indexBuffer,uniformValues:Tn(t,v,y,r)};if(u)for(var _=0,w=g.segments.get();_<w.length;_+=1){var E=w[_];h.push({segments:new e.SegmentVector([E]),sortKey:E.sortKey,state:x})}else h.push({segments:g.segments,sortKey:0,state:x})}}u&&h.sort((function(e,t){return e.sortKey-t.sortKey}));for(var D=0,C=h;D<C.length;D+=1){var O=C[D],S=O.state;S.program.draw(l,c.TRIANGLES,p,f,d,ke.disabled,S.uniformValues,r.id,S.layoutVertexBuffer,S.indexBuffer,O.segments,r.paint,t.transform.zoom,S.programConfiguration)}}}},heatmap:function(t,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var o=t.context,a=o.gl,s=Oe.disabled,u=new Se([a.ONE,a.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n){var r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);var i=n.heatmapFbo;if(i)r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),e.bindFramebuffer.set(i.framebuffer);else{var o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),i=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1),function(e,t,n,r){var i=e.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t.width/4,t.height/4,0,i.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(e,t,o,i)}}(o,t,r),o.clear({color:e.Color.transparent});for(var l=0;l<i.length;l++){var c=i[l];if(!n.hasRenderableParent(c)){var p=n.getTile(c),f=p.getBucket(r);if(f){var d=f.programConfigurations.get(r.id);t.useProgram("heatmap",d).draw(o,a.TRIANGLES,Ce.disabled,s,u,ke.disabled,Fn(c.posMatrix,p,t.transform.zoom,r.paint.get("heatmap-intensity")),r.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,r.paint,t.transform.zoom,d)}}}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){var r=t.context,i=r.gl,o=n.heatmapFbo;if(o){r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);var a=n.colorRampTexture;a||(a=n.colorRampTexture=new e.Texture(r,n.colorRamp,i.RGBA)),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Ce.disabled,Oe.disabled,t.colorModeForRenderPass(),ke.disabled,function(t,n,r,i){var o=e.create();e.ortho(o,0,t.width,t.height,0,0,1);var a=t.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:n.paint.get("heatmap-opacity")}}(t,n),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}}(t,r))},line:function(t,n,r,i){if("translucent"===t.renderPass){var o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0!==o.constantOr(1)&&0!==a.constantOr(1))for(var s=t.depthModeForSublayer(0,Ce.ReadOnly),u=t.colorModeForRenderPass(),l=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),p=c.constantOr(1),f=r.paint.get("line-gradient"),d=r.getCrossfadeParameters(),h=p?"linePattern":l?"lineSDF":f?"lineGradient":"line",m=t.context,v=m.gl,y=!0,g=0,b=i;g<b.length;g+=1){var x=b[g],_=n.getTile(x);if(!p||_.patternsLoaded()){var w=_.getBucket(r);if(w){var E=w.programConfigurations.get(r.id),D=t.context.program.get(),C=t.useProgram(h,E),O=y||C.program!==D,S=c.constantOr(null);if(S&&_.imageAtlas){var k=_.imageAtlas,A=k.patternPositions[S.to.toString()],T=k.patternPositions[S.from.toString()];A&&T&&E.setConstantPatternPositions(A,T)}var P=p?Ln(t,_,r,d):l?Bn(t,_,r,l,d):f?zn(t,_,r,w.lineClipsArray.length):Rn(t,_,r);if(p)m.activeTexture.set(v.TEXTURE0),_.imageAtlasTexture.bind(v.LINEAR,v.CLAMP_TO_EDGE),E.updatePaintBuffers(d);else if(l&&(O||t.lineAtlas.dirty))m.activeTexture.set(v.TEXTURE0),t.lineAtlas.bind(m);else if(f){var M=w.gradients[r.id],j=M.texture;if(r.gradientVersion!==M.version){var I=256;if(r.stepInterpolant){var F=n.getSource().maxzoom,R=x.canonical.z===F?Math.ceil(1<<t.transform.maxZoom-x.canonical.z):1;I=e.clamp(e.nextPowerOfTwo(w.maxLineLength/e.EXTENT*1024*R),256,m.maxTextureSize)}M.gradient=e.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:I,image:M.gradient||void 0,clips:w.lineClipsArray}),M.texture?M.texture.update(M.gradient):M.texture=new e.Texture(m,M.gradient,v.RGBA),M.version=r.gradientVersion,j=M.texture}m.activeTexture.set(v.TEXTURE0),j.bind(r.stepInterpolant?v.NEAREST:v.LINEAR,v.CLAMP_TO_EDGE)}C.draw(m,v.TRIANGLES,s,t.stencilModeForClipping(x),u,ke.disabled,P,r.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,r.paint,t.transform.zoom,E,w.layoutVertexBuffer2),y=!1}}}}},fill:function(t,n,r,i){var o=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=t.colorModeForRenderPass(),u=r.paint.get("fill-pattern"),l=t.opaquePassEnabledForLayer()&&!u.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===l){var c=t.depthModeForSublayer(1,"opaque"===t.renderPass?Ce.ReadWrite:Ce.ReadOnly);ir(t,n,r,i,c,s,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){var p=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,Ce.ReadOnly);ir(t,n,r,i,p,s,!0)}}},"fill-extrusion":function(e,t,n,r){var i=n.paint.get("fill-extrusion-opacity");if(0!==i&&"translucent"===e.renderPass){var o=new Ce(e.context.gl.LEQUAL,Ce.ReadWrite,e.depthRangeFor3D);if(1!==i||n.paint.get("fill-extrusion-pattern").constantOr(1))or(e,t,n,r,o,Oe.disabled,Se.disabled),or(e,t,n,r,o,e.stencilModeFor3D(),e.colorModeForRenderPass());else{var a=e.colorModeForRenderPass();or(e,t,n,r,o,Oe.disabled,a)}}},hillshade:function(e,t,n,r){if("offscreen"===e.renderPass||"translucent"===e.renderPass){for(var i=e.context,o=e.depthModeForSublayer(0,Ce.ReadOnly),a=e.colorModeForRenderPass(),s="translucent"===e.renderPass?e.stencilConfigForOverlap(r):[{},r],u=s[0],l=0,c=s[1];l<c.length;l+=1){var p=c[l],f=t.getTile(p);f.needsHillshadePrepare&&"offscreen"===e.renderPass?sr(e,f,n,o,Oe.disabled,a):"translucent"===e.renderPass&&ar(e,f,n,o,u[p.overscaledZ],a)}i.viewport.set([0,0,e.width,e.height])}},raster:function(e,t,n,r){if("translucent"===e.renderPass&&0!==n.paint.get("raster-opacity")&&r.length)for(var i=e.context,o=i.gl,a=t.getSource(),s=e.useProgram("raster"),u=e.colorModeForRenderPass(),l=a instanceof M?[{},r]:e.stencilConfigForOverlap(r),c=l[0],p=l[1],f=p[p.length-1].overscaledZ,d=!e.options.moving,h=0,m=p;h<m.length;h+=1){var v=m[h],y=e.depthModeForSublayer(v.overscaledZ-f,1===n.paint.get("raster-opacity")?Ce.ReadWrite:Ce.ReadOnly,o.LESS),g=t.getTile(v),b=e.transform.calculatePosMatrix(v.toUnwrapped(),d);g.registerFadeDuration(n.paint.get("raster-fade-duration"));var x=t.findLoadedParent(v,0),_=ur(g,x,t,n,e.transform),w=void 0,E=void 0,D="nearest"===n.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;i.activeTexture.set(o.TEXTURE0),g.texture.bind(D,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(o.TEXTURE1),x?(x.texture.bind(D,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,x.tileID.overscaledZ-g.tileID.overscaledZ),E=[g.tileID.canonical.x*w%1,g.tileID.canonical.y*w%1]):g.texture.bind(D,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var C=Un(b,E||[0,0],w||1,_,n);a instanceof M?s.draw(i,o.TRIANGLES,y,Oe.disabled,u,ke.disabled,C,n.id,a.boundsBuffer,e.quadTriangleIndexBuffer,a.boundsSegments):s.draw(i,o.TRIANGLES,y,c[v.overscaledZ],u,ke.disabled,C,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,t,n){var r=n.paint.get("background-color"),i=n.paint.get("background-opacity");if(0!==i){var o=e.context,a=o.gl,s=e.transform,u=s.tileSize,l=n.paint.get("background-pattern");if(!e.isPatternMissing(l)){var c=!l&&1===r.a&&1===i&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===c){var p=Oe.disabled,f=e.depthModeForSublayer(0,"opaque"===c?Ce.ReadWrite:Ce.ReadOnly),d=e.colorModeForRenderPass(),h=e.useProgram(l?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:u});l&&(o.activeTexture.set(a.TEXTURE0),e.imageManager.bind(e.context));for(var v=n.getCrossfadeParameters(),y=0,g=m;y<g.length;y+=1){var b=g[y],x=e.transform.calculatePosMatrix(b.toUnwrapped()),_=l?$n(x,i,e,l,{tileID:b,tileSize:u},v):Zn(x,i,r);h.draw(o,a.TRIANGLES,f,p,d,ke.disabled,_,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}}}},debug:function(e,t,n){for(var r=0;r<n.length;r++)yr(e,t,n[r])},custom:function(e,t,n){var r=e.context,i=n.implementation;if("offscreen"===e.renderPass){var o=i.prerender;o&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),o.call(i,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(Oe.disabled);var a="3d"===i.renderingMode?new Ce(e.context.gl.LEQUAL,Ce.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,Ce.ReadOnly);r.setDepthMode(a),i.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}},br=function(e,t){this.context=new Ae(e),this.transform=t,this._tileTextures={},this.setup(),this.numSublayers=Te.maxUnderzooming+Te.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Lt,this.gpuTimers={}};br.prototype.resize=function(t,n){if(this.width=t*e.browser.devicePixelRatio,this.height=n*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,i=this.style._order;r<i.length;r+=1)this.style._layers[i[r]].resize()},br.prototype.setup=function(){var t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,Wt.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);var r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,Wt.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);var i=new e.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(e.EXTENT,0,e.EXTENT,0),i.emplaceBack(0,e.EXTENT,0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(i,P.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);var o=new e.StructArrayLayout2i4;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,Wt.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);var a=new e.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(a);var s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.Texture(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);var u=this.context.gl;this.stencilClearMode=new Oe({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO)},br.prototype.clearStencil=function(){var t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=e.create();e.ortho(r,0,this.width,this.height,0,0,1),e.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,n.TRIANGLES,Ce.disabled,this.stencilClearMode,Se.disabled,ke.disabled,In(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},br.prototype._renderTileClippingMasks=function(e,t){if(this.currentStencilSource!==e.source&&e.isTileClipped()&&t&&t.length){this.currentStencilSource=e.source;var n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(Se.disabled),n.setDepthMode(Ce.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=t;o<a.length;o+=1){var s=a[o],u=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(n,r.TRIANGLES,Ce.disabled,new Oe({func:r.ALWAYS,mask:0},u,255,r.KEEP,r.KEEP,r.REPLACE),Se.disabled,ke.disabled,In(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},br.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new Oe({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},br.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new Oe({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},br.prototype.stencilConfigForOverlap=function(e){var t,n=this.context.gl,r=e.sort((function(e,t){return t.overscaledZ-e.overscaledZ})),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var a={},s=0;s<o;s++)a[s+i]=new Oe({func:n.GEQUAL,mask:255},s+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[a,r]}return[(t={},t[i]=Oe.disabled,t),r]},br.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new Se([t.CONSTANT_COLOR,t.ONE],new e.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Se.unblended:Se.alphaBlended},br.prototype.depthModeForSublayer=function(e,t,n){if(!this.opaquePassEnabledForLayer())return Ce.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Ce(n||this.context.gl.LEQUAL,t,[r,r])},br.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},br.prototype.render=function(t,n){var r=this;this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.browser.now()),this.imageManager.beginFrame();var i=this.style._order,o=this.style.sourceCaches;for(var a in o){var s=o[a];s.used&&s.prepare(this.context)}var u,l,c={},p={},f={};for(var d in o){var h=o[d];c[d]=h.getVisibleCoordinates(),p[d]=c[d].slice().reverse(),f[d]=h.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var m=0;m<i.length;m++)if(this.style._layers[i[m]].is3D()){this.opaquePassCutoff=m;break}this.renderPass="offscreen";for(var v=0,y=i;v<y.length;v+=1){var g=this.style._layers[y[v]];if(g.hasOffscreenPass()&&!g.isHidden(this.transform.zoom)){var b=p[g.source];("custom"===g.type||b.length)&&this.renderLayer(this,o[g.source],g,b)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=i.length-1;this.currentLayer>=0;this.currentLayer--){var x=this.style._layers[i[this.currentLayer]],_=o[x.source],w=c[x.source];this._renderTileClippingMasks(x,w),this.renderLayer(this,_,x,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){var E=this.style._layers[i[this.currentLayer]],D=o[E.source],C=("symbol"===E.type?f:p)[E.source];this._renderTileClippingMasks(E,c[E.source]),this.renderLayer(this,D,E,C)}this.options.showTileBoundaries&&(e.values(this.style._layers).forEach((function(e){e.source&&!e.isHidden(r.transform.zoom)&&(e.source!==(l&&l.id)&&(l=r.style.sourceCaches[e.source]),(!u||u.getSource().maxzoom<l.getSource().maxzoom)&&(u=l))})),u&&gr.debug(this,u,u.getVisibleCoordinates())),this.options.showPadding&&function(e){var t=e.transform.padding;hr(e,e.transform.height-(t.top||0),3,lr),hr(e,t.bottom||0,3,cr),mr(e,t.left||0,3,pr),mr(e,e.transform.width-(t.right||0),3,fr);var n=e.transform.centerPoint;!function(e,t,n,r){vr(e,t-1,n-10,2,20,r),vr(e,t-10,n-1,20,2,r)}(e,n.x,e.transform.height-n.y,dr)}(this),this.context.setDefault()},br.prototype.renderLayer=function(e,t,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"custom"===n.type||r.length)&&(this.id=n.id,this.gpuTimingStart(n),gr[n.type](e,t,n,r,this.style.placement.variableOffsets),this.gpuTimingEnd())},br.prototype.gpuTimingStart=function(e){if(this.options.gpuTiming){var t=this.context.extTimerQuery,n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),n.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,n.query)}},br.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}},br.prototype.collectGpuTimers=function(){var e=this.gpuTimers;return this.gpuTimers={},e},br.prototype.queryGpuTimers=function(e){var t={};for(var n in e){var r=e[n],i=this.context.extTimerQuery,o=i.getQueryObjectEXT(r.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(r.query),t[n]=o}return t},br.prototype.translatePosMatrix=function(t,n,r,i,o){if(!r[0]&&!r[1])return t;var a=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(a){var s=Math.sin(a),u=Math.cos(a);r=[r[0]*u-r[1]*s,r[0]*s+r[1]*u]}var l=[o?r[0]:ft(n,r[0],this.transform.zoom),o?r[1]:ft(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return e.translate(c,t,l),c},br.prototype.saveTileTexture=function(e){var t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]},br.prototype.getTileTexture=function(e){var t=this._tileTextures[e];return t&&t.length>0?t.pop():null},br.prototype.isPatternMissing=function(e){if(!e)return!1;if(!e.from||!e.to)return!0;var t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n},br.prototype.useProgram=function(e,t){this.cache=this.cache||{};var n=""+e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new wn(this.context,e,bn[e],t,Kn[e],this._showOverdrawInspector)),this.cache[n]},br.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},br.prototype.setBaseState=function(){var 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)},br.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},br.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var xr=function(e,t){this.points=e,this.planes=t};xr.fromInvProjectionMatrix=function(t,n,r){var i=Math.pow(2,r),o=[[-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((function(n){return e.transformMat4([],n,t)})).map((function(t){return e.scale$1([],t,1/t[3]/n*i)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(t){var n=e.sub([],o[t[0]],o[t[1]]),r=e.sub([],o[t[2]],o[t[1]]),i=e.normalize([],e.cross([],n,r)),a=-e.dot(i,o[t[1]]);return i.concat(a)}));return new xr(o,a)};var _r=function(t,n){this.min=t,this.max=n,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};_r.prototype.quadrant=function(t){for(var n=[t%2==0,t<2],r=e.clone$2(this.min),i=e.clone$2(this.max),o=0;o<n.length;o++)r[o]=n[o]?this.min[o]:this.center[o],i[o]=n[o]?this.center[o]:this.max[o];return i[2]=this.max[2],new _r(r,i)},_r.prototype.distanceX=function(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]},_r.prototype.distanceY=function(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]},_r.prototype.intersects=function(t){for(var n=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],r=!0,i=0;i<t.planes.length;i++){for(var o=t.planes[i],a=0,s=0;s<n.length;s++)a+=e.dot$1(o,n[s])>=0;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(var u=0;u<3;u++){for(var l=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.points.length;p++){var f=t.points[p][u]-this.min[u];l=Math.min(l,f),c=Math.max(c,f)}if(c<0||l>this.max[u]-this.min[u])return 0}return 1};var wr=function(e,t,n,r){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<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=n,this.right=r};wr.prototype.interpolate=function(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this},wr.prototype.getCenter=function(t,n){var r=e.clamp((this.left+t-this.right)/2,0,t),i=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.Point(r,i)},wr.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right},wr.prototype.clone=function(){return new wr(this.top,this.bottom,this.left,this.right)},wr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Er=function(t,n,r,i,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new wr,this._posMatrixCache={},this._alignedPosMatrixCache={}},Dr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Er.prototype.clone=function(){var e=new Er(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._calcMatrices(),e},Dr.minZoom.get=function(){return this._minZoom},Dr.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},Dr.maxZoom.get=function(){return this._maxZoom},Dr.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},Dr.minPitch.get=function(){return this._minPitch},Dr.minPitch.set=function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))},Dr.maxPitch.get=function(){return this._maxPitch},Dr.maxPitch.set=function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))},Dr.renderWorldCopies.get=function(){return this._renderWorldCopies},Dr.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},Dr.worldSize.get=function(){return this.tileSize*this.scale},Dr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Dr.size.get=function(){return new e.Point(this.width,this.height)},Dr.bearing.get=function(){return-this.angle/Math.PI*180},Dr.bearing.set=function(t){var n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Dr.pitch.get=function(){return this._pitch/Math.PI*180},Dr.pitch.set=function(t){var n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},Dr.fov.get=function(){return this._fov/Math.PI*180},Dr.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},Dr.zoom.get=function(){return this._zoom},Dr.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},Dr.center.get=function(){return this._center},Dr.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},Dr.padding.get=function(){return this._edgeInsets.toJSON()},Dr.padding.set=function(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())},Dr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Er.prototype.isPaddingEqual=function(e){return this._edgeInsets.equals(e)},Er.prototype.interpolatePadding=function(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()},Er.prototype.coveringZoomLevel=function(e){var t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)},Er.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),i=this.pointCoordinate(new e.Point(this.width,0)),o=this.pointCoordinate(new e.Point(this.width,this.height)),a=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),u=Math.floor(Math.max(r.x,i.x,o.x,a.x)),l=s-1;l<=u+1;l++)0!==l&&n.push(new e.UnwrappedTileID(l,t));return n},Er.prototype.coveringTiles=function(t){var n=this.coveringZoomLevel(t),r=n;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);var i=e.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=[o*i.x,o*i.y,0],s=xr.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),u=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=n);var l=function(e){return{aabb:new _r([e*o,0,0],[(e+1)*o,o,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}},c=[],p=[],f=n,d=t.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var h=1;h<=3;h++)c.push(l(-h)),c.push(l(h));for(c.push(l(0));c.length>0;){var m=c.pop(),v=m.x,y=m.y,g=m.fullyVisible;if(!g){var b=m.aabb.intersects(s);if(0===b)continue;g=2===b}var x=m.aabb.distanceX(a),_=m.aabb.distanceY(a),w=Math.max(Math.abs(x),Math.abs(_));if(m.zoom===f||w>3+(1<<f-m.zoom)-2&&m.zoom>=u)p.push({tileID:new e.OverscaledTileID(m.zoom===f?d:m.zoom,m.wrap,m.zoom,v,y),distanceSq:e.sqrLen([a[0]-.5-v,a[1]-.5-y])});else for(var E=0;E<4;E++){var D=(v<<1)+E%2,C=(y<<1)+(E>>1);c.push({aabb:m.aabb.quadrant(E),zoom:m.zoom+1,x:D,y:C,wrap:m.wrap,fullyVisible:g})}}return p.sort((function(e,t){return e.distanceSq-t.distanceSq})).map((function(e){return e.tileID}))},Er.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},Dr.unmodified.get=function(){return this._unmodified},Er.prototype.zoomScale=function(e){return Math.pow(2,e)},Er.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},Er.prototype.project=function(t){var n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)*this.worldSize)},Er.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},Dr.point.get=function(){return this.project(this.center)},Er.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(t),a=new e.MercatorCoordinate(o.x-(r.x-i.x),o.y-(r.y-i.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},Er.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},Er.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},Er.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},Er.prototype.coordinateLocation=function(e){return e.toLngLat()},Er.prototype.pointCoordinate=function(t){var n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);var i=n[3],o=r[3],a=n[1]/i,s=r[1]/o,u=n[2]/i,l=r[2]/o,c=u===l?0:(0-u)/(l-u);return new e.MercatorCoordinate(e.number(n[0]/i,r[0]/o,c)/this.worldSize,e.number(a,s,c)/this.worldSize)},Er.prototype.coordinatePoint=function(t){var n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.Point(n[0]/n[3],n[1]/n[3])},Er.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},Er.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Er.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Er.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];var o=t.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*t.wrap,u=e.identity(new Float64Array(16));return e.translate(u,u,[s*a,o.y*a,0]),e.scale(u,u,[a/e.EXTENT,a/e.EXTENT,1]),e.multiply(u,n?this.alignedProjMatrix:this.projMatrix,u),i[r]=new Float32Array(u),i[r]},Er.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Er.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,i,o=-90,a=90,s=-180,u=180,l=this.size,c=this._unmodified;if(this.latRange){var p=this.latRange;o=e.mercatorYfromLat(p[1])*this.worldSize,t=(a=e.mercatorYfromLat(p[0])*this.worldSize)-o<l.y?l.y/(a-o):0}if(this.lngRange){var f=this.lngRange;s=e.mercatorXfromLng(f[0])*this.worldSize,n=(u=e.mercatorXfromLng(f[1])*this.worldSize)-s<l.x?l.x/(u-s):0}var d=this.point,h=Math.max(n||0,t||0);if(h)return this.center=this.unproject(new e.Point(n?(u+s)/2:d.x,t?(a+o)/2:d.y)),this.zoom+=this.scaleZoom(h),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var m=d.y,v=l.y/2;m-v<o&&(i=o+v),m+v>a&&(i=a-v)}if(this.lngRange){var y=d.x,g=l.x/2;y-g<s&&(r=s+g),y+g>u&&(r=u-g)}void 0===r&&void 0===i||(this.center=this.unproject(new e.Point(void 0!==r?r:d.x,void 0!==i?i:d.y))),this._unmodified=c,this._constraining=!1}},Er.prototype._calcMatrices=function(){if(this.height){var t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+t.y/this.height),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),l=this.height/50,c=new Float64Array(16);e.perspective(c,this._fov,this.width/this.height,l,u),c[8]=2*-t.x/this.width,c[9]=2*t.y/this.height,e.scale(c,c,[1,-1,1]),e.translate(c,c,[0,0,-this.cameraToCenterDistance]),e.rotateX(c,c,this._pitch),e.rotateZ(c,c,this.angle),e.translate(c,c,[-a,-s,0]),this.mercatorMatrix=e.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),e.scale(c,c,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=e.invert([],this.projMatrix);var p=this.width%2/2,f=this.height%2/2,d=Math.cos(this.angle),h=Math.sin(this.angle),m=a-Math.round(a)+d*p+h*f,v=s-Math.round(s)+d*f+h*p,y=new Float64Array(c);if(e.translate(y,y,[m>.5?m-1:m,v>.5?v-1:v,0]),this.alignedProjMatrix=y,c=e.create(),e.scale(c,c,[this.width/2,-this.height/2,1]),e.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=e.create(),e.scale(c,c,[1,-1,1]),e.translate(c,c,[-1,-1,0]),e.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Er.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},Er.prototype.getCameraPoint=function(){var t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,t))},Er.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,u=t;s<u.length;s+=1){var l=u[s];r=Math.min(r,l.x),i=Math.min(i,l.y),o=Math.max(o,l.x),a=Math.max(a,l.y)}return[new e.Point(r,i),new e.Point(o,i),new e.Point(o,a),new e.Point(r,a),new e.Point(r,i)]},Object.defineProperties(Er.prototype,Dr);var Cr=function(t){var n,r,i,o;this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(n=this._updateHashUnthrottled.bind(this),r=!1,i=null,o=function(){i=null,r&&(n(),i=setTimeout(o,300),r=!1)},function(){return r=!0,i||o(),i})};Cr.prototype.addTo=function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Cr.prototype.remove=function(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Cr.prototype.getHashString=function(t){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(n.lng*o)/o,s=Math.round(n.lat*o)/o,u=this._map.getBearing(),l=this._map.getPitch(),c="";if(c+=t?"/"+a+"/"+s+"/"+r:r+"/"+s+"/"+a,(u||l)&&(c+="/"+Math.round(10*u)/10),l&&(c+="/"+Math.round(l)),this._hashName){var p=this._hashName,f=!1,d=e.window.location.hash.slice(1).split("&").map((function(e){var t=e.split("=")[0];return t===p?(f=!0,t+"="+c):e})).filter((function(e){return e}));return f||d.push(p+"="+c),"#"+d.join("&")}return"#"+c},Cr.prototype._getCurrentHash=function(){var t,n=this,r=e.window.location.hash.replace("#","");return this._hashName?(r.split("&").map((function(e){return e.split("=")})).forEach((function(e){e[0]===n._hashName&&(t=e)})),(t&&t[1]||"").split("/")):r.split("/")},Cr.prototype._onHashChange=function(){var e=this._getCurrentHash();if(e.length>=3&&!e.some((function(e){return isNaN(e)}))){var t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},Cr.prototype._updateHashUnthrottled=function(){var t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());try{e.window.history.replaceState(e.window.history.state,null,t)}catch(e){}};var Or={linearity:.3,easing:e.bezier(0,0,.3,1)},Sr=e.extend({deceleration:2500,maxSpeed:1400},Or),kr=e.extend({deceleration:20,maxSpeed:1400},Or),Ar=e.extend({deceleration:1e3,maxSpeed:360},Or),Tr=e.extend({deceleration:1e3,maxSpeed:90},Or),Pr=function(e){this._map=e,this.clear()};function Mr(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function jr(t,n,r){var i=r.maxSpeed,o=r.linearity,a=r.deceleration,s=e.clamp(t*o/(n/1e3),-i,i),u=Math.abs(s)/(a*o);return{easing:r.easing,duration:1e3*u,amount:s*(u/2)}}Pr.prototype.clear=function(){this._inertiaBuffer=[]},Pr.prototype.record=function(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:t})},Pr.prototype._drainInertiaBuffer=function(){for(var t=this._inertiaBuffer,n=e.browser.now();t.length>0&&n-t[0].time>160;)t.shift()},Pr.prototype._onMoveEnd=function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},r=0,i=this._inertiaBuffer;r<i.length;r+=1){var o=i[r].settings;n.zoom+=o.zoomDelta||0,n.bearing+=o.bearingDelta||0,n.pitch+=o.pitchDelta||0,o.panDelta&&n.pan._add(o.panDelta),o.around&&(n.around=o.around),o.pinchAround&&(n.pinchAround=o.pinchAround)}var a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(n.pan.mag()){var u=jr(n.pan.mag(),a,e.extend({},Sr,t||{}));s.offset=n.pan.mult(u.amount/n.pan.mag()),s.center=this._map.transform.center,Mr(s,u)}if(n.zoom){var l=jr(n.zoom,a,kr);s.zoom=this._map.transform.zoom+l.amount,Mr(s,l)}if(n.bearing){var c=jr(n.bearing,a,Ar);s.bearing=this._map.transform.bearing+e.clamp(c.amount,-179,179),Mr(s,c)}if(n.pitch){var p=jr(n.pitch,a,Tr);s.pitch=this._map.transform.pitch+p.amount,Mr(s,p)}if(s.zoom||s.bearing){var f=void 0===n.pinchAround?n.around:n.pinchAround;s.around=f?this._map.unproject(f):this._map.getCenter()}return this.clear(),e.extend(s,{noMoveStart:!0})}};var Ir=function(t){function r(r,i,o,a){void 0===a&&(a={});var s=n.mousePos(i.getCanvasContainer(),o),u=i.unproject(s);t.call(this,r,e.extend({point:s,lngLat:u,originalEvent:o},a)),this._defaultPrevented=!1,this.target=i}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(e.Event),Fr=function(t){function r(r,i,o){var a="touchend"===r?o.changedTouches:o.touches,s=n.touchPos(i.getCanvasContainer(),a),u=s.map((function(e){return i.unproject(e)})),l=s.reduce((function(e,t,n,r){return e.add(t.div(r.length))}),new e.Point(0,0)),c=i.unproject(l);t.call(this,r,{points:s,point:l,lngLats:u,lngLat:c,originalEvent:o}),this._defaultPrevented=!1}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(e.Event),Rr=function(e){function t(t,n,r){e.call(this,t,{originalEvent:r}),this._defaultPrevented=!1}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={defaultPrevented:{configurable:!0}};return t.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,n),t}(e.Event),zr=function(e,t){this._map=e,this._clickTolerance=t.clickTolerance};zr.prototype.reset=function(){delete this._mousedownPos},zr.prototype.wheel=function(e){return this._firePreventable(new Rr(e.type,this._map,e))},zr.prototype.mousedown=function(e,t){return this._mousedownPos=t,this._firePreventable(new Ir(e.type,this._map,e))},zr.prototype.mouseup=function(e){this._map.fire(new Ir(e.type,this._map,e))},zr.prototype.click=function(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new Ir(e.type,this._map,e))},zr.prototype.dblclick=function(e){return this._firePreventable(new Ir(e.type,this._map,e))},zr.prototype.mouseover=function(e){this._map.fire(new Ir(e.type,this._map,e))},zr.prototype.mouseout=function(e){this._map.fire(new Ir(e.type,this._map,e))},zr.prototype.touchstart=function(e){return this._firePreventable(new Fr(e.type,this._map,e))},zr.prototype.touchmove=function(e){this._map.fire(new Fr(e.type,this._map,e))},zr.prototype.touchend=function(e){this._map.fire(new Fr(e.type,this._map,e))},zr.prototype.touchcancel=function(e){this._map.fire(new Fr(e.type,this._map,e))},zr.prototype._firePreventable=function(e){if(this._map.fire(e),e.defaultPrevented)return{}},zr.prototype.isEnabled=function(){return!0},zr.prototype.isActive=function(){return!1},zr.prototype.enable=function(){},zr.prototype.disable=function(){};var Lr=function(e){this._map=e};Lr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Lr.prototype.mousemove=function(e){this._map.fire(new Ir(e.type,this._map,e))},Lr.prototype.mousedown=function(){this._delayContextMenu=!0},Lr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ir("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Lr.prototype.contextmenu=function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new Ir(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()},Lr.prototype.isEnabled=function(){return!0},Lr.prototype.isActive=function(){return!1},Lr.prototype.enable=function(){},Lr.prototype.disable=function(){};var Br=function(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1};function Nr(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}Br.prototype.isEnabled=function(){return!!this._enabled},Br.prototype.isActive=function(){return!!this._active},Br.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Br.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Br.prototype.mousedown=function(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(n.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)},Br.prototype.mousemoveWindow=function(e,t){if(this._active){var r=t;if(!(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)<this._clickTolerance)){var i=this._startPos;this._lastPos=r,this._box||(this._box=n.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));var o=Math.min(i.x,r.x),a=Math.max(i.x,r.x),s=Math.min(i.y,r.y),u=Math.max(i.y,r.y);n.setTransform(this._box,"translate("+o+"px,"+s+"px)"),this._box.style.width=a-o+"px",this._box.style.height=u-s+"px"}}},Br.prototype.mouseupWindow=function(t,r){var i=this;if(this._active&&0===t.button){var o=this._startPos,a=r;if(this.reset(),n.suppressClick(),o.x!==a.x||o.y!==a.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:function(e){return e.fitScreenCoordinates(o,a,i._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",t)}},Br.prototype.keydown=function(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))},Br.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},Br.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))};var Vr=function(e){this.reset(),this.numTouches=e.numTouches};Vr.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Vr.prototype.touchstart=function(t,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){for(var n=new e.Point(0,0),r=0,i=t;r<i.length;r+=1)n._add(i[r]);return n.div(t.length)}(n),this.touches=Nr(r,n)))},Vr.prototype.touchmove=function(e,t,n){if(!this.aborted&&this.centroid){var r=Nr(n,t);for(var i in this.touches){var o=r[i];(!o||o.dist(this.touches[i])>30)&&(this.aborted=!0)}}},Vr.prototype.touchend=function(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Ur=function(e){this.singleTap=new Vr(e),this.numTaps=e.numTaps,this.reset()};Ur.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ur.prototype.touchstart=function(e,t,n){this.singleTap.touchstart(e,t,n)},Ur.prototype.touchmove=function(e,t,n){this.singleTap.touchmove(e,t,n)},Ur.prototype.touchend=function(e,t,n){var r=this.singleTap.touchend(e,t,n);if(r){var i=e.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(i&&o||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Hr=function(){this._zoomIn=new Ur({numTouches:1,numTaps:2}),this._zoomOut=new Ur({numTouches:2,numTaps:1}),this.reset()};Hr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Hr.prototype.touchstart=function(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)},Hr.prototype.touchmove=function(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)},Hr.prototype.touchend=function(e,t,n){var r=this,i=this._zoomIn.touchend(e,t,n),o=this._zoomOut.touchend(e,t,n);return i?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(i)},{originalEvent:e})}}):o?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(o)},{originalEvent:e})}}):void 0},Hr.prototype.touchcancel=function(){this.reset()},Hr.prototype.enable=function(){this._enabled=!0},Hr.prototype.disable=function(){this._enabled=!1,this.reset()},Hr.prototype.isEnabled=function(){return this._enabled},Hr.prototype.isActive=function(){return this._active};var Wr={0:1,2:2},Gr=function(e){this.reset(),this._clickTolerance=e.clickTolerance||1};Gr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Gr.prototype._correctButton=function(e,t){return!1},Gr.prototype._move=function(e,t){return{}},Gr.prototype.mousedown=function(e,t){if(!this._lastPoint){var r=n.mouseButton(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}},Gr.prototype.mousemoveWindow=function(e,t){var n=this._lastPoint;if(n)if(e.preventDefault(),function(e,t){var n=Wr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(n,t)},Gr.prototype.mouseupWindow=function(e){this._lastPoint&&n.mouseButton(e)===this._eventButton&&(this._moved&&n.suppressClick(),this.reset())},Gr.prototype.enable=function(){this._enabled=!0},Gr.prototype.disable=function(){this._enabled=!1,this.reset()},Gr.prototype.isEnabled=function(){return this._enabled},Gr.prototype.isActive=function(){return this._active};var qr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.mousedown=function(t,n){e.prototype.mousedown.call(this,t,n),this._lastPoint&&(this._active=!0)},t.prototype._correctButton=function(e,t){return 0===t&&!e.ctrlKey},t.prototype._move=function(e,t){return{around:t,panDelta:t.sub(e)}},t}(Gr),Yr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._correctButton=function(e,t){return 0===t&&e.ctrlKey||2===t},t.prototype._move=function(e,t){var n=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Gr),Zr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._correctButton=function(e,t){return 0===t&&e.ctrlKey||2===t},t.prototype._move=function(e,t){var n=-.5*(t.y-e.y);if(n)return this._active=!0,{pitchDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Gr),$r=function(e){this._minTouches=1,this._clickTolerance=e.clickTolerance||1,this.reset()};$r.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new e.Point(0,0)},$r.prototype.touchstart=function(e,t,n){return this._calculateTransform(e,t,n)},$r.prototype.touchmove=function(e,t,n){if(this._active&&!(n.length<this._minTouches))return e.preventDefault(),this._calculateTransform(e,t,n)},$r.prototype.touchend=function(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()},$r.prototype.touchcancel=function(){this.reset()},$r.prototype._calculateTransform=function(t,n,r){r.length>0&&(this._active=!0);var i=Nr(r,n),o=new e.Point(0,0),a=new e.Point(0,0),s=0;for(var u in i){var l=i[u],c=this._touches[u];c&&(o._add(l),a._add(l.sub(c)),s++,i[u]=l)}if(this._touches=i,!(s<this._minTouches)&&a.mag()){var p=a.div(s);if(this._sum._add(p),!(this._sum.mag()<this._clickTolerance))return{around:o.div(s),panDelta:p}}},$r.prototype.enable=function(){this._enabled=!0},$r.prototype.disable=function(){this._enabled=!1,this.reset()},$r.prototype.isEnabled=function(){return this._enabled},$r.prototype.isActive=function(){return this._active};var Kr=function(){this.reset()};function Xr(e,t,n){for(var r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}function Jr(e,t){return Math.log(e/t)/Math.LN2}Kr.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Kr.prototype._start=function(e){},Kr.prototype._move=function(e,t,n){return{}},Kr.prototype.touchstart=function(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))},Kr.prototype.touchmove=function(e,t,n){if(this._firstTwoTouches){e.preventDefault();var r=this._firstTwoTouches,i=r[1],o=Xr(n,t,r[0]),a=Xr(n,t,i);if(o&&a){var s=this._aroundCenter?null:o.add(a).div(2);return this._move([o,a],s,e)}}},Kr.prototype.touchend=function(e,t,r){if(this._firstTwoTouches){var i=this._firstTwoTouches,o=i[1],a=Xr(r,t,i[0]),s=Xr(r,t,o);a&&s||(this._active&&n.suppressClick(),this.reset())}},Kr.prototype.touchcancel=function(){this.reset()},Kr.prototype.enable=function(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around},Kr.prototype.disable=function(){this._enabled=!1,this.reset()},Kr.prototype.isEnabled=function(){return this._enabled},Kr.prototype.isActive=function(){return this._active};var Qr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),delete this._distance,delete this._startDistance},t.prototype._start=function(e){this._startDistance=this._distance=e[0].dist(e[1])},t.prototype._move=function(e,t){var n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Jr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Jr(this._distance,n),pinchAround:t}},t}(Kr);function ei(e,t){return 180*e.angleWith(t)/Math.PI}var ti=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},t.prototype._start=function(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])},t.prototype._move=function(e,t){var n=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ei(this._vector,n),pinchAround:t}},t.prototype._isBelowThreshold=function(e){this._minDiameter=Math.min(this._minDiameter,e.mag());var t=25/(Math.PI*this._minDiameter)*360,n=ei(e,this._startVector);return Math.abs(n)<t},t}(Kr);function ni(e){return Math.abs(e.y)>Math.abs(e.x)}var ri=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},t.prototype._start=function(e){this._lastPoints=e,ni(e[0].sub(e[1]))&&(this._valid=!1)},t.prototype._move=function(e,t,n){var r=e[0].sub(this._lastPoints[0]),i=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}},t.prototype.gestureBeginsVertically=function(e,t,n){if(void 0!==this._valid)return this._valid;var r=e.mag()>=2,i=t.mag()>=2;if(r||i){if(!r||!i)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=e.y>0==t.y>0;return ni(e)&&ni(t)&&o}},t}(Kr),ii={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var e=ii;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1};function ai(e){return e*(2-e)}oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,i=0,o=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),o=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),o=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:function(s){var u=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ai,zoom:n?Math.round(u)+n*(e.shiftKey?2:1):u,bearing:s.getBearing()+r*t._bearingStep,pitch:s.getPitch()+i*t._pitchStep,offset:[-o*t._panStep,-a*t._panStep],center:s.getCenter()},{originalEvent:e})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active},oi.prototype.disableRotation=function(){this._rotationDisabled=!0},oi.prototype.enableRotation=function(){this._rotationDisabled=!1};var si=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,e.bindAll(["_onTimeout"],this)};si.prototype.setZoomRate=function(e){this._defaultZoomRate=e},si.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},si.prototype.isEnabled=function(){return!!this._enabled},si.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},si.prototype.isZooming=function(){return!!this._zooming},si.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},si.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},si.prototype.wheel=function(t){if(this.isEnabled()){var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.browser.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}},si.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},si.prototype._start=function(t){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},si.prototype.renderFrame=function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==i&&(i=1/i);var o="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,u=this._startZoom,l=this._easing,c=!1;if("wheel"===this._type&&u&&l){var p=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),f=l(p);a=e.number(u,s,f),p<1?this._frameId||(this._frameId=!0):c=!0}else a=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:a-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},si.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,i=(e.browser.now()-r.start)/r.duration,o=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=e.bezier(a,s,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n},si.prototype.reset=function(){this._active=!1};var ui=function(e,t){this._clickZoom=e,this._tapZoom=t};ui.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ui.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ui.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ui.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var li=function(){this.reset()};li.prototype.reset=function(){this._active=!1},li.prototype.dblclick=function(e,t){return e.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(){this._tap=new Ur({numTouches:1,numTaps:1}),this.reset()};ci.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ci.prototype.touchstart=function(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))},ci.prototype.touchmove=function(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=t[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,n)},ci.prototype.touchend=function(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)},ci.prototype.touchcancel=function(){this.reset()},ci.prototype.enable=function(){this._enabled=!0},ci.prototype.disable=function(){this._enabled=!1,this.reset()},ci.prototype.isEnabled=function(){return this._enabled},ci.prototype.isActive=function(){return this._active};var pi=function(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n};pi.prototype.enable=function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},pi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},pi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},pi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var hi=function(e){return e.zoom||e.drag||e.pitch||e.rotate},mi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(e.Event);function vi(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var yi=function(t,r){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Pr(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),e.bindAll(["handleEvent","handleWindowEvent"],this);var 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],[e.window.document,"mousemove",{capture:!0}],[e.window.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],[e.window,"blur",void 0]];for(var o=0,a=this._listeners;o<a.length;o+=1){var s=a[o],u=s[0];n.addEventListener(u,s[1],u===e.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};yi.prototype.destroy=function(){for(var t=0,r=this._listeners;t<r.length;t+=1){var i=r[t],o=i[0];n.removeEventListener(o,i[1],o===e.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},yi.prototype._addDefaultHandlers=function(e){var t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new zr(t,e));var r=t.boxZoom=new Br(t,e);this._add("boxZoom",r);var i=new Hr,o=new li;t.doubleClickZoom=new ui(o,i),this._add("tapZoom",i),this._add("clickZoom",o);var a=new ci;this._add("tapDragZoom",a);var s=t.touchPitch=new ri;this._add("touchPitch",s);var u=new Yr(e),l=new Zr(e);t.dragRotate=new fi(e,u,l),this._add("mouseRotate",u,["mousePitch"]),this._add("mousePitch",l,["mouseRotate"]);var c=new qr(e),p=new $r(e);t.dragPan=new pi(n,c,p),this._add("mousePan",c),this._add("touchPan",p,["touchZoom","touchRotate"]);var f=new ti,d=new Qr;t.touchZoomRotate=new di(n,d,f,a),this._add("touchRotate",f,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]);var h=t.scrollZoom=new si(t,this);this._add("scrollZoom",h,["mousePan"]);var m=t.keyboard=new oi;this._add("keyboard",m),this._add("blockableMapEvent",new Lr(t));for(var v=0,y=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];v<y.length;v+=1){var g=y[v];e.interactive&&e[g]&&t[g].enable(e[g])}},yi.prototype._add=function(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t},yi.prototype.stop=function(e){if(!this._updatingCamera){for(var t=0,n=this._handlers;t<n.length;t+=1)n[t].handler.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}},yi.prototype.isActive=function(){for(var e=0,t=this._handlers;e<t.length;e+=1)if(t[e].handler.isActive())return!0;return!1},yi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},yi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},yi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},yi.prototype._blockedByActive=function(e,t,n){for(var r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1},yi.prototype.handleWindowEvent=function(e){this.handleEvent(e,e.type+"Window")},yi.prototype._getMapTouches=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var i=r[n];this._el.contains(i.target)&&t.push(i)}return t},yi.prototype.handleEvent=function(e,t){if("blur"!==e.type){this._updatingCamera=!0;for(var r="renderFrame"===e.type?void 0:e,i={needsRenderFrame:!1},o={},a={},s=e.touches?this._getMapTouches(e.touches):void 0,u=s?n.touchPos(this._el,s):n.mousePos(this._el,e),l=0,c=this._handlers;l<c.length;l+=1){var p=c[l],f=p.handlerName,d=p.handler,h=p.allowed;if(d.isEnabled()){var m=void 0;this._blockedByActive(a,h,f)?d.reset():d[t||e.type]&&(m=d[t||e.type](e,u,s),this.mergeHandlerResult(i,o,m,f,r),m&&m.needsRenderFrame&&this._triggerRenderFrame()),(m||d.isActive())&&(a[f]=d)}}var v={};for(var y in this._previousActiveHandlers)a[y]||(v[y]=r);this._previousActiveHandlers=a,(Object.keys(v).length||vi(i))&&(this._changes.push([i,o,v]),this._triggerRenderFrame()),(Object.keys(a).length||vi(i))&&this._map._stop(!0),this._updatingCamera=!1;var g=i.cameraAnimation;g&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],g(this._map))}else this.stop(!0)},yi.prototype.mergeHandlerResult=function(t,n,r,i,o){if(r){e.extend(t,r);var a={handlerName:i,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=a),void 0!==r.panDelta&&(n.drag=a),void 0!==r.pitchDelta&&(n.pitch=a),void 0!==r.bearingDelta&&(n.rotate=a)}},yi.prototype._applyChanges=function(){for(var t={},n={},r={},i=0,o=this._changes;i<o.length;i+=1){var a=o[i],s=a[0],u=a[1],l=a[2];s.panDelta&&(t.panDelta=(t.panDelta||new e.Point(0,0))._add(s.panDelta)),s.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+s.zoomDelta),s.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+s.bearingDelta),s.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+s.pitchDelta),void 0!==s.around&&(t.around=s.around),void 0!==s.pinchAround&&(t.pinchAround=s.pinchAround),s.noInertia&&(t.noInertia=s.noInertia),e.extend(n,u),e.extend(r,l)}this._updateMapTransform(t,n,r),this._changes=[]},yi.prototype._updateMapTransform=function(e,t,n){var r=this._map,i=r.transform;if(!vi(e))return this._fireEvents(t,n,!0);var o=e.panDelta,a=e.zoomDelta,s=e.bearingDelta,u=e.pitchDelta,l=e.around,c=e.pinchAround;void 0!==c&&(l=c),r._stop(!0),l=l||r.transform.centerPoint;var p=i.pointLocation(o?l.sub(o):l);s&&(i.bearing+=s),u&&(i.pitch+=u),a&&(i.zoom+=a),i.setLocationAtPoint(p,l),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n,!0)},yi.prototype._fireEvents=function(t,n,r){var i=this,o=hi(this._eventsInProgress),a=hi(t),s={};for(var u in t)this._eventsInProgress[u]||(s[u+"start"]=t[u].originalEvent),this._eventsInProgress[u]=t[u];for(var l in!o&&a&&this._fireEvent("movestart",a.originalEvent),s)this._fireEvent(l,s[l]);for(var c in a&&this._fireEvent("move",a.originalEvent),t)this._fireEvent(c,t[c].originalEvent);var p,f={};for(var d in this._eventsInProgress){var h=this._eventsInProgress[d],m=h.handlerName,v=h.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[d],f[d+"end"]=p=n[m]||v)}for(var y in f)this._fireEvent(y,f[y]);var g=hi(this._eventsInProgress);if(r&&(o||a)&&!g){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(e){return 0!==e&&-i._bearingSnap<e&&e<i._bearingSnap};b?(x(b.bearing||this._map.getBearing())&&(b.bearing=0),this._map.easeTo(b,{originalEvent:p})):(this._map.fire(new e.Event("moveend",{originalEvent:p})),x(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}},yi.prototype._fireEvent=function(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},yi.prototype._requestFrame=function(){var e=this;return this._map.triggerRepaint(),this._map._renderTaskQueue.add((function(t){delete e._frameId,e.handleEvent(new mi("renderFrame",{timeStamp:t})),e._applyChanges()}))},yi.prototype._triggerRenderFrame=function(){void 0===this._frameId&&(this._frameId=this._requestFrame())};var gi=function(t){function n(n,r){t.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getCenter=function(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(e,t){return this.jumpTo({center:e},t)},n.prototype.panBy=function(t,n,r){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)},n.prototype.panTo=function(t,n,r){return this.easeTo(e.extend({center:t},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(e,t){return this.jumpTo({zoom:e},t),this},n.prototype.zoomTo=function(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)},n.prototype.zoomIn=function(e,t){return this.zoomTo(this.getZoom()+1,e,t),this},n.prototype.zoomOut=function(e,t){return this.zoomTo(this.getZoom()-1,e,t),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(e,t){return this.jumpTo({bearing:e},t),this},n.prototype.getPadding=function(){return this.transform.padding},n.prototype.setPadding=function(e,t){return this.jumpTo({padding:e},t),this},n.prototype.rotateTo=function(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)},n.prototype.resetNorth=function(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this},n.prototype.resetNorthPitch=function(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this},n.prototype.snapToNorth=function(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(e,t){return this.jumpTo({pitch:e},t),this},n.prototype.cameraForBounds=function(t,n){t=e.LngLatBounds.convert(t);var r=n&&n.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),r,n)},n.prototype._cameraForBoxAndBearing=function(t,n,r,i){var o={top:0,bottom:0,right:0,left:0};if("number"==typeof(i=e.extend({padding:o,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var a=i.padding;i.padding={top:a,bottom:a,right:a,left:a}}i.padding=e.extend(o,i.padding);var s=this.transform,u=s.padding,l=s.project(e.LngLat.convert(t)),c=s.project(e.LngLat.convert(n)),p=l.rotate(-r*Math.PI/180),f=c.rotate(-r*Math.PI/180),d=new e.Point(Math.max(p.x,f.x),Math.max(p.y,f.y)),h=new e.Point(Math.min(p.x,f.x),Math.min(p.y,f.y)),m=d.sub(h),v=(s.width-(u.left+u.right+i.padding.left+i.padding.right))/m.x,y=(s.height-(u.top+u.bottom+i.padding.top+i.padding.bottom))/m.y;if(!(y<0||v<0)){var g=Math.min(s.scaleZoom(s.scale*Math.min(v,y)),i.maxZoom),b="number"==typeof i.offset.x?new e.Point(i.offset.x,i.offset.y):e.Point.convert(i.offset),x=new e.Point((i.padding.left-i.padding.right)/2,(i.padding.top-i.padding.bottom)/2).rotate(r*Math.PI/180),_=b.add(x).mult(s.scale/s.zoomScale(g));return{center:s.unproject(l.add(c).div(2).sub(_)),zoom:g,bearing:r}}e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},n.prototype.fitBounds=function(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)},n.prototype.fitScreenCoordinates=function(t,n,r,i,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(n)),r,i),i,o)},n.prototype._fitInternal=function(t,n,r){return t?(delete(n=e.extend(t,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this},n.prototype.jumpTo=function(t,n){this.stop();var r=this.transform,i=!1,o=!1,a=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(i=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(o=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(a=!0,r.pitch=+t.pitch),null==t.padding||r.isPaddingEqual(t.padding)||(r.padding=t.padding),this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),i&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),o&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),a&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n))},n.prototype.easeTo=function(t,n){var r=this;this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.browser.prefersReducedMotion)&&(t.duration=0);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),u=this.getPadding(),l="zoom"in t?+t.zoom:o,c="bearing"in t?this._normalizeBearing(t.bearing,a):a,p="pitch"in t?+t.pitch:s,f="padding"in t?t.padding:i.padding,d=e.Point.convert(t.offset),h=i.centerPoint.add(d),m=i.pointLocation(h),v=e.LngLat.convert(t.center||m);this._normalizeCenter(v);var y,g,b=i.project(m),x=i.project(v).sub(b),_=i.zoomScale(l-o);t.around&&(y=e.LngLat.convert(t.around),g=i.locationPoint(y));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==o,this._rotating=this._rotating||a!==c,this._pitching=this._pitching||p!==s,this._padding=!i.isPaddingEqual(f),this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,w),this._ease((function(t){if(r._zooming&&(i.zoom=e.number(o,l,t)),r._rotating&&(i.bearing=e.number(a,c,t)),r._pitching&&(i.pitch=e.number(s,p,t)),r._padding&&(i.interpolatePadding(u,f,t),h=i.centerPoint.add(d)),y)i.setLocationAtPoint(y,g);else{var m=i.zoomScale(i.zoom-o),v=l>o?Math.min(2,_):Math.max(.5,_),w=Math.pow(v,1-t),E=i.unproject(b.add(x.mult(t*w)).mult(m));i.setLocationAtPoint(i.renderWorldCopies?E.wrap():E,h)}r._fireMoveEvents(n)}),(function(e){r._afterEase(n,e)}),t),this},n.prototype._prepareEase=function(t,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))},n.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},n.prototype._afterEase=function(t,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),i&&this.fire(new e.Event("rotateend",t)),o&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}},n.prototype.flyTo=function(t,n){var r=this;if(!t.essential&&e.browser.prefersReducedMotion){var i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var o=this.transform,a=this.getZoom(),s=this.getBearing(),u=this.getPitch(),l=this.getPadding(),c="zoom"in t?e.clamp(+t.zoom,o.minZoom,o.maxZoom):a,p="bearing"in t?this._normalizeBearing(t.bearing,s):s,f="pitch"in t?+t.pitch:u,d="padding"in t?t.padding:o.padding,h=o.zoomScale(c-a),m=e.Point.convert(t.offset),v=o.centerPoint.add(m),y=o.pointLocation(v),g=e.LngLat.convert(t.center||y);this._normalizeCenter(g);var b=o.project(y),x=o.project(g).sub(b),_=t.curve,w=Math.max(o.width,o.height),E=w/h,D=x.mag();if("minZoom"in t){var C=e.clamp(Math.min(t.minZoom,a,c),o.minZoom,o.maxZoom),O=w/o.zoomScale(C-a);_=Math.sqrt(O/D*2)}var S=_*_;function k(e){var t=(E*E-w*w+(e?-1:1)*S*S*D*D)/(2*(e?E:w)*S*D);return Math.log(Math.sqrt(t*t+1)-t)}function A(e){return(Math.exp(e)-Math.exp(-e))/2}function T(e){return(Math.exp(e)+Math.exp(-e))/2}var P=k(0),M=function(e){return T(P)/T(P+_*e)},j=function(e){return w*((T(P)*(A(t=P+_*e)/T(t))-A(P))/S)/D;var t},I=(k(1)-P)/_;if(Math.abs(D)<1e-6||!isFinite(I)){if(Math.abs(w-E)<1e-6)return this.easeTo(t,n);var F=E<w?-1:1;I=Math.abs(Math.log(E/w))/_,j=function(){return 0},M=function(e){return Math.exp(F*_*e)}}return t.duration="duration"in t?+t.duration:1e3*I/("screenSpeed"in t?+t.screenSpeed/_:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==p,this._pitching=f!==u,this._padding=!o.isPaddingEqual(d),this._prepareEase(n,!1),this._ease((function(t){var i=t*I,h=1/M(i);o.zoom=1===t?c:a+o.scaleZoom(h),r._rotating&&(o.bearing=e.number(s,p,t)),r._pitching&&(o.pitch=e.number(u,f,t)),r._padding&&(o.interpolatePadding(l,d,t),v=o.centerPoint.add(m));var y=1===t?g:o.unproject(b.add(x.mult(j(i))).mult(h));o.setLocationAtPoint(o.renderWorldCopies?y.wrap():y,v),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),t),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,t)}if(!e){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.browser.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)<r&&(t-=360),Math.abs(t+360-n)<r&&(t+=360),t},n.prototype._normalizeCenter=function(e){var t=this.transform;if(t.renderWorldCopies&&!t.lngRange){var n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}},n}(e.Evented),bi=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),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},bi.prototype.onRemove=function(){n.remove(this._container),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},bi.prototype._setElementTitle=function(e,t){var n=this._map._getUIString("AttributionControl."+t);e.title=n,e.setAttribute("aria-label",n)},bi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bi.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce((function(e,t,r){return t.value&&(e+=t.key+"="+t.value+(r<n.length-1?"&":"")),e}),"?");t.href=e.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}},bi.prototype._updateData=function(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())},bi.prototype._updateAttributions=function(){if(this._map.style){var e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map((function(e){return"string"!=typeof e?"":e}))):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var n=this._map.style.sourceCaches;for(var r in n){var i=n[r];if(i.used){var o=i.getSource();o.attribution&&e.indexOf(o.attribution)<0&&e.push(o.attribution)}}e.sort((function(e,t){return e.length-t.length}));var a=(e=e.filter((function(t,n){for(var r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,e.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var xi=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};xi.prototype.onAdd=function(e){this._map=e,this._container=n.create("div","mapboxgl-ctrl");var t=n.create("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},xi.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xi.prototype.getDefaultPosition=function(){return"bottom-left"},xi.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},xi.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},xi.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var _i=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};_i.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},_i.prototype.remove=function(e){for(var t=this._currentlyRunning,n=0,r=t?this._queue.concat(t):this._queue;n<r.length;n+=1){var i=r[n];if(i.id===e)return void(i.cancelled=!0)}},_i.prototype.run=function(e){void 0===e&&(e=0);var t=this._currentlyRunning=this._queue;this._queue=[];for(var n=0,r=t;n<r.length;n+=1){var i=r[n];if(!i.cancelled&&(i.callback(e),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},_i.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var wi={"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","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},Ei=e.window.HTMLImageElement,Di=e.window.HTMLElement,Ci=e.window.ImageBitmap,Oi={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Si=function(r){function i(t){var n=this;if(null!=(t=e.extend({},Oi,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var i=new Er(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(r.call(this,i,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new _i,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},wi,t.locale),this._clickTolerance=t.clickTolerance,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof Di))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new yi(this,t),this._hash=t.hash&&new Cr("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new bi({customAttribution:t.customAttribution})),this.addControl(new xi,t.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(t){n._update("style"===t.dataType),n.fire(new e.Event(t.dataType+"data",t))})),this.on("dataloading",(function(t){n.fire(new e.Event(t.dataType+"dataloading",t))}))}r&&(i.__proto__=r),(i.prototype=Object.create(r&&r.prototype)).constructor=i;var o={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this},i.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this},i.prototype.hasControl=function(e){return this._controls.indexOf(e)>-1},i.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],i=n[1];this._resizeCanvas(r,i),this.transform.resize(r,i),this.painter.resize(r,i);var o=!this._moving;return o&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),o&&this.fire(new e.Event("moveend",t)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},i.prototype.setMinZoom=function(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;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(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;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(e){if((e=null==e?60:e)>60)throw new Error("maxPitch must be less than or equal to 60");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},i.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},i.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(e,t,n){var r,i=this;if("mouseenter"===e||"mouseover"===e){var o=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){var a=i.getLayer(t)?i.queryRenderedFeatures(r.point,{layers:[t]}):[];a.length?o||(o=!0,n.call(i,new Ir(e,i,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===e||"mouseout"===e){var a=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){(i.getLayer(t)?i.queryRenderedFeatures(r.point,{layers:[t]}):[]).length?a=!0:a&&(a=!1,n.call(i,new Ir(e,i,r.originalEvent)))},mouseout:function(t){a&&(a=!1,n.call(i,new Ir(e,i,t.originalEvent)))}}}}return{layer:t,listener:n,delegates:(r={},r[e]=function(e){var r=i.getLayer(t)?i.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(i,e),delete e.features)},r)}},i.prototype.on=function(e,t,n){if(void 0===n)return r.prototype.on.call(this,e,t);var i=this._createDelegatedListener(e,t,n);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i),i.delegates)this.on(o,i.delegates[o]);return this},i.prototype.once=function(e,t,n){if(void 0===n)return r.prototype.once.call(this,e,t);var i=this._createDelegatedListener(e,t,n);for(var o in i.delegates)this.once(o,i.delegates[o]);return this},i.prototype.off=function(e,t,n){var i=this;return void 0===n?r.prototype.off.call(this,e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&function(r){for(var o=r[e],a=0;a<o.length;a++){var s=o[a];if(s.layer===t&&s.listener===n){for(var u in s.delegates)i.off(u,s.delegates[u]);return o.splice(a,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(t,n){if(!this.style)return[];var r;if(void 0!==n||void 0===t||t instanceof e.Point||Array.isArray(t)||(n=t,t=void 0),n=n||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof e.Point||"number"==typeof t[0])r=[e.Point.convert(t)];else{var i=e.Point.convert(t[0]),o=e.Point.convert(t[1]);r=[i,new e.Point(o.x,i.y),o,new e.Point(i.x,o.y),i]}return this.style.queryRenderedFeatures(r,n,this.transform)},i.prototype.querySourceFeatures=function(e,t){return this.style.querySourceFeatures(e,t)},i.prototype.setStyle=function(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(t,n))},i.prototype._getUIString=function(e){var t=this._locale[e];if(null==t)throw new Error("Missing UI string '"+e+"'");return t},i.prototype._updateStyle=function(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Ht(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Ht(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(t,n){var r=this;if("string"==typeof t){var i=this._requestManager.normalizeStyleURL(t),o=this._requestManager.transformRequest(i,e.ResourceType.Style);e.getJSON(o,(function(t,i){t?r.fire(new e.ErrorEvent(t)):i&&r._updateDiff(i,n)}))}else"object"==typeof t&&this._updateDiff(t,n)},i.prototype._updateDiff=function(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+". Rebuilding the style from scratch."),this._updateStyle(t,n)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")},i.prototype.addSource=function(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)},i.prototype.isSourceLoaded=function(t){var n=this.style&&this.style.sourceCaches[t];if(void 0!==n)return n.loaded();this.fire(new e.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},i.prototype.areTilesLoaded=function(){var e=this.style&&this.style.sourceCaches;for(var t in e){var n=e[t]._tiles;for(var r in n){var i=n[r];if("loaded"!==i.state&&"errored"!==i.state)return!1}}return!0},i.prototype.addSourceType=function(e,t,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)},i.prototype.removeSource=function(e){return this.style.removeSource(e),this._update(!0)},i.prototype.getSource=function(e){return this.style.getSource(e)},i.prototype.addImage=function(t,n,r){void 0===r&&(r={});var i=r.pixelRatio;void 0===i&&(i=1);var o=r.sdf;void 0===o&&(o=!1);var a=r.stretchX,s=r.stretchY,u=r.content;if(this._lazyInitEmptyStyle(),n instanceof Ei||Ci&&n instanceof Ci){var l=e.browser.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:l.width,height:l.height},l.data),pixelRatio:i,stretchX:a,stretchY:s,content:u,sdf:o,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new e.ErrorEvent(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`")));var c=n;this.style.addImage(t,{data:new e.RGBAImage({width:n.width,height:n.height},new Uint8Array(n.data)),pixelRatio:i,stretchX:a,stretchY:s,content:u,sdf:o,version:0,userImage:c}),c.onAdd&&c.onAdd(this,t)}},i.prototype.updateImage=function(t,n){var r=this.style.getImage(t);if(!r)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var i=n instanceof Ei||Ci&&n instanceof Ci?e.browser.getImageData(n):n,o=i.width,a=i.height,s=i.data;return void 0===o||void 0===a?this.fire(new e.ErrorEvent(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`"))):o!==r.data.width||a!==r.data.height?this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(r.data.replace(s,!(n instanceof Ei||Ci&&n instanceof Ci)),void this.style.updateImage(t,r))},i.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)},i.prototype.removeImage=function(e){this.style.removeImage(e)},i.prototype.loadImage=function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)},i.prototype.moveLayer=function(e,t){return this.style.moveLayer(e,t),this._update(!0)},i.prototype.removeLayer=function(e){return this.style.removeLayer(e),this._update(!0)},i.prototype.getLayer=function(e){return this.style.getLayer(e)},i.prototype.setLayerZoomRange=function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)},i.prototype.setFilter=function(e,t,n){return void 0===n&&(n={}),this.style.setFilter(e,t,n),this._update(!0)},i.prototype.getFilter=function(e){return this.style.getFilter(e)},i.prototype.setPaintProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(e,t,n,r),this._update(!0)},i.prototype.getPaintProperty=function(e,t){return this.style.getPaintProperty(e,t)},i.prototype.setLayoutProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(e,t,n,r),this._update(!0)},i.prototype.getLayoutProperty=function(e,t){return this.style.getLayoutProperty(e,t)},i.prototype.setLight=function(e,t){return void 0===t&&(t={}),this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(e,t){return this.style.setFeatureState(e,t),this._update()},i.prototype.removeFeatureState=function(e,t){return this.style.removeFeatureState(e,t),this._update()},i.prototype.getFeatureState=function(e){return this.style.getFeatureState(e)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]},i.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},i.prototype._setupContainer=function(){var e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=n.create("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();var t=this._canvasContainer=n.create("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=n.create("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var i=this._controlContainer=n.create("div","mapboxgl-control-container",e),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(e){o[e]=n.create("div","mapboxgl-ctrl-"+e,i)})),this._container.addEventListener("scroll",this._onMapScroll,!1)},i.prototype._resizeCanvas=function(t,n){var r=e.browser.devicePixelRatio||1;this._canvas.width=r*t,this._canvas.height=r*n,this._canvas.style.width=t+"px",this._canvas.style.height=n+"px"},i.prototype._setupPainter=function(){var n=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new br(r,this.transform),e.webpSupported.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))},i.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))},i.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))},i.prototype._onMapScroll=function(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},i.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},i.prototype._update=function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(e){return this._update(),this._renderTaskQueue.add(e)},i.prototype._cancelRenderFrame=function(e){this._renderTaskQueue.remove(e)},i.prototype._render=function(t){var n,r=this,i=0,o=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=o.createQueryEXT(),o.beginQueryEXT(o.TIME_ELAPSED_EXT,n),i=e.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),!this._removed){var a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,u=e.browser.now();this.style.zoomHistory.update(s,u);var l=new e.EvaluationParameters(s,{now:u,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),c=l.crossFadingFactor();1===c&&c===this._crossFadingFactor||(a=!0,this._crossFadingFactor=c),this.style.update(l)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var p=e.browser.now()-i;o.endQueryEXT(o.TIME_ELAPSED_EXT,n),setTimeout((function(){var t=o.getQueryObjectEXT(n,o.QUERY_RESULT_EXT)/1e6;o.deleteQueryEXT(n),r.fire(new e.Event("gpu-timing-frame",{cpuTime:p,gpuTime:t}))}),50)}if(this.listens("gpu-timing-layer")){var f=this.painter.collectGpuTimers();setTimeout((function(){var t=r.painter.queryGpuTimers(f);r.fire(new e.Event("gpu-timing-layer",{layerTimes:t}))}),50)}var d=this._sourcesDirty||this._styleDirty||this._placementDirty;return d||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.Event("idle")),!this._loaded||this._fullyLoaded||d||(this._fullyLoaded=!0),this}},i.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,n=this._controls;t<n.length;t+=1)n[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),ki(this._canvasContainer),ki(this._controlContainer),ki(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new e.Event("remove"))},i.prototype.triggerRepaint=function(){var t=this;this.style&&!this._frame&&(this._frame=e.browser.frame((function(e){t._frame=null,t._render(e)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(e){this._trackResize&&this.resize({originalEvent:e})._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())},o.showPadding.get=function(){return!!this._showPadding},o.showPadding.set=function(e){this._showPadding!==e&&(this._showPadding=e,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())},o.vertices.get=function(){return!!this._vertices},o.vertices.set=function(e){this._vertices=e,this._update()},i.prototype._setCacheLimits=function(t,n){e.setCacheLimits(t,n)},o.version.get=function(){return e.version},Object.defineProperties(i.prototype,o),i}(gi);function ki(e){e.parentNode&&e.parentNode.removeChild(e)}var Ai={showCompass:!0,showZoom:!0,visualizePitch:!1},Ti=function(t){var r=this;this.options=e.extend({},Ai,t),this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(function(e){return r._map.zoomIn({},{originalEvent:e})})),n.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(function(e){return r._map.zoomOut({},{originalEvent:e})})),n.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(function(e){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:e}):r._map.resetNorth({},{originalEvent:e})})),this._compassIcon=n.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Ti.prototype._updateZoomButtons=function(){var e=this._map.getZoom(),t=e===this._map.getMaxZoom(),n=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())},Ti.prototype._rotateCompassArrow=function(){var e=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=e},Ti.prototype.onAdd=function(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Pi(this._map,this._compass,this.options.visualizePitch)),this._container},Ti.prototype.onRemove=function(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ti.prototype._createButton=function(e,t){var r=n.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r},Ti.prototype._setButtonTitle=function(e,t){var n=this._map._getUIString("NavigationControl."+t);e.title=n,e.setAttribute("aria-label",n)};var Pi=function(t,r,i){void 0===i&&(i=!1),this._clickTolerance=10,this.element=r,this.mouseRotate=new Yr({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,i&&(this.mousePitch=new Zr({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener(r,"mousedown",this.mousedown),n.addEventListener(r,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(r,"touchmove",this.touchmove),n.addEventListener(r,"touchend",this.touchend),n.addEventListener(r,"touchcancel",this.reset)};function Mi(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var i=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),a=r.locationPoint(t).distSqr(n);r.locationPoint(i).distSqr(n)<a?t=i:r.locationPoint(o).distSqr(n)<a&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){var s=r.locationPoint(t);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}Pi.prototype.down=function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),n.disableDrag()},Pi.prototype.move=function(e,t){var n=this.map,r=this.mouseRotate.mousemoveWindow(e,t);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(e,t);i&&i.pitchDelta&&n.setPitch(n.getPitch()+i.pitchDelta)}},Pi.prototype.off=function(){var e=this.element;n.removeEventListener(e,"mousedown",this.mousedown),n.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(e,"touchmove",this.touchmove),n.removeEventListener(e,"touchend",this.touchend),n.removeEventListener(e,"touchcancel",this.reset),this.offTemp()},Pi.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(e.window,"mousemove",this.mousemove),n.removeEventListener(e.window,"mouseup",this.mouseup)},Pi.prototype.mousedown=function(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),n.mousePos(this.element,t)),n.addEventListener(e.window,"mousemove",this.mousemove),n.addEventListener(e.window,"mouseup",this.mouseup)},Pi.prototype.mousemove=function(e){this.move(e,n.mousePos(this.element,e))},Pi.prototype.mouseup=function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()},Pi.prototype.touchstart=function(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return e.preventDefault()}},this._startPos))},Pi.prototype.touchmove=function(e){1!==e.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:function(){return e.preventDefault()}},this._lastPos))},Pi.prototype.touchend=function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},Pi.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var ji={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Ii(e,t,n){var r=e.classList;for(var i in ji)r.remove("mapboxgl-"+n+"-anchor-"+i);r.add("mapboxgl-"+n+"-anchor-"+t)}var Fi,Ri=function(t){function r(r,i){if(t.call(this),(r instanceof e.window.HTMLElement||i)&&(r=e.extend({element:r},i)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._scale=r&&r.scale||1,this._draggable=r&&r.draggable||!1,this._clickTolerance=r&&r.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=r&&r.rotation||0,this._rotationAlignment=r&&r.rotationAlignment||"auto",this._pitchAlignment=r&&r.pitchAlignment&&"auto"!==r.pitchAlignment?r.pitchAlignment:this._rotationAlignment,r&&r.element)this._element=r.element,this._offset=e.Point.convert(r&&r.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div"),this._element.setAttribute("aria-label","Map marker");var o=n.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var a=n.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");var s=n.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var u=n.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"transform","translate(3.0, 29.0)"),u.setAttributeNS(null,"fill","#000000");for(var l=0,c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];l<c.length;l+=1){var p=c[l],f=n.createNS("http://www.w3.org/2000/svg","ellipse");f.setAttributeNS(null,"opacity","0.04"),f.setAttributeNS(null,"cx","10.5"),f.setAttributeNS(null,"cy","5.80029008"),f.setAttributeNS(null,"rx",p.rx),f.setAttributeNS(null,"ry",p.ry),u.appendChild(f)}var d=n.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"fill",this._color);var h=n.createNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),d.appendChild(h);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var v=n.createNS("http://www.w3.org/2000/svg","path");v.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(v);var y=n.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var g=n.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(8.0, 8.0)");var b=n.createNS("http://www.w3.org/2000/svg","circle");b.setAttributeNS(null,"fill","#000000"),b.setAttributeNS(null,"opacity","0.25"),b.setAttributeNS(null,"cx","5.5"),b.setAttributeNS(null,"cy","5.5"),b.setAttributeNS(null,"r","5.4999962");var x=n.createNS("http://www.w3.org/2000/svg","circle");x.setAttributeNS(null,"fill","#FFFFFF"),x.setAttributeNS(null,"cx","5.5"),x.setAttributeNS(null,"cy","5.5"),x.setAttributeNS(null,"r","5.4999962"),g.appendChild(b),g.appendChild(x),s.appendChild(u),s.appendChild(d),s.appendChild(m),s.appendChild(y),s.appendChild(g),o.appendChild(s),o.setAttributeNS(null,"height",41*this._scale+"px"),o.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(o),this._offset=e.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(e){e.preventDefault()})),this._element.addEventListener("mousedown",(function(e){e.preventDefault()})),Ii(this._element,this._anchor,"marker"),this._popup=null}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.addTo=function(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},r.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},r.prototype.getElement=function(){return this._element},r.prototype.setPopup=function(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){var t=Math.sqrt(Math.pow(13.5,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,-1*(24.6+t)],"bottom-right":[-t,-1*(24.6+t)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},r.prototype._onKeyPress=function(e){var t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()},r.prototype._onMapClick=function(e){var t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()},r.prototype.getPopup=function(){return this._popup},r.prototype.togglePopup=function(){var e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this},r.prototype._update=function(e){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=Mi(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var t="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?t="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(t="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var r="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?r="rotateX(0deg)":"map"===this._pitchAlignment&&(r="rotateX("+this._map.getPitch()+"deg)"),e&&"moveend"!==e.type||(this._pos=this._pos.round()),n.setTransform(this._element,ji[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+r+" "+t)}},r.prototype.getOffset=function(){return this._offset},r.prototype.setOffset=function(t){return this._offset=e.Point.convert(t),this._update(),this},r.prototype._onMove=function(t){if(!this._isDragging){var n=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=n}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(e){return this._rotation=e||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(e){return this._rotationAlignment=e||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(e.Evented),zi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Li=0,Bi=!1,Ni=function(t){function r(n){t.call(this),this.options=e.extend({},zi,n),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.onAdd=function(t){var r;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Fi?r(Fi):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((function(e){r(Fi="denied"!==e.state)})):r(Fi=!!e.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Li=0,Bi=!1},r.prototype._isOutOfMapMaxBounds=function(e){var t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())},r.prototype._setErrorState=function(){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")}},r.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}},r.prototype._updateCamera=function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),o=e.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(t){if(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),n=this._map.unproject([1,e]),r=t.distanceTo(n),i=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.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;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Bi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(t){var r=this;if(this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var o=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ri(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ri({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",(function(t){t.geolocateSource||"ACTIVE_LOCK"!==r._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new e.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Li--,Bi=!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 e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;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){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Li>1?(t={maximumAge:6e5,timeout:0},Bi=!0):(t=this.options.positionOptions,Bi=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(e.Evented),Vi={maxWidth:100,unit:"metric"},Ui=function(t){this.options=e.extend({},Vi,t),e.bindAll(["_onMove","setUnit"],this)};function Hi(e,t,n){var r=n&&n.maxWidth||100,i=e._container.clientHeight/2,o=e.unproject([0,i]),a=e.unproject([r,i]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){var u=3.2808*s;u>5280?Wi(t,r,u/5280,e._getUIString("ScaleControl.Miles")):Wi(t,r,u,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Wi(t,r,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Wi(t,r,s/1e3,e._getUIString("ScaleControl.Kilometers")):Wi(t,r,s,e._getUIString("ScaleControl.Meters"))}function Wi(e,t,n,r){var i,o,a,s=(i=n,(o=Math.pow(10,(""+Math.floor(i)).length-1))*(a=(a=i/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(a)));e.style.width=t*(s/n)+"px",e.innerHTML=s+" "+r}Ui.prototype.getDefaultPosition=function(){return"bottom-left"},Ui.prototype._onMove=function(){Hi(this._map,this._container,this.options)},Ui.prototype.onAdd=function(e){return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ui.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ui.prototype.setUnit=function(e){this.options.unit=e,Hi(this._map,this._container,this.options)};var Gi=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};Gi.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Gi.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Gi.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},Gi.prototype._setupUI=function(){var t=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Gi.prototype._updateTitle=function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},Gi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Gi.prototype._isFullscreen=function(){return this._fullscreen},Gi.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Gi.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var qi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Yi=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Zi=function(t){function r(n){t.call(this),this.options=e.extend(Object.create(qi),n),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.addTo=function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},r.prototype.setHTML=function(t){var n,r=e.window.document.createDocumentFragment(),i=e.window.document.createElement("body");for(i.innerHTML=t;n=i.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},r.prototype.setDOMContent=function(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(e){this._container&&this._container.classList.add(e)},r.prototype.removeClassName=function(e){this._container&&this._container.classList.remove(e)},r.prototype.setOffset=function(e){return this.options.offset=e,this._update(),this},r.prototype.toggleClassName=function(e){if(this._container)return this._container.classList.toggle(e)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(e){this._update(e.point)},r.prototype._onMouseMove=function(e){this._update(e.point)},r.prototype._onDrag=function(e){this._update(e.point)},r.prototype._update=function(t){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(e){return r._container.classList.add(e)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Mi(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var i=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),o=this.options.anchor,a=function t(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new e.Point(0,0),top:new e.Point(0,n),"top-left":new e.Point(r,r),"top-right":new e.Point(-r,r),bottom:new e.Point(0,-n),"bottom-left":new e.Point(r,-r),"bottom-right":new e.Point(-r,-r),left:new e.Point(n,0),right:new e.Point(-n,0)}}if(n instanceof e.Point||Array.isArray(n)){var i=e.Point.convert(n);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:e.Point.convert(n.center||[0,0]),top:e.Point.convert(n.top||[0,0]),"top-left":e.Point.convert(n["top-left"]||[0,0]),"top-right":e.Point.convert(n["top-right"]||[0,0]),bottom:e.Point.convert(n.bottom||[0,0]),"bottom-left":e.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(n["bottom-right"]||[0,0]),left:e.Point.convert(n.left||[0,0]),right:e.Point.convert(n.right||[0,0])}}return t(new e.Point(0,0))}(this.options.offset);if(!o){var s,u=this._container.offsetWidth,l=this._container.offsetHeight;s=i.y+a.bottom.y<l?["top"]:i.y>this._map.transform.height-l?["bottom"]:[],i.x<u/2?s.push("left"):i.x>this._map.transform.width-u/2&&s.push("right"),o=0===s.length?"bottom":s.join("-")}var c=i.add(a[o]).round();n.setTransform(this._container,ji[o]+" translate("+c.x+"px,"+c.y+"px)"),Ii(this._container,o,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var e=this._container.querySelector(Yi);e&&e.focus()}},r.prototype._onClose=function(){this.remove()},r}(e.Evented),$i={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Si,NavigationControl:Ti,GeolocateControl:Ni,AttributionControl:bi,ScaleControl:Ui,FullscreenControl:Gi,Popup:Zi,Marker:Ri,Style:Ht,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:function(){Le().acquire(Ie)},clearPrewarmedResources:function(){var e=Re;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Ie),Re=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 e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return Fe.workerCount},set workerCount(e){Fe.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return $i})),n}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=r.createContext();function o(){return r.useContext(i)}t.a=i},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(493),i=n(547),o=n(103),a=n(23),s=n(556);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){var r=n(91),i=n(23),o=n(79);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return p}));var r=n(15);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"===typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(p)(e,t)}if("function"!==typeof e)throw new Error(a(2));var i=e,o=t,u=[],f=u,d=!1;function h(){f===u&&(f=u.slice())}function m(){if(d)throw new Error(a(3));return o}function v(e){if("function"!==typeof e)throw new Error(a(4));if(d)throw new Error(a(5));var t=!0;return h(),f.push(e),function(){if(t){if(d)throw new Error(a(6));t=!1,h();var n=f.indexOf(e);f.splice(n,1),u=null}}}function y(e){if(!c(e))throw new Error(a(7));if("undefined"===typeof e.type)throw new Error(a(8));if(d)throw new Error(a(9));try{d=!0,o=i(o,e)}finally{d=!1}for(var t=u=f,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!==typeof e)throw new Error(a(10));i=e,y({type:l.REPLACE})}function b(){var e,t=v;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return y({type:l.INIT}),(r={dispatch:y,subscribe:v,getState:m,replaceReducer:g})[s]=b,r}function f(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:l.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(u){o=u}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},u=0;u<s.length;u++){var l=s[u],c=n[l],p=e[l],f=c(p,t);if("undefined"===typeof f){t&&t.type;throw new Error(a(14))}i[l]=f,r=r||f!==p}return(r=r||s.length!==Object.keys(e).length)?i:e}}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=d.apply(void 0,s)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _t})),n.d(t,"f",(function(){return sr})),n.d(t,"e",(function(){return gr})),n.d(t,"a",(function(){return Pr})),n.d(t,"c",(function(){return uf})),n.d(t,"g",(function(){return vf})),n.d(t,"h",(function(){return Df})),n.d(t,"d",(function(){return tm}));var r={};n.r(r),n.d(r,"scaleBand",(function(){return sa})),n.d(r,"scalePoint",(function(){return la})),n.d(r,"scaleIdentity",(function(){return Ts})),n.d(r,"scaleLinear",(function(){return As})),n.d(r,"scaleLog",(function(){return Bs})),n.d(r,"scaleSymlog",(function(){return Hs})),n.d(r,"scaleOrdinal",(function(){return aa})),n.d(r,"scaleImplicit",(function(){return oa})),n.d(r,"scalePow",(function(){return Zs})),n.d(r,"scaleSqrt",(function(){return $s})),n.d(r,"scaleQuantile",(function(){return Ks})),n.d(r,"scaleQuantize",(function(){return Xs})),n.d(r,"scaleThreshold",(function(){return Js})),n.d(r,"scaleTime",(function(){return uc})),n.d(r,"scaleUtc",(function(){return mc})),n.d(r,"scaleSequential",(function(){return gc})),n.d(r,"scaleSequentialLog",(function(){return bc})),n.d(r,"scaleSequentialPow",(function(){return _c})),n.d(r,"scaleSequentialSqrt",(function(){return wc})),n.d(r,"scaleSequentialSymlog",(function(){return xc})),n.d(r,"scaleSequentialQuantile",(function(){return Ec})),n.d(r,"scaleDiverging",(function(){return Cc})),n.d(r,"scaleDivergingLog",(function(){return Oc})),n.d(r,"scaleDivergingPow",(function(){return kc})),n.d(r,"scaleDivergingSqrt",(function(){return Ac})),n.d(r,"scaleDivergingSymlog",(function(){return Sc})),n.d(r,"tickFormat",(function(){return Ss}));n(441),n(463);if(!Object.setPrototypeOf&&!{}.__proto__){var i=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:i.call(Object,e)}}var o=n(12),a=n.n(o),s=n(115),u=n.n(s),l=n(0),c=n.n(l),p=n(1),f=n.n(p),d=n(19),h=n.n(d),m=n(13),v=n.n(m),y=n(74),g=n.n(y),b=n(42),x=n.n(b),_=n(23),w=n.n(_),E=n(108),D=n.n(E),C=n(126),O=n.n(C),S=n(109),k=n.n(S),A=function(e){return 0===e?0:e>0?1:-1},T=function(e){return g()(e)&&e.indexOf("%")===e.length-1},P=function(e){return k()(e)&&!O()(e)},M=function(e){return P(e)||g()(e)},j=0,I=function(e){var t=++j;return"".concat(e||"").concat(t)},F=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!P(e)&&!g()(e))return r;if(T(e)){var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return O()(n)&&(n=r),i&&n>t&&(n=t),n},R=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},z=function(e,t){return P(e)&&P(t)?function(n){return e+n*(t-e)}:function(){return t}},L=function(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):D()(e,t))===n})):null};function B(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function N(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function V(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var U={"aria-current":f.a.string,"aria-details":f.a.any,"aria-disabled":f.a.any,"aria-hidden":f.a.any,"aria-invalid":f.a.any,"aria-keyshortcuts":f.a.any,"aria-label":f.a.any,"aria-roledescription":f.a.any,"aria-autocomplete":f.a.any,"aria-checked":f.a.any,"aria-expanded":f.a.any,"aria-haspopup":f.a.any,"aria-level":f.a.any,"aria-modal":f.a.any,"aria-multiline":f.a.any,"aria-multiselectable":f.a.any,"aria-orientation":f.a.any,"aria-placeholder":f.a.any,"aria-pressed":f.a.any,"aria-readonly":f.a.any,"aria-required":f.a.any,"aria-selected":f.a.any,"aria-sort":f.a.any,"aria-valuemax":f.a.any,"aria-valuemin":f.a.any,"aria-valuenow":f.a.any,"aria-valuetext":f.a.any,"aria-atomic":f.a.any,"aria-busy":f.a.any,"aria-live":f.a.any,"aria-relevant":f.a.any,"aria-dropeffect":f.a.any,"aria-grabbed":f.a.any,"aria-activedescendant":f.a.any,"aria-colcount":f.a.any,"aria-colindex":f.a.any,"aria-colspan":f.a.any,"aria-controls":f.a.any,"aria-describedby":f.a.any,"aria-errormessage":f.a.any,"aria-flowto":f.a.any,"aria-labelledby":f.a.any,"aria-owns":f.a.any,"aria-posinset":f.a.any,"aria-rowcount":f.a.any,"aria-rowindex":f.a.any,"aria-rowspan":f.a.any,"aria-setsize":f.a.any,alignmentBaseline:f.a.string,angle:f.a.number,baselineShift:f.a.string,clip:f.a.string,clipPath:f.a.string,clipRule:f.a.string,color:f.a.string,colorInterpolation:f.a.string,colorInterpolationFilters:f.a.string,colorProfile:f.a.string,colorRendering:f.a.string,cursor:f.a.string,direction:f.a.oneOf(["ltr","rtl","inherit"]),display:f.a.string,dominantBaseline:f.a.string,enableBackground:f.a.string,fill:f.a.string,fillOpacity:f.a.oneOfType([f.a.string,f.a.number]),fillRule:f.a.oneOf(["nonzero","evenodd","inherit"]),filter:f.a.string,floodColor:f.a.string,floodOpacity:f.a.oneOfType([f.a.string,f.a.number]),font:f.a.string,fontFamily:f.a.string,fontSize:f.a.oneOfType([f.a.number,f.a.string]),fontSizeAdjust:f.a.oneOfType([f.a.number,f.a.string]),fontStretch:f.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:f.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:f.a.oneOf(["normal","small-caps","inherit"]),fontWeight:f.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:f.a.string,glyphOrientationVertical:f.a.string,imageRendering:f.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:f.a.oneOfType([f.a.number,f.a.string]),letterSpacing:f.a.oneOfType([f.a.number,f.a.string]),lightingColor:f.a.string,lineHeight:f.a.oneOfType([f.a.number,f.a.string]),markerEnd:f.a.string,markerMid:f.a.string,markerStart:f.a.string,mask:f.a.string,opacity:f.a.oneOfType([f.a.number,f.a.string]),overflow:f.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:f.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:f.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:f.a.string,stopOpacity:f.a.oneOfType([f.a.number,f.a.string]),stroke:f.a.oneOfType([f.a.number,f.a.string]),strokeDasharray:f.a.string,strokeDashoffset:f.a.oneOfType([f.a.number,f.a.string]),strokeLinecap:f.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:f.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:f.a.oneOfType([f.a.number,f.a.string]),strokeOpacity:f.a.oneOfType([f.a.number,f.a.string]),strokeWidth:f.a.oneOfType([f.a.number,f.a.string]),textAnchor:f.a.oneOf(["start","middle","end","inherit"]),textDecoration:f.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:f.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:f.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:f.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:f.a.oneOfType([f.a.number,f.a.string]),writingMode:f.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:f.a.string,role:f.a.string,focusable:f.a.string,tabIndex:f.a.string,style:f.a.object,width:f.a.number,height:f.a.number,dx:f.a.number,dy:f.a.number,x:f.a.number,y:f.a.number,r:f.a.number,radius:f.a.oneOfType([f.a.number,f.a.array])},H={onClick:f.a.func,onMouseDown:f.a.func,onMouseUp:f.a.func,onMouseOver:f.a.func,onMouseMove:f.a.func,onMouseOut:f.a.func,onMouseEnter:f.a.func,onMouseLeave:f.a.func,onTouchEnd:f.a.func,onTouchMove:f.a.func,onTouchStart:f.a.func,onTouchCancel:f.a.func},W={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},G=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],q=["none"],Y=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},Z=function(e,t){var n=[],r=[];return r=w()(t)?t.map((function(e){return Y(e)})):[Y(t)],c.a.Children.forEach(e,(function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)})),n},$=function(e,t){var n=Z(e,t);return n&&n[0]},K=function(e){if(!e||a()(e))return null;var t=c.a.isValidElement(e)?e.props:e;if(!x()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&U[r]&&(n||(n={}),n[r]=t[r]);return n},X=function(e,t){return function(n){return e(t,n),null}},J=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||a()(e))return null;var r=c.a.isValidElement(e)?e.props:e;if(!x()(r))return null;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&H[o]&&(i||(i={}),i[o]=t||(n?X(r[o],r):r[o]));return i},Q=function(e,t,n){return function(r){return e(t,n,r),null}},ee=function(e,t,n){if(!x()(e))return null;var r=null;for(var i in e)({}).hasOwnProperty.call(e,i)&&H[i]&&a()(e[i])&&(r||(r={}),r[i]=Q(e[i],t,n));return r},te=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!P(n)||n<=0||!P(r)||r<=0)},ne=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},re=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ie=function(e,t){if(v()(e)&&v()(t))return!0;if(!v()(e)&&!v()(t)){var n=e.props||{},r=n.children,i=V(n,["children"]),o=t.props||{},a=o.children,s=V(o,["children"]);return r&&a?B(i,s)&&oe(r,a):!r&&!a&&B(i,s)}return!1},oe=function e(t,n){if(t===n)return!0;if(l.Children.count(t)!==l.Children.count(n))return!1;var r=l.Children.count(t);if(0===r)return!0;if(1===r)return ie(w()(t)?t[0]:t,w()(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(w()(o)||w()(a)){if(!e(o,a))return!1}else if(!ie(o,a))return!1}return!0},ae=function(e,t){var n=[],r={};return l.Children.forEach(e,(function(e,i){if(e&&function(e){return e&&e.type&&g()(e.type)&&re.indexOf(e.type)>=0}(e))n.push(e);else if(e&&t[Y(e.type)]){var o=Y(e.type),a=t[o],s=a.handler,u=a.once;if(u&&!r[o]||!u){var l=s(e,o,i);w()(l)?n=[n].concat(N(l)):n.push(l),r[o]=!0}}})),n},se=function(e,t){var n=-1;return l.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n};function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function le(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ce={width:f.a.number.isRequired,height:f.a.number.isRequired,viewBox:f.a.shape({x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number}),className:f.a.string,style:f.a.object,children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node])};function pe(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=le(e,["children","width","height","viewBox","className","style"]),u=i||{width:n,height:r,x:0,y:0},l=h()("recharts-surface",o),p=K(s);return c.a.createElement("svg",ue({},p,{className:l,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height),version:"1.1"}),t)}pe.propTypes=ce;var fe=pe,de=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),he=2*de;var me={draw:function(e,t){var n=Math.sqrt(t/de);e.moveTo(n,0),e.arc(0,0,n,0,he)}},ve={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ye=Math.sqrt(1/3),ge=2*ye,be={draw:function(e,t){var n=Math.sqrt(t/ge),r=n*ye;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},xe={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},_e=Math.sin(de/10)/Math.sin(7*de/10),we=Math.sin(he/10)*_e,Ee=-Math.cos(he/10)*_e,De={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=we*n,i=Ee*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=he*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Ce=Math.sqrt(3),Oe={draw:function(e,t){var n=-Math.sqrt(t/(3*Ce));e.moveTo(0,2*n),e.lineTo(-Ce*n,-n),e.lineTo(Ce*n,-n),e.closePath()}},Se=Math.sqrt(3)/2,ke=1/Math.sqrt(12),Ae=3*(ke/2+1),Te={draw:function(e,t){var n=Math.sqrt(t/Ae),r=n/2,i=n*ke,o=r,a=n*ke+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*r-Se*i,Se*r+-.5*i),e.lineTo(-.5*o-Se*a,Se*o+-.5*a),e.lineTo(-.5*s-Se*u,Se*s+-.5*u),e.lineTo(-.5*r+Se*i,-.5*i-Se*r),e.lineTo(-.5*o+Se*a,-.5*a-Se*o),e.lineTo(-.5*s+Se*u,-.5*u-Se*s),e.closePath()}},Pe=Math.PI,Me=2*Pe,je=Me-1e-6;function Ie(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Fe(){return new Ie}Ie.prototype=Fe.prototype={constructor:Ie,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,p=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>1e-6)if(Math.abs(c*s-u*l)>1e-6&&i){var f=n-o,d=r-a,h=s*s+u*u,m=f*f+d*d,v=Math.sqrt(h),y=Math.sqrt(p),g=i*Math.tan((Pe-Math.acos((h+p-m)/(2*v*y)))/2),b=g/y,x=g/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*d)+","+(this._x1=e+x*s)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,p=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(p<0&&(p=p%Me+Me),p>je?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=Pe)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Re=Fe,ze=function(e){return function(){return e}};function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e){return(Ne="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)}function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t){return!t||"object"!==Ne(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qe(e,t){return(qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ye={symbolCircle:me,symbolCross:ve,symbolDiamond:be,symbolSquare:xe,symbolStar:De,symbolTriangle:Oe,symbolWye:Te},Ze=Math.PI/180,$e=function(e){function t(){return Ue(this,t),We(this,Ge(t).apply(this,arguments))}var n,r,i;return 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}}),t&&qe(e,t)}(t,e),n=t,(r=[{key:"getPath",value:function(){var e=this.props,t=e.size,n=e.sizeType,r=e.type,i=function(e){var t="symbol".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));return Ye[t]||me}(r);return function(){var e=ze(me),t=ze(64),n=null;function r(){var r;if(n||(n=r=Re()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:ze(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:ze(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(i).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*Ze;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,n,r))()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cx,r=e.cy,i=e.size;return n===+n&&r===+r&&i===+i?c.a.createElement("path",Ve({},K(this.props),J(this.props),{className:h()("recharts-symbols",t),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}])&&He(n.prototype,r),i&&He(n,i),t}(l.PureComponent);$e.displayName="Symbols",$e.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(n,!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U,{className:f.a.string,type:f.a.oneOf(["circle","cross","diamond","square","star","triangle","wye"]),cx:f.a.number,cy:f.a.number,size:f.a.number,sizeType:f.a.oneOf(["area","diameter"])}),$e.defaultProps={type:"circle",size:64,sizeType:"area"};var Ke=$e;function Xe(e){return(Xe="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)}function Je(){return(Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nt(e,t){return!t||"object"!==Xe(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function it(e,t){return(it=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ot=G.filter((function(e){return"none"!==e})),at=function(e){function t(){return et(this,t),nt(this,rt(t).apply(this,arguments))}var n,r,i;return 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}}),t&&it(e,t)}(t,e),n=t,(r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=e.inactive?t:e.color;return"plainline"===e.type?c.a.createElement("line",{strokeWidth:4,fill:"none",stroke:n,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"}):"line"===e.type?c.a.createElement("path",{strokeWidth:4,fill:"none",stroke:n,d:"M0,".concat(16,"h").concat(32/3,"\n A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3*2,",").concat(16,"\n H").concat(32,"M").concat(32/3*2,",").concat(16,"\n A").concat(32/6,",").concat(32/6,",0,1,1,").concat(32/3,",").concat(16),className:"recharts-legend-icon"}):"rect"===e.type?c.a.createElement("path",{stroke:"none",fill:n,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"}):c.a.createElement(Ke,{fill:n,cx:16,cy:16,size:32,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,o=t.formatter,a={x:0,y:0,width:32,height:32},s={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var i,l=t.formatter||o,p=h()((Qe(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Qe(i,"inactive",t.inactive),i));return"none"===t.type?null:c.a.createElement("li",Je({className:p,style:s,key:"legend-item-".concat(n)},ee(e.props,t,n)),c.a.createElement(fe,{width:r,height:r,viewBox:a,style:u},e.renderIcon(t)),c.a.createElement("span",{className:"recharts-legend-item-text"},l?l(t.value,t,n):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return c.a.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])&&tt(n.prototype,r),i&&tt(n,i),t}(l.PureComponent);at.displayName="Legend",at.propTypes={content:f.a.element,iconSize:f.a.number,iconType:f.a.oneOf(ot),layout:f.a.oneOf(["horizontal","vertical"]),align:f.a.oneOf(["center","left","right"]),verticalAlign:f.a.oneOf(["top","bottom","middle"]),payload:f.a.arrayOf(f.a.shape({value:f.a.any,id:f.a.any,type:f.a.oneOf(G)})),inactiveColor:f.a.string,formatter:f.a.func,onMouseEnter:f.a.func,onMouseLeave:f.a.func,onClick:f.a.func},at.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var st=at;function ut(e){return(ut="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)}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(n,!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e,t){return!t||"object"!==ut(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mt(e){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yt=function(e){return e.value},gt=function(e,t){return!0===e?u()(t,yt):a()(e)?u()(t,e):t},bt=G.filter((function(e){return"none"!==e})),xt=function(e){function t(){var e,n;ft(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=ht(this,(e=mt(t)).call.apply(e,[this].concat(i)))).state={boxWidth:-1,boxHeight:-1},n}var n,r,i;return 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}}),t&&vt(e,t)}(t,e),n=t,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&P(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return t>=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBox()||{width:0}).width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((l||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),ct({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){r&&r(i)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,o=t.wrapperStyle,s=t.paylodUniqBy,u=t.payload,l=ct({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o),{},o);return c.a.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(st,t)}(n,ct({},this.props,{payload:gt(s,u)})))}}])&&dt(n.prototype,r),i&&dt(n,i),t}(l.PureComponent);xt.displayName="Legend",xt.propTypes={content:f.a.oneOfType([f.a.element,f.a.func]),wrapperStyle:f.a.object,chartWidth:f.a.number,chartHeight:f.a.number,width:f.a.number,height:f.a.number,iconSize:f.a.number,iconType:f.a.oneOf(bt),layout:f.a.oneOf(["horizontal","vertical"]),align:f.a.oneOf(["center","left","right"]),verticalAlign:f.a.oneOf(["top","bottom","middle"]),margin:f.a.shape({top:f.a.number,left:f.a.number,bottom:f.a.number,right:f.a.number}),payload:f.a.arrayOf(f.a.shape({value:f.a.any,id:f.a.any,type:f.a.oneOf(G)})),paylodUniqBy:f.a.oneOfType([f.a.func,f.a.bool]),formatter:f.a.func,onMouseEnter:f.a.func,onMouseLeave:f.a.func,onClick:f.a.func,onBBoxUpdate:f.a.func},xt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var _t=xt,wt=n(110),Et=n.n(wt),Dt=n(86),Ct=n.n(Dt);function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):Ct()(r)};Ct()(r)}function St(e){return(St="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)}function kt(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function At(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var i=kt(r),o=i[0],a=i.slice(1);return"number"===typeof o?void Ot(n.bind(null,a),o):(n(o),void Ot(n.bind(null,a)))}"object"===St(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var Tt=n(343),Pt=n.n(Tt);function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jt(e,t,n[t])}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=["Webkit","Moz","O","ms"],Ft=["-webkit-","-moz-","-o-","-ms-"],Rt=["transform","transformOrigin","transition"],zt=function(e){return e},Lt=function(e,t){return Object.keys(t).reduce((function(n,r){return Mt({},n,jt({},r,e(r,t[r])))}),{})},Bt=function(e){return Object.keys(e).reduce((function(e,t){return Mt({},e,function(e,t){if(-1===Rt.indexOf(e))return jt({},e,t);var n="transition"===e,r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),i=t;return It.reduce((function(e,o,a){return n&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(Ft[a],"$1"))),Mt({},e,jt({},o+r,i))}),{})}(t,e[t]))}),e)},Nt=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ut(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ht=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},Wt=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},Gt=function(e,t){return function(n){var r=Ht(e,t);return Wt(r,n)}},qt=function(e,t){return function(n){var r=Ut(Ht(e,t).map((function(e,t){return e*t})).slice(1)).concat([0]);return Wt(r,n)}},Yt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var u=s[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),l=Vt(u,4);r=l[0],i=l[1],o=l[2],a=l[3]}}[r,o,i,a].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var c=Gt(r,o),p=Gt(i,a),f=qt(r,o),d=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=c(n)-t,o=f(n);if(Math.abs(i-t)<1e-4||o<1e-4)return p(n);n=d(n-i/o)}return p(n)};return h.isStepper=!1,h},Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,i=void 0===r?8:r,o=e.dt,a=void 0===o?17:o,s=function(e,t,r){var o=r+(-(e-t)*n-r*i)*a/1e3,s=r*a/1e3+e;return Math.abs(s-t)<1e-4&&Math.abs(o)<1e-4?[t,0]:[s,o]};return s.isStepper=!0,s.dt=a,s},$t=n(344),Kt=n.n($t);function Xt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qt(e,t,n[t])}))}return e}function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var tn=function(e,t,n){return e+(t-e)*n},nn=function(e){return e.from!==e.to},rn=function(e,t,n,r,i){var o,a,s,u,l=(o=e,a=t,Pt()(Object.keys(o),Object.keys(a))),c=l.reduce((function(n,r){return Jt({},n,Qt({},r,[e[r],t[r]]))}),{}),p=l.reduce((function(n,r){return Jt({},n,Qt({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),f=-1,d=function(){return null};return d=n.isStepper?function(r){s||(s=r);var o=(r-s)/n.dt;p=function e(t,n,r){var i=Lt((function(e,n){if(nn(n)){var r=en(t(n.from,n.to,n.velocity),2);return Jt({},n,{from:r[0],velocity:r[1]})}return n}),n);return r<1?Lt((function(e,t){return nn(t)?Jt({},t,{velocity:tn(t.velocity,i[e].velocity,r),from:tn(t.from,i[e].from,r)}):t}),n):e(t,i,r-1)}(n,p,o),i(Jt({},e,t,Lt((function(e,t){return t.from}),p))),s=r,Kt()(p,nn).length&&(f=Ct()(d))}:function(o){u||(u=o);var a=(o-u)/r,s=Lt((function(e,t){return tn.apply(void 0,Xt(t).concat([n(a)]))}),c);if(i(Jt({},e,t,s)),a<1)f=Ct()(d);else{var l=Lt((function(e,t){return tn.apply(void 0,Xt(t).concat([n(1)]))}),c);i(Jt({},e,t,l))}},function(){return Ct()(d),function(){Object(Dt.cancel)(f)}}};function on(e){return(on="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)}function an(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ln(e,t,n[t])}))}return e}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pn(e,t){return!t||"object"!==on(t)&&"function"!==typeof t?hn(e):t}function fn(e){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dn(e,t){return(dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mn=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=(r=pn(this,fn(t).call(this,e,n))).props,o=i.isActive,a=i.attributeName,s=i.from,u=i.to,l=i.steps,c=i.children;if(r.handleStyleChange=r.handleStyleChange.bind(hn(hn(r))),r.changeStyle=r.changeStyle.bind(hn(hn(r))),!o)return r.state={style:{}},"function"===typeof c&&(r.state={style:u}),pn(r);if(l&&l.length)r.state={style:l[0].style};else if(s){if("function"===typeof c)return r.state={style:s},pn(r);r.state={style:a?ln({},a,s):s}}else r.state={style:{}};return r}var n,r,i;return 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}}),t&&dn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,o=t.shouldReAnimate;if(r)if(n){if(!(Et()(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=a||o?this.props.from:e.to;if(this.state&&this.state.style){var u={style:i?ln({},i,s):s};(i&&this.state.style[i]!==s||!i&&this.state.style!==s)&&this.setState(u)}this.runAnimation(un({},this.props,{from:s,begin:0}))}}else{var l={style:i?ln({},i,this.props.to):this.props.to};this.state&&this.state.style&&(i&&this.state.style[i]!==this.props.to||!i&&this.state.style!==this.props.to)&&this.setState(l)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,o=e.easing,a=e.begin,s=e.onAnimationEnd,u=e.onAnimationStart,l=rn(n,r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Yt(r);case"spring":return Zt();default:if("cubic-bezier"===r.split("(")[0])return Yt(r)}return"function"===typeof r?r:null}(o),i,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=l()},i,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,o=n[0],a=o.style,s=o.duration,u=void 0===s?0:s;return this.manager.start([i].concat(sn(n.reduce((function(e,r,i){if(0===i)return e;var o=r.duration,a=r.easing,s=void 0===a?"ease":a,u=r.style,l=r.properties,c=r.onAnimationEnd,p=i>0?n[i-1]:r,f=l||Object.keys(u);if("function"===typeof s||"spring"===s)return sn(e).concat([t.runJSAnimation.bind(t,{from:p.style,to:u,duration:o,easing:s}),o]);var d=Nt(f,o,s),h=un({},p.style,u,{transition:d});return sn(e).concat([h,o,c]).filter(zt)}),[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=At());var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,o=e.easing,a=e.onAnimationStart,s=e.onAnimationEnd,u=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof o&&"function"!==typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(e);else{var p=r?ln({},r,i):i,f=Nt(Object.keys(p),n,o);c.start([a,t,un({},p,{transition:f}),n,s])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,an(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=l.Children.count(t),o=Bt(this.state.style);if("function"===typeof t)return t(o);if(!n||0===i)return t;var a=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,a=t.className;return Object(l.cloneElement)(e,un({},r,{style:un({},i,o),className:a}))};return 1===i?a(l.Children.only(t)):c.a.createElement("div",null,l.Children.map(t,(function(e){return a(e)})))}}])&&cn(n.prototype,r),i&&cn(n,i),t}(l.PureComponent);mn.displayName="Animate",mn.propTypes={from:f.a.oneOfType([f.a.object,f.a.string]),to:f.a.oneOfType([f.a.object,f.a.string]),attributeName:f.a.string,duration:f.a.number,begin:f.a.number,easing:f.a.oneOfType([f.a.string,f.a.func]),steps:f.a.arrayOf(f.a.shape({duration:f.a.number.isRequired,style:f.a.object.isRequired,easing:f.a.oneOfType([f.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),f.a.func]),properties:f.a.arrayOf("string"),onAnimationEnd:f.a.func})),children:f.a.oneOfType([f.a.node,f.a.func]),isActive:f.a.bool,canBegin:f.a.bool,onAnimationEnd:f.a.func,shouldReAnimate:f.a.bool,onAnimationStart:f.a.func,onAnimationReStart:f.a.func},mn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var vn=mn,yn=n(159);function gn(e){return(gn="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)}function bn(){return(bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dn(e,t){return!t||"object"!==gn(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function On(e,t){return(On=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(k()(t.duration)&&t.duration>0?t.duration:0)}),0):k()(n)?n:0},kn=function(e){function t(){var e,n;wn(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Dn(this,(e=Cn(t)).call.apply(e,[this].concat(i)))).state={isActive:!1},n.handleEnter=function(e,t){var r=n.props,i=r.appearOptions,o=r.enterOptions;n.handleStyleActive(t?i:o)},n.handleExit=function(){n.handleStyleActive(n.props.leaveOptions)},n}var n,r,i;return 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}}),t&&On(e,t)}(t,e),n=t,(r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_n(e,t,n[t])}))}return e}({},e,{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return Sn(t)+Sn(n)+Sn(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,xn(t,["children","appearOptions","enterOptions","leaveOptions"]));return c.a.createElement(yn.Transition,bn({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return c.a.createElement(vn,e.state,l.Children.only(n))}))}}])&&En(n.prototype,r),i&&En(n,i),t}(l.Component);kn.propTypes={appearOptions:f.a.object,enterOptions:f.a.object,leaveOptions:f.a.object,children:f.a.element};var An=kn;function Tn(e){var t=e.component,n=e.children,r=e.appear,i=e.enter,o=e.leave;return c.a.createElement(yn.TransitionGroup,{component:t},l.Children.map(n,(function(e,t){return c.a.createElement(An,{appearOptions:r,enterOptions:i,leaveOptions:o,key:"child-".concat(t)},e)})))}Tn.propTypes={appear:f.a.object,enter:f.a.object,leave:f.a.object,children:f.a.oneOfType([f.a.array,f.a.element]),component:f.a.any},Tn.defaultProps={component:"span"};var Pn=vn,Mn=n(111),jn=n.n(Mn);function In(e){return(In="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)}function Fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(n,!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,t){return!t||"object"!==In(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hn(e,t){return(Hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wn=function(e){return w()(e)&&M(e[0])&&M(e[1])?e.join(" ~ "):e},Gn=function(e){function t(){return Bn(this,t),Vn(this,Un(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Hn(e,t)}(t,e),n=t,(r=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=e.separator,r=e.formatter,i=e.itemStyle,o=e.itemSorter;if(t&&t.length){var a=(o?jn()(t,o):t).map((function(e,t){if("none"===e.type)return null;var o=zn({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),a=e.formatter||r||Wn,s=e.name,u=e.value;if(a){var l=a(u,s,e,t);if(Array.isArray(l)){var p=Fn(l,2);u=p[0],s=p[1]}else u=l}return c.a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:o},M(s)?c.a.createElement("span",{className:"recharts-tooltip-item-name"},s):null,M(s)?c.a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,c.a.createElement("span",{className:"recharts-tooltip-item-value"},u),c.a.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return c.a.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},a)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,n=e.contentStyle,r=e.labelClassName,i=e.labelStyle,o=e.label,a=e.labelFormatter,s=zn({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),u=zn({margin:0},i),l=M(o),p=l?o:"",f=h()("recharts-default-tooltip",t),d=h()("recharts-tooltip-label",r);return l&&a&&(p=a(o)),c.a.createElement("div",{className:f,style:s},c.a.createElement("p",{className:d,style:u},p),this.renderContent())}}])&&Nn(n.prototype,r),i&&Nn(n,i),t}(l.PureComponent);Gn.displayName="DefaultTooltipContent",Gn.propTypes={separator:f.a.string,wrapperClassName:f.a.string,labelClassName:f.a.string,formatter:f.a.func,contentStyle:f.a.object,itemStyle:f.a.object,labelStyle:f.a.object,labelFormatter:f.a.func,label:f.a.any,payload:f.a.arrayOf(f.a.shape({name:f.a.any,value:f.a.oneOfType([f.a.number,f.a.string,f.a.array]),unit:f.a.any})),itemSorter:f.a.func},Gn.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var qn=Gn;function Yn(e){return(Yn="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)}function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(n,!0).forEach((function(t){Kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t){return!t||"object"!==Yn(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nr="recharts-tooltip-wrapper",rr=function(e){return e.dataKey},ir={allowEscapeViewBox:f.a.shape({x:f.a.boolean,y:f.a.boolean}),content:f.a.oneOfType([f.a.element,f.a.func]),viewBox:f.a.shape({x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number}),active:f.a.bool,separator:f.a.string,formatter:f.a.func,offset:f.a.number,itemStyle:f.a.object,labelStyle:f.a.object,wrapperStyle:f.a.object,contentStyle:f.a.object,cursor:f.a.oneOfType([f.a.bool,f.a.element,f.a.object]),coordinate:f.a.shape({x:f.a.number,y:f.a.number}),position:f.a.shape({x:f.a.number,y:f.a.number}),label:f.a.any,payload:f.a.arrayOf(f.a.shape({name:f.a.any,value:f.a.oneOfType([f.a.number,f.a.string,f.a.array]),unit:f.a.any,type:f.a.oneOf(q)})),paylodUniqBy:f.a.oneOfType([f.a.func,f.a.bool]),isAnimationActive:f.a.bool,animationDuration:f.a.number,animationEasing:f.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),itemSorter:f.a.func,filterNull:f.a.bool,useTranslate3d:f.a.bool},or={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!ne(),animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1},ar=function(e){function t(){var e,n;Xn(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=Qn(this,(e=er(t)).call.apply(e,[this].concat(i)))).state={boxWidth:-1,boxHeight:-1},n.getTranslate=function(e){var t=e.key,r=e.tooltipDimension,i=e.viewBoxDimension,o=n.props,a=o.allowEscapeViewBox,s=o.coordinate,u=o.offset,l=o.position,c=o.viewBox;if(l&&P(l[t]))return l[t];var p=s[t]-r-u,f=s[t]+u;return a[t]?f:s[t]+r+u>c[t]+i?Math.max(p,c[t]):Math.max(f,c[t])},n}var n,r,i;return 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}}),t&&tr(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,o=i.payload,s=i.isAnimationActive,l=i.animationDuration,p=i.animationEasing,f=i.filterNull,d=function(e,t){return!0===e?u()(t,rr):a()(e)?u()(t,e):t}(i.paylodUniqBy,f&&o&&o.length?o.filter((function(e){return!v()(e.value)})):o),m=d&&d.length,y=this.props,g=y.content,b=y.viewBox,x=y.coordinate,_=y.position,w=y.active,E=$n({pointerEvents:"none",visibility:w&&m?"visible":"hidden",position:"absolute",top:0},y.wrapperStyle);if(_&&P(_.x)&&P(_.y))t=_.x,n=_.y;else{var D=this.state,C=D.boxWidth,O=D.boxHeight;C>0&&O>0&&x?(t=this.getTranslate({key:"x",tooltipDimension:C,viewBoxDimension:b.width}),n=this.getTranslate({key:"y",tooltipDimension:O,viewBoxDimension:b.height})):E.visibility="hidden"}E=$n({},Bt({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},E),s&&w&&(E=$n({},Bt({transition:"transform ".concat(l,"ms ").concat(p)}),{},E));var S=h()(nr,(Kn(e={},"".concat(nr,"-right"),P(t)&&x&&P(x.x)&&t>=x.x),Kn(e,"".concat(nr,"-left"),P(t)&&x&&P(x.x)&&t<x.x),Kn(e,"".concat(nr,"-bottom"),P(n)&&x&&P(x.y)&&n>=x.y),Kn(e,"".concat(nr,"-top"),P(n)&&x&&P(x.y)&&n<x.y),e));return c.a.createElement("div",{className:S,style:E,ref:function(e){r.wrapperNode=e}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(qn,t)}(g,$n({},this.props,{payload:d})))}}])&&Jn(n.prototype,r),i&&Jn(n,i),t}(l.PureComponent);ar.displayName="Tooltip",ar.propTypes=ir,ar.defaultProps=or;var sr=ar,ur=n(194),lr=n.n(ur),cr=n(345),pr=n.n(cr);function fr(e){return(fr="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)}function dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hr(e,t){return!t||"object"!==fr(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mr(e){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vr(e,t){return(vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=hr(this,mr(t).call(this,e))).updateDimensionsImmediate=function(){if(n.mounted){var e=n.getContainerSize();if(e){var t=n.state,r=t.containerWidth,i=t.containerHeight,o=e.containerWidth,a=e.containerHeight;o===r&&a===i||n.setState({containerWidth:o,containerHeight:a})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=e.debounce>0?lr()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,i;return 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}}),t&&vr(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,i=r.aspect,o=r.width,a=r.height,s=(r.minWidth,r.minHeight,r.maxHeight),u=r.children;T(o)||T(a);var l=T(o)?t:o,p=T(a)?n:a;return i&&i>0&&(l?p=l/i:p&&(l=p*i),s&&p>s&&(p=s)),c.a.cloneElement(u,{width:l,height:p})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,i=t.width,o=t.height,a=t.maxHeight,s=t.id,u=t.className,l={width:i,height:o,minWidth:n,minHeight:r,maxHeight:a};return c.a.createElement("div",{id:s,className:h()("recharts-responsive-container",u),style:l,ref:function(t){e.container=t}},this.renderChart(),c.a.createElement(pr.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&dr(n.prototype,r),i&&dr(n,i),t}(l.Component);yr.displayName="ResponsiveContainer",yr.propTypes={aspect:f.a.number,width:f.a.oneOfType([f.a.string,f.a.number]),height:f.a.oneOfType([f.a.string,f.a.number]),minHeight:f.a.oneOfType([f.a.string,f.a.number]),minWidth:f.a.oneOfType([f.a.string,f.a.number]),maxHeight:f.a.oneOfType([f.a.string,f.a.number]),children:f.a.node.isRequired,debounce:f.a.number,id:f.a.oneOfType([f.a.string,f.a.number]),className:f.a.oneOfType([f.a.string,f.a.number])},yr.defaultProps={width:"100%",height:"100%",debounce:0};var gr=yr;function br(e){return(br="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)}function xr(){return(xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(n,!0).forEach((function(t){Dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sr(e,t){return!t||"object"!==br(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kr(e){return(kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ar(e,t){return(Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Tr=function(e){function t(){return Cr(this,t),Sr(this,kr(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Ar(e,t)}(t,e),n=t,i=[{key:"renderLineItem",value:function(e,t){var n;if(c.a.isValidElement(e))n=c.a.cloneElement(e,t);else if(a()(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,u=t.key,l=_r(t,["x1","y1","x2","y2","key"]);n=c.a.createElement("line",xr({},K(l),{x1:r,y1:i,x2:o,y2:s,fill:"none",key:u}))}return n}}],(r=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,i=n.width,o=n.horizontal;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=Er({},t.props,{x1:r,y1:e,x2:r+i,y2:e,key:"line-".concat(n),index:n});return t.constructor.renderLineItem(o,a)}));return c.a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,i=n.height,o=n.vertical;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=Er({},t.props,{x1:e,y1:r,x2:e,y2:r+i,key:"line-".concat(n),index:n});return t.constructor.renderLineItem(o,a)}));return c.a.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,s=n.height,u=e.slice().sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:i+a-e;if(l<=0)return null;var p=n%t.length;return c.a.createElement("rect",{key:"react-".concat(n),x:Math.round(e+i-i),y:o,width:l,height:s,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return c.a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,s=n.height,u=e.slice().sort((function(e,t){return e-t}));o!==u[0]&&u.unshift(0);var l=u.map((function(e,n){var l=u[n+1]?u[n+1]-e:o+s-e;if(l<=0)return null;var p=n%t.length;return c.a.createElement("rect",{key:"react-".concat(n),y:Math.round(e+o-o),x:i,height:l,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return c.a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,i=t.y,o=t.width,a=t.height;return c.a.createElement("rect",{x:r,y:i,width:o,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.horizontal,s=e.vertical,u=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,p=e.xAxis,f=e.yAxis,d=e.offset,h=e.chartWidth,m=e.chartHeight;if(!P(r)||r<=0||!P(i)||i<=0||!P(t)||t!==+t||!P(n)||n!==+n)return null;var v=this.props,y=v.horizontalPoints,g=v.verticalPoints;return y&&y.length||!a()(u)||(y=u({yAxis:f,width:h,height:m,offset:d})),g&&g.length||!a()(l)||(g=l({xAxis:p,width:h,height:m,offset:d})),c.a.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),o&&this.renderHorizontal(y),s&&this.renderVertical(g),o&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(g))}}])&&Or(n.prototype,r),i&&Or(n,i),t}(l.PureComponent);Tr.displayName="CartesianGrid",Tr.propTypes=Er({},U,{x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number,horizontal:f.a.oneOfType([f.a.object,f.a.element,f.a.func,f.a.bool]),vertical:f.a.oneOfType([f.a.object,f.a.element,f.a.func,f.a.bool]),horizontalPoints:f.a.arrayOf(f.a.number),verticalPoints:f.a.arrayOf(f.a.number),horizontalCoordinatesGenerator:f.a.func,verticalCoordinatesGenerator:f.a.func,xAxis:f.a.object,yAxis:f.a.object,offset:f.a.object,chartWidth:f.a.number,chartHeight:f.a.number,verticalFill:f.a.arrayOf(f.a.string),horizontalFill:f.a.arrayOf(f.a.string)}),Tr.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};var Pr=Tr,Mr=function(){};function jr(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ir(e){this._context=e}Ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jr(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fr(e){this._context=e}Fr.prototype={areaStart:Mr,areaEnd:Mr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:jr(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Rr(e){this._context=e}Rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:jr(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zr(e){this._context=e}zr.prototype={areaStart:Mr,areaEnd:Mr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Lr(e){this._context=e}Lr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Br=function(e){return new Lr(e)};function Nr(e){return e<0?-1:1}function Vr(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Nr(o)+Nr(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Ur(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Hr(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Wr(e){this._context=e}function Gr(e){this._context=new qr(e)}function qr(e){this._context=e}function Yr(e){this._context=e}function Zr(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}Wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hr(this,this._t0,Ur(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Hr(this,Ur(this,n=Vr(this,e,t)),n);break;default:Hr(this,this._t0,n=Vr(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Gr.prototype=Object.create(Wr.prototype)).point=function(e,t){Wr.prototype.point.call(this,t,e)},qr.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Yr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Zr(e),i=Zr(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $r(e,t){this._context=e,this._t=t}$r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Kr(e){return e[0]}function Xr(e){return e[1]}var Jr=function(){var e=Kr,t=Xr,n=ze(!0),r=null,i=Br,o=null;function a(a){var s,u,l,c=a.length,p=!1;for(null==r&&(o=i(l=Re())),s=0;s<=c;++s)!(s<c&&n(u=a[s],s,a))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(u,s,a),+t(u,s,a));if(l)return o=null,l+""||null}return a.x=function(t){return arguments.length?(e="function"===typeof t?t:ze(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:ze(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:ze(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a},Qr=function(){var e=Kr,t=null,n=ze(0),r=Xr,i=ze(!0),o=null,a=Br,s=null;function u(u){var l,c,p,f,d,h=u.length,m=!1,v=new Array(h),y=new Array(h);for(null==o&&(s=a(d=Re())),l=0;l<=h;++l){if(!(l<h&&i(f=u[l],l,u))===m)if(m=!m)c=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=l-1;p>=c;--p)s.point(v[p],y[p]);s.lineEnd(),s.areaEnd()}m&&(v[l]=+e(f,l,u),y[l]=+n(f,l,u),s.point(t?+t(f,l,u):v[l],r?+r(f,l,u):y[l]))}if(d)return s=null,d+""||null}function l(){return Jr().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(e="function"===typeof n?n:ze(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:ze(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:ze(+e),u):t},u.y=function(e){return arguments.length?(n="function"===typeof e?e:ze(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"===typeof e?e:ze(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:ze(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"===typeof e?e:ze(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u};function ei(e){return(ei="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)}function ti(){return(ti=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(n,!0).forEach((function(t){ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return!t||"object"!==ei(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ui(e){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function li(e,t){return(li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ci={curveBasisClosed:function(e){return new Fr(e)},curveBasisOpen:function(e){return new Rr(e)},curveBasis:function(e){return new Ir(e)},curveLinearClosed:function(e){return new zr(e)},curveLinear:Br,curveMonotoneX:function(e){return new Wr(e)},curveMonotoneY:function(e){return new Gr(e)},curveNatural:function(e){return new Yr(e)},curveStep:function(e){return new $r(e,.5)},curveStepAfter:function(e){return new $r(e,1)},curveStepBefore:function(e){return new $r(e,0)}},pi=function(e){return e.x===+e.x&&e.y===+e.y},fi=function(e){return e.x},di=function(e){return e.y},hi=function(e){function t(){return oi(this,t),si(this,ui(t).apply(this,arguments))}var n,r,i;return 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}}),t&&li(e,t)}(t,e),n=t,(r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,s=t.connectNulls,u=function(e,t){if(a()(e))return e;var n="curve".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));return"curveMonotone"===n&&t?ci["".concat(n).concat("vertical"===t?"Y":"X")]:ci[n]||Br}(n,o),l=s?r.filter((function(e){return pi(e)})):r;if(w()(i)){var c=s?i.filter((function(e){return pi(e)})):i,p=l.map((function(e,t){return ri({},e,{base:c[t]})}));return(e="vertical"===o?Qr().y(di).x1(fi).x0((function(e){return e.base.x})):Qr().x(fi).y1(di).y0((function(e){return e.base.y}))).defined(pi).curve(u),e(p)}return(e="vertical"===o&&P(i)?Qr().y(di).x1(fi).x0(i):P(i)?Qr().x(fi).y1(di).y0(i):Jr().x(fi).y(di)).defined(pi).curve(u),e(l)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?this.getPath():r;return c.a.createElement("path",ti({},K(this.props),J(this.props,null,!0),{className:h()("recharts-curve",t),d:o,ref:i}))}}])&&ai(n.prototype,r),i&&ai(n,i),t}(l.PureComponent);hi.displayName="Curve",hi.propTypes=ri({},U,{className:f.a.string,type:f.a.oneOfType([f.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),f.a.func]),layout:f.a.oneOf(["horizontal","vertical"]),baseLine:f.a.oneOfType([f.a.number,f.a.array]),points:f.a.arrayOf(f.a.object),connectNulls:f.a.bool,path:f.a.string,pathRef:f.a.func}),hi.defaultProps={type:"linear",points:[],connectNulls:!1};var mi=hi;function vi(e){return(vi="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)}function yi(){return(yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xi(e,t){return!t||"object"!==vi(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _i(e){return(_i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wi(e,t){return(wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ei=function(e){function t(){return gi(this,t),xi(this,_i(t).apply(this,arguments))}var n,r,i;return 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}}),t&&wi(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,i=e.className,o=h()("recharts-dot",i);return t===+t&&n===+n&&r===+r?c.a.createElement("circle",yi({},K(this.props),J(this.props,null,!0),{className:o,cx:t,cy:n,r:r})):null}}])&&bi(n.prototype,r),i&&bi(n,i),t}(l.PureComponent);Ei.displayName="Dot",Ei.propTypes={className:f.a.string,cx:f.a.number,cy:f.a.number,r:f.a.number};var Di=Ei;function Ci(){return(Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Si={className:f.a.string,children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node])};function ki(e){var t=e.children,n=e.className,r=Oi(e,["children","className"]),i=h()("recharts-layer",n);return c.a.createElement("g",Ci({className:i},r),t)}ki.propTypes=Si;var Ai=ki,Ti=n(347),Pi=n.n(Ti),Mi=n(162),ji=n.n(Mi);function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(n,!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Li={widthCache:{},cacheCount:0},Bi={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ni=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var Vi=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((o=n,o.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(zi(e),["-",t.toLowerCase()]):[].concat(zi(e),[t])}),[]).join("")),":").concat((r=n,i=e[n],Ni.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i,o}),"")},Ui=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||ne())return{width:0,height:0};var n="".concat(e),r=Vi(t),i="".concat(n,"-").concat(r);if(Li.widthCache[i])return Li.widthCache[i];try{var o=document.getElementById("recharts_measurement_span");o||((o=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(o));var a=Fi({},Bi,{},t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var s=o.getBoundingClientRect(),u={width:s.width,height:s.height};return Li.widthCache[i]=u,++Li.cacheCount>2e3&&(Li.cacheCount=0,Li.widthCache={}),u}catch(l){return{width:0,height:0}}};function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(e){return(Gi="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)}function qi(){return(qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $i(e,t){return!t||"object"!==Gi(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ki(e){return(Ki=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xi(e,t){return(Xi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ji=/[ \f\n\r\t\v\u2028\u2029]+/,Qi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=$i(this,Ki(t).call(this,e))).getWordsWithoutCalculate=function(e){return[{words:v()(e.children)?[]:e.children.toString().split(Ji)}]},n.state={wordsByLines:n.getWordsByLines(e,!0)},n}var n,r,i;return 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}}),t&&Xi(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentDidUpdate",value:function(e){if(e.width!==this.props.width||e.scaleToFit!==this.props.scaleToFit||e.children!==this.props.children||e.style!==this.props.style){var t=this.props.children!==e.children||this.props.style!==e.style;this.updateWordsByLines(this.props,t)}}},{key:"updateWordsByLines",value:function(e,t){this.setState({wordsByLines:this.getWordsByLines(e,t)})}},{key:"getWordsByLines",value:function(e,t){if((e.width||e.scaleToFit)&&!ne()){if(t){var n=function(e){try{return{wordsWithComputedWidth:(v()(e.children)?[]:e.children.toString().split(Ji)).map((function(t){return{word:t,width:Ui(t,e.style).width}})),spaceWidth:Ui("\xa0",e.style).width}}catch(t){return null}}(e);if(!n)return this.getWordsWithoutCalculate(e);var r=n.wordsWithComputedWidth,i=n.spaceWidth;this.wordsWithComputedWidth=r,this.spaceWidth=i}return this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,e.width)}return this.getWordsWithoutCalculate(e)}},{key:"calculateWordsByLines",value:function(e,t,n){var r=this.props.scaleToFit;return(e||[]).reduce((function(e,i){var o=i.word,a=i.width,s=e[e.length-1];if(s&&(null==n||r||s.width+a+t<n))s.words.push(o),s.width+=a+t;else{var u={words:[o],width:a};e.push(u)}return e}),[])}},{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,i=e.verticalAnchor,o=e.scaleToFit,a=e.angle,s=e.lineHeight,u=e.capHeight,l=e.className,p=Yi(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),f=this.state.wordsByLines;if(!M(p.x)||!M(p.y))return null;var d,m=p.x+(P(t)?t:0),v=p.y+(P(n)?n:0);switch(i){case"start":d=ji()("calc(".concat(u,")"));break;case"middle":d=ji()("calc(".concat((f.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:d=ji()("calc(".concat(f.length-1," * -").concat(s,")"))}var y=[];if(o){var g=f[0].width;y.push("scale(".concat(this.props.width/g,")"))}return a&&y.push("rotate(".concat(a,", ").concat(m,", ").concat(v,")")),y.length&&(p.transform=y.join(" ")),c.a.createElement("text",qi({},K(p),J(p),{x:m,y:v,className:h()("recharts-text",l),textAnchor:r}),f.map((function(e,t){return c.a.createElement("tspan",{x:m,dy:0===t?d:s,key:t},e.words.join(" "))})))}}])&&Zi(n.prototype,r),i&&Zi(n,i),t}(l.Component);Qi.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(n,!0).forEach((function(t){Wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U,{scaleToFit:f.a.bool,angle:f.a.number,textAnchor:f.a.oneOf(["start","middle","end","inherit"]),verticalAnchor:f.a.oneOf(["start","middle","end"]),style:f.a.object}),Qi.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var eo=Qi,to=n(127),no=n.n(to),ro=n(128),io=n.n(ro),oo=n(346),ao=n.n(oo),so=n(25),uo=n.n(so);function lo(e){return function(e){if(Array.isArray(e))return co(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(e,t)}(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 co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var po=function(e){return e},fo={"@@functional/placeholder":!0},ho=function(e){return e===fo},mo=function(e){return function t(){return 0===arguments.length||1===arguments.length&&ho(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},vo=function(e){return function e(t,n){return 1===t?n:mo((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==fo})).length;return a>=t?n.apply(void 0,i):e(t-a,mo((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return ho(e)?t.shift():e}));return n.apply(void 0,lo(o).concat(t))})))}))}(e.length,e)},yo=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},go=vo((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),bo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return po;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}},xo=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},_o=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var wo={rangeStep:function(e,t,n){for(var r=new uo.a(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new uo.a(e).abs().log(10).toNumber())+1},interpolateNumber:vo((function(e,t,n){var r=+e;return r+n*(+t-r)})),uninterpolateNumber:vo((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),uninterpolateTruncation:vo((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}))};function Eo(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Co(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 Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||Co(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 Co(e,t){if(e){if("string"===typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function So(e){var t=Do(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function ko(e,t,n){if(e.lte(0))return new uo.a(0);var r=wo.getDigitCount(e.toNumber()),i=new uo.a(10).pow(r),o=e.div(i),a=1!==r?.05:.1,s=new uo.a(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?s:new uo.a(Math.ceil(s))}function Ao(e,t,n){var r=1,i=new uo.a(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new uo.a(10).pow(wo.getDigitCount(e)-1),i=new uo.a(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new uo.a(Math.floor(e)))}else 0===e?i=new uo.a(Math.floor((t-1)/2)):n||(i=new uo.a(Math.floor(e)));var a=Math.floor((t-1)/2);return bo(go((function(e){return i.add(new uo.a(e-a).mul(r)).toNumber()})),yo)(0,t)}function To(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new uo.a(0),tickMin:new uo.a(0),tickMax:new uo.a(0)};var o,a=ko(new uo.a(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new uo.a(0):(o=new uo.a(e).add(t).div(2)).sub(new uo.a(o).mod(a));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new uo.a(t).sub(o).div(a).toNumber()),l=s+u+1;return l>n?To(e,t,n,r,i+1):(l<n&&(u=t>0?u+(n-l):u,s=t>0?s:s+(n-l)),{step:a,tickMin:o.sub(new uo.a(s).mul(a)),tickMax:o.add(new uo.a(u).mul(a))})}var Po=_o((function(e){var t=Do(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=So([n,r]),u=Do(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var p=c===1/0?[l].concat(Eo(yo(0,i-1).map((function(){return 1/0})))):[].concat(Eo(yo(0,i-1).map((function(){return-1/0}))),[c]);return n>r?xo(p):p}if(l===c)return Ao(l,i,o);var f=To(l,c,a,o),d=f.step,h=f.tickMin,m=f.tickMax,v=wo.rangeStep(h,m.add(new uo.a(.1).mul(d)),d);return n>r?xo(v):v})),Mo=(_o((function(e){var t=Do(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=So([n,r]),u=Do(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return Ao(l,i,o);var p=ko(new uo.a(c).sub(l).div(a-1),o,0),f=bo(go((function(e){return new uo.a(l).add(new uo.a(e).mul(p)).toNumber()})),yo),d=f(0,a).filter((function(e){return e>=l&&e<=c}));return n>r?xo(d):d})),_o((function(e,t){var n=Do(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=So([r,i]),s=Do(a,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[r,i];if(u===l)return[u];var c=Math.max(t,2),p=ko(new uo.a(l).sub(u).div(c-1),o,0),f=[].concat(Eo(wo.rangeStep(new uo.a(u),new uo.a(l).sub(new uo.a(.99).mul(p)),p)),[l]);return r>i?xo(f):f}))),jo=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},Io=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return jo(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var Fo=Io(jo),Ro=Fo.right,zo=(Fo.left,Ro);var Lo=function(e){return null===e?NaN:+e},Bo=Array.prototype,No=(Bo.slice,Bo.map,function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}),Vo=Math.sqrt(50),Uo=Math.sqrt(10),Ho=Math.sqrt(2),Wo=function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Go(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o};function Go(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Vo?10:o>=Uo?5:o>=Ho?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Vo?10:o>=Uo?5:o>=Ho?2:1)}function qo(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Vo?i*=10:o>=Uo?i*=5:o>=Ho&&(i*=2),t<e?-i:i}var Yo=function(e,t,n){if(null==n&&(n=Lo),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}};function Zo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function $o(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function Ko(){}function Xo(e,t){var n=new Ko;if(e instanceof Ko)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}Ko.prototype=Xo.prototype={constructor:Ko,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Jo=Xo;function Qo(){}var ea=Jo.prototype;function ta(e,t){var n=new Qo;if(e instanceof Qo)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}Qo.prototype=ta.prototype={constructor:Qo,has:ea.has,add:function(e){return this["$"+(e+="")]=e,this},remove:ea.remove,clear:ea.clear,values:ea.keys,size:ea.size,empty:ea.empty,each:ea.each};var na=Array.prototype,ra=na.map,ia=na.slice,oa={name:"implicit"};function aa(){var e=Jo(),t=[],n=[],r=oa;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==oa)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=Jo();for(var r,o,a=-1,s=n.length;++a<s;)e.has(o=(r=n[a])+"")||e.set(o,t.push(r));return i},i.range=function(e){return arguments.length?(n=ia.call(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return aa(t,n).unknown(r)},Zo.apply(i,arguments),i}function sa(){var e,t,n=aa().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,l=.5;function c(){var n=r().length,c=o[1]<o[0],p=o[c-0],f=o[1-c];e=(f-p)/Math.max(1,n-s+2*u),a&&(e=Math.floor(e)),p+=(f-p-e*(n-s))*l,t=e*(1-s),a&&(p=Math.round(p),t=Math.round(t));var d=No(n).map((function(t){return p+e*t}));return i(c?d.reverse():d)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),c()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],c()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,c()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,c()):a},n.padding=function(e){return arguments.length?(s=Math.min(1,u=+e),c()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),c()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,c()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),c()):l},n.copy=function(){return sa(r(),o).round(a).paddingInner(s).paddingOuter(u).align(l)},Zo.apply(c(),arguments)}function ua(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ua(t())},e}function la(){return ua(sa.apply(null,arguments).paddingInner(1))}var ca=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function pa(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fa(){}var da="\\s*([+-]?\\d+)\\s*",ha="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ma="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",va=/^#([0-9a-f]{3,8})$/,ya=new RegExp("^rgb\\("+[da,da,da]+"\\)$"),ga=new RegExp("^rgb\\("+[ma,ma,ma]+"\\)$"),ba=new RegExp("^rgba\\("+[da,da,da,ha]+"\\)$"),xa=new RegExp("^rgba\\("+[ma,ma,ma,ha]+"\\)$"),_a=new RegExp("^hsl\\("+[ha,ma,ma]+"\\)$"),wa=new RegExp("^hsla\\("+[ha,ma,ma,ha]+"\\)$"),Ea={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Da(){return this.rgb().formatHex()}function Ca(){return this.rgb().formatRgb()}function Oa(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=va.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Sa(t):3===n?new Pa(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ka(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ka(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ya.exec(e))?new Pa(t[1],t[2],t[3],1):(t=ga.exec(e))?new Pa(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ba.exec(e))?ka(t[1],t[2],t[3],t[4]):(t=xa.exec(e))?ka(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=_a.exec(e))?Fa(t[1],t[2]/100,t[3]/100,1):(t=wa.exec(e))?Fa(t[1],t[2]/100,t[3]/100,t[4]):Ea.hasOwnProperty(e)?Sa(Ea[e]):"transparent"===e?new Pa(NaN,NaN,NaN,0):null}function Sa(e){return new Pa(e>>16&255,e>>8&255,255&e,1)}function ka(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pa(e,t,n,r)}function Aa(e){return e instanceof fa||(e=Oa(e)),e?new Pa((e=e.rgb()).r,e.g,e.b,e.opacity):new Pa}function Ta(e,t,n,r){return 1===arguments.length?Aa(e):new Pa(e,t,n,null==r?1:r)}function Pa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ma(){return"#"+Ia(this.r)+Ia(this.g)+Ia(this.b)}function ja(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Ia(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Fa(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new za(e,t,n,r)}function Ra(e){if(e instanceof za)return new za(e.h,e.s,e.l,e.opacity);if(e instanceof fa||(e=Oa(e)),!e)return new za;if(e instanceof za)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new za(a,s,u,e.opacity)}function za(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function La(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ba(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}ca(fa,Oa,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Da,formatHex:Da,formatHsl:function(){return Ra(this).formatHsl()},formatRgb:Ca,toString:Ca}),ca(Pa,Ta,pa(fa,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Pa(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Pa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ma,formatHex:Ma,formatRgb:ja,toString:ja})),ca(za,(function(e,t,n,r){return 1===arguments.length?Ra(e):new za(e,t,n,null==r?1:r)}),pa(fa,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new za(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new za(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Pa(La(e>=240?e-240:e+120,i,r),La(e,i,r),La(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Na=function(e){return function(){return e}};function Va(e,t){return function(n){return e+n*t}}function Ua(e){return 1===(e=+e)?Ha:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Na(isNaN(t)?n:t)}}function Ha(e,t){var n=t-e;return n?Va(e,n):Na(isNaN(e)?t:e)}var Wa=function e(t){var n=Ua(t);function r(e,t){var r=n((e=Ta(e)).r,(t=Ta(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ha(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ga(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Ta(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}Ga((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Ba((n-r/t)*t,a,i,o,s)}})),Ga((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Ba((n-r/t)*t,i,o,a,s)}}));var qa=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}};function Ya(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Za(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ts(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}var $a=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},Ka=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Xa=function(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=ts(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},Ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qa=new RegExp(Ja.source,"g");var es=function(e,t){var n,r,i,o=Ja.lastIndex=Qa.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Ja.exec(e))&&(r=Qa.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Ka(n,r)})),o=Qa.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})},ts=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?Na(t):("number"===r?Ka:"string"===r?(n=Oa(t))?(t=n,Wa):es:t instanceof Oa?Wa:t instanceof Date?$a:Ya(t)?qa:Array.isArray(t)?Za:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Xa:Ka)(e,t)},ns=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},rs=function(e){return+e},is=[0,1];function os(e){return e}function as(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ss(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function us(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=as(i,r),o=n(a,o)):(r=as(r,i),o=n(o,a)),function(e){return o(r(e))}}function ls(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=as(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=zo(e,t,1,r)-1;return o[n](i[n](t))}}function cs(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ps(){var e,t,n,r,i,o,a=is,s=is,u=ts,l=os;function c(){return r=Math.min(a.length,s.length)>2?ls:us,i=o=null,p}function p(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return p.invert=function(n){return l(t((o||(o=r(s,a.map(e),Ka)))(n)))},p.domain=function(e){return arguments.length?(a=ra.call(e,rs),l===os||(l=ss(a)),c()):a.slice()},p.range=function(e){return arguments.length?(s=ia.call(e),c()):s.slice()},p.rangeRound=function(e){return s=ia.call(e),u=ns,c()},p.clamp=function(e){return arguments.length?(l=e?ss(a):os,p):l!==os},p.interpolate=function(e){return arguments.length?(u=e,c()):u},p.unknown=function(e){return arguments.length?(n=e,p):n},function(n,r){return e=n,t=r,c()}}function fs(e,t){return ps()(e,t)}var ds=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hs(e){if(!(t=ds.exec(e)))throw new Error("invalid format: "+e);var t;return new ms({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ms(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}hs.prototype=ms.prototype,ms.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};function vs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ys,gs,bs,xs,_s=function(e){return(e=vs(Math.abs(e)))?e[1]:NaN},ws=function(e,t){var n=vs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Es={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return ws(100*e,t)},r:ws,s:function(e,t){var n=vs(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ys=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vs(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ds=function(e){return e},Cs=Array.prototype.map,Os=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];gs=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Ds:(t=Cs.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Ds:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Cs.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=hs(e)).fill,n=e.align,p=e.sign,f=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):Es[g]||(void 0===v&&(v=12),y=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===f?o:/[%p]/.test(g)?u:"",_=Es[g],w=/[defgprs%]/.test(g);function E(e){var i,o,u,f=b,E=x;if("c"===g)E=_(e)+E,e="";else{var D=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),D&&0===+e&&"+"!==p&&(D=!1),f=(D?"("===p?p:l:"-"===p||"("===p?"":p)+f,E=("s"===g?Os[8+ys/3]:"")+E+(D&&"("===p?")":""),w)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){E=(46===u?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var C=f.length+e.length+E.length,O=C<h?new Array(h-C+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-E.length:1/0),O=""),n){case"<":e=f+e+E+O;break;case"=":e=f+O+e+E;break;case"^":e=O.slice(0,C=O.length>>1)+f+e+E+O.slice(C);break;default:e=O+f+e+E}return s(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),E.toString=function(){return e+""},E}return{format:p,formatPrefix:function(e,t){var n=p(((e=hs(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(_s(t)/3))),i=Math.pow(10,-r),o=Os[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),bs=gs.format,xs=gs.formatPrefix;var Ss=function(e,t,n,r){var i,o=qo(e,t,n);switch((r=hs(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_s(t)/3)))-_s(Math.abs(e)))}(o,a))||(r.precision=i),xs(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_s(t)-_s(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-_s(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return bs(r)};function ks(e){var t=e.domain;return e.ticks=function(e){var n=t();return Wo(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ss(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),(r=Go(s,u,n))>0?r=Go(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=Go(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,t(i)),e},e}function As(){var e=fs(os,os);return e.copy=function(){return cs(e,As())},Zo.apply(e,arguments),ks(e)}function Ts(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=ra.call(t,rs),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ts(e).unknown(t)},e=arguments.length?ra.call(e,rs):[0,1],ks(n)}var Ps=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e};function Ms(e){return Math.log(e)}function js(e){return Math.exp(e)}function Is(e){return-Math.log(-e)}function Fs(e){return-Math.exp(-e)}function Rs(e){return isFinite(e)?+("1e"+e):e<0?0:e}function zs(e){return function(t){return-e(-t)}}function Ls(e){var t,n,r=e(Ms,js),i=r.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?Rs:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=zs(t),n=zs(n),e(Is,Fs)):e(Ms,js),r}return r.base=function(e){return arguments.length?(o=+e,a()):o},r.domain=function(e){return arguments.length?(i(e),a()):i()},r.ticks=function(e){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var l,c,p,f=t(s),d=t(u),h=null==e?10:+e,m=[];if(!(o%1)&&d-f<h){if(f=Math.round(f)-1,d=Math.round(d)+1,s>0){for(;f<d;++f)for(c=1,l=n(f);c<o;++c)if(!((p=l*c)<s)){if(p>u)break;m.push(p)}}else for(;f<d;++f)for(c=o-1,l=n(f);c>=1;--c)if(!((p=l*c)<s)){if(p>u)break;m.push(p)}}else m=Wo(f,d,Math.min(d-f,h)).map(n);return r?m.reverse():m},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=bs(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=a?i(e):""}},r.nice=function(){return i(Ps(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Bs(){var e=Ls(ps()).domain([1,10]);return e.copy=function(){return cs(e,Bs()).base(e.base())},Zo.apply(e,arguments),e}function Ns(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Vs(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Us(e){var t=1,n=e(Ns(t),Vs(t));return n.constant=function(n){return arguments.length?e(Ns(t=+n),Vs(t)):t},ks(n)}function Hs(){var e=Us(ps());return e.copy=function(){return cs(e,Hs()).constant(e.constant())},Zo.apply(e,arguments)}function Ws(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Gs(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function qs(e){return e<0?-e*e:e*e}function Ys(e){var t=e(os,os),n=1;function r(){return 1===n?e(os,os):.5===n?e(Gs,qs):e(Ws(n),Ws(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},ks(t)}function Zs(){var e=Ys(ps());return e.copy=function(){return cs(e,Zs()).exponent(e.exponent())},Zo.apply(e,arguments),e}function $s(){return Zs.apply(null,arguments).exponent(.5)}function Ks(){var e,t=[],n=[],r=[];function i(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=Yo(t,e/i);return o}function o(t){return isNaN(t=+t)?e:n[zo(r,t)]}return o.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,r=0,o=e.length;r<o;++r)null==(n=e[r])||isNaN(n=+n)||t.push(n);return t.sort(jo),i()},o.range=function(e){return arguments.length?(n=ia.call(e),i()):n.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return Ks().domain(t).range(n).unknown(e)},Zo.apply(o,arguments)}function Xs(){var e,t=0,n=1,r=1,i=[.5],o=[0,1];function a(t){return t<=t?o[zo(i,t,0,r)]:e}function s(){var e=-1;for(i=new Array(r);++e<r;)i[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],s()):[t,n]},a.range=function(e){return arguments.length?(r=(o=ia.call(e)).length-1,s()):o.slice()},a.invertExtent=function(e){var a=o.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Xs().domain([t,n]).range(o).unknown(e)},Zo.apply(ks(a),arguments)}function Js(){var e,t=[.5],n=[0,1],r=1;function i(i){return i<=i?n[zo(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=ia.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=ia.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Js().domain(t).range(n).unknown(e)},Zo.apply(i,arguments)}var Qs=new Date,eu=new Date;function tu(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return tu((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Qs.setTime(+t),eu.setTime(+r),e(Qs),e(eu),Math.floor(n(Qs,eu))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i:null}),i}var nu=tu((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));nu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?tu((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var ru=nu,iu=(nu.range,tu((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),ou=iu;iu.range;function au(e){return tu((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var su=au(0),uu=au(1),lu=au(2),cu=au(3),pu=au(4),fu=au(5),du=au(6),hu=(su.range,uu.range,lu.range,cu.range,pu.range,fu.range,du.range,tu((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),mu=hu,vu=(hu.range,tu((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),yu=vu,gu=(vu.range,tu((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),bu=gu,xu=(gu.range,tu((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),_u=xu,wu=(xu.range,tu((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));wu.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?tu((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):wu:null};var Eu=wu;wu.range;function Du(e){return tu((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var Cu=Du(0),Ou=Du(1),Su=Du(2),ku=Du(3),Au=Du(4),Tu=Du(5),Pu=Du(6),Mu=(Cu.range,Ou.range,Su.range,ku.range,Au.range,Tu.range,Pu.range,tu((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),ju=Mu,Iu=(Mu.range,tu((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Iu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?tu((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Fu=Iu;Iu.range;function Ru(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zu(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Lu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Bu,Nu,Vu,Uu={"-":"",_:" ",0:"0"},Hu=/^\s*\d+/,Wu=/^%/,Gu=/[\\^$*+?|[\]().{}]/g;function qu(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Yu(e){return e.replace(Gu,"\\$&")}function Zu(e){return new RegExp("^(?:"+e.map(Yu).join("|")+")","i")}function $u(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Ku(e,t,n){var r=Hu.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xu(e,t,n){var r=Hu.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ju(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qu(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function el(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=Hu.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nl(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rl(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function il(e,t,n){var r=Hu.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function ol(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function al(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sl(e,t,n){var r=Hu.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ul(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ll(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cl(e,t,n){var r=Hu.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=Hu.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=Hu.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dl(e,t,n){var r=Wu.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hl(e,t,n){var r=Hu.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ml(e,t,n){var r=Hu.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vl(e,t){return qu(e.getDate(),t,2)}function yl(e,t){return qu(e.getHours(),t,2)}function gl(e,t){return qu(e.getHours()%12||12,t,2)}function bl(e,t){return qu(1+mu.count(ru(e),e),t,3)}function xl(e,t){return qu(e.getMilliseconds(),t,3)}function _l(e,t){return xl(e,t)+"000"}function wl(e,t){return qu(e.getMonth()+1,t,2)}function El(e,t){return qu(e.getMinutes(),t,2)}function Dl(e,t){return qu(e.getSeconds(),t,2)}function Cl(e){var t=e.getDay();return 0===t?7:t}function Ol(e,t){return qu(su.count(ru(e)-1,e),t,2)}function Sl(e){var t=e.getDay();return t>=4||0===t?pu(e):pu.ceil(e)}function kl(e,t){return e=Sl(e),qu(pu.count(ru(e),e)+(4===ru(e).getDay()),t,2)}function Al(e){return e.getDay()}function Tl(e,t){return qu(uu.count(ru(e)-1,e),t,2)}function Pl(e,t){return qu(e.getFullYear()%100,t,2)}function Ml(e,t){return qu((e=Sl(e)).getFullYear()%100,t,2)}function jl(e,t){return qu(e.getFullYear()%1e4,t,4)}function Il(e,t){var n=e.getDay();return qu((e=n>=4||0===n?pu(e):pu.ceil(e)).getFullYear()%1e4,t,4)}function Fl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qu(t/60|0,"0",2)+qu(t%60,"0",2)}function Rl(e,t){return qu(e.getUTCDate(),t,2)}function zl(e,t){return qu(e.getUTCHours(),t,2)}function Ll(e,t){return qu(e.getUTCHours()%12||12,t,2)}function Bl(e,t){return qu(1+ju.count(Fu(e),e),t,3)}function Nl(e,t){return qu(e.getUTCMilliseconds(),t,3)}function Vl(e,t){return Nl(e,t)+"000"}function Ul(e,t){return qu(e.getUTCMonth()+1,t,2)}function Hl(e,t){return qu(e.getUTCMinutes(),t,2)}function Wl(e,t){return qu(e.getUTCSeconds(),t,2)}function Gl(e){var t=e.getUTCDay();return 0===t?7:t}function ql(e,t){return qu(Cu.count(Fu(e)-1,e),t,2)}function Yl(e){var t=e.getUTCDay();return t>=4||0===t?Au(e):Au.ceil(e)}function Zl(e,t){return e=Yl(e),qu(Au.count(Fu(e),e)+(4===Fu(e).getUTCDay()),t,2)}function $l(e){return e.getUTCDay()}function Kl(e,t){return qu(Ou.count(Fu(e)-1,e),t,2)}function Xl(e,t){return qu(e.getUTCFullYear()%100,t,2)}function Jl(e,t){return qu((e=Yl(e)).getUTCFullYear()%100,t,2)}function Ql(e,t){return qu(e.getUTCFullYear()%1e4,t,4)}function ec(e,t){var n=e.getUTCDay();return qu((e=n>=4||0===n?Au(e):Au.ceil(e)).getUTCFullYear()%1e4,t,4)}function tc(){return"+0000"}function nc(){return"%"}function rc(e){return+e}function ic(e){return Math.floor(+e/1e3)}!function(e){Bu=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=Zu(i),c=$u(i),p=Zu(o),f=$u(o),d=Zu(a),h=$u(a),m=Zu(s),v=$u(s),y=Zu(u),g=$u(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:vl,e:vl,f:_l,g:Ml,G:Il,H:yl,I:gl,j:bl,L:xl,m:wl,M:El,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rc,s:ic,S:Dl,u:Cl,U:Ol,V:kl,w:Al,W:Tl,x:null,X:null,y:Pl,Y:jl,Z:Fl,"%":nc},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Rl,e:Rl,f:Vl,g:Jl,G:ec,H:zl,I:Ll,j:Bl,L:Nl,m:Ul,M:Hl,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rc,s:ic,S:Wl,u:Gl,U:ql,V:Zl,w:$l,W:Kl,x:null,X:null,y:Xl,Y:Ql,Z:tc,"%":nc},_={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return D(e,t,n,r)},d:al,e:al,f:fl,g:nl,G:tl,H:ul,I:ul,j:sl,L:pl,m:ol,M:ll,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:il,Q:hl,s:ml,S:cl,u:Xu,U:Ju,V:Qu,w:Ku,W:el,x:function(e,t,r){return D(e,n,t,r)},X:function(e,t,n){return D(e,r,t,n)},y:nl,Y:tl,Z:rl,"%":dl};function w(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=Uu[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function E(e,t){return function(n){var r,i,o=Lu(1900,void 0,1);if(D(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=zu(Lu(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ou.ceil(r):Ou(r),r=ju.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ru(Lu(o.y,0,1))).getDay(),r=i>4||0===i?uu.ceil(r):uu(r),r=mu.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?zu(Lu(o.y,0,1)).getUTCDay():Ru(Lu(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,zu(o)):Ru(o)}}function D(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=_[i in Uu?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}(e),Nu=Bu.format,Bu.parse,Vu=Bu.utcFormat,Bu.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function oc(e){return new Date(e)}function ac(e){return e instanceof Date?+e:+new Date(+e)}function sc(e,t,n,r,i,o,a,s,u){var l=fs(os,os),c=l.invert,p=l.domain,f=u(".%L"),d=u(":%S"),h=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),y=u("%b %d"),g=u("%B"),b=u("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function _(s){return(a(s)<s?f:o(s)<s?d:i(s)<s?h:r(s)<s?m:t(s)<s?n(s)<s?v:y:e(s)<s?g:b)(s)}function w(t,n,r,i){if(null==t&&(t=10),"number"===typeof t){var o=Math.abs(r-n)/t,a=Io((function(e){return e[2]})).right(x,o);a===x.length?(i=qo(n/31536e6,r/31536e6,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(qo(n,r,t),1),t=s)}return null==i?t:t.every(i)}return l.invert=function(e){return new Date(c(e))},l.domain=function(e){return arguments.length?p(ra.call(e,ac)):p().map(oc)},l.ticks=function(e,t){var n,r=p(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=w(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},l.tickFormat=function(e,t){return null==t?_:u(t)},l.nice=function(e,t){var n=p();return(e=w(e,n[0],n[n.length-1],t))?p(Ps(n,e)):l},l.copy=function(){return cs(l,sc(e,t,n,r,i,o,a,s,u))},l}var uc=function(){return Zo.apply(sc(ru,ou,su,mu,yu,bu,_u,Eu,Nu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},lc=tu((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),cc=lc,pc=(lc.range,tu((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}))),fc=pc,dc=(pc.range,tu((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}))),hc=dc,mc=(dc.range,function(){return Zo.apply(sc(Fu,cc,Cu,ju,fc,hc,_u,Eu,Vu).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)});function vc(){var e,t,n,r,i,o=0,a=1,s=os,u=!1;function l(t){return isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}return l.domain=function(i){return arguments.length?(e=r(o=+i[0]),t=r(a=+i[1]),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(u=!!e,l):u},l.interpolator=function(e){return arguments.length?(s=e,l):s},l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function yc(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gc(){var e=ks(vc()(os));return e.copy=function(){return yc(e,gc())},$o.apply(e,arguments)}function bc(){var e=Ls(vc()).domain([1,10]);return e.copy=function(){return yc(e,bc()).base(e.base())},$o.apply(e,arguments)}function xc(){var e=Us(vc());return e.copy=function(){return yc(e,xc()).constant(e.constant())},$o.apply(e,arguments)}function _c(){var e=Ys(vc());return e.copy=function(){return yc(e,_c()).exponent(e.exponent())},$o.apply(e,arguments)}function wc(){return _c.apply(null,arguments).exponent(.5)}function Ec(){var e=[],t=os;function n(n){if(!isNaN(n=+n))return t((zo(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var r,i=0,o=t.length;i<o;++i)null==(r=t[i])||isNaN(r=+r)||e.push(r);return e.sort(jo),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Ec(t).domain(e)},$o.apply(n,arguments)}function Dc(){var e,t,n,r,i,o,a,s=0,u=.5,l=1,c=os,p=!1;function f(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(e<t?r:i),c(p?Math.max(0,Math.min(1,e)):e))}return f.domain=function(a){return arguments.length?(e=o(s=+a[0]),t=o(u=+a[1]),n=o(l=+a[2]),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),f):[s,u,l]},f.clamp=function(e){return arguments.length?(p=!!e,f):p},f.interpolator=function(e){return arguments.length?(c=e,f):c},f.unknown=function(e){return arguments.length?(a=e,f):a},function(a){return o=a,e=a(s),t=a(u),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),f}}function Cc(){var e=ks(Dc()(os));return e.copy=function(){return yc(e,Cc())},$o.apply(e,arguments)}function Oc(){var e=Ls(Dc()).domain([.1,1,10]);return e.copy=function(){return yc(e,Oc()).base(e.base())},$o.apply(e,arguments)}function Sc(){var e=Us(Dc());return e.copy=function(){return yc(e,Sc()).constant(e.constant())},$o.apply(e,arguments)}function kc(){var e=Ys(Dc());return e.copy=function(){return yc(e,kc()).exponent(e.exponent())},$o.apply(e,arguments)}function Ac(){return kc.apply(null,arguments).exponent(.5)}var Tc=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},Pc=Array.prototype.slice,Mc=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function jc(e,t){return e[t]}function Ic(e){return(Ic="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)}function Fc(){return(Fc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Rc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function zc(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nc(e,t){return!t||"object"!==Ic(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vc(e){return(Vc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Uc(e,t){return(Uc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Hc=function(e){function t(){return Lc(this,t),Nc(this,Vc(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Uc(e,t)}(t,e),n=t,(r=[{key:"renderErrorBars",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,l=zc(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),p=K(l);return o.map((function(e,o){var l,f,d,h,m,v,y,g,b,x,_,w,E=a(e,i),D=E.x,C=E.y,O=E.value,S=E.errorVal;if(!S)return null;if(Array.isArray(S)){var k=Rc(S,2);_=k[0],w=k[1]}else _=w=S;return"vertical"===n?(y=s.scale,f=C+t,d=y((l=O)-_),h=f+r,g={x1:m=y(l+w),y1:h,x2:m,y2:v=f-r},b={x1:d,y1:f,x2:m,y2:f},x={x1:d,y1:h,x2:d,y2:v}):"horizontal"===n&&(y=u.scale,d=(l=D+t)-r,m=l+r,h=y((f=O)-_),g={x1:d,y1:v=y(f+w),x2:m,y2:v},b={x1:l,y1:h,x2:l,y2:v},x={x1:d,y1:h,x2:m,y2:h}),c.a.createElement(Ai,Fc({className:"recharts-errorBar",key:"bar-".concat(o)},p),c.a.createElement("line",g),c.a.createElement("line",b),c.a.createElement("line",x))}))}},{key:"render",value:function(){return c.a.createElement(Ai,{className:"recharts-errorBars"},this.renderErrorBars())}}])&&Bc(n.prototype,r),i&&Bc(n,i),t}(l.Component);Hc.propTypes={dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]).isRequired,data:f.a.array,xAxis:f.a.object,yAxis:f.a.object,layout:f.a.string,dataPointFormatter:f.a.func,stroke:f.a.string,strokeWidth:f.a.number,width:f.a.number,offset:f.a.number},Hc.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};var Wc=Hc;function Gc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qc(n,!0).forEach((function(t){Zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $c=function(e,t,n){return v()(e)||v()(t)?n:M(t)?D()(e,t,n):a()(t)?t(e):n},Kc=function(e,t,n,r){var i=ao()(e,(function(e){return $c(e,t)}));if("number"===n){var o=i.filter((function(e){return P(e)||parseFloat(e,10)}));return o.length?[io()(o),no()(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!v()(e)})):i).map((function(e){return M(e)?e:""}))},Xc=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},Jc=function(e){var t,n=e.children,r=e.formatedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=$(n,_t);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:Xc(t),value:i||r,payload:t.props}})),Yc({},a.props,{},_t.getWithHeight(a,i),{payload:t,item:a})):null},Qc=function(e,t,n,r){var i=t.props.children,o=Z(i,Wc).filter((function(e){var t=e.props.direction;return!(!v()(t)&&!v()(r))||r.indexOf(t)>=0}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=$c(t,n,0),i=w()(r)?[io()(r),no()(r)]:[r,r],o=a.reduce((function(e,n){var r=$c(t,n,0),o=i[0]-Math.abs(w()(r)?r[0]:r),a=i[1]+Math.abs(w()(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},ep=function(e,t,n,r){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&Qc(e,t,i)||Kc(e,i,n,r)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e}),[])},tp=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},np=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},rp=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/2:0;return s="angleAxis"===e.axisType?2*A(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})):e.isCategorial&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e),value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}}))},ip=function(e,t,n){var r;return a()(n)?r=n:a()(t)&&(r=t),a()(e)||r?function(t,n,i,o){a()(e)&&e(t,n,i,o),a()(r)&&r(t,n,i,o)}:null},op=function(e,t){var n=e.scale,i=e.type,o=e.layout,s=e.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===s?{scale:sa(),realScaleType:"band"}:"radial"===o&&"angleAxis"===s?{scale:As(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0)?{scale:la(),realScaleType:"point"}:"category"===i?{scale:sa(),realScaleType:"band"}:{scale:As(),realScaleType:"linear"};if(g()(n)){var u="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[u]||la)(),realScaleType:r[u]?u:"point"}}return a()(n)?{scale:n}:{scale:la(),realScaleType:"point"}},ap=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},sp={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=O()(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}Tc(e,t)}},none:Tc,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Tc(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,l=0;s<i;++s){for(var c=e[t[s]],p=c[a][1]||0,f=(p-(c[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];f+=(h[a][1]||0)-(h[a-1][1]||0)}u+=p,l+=f*p}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,Tc(e,t)}}},up=function(e,t,n){var r=t.map((function(e){return e.props.dataKey}));return function(){var e=ze([]),t=Mc,n=Tc,r=jc;function i(i){var o,a,s=e.apply(this,arguments),u=i.length,l=s.length,c=new Array(l);for(o=0;o<l;++o){for(var p,f=s[o],d=c[o]=new Array(u),h=0;h<u;++h)d[h]=p=[0,+r(i[h],f,h,i)],p.data=i[h];d.key=f}for(o=0,a=t(c);o<l;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:ze(Pc.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:ze(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Mc:"function"===typeof e?e:ze(Pc.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Tc:e,i):n},i}().keys(r).value((function(e,t){return+$c(e,t,0)})).order(Mc).offset(sp[n])(e)},lp=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var u=e.domain(),l=Po(u,i,a);return e.domain(function(e,t){return"number"===t?[io()(e),no()(e)]:e}(l,r)),{niceTicks:l}}if(i&&"number"===r){var c=e.domain();return{niceTicks:Mo(c,i,a)}}return null},cp=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!v()(i[t.dataKey])){var s=L(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=$c(i,v()(a)?t.dataKey:a);return v()(u)?null:t.scale(u)},pp=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[io()(t.concat([e[0]]).filter(P)),no()(t.concat([e[1]]).filter(P))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},fp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hp=function(e,t,n){if(!w()(e))return t;var r=[];if(P(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(fp.test(e[0])){var i=+fp.exec(e[0])[1];r[0]=t[0]-i}else a()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(P(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(dp.test(e[1])){var o=+dp.exec(e[1])[1];r[1]=t[1]+o}else a()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},mp=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=jn()(t,(function(e){return e.coordinate})),r=1/0,i=1,o=n.length;i<o;i++){var a=n[i],s=n[i-1];r=Math.min((a.coordinate||0)-(s.coordinate||0),r)}return r===1/0?0:r}return 0},vp=function(e,t,n){return e&&e.length?Et()(e,D()(n,"type.defaultProps.domain"))?t:e:t};function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(n,!0).forEach((function(t){bp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xp=Math.PI/180,_p=function(e){return 180*e/Math.PI},wp=function(e,t,n,r){return{x:e+Math.cos(-xp*r)*n,y:t+Math.sin(-xp*r)*n}},Ep=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,u=Math.acos(s);return r>o&&(u=2*Math.PI-u),{radius:a,angle:_p(u),angleInRadian:u}},Dp=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},Cp=function(e,t){var n=e.x,r=e.y,i=Ep({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,u=t.outerRadius;if(o<s||o>u)return!1;if(0===o)return!0;var l,c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),p=c.startAngle,f=c.endAngle,d=a;if(p<=f){for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}else{for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}return l?gp({},t,{radius:o,angle:Dp(d,t)}):null};function Op(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Sp(){return(Sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ap(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tp=f.a.shape({x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number}),Pp=f.a.shape({cx:f.a.number,cy:f.a.number,innerRadius:f.a.number,outerRadius:f.a.number,startAngle:f.a.number,endAngle:f.a.number}),Mp=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(n,!0).forEach((function(t){Ap(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U,{viewBox:f.a.oneOfType([Tp,Pp]),formatter:f.a.func,value:f.a.oneOfType([f.a.number,f.a.string]),offset:f.a.number,position:f.a.oneOf(["top","left","right","bottom","inside","outside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","insideStart","insideEnd","end","center","centerTop","centerBottom"]),children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]),className:f.a.string,content:f.a.oneOfType([f.a.element,f.a.func])}),jp=function(e,t,n){var r,i,o=e.position,a=e.viewBox,s=e.offset,u=e.className,l=a.cx,p=a.cy,f=a.innerRadius,d=a.outerRadius,m=a.startAngle,y=a.endAngle,g=a.clockWise,b=(f+d)/2,x=function(e,t){return A(t-e)*Math.min(Math.abs(t-e),360)}(m,y),_=x>=0?1:-1;"insideStart"===o?(r=m+_*s,i=g):"insideEnd"===o?(r=y-_*s,i=!g):"end"===o&&(r=y+_*s,i=g),i=x<=0?i:!i;var w=wp(l,p,b,r),E=wp(l,p,b,r+359*(i?1:-1)),D="M".concat(w.x,",").concat(w.y,"\n A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n ").concat(E.x,",").concat(E.y),C=v()(e.id)?I("recharts-radial-line-"):e.id;return c.a.createElement("text",Sp({},n,{dominantBaseline:"central",className:h()("recharts-radial-bar-label",u)}),c.a.createElement("defs",null,c.a.createElement("path",{id:C,d:D})),c.a.createElement("textPath",{xlinkHref:"#".concat(C)},t))};function Ip(e){var t,n=e.viewBox,r=e.position,i=e.value,o=e.children,s=e.content,u=e.className,p=void 0===u?"":u;if(!n||v()(i)&&v()(o)&&!Object(l.isValidElement)(s)&&!a()(s))return null;if(Object(l.isValidElement)(s))return Object(l.cloneElement)(s,e);if(a()(s)){if(t=s(e),Object(l.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=v()(e.children)?t:e.children;return a()(n)?n(r):r}(e);var f=function(e){return P(e.cx)}(n),d=K(e),m=J(e);if(f&&("insideStart"===r||"insideEnd"===r||"end"===r))return jp(e,t,d);var y=f?function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.cx,o=t.cy,a=t.innerRadius,s=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var l=wp(i,o,s+n,u),c=l.x;return{x:c,y:l.y,textAnchor:c>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=wp(i,o,(a+s)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.x,o=t.y,a=t.width,s=t.height,u=s>=0?1:-1;return"top"===r?{x:i+a/2,y:o-u*n,textAnchor:"middle",verticalAnchor:u>0?"end":"start"}:"bottom"===r?{x:i+a/2,y:o+s+u*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:i-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:i+a+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:i+n,y:o+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:i+a-n,y:o+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:i+a/2,y:o+u*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:i+a/2,y:o+s-u*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:i+n,y:o+u*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:i+a-n,y:o+u*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:i+n,y:o+s-u*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:i+a-n,y:o+s-u*n,textAnchor:"end",verticalAnchor:"end"}:x()(r)&&(P(r.x)||T(r.x))&&(P(r.y)||T(r.y))?{x:i+F(r.x,a),y:o+F(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:i+a/2,y:o+s/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return c.a.createElement(eo,Sp({className:h()("recharts-label",p)},d,y,m),t)}Ip.displayName="Label",Ip.defaultProps={offset:5},Ip.propTypes=Mp;var Fp=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,l=e.outerRadius,c=e.x,p=e.y,f=e.top,d=e.left,h=e.width,m=e.height,v=e.clockWise;if(P(h)&&P(m)){if(P(c)&&P(p))return{x:c,y:p,width:h,height:m};if(P(f)&&P(d))return{x:f,y:d,width:h,height:m}}return P(c)&&P(p)?{x:c,y:p,width:0,height:0}:P(t)&&P(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||s||a||0,clockWise:v}:e.viewBox?e.viewBox:{}},Rp=function(e,t){return e?!0===e?c.a.createElement(Ip,{key:"label-implicit",viewBox:t}):M(e)?c.a.createElement(Ip,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===Ip?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):c.a.createElement(Ip,{key:"label-implicit",content:e,viewBox:t}):a()(e)?c.a.createElement(Ip,{key:"label-implicit",content:e,viewBox:t}):x()(e)?c.a.createElement(Ip,Sp({viewBox:t},e,{key:"label-implicit"})):null:null};Ip.parseViewBox=Fp,Ip.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Fp(e),o=Z(r,Ip).map((function(e,n){return Object(l.cloneElement)(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return o;var a=Rp(e.label,t||i);return[a].concat(Op(o))};var zp=Ip;function Lp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Bp(){return(Bp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Np(n,!0).forEach((function(t){Up(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Np(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Up(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hp(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Wp={id:f.a.string,data:f.a.arrayOf(f.a.object),valueAccessor:f.a.func,clockWise:f.a.bool,dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func])},Gp={valueAccessor:function(e){return w()(e.value)?Pi()(e.value):e.value}};function qp(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,o=e.id,a=Hp(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?c.a.createElement(Ai,{className:"recharts-label-list"},t.map((function(e,t){var s=v()(r)?n(e,t):$c(e&&e.payload,r),u=v()(o)?{}:{id:"".concat(o,"-").concat(t)};return c.a.createElement(zp,Bp({},K(e),a,u,{index:t,value:s,viewBox:zp.parseViewBox(v()(i)?e:Vp({},e,{clockWise:i})),key:"label-".concat(t)}))}))):null}qp.propTypes=Wp,qp.displayName="LabelList";var Yp=function(e,t){return e?!0===e?c.a.createElement(qp,{key:"labelList-implicit",data:t}):c.a.isValidElement(e)||a()(e)?c.a.createElement(qp,{key:"labelList-implicit",data:t,content:e}):x()(e)?c.a.createElement(qp,Bp({data:t},e,{key:"labelList-implicit"})):null:null};qp.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Z(r,qp).map((function(e,n){return Object(l.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return i;var o=Yp(e.label,t);return[o].concat(Lp(i))},qp.defaultProps=Gp;var Zp=qp;function $p(e){return($p="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)}function Kp(){return(Kp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xp(n,!0).forEach((function(t){Qp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ef(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function tf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rf(e,t){return!t||"object"!==$p(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function of(e){return(of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function af(e,t){return(af=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sf=function(e){function t(){var e,n;tf(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=rf(this,(e=of(t)).call.apply(e,[this].concat(i)))).state={isAnimationFinished:!0,totalLength:0},n.id=I("recharts-line-"),n.cachePrevData=function(e){n.setState({prevPoints:e})},n.pathRef=function(e){n.mainCurve=e},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}var n,r,i;return 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}}),t&&af(e,t)}(t,e),n=t,i=[{key:"repeat",value:function(e,t){for(var n=e.length%2!==0?[].concat(ef(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(ef(r),ef(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(c.a.isValidElement(e))n=c.a.cloneElement(e,t);else if(a()(e))n=e(t);else{var r=h()("recharts-line-dot",e?e.className:"");n=c.a.createElement(Di,Kp({},t,{className:r}))}return n}}],(r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.points;e.animationId!==n&&this.cachePrevData(r)}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}},{key:"getStrokeDasharray",value:function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=parseInt(e/r,10),o=e%r,a=t-e,s=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>o){s=[].concat(ef(n.slice(0,u)),[o-l]);break}var c=s.length%2===0?[0,a]:[a];return[].concat(ef(this.constructor.repeat(n,i)),ef(s),c).map((function(e){return"".concat(e,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,i=e.layout,o=e.children,a=Z(o,Wc);if(!a)return null;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:$c(e.payload,t)}}return a.map((function(e,o){return c.a.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:i,dataPointFormatter:s})}))}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,a=r.dataKey,s=K(this.props),u=K(i),l=J(i),p=o.map((function(e,t){var r=Jp({key:"dot-".concat(t),r:3},s,{},u,{},l,{value:e.value,dataKey:a,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(i,r)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return c.a.createElement(Ai,Kp({className:"recharts-line-dots",key:"dots"},f),p)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,o=i.type,a=i.layout,s=i.connectNulls,u=Jp({},K(this.props),{},J(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:o,layout:a,connectNulls:s});return c.a.createElement(mi,Kp({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,l=r.animationEasing,p=r.animationId,f=r.width,d=r.height,h=this.state,m=h.prevPoints,v=h.totalLength;return c.a.createElement(Pn,{begin:s,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(m){var s=m.length/i.length,u=i.map((function(e,t){var r=Math.floor(t*s);if(m[r]){var i=m[r],o=z(i.x,e.x),u=z(i.y,e.y);return Jp({},e,{x:o(a),y:u(a)})}if(n.animateNewValues){var l=z(2*f,e.x),c=z(d/2,e.y);return Jp({},e,{x:l(a),y:c(a)})}return Jp({},e,{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,t)}var l,c=z(0,v)(a);if(o){var p=o.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=n.getStrokeDasharray(c,v,p)}else l="".concat(c,"px ").concat(v-c,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,s=o.totalLength;return i&&r&&r.length&&(!a&&s>0||!Et()(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,o=e.xAxis,a=e.yAxis,s=e.top,u=e.left,l=e.width,p=e.height,f=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,y=1===r.length,g=h()("recharts-line",i),b=o&&o.allowDataOverflow||a&&a.allowDataOverflow,x=v()(d)?this.id:d;return c.a.createElement(Ai,{className:g},b?c.a.createElement("defs",null,c.a.createElement("clipPath",{id:"clipPath-".concat(x)},c.a.createElement("rect",{x:u,y:s,width:l,height:p}))):null,!y&&this.renderCurve(b,x),this.renderErrorBar(),(y||n)&&this.renderDots(b,x),(!f||m)&&Zp.renderCallByParent(this.props,r))}}])&&nf(n.prototype,r),i&&nf(n,i),t}(l.PureComponent);sf.displayName="Line",sf.propTypes=Jp({},U,{},H,{className:f.a.string,type:f.a.oneOfType([f.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),f.a.func]),unit:f.a.oneOfType([f.a.string,f.a.number]),name:f.a.oneOfType([f.a.string,f.a.number]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),yAxis:f.a.object,xAxis:f.a.object,legendType:f.a.oneOf(G),tooltipType:f.a.oneOf(q),layout:f.a.oneOf(["horizontal","vertical"]),connectNulls:f.a.bool,hide:f.a.bool,activeDot:f.a.oneOfType([f.a.object,f.a.element,f.a.func,f.a.bool]),dot:f.a.oneOfType([f.a.object,f.a.element,f.a.func,f.a.bool]),top:f.a.number,left:f.a.number,width:f.a.number,height:f.a.number,points:f.a.arrayOf(f.a.shape({x:f.a.number,y:f.a.number,value:f.a.value})),onAnimationStart:f.a.func,onAnimationEnd:f.a.func,isAnimationActive:f.a.bool,animateNewValues:f.a.bool,animationBegin:f.a.number,animationDuration:f.a.number,animationEasing:f.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:f.a.number,id:f.a.string}),sf.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ne(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},sf.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,c=t.layout;return Jp({points:u.map((function(e,t){var u=$c(e,a);return"horizontal"===c?{x:cp({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:v()(u)?null:r.scale(u),value:u,payload:e}:{x:v()(u)?null:n.scale(u),y:cp({axis:r,ticks:o,bandSize:s,entry:e,index:t}),value:u,payload:e}})),layout:c},l)};var uf=sf;function lf(e){return(lf="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)}function cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ff(e,t){return!t||"object"!==lf(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function df(e){return(df=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hf(e,t){return(hf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mf=function(e){function t(){return cf(this,t),ff(this,df(t).apply(this,arguments))}var n,r,i;return 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}}),t&&hf(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return null}}])&&pf(n.prototype,r),i&&pf(n,i),t}(l.PureComponent);mf.displayName="XAxis",mf.propTypes={allowDecimals:f.a.bool,allowDuplicatedCategory:f.a.bool,hide:f.a.bool,name:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),domain:f.a.arrayOf(f.a.oneOfType([f.a.string,f.a.number,f.a.func,f.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),width:f.a.number,height:f.a.number,mirror:f.a.bool,orientation:f.a.oneOf(["top","bottom"]),type:f.a.oneOf(["number","category"]),ticks:f.a.array,tickCount:f.a.number,tickFormatter:f.a.func,padding:f.a.shape({left:f.a.number,right:f.a.number}),allowDataOverflow:f.a.bool,scale:f.a.oneOfType([f.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),f.a.func]),tick:f.a.oneOfType([f.a.bool,f.a.func,f.a.object,f.a.element]),axisLine:f.a.oneOfType([f.a.bool,f.a.object]),tickLine:f.a.oneOfType([f.a.bool,f.a.object]),minTickGap:f.a.number,tickSize:f.a.number,interval:f.a.oneOfType([f.a.number,f.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:f.a.bool},mf.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var vf=mf;function yf(e){return(yf="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)}function gf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xf(e,t){return!t||"object"!==yf(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _f(e){return(_f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wf(e,t){return(wf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ef=function(e){function t(){return gf(this,t),xf(this,_f(t).apply(this,arguments))}var n,r,i;return 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}}),t&&wf(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return null}}])&&bf(n.prototype,r),i&&bf(n,i),t}(l.PureComponent);Ef.displayName="YAxis",Ef.propTypes={allowDecimals:f.a.bool,allowDuplicatedCategory:f.a.bool,hide:f.a.bool,name:f.a.oneOfType([f.a.string,f.a.number]),unit:f.a.oneOfType([f.a.string,f.a.number]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),domain:f.a.arrayOf(f.a.oneOfType([f.a.string,f.a.number,f.a.func,f.a.oneOf(["auto","dataMin","dataMax"])])),dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),ticks:f.a.array,tickCount:f.a.number,tickFormatter:f.a.func,width:f.a.number,height:f.a.number,mirror:f.a.bool,orientation:f.a.oneOf(["left","right"]),type:f.a.oneOf(["number","category"]),padding:f.a.shape({top:f.a.number,bottom:f.a.number}),allowDataOverflow:f.a.bool,scale:f.a.oneOfType([f.a.oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),f.a.func]),tick:f.a.oneOfType([f.a.bool,f.a.func,f.a.object,f.a.element]),axisLine:f.a.oneOfType([f.a.bool,f.a.object]),tickLine:f.a.oneOfType([f.a.bool,f.a.object]),minTickGap:f.a.number,tickSize:f.a.number,interval:f.a.oneOfType([f.a.number,f.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:f.a.bool},Ef.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var Df=Ef,Cf=n(160),Of=n.n(Cf),Sf=n(348),kf=n.n(Sf),Af=n(116),Tf=n.n(Af),Pf=n(349),Mf=n.n(Pf);function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ff(e){return(Ff="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)}function Rf(){return(Rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bf(e,t){return!t||"object"!==Ff(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nf(e){return(Nf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vf(e,t){return(Vf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Uf=function(e){function t(){return zf(this,t),Bf(this,Nf(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Vf(e,t)}(t,e),n=t,i=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],(r=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.top,a=e.left,s=e.className;return P(t)&&P(n)&&P(r)&&P(i)&&P(o)&&P(a)?c.a.createElement("path",Rf({},K(this.props),{className:h()("recharts-cross",s),d:this.constructor.getPath(t,n,r,i,o,a)})):null}}])&&Lf(n.prototype,r),i&&Lf(n,i),t}(l.PureComponent);Uf.displayName="Cross",Uf.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(n,!0).forEach((function(t){If(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U,{x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number,top:f.a.number,left:f.a.number,className:f.a.string}),Uf.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var Hf=Uf;function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qf(e){return(qf="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)}function Yf(){return(Yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kf(e,t){return!t||"object"!==qf(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xf(e){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jf(e,t){return(Jf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qf=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,u=e.cornerIsExternal,l=s*(a?1:-1)+r,c=Math.asin(s/l)/xp,p=u?i:i+o*c,f=u?i-o*c:i;return{center:wp(t,n,l,p),circleTangency:wp(t,n,r,p),lineTangency:wp(t,n,l*Math.cos(c*xp),f),theta:c}},ed=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return A(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),s=o+a,u=wp(t,n,i,o),l=wp(t,n,i,s),c="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>s),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var p=wp(t,n,r,o),f=wp(t,n,r,s);c+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=s),",\n ").concat(p.x,",").concat(p.y," Z")}else c+="L ".concat(t,",").concat(n," Z");return c},td=function(e){function t(){return Zf(this,t),Kf(this,Xf(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Jf(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,p=e.className;if(i<r||u===l)return null;var f,d=h()("recharts-sector",p),m=i-r,v=F(o,m,0,!0);return f=v>0&&Math.abs(u-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,c=A(l-u),p=Qf({cx:t,cy:n,radius:i,angle:u,sign:c,cornerRadius:o,cornerIsExternal:s}),f=p.circleTangency,d=p.lineTangency,h=p.theta,m=Qf({cx:t,cy:n,radius:i,angle:l,sign:-c,cornerRadius:o,cornerIsExternal:s}),v=m.circleTangency,y=m.lineTangency,g=m.theta,b=Math.abs(u-l)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):ed({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(f.x,",").concat(f.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var _=Qf({cx:t,cy:n,radius:r,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),w=_.circleTangency,E=_.lineTangency,D=_.theta,C=Qf({cx:t,cy:n,radius:r,angle:l,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),O=C.circleTangency,S=C.lineTangency,k=C.theta,T=Math.abs(u-l)-D-k;if(T<0)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(S.x,",").concat(S.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(c>0),",").concat(w.x,",").concat(w.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(v,m/2),forceCornerRadius:a,cornerIsExternal:s,startAngle:u,endAngle:l}):ed({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l}),c.a.createElement("path",Yf({},K(this.props),J(this.props),{className:d,d:f}))}}])&&$f(n.prototype,r),i&&$f(n,i),t}(l.PureComponent);td.displayName="Sector",td.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(n,!0).forEach((function(t){Gf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U,{className:f.a.string,cx:f.a.number,cy:f.a.number,innerRadius:f.a.number,outerRadius:f.a.number,startAngle:f.a.number,endAngle:f.a.number,cornerRadius:f.a.oneOfType([f.a.number,f.a.string]),forceCornerRadius:f.a.bool,cornerIsExternal:f.a.bool}),td.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var nd=td;function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(e){return(od="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)}function ad(){return(ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ud(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ld(e,t){return!t||"object"!==od(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cd(e){return(cd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pd(e,t){return(pd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fd=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var c=[],p=0;p<4;p++)c[p]=i[p]>a?a:i[p];o="M".concat(e,",").concat(t+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+u*c[0],",").concat(t)),o+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+s*c[1])),o+="L ".concat(e+n,",").concat(t+r-s*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(e+n-u*c[2],",").concat(t+r)),o+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var f=Math.min(a,i);o="M ".concat(e,",").concat(t+s*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e+u*f,",").concat(t,"\n L ").concat(e+n-u*f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e+n,",").concat(t+s*f,"\n L ").concat(e+n,",").concat(t+r-s*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e+n-u*f,",").concat(t+r,"\n L ").concat(e+u*f,",").concat(t+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e,",").concat(t+r-s*f," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},dd=function(e){function t(){var e,n;sd(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=ld(this,(e=cd(t)).call.apply(e,[this].concat(i)))).state={totalLength:-1},n}var n,r,i;return 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}}),t&&pd(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.radius,s=t.className,u=this.state.totalLength,l=this.props,p=l.animationEasing,f=l.animationDuration,d=l.animationBegin,m=l.isAnimationActive,v=l.isUpdateAnimationActive;if(n!==+n||r!==+r||i!==+i||o!==+o||0===i||0===o)return null;var y=h()("recharts-rectangle",s);return v?c.a.createElement(Pn,{canBegin:u>0,from:{width:i,height:o,x:n,y:r},to:{width:i,height:o,x:n,y:r},duration:f,animationEasing:p,isActive:v},(function(t){var n=t.width,r=t.height,i=t.x,o=t.y;return c.a.createElement(Pn,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:f,isActive:m,easing:p},c.a.createElement("path",ad({},K(e.props),J(e.props),{className:y,d:fd(i,o,n,r,a),ref:function(t){e.node=t}})))})):c.a.createElement("path",ad({},K(this.props),J(this.props),{className:y,d:fd(n,r,i,o,a)}))}}])&&ud(n.prototype,r),i&&ud(n,i),t}(l.PureComponent);dd.displayName="Rectangle",dd.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(n,!0).forEach((function(t){id(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},U,{},H,{className:f.a.string,x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number,radius:f.a.oneOfType([f.a.number,f.a.array]),isAnimationActive:f.a.bool,isUpdateAnimationActive:f.a.bool,animationBegin:f.a.number,animationDuration:f.a.number,animationEasing:f.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),dd.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var hd=dd;function md(e){return(md="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)}function vd(){return(vd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(n,!0).forEach((function(t){bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xd(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ed(e,t){return!t||"object"!==md(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dd(e){return(Dd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cd(e,t){return(Cd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Od=function(e){function t(){return _d(this,t),Ed(this,Dd(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Cd(e,t)}(t,e),n=t,i=[{key:"getTicks",value:function(e){var n=e.tick,r=e.ticks,i=e.viewBox,o=e.minTickGap,a=e.orientation,s=e.interval,u=e.tickFormatter,l=e.unit;return r&&r.length&&n?P(s)||ne()?t.getNumberIntervalTicks(r,P(s)?s:0):"preserveStartEnd"===s?t.getTicksStart({ticks:r,tickFormatter:u,viewBox:i,orientation:a,minTickGap:o,unit:l},!0):"preserveStart"===s?t.getTicksStart({ticks:r,tickFormatter:u,viewBox:i,orientation:a,minTickGap:o,unit:l}):t.getTicksEnd({ticks:r,tickFormatter:u,viewBox:i,orientation:a,minTickGap:o,unit:l}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)===0}))}},{key:"getTicksStart",value:function(e,t){var n,r,i=e.ticks,o=e.tickFormatter,s=e.viewBox,u=e.orientation,l=e.minTickGap,c=e.unit,p=s.x,f=s.y,d=s.width,h=s.height,m="top"===u||"bottom"===u?"width":"height",v=(i||[]).slice(),y=c&&"width"===m?Ui(c)[m]:0,g=v.length,b=g>=2?A(v[1].coordinate-v[0].coordinate):1;if(1===b?(n="width"===m?p:f,r="width"===m?p+d:f+h):(n="width"===m?p+d:f+h,r="width"===m?p:f),t){var x=i[g-1],_=a()(o)?o(x.value):x.value,w=Ui(_)[m]+y,E=b*(x.coordinate+b*w/2-r);v[g-1]=x=gd({},x,{tickCoord:E>0?x.coordinate-E*b:x.coordinate}),b*(x.tickCoord-b*w/2-n)>=0&&b*(x.tickCoord+b*w/2-r)<=0&&(r=x.tickCoord-b*(w/2+l),v[g-1]=gd({},x,{isShow:!0}))}for(var D=t?g-1:g,C=0;C<D;C++){var O=v[C],S=a()(o)?o(O.value):O.value,k=Ui(S)[m]+y;if(0===C){var T=b*(O.coordinate-b*k/2-n);v[C]=O=gd({},O,{tickCoord:T<0?O.coordinate-T*b:O.coordinate})}else v[C]=O=gd({},O,{tickCoord:O.coordinate});b*(O.tickCoord-b*k/2-n)>=0&&b*(O.tickCoord+b*k/2-r)<=0&&(n=O.tickCoord+b*(k/2+l),v[C]=gd({},O,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,s=e.orientation,u=e.minTickGap,l=e.unit,c=o.x,p=o.y,f=o.width,d=o.height,h="top"===s||"bottom"===s?"width":"height",m=l&&"width"===h?Ui(l)[h]:0,v=(r||[]).slice(),y=v.length,g=y>=2?A(v[1].coordinate-v[0].coordinate):1;1===g?(t="width"===h?c:p,n="width"===h?c+f:p+d):(t="width"===h?c+f:p+d,n="width"===h?c:p);for(var b=y-1;b>=0;b--){var x=v[b],_=a()(i)?i(x.value):x.value,w=Ui(_)[h]+m;if(b===y-1){var E=g*(x.coordinate+g*w/2-n);v[b]=x=gd({},x,{tickCoord:E>0?x.coordinate-E*g:x.coordinate})}else v[b]=x=gd({},x,{tickCoord:x.coordinate});g*(x.tickCoord-g*w/2-t)>=0&&g*(x.tickCoord+g*w/2-n)<=0&&(n=x.tickCoord-g*(w/2+u),v[b]=gd({},x,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(eo,vd({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=xd(e,["viewBox"]),i=this.props,o=i.viewBox,a=xd(i,["viewBox"]);return!B(n,o)||!B(r,a)||!B(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,a,s=this.props,u=s.x,l=s.y,c=s.width,p=s.height,f=s.orientation,d=s.tickSize,h=s.mirror,m=s.tickMargin,v=h?-1:1,y=e.tickSize||d,g=P(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,a=(r=(i=l+!h*p)-v*y)-v*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=u+!h*c)-v*y)-v*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=u+h*c)+v*y)+v*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+h*p)+v*y)+v*m,o=g}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.orientation,a=e.axisLine,s=e.mirror,u=gd({},K(this.props),{fill:"none"},K(a));if("top"===o||"bottom"===o){var l="top"===o&&!s||"bottom"===o&&s;u=gd({},u,{x1:t,y1:n+l*i,x2:t+r,y2:n+l*i})}else{var p="left"===o&&!s||"right"===o&&s;u=gd({},u,{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return c.a.createElement("line",vd({className:"recharts-cartesian-axis-line"},u))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,i=r.tickLine,o=r.stroke,s=r.tick,u=r.tickFormatter,l=r.unit,p=t.getTicks(gd({},this.props,{ticks:e})),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=K(this.props),m=K(s),v=gd({},h,{fill:"none"},K(i)),y=p.map((function(e,t){var r=n.getTickLineCoord(e),y=r.line,g=r.tick,b=gd({textAnchor:f,verticalAnchor:d},h,{stroke:"none",fill:o},m,{},g,{index:t,payload:e,visibleTicksCount:p.length});return c.a.createElement(Ai,vd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},ee(n.props,e,t)),i&&c.a.createElement("line",vd({className:"recharts-cartesian-axis-tick-line"},v,y)),s&&n.constructor.renderTickItem(s,b,"".concat(a()(u)?u(e.value):e.value).concat(l||"")))}));return c.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,i=e.ticksGenerator,o=e.className;if(e.hide)return null;var s=this.props,u=s.ticks,l=xd(s,["ticks"]),p=u;return a()(i)&&(p=u&&u.length>0?i(this.props):i(l)),n<=0||r<=0||!p||!p.length?null:c.a.createElement(Ai,{className:h()("recharts-cartesian-axis",o)},t&&this.renderAxisLine(),this.renderTicks(p),zp.renderCallByParent(this.props))}}])&&wd(n.prototype,r),i&&wd(n,i),t}(l.Component);Od.displayName="CartesianAxis",Od.propTypes=gd({},U,{},H,{className:f.a.string,x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number,orientation:f.a.oneOf(["top","bottom","left","right"]),viewBox:f.a.shape({x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number}),tick:f.a.oneOfType([f.a.bool,f.a.func,f.a.object,f.a.element]),axisLine:f.a.oneOfType([f.a.bool,f.a.object]),tickLine:f.a.oneOfType([f.a.bool,f.a.object]),mirror:f.a.bool,tickMargin:f.a.number.isRequired,minTickGap:f.a.number,ticks:f.a.array,tickSize:f.a.number,stroke:f.a.string,tickFormatter:f.a.func,ticksGenerator:f.a.func,interval:f.a.oneOfType([f.a.number,f.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),Od.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var Sd=Od;function kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ad(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Td=["Webkit","Moz","O","ms"],Pd=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=Td.reduce((function(e,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(n,!0).forEach((function(t){Ad(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Ad({},r+n,t))}),{});return r[e]=t,r};function Md(e){return(Md="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)}function jd(){return(jd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rd(e){return(Rd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ld(e,t){return(Ld=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Bd=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Md(t)&&"function"!==typeof t?zd(e):t}(this,Rd(t).call(this,e))).handleDrag=function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(zd(n),"startX"),endX:n.handleTravellerDragStart.bind(zd(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,i;return 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}}),t&&Ld(e,t)}(t,e),n=t,i=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.width,o=n.x,a=n.travellerWidth,s=n.updateId;(e.data!==r||e.updateId!==s)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===i&&e.x===o&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,i=r.gap,o=r.data.length-1,a=Math.min(t,n),s=Math.max(t,n),u=this.constructor.getIndexInRange(this.scaleValues,a),l=this.constructor.getIndexInRange(this.scaleValues,s);return{startIndex:u-u%i,endIndex:l===o?o:l-l%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=$c(n[e],i,e);return a()(r)?r(o):o}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,l=o.startIndex,c=o.endIndex,p=o.onChange,f=e.pageX-n;f>0?f=Math.min(f,a+s-u-i,a+s-u-r):f<0&&(f=Math.max(f,a-r,a-i));var d=this.getIndex({startX:r+f,endX:i+f});d.startIndex===l&&d.endIndex===c||!p||p(d),this.setState({startX:r+f,endX:i+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,s=this.state[i],u=this.props,l=u.x,c=u.width,p=u.travellerWidth,f=u.onChange,d=u.gap,h=u.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+c-p-s):v<0&&(v=Math.max(v,l-s)),m[i]=s+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((Id(t={},i,s+v),Id(t,"brushMoveStartX",e.pageX),t),(function(){f&&function(){var e=h.length-1;return"startX"===i&&(o>a?g%d===0:b%d===0)||o<a&&b===e||"endX"===i&&(o>a?b%d===0:g%d===0)||o>a&&b===e}()&&f(y)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,i=e.endIndex,o=e.x,a=e.width,s=e.travellerWidth,u=n.length;return this.scale=la().domain(Tf()(0,u)).range([o,o+a-s]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(i)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,a=e.stroke;return c.a.createElement("rect",{stroke:a,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.data,a=e.children,s=e.padding,u=l.Children.only(a);return u?c.a.cloneElement(u,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,s=Math.floor(r+o/2)-1,u=Math.max(e,this.props.x);return c.a.createElement(Ai,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.a.createElement("rect",{x:u,y:r,width:i,height:o,fill:a,stroke:"none"}),c.a.createElement("line",{x1:u+1,y1:s,x2:u+i-1,y2:s,fill:"none",stroke:"#fff"}),c.a.createElement("line",{x1:u+1,y1:s+2,x2:u+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,o=n.stroke;return c.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,o=e.travellerWidth,a=e.stroke,s=this.state,u=s.startX,l=s.endX,p={pointerEvents:"none",fill:a};return c.a.createElement(Ai,{className:"recharts-brush-texts"},c.a.createElement(eo,jd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},p),this.getTextOfTick(t)),c.a.createElement(eo,jd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:r+i/2},p),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,o=e.y,a=e.width,s=e.height,u=e.alwaysShowText,l=this.state,p=l.startX,f=l.endX,d=l.isTextActive,m=l.isSlideMoving,v=l.isTravellerMoving;if(!t||!t.length||!P(i)||!P(o)||!P(a)||!P(s)||a<=0||s<=0)return null;var y=h()("recharts-brush",n),g=1===c.a.Children.count(r),b=Pd("userSelect","none");return c.a.createElement(Ai,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(p,f),this.renderTraveller(p,"startX"),this.renderTraveller(f,"endX"),(d||m||v||u)&&this.renderText())}}])&&Fd(n.prototype,r),i&&Fd(n,i),t}(l.PureComponent);Bd.displayName="Brush",Bd.propTypes={className:f.a.string,fill:f.a.string,stroke:f.a.string,x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number.isRequired,travellerWidth:f.a.number,gap:f.a.number,padding:f.a.shape({top:f.a.number,right:f.a.number,bottom:f.a.number,left:f.a.number}),dataKey:f.a.oneOfType([f.a.string,f.a.number,f.a.func]),data:f.a.array,startIndex:f.a.number,endIndex:f.a.number,tickFormatter:f.a.func,children:f.a.node,onChange:f.a.func,updateId:f.a.oneOfType([f.a.string,f.a.number]),leaveTimeOut:f.a.number,alwaysShowText:f.a.bool},Bd.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var Nd=Bd,Vd=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},Ud=n(200),Hd=n.n(Ud);function Wd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qd(e,t,n){return t&&Gd(e.prototype,t),n&&Gd(e,n),e}function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(n,!0).forEach((function(t){$d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kd=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},Xd=function(){function e(t){Wd(this,e),this.scale=t}return qd(e,null,[{key:"create",value:function(t){return new e(t)}}]),qd(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();Xd.EPS=1e-4;var Jd=function(){function e(t){Wd(this,e),this.scales=Hd()(t,Xd.create),Object.assign(this,this.scales)}return qd(e,null,[{key:"create",value:function(e){return new this(e)}}]),qd(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return Hd()(e,(function(e,t){return r[t].apply(e,{bandAware:n})}))}},{key:"isInRange",value:function(e){var t=this.scales;return Of()(e,(function(e,n){return t[n].isInRange(e)}))}}]),e}();function Qd(e){return(Qd="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)}function eh(){return(eh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?th(n,!0).forEach((function(t){rh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ah(e,t){return!t||"object"!==Qd(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sh(e){return(sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uh(e,t){return(uh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lh=function(e){function t(){return ih(this,t),ah(this,sh(t).apply(this,arguments))}var n,r,i;return 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}}),t&&uh(e,t)}(t,e),n=t,i=[{key:"renderDot",value:function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(Di,eh({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}}],(r=[{key:"getCoordinate",value:function(){var e=this.props,t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=Jd.create({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return Vd(this.props,"discard")&&!o.isInRange(a)?null:a}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.r,i=(e.alwaysShow,e.clipPathId),o=M(t),a=M(n);if(!o||!a)return null;var s=this.getCoordinate();if(!s)return null;var u=s.x,l=s.y,p=this.props,f=p.shape,d=p.className,m=nh({clipPath:Vd(this.props,"hidden")?"url(#".concat(i,")"):void 0},K(this.props),{},J(this.props),{cx:u,cy:l});return c.a.createElement(Ai,{className:h()("recharts-reference-dot",d)},this.constructor.renderDot(f,m),zp.renderCallByParent(this.props,{x:u-r,y:l-r,width:2*r,height:2*r}))}}])&&oh(n.prototype,r),i&&oh(n,i),t}(l.PureComponent);lh.displayName="ReferenceDot",lh.propTypes=nh({},U,{},H,{r:f.a.number,xAxis:f.a.shape({scale:f.a.func}),yAxis:f.a.shape({scale:f.a.func}),isFront:f.a.bool,alwaysShow:f.a.bool,ifOverflow:f.a.oneOf(["hidden","visible","discard","extendDomain"]),x:f.a.oneOfType([f.a.number,f.a.string]),y:f.a.oneOfType([f.a.number,f.a.string]),className:f.a.oneOfType([f.a.number,f.a.string]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),shape:f.a.oneOfType([f.a.func,f.a.element]),clipPathId:f.a.string}),lh.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};var ch=lh,ph=n(350),fh=n.n(ph);function dh(e){return(dh="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)}function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hh(n,!0).forEach((function(t){vh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xh(e,t){return!t||"object"!==dh(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _h(e){return(_h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wh(e,t){return(wh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eh(){return(Eh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Dh=function(e){function t(){return gh(this,t),xh(this,_h(t).apply(this,arguments))}var n,r,i;return 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}}),t&&wh(e,t)}(t,e),n=t,(r=[{key:"getEndPoints",value:function(e,t,n,r){var i=this.props,o=i.viewBox,a=o.x,s=o.y,u=o.width,l=o.height,c=i.position;if(n){var p=this.props,f=p.y,d=p.yAxis.orientation,h=e.y.apply(f,{position:c});if(Vd(this.props,"discard")&&!e.y.isInRange(h))return null;var m=[{x:a+u,y:h},{x:a,y:h}];return"left"===d?m.reverse():m}if(t){var v=this.props,y=v.x,g=v.xAxis.orientation,b=e.x.apply(y,{position:c});if(Vd(this.props,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:s+l},{x:b,y:s}];return"top"===g?x.reverse():x}if(r){var _=this.props.segment.map((function(t){return e.apply(t,{position:c})}));return Vd(this.props,"discard")&&fh()(_,(function(t){return!e.isInRange(t)}))?null:_}return null}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.segment,i=e.xAxis,o=e.yAxis,s=e.shape,u=e.className,l=(e.alwaysShow,e.clipPathId),p=Jd.create({x:i.scale,y:o.scale}),f=M(t),d=M(n),m=r&&2===r.length,v=this.getEndPoints(p,f,d,m);if(!v)return null;var y=yh(v,2),g=y[0],b=g.x,x=g.y,_=y[1],w=_.x,E=_.y,D=mh({clipPath:Vd(this.props,"hidden")?"url(#".concat(l,")"):void 0},K(this.props),{},J(this.props),{x1:b,y1:x,x2:w,y2:E});return c.a.createElement(Ai,{className:h()("recharts-reference-line",u)},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement("line",Eh({},t,{className:"recharts-reference-line-line"}))}(s,D),zp.renderCallByParent(this.props,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return Kd({x:t,y:n},{x:r,y:i})}({x1:b,y1:x,x2:w,y2:E})))}}])&&bh(n.prototype,r),i&&bh(n,i),t}(l.PureComponent);Dh.displayName="ReferenceLine",Dh.propTypes=mh({},U,{viewBox:f.a.shape({x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number}),xAxis:f.a.object,yAxis:f.a.object,isFront:f.a.bool,alwaysShow:f.a.bool,ifOverflow:f.a.oneOf(["hidden","visible","discard","extendDomain"]),x:f.a.oneOfType([f.a.number,f.a.string]),y:f.a.oneOfType([f.a.number,f.a.string]),segment:f.a.arrayOf(f.a.shape({x:f.a.oneOfType([f.a.number,f.a.string]),y:f.a.oneOfType([f.a.number,f.a.string])})),position:f.a.oneOf(["middle","start","end"]),className:f.a.oneOfType([f.a.number,f.a.string]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),shape:f.a.func}),Dh.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var Ch=Dh;function Oh(e){return(Oh="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)}function Sh(){return(Sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kh(n,!0).forEach((function(t){Th(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Th(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ph(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jh(e,t){return!t||"object"!==Oh(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ih(e){return(Ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fh(e,t){return(Fh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rh=function(e){function t(){return Ph(this,t),jh(this,Ih(t).apply(this,arguments))}var n,r,i;return 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}}),t&&Fh(e,t)}(t,e),n=t,i=[{key:"renderRect",value:function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):a()(e)?e(t):c.a.createElement(hd,Sh({},t,{className:"recharts-reference-area-rect"}))}}],(r=[{key:"getRect",value:function(e,t,n,r){var i=this.props,o=i.x1,a=i.x2,s=i.y1,u=i.y2,l=i.xAxis,c=i.yAxis,p=Jd.create({x:l.scale,y:c.scale}),f={x:e?p.x.apply(o):p.x.rangeMin,y:n?p.y.apply(s):p.y.rangeMin},d={x:t?p.x.apply(a):p.x.rangeMax,y:r?p.y.apply(u):p.y.rangeMax};return!Vd(this.props,"discard")||p.isInRange(f)&&p.isInRange(d)?Kd(f,d):null}},{key:"render",value:function(){var e=this.props,t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,a=(e.alwaysShow,e.clipPathId),s=M(t),u=M(n),l=M(r),p=M(i),f=this.props.shape;if(!s&&!u&&!l&&!p&&!f)return null;var d=this.getRect(s,u,l,p);if(!d&&!f)return null;var m=Vd(this.props,"hidden")?"url(#".concat(a,")"):void 0;return c.a.createElement(Ai,{className:h()("recharts-reference-area",o)},this.constructor.renderRect(f,Ah({clipPath:m},this.props,{},d)),zp.renderCallByParent(this.props,d))}}])&&Mh(n.prototype,r),i&&Mh(n,i),t}(l.PureComponent);Rh.displayName="ReferenceArea",Rh.propTypes=Ah({},U,{viewBox:f.a.shape({x:f.a.number,y:f.a.number,width:f.a.number,height:f.a.number}),xAxis:f.a.object,yAxis:f.a.object,isFront:f.a.bool,alwaysShow:f.a.bool,ifOverflow:f.a.oneOf(["hidden","visible","discard","extendDomain"]),x1:f.a.oneOfType([f.a.number,f.a.string]),x2:f.a.oneOfType([f.a.number,f.a.string]),y1:f.a.oneOfType([f.a.number,f.a.string]),y2:f.a.oneOfType([f.a.number,f.a.string]),className:f.a.oneOfType([f.a.number,f.a.string]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),shape:f.a.oneOfType([f.a.func,f.a.element])}),Rh.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};var zh=Rh,Lh=function(e,t,n,r,i){var o=Z(e,Ch),a=Z(e,ch),s=o.concat(a),u=Z(e,zh),l="".concat(r,"Id"),c=r[0],p=t;if(s.length&&(p=s.reduce((function(e,t){if(t.props[l]===n&&Vd(t.props,"extendDomain")&&P(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),p)),u.length){var f="".concat(c,"1"),d="".concat(c,"2");p=u.reduce((function(e,t){if(t.props[l]===n&&Vd(t.props,"extendDomain")&&P(t.props[f])&&P(t.props[d])){var r=t.props[f],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),p)}return i&&i.length&&(p=i.reduce((function(e,t){return P(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),p)),p},Bh=n(351),Nh=new(n.n(Bh).a);Nh.setMaxListeners&&Nh.setMaxListeners(10);var Vh="recharts.syncMouseEvents";function Uh(e){return(Uh="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)}function Hh(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Wh(){return(Wh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gh(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(n,!0).forEach((function(t){Zh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kh(e){return(Kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jh(e,t){return(Jh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qh={xAxis:["bottom","top"],yAxis:["left","right"]},em={x:0,y:0},tm=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.eventType,i=void 0===r?"axis":r,o=e.axisComponents,s=e.legendContent,u=e.formatAxisMap,p=e.defaultProps,d=e.propTypes,m=function(e){function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(e,t){return!t||"object"!==Uh(t)&&"function"!==typeof t?Xh(e):t}(this,Kh(r).call(this,e))).handleLegendBBoxUpdate=function(e){if(e&&n.legendInstance){var t=n.state,r=t.dataStartIndex,i=t.dataEndIndex,o=t.updateId;n.setState(n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:r,dataEndIndex:i,updateId:o}))}},n.handleReceiveSyncEvent=function(e,t,r){var i=n.props,o=i.syncId,a=i.layout,s=n.state.updateId;if(o===e&&t!==n.uniqueChartId){var u=r.dataStartIndex,l=r.dataEndIndex;if(v()(r.dataStartIndex)&&v()(r.dataEndIndex))if(v()(r.activeTooltipIndex))n.setState(r);else{var c=r.chartX,p=r.chartY,f=r.activeTooltipIndex,d=n.state,h=d.offset,m=d.tooltipTicks;if(!h)return;var y=Yh({},h,{x:h.left,y:h.top}),g=Math.min(c,y.x+y.width),b=Math.min(p,y.y+y.height),x=m[f]&&m[f].value,_=n.getTooltipContent(f),w=m[f]?{x:"horizontal"===a?m[f].coordinate:g,y:"horizontal"===a?b:m[f].coordinate}:em;n.setState(Yh({},r,{activeLabel:x,activeCoordinate:w,activePayload:_}))}else n.setState(Yh({dataStartIndex:u,dataEndIndex:l},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:u,dataEndIndex:l,updateId:s})))}},n.handleBrushChange=function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var i=n.state.updateId;n.setState((function(){return Yh({dataStartIndex:t,dataEndIndex:r},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:i}))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var i=Yh({},r,{isTooltipActive:!0});n.setState(i),n.triggerSyncEvent(i),a()(t)&&t(i,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),i=r?Yh({},r,{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(i),n.triggerSyncEvent(i),a()(t)&&t(i,e)},n.handleItemMouseEnter=function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&a()(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),a()(t)&&t(r,e)},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&W[t]?W[t]:null}(e);if(t&&a()(n.props[t])){var r=n.getMouseInfo(e);(0,n.props[t])(r,e)}},n.handleClick=function(e){var t=n.props.onClick;a()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseDown=function(e){var t=n.props.onMouseDown;a()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;a()(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return np(Sd.getTicks(Yh({},Sd.defaultProps,{},t,{ticks:rp(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return np(Sd.getTicks(Yh({},Sd.defaultProps,{},t,{ticks:rp(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(e){return rp(e,!0)},n.tooltipTicksGenerator=function(e){var t=R(e),n=rp(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:jn()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:mp(t)}},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,s=r.offset;if(!e||!e.props.cursor||!i||!o)return null;var u,c=n.props.layout,p=mi;if("ScatterChart"===t)u=o,p=Hf;else if("BarChart"===t)u=n.getCursorRectangle(),p=hd;else if("radial"===c){var f=n.getCursorPoints(),d=f.cx,h=f.cy,m=f.radius;u={cx:d,cy:h,startAngle:f.startAngle,endAngle:f.endAngle,innerRadius:m,outerRadius:m},p=nd}else u={points:n.getCursorPoints()},p=mi;var v=e.key||"_recharts-cursor",y=Yh({stroke:"#ccc",pointerEvents:"none"},s,{},u,{},K(e.props.cursor),{payload:a,key:v,className:"recharts-tooltip-cursor"});return Object(l.isValidElement)(e.props.cursor)?Object(l.cloneElement)(e.props.cursor,y):Object(l.createElement)(p,y)},n.renderPolarAxis=function(e,t,r){var i=e.type.axisType,o=n.state["".concat(i,"Map")][e.props["".concat(i,"Id")]];return Object(l.cloneElement)(e,Yh({},o,{className:i,key:e.key||"".concat(t,"-").concat(r),ticks:rp(o,!0)}))},n.renderXAxis=function(e,t,r){var i=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(i,e,t,r)},n.renderYAxis=function(e,t,r){var i=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(i,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,i=t.yAxisMap,o=t.offset,a=n.props,s=a.width,u=a.height,c=R(r),p=kf()(i,(function(e){return Of()(e.domain,Number.isFinite)}))||R(i),f=e.props||{};return Object(l.cloneElement)(e,{key:e.key||"grid",x:P(f.x)?f.x:o.left,y:P(f.y)?f.y:o.top,width:P(f.width)?f.width:o.width,height:P(f.height)?f.height:o.height,xAxis:c,yAxis:p,offset:o,chartWidth:s,chartHeight:u,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,i=t.angleAxisMap,o=R(r),a=R(i),s=a.cx,u=a.cy,c=a.innerRadius,p=a.outerRadius;return Object(l.cloneElement)(e,{polarAngles:rp(a,!0).map((function(e){return e.coordinate})),polarRadius:rp(o,!0).map((function(e){return e.coordinate})),cx:s,cy:u,innerRadius:c,outerRadius:p,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,i=t.data,o=n.state,a=o.offset,s=o.dataStartIndex,u=o.dataEndIndex,c=o.updateId;return Object(l.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:ip(n.handleBrushChange,null,e.props.onChange),data:i,x:P(e.props.x)?e.props.x:a.left,y:P(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:P(e.props.width)?e.props.width:a.width,startIndex:s,endIndex:u,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var i=Xh(n).clipPathId,o=n.state,a=o.xAxisMap,s=o.yAxisMap,u=o.offset,c=e.props,p=c.xAxisId,f=c.yAxisId;return Object(l.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[p],yAxis:s[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})},n.renderGraphicChild=function(e,t,r){var i=n.filterFormatItem(e,t,r);if(!i)return null;var o=Object(l.cloneElement)(e,i.props),a=n.state,s=a.isTooltipActive,u=a.tooltipAxis,c=a.activeTooltipIndex,p=a.activeLabel,f=n.props.children,d=$(f,sr),h=i.props,m=h.points,y=h.isRange,g=h.baseLine,b=i.item.props,x=b.activeDot;if(!b.hide&&s&&d&&x&&c>=0){var _,w;if(u.dataKey&&!u.allowDuplicatedCategory){var E="function"===typeof u.dataKey?function(e){return u.dataKey(e.payload)}:"payload.".concat(u.dataKey);_=L(m,E,p),w=y&&g&&L(g,E,p)}else _=m[c],w=y&&g&&g[c];if(!v()(_))return[o].concat(Gh(n.renderActivePoints({item:i,activePoint:_,basePoint:w,childIndex:c,isRange:y})))}return y?[o,null,null]:[o,null]},n.renderCustomized=function(e){return Object(l.cloneElement)(e,Yh({},n.props,{},n.state))};var i=n.constructor.createDefaultState(e);return n.state=Yh({},i,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Yh({props:e},i,{updateId:0}))),n.uniqueChartId=v()(e.id)?I("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=Mf()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var p,f,d;return 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}}),t&&Jh(e,t)}(r,e),p=r,d=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(l.isValidElement)(e)?Object(l.cloneElement)(e,t):a()(e)?e(t):c.a.createElement(Di,t),c.a.createElement(Ai,{className:"recharts-active-dot",key:t.key},n)}}],(f=[{key:"componentDidMount",value:function(){v()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.children,o=n.width,a=n.height,s=n.layout,u=n.stackOffset,l=n.margin,c=this.state.updateId;if(e.data===r&&e.width===o&&e.height===a&&e.layout===s&&e.stackOffset===u&&B(e.margin,l)){if(!oe(e.children,i)){var p=v()(e.data)?c+1:c;this.setState((function(n){return Yh({updateId:p},t.updateStateOfAxisMapsOffsetAndStackGroups(Yh({props:e},n,{updateId:p})))}))}}else{var f=this.constructor.createDefaultState(e);this.setState(Yh({},f,{updateId:c+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Yh({props:e},f,{updateId:c+1}))))}v()(this.props.syncId)&&!v()(e.syncId)&&this.addListener(),!v()(this.props.syncId)&&v()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){v()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.children,c="".concat(r,"Id"),p=Z(l,i),f={};return p&&p.length?f=this.getAxisMapByAxes(e,{axes:p,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(f=this.getAxisMapByItems(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),f}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,i=t.graphicalItems,o=t.axisType,a=t.axisIdKey,s=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,p=e.children,f=e.stackOffset,d=tp(c,o);return r.reduce((function(t,r){var h=r.props,m=h.type,y=h.dataKey,g=h.allowDataOverflow,b=h.allowDuplicatedCategory,x=h.scale,_=h.ticks,E=r.props[a],D=n.constructor.getDisplayedData(e,{graphicalItems:i.filter((function(e){return e.props[a]===E})),dataStartIndex:u,dataEndIndex:l}),C=D.length;if(!t[E]){var O,S,k;if(y){if(O=Kc(D,y,m),"category"===m&&d){var A=function(e){if(!w()(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(O);b&&A?(S=O,O=Tf()(0,C)):b||(O=vp(r.props.domain,O,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(Gh(e),[t])}),[]))}else if("category"===m)O=b?O.filter((function(e){return""!==e&&!v()(e)})):vp(r.props.domain,O,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||v()(t)?e:[].concat(Gh(e),[t])}),[]);else if("number"===m){var T=function(e,t,n,r){var i=t.map((function(t){return Qc(e,t,n,r)})).filter((function(e){return!v()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(D,i.filter((function(e){return e.props[a]===E&&!e.props.hide})),y,o);T&&(O=T)}!d||"number"!==m&&"auto"===x||(k=Kc(D,y,"category"))}else O=d?Tf()(0,C):s&&s[E]&&s[E].hasStack&&"number"===m?"expand"===f?[0,1]:pp(s[E].stackGroups,u,l):ep(D,i.filter((function(e){return e.props[a]===E&&!e.props.hide})),m,!0);return"number"===m&&(O=Lh(p,O,E,o,_),r.props.domain&&(O=hp(r.props.domain,O,g))),Yh({},t,Zh({},E,Yh({},r.props,{axisType:o,domain:O,categoricalDomain:k,duplicateDomain:S,originalDomain:r.props.domain,isCategorial:d,layout:c})))}return t}),{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,l=e.layout,c=e.children,p=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),f=p.length,d=tp(l,i),h=-1;return n.reduce((function(e,t){var m,v=t.props[o];return e[v]?e:(h++,d?m=Tf()(0,f):a&&a[v]&&a[v].hasStack?(m=pp(a[v].stackGroups,s,u),m=Lh(c,m,v,i)):(m=hp(r.defaultProps.domain,ep(p,n.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),m=Lh(c,m,v,i)),Yh({},e,Zh({},v,Yh({axisType:i},r.defaultProps,{hide:!0,orientation:Qh[i]&&Qh[i][h%2],domain:m,originalDomain:r.defaultProps.domain,isCategorial:d,layout:l}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,i=e.find((function(e){return e&&e.index===t}));if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return Yh({},n,{},wp(n.cx,n.cy,a,o),{angle:o,radius:a})}var s=i.coordinate,u=n.angle;return Yh({},n,{},wp(n.cx,n.cy,s,u),{angle:u,radius:s})}return em}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,o=r.xAxisMap,a=r.yAxisMap;if("axis"!==i&&o&&a){var s=R(o).scale,u=R(a).scale;return Yh({},t,{xValue:s&&s.invert?s.invert(t.chartX):null,yValue:u&&u.invert?u.invert(t.chartY):null})}var l=this.state,c=l.orderedTooltipTicks,p=l.tooltipAxis,f=l.tooltipTicks,d=function(e,t,n,r){var i=-1,o=t.length;if(o>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,s=0;s<o;s++){var u=s>0?n[s-1].coordinate:n[o-1].coordinate,l=n[s].coordinate,c=s>=o-1?n[0].coordinate:n[s+1].coordinate,p=void 0;if(A(l-u)!==A(c-l)){var f=[];if(A(c-l)===A(a[1]-a[0])){p=c;var d=l+a[1]-a[0];f[0]=Math.min(d,(d+u)/2),f[1]=Math.max(d,(d+u)/2)}else{p=u;var h=c+a[1]-a[0];f[0]=Math.min(l,(h+l)/2),f[1]=Math.max(l,(h+l)/2)}var m=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>m[0]&&e<=m[1]||e>=f[0]&&e<=f[1]){i=n[s].index;break}}else{var v=Math.min(u,c),y=Math.max(u,c);if(e>(v+l)/2&&e<=(y+l)/2){i=n[s].index;break}}}else for(var g=0;g<o;g++)if(0===g&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g>0&&g<o-1&&e>(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===o-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){i=t[g].index;break}}else i=0;return i}(this.calculateTooltipPos(n),c,f,p);if(d>=0&&f){var h=f[d]&&f[d].value;return Yh({},t,{activeTooltipIndex:d,activeLabel:h,activePayload:this.getTooltipContent(d,h),activeCoordinate:this.getActiveCoordinate(c,d,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=o.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,s=r.props,u=s.dataKey,l=s.name,c=s.unit,p=s.formatter,f=s.data,d=s.tooltipType;return(a=i.dataKey&&!i.allowDuplicatedCategory?L(f||o,i.dataKey,t):f&&f[e]||o[e])?[].concat(Gh(n),[Yh({},K(r),{dataKey:u,unit:c,formatter:p,name:l||u,color:Xc(r),value:$c(a,u),type:d,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,i=t.stackGroups,a=t.offset,s=t.updateId,u=t.dataStartIndex,l=t.dataEndIndex,c=e.barSize,p=e.layout,f=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,m=this.constructor.getAxisNameByLayout(p),y=m.numericAxisName,g=m.cateAxisName,b=this.constructor.hasBar(r),x=b&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var u=r[o[a]].stackGroups,l=Object.keys(u),c=0,p=l.length;c<p;c++){var f=u[l[c]],d=f.items,h=f.cateAxisId,m=d.filter((function(e){return Y(e.type).indexOf("Bar")>=0}));if(m&&m.length){var y=m[0].props.barSize,g=m[0].props[h];i[g]||(i[g]=[]),i[g].push({item:m[0],stackList:m.slice(1),barSize:v()(y)?t:y})}}return i}({barSize:c,stackGroups:i}),_=[];return r.forEach((function(r,c){var m,w=n.constructor.getDisplayedData(e,{dataStartIndex:u,dataEndIndex:l},r),E=r.props,D=E.dataKey,C=E.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(g,"Id")],k=o.reduce((function(e,n){var i,o=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],s=o&&o[a];return Yh({},e,(Zh(i={},n.axisType,s),Zh(i,"".concat(n.axisType,"Ticks"),rp(s)),i))}),{}),A=k[g],T=k["".concat(g,"Ticks")],P=i&&i[O]&&i[O].hasStack&&function(e,t){var n=e.props.stackId;if(M(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(r,i[O].stackGroups),j=mp(A,T),I=v()(C)?h:C,R=b&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var u,l=F(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var c=!1,p=r/s,f=o.reduce((function(e,t){return e+t.barSize||0}),0);(f+=(s-1)*l)>=r&&(f-=(s-1)*l,l=0),f>=r&&p>0&&(c=!0,f=s*(p*=.9));var d={offset:((r-f)/2>>0)-l,size:0};u=o.reduce((function(e,t){var n=[].concat(Gc(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:c?p:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=F(n,r,0,!0);r-2*h-(s-1)*l<=0&&(l=0);var m=(r-2*h-(s-1)*l)/s;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;u=o.reduce((function(e,t,n){var r=[].concat(Gc(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u}({barGap:f,barCategoryGap:d,bandSize:j,sizeList:x[S],maxBarSize:I}),z=r&&r.type&&r.type.getComposedData;z&&_.push({props:Yh({},z(Yh({},k,{displayedData:w,props:e,dataKey:D,item:r,bandSize:j,barPosition:R,offset:a,stackedData:P,layout:p,dataStartIndex:u,dataEndIndex:l,onItemMouseLeave:ip(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:ip(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(m={key:r.key||"item-".concat(c)},Zh(m,y,k[y]),Zh(m,g,k[g]),Zh(m,"animationId",s),m)),childIndex:se(r,e.children),item:r})})),_}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,s=o.offset;if("horizontal"===i)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===i)r=t=a.y,e=s.left,n=s.left+s.width;else if(!v()(a.cx)||!v()(a.cy)){if("centric"!==i){var u=a.cx,l=a.cy,c=a.radius,p=a.startAngle,f=a.endAngle;return{points:[wp(u,l,c,p),wp(u,l,c,f)],cx:u,cy:l,radius:c,startAngle:p,endAngle:f}}var d=a.cx,h=a.cy,m=a.innerRadius,y=a.outerRadius,g=a.angle,b=wp(d,h,m,g),x=wp(d,h,y,g);e=b.x,t=b.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var s=R(o);return Cp({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=$(e,sr)&&"axis"===i?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Yh({},J(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,i=e.props,a=e.dataStartIndex,s=e.dataEndIndex,l=e.updateId;if(!te({props:i}))return null;var c=i.children,p=i.layout,f=i.stackOffset,d=i.data,h=i.reverseStackOrder,m=this.constructor.getAxisNameByLayout(p),v=m.numericAxisName,y=m.cateAxisName,g=Z(c,n),b=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(M(o)){var u=s.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),s.hasStack=!0,s.stackGroups[o]=u}else s.stackGroups[I("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Yc({},e,Zc({},a,s))}),{});return Object.keys(a).reduce((function(t,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,o){var a=s.stackGroups[o];return Yc({},t,Zc({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:up(e,a.items,i)}))}),{})),Yc({},t,Zc({},o,s))}),{})}(d,g,"".concat(v,"Id"),"".concat(y,"Id"),f,h),x=o.reduce((function(e,t){return Yh({},e,Zh({},"".concat(t.axisType,"Map"),r.getAxisMap(i,Yh({},t,{graphicalItems:g,stackGroups:t.axisType===v&&b,dataStartIndex:a,dataEndIndex:s}))))}),{}),_=this.calculateOffset(Yh({},x,{props:i,graphicalItems:g}));Object.keys(x).forEach((function(e){x[e]=u(i,x[e],_,e.replace("Map",""),t)}));var w=x["".concat(y,"Map")],E=this.tooltipTicksGenerator(w),D=this.getFormatItems(i,Yh({},x,{dataStartIndex:a,dataEndIndex:s,updateId:l,graphicalItems:g,stackGroups:b,offset:_}));return Yh({formatedGraphicalItems:D,graphicalItems:g,offset:_,stackGroups:b},E,{},x)}},{key:"addListener",value:function(){Nh.on(Vh,this.handleReceiveSyncEvent),Nh.setMaxListeners&&Nh._maxListeners&&Nh.setMaxListeners(Nh._maxListeners+1)}},{key:"removeListener",value:function(){Nh.removeListener(Vh,this.handleReceiveSyncEvent),Nh.setMaxListeners&&Nh._maxListeners&&Nh.setMaxListeners(Nh._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,s=t.width,u=t.height,l=t.children,c=t.margin||{},p=$(l,Nd),f=$(l,_t),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:Yh({},e,Zh({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:Yh({},e,Zh({},r,e[r]+n.height))}),{top:c.top||0,bottom:c.bottom||0}),m=Yh({},h,{},d),v=m.bottom;return p&&(m.bottom+=p.props.height||Nd.defaultProps.height),f&&this.legendInstance&&(m=function(e,t,n,r){var i=n.children,o=n.width,a=n.height,s=n.margin,u=o-(s.left||0)-(s.right||0),l=a-(s.top||0)-(s.bottom||0),c=Jc({children:i,items:t,legendWidth:u,legendHeight:l}),p=e;if(c){var f=r||{},d=c.align,h=c.verticalAlign,m=c.layout;("vertical"===m||"horizontal"===m&&"center"===h)&&P(e[d])&&(p=Yc({},e,Zc({},d,p[d]+(f.width||0)))),("horizontal"===m||"vertical"===m&&"center"===d)&&P(e[h])&&(p=Yc({},e,Zc({},h,p[h]+(f.height||0))))}return p}(m,n,t,this.legendInstance.getBBox())),Yh({brushBottom:v},m,{width:s-m.left-m.right,height:u-m.top-m.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;v()(t)||Nh.emit(Vh,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===Y(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var i=this.props,o=i.width,a=i.height;return c.a.createElement(Sd,Wh({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var e=this,t=this.state.formatedGraphicalItems,n=this.props,r=n.children,i=n.width,o=n.height,a=this.props.margin||{},u=i-(a.left||0)-(a.right||0),c=o-(a.top||0)-(a.bottom||0),p=Jc({children:r,formatedGraphicalItems:t,legendWidth:u,legendHeight:c,legendContent:s});if(!p)return null;var f=p.item,d=Hh(p,["item"]);return Object(l.cloneElement)(f,Yh({},d,{chartWidth:i,chartHeight:o,margin:a,ref:function(t){e.legendInstance=t},onBBoxUpdate:this.handleLegendBBoxUpdate}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=$(e,sr);if(!t)return null;var n=this.state,r=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,a=n.activeLabel,s=n.offset;return Object(l.cloneElement)(t,{viewBox:Yh({},s,{x:s.left,y:s.top}),active:r,label:a,payload:r?o:[],coordinate:i})}},{key:"renderActivePoints",value:function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],s=t.props.key,u=t.item.props,l=u.activeDot,c=Yh({index:i,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:Xc(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(i)},K(l),{},J(l));return a.push(this.constructor.renderActiveDot(l,c,i)),r?a.push(this.constructor.renderActiveDot(l,Yh({},c,{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(i)}),i)):o&&a.push(null),a}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,o=t.width;return c.a.createElement("defs",null,c.a.createElement("clipPath",{id:e},c.a.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"render",value:function(){var e=this;if(!te(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,o=t.height,a=t.style,s=t.compact,u=Hh(t,["children","className","width","height","style","compact"]),l=K(u),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return c.a.createElement(fe,Wh({},l,{width:i,height:o}),this.renderClipPath(),ae(n,p));var f=this.parseEventsOfWrapper();return c.a.createElement("div",Wh({className:h()("recharts-wrapper",r),style:Yh({position:"relative",cursor:"default",width:i,height:o},a)},f,{ref:function(t){e.container=t}}),c.a.createElement(fe,Wh({},l,{width:i,height:o}),this.renderClipPath(),ae(n,p)),this.renderLegend(),this.renderTooltip())}}])&&$h(p.prototype,f),d&&$h(p,d),r}(l.Component);return m.displayName=t,m.propTypes=Yh({syncId:f.a.oneOfType([f.a.string,f.a.number]),compact:f.a.bool,width:f.a.number,height:f.a.number,data:f.a.arrayOf(f.a.object),layout:f.a.oneOf(["horizontal","vertical"]),stackOffset:f.a.oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:f.a.number,margin:f.a.shape({top:f.a.number,right:f.a.number,bottom:f.a.number,left:f.a.number}),barCategoryGap:f.a.oneOfType([f.a.number,f.a.string]),barGap:f.a.oneOfType([f.a.number,f.a.string]),barSize:f.a.oneOfType([f.a.number,f.a.string]),maxBarSize:f.a.number,style:f.a.object,className:f.a.string,children:f.a.oneOfType([f.a.arrayOf(f.a.node),f.a.node]),defaultShowTooltip:f.a.bool,onClick:f.a.func,onMouseLeave:f.a.func,onMouseEnter:f.a.func,onMouseMove:f.a.func,onMouseDown:f.a.func,onMouseUp:f.a.func,reverseStackOrder:f.a.bool,id:f.a.string},d),m.defaultProps=Yh({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1},p),m.createDefaultState=function(e){var t=e.children,n=e.defaultShowTooltip,r=$(t,Nd);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!v()(n)&&n}},m.hasBar=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Y(e&&e.type);return t&&t.indexOf("Bar")>=0}))},m.getDisplayedData=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(Gh(e),Gh(n)):e}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var s=e.data;return s&&s.length&&P(i)&&P(o)?s.slice(i,o+1):[]},m}({chartName:"LineChart",GraphicalChild:uf,axisComponents:[{axisType:"xAxis",AxisComp:vf},{axisType:"yAxis",AxisComp:Df}],formatAxisMap:function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,u=Object.keys(t),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return u.reduce((function(e,o){var a,u,c,p,f=t[o],d=f.orientation,h=f.domain,m=f.padding,v=void 0===m?{}:m,y=f.mirror,g=f.reversed,b="".concat(d).concat(y?"Mirror":"");a="xAxis"===r?[n.left+(v.left||0),n.left+n.width-(v.right||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0),n.top+n.height-(v.bottom||0)]:f.range,g&&(a=[a[1],a[0]]);var x=op(f,i),_=x.scale,w=x.realScaleType;_.domain(h).range(a),ap(_);var E=lp(_,Zd({},f,{realScaleType:w}));"xAxis"===r?(p="top"===d&&!y||"bottom"===d&&y,u=n.left,c=l[b]-p*f.height):"yAxis"===r&&(p="left"===d&&!y||"right"===d&&y,u=l[b]-p*f.width,c=n.top);var D=Zd({},f,{},E,{realScaleType:w,x:u,y:c,scale:_,width:"xAxis"===r?n.width:f.width,height:"yAxis"===r?n.height:f.height});return D.bandSize=mp(D,E),f.hide||"xAxis"!==r?f.hide||(l[b]+=(p?-1:1)*D.width):l[b]+=(p?-1:1)*D.height,Zd({},e,$d({},o,D))}),{})}})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e){return(r="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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(353);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){(function(t){for(var r=n(565),i="undefined"===typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],u=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!u){var c=0,p=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-c));c=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return f.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}}).call(this,n(77))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(9),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},c=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,c=e.classes,p=e.className,f=e.color,d=void 0===f?"initial":f,h=e.component,m=e.display,v=void 0===m?"initial":m,y=e.gutterBottom,g=void 0!==y&&y,b=e.noWrap,x=void 0!==b&&b,_=e.paragraph,w=void 0!==_&&_,E=e.variant,D=void 0===E?"body1":E,C=e.variantMapping,O=void 0===C?l:C,S=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=h||(w?"p":O[D]||l[D])||"span";return o.createElement(k,Object(r.a)({className:Object(a.a)(c.root,p,"inherit"!==D&&c[D],"initial"!==d&&c["color".concat(Object(u.a)(d))],x&&c.noWrap,g&&c.gutterBottom,w&&c.paragraph,"inherit"!==s&&c["align".concat(Object(u.a)(s))],"initial"!==v&&c["display".concat(Object(u.a)(v))]),ref:t},S))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(c)},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=(n(1),n(3)),s=n(6),u=n(10),l=n(130),c=n(9),p=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,p=e.color,f=void 0===p?"default":p,d=e.component,h=void 0===d?"button":d,m=e.disabled,v=void 0!==m&&m,y=e.disableElevation,g=void 0!==y&&y,b=e.disableFocusRipple,x=void 0!==b&&b,_=e.endIcon,w=e.focusVisibleClassName,E=e.fullWidth,D=void 0!==E&&E,C=e.size,O=void 0===C?"medium":C,S=e.startIcon,k=e.type,A=void 0===k?"button":k,T=e.variant,P=void 0===T?"text":T,M=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=S&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(c.a)(O))])},S),I=_&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(c.a)(O))])},_);return o.createElement(l.a,Object(i.a)({className:Object(a.a)(s.root,s[P],u,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(P).concat(Object(c.a)(f))],"medium"!==O&&[s["".concat(P,"Size").concat(Object(c.a)(O))],s["size".concat(Object(c.a)(O))]],g&&s.disableElevation,v&&s.disabled,D&&s.fullWidth),component:h,disabled:v,focusRipple:!x,focusVisibleClassName:Object(a.a)(s.focusVisible,w),ref:t,type:A},M),o.createElement("span",{className:s.label},j,n,I))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.d)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(u.d)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(u.d)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(p)},function(e,t,n){"use strict";var r=n(4),i=n(15),o=n(2),a=n(0),s=(n(1),n(3)),u=n(6),l=n(623),c=a.forwardRef((function(e,t){var n,i=e.classes,u=e.className,c=e.component,p=void 0===c?"li":c,f=e.disableGutters,d=void 0!==f&&f,h=e.ListItemClasses,m=e.role,v=void 0===m?"menuitem":m,y=e.selected,g=e.tabIndex,b=Object(r.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),a.createElement(l.a,Object(o.a)({button:!0,role:v,tabIndex:n,component:p,selected:y,disableGutters:d,classes:Object(o.a)({dense:i.dense},h),className:Object(s.a)(i.root,u,y&&i.selected,!d&&i.gutters),ref:t},b))}));t.a=Object(u.a)((function(e){return{root:Object(o.a)({},e.typography.body1,Object(i.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(o.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(c)},,function(e,t,n){var r=n(121),i=n(491),o=n(492),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(505),i=n(508);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(106);function i(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r="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="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.a=i},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(10),l=n(130),c=n(9),p=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,u=e.children,p=e.classes,f=e.className,d=e.color,h=void 0===d?"default":d,m=e.disabled,v=void 0!==m&&m,y=e.disableFocusRipple,g=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,_=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(l.a,Object(r.a)({className:Object(a.a)(p.root,f,"default"!==h&&p["color".concat(Object(c.a)(h))],v&&p.disabled,"small"===x&&p["size".concat(Object(c.a)(x))],{start:p.edgeStart,end:p.edgeEnd}[s]),centerRipple:!0,focusRipple:!g,disabled:v,ref:t},_),o.createElement("span",{className:p.label},u))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.d)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(p)},,,function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t,n){e.exports=!n(78)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(12),i=n(190);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(91),i=n(79);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return i.a})),n.d(t,"createSvgIcon",(function(){return o.a})),n.d(t,"debounce",(function(){return a.a})),n.d(t,"deprecatedPropType",(function(){return s})),n.d(t,"isMuiElement",(function(){return u.a})),n.d(t,"ownerDocument",(function(){return l.a})),n.d(t,"ownerWindow",(function(){return c.a})),n.d(t,"requirePropFactory",(function(){return p.a})),n.d(t,"setRef",(function(){return f.a})),n.d(t,"unsupportedProp",(function(){return d.a})),n.d(t,"useControlled",(function(){return h.a})),n.d(t,"useEventCallback",(function(){return m.a})),n.d(t,"useForkRef",(function(){return v.a})),n.d(t,"unstable_useId",(function(){return y.a})),n.d(t,"useIsFocusVisible",(function(){return g.a}));var r=n(9),i=n(52),o=n(22),a=n(66);function s(e,t){return function(){return null}}var u=n(83),l=n(27),c=n(82),p=n(168),f=n(46),d=n(169),h=n(47),m=n(24),v=n(14),y=n(34),g=n(64)},function(e,t,n){"use strict";var r=n(15),i=n(4),o=n(353),a=n(62),s=n(2);function u(e,t,n){var i;return Object(s.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(s.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var l=n(354),c={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},d={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=n(10),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:p[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:p[800],default:"#303030"},action:{active:c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(g.i)(e.main,i):"dark"===t&&(e.dark=Object(g.a)(e.main,o)))}function w(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,r=e.secondary,a=void 0===r?{light:d.A200,main:d.A400,dark:d.A700}:r,u=e.error,w=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,E=e.warning,D=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,C=e.info,O=void 0===C?{light:v[300],main:v[500],dark:v[700]}:C,S=e.success,k=void 0===S?{light:y[300],main:y[500],dark:y[700]}:S,A=e.type,T=void 0===A?"light":A,P=e.contrastThreshold,M=void 0===P?3:P,j=e.tonalOffset,I=void 0===j?.2:j,F=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function R(e){return Object(g.e)(e,x.text.primary)>=M?x.text.primary:b.text.primary}var z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(s.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return _(e,"light",n,I),_(e,"dark",r,I),e.contrastText||(e.contrastText=R(e.main)),e},L={dark:x,light:b};return Object(o.a)(Object(s.a)({common:c,type:T,primary:z(n),secondary:z(a,"A400","A200","A700"),error:z(w),warning:z(D),info:z(O),success:z(k),grey:p,contrastThreshold:M,getContrastText:R,augmentColor:z,tonalOffset:I},L[T]),F)}function E(e){return Math.round(1e5*e)/1e5}var D={textTransform:"uppercase"};function C(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,u=n.fontSize,l=void 0===u?14:u,c=n.fontWeightLight,p=void 0===c?300:c,f=n.fontWeightRegular,d=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,y=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,_=n.pxToRem,w=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var C=l/14,O=_||function(e){return"".concat(e/b*C,"rem")},S=function(e,t,n,r,i){return Object(s.a)({fontFamily:a,fontWeight:e,fontSize:O(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===a?{letterSpacing:"".concat(E(r/t),"em")}:{},i,x)},k={h1:S(p,96,1.167,-1.5),h2:S(p,60,1.2,-.5),h3:S(d,48,1.167,0),h4:S(d,34,1.235,.25),h5:S(d,24,1.334,0),h6:S(m,20,1.6,.15),subtitle1:S(d,16,1.75,.15),subtitle2:S(m,14,1.57,.1),body1:S(d,16,1.5,.15),body2:S(d,14,1.43,.15),button:S(m,14,1.75,.4,D),caption:S(d,12,1.66,.4),overline:S(d,12,2.66,1,D)};return Object(o.a)(Object(s.a)({htmlFontSize:b,pxToRem:O,round:E,fontFamily:a,fontSize:l,fontWeightLight:p,fontWeightRegular:d,fontWeightMedium:m,fontWeightBold:y},k),w,{clone:!1})}function O(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var S=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)],k={borderRadius:4},A=n(715);function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(A.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var P=n(38),M=n(152);t.a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,s=void 0===r?{}:r,l=e.palette,c=void 0===l?{}:l,p=e.spacing,f=e.typography,d=void 0===f?{}:f,h=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=w(c),v=Object(a.a)(n),y=T(p),g=Object(o.a)({breakpoints:v,direction:"ltr",mixins:u(v,y,s),overrides:{},palette:m,props:{},shadows:S,typography:C(m,d),spacing:y,shape:k,transitions:P.a,zIndex:M.a},h),b=arguments.length,x=new Array(b>1?b-1:0),_=1;_<b;_++)x[_-1]=arguments[_];return g=x.reduce((function(e,t){return Object(o.a)(e,t)}),g)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(123);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(125);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){var r=n(192);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(91),i=n(79);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t,n){var r=n(184);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(264),i=n(586),o=n(257),a=n(144),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(72),i=n(559);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},function(e,t,n){var r=n(613)();e.exports=r},,,function(e,t,n){"use strict";e.exports=n(437)},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(63).Symbol;e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(109);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(267),i=n(597),o=n(103);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t,n){var r=n(267),i=n(598),o=n(103);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(94),u=n(6),l=n(9),c=n(83),p=n(69),f=o.forwardRef((function(e,t){var n=e.children,u=e.classes,f=e.className,d=e.color,h=void 0===d?"primary":d,m=e.component,v=void 0===m?"div":m,y=e.disabled,g=void 0!==y&&y,b=e.error,x=void 0!==b&&b,_=e.fullWidth,w=void 0!==_&&_,E=e.focused,D=e.hiddenLabel,C=void 0!==D&&D,O=e.margin,S=void 0===O?"none":O,k=e.required,A=void 0!==k&&k,T=e.size,P=e.variant,M=void 0===P?"standard":P,j=Object(i.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Object(c.a)(t,["Input","Select"])){var n=Object(c.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),F=I[0],R=I[1],z=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Object(c.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),L=z[0],B=z[1],N=o.useState(!1),V=N[0],U=N[1],H=void 0!==E?E:V;g&&H&&U(!1);var W=o.useCallback((function(){B(!0)}),[]),G={adornedStart:F,setAdornedStart:R,color:h,disabled:g,error:x,filled:L,focused:H,fullWidth:w,hiddenLabel:C,margin:("small"===T?"dense":void 0)||S,onBlur:function(){U(!1)},onEmpty:o.useCallback((function(){B(!1)}),[]),onFilled:W,onFocus:function(){U(!0)},registerEffect:void 0,required:A,variant:M};return o.createElement(p.a.Provider,{value:G},o.createElement(v,Object(r.a)({className:Object(a.a)(u.root,f,"none"!==S&&u["margin".concat(Object(l.a)(S))],w&&u.fullWidth),ref:t},j),n))}));t.a=Object(u.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=n.n(o),s=(n(1),n(21)),u=n(3),l=n(14),c=n(24),p=n(6),f=n(64),d=n(57),h=n(33),m=n(124),v=n(39),y=n(112);function g(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(o.isValidElement)(e)?t(e):e}(e)})),n}function b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=g(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r<i[u].length;r++){var l=i[u][r];s[i[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var u=a in t,l=a in r,c=t[a],p=Object(o.isValidElement)(c)&&!c.props.in;!l||u&&!p?l||!u||p?l&&u&&Object(o.isValidElement)(c)&&(i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:b(s,"exit",e),enter:b(s,"enter",e)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:b(s,"exit",e),enter:b(s,"enter",e)})}})),i}var _=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Object(m.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(v.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,g(n.children,(function(e){return Object(o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:b(e,"appear",n),enter:b(e,"enter",n),exit:b(e,"exit",n)})}))):x(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=g(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(h.a)(e,["component","childFactory"]),i=this.state.contextValue,o=_(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(y.a.Provider,{value:i},o):a.a.createElement(y.a.Provider,{value:i},a.a.createElement(t,r,o))},t}(a.a.Component);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};var E=w,D="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var C=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,p=e.onExited,f=void 0===p?function(){}:p,d=e.timeout,h=o.useState(!1),m=h[0],v=h[1],y=Object(u.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+i},b=Object(u.a)(t.child,m&&t.childLeaving,r&&t.childPulsate),x=Object(c.a)(f);return D((function(){if(!l){v(!0);var e=setTimeout(x,d);return function(){clearTimeout(e)}}}),[x,l,d]),o.createElement("span",{className:y,style:g},o.createElement("span",{className:b}))},O=o.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,s=e.classes,l=e.className,c=Object(i.a)(e,["center","classes","className"]),p=o.useState([]),f=p[0],h=p[1],m=o.useRef(0),v=o.useRef(null);o.useEffect((function(){v.current&&(v.current(),v.current=null)}),[f]);var y=o.useRef(!1),g=o.useRef(null),b=o.useRef(null),x=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var _=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(d.a)(e),[o.createElement(C,{key:m.current,classes:s,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),m.current+=1,v.current=a}),[s]),w=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var c,p,f,d=l?null:x.current,h=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),p=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,w=m.clientY;c=Math.round(v-h.left),p=Math.round(w-h.top)}if(s)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var E=2*Math.max(Math.abs((d?d.clientWidth:0)-c),c)+2,D=2*Math.max(Math.abs((d?d.clientHeight:0)-p),p)+2;f=Math.sqrt(Math.pow(E,2)+Math.pow(D,2))}e.touches?null===b.current&&(b.current=function(){_({pulsate:i,rippleX:c,rippleY:p,rippleSize:f,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):_({pulsate:i,rippleX:c,rippleY:p,rippleSize:f,cb:n})}}),[a,_]),D=o.useCallback((function(){w({},{pulsate:!0})}),[w]),O=o.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){O(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:D,start:w,stop:O}}),[D,w,O]),o.createElement("span",Object(r.a)({className:Object(u.a)(s.root,l),ref:x},c),o.createElement(E,{component:null,exit:!0},f))})),S=Object(p.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(O)),k=o.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,p=e.centerRipple,d=void 0!==p&&p,h=e.children,m=e.classes,v=e.className,y=e.component,g=void 0===y?"button":y,b=e.disabled,x=void 0!==b&&b,_=e.disableRipple,w=void 0!==_&&_,E=e.disableTouchRipple,D=void 0!==E&&E,C=e.focusRipple,O=void 0!==C&&C,k=e.focusVisibleClassName,A=e.onBlur,T=e.onClick,P=e.onFocus,M=e.onFocusVisible,j=e.onKeyDown,I=e.onKeyUp,F=e.onMouseDown,R=e.onMouseLeave,z=e.onMouseUp,L=e.onTouchEnd,B=e.onTouchMove,N=e.onTouchStart,V=e.onDragLeave,U=e.tabIndex,H=void 0===U?0:U,W=e.TouchRippleProps,G=e.type,q=void 0===G?"button":G,Y=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Z=o.useRef(null);var $=o.useRef(null),K=o.useState(!1),X=K[0],J=K[1];x&&X&&J(!1);var Q=Object(f.a)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;return Object(c.a)((function(r){return t&&t(r),!n&&$.current&&$.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),Z.current.focus()}}}),[]),o.useEffect((function(){X&&O&&!w&&$.current.pulsate()}),[w,O,X]);var ie=re("start",F),oe=re("stop",V),ae=re("stop",z),se=re("stop",(function(e){X&&e.preventDefault(),R&&R(e)})),ue=re("start",N),le=re("stop",L),ce=re("stop",B),pe=re("stop",(function(e){X&&(te(e),J(!1)),A&&A(e)}),!1),fe=Object(c.a)((function(e){Z.current||(Z.current=e.currentTarget),ee(e)&&(J(!0),M&&M(e)),P&&P(e)})),de=function(){var e=s.findDOMNode(Z.current);return g&&"button"!==g&&!("A"===e.tagName&&e.href)},he=o.useRef(!1),me=Object(c.a)((function(e){O&&!he.current&&X&&$.current&&" "===e.key&&(he.current=!0,e.persist(),$.current.stop(e,(function(){$.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),j&&j(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!x&&(e.preventDefault(),T&&T(e))})),ve=Object(c.a)((function(e){O&&" "===e.key&&$.current&&X&&!e.defaultPrevented&&(he.current=!1,e.persist(),$.current.stop(e,(function(){$.current.pulsate(e)}))),I&&I(e),T&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ye=g;"button"===ye&&Y.href&&(ye="a");var ge={};"button"===ye?(ge.type=q,ge.disabled=x):("a"===ye&&Y.href||(ge.role="button"),ge["aria-disabled"]=x);var be=Object(l.a)(a,t),xe=Object(l.a)(ne,Z),_e=Object(l.a)(be,xe),we=o.useState(!1),Ee=we[0],De=we[1];o.useEffect((function(){De(!0)}),[]);var Ce=Ee&&!w&&!x;return o.createElement(ye,Object(r.a)({className:Object(u.a)(m.root,v,X&&[m.focusVisible,k],x&&m.disabled),onBlur:pe,onClick:T,onFocus:fe,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:le,onTouchMove:ce,onTouchStart:ue,ref:_e,tabIndex:x?-1:H},ge,Y),h,Ce?o.createElement(S,Object(r.a)({ref:$,center:d},W)):null)}));t.a=Object(p.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(k)},,,,function(e,t,n){var r=n(99);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(495),i=n(496),o=n(497),a=n(498),s=n(499);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(181);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(92)(Object,"create");e.exports=r},function(e,t,n){var r=n(517);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(532),i=n(538),o=n(101);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(102);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(259),i=n(578)(r);e.exports=i},function(e,t,n){var r=n(181),i=n(101),o=n(189),a=n(42);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=n.n(o),s=n(3),u=(n(1),n(51)),l=n.n(u),c=n(60);function p(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var f=n(65);t.a=function(e){var t=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,u=Object(i.a)(n,["name"]);var f,d=o,h="function"===typeof t?function(e){return{root:function(n){return t(Object(r.a)({theme:e},n))}}}:{root:t},m=Object(c.a)(h,Object(r.a)({Component:e,name:o||e.displayName,classNamePrefix:d},u));t.filterProps&&(f=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var v=a.a.forwardRef((function(t,n){var o=t.children,u=t.className,l=t.clone,c=t.component,d=Object(i.a)(t,["children","className","clone","component"]),h=m(t),v=Object(s.a)(h.root,u),y=d;if(f&&(y=p(y,f)),l)return a.a.cloneElement(o,Object(r.a)({className:Object(s.a)(o.props.className,v)},y));if("function"===typeof o)return o(Object(r.a)({className:v},y));var g=c||e;return a.a.createElement(g,Object(r.a)({ref:n,className:v},y),o)}));return l()(v,e),v}}(e);return function(e,n){return t(e,Object(r.a)({defaultTheme:f.a},n))}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(57),n(2);var r=n(80),i=(n(1),n(81),{xs:0,sm:600,md:960,lg:1280,xl:1920}),o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||o;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===Object(r.a)(t)){var a=e.theme.breakpoints||o;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=a},function(e,t,n){"use strict";var r=n(2),i=n(32),o=n(4),a=n(0),s=(n(1),n(3)),u=n(47),l=n(53),c=n(6),p=n(96),f=a.forwardRef((function(e,t){var n=e.autoFocus,c=e.checked,f=e.checkedIcon,d=e.classes,h=e.className,m=e.defaultChecked,v=e.disabled,y=e.icon,g=e.id,b=e.inputProps,x=e.inputRef,_=e.name,w=e.onBlur,E=e.onChange,D=e.onFocus,C=e.readOnly,O=e.required,S=e.tabIndex,k=e.type,A=e.value,T=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=Object(u.a)({controlled:c,default:Boolean(m),name:"SwitchBase",state:"checked"}),M=Object(i.a)(P,2),j=M[0],I=M[1],F=Object(l.a)(),R=v;F&&"undefined"===typeof R&&(R=F.disabled);var z="checkbox"===k||"radio"===k;return a.createElement(p.a,Object(r.a)({component:"span",className:Object(s.a)(d.root,h,j&&d.checked,R&&d.disabled),disabled:R,tabIndex:null,role:void 0,onFocus:function(e){D&&D(e),F&&F.onFocus&&F.onFocus(e)},onBlur:function(e){w&&w(e),F&&F.onBlur&&F.onBlur(e)},ref:t},T),a.createElement("input",Object(r.a)({autoFocus:n,checked:c,defaultChecked:m,className:d.input,disabled:R,id:z&&g,name:_,onChange:function(e){var t=e.target.checked;I(t),E&&E(e,t)},readOnly:C,ref:x,required:O,tabIndex:S,type:k,value:A},b)),j?f:y)}));t.a=Object(c.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(f)},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";var r=s(n(579)),i=s(n(583)),o=s(n(263)),a=s(n(260));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(e,t,n){var r=n(608),i=n(609),o=n(72),a=n(23),s=n(144);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),u(e,o(t,3))}},function(e,t,n){"use strict";var r={meters:6371008.8,metres:6371008.8,millimeters:6371008800,millimetres:6371008800,centimeters:637100880,centimetres:637100880,kilometers:6371.0088,kilometres:6371.0088,miles:3958.761333810546,nauticalmiles:6371008.8/1852,inches:6371008.8*39.37,yards:6371008.8/1.0936,feet:20902260.511392,radians:1,degrees:6371008.8/111325};function i(e,t,n){if(!p(n=n||{}))throw new Error("options is invalid");var r=n.bbox,i=n.id;if(void 0===e)throw new Error("geometry is required");if(t&&t.constructor!==Object)throw new Error("properties must be an Object");r&&f(r),i&&d(i);var o={type:"Feature"};return i&&(o.id=i),r&&(o.bbox=r),o.properties=t||{},o.geometry=e,o}function o(e,t,n){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!c(e[0])||!c(e[1]))throw new Error("coordinates must contain numbers");return i({type:"Point",coordinates:e},t,n)}function a(e,t,n){if(!e)throw new Error("coordinates is required");for(var r=0;r<e.length;r++){var o=e[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++){if(0===r&&0===a&&!c(o[0][0])||!c(o[0][1]))throw new Error("coordinates must contain numbers");if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}}return i({type:"Polygon",coordinates:e},t,n)}function s(e,t){if(void 0===e||null===e)throw new Error("distance is required");if(t&&"string"!==typeof t)throw new Error("units must be a string");var n=r[t||"kilometers"];if(!n)throw new Error(t+" units is invalid");return e/n}function u(e){if(null===e||void 0===e)throw new Error("radians is required");return 180*(e%(2*Math.PI))/Math.PI}function l(e){if(null===e||void 0===e)throw new Error("degrees is required");return e%360*Math.PI/180}function c(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)}function p(e){return!!e&&e.constructor===Object}function f(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!c(e))throw new Error("bbox must only contain numbers")}))}function d(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function h(e){if(!e)throw new Error("obj is required");var t=function(e){if(!e)throw new Error("obj is required");var t;e.length?t=e:e.coordinates?t=e.coordinates:e.geometry&&e.geometry.coordinates&&(t=e.geometry.coordinates);if(t)return function e(t){if(t.length>1&&c(t[0])&&c(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")}(t),t;throw new Error("No valid coordinates")}(e);if(t.length>1&&c(t[0])&&c(t[1]))return t;throw new Error("Coordinate is not a valid Point")}var m=function(e,t,n,r){if(!p(r=r||{}))throw new Error("options is invalid");var i=r.units,a=r.properties,c=h(e),f=l(c[0]),d=l(c[1]),m=l(n),v=s(t,i),y=Math.asin(Math.sin(d)*Math.cos(v)+Math.cos(d)*Math.sin(v)*Math.cos(m));return o([u(f+Math.atan2(Math.sin(m)*Math.sin(v)*Math.cos(d),Math.cos(v)-Math.sin(d)*Math.sin(y))),u(y)],a)};t.a=function(e,t,n){var r=(n=n||{}).steps||64,i=n.properties;if(!e)throw new Error("center is required");if(!t)throw new Error("radius is required");if("object"!==typeof n)throw new Error("options must be an object");if("number"!==typeof r)throw new Error("steps must be a number");r=r||64,i=i||e.properties||{};for(var o=[],s=0;s<r;s++)o.push(m(e,t,-360*s/r,n).geometry.coordinates);return o.push(o[0]),a([o],i)}},function(e,t,n){var r,i=n(600),o=n(601),a=n(603),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){function n(e,o,u){if(r++>100)throw r=0,new Error("Call stack overflow for "+u);if(""===e)throw new Error(o+"(): '"+u+"' must contain a non-whitespace string");var l=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,o="",a=e;for(;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var u=i("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+e+"' must contain a non-whitespace string");var l=n(u.body,"",t);o+=u.pre+l,a=u.post}return o+a}(e,u));if(l.length>1||e.indexOf("var(")>-1)return o+"("+e+")";var c=l[0]||"";"%"===c&&(e=e.replace(/\b[0-9\.]+%/g,(function(e){return.01*parseFloat(e.slice(0,-1))})));var p,f=e.replace(new RegExp(c,"gi"),"");try{p=a.eval(f)}catch(d){return o+"("+e+")"}return"%"===c&&(p*=100),(o.length||"%"===c)&&(p=Math.round(p*t)/t),p+=c}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),o(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=(n(1),n(3)),s=n(6),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,l=void 0===u?"div":u,c=e.square,p=void 0!==c&&c,f=e.elevation,d=void 0===f?1:f,h=e.variant,m=void 0===h?"elevation":h,v=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(l,Object(i.a)({className:Object(a.a)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(d)],!p&&n.rounded),ref:t},v))}));t.a=Object(s.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(i.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(u)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(146);function a(){return i.a.useContext(o.a)}},,,,function(e,t,n){"use strict";function r(e){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r,i){return null}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(134),i=n(228),o=n(172),a=Object.defineProperty;t.f=n(100)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(99);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(468),i=n(177);e.exports=function(e){return r(i(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(28),i=n(177),o=n(78),a=n(180),s="["+a+"]",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),c=function(e,t,n){var i={},s=o((function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()})),u=i[e]=s?t(p):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},p=c.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=c},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(92)(n(63),"Map");e.exports=r},function(e,t,n){var r=n(509),i=n(516),o=n(518),a=n(519),s=n(520);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(521),i=n(79);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(183),i=n(522),o=n(523);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(534),i=n(79),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(253),i=n(142);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(23),i=n(102),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(42),i=n(590),o=n(266),a=Math.max,s=Math.min;e.exports=function(e,t,n){var u,l,c,p,f,d,h=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=u,r=l;return u=l=void 0,h=t,p=e.apply(r,n)}function b(e){return h=e,f=setTimeout(_,t),m?g(e):p}function x(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-h>=c}function _(){var e=i();if(x(e))return w(e);f=setTimeout(_,function(e){var n=t-(e-d);return v?s(n,c-(e-h)):n}(e))}function w(e){return f=void 0,y&&u?g(e):(u=l=void 0,p)}function E(){var e=i(),n=x(e);if(u=arguments,l=this,d=e,n){if(void 0===f)return b(d);if(v)return clearTimeout(f),f=setTimeout(_,t),g(d)}return void 0===f&&(f=setTimeout(_,t)),p}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,u=d=l=f=void 0},E.flush=function(){return void 0===f?p:w(i())},E}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(39),a=n(1),s=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var c=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}()+"__",c=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);c.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var p=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((i={})[a]=s.a.object,i),{Provider:c,Consumer:p}};t.a=c}).call(this,n(77))},function(e,t,n){var r=n(433);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var p=n[0],f=n[1],d=n.index;if(s+=e.slice(a,d),a=d+p.length,f)s+=f[1];else{var h=e[a],m=n[2],v=n[3],y=n[4],g=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var _=null!=m&&null!=h&&h!==m,w="+"===b||"*"===b,E="?"===b||"*"===b,D=n[2]||c,C=y||g;r.push({name:v||o++,prefix:m||"",delimiter:D,optional:E,repeat:w,partial:_,asterisk:!!x,pattern:C?l(C):x?".*":"[^"+u(D)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",p(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var p,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(p=u(f[d]),!n[l].test(p))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(0===d?c.prefix:c.delimiter)+p}}else{if(p=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(f),!n[l].test(p))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+p+'"');o+=c.prefix+p}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=u(l);else{var f=u(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+f+d+")*"),a+=d=l.optional?l.partial?f+"("+d+")?":"(?:"+f+"("+d+"))?":f+"("+d+")"}}var h=u(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",c(new RegExp("^"+a,p(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"Storage");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=a},function(e,t,n){var r=n(616),i=n(259),o=n(72);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}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})(e)}function a(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return function(){var t,n=r(e);if(i()){var o=r(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return a(this,t)}}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(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}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(119),n(1),n(21)),s=n(27),u=n(622),l=n(154),c=n(14);function p(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function d(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function h(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&d(s,o)&&!u)return void s.focus();s=i(e,s,n)}}var m="undefined"===typeof window?o.useEffect:o.useLayoutEffect,v=o.forwardRef((function(e,t){var n=e.actions,v=e.autoFocus,y=void 0!==v&&v,g=e.autoFocusItem,b=void 0!==g&&g,x=e.children,_=e.className,w=e.disabledItemsFocusable,E=void 0!==w&&w,D=e.disableListWrap,C=void 0!==D&&D,O=e.onKeyDown,S=e.variant,k=void 0===S?"selectedMenu":S,A=Object(i.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),T=o.useRef(null),P=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});m((function(){y&&T.current.focus()}),[y]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!T.current.style.width;if(e.clientHeight<T.current.clientHeight&&n){var r="".concat(Object(l.a)(!0),"px");T.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,T.current.style.width="calc(100% + ".concat(r,")")}return T.current}}}),[]);var M=o.useCallback((function(e){T.current=a.findDOMNode(e)}),[]),j=Object(c.a)(M,t),I=-1;o.Children.forEach(x,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===k&&e.props.selected||-1===I)&&(I=t))}));var F=o.Children.map(x,(function(e,t){if(t===I){var n={};return b&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===k&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return o.createElement(u.a,Object(r.a)({role:"menu",ref:j,className:_,onKeyDown:function(e){var t=T.current,n=e.key,r=Object(s.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),h(t,r,C,E,p);else if("ArrowUp"===n)e.preventDefault(),h(t,r,C,E,f);else if("Home"===n)e.preventDefault(),h(t,null,C,E,p);else if("End"===n)e.preventDefault(),h(t,null,C,E,f);else if(1===n.length){var i=P.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var u=r&&!i.repeating&&d(r,i);i.previousKeyMatched&&(u||h(t,r,!1,E,p,i))?e.preventDefault():i.previousKeyMatched=!1}O&&O(e)},tabIndex:y?0:-1},A),F)}));t.a=v},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(9),l=o.forwardRef((function(e,t){var n=e.anchorOrigin,s=void 0===n?{vertical:"top",horizontal:"right"}:n,l=e.badgeContent,c=e.children,p=e.classes,f=e.className,d=e.color,h=void 0===d?"default":d,m=e.component,v=void 0===m?"span":m,y=e.invisible,g=e.max,b=void 0===g?99:g,x=e.overlap,_=void 0===x?"rectangle":x,w=e.showZero,E=void 0!==w&&w,D=e.variant,C=void 0===D?"standard":D,O=Object(i.a)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),S=y;null==y&&(0===l&&!E||null==l&&"dot"!==C)&&(S=!0);var k="";return"dot"!==C&&(k=l>b?"".concat(b,"+"):l),o.createElement(v,Object(r.a)({className:Object(a.a)(p.root,f),ref:t},O),c,o.createElement("span",{className:Object(a.a)(p.badge,p["".concat(s.horizontal).concat(Object(u.a)(s.vertical),"}")],p["anchorOrigin".concat(Object(u.a)(s.vertical)).concat(Object(u.a)(s.horizontal)).concat(Object(u.a)(_))],"default"!==h&&p["color".concat(Object(u.a)(h))],S&&p.invisible,"dot"===C&&p.dot)},k))}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(32),o=n(4),a=n(15),s=n(0),u=n(21),l=(n(1),n(3)),c=n(353),p=n(10),f=n(6),d=n(9),h=n(356),m=n(207),v=n(14),y=n(34),g=n(46),b=n(64),x=n(47),_=n(30);function w(e){return Math.round(1e5*e)/1e5}var E=!1,D=null;var C=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,p=e.children,f=e.classes,w=e.disableFocusListener,C=void 0!==w&&w,O=e.disableHoverListener,S=void 0!==O&&O,k=e.disableTouchListener,A=void 0!==k&&k,T=e.enterDelay,P=void 0===T?100:T,M=e.enterNextDelay,j=void 0===M?0:M,I=e.enterTouchDelay,F=void 0===I?700:I,R=e.id,z=e.interactive,L=void 0!==z&&z,B=e.leaveDelay,N=void 0===B?0:B,V=e.leaveTouchDelay,U=void 0===V?1500:V,H=e.onClose,W=e.onOpen,G=e.open,q=e.placement,Y=void 0===q?"bottom":q,Z=e.PopperComponent,$=void 0===Z?m.a:Z,K=e.PopperProps,X=e.title,J=e.TransitionComponent,Q=void 0===J?h.a:J,ee=e.TransitionProps,te=Object(o.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=Object(_.a)(),re=s.useState(),ie=re[0],oe=re[1],ae=s.useState(null),se=ae[0],ue=ae[1],le=s.useRef(!1),ce=s.useRef(),pe=s.useRef(),fe=s.useRef(),de=s.useRef(),he=Object(x.a)({controlled:G,default:!1,name:"Tooltip",state:"open"}),me=Object(i.a)(he,2),ve=me[0],ye=me[1],ge=ve,be=Object(y.a)(R);s.useEffect((function(){return function(){clearTimeout(ce.current),clearTimeout(pe.current),clearTimeout(fe.current),clearTimeout(de.current)}}),[]);var xe=function(e){clearTimeout(D),E=!0,ye(!0),W&&W(e)},_e=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=p.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),le.current&&"touchstart"!==t.type||(ie&&ie.removeAttribute("title"),clearTimeout(pe.current),clearTimeout(fe.current),P||E&&j?(t.persist(),pe.current=setTimeout((function(){xe(t)}),E?j:P)):xe(t))}},we=Object(b.a)(),Ee=we.isFocusVisible,De=we.onBlurVisible,Ce=we.ref,Oe=s.useState(!1),Se=Oe[0],ke=Oe[1],Ae=function(){Se&&(ke(!1),De())},Te=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ie||oe(t.currentTarget),Ee(t)&&(ke(!0),_e()(t));var n=p.props;n.onFocus&&e&&n.onFocus(t)}},Pe=function(e){clearTimeout(D),D=setTimeout((function(){E=!1}),800+N),ye(!1),H&&H(e),clearTimeout(ce.current),ce.current=setTimeout((function(){le.current=!1}),ne.transitions.duration.shortest)},Me=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=p.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Ae()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ie&&n.onMouseLeave(t),clearTimeout(pe.current),clearTimeout(fe.current),t.persist(),fe.current=setTimeout((function(){Pe(t)}),N)}},je=function(e){le.current=!0;var t=p.props;t.onTouchStart&&t.onTouchStart(e)},Ie=Object(v.a)(oe,t),Fe=Object(v.a)(Ce,Ie),Re=s.useCallback((function(e){Object(g.a)(Fe,u.findDOMNode(e))}),[Fe]),ze=Object(v.a)(p.ref,Re);""===X&&(ge=!1);var Le=!ge&&!S,Be=Object(r.a)({"aria-describedby":ge?be:null,title:Le&&"string"===typeof X?X:null},te,p.props,{className:Object(l.a)(te.className,p.props.className),onTouchStart:je,ref:ze}),Ne={};A||(Be.onTouchStart=function(e){je(e),clearTimeout(fe.current),clearTimeout(ce.current),clearTimeout(de.current),e.persist(),de.current=setTimeout((function(){_e()(e)}),F)},Be.onTouchEnd=function(e){p.props.onTouchEnd&&p.props.onTouchEnd(e),clearTimeout(de.current),clearTimeout(fe.current),e.persist(),fe.current=setTimeout((function(){Pe(e)}),U)}),S||(Be.onMouseOver=_e(),Be.onMouseLeave=Me(),L&&(Ne.onMouseOver=_e(!1),Ne.onMouseLeave=Me(!1))),C||(Be.onFocus=Te(),Be.onBlur=Me(),L&&(Ne.onFocus=Te(!1),Ne.onBlur=Me(!1)));var Ve=s.useMemo((function(){return Object(c.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},K)}),[se,K]);return s.createElement(s.Fragment,null,s.cloneElement(p,Be),s.createElement($,Object(r.a)({className:Object(l.a)(f.popper,L&&f.popperInteractive,a&&f.popperArrow),placement:Y,anchorEl:ie,open:!!ie&&ge,id:Be["aria-describedby"],transition:!0},Ne,Ve),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(Q,Object(r.a)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:Object(l.a)(f.tooltip,f["tooltipPlacement".concat(Object(d.a)(t.split("-")[0]))],le.current&&f.touch,a&&f.tooltipArrow)},X,a?s.createElement("span",{className:f.arrow,ref:ue}):null))})))}));t.a=Object(f.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(p.d)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(w(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(p.d)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(w(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(C)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(342)),s=n(164),u=n(619),l=n(52),c=n(46),p=n(14);function f(e){return"function"===typeof e?e():e}var d="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,h={},m=o.forwardRef((function(e,t){var n=e.anchorEl,m=e.children,v=e.container,y=e.disablePortal,g=void 0!==y&&y,b=e.keepMounted,x=void 0!==b&&b,_=e.modifiers,w=e.open,E=e.placement,D=void 0===E?"bottom":E,C=e.popperOptions,O=void 0===C?h:C,S=e.popperRef,k=e.style,A=e.transition,T=void 0!==A&&A,P=Object(i.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),M=o.useRef(null),j=Object(p.a)(M,t),I=o.useRef(null),F=Object(p.a)(I,S),R=o.useRef(F);d((function(){R.current=F}),[F]),o.useImperativeHandle(S,(function(){return I.current}),[]);var z=o.useState(!0),L=z[0],B=z[1],N=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(D,Object(s.a)()),V=o.useState(N),U=V[0],H=V[1];o.useEffect((function(){I.current&&I.current.update()}));var W=o.useCallback((function(){if(M.current&&n&&w){I.current&&(I.current.destroy(),R.current(null));var e=function(e){H(e.placement)},t=(f(n),new a.a(f(n),M.current,Object(r.a)({placement:N},O,{modifiers:Object(r.a)({},g?{}:{preventOverflow:{boundariesElement:"window"}},_,O.modifiers),onCreate:Object(l.a)(e,O.onCreate),onUpdate:Object(l.a)(e,O.onUpdate)})));R.current(t)}}),[n,g,_,w,N,O]),G=o.useCallback((function(e){Object(c.a)(j,e),W()}),[j,W]),q=function(){I.current&&(I.current.destroy(),R.current(null))};if(o.useEffect((function(){return function(){q()}}),[]),o.useEffect((function(){w||T||q()}),[w,T]),!x&&!w&&(!T||L))return null;var Y={placement:U};return T&&(Y.TransitionProps={in:w,onEnter:function(){B(!1)},onExited:function(){B(!0),q()}}),o.createElement(u.a,{disablePortal:g,container:v},o.createElement("div",Object(r.a)({ref:G,role:"tooltip"},P,{style:Object(r.a)({position:"fixed",top:0,left:0,display:w||!x||T?null:"none"},k)}),"function"===typeof m?m(Y):m))}));t.a=m},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(674)),s=n(32),u=n(80),l=n(354),c=(n(119),n(3)),p=n(27),f=n(9),d=n(352),h=n(94),m=n(14),v=n(47);function y(e,t){return"object"===Object(u.a)(t)&&null!==t?e===t:String(e)===String(t)}var g=o.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,g=e.children,b=e.classes,x=e.className,_=e.defaultValue,w=e.disabled,E=e.displayEmpty,D=e.IconComponent,C=e.inputRef,O=e.labelId,S=e.MenuProps,k=void 0===S?{}:S,A=e.multiple,T=e.name,P=e.onBlur,M=e.onChange,j=e.onClose,I=e.onFocus,F=e.onOpen,R=e.open,z=e.readOnly,L=e.renderValue,B=e.SelectDisplayProps,N=void 0===B?{}:B,V=e.tabIndex,U=(e.type,e.value),H=e.variant,W=void 0===H?"standard":H,G=Object(i.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),q=Object(v.a)({controlled:U,default:_,name:"Select"}),Y=Object(s.a)(q,2),Z=Y[0],$=Y[1],K=o.useRef(null),X=o.useState(null),J=X[0],Q=X[1],ee=o.useRef(null!=R).current,te=o.useState(),ne=te[0],re=te[1],ie=o.useState(!1),oe=ie[0],ae=ie[1],se=Object(m.a)(t,C);o.useImperativeHandle(se,(function(){return{focus:function(){J.focus()},node:K.current,value:Z}}),[J,Z]),o.useEffect((function(){a&&J&&J.focus()}),[a,J]),o.useEffect((function(){if(J){var e=Object(p.a)(J).getElementById(O);if(e){var t=function(){getSelection().isCollapsed&&J.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[O,J]);var ue,le,ce=function(e,t){e?F&&F(t):j&&j(t),ee||(re(u?null:J.clientWidth),ae(e))},pe=o.Children.toArray(g),fe=function(e){return function(t){var n;if(A||ce(!1,t),A){n=Array.isArray(Z)?Z.slice():[];var r=Z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),Z!==n&&($(n),M&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:T}}),M(t,e)))}},de=null!==J&&(ee?R:oe);delete G["aria-invalid"];var he=[],me=!1;(Object(h.b)({value:Z})||E)&&(L?ue=L(Z):me=!0);var ve=pe.map((function(e){if(!o.isValidElement(e))return null;var t;if(A){if(!Array.isArray(Z))throw new Error(Object(l.a)(2));(t=Z.some((function(t){return y(t,e.props.value)})))&&me&&he.push(e.props.children)}else(t=y(Z,e.props.value))&&me&&(le=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:fe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));me&&(ue=A?he.join(", "):le);var ye,ge=ne;!u&&ee&&J&&(ge=J.clientWidth),ye="undefined"!==typeof V?V:w?null:0;var be=N.id||(T?"mui-component-select-".concat(T):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Object(r.a)({className:Object(c.a)(b.root,b.select,b.selectMenu,b[W],x,w&&b.disabled),ref:Q,tabIndex:ye,role:"button","aria-disabled":w?"true":void 0,"aria-expanded":de?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[O,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!z){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))}},onMouseDown:w||z?null:function(e){0===e.button&&(e.preventDefault(),J.focus(),ce(!0,e))},onBlur:function(e){!de&&P&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:Z,name:T}}),P(e))},onFocus:I},N,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ue)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ue),o.createElement("input",Object(r.a)({value:Array.isArray(Z)?Z.join(","):Z,name:T,ref:K,"aria-hidden":!0,onChange:function(e){var t=pe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=pe[t];$(n.props.value),M&&M(e,n)}},tabIndex:-1,className:b.nativeInput,autoFocus:a},G)),o.createElement(D,{className:Object(c.a)(b.icon,b["icon".concat(Object(f.a)(W))],de&&b.iconOpen,w&&b.disabled)}),o.createElement(d.a,Object(r.a)({id:"menu-".concat(T||""),anchorEl:J,open:de,onClose:function(e){ce(!1,e)}},k,{MenuListProps:Object(r.a)({"aria-labelledby":O,role:"listbox",disableListWrap:!0},k.MenuListProps),PaperProps:Object(r.a)({},k.PaperProps,{style:Object(r.a)({minWidth:ge},null!=k.PaperProps?k.PaperProps.style:null)})}),ve))})),b=n(56),x=n(53),_=n(6),w=n(22),E=Object(w.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),D=n(690),C=o.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,u=e.IconComponent,l=e.inputRef,p=e.variant,d=void 0===p?"standard":p,h=Object(i.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Object(r.a)({className:Object(c.a)(n.root,n.select,n[d],a,s&&n.disabled),disabled:s,ref:l||t},h)),e.multiple?null:o.createElement(u,{className:Object(c.a)(n.icon,n["icon".concat(Object(f.a)(d))],s&&n.disabled)}))})),O=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},S=o.createElement(D.a,null),k=o.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,u=void 0===s?E:s,l=e.input,c=void 0===l?S:l,p=e.inputProps,f=(e.variant,Object(i.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),d=Object(x.a)(),h=Object(b.a)({props:e,muiFormControl:d,states:["variant"]});return o.cloneElement(c,Object(r.a)({inputComponent:C,inputProps:Object(r.a)({children:n,classes:a,IconComponent:u,variant:h.variant,type:void 0},p,c?c.props.inputProps:{}),ref:t},f))}));k.muiName="Select";Object(_.a)(O,{name:"MuiNativeSelect"})(k);var A=n(691),T=n(713),P=O,M=o.createElement(D.a,null),j=o.createElement(A.a,null),I=o.forwardRef((function e(t,n){var s=t.autoWidth,u=void 0!==s&&s,l=t.children,c=t.classes,p=t.displayEmpty,f=void 0!==p&&p,d=t.IconComponent,h=void 0===d?E:d,m=t.id,v=t.input,y=t.inputProps,_=t.label,w=t.labelId,D=t.labelWidth,O=void 0===D?0:D,S=t.MenuProps,k=t.multiple,A=void 0!==k&&k,P=t.native,I=void 0!==P&&P,F=t.onClose,R=t.onOpen,z=t.open,L=t.renderValue,B=t.SelectDisplayProps,N=t.variant,V=void 0===N?"standard":N,U=Object(i.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),H=I?C:g,W=Object(x.a)(),G=Object(b.a)({props:t,muiFormControl:W,states:["variant"]}).variant||V,q=v||{standard:M,outlined:o.createElement(T.a,{label:_,labelWidth:O}),filled:j}[G];return o.cloneElement(q,Object(r.a)({inputComponent:H,inputProps:Object(r.a)({children:l,IconComponent:h,variant:G,type:void 0,multiple:A},I?{id:m}:{autoWidth:u,displayEmpty:f,labelId:w,MenuProps:S,onClose:F,onOpen:R,open:z,renderValue:L,SelectDisplayProps:Object(r.a)({id:m},B)},y,{classes:y?Object(a.a)({baseClasses:c,newClasses:y.classes,Component:e}):c},v?v.props.inputProps:{}),ref:n},U))}));I.muiName="Select";t.a=Object(_.a)(P,{name:"MuiSelect"})(I)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(690),u=n(691),l=n(713),c=n(211),p=n(129),f=n(56),d=n(53),h=n(6),m=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,l=e.component,c=void 0===l?"p":l,p=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(i.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=Object(d.a)(),m=Object(f.a)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(c,Object(r.a)({className:Object(a.a)(s.root,("filled"===m.variant||"outlined"===m.variant)&&s.contained,u,m.disabled&&s.disabled,m.error&&s.error,m.filled&&s.filled,m.focused&&s.focused,m.required&&s.required,"dense"===m.margin&&s.marginDense),ref:t},p)," "===n?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),v=Object(h.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(m),y=n(208),g={standard:s.a,filled:u.a,outlined:l.a},b=o.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,u=void 0!==s&&s,l=e.children,f=e.classes,d=e.className,h=e.color,m=void 0===h?"primary":h,b=e.defaultValue,x=e.disabled,_=void 0!==x&&x,w=e.error,E=void 0!==w&&w,D=e.FormHelperTextProps,C=e.fullWidth,O=void 0!==C&&C,S=e.helperText,k=e.hiddenLabel,A=e.id,T=e.InputLabelProps,P=e.inputProps,M=e.InputProps,j=e.inputRef,I=e.label,F=e.multiline,R=void 0!==F&&F,z=e.name,L=e.onBlur,B=e.onChange,N=e.onFocus,V=e.placeholder,U=e.required,H=void 0!==U&&U,W=e.rows,G=e.rowsMax,q=e.select,Y=void 0!==q&&q,Z=e.SelectProps,$=e.type,K=e.value,X=e.variant,J=void 0===X?"standard":X,Q=Object(i.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var ee={};if("outlined"===J&&(T&&"undefined"!==typeof T.shrink&&(ee.notched=T.shrink),I)){var te,ne=null!==(te=null===T||void 0===T?void 0:T.required)&&void 0!==te?te:H;ee.label=o.createElement(o.Fragment,null,I,ne&&"\xa0*")}Y&&(Z&&Z.native||(ee.id=void 0),ee["aria-describedby"]=void 0);var re=S&&A?"".concat(A,"-helper-text"):void 0,ie=I&&A?"".concat(A,"-label"):void 0,oe=g[J],ae=o.createElement(oe,Object(r.a)({"aria-describedby":re,autoComplete:n,autoFocus:u,defaultValue:b,fullWidth:O,multiline:R,name:z,rows:W,rowsMax:G,type:$,value:K,id:A,inputRef:j,onBlur:L,onChange:B,onFocus:N,placeholder:V,inputProps:P},ee,M));return o.createElement(p.a,Object(r.a)({className:Object(a.a)(f.root,d),disabled:_,error:E,fullWidth:O,hiddenLabel:k,ref:t,required:H,color:m,variant:J},Q),I&&o.createElement(c.a,Object(r.a)({htmlFor:A,id:ie},T),I),Y?o.createElement(y.a,Object(r.a)({"aria-describedby":re,id:A,labelId:ie,value:K,input:ae},Z),l):ae,S&&o.createElement(v,Object(r.a)({id:re},D),S))}));t.a=Object(h.a)({root:{}},{name:"MuiTextField"})(b)},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(354),a=n(0),s=(n(1),n(3)),u=n(56),l=n(69),c=n(6),p=n(9),f=n(14),d=n(66);function h(e,t){return parseInt(e[t],10)||0}var m="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},y=a.forwardRef((function(e,t){var n=e.onChange,o=e.rows,s=e.rowsMax,u=e.rowsMin,l=void 0===u?1:u,c=e.style,p=e.value,y=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),g=o||l,b=a.useRef(null!=p).current,x=a.useRef(null),_=Object(f.a)(t,x),w=a.useRef(null),E=a.useRef(0),D=a.useState({}),C=D[0],O=D[1],S=a.useCallback((function(){var t=x.current,n=window.getComputedStyle(t),r=w.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),u=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,c=u;g&&(c=Math.max(Number(g)*l,c)),s&&(c=Math.min(Number(s)*l,c));var p=(c=Math.max(c,l))+("border-box"===i?o+a:0),f=Math.abs(c-u)<=1;O((function(e){return E.current<20&&(p>0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==f)?(E.current+=1,{overflow:f,outerHeightStyle:p}):e}))}),[s,g,e.placeholder]);a.useEffect((function(){var e=Object(d.a)((function(){E.current=0,S()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[S]),m((function(){S()})),a.useEffect((function(){E.current=0}),[p]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(i.a)({value:p,onChange:function(e){E.current=0,b||S(),n&&n(e)},ref:_,rows:g,style:Object(i.a)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},c)},y)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:Object(i.a)({},v,c)}))})),g=n(94),b="undefined"===typeof window?a.useEffect:a.useLayoutEffect,x=a.forwardRef((function(e,t){var n=e["aria-describedby"],c=e.autoComplete,d=e.autoFocus,h=e.classes,m=e.className,v=(e.color,e.defaultValue),x=e.disabled,_=e.endAdornment,w=(e.error,e.fullWidth),E=void 0!==w&&w,D=e.id,C=e.inputComponent,O=void 0===C?"input":C,S=e.inputProps,k=void 0===S?{}:S,A=e.inputRef,T=(e.margin,e.multiline),P=void 0!==T&&T,M=e.name,j=e.onBlur,I=e.onChange,F=e.onClick,R=e.onFocus,z=e.onKeyDown,L=e.onKeyUp,B=e.placeholder,N=e.readOnly,V=e.renderSuffix,U=e.rows,H=e.rowsMax,W=e.rowsMin,G=e.startAdornment,q=e.type,Y=void 0===q?"text":q,Z=e.value,$=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),K=null!=k.value?k.value:Z,X=a.useRef(null!=K).current,J=a.useRef(),Q=a.useCallback((function(e){0}),[]),ee=Object(f.a)(k.ref,Q),te=Object(f.a)(A,ee),ne=Object(f.a)(J,te),re=a.useState(!1),ie=re[0],oe=re[1],ae=Object(l.b)();var se=Object(u.a)({props:e,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});se.focused=ae?ae.focused:ie,a.useEffect((function(){!ae&&x&&ie&&(oe(!1),j&&j())}),[ae,x,ie,j]);var ue=ae&&ae.onFilled,le=ae&&ae.onEmpty,ce=a.useCallback((function(e){Object(g.b)(e)?ue&&ue():le&&le()}),[ue,le]);b((function(){X&&ce({value:K})}),[K,ce,X]);a.useEffect((function(){ce(J.current)}),[]);var pe=O,fe=Object(i.a)({},k,{ref:ne});"string"!==typeof pe?fe=Object(i.a)({inputRef:ne,type:Y},fe,{ref:null}):P?!U||H||W?(fe=Object(i.a)({rows:U,rowsMax:H},fe),pe=y):pe="textarea":fe=Object(i.a)({type:Y},fe);return a.useEffect((function(){ae&&ae.setAdornedStart(Boolean(G))}),[ae,G]),a.createElement("div",Object(i.a)({className:Object(s.a)(h.root,h["color".concat(Object(p.a)(se.color||"primary"))],m,se.disabled&&h.disabled,se.error&&h.error,E&&h.fullWidth,se.focused&&h.focused,ae&&h.formControl,P&&h.multiline,G&&h.adornedStart,_&&h.adornedEnd,"dense"===se.margin&&h.marginDense),onClick:function(e){J.current&&e.currentTarget===e.target&&J.current.focus(),F&&F(e)},ref:t},$),G,a.createElement(l.a.Provider,{value:null},a.createElement(pe,Object(i.a)({"aria-invalid":se.error,"aria-describedby":n,autoComplete:c,autoFocus:d,defaultValue:v,disabled:se.disabled,id:D,onAnimationStart:function(e){ce("mui-auto-fill-cancel"===e.animationName?J.current:{value:"x"})},name:M,placeholder:B,readOnly:N,required:se.required,rows:U,value:K,onKeyDown:z,onKeyUp:L},fe,{className:Object(s.a)(h.input,k.className,se.disabled&&h.disabled,P&&h.inputMultiline,se.hiddenLabel&&h.inputHiddenLabel,G&&h.inputAdornedStart,_&&h.inputAdornedEnd,"search"===Y&&h.inputTypeSearch,"dense"===se.margin&&h.inputMarginDense),onBlur:function(e){j&&j(e),k.onBlur&&k.onBlur(e),ae&&ae.onBlur?ae.onBlur(e):oe(!1)},onChange:function(e){if(!X){var t=e.target||J.current;if(null==t)throw new Error(Object(o.a)(1));ce({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];k.onChange&&k.onChange.apply(k,[e].concat(r)),I&&I.apply(void 0,[e].concat(r))},onFocus:function(e){se.disabled?e.stopPropagation():(R&&R(e),k.onFocus&&k.onFocus(e),ae&&ae.onFocus?ae.onFocus(e):oe(!0))}}))),_,V?V(Object(i.a)({},se,{startAdornment:G})):null)}));t.a=Object(c.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(i.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(x)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(56),u=n(53),l=n(6),c=n(9),p=o.forwardRef((function(e,t){var n=e.children,l=e.classes,p=e.className,f=(e.color,e.component),d=void 0===f?"label":f,h=(e.disabled,e.error,e.filled,e.focused,e.required,Object(i.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),m=Object(u.a)(),v=Object(s.a)({props:e,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]});return o.createElement(d,Object(r.a)({className:Object(a.a)(l.root,l["color".concat(Object(c.a)(v.color||"primary"))],p,v.disabled&&l.disabled,v.error&&l.error,v.filled&&l.filled,v.focused&&l.focused,v.required&&l.required),ref:t},h),n,v.required&&o.createElement("span",{"aria-hidden":!0,className:Object(a.a)(l.asterisk,v.error&&l.error)},"\u2009","*"))})),f=Object(l.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(p),d=o.forwardRef((function(e,t){var n=e.classes,l=e.className,c=e.disableAnimation,p=void 0!==c&&c,d=(e.margin,e.shrink),h=(e.variant,Object(i.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),m=Object(u.a)(),v=d;"undefined"===typeof v&&m&&(v=m.filled||m.focused||m.adornedStart);var y=Object(s.a)({props:e,muiFormControl:m,states:["margin","variant"]});return o.createElement(f,Object(r.a)({"data-shrink":v,className:Object(a.a)(n.root,l,m&&n.formControl,!p&&n.animated,v&&n.shrink,"dense"===y.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[y.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},h))}));t.a=Object(l.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(d)},,,,,,,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(u[c]=n[c]);if(r){s=r(n);for(var p=0;p<s.length;p++)o.call(n,s[p])&&(u[s[p]]=n[s[p]])}}return u}},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return!!function(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}()&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}())},r.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){"use strict";var r=n(2),i=n(60),o=n(65);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(e,Object(r.a)({defaultTheme:o.a},t))}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,p=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):p=-1,l.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++p<t;)u&&u[p].run();p=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(171),i=n(230);e.exports=n(100)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(100)&&!n(78)((function(){return 7!=Object.defineProperty(n(229)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(99),i=n(71).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(71),i=n(227),o=n(135),a=n(232)("src"),s=n(443),u=(""+s).split("toString");n(120).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(120),i=n(71),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(444)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(445);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(467),i=n(230),o=n(176),a=n(172),s=n(135),u=n(228),l=Object.getOwnPropertyDescriptor;t.f=n(100)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(135),i=n(176),o=n(470)(!1),a=n(238)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(233)("keys"),i=n(232);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(175);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(99),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(77))},function(e,t,n){var r=n(137),i=n(500),o=n(501),a=n(502),s=n(503),u=n(504);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(185),i=n(245),o=n(186);e.exports=function(e,t,n,a,s,u){var l=1&n,c=e.length,p=t.length;if(c!=p&&!(l&&p>c))return!1;var f=u.get(e),d=u.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var y=e[h],g=t[h];if(a)var b=l?a(g,y,h,t,e,u):a(y,g,h,e,t,u);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(y===e||s(y,e,n,a,u)))return v.push(t)}))){m=!1;break}}else if(y!==g&&!s(y,g,n,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){(function(e){var r=n(63),i=n(535),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(170)(e))},function(e,t,n){var r=n(536),i=n(191),o=n(537),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(92)(n(63),"Set");e.exports=r},function(e,t,n){var r=n(42);e.exports=function(e){return e===e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(23),i=n(193),o=n(548),a=n(551);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(560);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(103),i=n(567),o=n(569);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(92),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},function(e,t,n){var r=n(576),i=n(141);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),i=s(n(0)),o=s(n(21)),a=n(261);n(262);function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var u=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function l(){}u.contextTypes={transitionGroup:r.object},u.childContextTypes={transitionGroup:function(){}},u.propTypes={},u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},u.UNMOUNTED=0,u.EXITED=1,u.ENTERING=2,u.ENTERED=3,u.EXITING=4;var c=(0,a.polyfill)(u);t.default=c},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,l="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(1))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(1)),i=s(n(0)),o=n(261),a=n(584);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(l(l(r)));return r.state={handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},o.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=u({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=c(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);p.childContextTypes={transitionGroup:r.default.object.isRequired},p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,o.polyfill)(p);t.default=f,e.exports=t.default},function(e,t,n){var r=n(246),i=n(585);e.exports=function e(t,n,o,a,s){var u=-1,l=t.length;for(o||(o=i),s||(s=[]);++u<l;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){var r=n(143),i=n(101);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(591),i=n(42),o=n(102),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(102);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===u?s===s&&!r(s):n(s,u)))var u=s,l=a}return l}},function(e,t,n){var r=n(266);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},function(e,t,n){"use strict";e.exports=n(419)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=p(o),s=p(n(1)),u=p(n(21)),l=p(n(420)),c=p(n(431));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={initiated:!1},e.onResize=e.onResize.bind(e),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"getDomNodeDimensions",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}}]),i(t,[{key:"componentDidMount",value:function(){this.parentNode=u.default.findDOMNode(this).parentNode,this.elementResizeDetector=(0,l.default)({strategy:"scroll",callOnAdd:!1}),this.elementResizeDetector.listenTo(this.parentNode,this.onResize),this.componentIsMounted=!0,this.onResize()}},{key:"componentWillUnmount",value:function(){this.componentIsMounted=!1,this.elementResizeDetector.uninstall(this.parentNode)}},{key:"onResize",value:function(){var e=t.getDomNodeDimensions(this.parentNode);this.componentIsMounted&&this.setState(r({initiated:!0},e))}},{key:"render",value:function(){if((0,c.default)(this.props.children,"Expected children to be one of function or React.Element"),!this.state.initiated)return a.default.createElement("div",null);if("function"===typeof this.props.children){var e=this.props.children(this.state);return e&&o.Children.only(e)}return o.Children.only(a.default.cloneElement(this.props.children,this.state))}}]),t}(o.Component);f.propTypes={children:s.default.oneOfType([s.default.element,s.default.func]).isRequired},t.default=f},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19l-6-2.11V5l6 2.11V19z"}),"Map");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}),"NotificationsActive");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"}),"PlayCircleFilled");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircleFilled");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),"FormatListBulleted");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}),"TrendingUp");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"}),"Build");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");t.default=a},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"}),"BarChart");t.default=a},function(e,t){e.exports=i,e.exports.parse=i,e.exports.stringify=function e(t){"Feature"===t.type&&(t=t.geometry);function n(e){return e.join(" ")}function r(e){return e.map(n).join(", ")}function i(e){return e.map(r).map(o).join(", ")}function o(e){return"("+e+")"}switch(t.type){case"Point":return"POINT ("+n(t.coordinates)+")";case"LineString":return"LINESTRING ("+r(t.coordinates)+")";case"Polygon":return"POLYGON ("+i(t.coordinates)+")";case"MultiPoint":return"MULTIPOINT ("+r(t.coordinates)+")";case"MultiPolygon":return"MULTIPOLYGON ("+(t.coordinates.map(i).map(o).join(", ")+")");case"MultiLineString":return"MULTILINESTRING ("+i(t.coordinates)+")";case"GeometryCollection":return"GEOMETRYCOLLECTION ("+t.geometries.map(e).join(", ")+")";default:throw new Error("stringify requires a valid GeoJSON Feature or geometry object as input")}};var n=/[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/,r=new RegExp("^"+n.source+"(\\s"+n.source+"){1,}");function i(e){var t,n=e.split(";"),i=n.pop(),o=(n.shift()||"").split("=").pop(),a=0;function s(e){var t=i.substring(a).match(e);return t?(a+=t[0].length,t[0]):null}function u(){s(/^\s*/)}function l(){u();for(var e,t=0,n=[],i=[n],o=n;e=s(/^(\()/)||s(/^(\))/)||s(/^(,)/)||s(r);){if("("===e)i.push(o),o=[],i[i.length-1].push(o),t++;else if(")"===e){if(0===o.length)return null;if(!(o=i.pop()))return null;if(0===--t)break}else if(","===e)o=[],i[i.length-1].push(o);else{if(e.split(/\s/g).some(isNaN))return null;Array.prototype.push.apply(o,e.split(/\s/g).map(parseFloat))}u()}return 0!==t?null:n}function c(){for(var e,t,n=[];t=s(r)||s(/^(,)/);)","===t?(n.push(e),e=[]):t.split(/\s/g).some(isNaN)||(e||(e=[]),Array.prototype.push.apply(e,t.split(/\s/g).map(parseFloat))),u();return e?(n.push(e),n.length?n:null):null}function p(){return function(){if(!s(/^(point(\sz)?)/i))return null;if(u(),!s(/^(\()/))return null;var e=c();return e?(u(),s(/^(\))/)?{type:"Point",coordinates:e[0]}:null):null}()||function(){if(!s(/^(linestring(\sz)?)/i))return null;if(u(),!s(/^(\()/))return null;var e=c();return e&&s(/^(\))/)?{type:"LineString",coordinates:e}:null}()||function(){if(!s(/^(polygon(\sz)?)/i))return null;u();var e=l();return e?{type:"Polygon",coordinates:e}:null}()||function(){if(!s(/^(multipoint)/i))return null;u();var e=i.substring(i.indexOf("(")+1,i.length-1).replace(/\(/g,"").replace(/\)/g,"");i="MULTIPOINT ("+e+")";var t=l();return t?(u(),{type:"MultiPoint",coordinates:t}):null}()||function(){if(!s(/^(multilinestring)/i))return null;u();var e=l();return e?(u(),{type:"MultiLineString",coordinates:e}):null}()||function(){if(!s(/^(multipolygon)/i))return null;u();var e=l();return e?{type:"MultiPolygon",coordinates:e}:null}()||function(){var e,t=[];if(!s(/^(geometrycollection)/i))return null;if(u(),!s(/^(\()/))return null;for(;e=p();)t.push(e),u(),s(/^(,)/),u();return s(/^(\))/)?{type:"GeometryCollection",geometries:t}:null}()}return(t=p())&&o.match(/\d+/)&&(t.crs={type:"name",properties:{name:"urn:ogc:def:crs:EPSG::"+o}}),t}},function(e,t,n){"use strict";var r=n(31),i=n(35);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(36)).default)(o.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.default=a},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:u(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?c:10===e?p:c||p}function d(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||d(e.firstElementChild)===e)}(a)?a:d(a);var s=h(e);return s.host?m(s.host,t):m(e,h(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function C(e){return D({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?x(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,c=e.offsetHeight-u;if(l||c){var p=a(e);l-=g(p,"x"),c-=g(p,"y"),i.width-=l,i.height-=c}return C(i)}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),i="HTML"===t.nodeName,o=O(e),s=O(t),l=u(e),c=a(t),p=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=C({top:o.top-s.top-p,left:o.left-s.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);h.top-=p-m,h.bottom-=p-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=y(h,t)),h}function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=S(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return C(u)}function A(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&A(n)}function T(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?T(e):m(e,l(t));if("viewport"===r)o=k(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var p=S(c,a,i);if("HTML"!==c.nodeName||A(a))o=p;else{var f=x(e.ownerDocument),d=f.height,h=f.width;o.top+=p.top-p.marginTop,o.bottom=d+p.top,o.left+=p.left-p.marginLeft,o.right=h+p.left}}var v="number"===typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function M(e){return e.width*e.height}function j(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return D({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):m(t,l(n));return S(n,i,r)}function F(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function z(e,t,n){n=n.split("-")[0];var r=F(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[l]:t[R(s)],i}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=L(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function N(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function U(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[U("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(e){var t=e.ownerDocument;return t?t.defaultView:window}function G(e,t,n,r){n.updateBound=r,W(e).addEventListener("resize",n.updateBound,{passive:!0});var i=u(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(u(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,W(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function $(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var K=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var r=L(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=J.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(L(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return C(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Z(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:E({},u,o[u]),end:E({},u,o[u]+o[l]-a[l])};e.offsets.popper=D({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=Z(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||d(e.instance.popper);e.instance.reference===n&&(n=d(n));var r=U("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,p={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(c[e],u[e])),E({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),E({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=D({},c,p[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",p=l?"Top":"Left",f=p.toLowerCase(),d=l?"left":"top",h=l?"bottom":"right",m=F(r)[c];u[h]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(u[h]-m)),u[f]+m>s[h]&&(e.offsets.popper[f]+=u[f]+m-s[h]),e.offsets.popper=C(e.offsets.popper);var v=u[f]+u[c]/2-m/2,y=a(e.instance.popper),g=parseFloat(y["margin"+p]),b=parseFloat(y["border"+p+"Width"]),x=v-e.offsets.popper[f]-g-b;return x=Math.max(Math.min(s[c]-m,x),0),e.arrowElement=r,e.offsets.arrow=(E(n={},f,Math.round(x)),E(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=R(r);var l=e.offsets.popper,c=e.offsets.reference,p=Math.floor,f="left"===r&&p(l.right)>p(c.left)||"right"===r&&p(l.left)<p(c.right)||"top"===r&&p(l.bottom)>p(c.top)||"bottom"===r&&p(l.top)<p(c.bottom),d=p(l.left)<p(n.left),h=p(l.right)>p(n.right),m=p(l.top)<p(n.top),v=p(l.bottom)>p(n.bottom),y="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===o&&d||g&&"end"===o&&h||!g&&"start"===o&&m||!g&&"end"===o&&v),x=!!t.flipVariationsByContent&&(g&&"start"===o&&h||g&&"end"===o&&d||!g&&"start"===o&&v||!g&&"end"===o&&m),_=b||x;(f||y||_)&&(e.flipped=!0,(f||y)&&(r=a[u+1]),_&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=D({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=C(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=L(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=d(e.instance.popper),u=O(s),l={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),f=t?c||p||u%2===l%2?o:a:s,d=t?o:s;return{left:f(u%2===1&&l%2===1&&!p&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!K),p="bottom"===n?"top":"bottom",f="right"===r?"left":"right",h=U("transform"),m=void 0,v=void 0;if(v="bottom"===p?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)l[h]="translate3d("+m+"px, "+v+"px, 0)",l[p]=0,l[f]=0,l.willChange="transform";else{var y="bottom"===p?-1:1,g="right"===f?-1:1;l[p]=v*y,l[f]=m*g,l.willChange=p+", "+f}var b={"x-placement":e.placement};return e.attributes=D({},b,e.attributes),e.styles=D({},l,e.styles),e.arrowStyles=D({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return $(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&$(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=I(i,t,e,n.positionFixed),a=j(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),$(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=D({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(D({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=D({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return D({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return N.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ae.Utils=("undefined"!==typeof window?window:e).PopperUtils,ae.placements=J,ae.Defaults=oe,t.a=ae}).call(this,n(77))},function(e,t,n){var r=n(122),i=n(566),o=n(257),a=n(573),s=o((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]}));e.exports=s},function(e,t,n){var r=n(247),i=n(575),o=n(72),a=n(23);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(593),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){var r=n(264),i=n(599);e.exports=function(e,t){return r(i(e,t),1)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(610)(n(611));e.exports=r},function(e,t,n){var r=n(194),i=n(42);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){var r=n(245),i=n(72),o=n(615),a=n(23),s=n(144);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=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(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&y(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,o,a,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);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 i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=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||a(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 c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=v(u,l);for(n=0;n<l;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return p(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return p(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(119),n(1),n(3)),s=n(6),u=n(21),l=n(66),c=n(27),p=n(82),f=n(52),d=n(631),h=n(356),m=n(163);function v(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function y(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function g(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function b(e){return"function"===typeof e?e():e}var x=o.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,x=e.anchorOrigin,_=void 0===x?{vertical:"top",horizontal:"left"}:x,w=e.anchorPosition,E=e.anchorReference,D=void 0===E?"anchorEl":E,C=e.children,O=e.classes,S=e.className,k=e.container,A=e.elevation,T=void 0===A?8:A,P=e.getContentAnchorEl,M=e.marginThreshold,j=void 0===M?16:M,I=e.onEnter,F=e.onEntered,R=e.onEntering,z=e.onExit,L=e.onExited,B=e.onExiting,N=e.open,V=e.PaperProps,U=void 0===V?{}:V,H=e.transformOrigin,W=void 0===H?{vertical:"top",horizontal:"left"}:H,G=e.TransitionComponent,q=void 0===G?h.a:G,Y=e.transitionDuration,Z=void 0===Y?"auto":Y,$=e.TransitionProps,K=void 0===$?{}:$,X=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=o.useRef(),Q=o.useCallback((function(e){if("anchorPosition"===D)return w;var t=b(s),n=(t&&1===t.nodeType?t:Object(c.a)(J.current).body).getBoundingClientRect(),r=0===e?_.vertical:"center";return{top:n.top+v(n,r),left:n.left+y(n,_.horizontal)}}),[s,_.horizontal,_.vertical,w,D]),ee=o.useCallback((function(e){var t=0;if(P&&"anchorEl"===D){var n=P(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[_.vertical,D,P]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:v(e,W.vertical)+t,horizontal:y(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===D)return{top:null,left:null,transformOrigin:g(r)};var i=Q(t),o=i.top-r.vertical,a=i.left-r.horizontal,u=o+n.height,l=a+n.width,c=Object(p.a)(b(s)),f=c.innerHeight-j,d=c.innerWidth-j;if(o<j){var h=o-j;o-=h,r.vertical+=h}else if(u>f){var m=u-f;o-=m,r.vertical+=m}if(a<j){var v=a-j;a-=v,r.horizontal+=v}else if(l>d){var y=l-d;a-=y,r.horizontal+=y}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:g(r)}}),[s,D,Q,ee,te,j]),re=o.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){J.current=u.findDOMNode(e)}),[]);o.useEffect((function(){N&&re()})),o.useImperativeHandle(n,(function(){return N?{updatePosition:function(){re()}}:null}),[N,re]),o.useEffect((function(){if(N){var e=Object(l.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[N,re]);var oe=Z;"auto"!==Z||q.muiSupportAuto||(oe=void 0);var ae=k||(s?Object(c.a)(b(s)).body:void 0);return o.createElement(d.a,Object(r.a)({container:ae,open:N,ref:t,BackdropProps:{invisible:!0},className:Object(a.a)(O.root,S)},X),o.createElement(q,Object(r.a)({appear:!0,in:N,onEnter:I,onEntered:F,onExit:z,onExited:L,onExiting:B,timeout:oe},K,{onEntering:Object(f.a)((function(e,t){R&&R(e,t),re()}),K.onEntering)}),o.createElement(m.a,Object(r.a)({elevation:T,ref:ie},U,{className:Object(a.a)(O.paper,U.className)}),C)))})),_=Object(s.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(x),w=n(204),E=n(46),D=n(30),C={vertical:"top",horizontal:"right"},O={vertical:"top",horizontal:"left"},S=o.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,l=e.children,c=e.classes,p=e.disableAutoFocusItem,f=void 0!==p&&p,d=e.MenuListProps,h=void 0===d?{}:d,m=e.onClose,v=e.onEntering,y=e.open,g=e.PaperProps,b=void 0===g?{}:g,x=e.PopoverClasses,S=e.transitionDuration,k=void 0===S?"auto":S,A=e.variant,T=void 0===A?"selectedMenu":A,P=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),M=Object(D.a)(),j=s&&!f&&y,I=o.useRef(null),F=o.useRef(null),R=-1;o.Children.map(l,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==T&&e.props.selected||-1===R)&&(R=t))}));var z=o.Children.map(l,(function(e,t){return t===R?o.cloneElement(e,{ref:function(t){F.current=u.findDOMNode(t),Object(E.a)(e.ref,t)}}):e}));return o.createElement(_,Object(r.a)({getContentAnchorEl:function(){return F.current},classes:x,onClose:m,onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,M),v&&v(e,t)},anchorOrigin:"rtl"===M.direction?C:O,transformOrigin:"rtl"===M.direction?C:O,PaperProps:Object(r.a)({},b,{classes:Object(r.a)({},b.classes,{root:c.paper})}),open:y,ref:t,transitionDuration:k},P),o.createElement(w.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:I,autoFocus:s&&(-1===R||f),autoFocusItem:j,variant:T},h,{className:Object(a.a)(c.list,h.className)}),z))}));t.a=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(S)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),i=n(80);function o(e){return e&&"object"===Object(i.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(2),i=n(32),o=n(4),a=n(0),s=(n(1),n(360)),u=n(38),l=n(30),c=n(49),p=n(14),f={entering:{opacity:1},entered:{opacity:1}},d={enter:u.b.enteringScreen,exit:u.b.leavingScreen},h=a.forwardRef((function(e,t){var n=e.children,u=e.disableStrictModeCompat,h=void 0!==u&&u,m=e.in,v=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,x=e.onExited,_=e.onExiting,w=e.style,E=e.TransitionComponent,D=void 0===E?s.a:E,C=e.timeout,O=void 0===C?d:C,S=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),k=Object(l.a)(),A=k.unstable_strictMode&&!h,T=a.useRef(null),P=Object(p.a)(n.ref,t),M=Object(p.a)(A?T:void 0,P),j=function(e){return function(t,n){if(e){var r=A?[T.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},I=j(g),F=j((function(e,t){Object(c.b)(e);var n=Object(c.a)({style:w,timeout:O},{mode:"enter"});e.style.webkitTransition=k.transitions.create("opacity",n),e.style.transition=k.transitions.create("opacity",n),v&&v(e,t)})),R=j(y),z=j(_),L=j((function(e){var t=Object(c.a)({style:w,timeout:O},{mode:"exit"});e.style.webkitTransition=k.transitions.create("opacity",t),e.style.transition=k.transitions.create("opacity",t),b&&b(e)})),B=j(x);return a.createElement(D,Object(r.a)({appear:!0,in:m,nodeRef:A?T:void 0,onEnter:F,onEntered:R,onEntering:I,onExit:L,onExited:B,onExiting:z,timeout:O},S),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||m?void 0:"hidden"},f[e],w,n.props.style),ref:M},t))}))}));t.a=h},function(e,t,n){"use strict";var r=n(2),i=n(32),o=n(4),a=n(0),s=(n(1),n(360)),u=n(30),l=n(49),c=n(14);function p(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},d=a.forwardRef((function(e,t){var n=e.children,d=e.disableStrictModeCompat,h=void 0!==d&&d,m=e.in,v=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,x=e.onExited,_=e.onExiting,w=e.style,E=e.timeout,D=void 0===E?"auto":E,C=e.TransitionComponent,O=void 0===C?s.a:C,S=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),k=a.useRef(),A=a.useRef(),T=Object(u.a)(),P=T.unstable_strictMode&&!h,M=a.useRef(null),j=Object(c.a)(n.ref,t),I=Object(c.a)(P?M:void 0,j),F=function(e){return function(t,n){if(e){var r=P?[M.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},R=F(g),z=F((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:w,timeout:D},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===D?(n=T.transitions.getAutoHeightDuration(e.clientHeight),A.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:.666*n,delay:o})].join(","),v&&v(e,t)})),L=F(y),B=F(_),N=F((function(e){var t,n=Object(l.a)({style:w,timeout:D},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===D?(t=T.transitions.getAutoHeightDuration(e.clientHeight),A.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=p(.75),b&&b(e)})),V=F(x);return a.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),a.createElement(O,Object(r.a)({appear:!0,in:m,nodeRef:P?M:void 0,onEnter:z,onEntered:L,onEntering:R,onExit:N,onExited:V,onExiting:B,addEndListener:function(e,t){var n=P?e:t;"auto"===D&&(k.current=setTimeout(n,A.current||0))},timeout:"auto"===D?null:D},S),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:p(.75),visibility:"exited"!==e||m?void 0:"hidden"},f[e],w,n.props.style),ref:I},t))}))}));d.muiSupportAuto=!0,t.a=d},function(e,t,n){"use strict";var r=n(0),i=n(21),o=(n(1),n(27)),a=n(14),s=n(24);function u(e){return e.substring(2).toLowerCase()}t.a=function(e){var t=e.children,n=e.disableReactTree,l=void 0!==n&&n,c=e.mouseEvent,p=void 0===c?"onClick":c,f=e.onClickAway,d=e.touchEvent,h=void 0===d?"onTouchEnd":d,m=r.useRef(!1),v=r.useRef(null),y=r.useRef(!1),g=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){y.current=!0}),0),function(){y.current=!1}}),[]);var b=r.useCallback((function(e){v.current=i.findDOMNode(e)}),[]),x=Object(a.a)(t.ref,b),_=Object(s.a)((function(e){var t=g.current;if(g.current=!1,y.current&&v.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(m.current)m.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(v.current)>-1;else n=!Object(o.a)(v.current).documentElement.contains(e.target)||v.current.contains(e.target);n||!l&&t||f(e)}})),w=function(e){return function(n){g.current=!0;var r=t.props[e];r&&r(n)}},E={ref:x};return!1!==h&&(E[h]=w(h)),r.useEffect((function(){if(!1!==h){var e=u(h),t=Object(o.a)(v.current),n=function(){m.current=!0};return t.addEventListener(e,_),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,_),t.removeEventListener("touchmove",n)}}}),[_,h]),!1!==p&&(E[p]=w(p)),r.useEffect((function(){if(!1!==p){var e=u(p),t=Object(o.a)(v.current);return t.addEventListener(e,_),function(){t.removeEventListener(e,_)}}}),[_,p]),r.createElement(r.Fragment,null,r.cloneElement(t,E))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return je}));var r=n(40),i=Date.now(),o="fnValues"+i,a="fnStyle"+ ++i,s=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var i=Object(r.d)(e,{},n);return i[a]=t,i},onProcessStyle:function(e,t){if(o in t||a in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[o]=n,e},onUpdate:function(e,t,n,r){var i=t,s=i[a];s&&(i.style=s(e)||{});var u=i[o];if(u)for(var l in u)i.prop(l,u[l](e),r)}}},u=n(2),l="@global",c=function(){function e(e,t,n){for(var i in this.type="global",this.at=l,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.a(Object(u.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),p=function(){function e(e,t,n){this.type="global",this.at=l,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,Object(u.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),f=/\s*,\s*/g;function d(e,t){for(var n=e.split(f),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===l)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new p(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[l]:null;if(i){for(var o in i)t.addRule(o,i[o],Object(u.a)({},n,{selector:d(o,e.selector)}));delete r[l]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,l.length)===l){var o=d(i.substr(l.length),e.selector);t.addRule(o,r[i],Object(u.a)({},n,{selector:o})),delete r[i]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,y=/\$([\w-]+)/g;var g=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?(i=i).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var u=r[s];i&&(i+=", "),i+=-1!==u.indexOf("&")?u.replace(v,a):a+" "+u}return i}function n(e,t,n){if(n)return Object(u.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Object(u.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,c=l.options.parent;for(var p in r){var f=-1!==p.indexOf("&"),d="@"===p[0];if(f||d){if(a=n(l,c,a),f){var h=t(p,l.selector);s||(s=e(c,o)),h=h.replace(y,s),c.addRule(h,r[p],Object(u.a)({},a,{selector:h}))}else d&&c.addRule(p,{},a).addRule(l.key,r[p],{selector:l.selector});delete r[p]}}return r}}},b=/[A-Z]/g,x=/^ms-/,_={};function w(e){return"-"+e.toLowerCase()}var E=function(e){if(_.hasOwnProperty(e))return _[e];var t=e.replace(b,w);return _[e]=x.test(t)?"-"+t:t};function D(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:E(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(D):t.fallbacks=D(e.fallbacks)),t}var C=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=D(e[t]);return e}return D(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=E(t);return t===r?e:(n.prop(r,e),null)}}},O=r.f&&CSS?CSS.px:"px",S=r.f&&CSS?CSS.ms:"ms",k=r.f&&CSS?CSS.percent:"%";function A(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var T=A({"animation-delay":S,"animation-duration":S,"background-position":O,"background-position-x":O,"background-position-y":O,"background-size":O,border:O,"border-bottom":O,"border-bottom-left-radius":O,"border-bottom-right-radius":O,"border-bottom-width":O,"border-left":O,"border-left-width":O,"border-radius":O,"border-right":O,"border-right-width":O,"border-top":O,"border-top-left-radius":O,"border-top-right-radius":O,"border-top-width":O,"border-width":O,"border-block":O,"border-block-end":O,"border-block-end-width":O,"border-block-start":O,"border-block-start-width":O,"border-block-width":O,"border-inline":O,"border-inline-end":O,"border-inline-end-width":O,"border-inline-start":O,"border-inline-start-width":O,"border-inline-width":O,"border-start-start-radius":O,"border-start-end-radius":O,"border-end-start-radius":O,"border-end-end-radius":O,margin:O,"margin-bottom":O,"margin-left":O,"margin-right":O,"margin-top":O,"margin-block":O,"margin-block-end":O,"margin-block-start":O,"margin-inline":O,"margin-inline-end":O,"margin-inline-start":O,padding:O,"padding-bottom":O,"padding-left":O,"padding-right":O,"padding-top":O,"padding-block":O,"padding-block-end":O,"padding-block-start":O,"padding-inline":O,"padding-inline-end":O,"padding-inline-start":O,"mask-position-x":O,"mask-position-y":O,"mask-size":O,height:O,width:O,"min-height":O,"max-height":O,"min-width":O,"max-width":O,bottom:O,left:O,top:O,right:O,inset:O,"inset-block":O,"inset-block-end":O,"inset-block-start":O,"inset-inline":O,"inset-inline-end":O,"inset-inline-start":O,"box-shadow":O,"text-shadow":O,"column-gap":O,"column-rule":O,"column-rule-width":O,"column-width":O,"font-size":O,"font-size-delta":O,"letter-spacing":O,"text-decoration-thickness":O,"text-indent":O,"text-stroke":O,"text-stroke-width":O,"word-spacing":O,motion:O,"motion-offset":O,outline:O,"outline-offset":O,"outline-width":O,perspective:O,"perspective-origin-x":k,"perspective-origin-y":k,"transform-origin":k,"transform-origin-x":k,"transform-origin-y":k,"transform-origin-z":k,"transition-delay":S,"transition-duration":S,"vertical-align":O,"flex-basis":O,"shape-margin":O,size:O,gap:O,grid:O,"grid-gap":O,"row-gap":O,"grid-row-gap":O,"grid-column-gap":O,"grid-template-rows":O,"grid-template-columns":O,"grid-auto-rows":O,"grid-auto-columns":O,"box-shadow-x":O,"box-shadow-y":O,"box-shadow-blur":O,"box-shadow-spread":O,"font-line-height":O,"text-shadow-x":O,"text-shadow-y":O,"text-shadow-blur":O});function P(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=P(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=P(i,t[i],n);else for(var o in t)t[o]=P(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||T[e];return!a||0===t&&a===O?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var M=function(e){void 0===e&&(e={});var t=A(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=P(r,e[r],t);return e},onChangeValue:function(e,n){return P(n,e,t)}}},j=n(95),I=n(57),F="",R="",z="",L="",B=j.a&&"ontouchstart"in document.documentElement;if(j.a){var N={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},V=document.createElement("p").style;for(var U in N)if(U+"Transform"in V){F=U,R=N[U];break}"Webkit"===F&&"msHyphens"in V&&(F="ms",R=N.ms,L="edge"),"Webkit"===F&&"-apple-trailing-word"in V&&(z="apple")}var H=F,W=R,G=z,q=L,Y=B;var Z={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:W+e)}},$={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?W+"print-"+e:e)}},K=/[-\s]+(.)?/g;function X(e,t){return t?t.toUpperCase():""}function J(e){return e.replace(K,X)}function Q(e){return J("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){if(J("mask-image")in t)return e;if(H+Q("mask-image")in t)return W+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==G||Y?e:W+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:W+e)}},ie={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:W+e)}},oe={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==q?W+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===G?W+e:e)}},se={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+Q(e)in t&&W+"column-"+e:"Moz"===H&&("page"+Q(e)in t&&"page-"+e))}},ue={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+Q(n)in t&&W+n}},le={supportedProperty:function(e,t){return J(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?W+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},pe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+W+e:e)}},fe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?W+"scroll-chaining":e)}},de={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=de[e];return!!n&&(H+Q(n)in t&&W+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),ye=function(e){return W+e},ge=[Z,$,te,ne,re,ie,oe,ae,se,ue,le,ce,pe,fe,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var i=me[e];if(!Array.isArray(i))return H+Q(i)in t&&W+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(H+Q(i[0])in t))return!1;return i.map(ye)}return!1}}],be=ge.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),xe=ge.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(I.a)(t.noPrefill)),e}),[]),_e={};if(j.a){ee=document.createElement("p");var we=window.getComputedStyle(document.documentElement,"");for(var Ee in we)isNaN(Ee)||(_e[we[Ee]]=we[Ee]);xe.forEach((function(e){return delete _e[e]}))}function De(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=_e[e])return _e[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(_e[e]=be[n](e,ee.style,t),!_e[e]);n++);try{ee.style[e]=""}catch(r){return!1}return _e[e]}var Ce,Oe={},Se={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ke=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ae(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?De(t):", "+De(n);return r||(t||n)}function Te(e,t){var n=t;if(!Ce||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Oe[r])return Oe[r];try{Ce.style[e]=n}catch(i){return Oe[r]=!1,!1}if(Se[e])n=n.replace(ke,Ae);else if(""===Ce.style[e]&&("-ms-flex"===(n=W+n)&&(Ce.style[e]="-ms-flexbox"),Ce.style[e]=n,""===Ce.style[e]))return Oe[r]=!1,!1;return Ce.style[e]="",Oe[r]=n,Oe[r]}j.a&&(Ce=document.createElement("p"));var Pe=function(){function e(t){for(var n in t){var i=t[n];if("fallbacks"===n&&Array.isArray(i))t[n]=i.map(e);else{var o=!1,a=De(n);a&&a!==n&&(o=!0);var s=!1,u=Te(a,Object(r.g)(i));u&&u!==i&&(s=!0),(o||s)&&(o&&delete t[n],t[a||n]=u||i)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===H?n:"@"+W+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,Object(r.g)(e))||e}}};var Me=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};function je(){return{plugins:[s(),h(),g(),C(),M(),"undefined"===typeof window?null:Pe(),Me()]}}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(156),u=n(22),l=Object(u.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=n(10),f=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),d=n(9),h=n(6),m=o.createElement(c,null),v=o.createElement(l,null),y=o.createElement(f,null),g=o.forwardRef((function(e,t){var n=e.checkedIcon,u=void 0===n?m:n,l=e.classes,c=e.color,p=void 0===c?"secondary":c,f=e.icon,h=void 0===f?v:f,g=e.indeterminate,b=void 0!==g&&g,x=e.indeterminateIcon,_=void 0===x?y:x,w=e.inputProps,E=e.size,D=void 0===E?"medium":E,C=Object(i.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),O=b?_:h,S=b?_:u;return o.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(l.root,l["color".concat(Object(d.a)(p))],b&&l.indeterminate),checked:l.checked,disabled:l.disabled},color:p,inputProps:Object(r.a)({"data-indeterminate":b},w),icon:o.cloneElement(O,{fontSize:void 0===O.props.fontSize&&"small"===D?D:O.props.fontSize}),checkedIcon:o.cloneElement(S,{fontSize:void 0===S.props.fontSize&&"small"===D?D:S.props.fontSize}),ref:t},C))}));t.a=Object(h.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(p.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(p.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(g)},function(e,t,n){"use strict";var r=n(33),i=n(39),o=(n(1),n(0)),a=n.n(o),s=n(21),u=n.n(s),l=!1,c=n(112),p=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||l?this.safeSetState({status:"entered"},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(o,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(c.a.Provider,{value:null},"function"===typeof n?n(e,i):a.a.cloneElement(a.a.Children.only(n),i))},t}(a.a.Component);function f(){}p.contextType=c.a,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED="unmounted",p.EXITED="exited",p.ENTERING="entering",p.ENTERED="entered",p.EXITING="exiting";t.a=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){"use strict";var r=n(222),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,p=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function _(){}function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=x.prototype;var E=w.prototype=new _;E.constructor=w,r(E,x.prototype),E.isPureReactComponent=!0;var D={current:null},C=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,r)&&!O.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:D.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,T=[];function P(e,t,n,r){if(T.length){var i=T.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>T.length&&T.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=n+I(s=t[l],l);u+=e(s,c,r,i)}else if(null===t||"object"!==typeof t?c=null:c="function"===typeof(c=v&&t[v]||t["@@iterator"])?c:null,"function"===typeof c)for(t=c.call(t),l=0;!(s=t.next()).done;)u+=e(s=s.value,c=n+I(s,l++),r,i);else if("object"===s)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function I(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function F(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(k(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),j(e,R,t=P(t,o,r,i)),M(t)}var L={current:null};function B(){var e=L.current;if(null===e)throw Error(y(321));return e}var N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:D,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,F,t=P(null,null,t,n)),M(t)},count:function(e){return j(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!k(e))throw Error(y(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=l,t.PureComponent=w,t.StrictMode=u,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(y(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=D.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!O.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var p=0;p<c;p++)l[p]=arguments[p+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var r=n(0),i=n(222),o=n(413);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var u=!1,l=null,c=!1,p=null,f={onError:function(e){u=!0,l=e}};function d(e,t,n,r,i,o,a,c,p){u=!1,l=null,s.apply(f,arguments)}var h=null,m=null,v=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=v(n),function(e,t,n,r,i,o,s,f,h){if(d.apply(this,arguments),u){if(!u)throw Error(a(198));var m=l;u=!1,l=null,c||(c=!0,p=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,b={};function x(){if(g)for(var e in b){var t=b[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!w[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in w[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,u=r;if(E.hasOwnProperty(u))throw Error(a(99,u));E[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_(l[i],s,u);i=!0}else o.registrationName?(_(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function _(e,t,n){if(D[e])throw Error(a(100,e));D[e]=t,C[e]=t.eventTypes[n].dependencies}var w=[],E={},D={},C={};function O(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&x()}var S=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),k=null,A=null,T=null;function P(e){if(e=m(e)){if("function"!==typeof k)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),k(e.stateNode,e.type,t))}}function M(e){A?T?T.push(e):T=[e]:A=e}function j(){if(A){var e=A,t=T;if(T=A=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function I(e,t){return e(t)}function F(e,t,n,r,i){return e(t,n,r,i)}function R(){}var z=I,L=!1,B=!1;function N(){null===A&&null===T||(R(),j())}function V(e,t,n){if(B)return e(t,n);B=!0;try{return z(e,t,n)}finally{B=!1,N()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,W={},G={};function q(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var Y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Y[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Y[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Y[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Y[e]=new q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Y[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Y[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Y[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Y[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Y[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var Z=/[\-:]([a-z])/g;function $(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Z,$);Y[t]=new q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Z,$);Y[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Z,$);Y[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Y[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),Y.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Y[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var K=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=Y.hasOwnProperty(t)?Y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!H.call(G,e)||!H.call(W,e)&&(U.test(e)?G[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Q="function"===typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,ne=Q?Symbol.for("react.fragment"):60107,re=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,ue=Q?Symbol.for("react.forward_ref"):60112,le=Q?Symbol.for("react.suspense"):60113,ce=Q?Symbol.for("react.suspense_list"):60120,pe=Q?Symbol.for("react.memo"):60115,fe=Q?Symbol.for("react.lazy"):60116,de=Q?Symbol.for("react.block"):60121,he="function"===typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return ve(e.type);case de:return ve(e.render);case fe:if(e=1===e._status?e._result:null)return ve(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ve(e.type);n=null,r&&(n=ve(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function xe(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function we(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function De(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Ce(e,t){De(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Se(e,t.type,n):t.hasOwnProperty("defaultValue")&&Se(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Se(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Me(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ie="http://www.w3.org/1999/xhtml",Fe="http://www.w3.org/2000/svg";function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ze(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,Be=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Fe||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ne(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},He={},We={};function Ge(e){if(He[e])return He[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return He[e]=n[t];return e}S&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var qe=Ge("animationend"),Ye=Ge("animationiteration"),Ze=Ge("animationstart"),$e=Ge("transitionend"),Ke="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Qe(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=p,c=!1,p=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!S)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ct=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function ft(e,t,n,r){if(ct.length){var i=ct.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Sn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ut(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<w.length;u++){var l=w[u];l&&(l=l.extractEvents(r,t,o,i,a))&&(s=rt(s,l))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Zt(t,"scroll",!0);break;case"focus":case"blur":Zt(t,"focus",!0),Zt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Zt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ke.indexOf(e)&&Yt(e,t)}n.set(e,null)}}var mt,vt,yt,gt=!1,bt=[],xt=null,_t=null,wt=null,Et=new Map,Dt=new Map,Ct=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),St="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function kt(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function At(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Tt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=kt(t,n,r,i,o),null!==t&&(null!==(t=kn(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Sn(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=kn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function jt(e,t,n){Mt(e)&&n.delete(t)}function It(){for(gt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=kn(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==xt&&Mt(xt)&&(xt=null),null!==_t&&Mt(_t)&&(_t=null),null!==wt&&Mt(wt)&&(wt=null),Et.forEach(jt),Dt.forEach(jt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,It)))}function Rt(e){function t(t){return Ft(t,e)}if(0<bt.length){Ft(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&Ft(xt,e),null!==_t&&Ft(_t,e),null!==wt&&Ft(wt,e),Et.forEach(t),Dt.forEach(t),n=0;n<Ct.length;n++)(r=Ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ct.length&&null===(n=Ct[0]).blockedOn;)Pt(n),null===n.blockedOn&&Ct.shift()}var zt={},Lt=new Map,Bt=new Map,Nt=["abort","abort",qe,"animationEnd",Ye,"animationIteration",Ze,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Lt.set(r,o),zt[i]=o}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(Nt,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Ut.length;Ht++)Bt.set(Ut[Ht],0);var Wt=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,qt=!0;function Yt(e,t){Zt(t,e,!1)}function Zt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=$t.bind(null,t,1,e);break;case 1:r=Kt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function $t(e,t,n,r){L||R();var i=Xt,o=L;L=!0;try{F(i,e,t,n,r)}finally{(L=o)||N()}}function Kt(e,t,n,r){Gt(Wt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(qt)if(0<bt.length&&-1<Ot.indexOf(e))e=kt(null,e,t,n,r),bt.push(e);else{var i=Jt(e,t,n,r);if(null===i)At(e,r);else if(-1<Ot.indexOf(e))e=kt(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return xt=Tt(xt,e,t,n,r,i),!0;case"dragenter":return _t=Tt(_t,e,t,n,r,i),!0;case"mouseover":return wt=Tt(wt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Et.set(o,Tt(Et.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Dt.set(o,Tt(Dt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){At(e,r),e=ft(e,r,null,t);try{V(dt,e)}finally{pt(e)}}}}function Jt(e,t,n,r){if(null!==(n=Sn(n=ut(r)))){var i=Qe(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ft(e,r,n,t);try{V(dt,e)}finally{pt(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Qt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Ie;function un(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=C[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function ln(){}function cn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=pn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pn(r)}}function dn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,vn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"===typeof setTimeout?setTimeout:void 0,xn="function"===typeof clearTimeout?clearTimeout:void 0;function _n(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function wn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),Dn="__reactInternalInstance$"+En,Cn="__reactEventHandlers$"+En,On="__reactContainere$"+En;function Sn(e){var t=e[Dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[Dn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=wn(e);null!==e;){if(n=e[Dn])return n;e=wn(e)}return t}n=(e=n).parentNode}return null}function kn(e){return!(e=e[Dn]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Tn(e){return e[Cn]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Mn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function jn(e,t,n){(t=Mn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function In(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)jn(n[t],"captured",e);for(t=0;t<n.length;t++)jn(n[t],"bubbled",e)}}function Fn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Mn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Rn(e){e&&e.dispatchConfig.registrationName&&Fn(e._targetInst,null,e)}function zn(e){it(e,In)}var Ln=null,Bn=null,Nn=null;function Vn(){if(Nn)return Nn;var e,t,n=Bn,r=n.length,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Nn=i.slice(e,1<t?1-t:void 0)}function Un(){return!0}function Hn(){return!1}function Wn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Un:Hn,this.isPropagationStopped=Hn,this}function Gn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function qn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Yn(e){e.eventPool=[],e.getPooled=Gn,e.release=qn}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){this.isPersistent=Un},isPersistent:Hn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Yn(n),n},Yn(Wn);var Zn=Wn.extend({data:null}),$n=Wn.extend({data:null}),Kn=[9,13,27,32],Xn=S&&"CompositionEvent"in window,Jn=null;S&&"documentMode"in document&&(Jn=document.documentMode);var Qn=S&&"TextEvent"in window&&!Jn,er=S&&(!Xn||Jn&&8<Jn&&11>=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Xn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Vn()):(Bn="value"in(Ln=r)?Ln.value:Ln.textContent,ar=!0)),o=Zn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),zn(o),i=o):i=null,(e=Qn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Xn&&ir(e,t)?(e=Vn(),Nn=Bn=Ln=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=$n.getPooled(nr.beforeInput,t,n,r)).data=e,zn(t)):t=null,null===i?t:null===t?i:[i,t]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=Wn.getPooled(cr.change,e,t,n)).type="change",M(n),zn(e),e}var fr=null,dr=null;function hr(e){st(e)}function mr(e){if(_e(An(e)))return e}function vr(e,t){if("change"===e)return t}var yr=!1;function gr(){fr&&(fr.detachEvent("onpropertychange",br),dr=fr=null)}function br(e){if("value"===e.propertyName&&mr(dr))if(e=pr(dr,e,ut(e)),L)st(e);else{L=!0;try{I(hr,e)}finally{L=!1,N()}}}function xr(e,t,n){"focus"===e?(gr(),dr=n,(fr=t).attachEvent("onpropertychange",br)):"blur"===e&&gr()}function _r(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(dr)}function wr(e,t){if("click"===e)return mr(t)}function Er(e,t){if("input"===e||"change"===e)return mr(t)}S&&(yr=lt("input")&&(!document.documentMode||9<document.documentMode));var Dr={eventTypes:cr,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var i=t?An(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=vr;else if(lr(i))if(yr)a=Er;else{a=_r;var s=xr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=wr);if(a&&(a=a(e,t)))return pr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Se(i,"number",i.value)}},Cr=Wn.extend({view:null,detail:null}),Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Or[e])&&!!t[e]}function kr(){return Sr}var Ar=0,Tr=0,Pr=!1,Mr=!1,jr=Cr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:kr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Tr;return Tr=e.screenY,Mr?"mousemove"===e.type?e.screenY-t:0:(Mr=!0,0)}}),Ir=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Rr={eventTypes:Fr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Sn(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=jr,u=Fr.mouseLeave,l=Fr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Ir,u=Fr.pointerLeave,l=Fr.pointerEnter,c="pointer");if(e=null==a?o:An(a),o=null==t?o:An(t),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=e,u.relatedTarget=o,(n=s.getPooled(l,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(l=c,a=0,e=s=r;e;e=Pn(e))a++;for(e=0,t=l;t;t=Pn(t))e++;for(;0<a-e;)s=Pn(s),a--;for(;0<e-a;)l=Pn(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Pn(s),l=Pn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Pn(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=Pn(c);for(c=0;c<s.length;c++)Fn(s[c],"bubbled",u);for(c=r.length;0<c--;)Fn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var zr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Lr=Object.prototype.hasOwnProperty;function Br(e,t){if(zr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Lr.call(t,n[r])||!zr(e[n[r]],t[n[r]]))return!1;return!0}var Nr=S&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ur=null,Hr=null,Wr=null,Gr=!1;function qr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Gr||null==Ur||Ur!==cn(n)?null:("selectionStart"in(n=Ur)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Br(Wr,n)?null:(Wr=n,(e=Wn.getPooled(Vr.select,Hr,e,t)).type="select",e.target=Ur,zn(e),e))}var Yr={eventTypes:Vr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),o=C.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?An(t):window,e){case"focus":(lr(i)||"true"===i.contentEditable)&&(Ur=i,Hr=t,Wr=null);break;case"blur":Wr=Hr=Ur=null;break;case"mousedown":Gr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Gr=!1,qr(n,r);case"selectionchange":if(Nr)break;case"keydown":case"keyup":return qr(n,r)}return null}},Zr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),$r=Wn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kr=Cr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Cr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Qr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:kr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=jr.extend({dataTransfer:null}),ni=Cr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:kr}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=jr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:zt,extractEvents:function(e,t,n,r){var i=Lt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Kr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case qe:case Ye:case Ze:e=Zr;break;case $e:e=ri;break;case"scroll":e=Cr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=$r;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ir;break;default:e=Wn}return zn(t=e.getPooled(i,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x(),h=Tn,m=kn,v=An,O({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Rr,ChangeEventPlugin:Dr,SelectEventPlugin:Yr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function li(e,t){si++,ai[si]=e.current,e.current=t}var ci={},pi={current:ci},fi={current:!1},di=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vi(){ui(fi),ui(pi)}function yi(e,t,n){if(pi.current!==ci)throw Error(a(168));li(pi,t),li(fi,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ve(t)||"Unknown",o));return i({},n,{},r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,di=pi.current,li(pi,e),li(fi,fi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=gi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ui(fi),ui(pi),li(pi,e)):ui(fi),li(fi,n)}var _i=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Di=o.unstable_requestPaint,Ci=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,Si=o.unstable_ImmediatePriority,ki=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Ti=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,Mi={},ji=o.unstable_shouldYield,Ii=void 0!==Di?Di:function(){},Fi=null,Ri=null,zi=!1,Li=Ci(),Bi=1e4>Li?Ci:function(){return Ci()-Li};function Ni(){switch(Oi()){case Si:return 99;case ki:return 98;case Ai:return 97;case Ti:return 96;case Pi:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return Si;case 98:return ki;case 97:return Ai;case 96:return Ti;case 95:return Pi;default:throw Error(a(332))}}function Ui(e,t){return e=Vi(e),_i(e,t)}function Hi(e,t,n){return e=Vi(e),wi(e,t,n)}function Wi(e){return null===Fi?(Fi=[e],Ri=wi(Si,qi)):Fi.push(e),Mi}function Gi(){if(null!==Ri){var e=Ri;Ri=null,Ei(e)}qi()}function qi(){if(!zi&&null!==Fi){zi=!0;var e=0;try{var t=Fi;Ui(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fi=null}catch(n){throw null!==Fi&&(Fi=Fi.slice(e+1)),wi(Si,Gi),n}finally{zi=!1}}}function Yi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var $i={current:null},Ki=null,Xi=null,Ji=null;function Qi(){Ji=Xi=Ki=null}function eo(e){var t=$i.current;ui($i),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Ki=e,Ji=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ta=!0),e.firstContext=null)}function ro(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Ki)throw Error(a(308));Xi=t,Ki.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function co(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=o.baseState,c=0,p=null,f=null,d=null;if(null!==u)for(var h=u;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(f=d=m,p=l):d=d.next=m,s>c&&(c=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ou(s,h.suspenseConfig);e:{var v=e,y=h;switch(s=t,m=n,y.tag){case 1:if("function"===typeof(v=y.payload)){l=v.call(m,l,s);break e}l=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(s="function"===typeof(v=y.payload)?v.call(m,l,s):v)||void 0===s)break e;l=i({},l,s);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===u){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===d?p=l:d.next=f,o.baseState=p,o.baseQueue=d,au(c),e.expirationTime=c,e.memoizedState=l}}function po(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var fo=K.ReactCurrentBatchConfig,ho=(new r.Component).refs;function mo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var vo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=qs(),i=fo.suspense;(i=so(r=Ys(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),uo(e,i),Zs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=qs(),i=fo.suspense;(i=so(r=Ys(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),uo(e,i),Zs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=qs(),r=fo.suspense;(r=so(n=Ys(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),uo(e,r),Zs(e,n)}};function yo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Br(n,r)||!Br(i,o))}function go(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=mi(t)?di:pi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function xo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=mi(t)?di:pi.current,i.context=hi(e,o)),co(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&vo.enqueueReplaceState(i,i.state,null),co(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var _o=Array.isArray;function wo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Eo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Do(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Au(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wo(e,t,n),r.return=e,r):((r=Su(n.type,n.key,n.props,null,e.mode,r)).ref=wo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Tu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=ku(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Au(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Su(t.type,t.key,t.props,null,e.mode,n)).ref=wo(e,null,t),n.return=e,n;case te:return(t=Tu(t,e.mode,n)).return=e,t}if(_o(t)||me(t))return(t=ku(t,e.mode,n,null)).return=e,t;Eo(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?p(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(_o(n)||me(n))return null!==i?null:p(e,t,n,r,null);Eo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?p(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||me(r))return p(t,e=e.get(n)||null,r,i,null);Eo(t,r)}return null}function m(i,a,s,u){for(var l=null,c=null,p=a,m=a=0,v=null;null!==p&&m<s.length;m++){p.index>m?(v=p,p=null):v=p.sibling;var y=d(i,p,s[m],u);if(null===y){null===p&&(p=v);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===c?l=y:c.sibling=y,c=y,p=v}if(m===s.length)return n(i,p),l;if(null===p){for(;m<s.length;m++)null!==(p=f(i,s[m],u))&&(a=o(p,a,m),null===c?l=p:c.sibling=p,c=p);return l}for(p=r(i,p);m<s.length;m++)null!==(v=h(p,i,m,s[m],u))&&(e&&null!==v.alternate&&p.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?l=v:c.sibling=v,c=v);return e&&p.forEach((function(e){return t(i,e)})),l}function v(i,s,u,l){var c=me(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var p=c=null,m=s,v=s=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=d(i,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===p?c=b:p.sibling=b,p=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=f(i,g.value,l))&&(s=o(g,s,v),null===p?c=g:p.sibling=g,p=g);return c}for(m=r(i,m);!g.done;v++,g=u.next())null!==(g=h(m,i,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),s=o(g,s,v),null===p?c=g:p.sibling=g,p=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var l="object"===typeof o&&null!==o&&o.type===ne&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(o.type===ne){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=wo(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===ne?((r=ku(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Su(o.type,o.key,o.props,null,e.mode,u)).ref=wo(e,r,o),u.return=e,e=u)}return s(e);case te:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Tu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Au(o,e.mode,u)).return=e,e=r),s(e);if(_o(o))return m(e,r,o,u);if(me(o))return v(e,r,o,u);if(c&&Eo(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Co=Do(!0),Oo=Do(!1),So={},ko={current:So},Ao={current:So},To={current:So};function Po(e){if(e===So)throw Error(a(174));return e}function Mo(e,t){switch(li(To,t),li(Ao,e),li(ko,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:t=ze(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(ko),li(ko,t)}function jo(){ui(ko),ui(Ao),ui(To)}function Io(e){Po(To.current);var t=Po(ko.current),n=ze(t,e.type);t!==n&&(li(Ao,e),li(ko,n))}function Fo(e){Ao.current===e&&(ui(ko),ui(Ao))}var Ro={current:0};function zo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Lo(e,t){return{responder:e,props:t}}var Bo=K.ReactCurrentDispatcher,No=K.ReactCurrentBatchConfig,Vo=0,Uo=null,Ho=null,Wo=null,Go=!1;function qo(){throw Error(a(321))}function Yo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,o){if(Vo=o,Uo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Bo.current=null===e||null===e.memoizedState?ya:ga,e=n(r,i),t.expirationTime===Vo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Wo=Ho=null,t.updateQueue=null,Bo.current=ba,e=n(r,i)}while(t.expirationTime===Vo)}if(Bo.current=va,t=null!==Ho&&null!==Ho.next,Vo=0,Wo=Ho=Uo=null,Go=!1,t)throw Error(a(300));return e}function $o(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?Uo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function Ko(){if(null===Ho){var e=Uo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Wo?Uo.memoizedState:Wo.next;if(null!==t)Wo=t,Ho=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?Uo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function Xo(e,t){return"function"===typeof t?t(e):t}function Jo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ho,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.expirationTime;if(c<Vo){var p={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=p,o=r):u=u.next=p,c>Uo.expirationTime&&(Uo.expirationTime=c,au(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ou(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,zr(r,t.memoizedState)||(Ta=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Qo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);zr(o,t.memoizedState)||(Ta=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=$o();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e}).dispatch=ma.bind(null,Uo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Uo.updateQueue)?(t={lastEffect:null},Uo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Ko().memoizedState}function ra(e,t,n,r){var i=$o();Uo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Ko();r=void 0===r?null:r;var o=void 0;if(null!==Ho){var a=Ho.memoizedState;if(o=a.destroy,null!==r&&Yo(r,a.deps))return void ta(t,n,o,r)}Uo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ia(4,2,ua.bind(null,t,e),n)}function ca(){}function pa(e,t){return $o().memoizedState=[e,void 0===t?null:t],e}function fa(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function da(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=Ni();Ui(98>r?98:r,(function(){e(!0)})),Ui(97<r?97:r,(function(){var r=No.suspense;No.suspense=void 0===t?null:t;try{e(!1),n()}finally{No.suspense=r}}))}function ma(e,t,n){var r=qs(),i=fo.suspense;i={expirationTime:r=Ys(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Uo||null!==o&&o===Uo)Go=!0,i.expirationTime=Vo,Uo.expirationTime=Vo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,zr(s,a))return}catch(u){}Zs(e,r)}}var va={readContext:ro,useCallback:qo,useContext:qo,useEffect:qo,useImperativeHandle:qo,useLayoutEffect:qo,useMemo:qo,useReducer:qo,useRef:qo,useState:qo,useDebugValue:qo,useResponder:qo,useDeferredValue:qo,useTransition:qo},ya={readContext:ro,useCallback:pa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=$o();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$o();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,Uo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},$o().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Lo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=No.suspense;No.suspense=void 0===t?null:t;try{i(e)}finally{No.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},ga={readContext:ro,useCallback:fa,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:da,useReducer:Jo,useRef:na,useState:function(){return Jo(Xo)},useDebugValue:ca,useResponder:Lo,useDeferredValue:function(e,t){var n=Jo(Xo),r=n[0],i=n[1];return aa((function(){var n=No.suspense;No.suspense=void 0===t?null:t;try{i(e)}finally{No.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Jo(Xo),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ba={readContext:ro,useCallback:fa,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:da,useReducer:Qo,useRef:na,useState:function(){return Qo(Xo)},useDebugValue:ca,useResponder:Lo,useDeferredValue:function(e,t){var n=Qo(Xo),r=n[0],i=n[1];return aa((function(){var n=No.suspense;No.suspense=void 0===t?null:t;try{i(e)}finally{No.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qo(Xo),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},xa=null,_a=null,wa=!1;function Ea(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ca(e){if(wa){var t=_a;if(t){var n=t;if(!Da(e,t)){if(!(t=_n(n.nextSibling))||!Da(e,t))return e.effectTag=-1025&e.effectTag|2,wa=!1,void(xa=e);Ea(xa,n)}xa=e,_a=_n(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,wa=!1,xa=e}}function Oa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function Sa(e){if(e!==xa)return!1;if(!wa)return Oa(e),wa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=_a;t;)Ea(e,t),t=_n(t.nextSibling);if(Oa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_a=_n(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_a=null}}else _a=xa?_n(e.stateNode.nextSibling):null;return!0}function ka(){_a=xa=null,wa=!1}var Aa=K.ReactCurrentOwner,Ta=!1;function Pa(e,t,n,r){t.child=null===e?Oo(t,null,n,r):Co(t,e.child,n,r)}function Ma(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Zo(e,t,n,r,o,i),null===e||Ta?(t.effectTag|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Za(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Cu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Su(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ia(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Br)(i,r)&&e.ref===t.ref)?Za(e,t,o):(t.effectTag|=1,(e=Ou(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ia(e,t,n,r,i,o){return null!==e&&Br(e.memoizedProps,r)&&e.ref===t.ref&&(Ta=!1,i<o)?(t.expirationTime=e.expirationTime,Za(e,t,o)):Ra(e,t,n,r,o)}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ra(e,t,n,r,i){var o=mi(n)?di:pi.current;return o=hi(t,o),no(t,i),n=Zo(e,t,n,r,o,i),null===e||Ta?(t.effectTag|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Za(e,t,i))}function za(e,t,n,r,i){if(mi(n)){var o=!0;bi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),go(t,n,r),xo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ro(l):l=hi(t,l=mi(n)?di:pi.current);var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&bo(t,a,r,l),io=!1;var f=t.memoizedState;a.state=f,co(t,r,a,i),u=t.memoizedState,s!==r||f!==u||fi.current||io?("function"===typeof c&&(mo(t,n,c,r),u=t.memoizedState),(s=io||yo(t,n,s,r,f,u,l))?(p||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Zi(t.type,s),u=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=ro(l):l=hi(t,l=mi(n)?di:pi.current),(p="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&bo(t,a,r,l),io=!1,u=t.memoizedState,a.state=u,co(t,r,a,i),f=t.memoizedState,s!==r||u!==f||fi.current||io?("function"===typeof c&&(mo(t,n,c,r),f=t.memoizedState),(c=io||yo(t,n,s,r,u,f,l))?(p||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return La(e,t,n,r,o,i)}function La(e,t,n,r,i,o){Fa(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return i&&xi(t,n,!1),Za(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function Ba(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Mo(e,t.containerInfo)}var Na,Va,Ua,Ha={dehydrated:null,retryTime:0};function Wa(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Ro.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),li(Ro,1&a),null===e){if(void 0!==o.fallback&&Ca(t),s){if(s=o.fallback,(o=ku(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=ku(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ha,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Oo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ou(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ou(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ha,t.child=n,i}return n=Co(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=ku(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=ku(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ha,t.child=o,n}return t.memoizedState=null,t.child=Co(t,e,o.children,n)}function Ga(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function qa(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ya(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(e,t,r.children,n),0!==(2&(r=Ro.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ga(e,n);else if(19===e.tag)Ga(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(Ro,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===zo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),qa(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===zo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}qa(t,!0,n,null,o,t.lastEffect);break;case"together":qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&au(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $a(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ka(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mi(t.type)&&vi(),null;case 3:return jo(),ui(fi),ui(pi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Sa(t)||(t.effectTag|=4),null;case 5:Fo(t),n=Po(To.current);var o=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(ko.current),Sa(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Dn]=t,r[Cn]=s,o){case"iframe":case"object":case"embed":Yt("load",r);break;case"video":case"audio":for(e=0;e<Ke.length;e++)Yt(Ke[e],r);break;case"source":Yt("error",r);break;case"img":case"image":case"link":Yt("error",r),Yt("load",r);break;case"form":Yt("reset",r),Yt("submit",r);break;case"details":Yt("toggle",r);break;case"input":Ee(r,s),Yt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Yt("invalid",r),un(n,"onChange");break;case"textarea":Pe(r,s),Yt("invalid",r),un(n,"onChange")}for(var u in on(o,s),e=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):D.hasOwnProperty(u)&&null!=l&&un(n,u)}switch(o){case"input":xe(r),Oe(r,s,!0);break;case"textarea":xe(r),je(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Re(o)),e===sn?"script"===o?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(o,{is:r.is}):(e=u.createElement(o),"select"===o&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,o),e[Dn]=t,e[Cn]=r,Na(e,t),t.stateNode=e,u=an(o,r),o){case"iframe":case"object":case"embed":Yt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Ke.length;l++)Yt(Ke[l],e);l=r;break;case"source":Yt("error",e),l=r;break;case"img":case"image":case"link":Yt("error",e),Yt("load",e),l=r;break;case"form":Yt("reset",e),Yt("submit",e),l=r;break;case"details":Yt("toggle",e),l=r;break;case"input":Ee(e,r),l=we(e,r),Yt("invalid",e),un(n,"onChange");break;case"option":l=ke(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Yt("invalid",e),un(n,"onChange");break;case"textarea":Pe(e,r),l=Te(e,r),Yt("invalid",e),un(n,"onChange");break;default:l=r}on(o,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var p=c[s];"style"===s?nn(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&Be(e,p):"children"===s?"string"===typeof p?("textarea"!==o||""!==p)&&Ne(e,p):"number"===typeof p&&Ne(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(D.hasOwnProperty(s)?null!=p&&un(n,s):null!=p&&X(e,s,p,u))}switch(o){case"input":xe(e),Oe(e,r,!1);break;case"textarea":xe(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ae(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=ln)}yn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ua(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Po(To.current),Po(ko.current),Sa(t)?(n=t.stateNode,r=t.memoizedProps,n[Dn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Dn]=t,t.stateNode=n)}return null;case 13:return ui(Ro),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Sa(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ro.current)?Ss===xs&&(Ss=_s):(Ss!==xs&&Ss!==_s||(Ss=ws),0!==Ms&&null!==Ds&&(ju(Ds,Os),Iu(Ds,Ms)))),(n||r)&&(t.effectTag|=4),null);case 4:return jo(),null;case 10:return eo(t),null;case 17:return mi(t.type)&&vi(),null;case 19:if(ui(Ro),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(s=r.rendering)){if(o)$a(r,!1);else if(Ss!==xs||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=zo(s))){for(t.effectTag|=64,$a(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return li(Ro,1&Ro.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=zo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),$a(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,$a(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bi(),n.sibling=null,t=Ro.current,li(Ro,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:mi(e.type)&&vi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(jo(),ui(fi),ui(pi),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Fo(e),null;case 13:return ui(Ro),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ui(Ro),null;case 4:return jo(),null;case 10:return eo(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:ye(t)}}Na=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,u,l=t.stateNode;switch(Po(ko.current),e=null,n){case"input":a=we(l,a),r=we(l,r),e=[];break;case"option":a=ke(l,a),r=ke(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Te(l,a),r=Te(l,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=ln)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(D.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(D.hasOwnProperty(s)?(null!=c&&un(o,s),e||l===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ua=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Qa="function"===typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function ts(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){gu(e,n)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Zi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&po(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}po(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Rt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"===typeof wu&&wu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ui(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){gu(i,o)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){gu(e,n)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(us(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ne(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||us(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=ln));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var u=e,l=o,c=n,p=l;;)if(as(u,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===l)break e;for(;null===p.sibling;){if(null===p.return||p.return===l)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ps(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Cn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&De(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?nn(n,u):"dangerouslySetInnerHTML"===s?Be(n,u):"children"===s?Ne(n,u):X(n,s,u,t)}switch(e){case"input":Ce(n,r);break;case"textarea":Me(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ae(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ae(n,!!r.multiple,r.defaultValue,!0):Ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Is=Bi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void fs(t);case 19:return void fs(t);case 17:return}throw Error(a(163))}function fs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var r=xu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ds="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rs||(Rs=!0,zs=r),es(e,t)},n}function ms(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ls?Ls=new Set([this]):Ls.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var vs,ys=Math.ceil,gs=K.ReactCurrentDispatcher,bs=K.ReactCurrentOwner,xs=0,_s=3,ws=4,Es=0,Ds=null,Cs=null,Os=0,Ss=xs,ks=null,As=1073741823,Ts=1073741823,Ps=null,Ms=0,js=!1,Is=0,Fs=null,Rs=!1,zs=null,Ls=null,Bs=!1,Ns=null,Vs=90,Us=null,Hs=0,Ws=null,Gs=0;function qs(){return 0!==(48&Es)?1073741821-(Bi()/10|0):0!==Gs?Gs:Gs=1073741821-(Bi()/10|0)}function Ys(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Ni();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&Es))return Os;if(null!==n)e=Yi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Yi(e,150,100);break;case 97:case 96:e=Yi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ds&&e===Os&&--e,e}function Zs(e,t){if(50<Hs)throw Hs=0,Ws=null,Error(a(185));if(null!==(e=$s(e,t))){var n=Ni();1073741823===t?0!==(8&Es)&&0===(48&Es)?Qs(e):(Xs(e),0===Es&&Gi()):Xs(e),0===(4&Es)||98!==n&&99!==n||(null===Us?Us=new Map([[e,t]]):(void 0===(n=Us.get(e))||n>t)&&Us.set(e,t))}}function $s(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ds===i&&(au(t),Ss===ws&&ju(i,Os)),Iu(i,t)),i}function Ks(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Mu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Wi(Qs.bind(null,e));else{var t=Ks(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=qs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Mi&&Ei(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Wi(Qs.bind(null,e)):Hi(r,Js.bind(null,e),{timeout:10*(1073741821-t)-Bi()}),e.callbackNode=t}}}function Js(e,t){if(Gs=0,t)return Fu(e,t=qs()),Xs(e),null;var n=Ks(e);if(0!==n){if(t=e.callbackNode,0!==(48&Es))throw Error(a(327));if(mu(),e===Ds&&n===Os||nu(e,n),null!==Cs){var r=Es;Es|=16;for(var i=iu();;)try{uu();break}catch(u){ru(e,u)}if(Qi(),Es=r,gs.current=i,1===Ss)throw t=ks,nu(e,n),ju(e,n),Xs(e),t;if(null===Cs)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ss,Ds=null,r){case xs:case 1:throw Error(a(345));case 2:Fu(e,2<n?2:n);break;case _s:if(ju(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pu(i)),1073741823===As&&10<(i=Is+500-Bi())){if(js){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nu(e,n);break}}if(0!==(o=Ks(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(fu.bind(null,e),i);break}fu(e);break;case ws:if(ju(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pu(i)),js&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(i=Ks(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ts?r=10*(1073741821-Ts)-Bi():1073741823===As?r=0:(r=10*(1073741821-As)-5e3,0>(r=(i=Bi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ys(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(fu.bind(null,e),r);break}fu(e);break;case 5:if(1073741823!==As&&null!==Ps){o=As;var s=Ps;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Bi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){ju(e,n),e.timeoutHandle=bn(fu.bind(null,e),r);break}}fu(e);break;default:throw Error(a(329))}if(Xs(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Qs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Es))throw Error(a(327));if(mu(),e===Ds&&t===Os||nu(e,t),null!==Cs){var n=Es;Es|=16;for(var r=iu();;)try{su();break}catch(i){ru(e,i)}if(Qi(),Es=n,gs.current=r,1===Ss)throw n=ks,nu(e,t),ju(e,t),Xs(e),n;if(null!==Cs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ds=null,fu(e),Xs(e)}return null}function eu(e,t){var n=Es;Es|=1;try{return e(t)}finally{0===(Es=n)&&Gi()}}function tu(e,t){var n=Es;Es&=-2,Es|=8;try{return e(t)}finally{0===(Es=n)&&Gi()}}function nu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Cs)for(n=Cs.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vi();break;case 3:jo(),ui(fi),ui(pi);break;case 5:Fo(r);break;case 4:jo();break;case 13:case 19:ui(Ro);break;case 10:eo(r)}n=n.return}Ds=e,Cs=Ou(e.current,null),Os=t,Ss=xs,ks=null,Ts=As=1073741823,Ps=null,Ms=0,js=!1}function ru(e,t){for(;;){try{if(Qi(),Bo.current=va,Go)for(var n=Uo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vo=0,Wo=Ho=Uo=null,Go=!1,null===Cs||null===Cs.return)return Ss=1,ks=t,Cs=null;e:{var i=e,o=Cs.return,a=Cs,s=t;if(t=Os,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&Ro.current),p=o;do{var f;if(f=13===p.tag){var d=p.memoizedState;if(null!==d)f=null!==d.dehydrated;else{var h=p.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(f){var m=p.updateQueue;if(null===m){var v=new Set;v.add(u),p.updateQueue=v}else m.add(u);if(0===(2&p.mode)){if(p.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=so(1073741823,null);y.tag=2,uo(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var g=i.pingCache;if(null===g?(g=i.pingCache=new ds,s=new Set,g.set(u,s)):void 0===(s=g.get(u))&&(s=new Set,g.set(u,s)),!s.has(a)){s.add(a);var b=bu.bind(null,i,u,a);u.then(b,b)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);s=Error((ve(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}5!==Ss&&(Ss=2),s=Ja(s,a),p=o;do{switch(p.tag){case 3:u=s,p.effectTag|=4096,p.expirationTime=t,lo(p,hs(p,u,t));break e;case 1:u=s;var x=p.type,_=p.stateNode;if(0===(64&p.effectTag)&&("function"===typeof x.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Ls||!Ls.has(_)))){p.effectTag|=4096,p.expirationTime=t,lo(p,ms(p,u,t));break e}}p=p.return}while(null!==p)}Cs=cu(Cs)}catch(w){t=w;continue}break}}function iu(){var e=gs.current;return gs.current=va,null===e?va:e}function ou(e,t){e<As&&2<e&&(As=e),null!==t&&e<Ts&&2<e&&(Ts=e,Ps=t)}function au(e){e>Ms&&(Ms=e)}function su(){for(;null!==Cs;)Cs=lu(Cs)}function uu(){for(;null!==Cs&&!ji();)Cs=lu(Cs)}function lu(e){var t=vs(e.alternate,e,Os);return e.memoizedProps=e.pendingProps,null===t&&(t=cu(e)),bs.current=null,t}function cu(e){Cs=e;do{var t=Cs.alternate;if(e=Cs.return,0===(2048&Cs.effectTag)){if(t=Ka(t,Cs,Os),1===Os||1!==Cs.childExpirationTime){for(var n=0,r=Cs.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Cs.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Cs.firstEffect),null!==Cs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Cs.firstEffect),e.lastEffect=Cs.lastEffect),1<Cs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Cs:e.firstEffect=Cs,e.lastEffect=Cs))}else{if(null!==(t=Xa(Cs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Cs.sibling))return t;Cs=e}while(null!==Cs);return Ss===xs&&(Ss=5),null}function pu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function fu(e){var t=Ni();return Ui(99,du.bind(null,e,t)),null}function du(e,t){do{mu()}while(null!==Ns);if(0!==(48&Es))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=pu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ds&&(Cs=Ds=null,Os=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Es;Es|=32,bs.current=null,mn=qt;var s=dn();if(hn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{u.nodeType,p.nodeType}catch(O){u=null;break e}var f=0,d=-1,h=-1,m=0,v=0,y=s,g=null;t:for(;;){for(var b;y!==u||0!==c&&3!==y.nodeType||(d=f+c),y!==p||0!==l&&3!==y.nodeType||(h=f+l),3===y.nodeType&&(f+=y.nodeValue.length),null!==(b=y.firstChild);)g=y,y=b;for(;;){if(y===s)break t;if(g===u&&++m===c&&(d=f),g===p&&++v===l&&(h=f),null!==(b=y.nextSibling))break;g=(y=g).parentNode}y=b}u=-1===d||-1===h?null:{start:d,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;vn={activeElementDetached:null,focusedElem:s,selectionRange:u},qt=!1,Fs=i;do{try{hu()}catch(O){if(null===Fs)throw Error(a(330));gu(Fs,O),Fs=Fs.nextEffect}}while(null!==Fs);Fs=i;do{try{for(s=e,u=t;null!==Fs;){var x=Fs.effectTag;if(16&x&&Ne(Fs.stateNode,""),128&x){var _=Fs.alternate;if(null!==_){var w=_.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&x){case 2:ls(Fs),Fs.effectTag&=-3;break;case 6:ls(Fs),Fs.effectTag&=-3,ps(Fs.alternate,Fs);break;case 1024:Fs.effectTag&=-1025;break;case 1028:Fs.effectTag&=-1025,ps(Fs.alternate,Fs);break;case 4:ps(Fs.alternate,Fs);break;case 8:cs(s,c=Fs,u),ss(c)}Fs=Fs.nextEffect}}catch(O){if(null===Fs)throw Error(a(330));gu(Fs,O),Fs=Fs.nextEffect}}while(null!==Fs);if(w=vn,_=dn(),x=w.focusedElem,u=w.selectionRange,_!==x&&x&&x.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(x.ownerDocument.documentElement,x)){null!==u&&hn(x)&&(_=u.start,void 0===(w=u.end)&&(w=_),"selectionStart"in x?(x.selectionStart=_,x.selectionEnd=Math.min(w,x.value.length)):(w=(_=x.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),c=x.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!w.extend&&s>u&&(c=u,u=s,s=c),c=fn(x,s),p=fn(x,u),c&&p&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==p.node||w.focusOffset!==p.offset)&&((_=_.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),s>u?(w.addRange(_),w.extend(p.node,p.offset)):(_.setEnd(p.node,p.offset),w.addRange(_))))),_=[];for(w=x;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof x.focus&&x.focus(),x=0;x<_.length;x++)(w=_[x]).element.scrollLeft=w.left,w.element.scrollTop=w.top}qt=!!mn,vn=mn=null,e.current=n,Fs=i;do{try{for(x=e;null!==Fs;){var E=Fs.effectTag;if(36&E&&os(x,Fs.alternate,Fs),128&E){_=void 0;var D=Fs.ref;if(null!==D){var C=Fs.stateNode;switch(Fs.tag){case 5:_=C;break;default:_=C}"function"===typeof D?D(_):D.current=_}}Fs=Fs.nextEffect}}catch(O){if(null===Fs)throw Error(a(330));gu(Fs,O),Fs=Fs.nextEffect}}while(null!==Fs);Fs=null,Ii(),Es=o}else e.current=n;if(Bs)Bs=!1,Ns=e,Vs=t;else for(Fs=i;null!==Fs;)t=Fs.nextEffect,Fs.nextEffect=null,Fs=t;if(0===(t=e.firstPendingTime)&&(Ls=null),1073741823===t?e===Ws?Hs++:(Hs=0,Ws=e):Hs=0,"function"===typeof _u&&_u(n.stateNode,r),Xs(e),Rs)throw Rs=!1,e=zs,zs=null,e;return 0!==(8&Es)||Gi(),null}function hu(){for(;null!==Fs;){var e=Fs.effectTag;0!==(256&e)&&ns(Fs.alternate,Fs),0===(512&e)||Bs||(Bs=!0,Hi(97,(function(){return mu(),null}))),Fs=Fs.nextEffect}}function mu(){if(90!==Vs){var e=97<Vs?97:Vs;return Vs=90,Ui(e,vu)}}function vu(){if(null===Ns)return!1;var e=Ns;if(Ns=null,0!==(48&Es))throw Error(a(331));var t=Es;for(Es|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(r){if(null===e)throw Error(a(330));gu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Es=t,Gi(),!0}function yu(e,t,n){uo(e,t=hs(e,t=Ja(n,t),1073741823)),null!==(e=$s(e,1073741823))&&Xs(e)}function gu(e,t){if(3===e.tag)yu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ls||!Ls.has(r))){uo(n,e=ms(n,e=Ja(t,e),1073741823)),null!==(n=$s(n,1073741823))&&Xs(n);break}}n=n.return}}function bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ds===e&&Os===n?Ss===ws||Ss===_s&&1073741823===As&&Bi()-Is<500?nu(e,Os):js=!0:Mu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xs(e)))}function xu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ys(t=qs(),e,null)),null!==(e=$s(e,t))&&Xs(e)}vs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||fi.current)Ta=!0;else{if(r<n){switch(Ta=!1,t.tag){case 3:Ba(t),ka();break;case 5:if(Io(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mi(t.type)&&bi(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,li($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Wa(e,t,n):(li(Ro,1&Ro.current),null!==(t=Za(e,t,n))?t.sibling:null);li(Ro,1&Ro.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Ya(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),li(Ro,Ro.current),!r)return null}return Za(e,t,n)}Ta=!1}}else Ta=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,pi.current),no(t,n),i=Zo(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;bi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&mo(t,r,s,e),i.updater=vo,t.stateNode=i,i._reactInternalFiber=t,xo(t,r,e,n),t=La(null,t,r,!0,o,n)}else t.tag=0,Pa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"===typeof e)return Cu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===pe)return 14}return 2}(i),e=Zi(i,e),o){case 0:t=Ra(null,t,i,e,n);break e;case 1:t=za(null,t,i,e,n);break e;case 11:t=Ma(null,t,i,e,n);break e;case 14:t=ja(null,t,i,Zi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ra(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 1:return r=t.type,i=t.pendingProps,za(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 3:if(Ba(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),co(t,r,null,n),(r=t.memoizedState.element)===i)ka(),t=Za(e,t,n);else{if((i=t.stateNode.hydrate)&&(_a=_n(t.stateNode.containerInfo.firstChild),xa=t,i=wa=!0),i)for(n=Oo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(e,t,r,n),ka();t=t.child}return t;case 5:return Io(t),null===e&&Ca(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,gn(r,i)?s=null:null!==o&&gn(r,o)&&(t.effectTag|=16),Fa(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pa(e,t,s,n),t=t.child),t;case 6:return null===e&&Ca(t),null;case 13:return Wa(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ma(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(li($i,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=zr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!fi.current){t=Za(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===u.tag&&((c=so(n,null)).tag=2,uo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),to(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Pa(e,t,r,n),t.child;case 14:return o=Zi(i=t.type,t.pendingProps),ja(e,t,i,o=Zi(i.type,o),r,n);case 15:return Ia(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mi(r)?(e=!0,bi(t)):e=!1,no(t,n),go(t,r,i),xo(t,r,i,n),La(null,t,r,!0,e,n);case 19:return Ya(e,t,n)}throw Error(a(156,t.tag))};var _u=null,wu=null;function Eu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Du(e,t,n,r){return new Eu(e,t,n,r)}function Cu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Su(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Cu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return ku(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Du(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=Du(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ce:return(e=Du(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ue:s=11;break e;case pe:s=14;break e;case fe:s=16,r=null;break e;case de:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Du(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function ku(e,t,n,r){return(e=Du(7,e,r,t)).expirationTime=n,e}function Au(e,t,n){return(e=Du(6,e,null,t)).expirationTime=n,e}function Tu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Mu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function ju(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Iu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Fu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ru(e,t,n,r){var i=t.current,o=qs(),s=fo.suspense;o=Ys(o,i,s);e:if(n){t:{if(Qe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(mi(l)){n=gi(n,l,u);break e}}n=u}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(i,t),Zs(i,o),o}function zu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Lu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Bu(e,t){Lu(e,t),(e=e.alternate)&&Lu(e,t)}function Nu(e,t,n){var r=new Pu(e,t,n=null!=n&&!0===n.hydrate),i=Du(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[On]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Ot.forEach((function(e){ht(e,t,n)})),St.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Vu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Uu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=zu(a);s.call(e)}}Ru(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Nu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=zu(a);u.call(e)}}tu((function(){Ru(t,a,e,i)}))}return zu(a)}function Hu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vu(t))throw Error(a(200));return Hu(e,t,null,n)}Nu.prototype.render=function(e){Ru(e,this._internalRoot,null,null)},Nu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ru(null,e,null,(function(){t[On]=null}))},mt=function(e){if(13===e.tag){var t=Yi(qs(),150,100);Zs(e,t),Bu(e,t)}},vt=function(e){13===e.tag&&(Zs(e,3),Bu(e,3))},yt=function(e){if(13===e.tag){var t=qs();Zs(e,t=Ys(t,e,null)),Bu(e,t)}},k=function(e,t,n){switch(t){case"input":if(Ce(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Tn(r);if(!i)throw Error(a(90));_e(r),Ce(r,i)}}}break;case"textarea":Me(e,n);break;case"select":null!=(t=n.value)&&Ae(e,!!n.multiple,t,!1)}},I=eu,F=function(e,t,n,r,i){var o=Es;Es|=4;try{return Ui(98,e.bind(null,t,n,r,i))}finally{0===(Es=o)&&Gi()}},R=function(){0===(49&Es)&&(function(){if(null!==Us){var e=Us;Us=null,e.forEach((function(e,t){Fu(t,e),Xs(t)})),Gi()}}(),mu())},z=function(e,t){var n=Es;Es|=2;try{return e(t)}finally{0===(Es=n)&&Gi()}};var Gu={Events:[kn,An,Tn,O,E,zn,function(e){it(e,Rn)},M,j,Xt,st,mu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);_u=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},wu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Sn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gu,t.createPortal=Wu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Es))throw Error(a(187));var n=Es;Es|=1;try{return Ui(99,e.bind(null,t))}finally{Es=n,Gi()}},t.hydrate=function(e,t,n){if(!Vu(t))throw Error(a(200));return Uu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Vu(t))throw Error(a(200));return Uu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Vu(e))throw Error(a(40));return!!e._reactRootContainer&&(tu((function(){Uu(null,null,e,!1,(function(){e._reactRootContainer=null,e[On]=null}))})),!0)},t.unstable_batchedUpdates=eu,t.unstable_createPortal=function(e,t){return Wu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Uu(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(414)},function(e,t,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,l=null,c=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(c,0))},i=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var g=!1,b=null,x=-1,_=5,w=0;a=function(){return t.unstable_now()>=w},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,D=E.port2;E.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+_;try{b(!0,e)?D.postMessage(null):(g=!1,b=null)}catch(n){throw D.postMessage(null),n}}else g=!1},r=function(e){b=e,g||(g=!0,D.postMessage(null))},i=function(e,n){x=h((function(){e(t.unstable_now())}),n)},o=function(){m(x),x=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function O(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>k(a,n))void 0!==u&&0>k(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>k(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],T=[],P=1,M=null,j=3,I=!1,F=!1,R=!1;function z(e){for(var t=O(T);null!==t;){if(null===t.callback)S(T);else{if(!(t.startTime<=e))break;S(T),t.sortIndex=t.expirationTime,C(A,t)}t=O(T)}}function L(e){if(R=!1,z(e),!F)if(null!==O(A))F=!0,r(B);else{var t=O(T);null!==t&&i(L,t.startTime-e)}}function B(e,n){F=!1,R&&(R=!1,o()),I=!0;var r=j;try{for(z(n),M=O(A);null!==M&&(!(M.expirationTime>n)||e&&!a());){var s=M.callback;if(null!==s){M.callback=null,j=M.priorityLevel;var u=s(M.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?M.callback=u:M===O(A)&&S(A),z(n)}else S(A);M=O(A)}if(null!==M)var l=!0;else{var c=O(T);null!==c&&i(L,c.startTime-n),l=!1}return l}finally{M=null,j=r,I=!1}}function N(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){F||I||(F=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return O(A)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?s+u:s,a="number"===typeof a.timeout?a.timeout:N(e)}else a=N(e),u=s;return e={id:P++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(e.sortIndex=u,C(T,e),null===O(A)&&e===O(T)&&(R?o():R=!0,i(L,u-s))):(e.sortIndex=a,C(A,e),F||I||(F=!0,r(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();z(e);var n=O(A);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";var r=n(416);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(418)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case f:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case y:case v:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===p},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case f:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case y:case v:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===p},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},function(e,t,n){"use strict";var r=n(223).forEach,i=n(421),o=n(422),a=n(423),s=n(424),u=n(425),l=n(224),c=n(426),p=n(428),f=n(429),d=n(430);function h(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function v(e){return e&&1===e.nodeType}function y(e,t,n){var r=e[t];return void 0!==r&&null!==r||void 0===n?r:n}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),g=s({idGenerator:n,stateHandler:p});t=g}var b=e.reporter;b||(b=u(!1===b));var x=y(e,"batchProcessor",c({reporter:b})),_={};_.callOnAdd=!!y(e,"callOnAdd",!0),_.debug=!!y(e,"debug",!1);var w,E=o(t),D=i({stateHandler:p}),C=y(e,"strategy","object"),O=y(e,"important",!1),S={reporter:b,batchProcessor:x,stateHandler:p,idHandler:t,important:O};if("scroll"===C&&(l.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):l.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)w=d(S);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);w=f(S)}var k={};return{listenTo:function(e,n,i){function o(e){var t=E.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){E.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(v(n))n=[n];else{if(!h(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,u=y(e,"callOnAdd",_.callOnAdd),l=y(e,"onReady",(function(){})),c=y(e,"debug",_.debug);r(n,(function(e){p.getState(e)||(p.initState(e),t.set(e));var f=t.get(e);if(c&&b.log("Attaching listener to element",f,e),!D.isDetectable(e))return c&&b.log(f,"Not detectable."),D.isBusy(e)?(c&&b.log(f,"System busy making it detectable"),a(u,e,i),k[f]=k[f]||[],void k[f].push((function(){++s===n.length&&l()}))):(c&&b.log(f,"Making detectable..."),D.markBusy(e,!0),w.makeDetectable({debug:c,important:O},e,(function(e){if(c&&b.log(f,"onElementDetectable"),p.getState(e)){D.markAsDetectable(e),D.markBusy(e,!1),w.addListener(e,o),a(u,e,i);var t=p.getState(e);if(t&&t.startSize){var d=e.offsetWidth,h=e.offsetHeight;t.startSize.width===d&&t.startSize.height===h||o(e)}k[f]&&r(k[f],(function(e){e()}))}else c&&b.log(f,"Element uninstalled before being detectable.");delete k[f],++s===n.length&&l()})));c&&b.log(f,"Already detecable, adding listener."),a(u,e,i),s++})),s===n.length&&l()},removeListener:E.removeListener,removeAllListeners:E.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(v(e))e=[e];else{if(!h(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}r(e,(function(e){E.removeAllListeners(e),w.uninstall(e),p.cleanState(e)}))},initDocument:function(e){w.initDocument&&w.initDocument(e)}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var i=e.get(n);t[i]||(t[i]=[]),t[i].push(r)},removeListener:function(e,t){for(var r=n(e),i=0,o=r.length;i<o;++i)if(r[i]===t){r.splice(i,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=t.generate();return r.id=i,i}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},function(e,t,n){"use strict";var r=n(427);function i(){var e={},t=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),e[i]||(e[i]=[]),e[i].push(o),t++},process:function(){for(var t=r;t<=n;t++)for(var i=e[t],o=0;o<i.length;o++){(0,i[o])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),o=r.getOption(e,"auto",!0);o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=i(),u=!1;function l(){for(u=!0;s.size();){var e=s;s=i(),e.process()}u=!1}function c(){a=function(e){return t=e,setTimeout(t,0);var t}(l)}return{add:function(e,t){!u&&o&&n&&0===s.size()&&c(),s.add(e,t)},force:function(e){u||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?c():l())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if((void 0===r||null===r)&&void 0!==n)return n;return r}},function(e,t,n){"use strict";function r(e){return e._erd}e.exports={initState:function(e){return e._erd={},r(e)},getState:r,cleanState:function(e){delete e._erd}}},function(e,t,n){"use strict";var r=n(224);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function a(e){return i(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,r.isIE(8)?s(a):function(a,s){var u=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none","visibility: hidden"]),l=!1,c=window.getComputedStyle(a),p=a.offsetWidth,f=a.offsetHeight;function d(){function n(){if("static"===c.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",e.important?"important":""))};n(t,a,c,"top"),n(t,a,c,"right"),n(t,a,c,"bottom"),n(t,a,c,"left")}}""!==c.position&&(n(),l=!0);var o=document.createElement("object");o.style.cssText=u,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){l||n(),function e(t,n){if(!t.contentDocument){var r=i(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},r.isIE()||(o.data="about:blank"),i(a)&&(a.appendChild(o),i(a).object=o,r.isIE()&&(o.data="about:blank"))}i(a).startSize={width:p,height:f},n?n.add(d):d()}(a,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))i(e).object={proxy:n},e.attachEvent("onresize",n);else{var o=a(e);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(i(e)){var t=a(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),i(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(e).checkForObjectDocumentTimeoutId),delete i(e).object)}}}}},function(e,t,n){"use strict";var r=n(223).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=document.createElement("div");e.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}();function s(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",i=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",o+="."+i+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var i=e.createElement("style");i.innerHTML=n,i.id=t,r(i)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function u(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function l(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function c(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function p(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function f(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}return s(window.document),{makeDetectable:function(e,s,c){function d(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function h(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(s),t={};return t.position=e.position,t.width=s.offsetWidth,t.height=s.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(d("storeStyle invoked."),i(s)){var e=m();i(s).style=e}else d("Aborting because element has been uninstalled")}function y(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function g(){return 2*a.width+1}function b(){return 2*a.height+1}function x(e){return e+10+g()}function _(e){return e+10+b()}function w(e,t,n){var r=p(e),i=f(e),o=x(t),a=_(n),s=function(e){return 2*e+g()}(t),u=function(e){return 2*e+b()}(n);r.scrollLeft=o,r.scrollTop=a,i.scrollLeft=s,i.scrollTop=u}function E(){var e=i(s).container;if(!e){(e=document.createElement("div")).className="erd_scroll_detection_container",e.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(s).container=e,function(e){e.className+=" erd_scroll_detection_container_animation_active"}(e),s.appendChild(e);var t=function(){i(s).onRendered&&i(s).onRendered()};l(e,"animationstart",t),i(s).onAnimationStart=t}return e}function D(){if(d("Injecting elements"),i(s)){!function(){var n=i(s).style;if("static"===n.position){s.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var i=n[r];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(e.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,s,n,"top"),r(t,s,n,"right"),r(t,s,n,"bottom"),r(t,s,n,"left")}}();var n=i(s).container;n||(n=E());var r,o,c,p,f=a.width,h=a.height,m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+f))?r+"px":"0"),"top: "+(o=(o=-(1+h))?o+"px":"0"),"right: "+(p=(p=-f)?p+"px":"0"),"bottom: "+(c=(c=-h)?c+"px":"0")])),y=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=u(["position: absolute","left: 0","top: 0"]),x=u(["position: absolute","width: 200%","height: 200%"]),_=document.createElement("div"),w=document.createElement("div"),D=document.createElement("div"),C=document.createElement("div"),O=document.createElement("div"),S=document.createElement("div");_.dir="ltr",_.style.cssText=m,_.className="erd_scroll_detection_container",w.className="erd_scroll_detection_container",w.style.cssText=v,D.style.cssText=y,C.style.cssText=b,O.style.cssText=g,S.style.cssText=x,D.appendChild(C),O.appendChild(S),w.appendChild(D),w.appendChild(O),_.appendChild(w),n.appendChild(_),l(D,"scroll",k),l(O,"scroll",A),i(s).onExpandScroll=k,i(s).onShrinkScroll=A}else d("Aborting because element has been uninstalled");function k(){i(s).onExpand&&i(s).onExpand()}function A(){i(s).onShrink&&i(s).onShrink()}}function C(){function a(t,n,r){var i=function(e){return p(e).childNodes[0]}(t),o=x(n),a=_(r);i.style.setProperty("width",o+"px",e.important?"important":""),i.style.setProperty("height",a+"px",e.important?"important":"")}function u(r){var u=s.offsetWidth,c=s.offsetHeight,p=u!==i(s).lastWidth||c!==i(s).lastHeight;d("Storing current size",u,c),y(s,u,c),n.add(0,(function(){if(p)if(i(s))if(l()){if(e.debug){var n=s.offsetWidth,r=s.offsetHeight;n===u&&r===c||t.warn(o.get(s),"Scroll: Size changed before updating detector elements.")}a(s,u,c)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){i(s)?l()?w(s,u,c):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),p&&r&&n.add(2,(function(){i(s)?l()?r():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function l(){return!!i(s).container}function c(){d("notifyListenersIfNeeded invoked");var e=i(s);return void 0===i(s).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(i(s).listeners,(function(e){e(s)})))}function m(){d("Scroll detected."),h(s)?d("Scroll event fired while unrendered. Ignoring..."):u(c)}if(d("registerListenersAndPositionElements invoked."),i(s)){i(s).onRendered=function(){if(d("startanimation triggered."),h(s))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var e=p(s),t=f(s);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),u(c))}},i(s).onExpand=m,i(s).onShrink=m;var v=i(s).style;a(s,v.width,v.height)}else d("Aborting because element has been uninstalled")}function O(){if(d("finalizeDomMutation invoked."),i(s)){var e=i(s).style;y(s,e.width,e.height),w(s,e.width,e.height)}else d("Aborting because element has been uninstalled")}function S(){c(s)}function k(){d("Installing..."),i(s).listeners=[],function(){var e=m();i(s).startSize={width:e.width,height:e.height},d("Element start size",i(s).startSize)}(),n.add(0,v),n.add(1,D),n.add(2,C),n.add(3,O),n.add(4,S)}c||(c=s,s=e,e=null),e=e||{},d("Making detectable..."),!function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(s)?k():(d("Element is detached"),E(),d("Waiting until element is attached..."),i(s).onRendered=function(){d("Element is now attached"),k()})},addListener:function(e,t){if(!i(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)},uninstall:function(e){var t=i(e);t&&(t.onExpandScroll&&c(p(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(f(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:s}}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(O){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var c={};function p(){}function f(){}function d(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(D([])));v&&v!==t&&n.call(v,i)&&(h=v);var y=d.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"===typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=y.constructor=d,d.constructor=f,f.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),s(y,a,"Generator"),y[i]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(435)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case f:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case y:case v:case l:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===p},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===u||e===s||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=60103,i=60106,o=60107,a=60108,s=60114,u=60109,l=60110,c=60112,p=60113,f=60120,d=60115,h=60116,m=60121,v=60122,y=60117,g=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;r=x("react.element"),i=x("react.portal"),o=x("react.fragment"),a=x("react.strict_mode"),s=x("react.profiler"),u=x("react.provider"),l=x("react.context"),c=x("react.forward_ref"),p=x("react.suspense"),f=x("react.suspense_list"),d=x("react.memo"),h=x("react.lazy"),m=x("react.block"),v=x("react.server.block"),y=x("react.fundamental"),g=x("react.debug_trace_mode"),b=x("react.legacy_hidden")}function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case d:case u:return e;default:return t}}case i:return t}}}var w=u,E=r,D=c,C=o,O=h,S=d,k=i,A=s,T=a,P=p;t.ContextConsumer=l,t.ContextProvider=w,t.Element=E,t.ForwardRef=D,t.Fragment=C,t.Lazy=O,t.Memo=S,t.Portal=k,t.Profiler=A,t.StrictMode=T,t.Suspense=P,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===c},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===h},t.isMemo=function(e){return _(e)===d},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===g||e===a||e===p||e===f||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===u||e.$$typeof===l||e.$$typeof===c||e.$$typeof===y||e.$$typeof===m||e[0]===v)},t.typeOf=_},function(e,t,n){},,function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){n(442),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),e.exports=n(120).Math},function(e,t,n){var r=n(28),i=n(235),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,n){e.exports=n(233)("native-function-to-string",Function.toString)},function(e,t){e.exports=!1},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(28),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(28),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(28),i=n(173);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(28);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(28),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(28),i=n(174);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(28);r(r.S,"Math",{fround:n(453)})},function(e,t,n){var r=n(173),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<u?l*(i/u/a+1/o-1/o)*u*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?l*(1/0):l*n}},function(e,t,n){var r=n(28),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(28),i=Math.imul;r(r.S+r.F*n(78)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(28);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(28);r(r.S,"Math",{log1p:n(235)})},function(e,t,n){var r=n(28);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(28);r(r.S,"Math",{sign:n(173)})},function(e,t,n){var r=n(28),i=n(174),o=Math.exp;r(r.S+r.F*n(78)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(28),i=n(174),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(28);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){n(464),n(477),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(489),e.exports=n(120).Number},function(e,t,n){"use strict";var r=n(71),i=n(135),o=n(175),a=n(465),s=n(172),u=n(78),l=n(469).f,c=n(236).f,p=n(171).f,f=n(179).trim,d=r.Number,h=d,m=d.prototype,v="Number"==o(n(473)(m)),y="trim"in String.prototype,g=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=y?t.trim():f(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),l=0,c=u.length;l<c;l++)if((a=u.charCodeAt(l))<48||a>i)return NaN;return parseInt(u,r)}}return+t};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof d&&(v?u((function(){m.valueOf.call(n)})):"Number"!=o(n))?a(new h(g(t)),n,d):g(t)};for(var b,x=n(100)?l(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)i(h,b=x[_])&&!i(d,b)&&p(d,b,c(h,b));d.prototype=m,m.constructor=d,n(231)(r,"Number",d)}},function(e,t,n){var r=n(99),i=n(466).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){var r=n(99),i=n(134),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(234)(Function.call,n(236).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(175);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(237),i=n(178).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(176),i=n(471),o=n(472);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(136),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(136),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(134),i=n(474),o=n(178),a=n(238)("IE_PROTO"),s=function(){},u=function(){var e,t=n(229)("iframe"),r=o.length;for(t.style.display="none",n(476).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(171),i=n(134),o=n(475);e.exports=n(100)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(237),i=n(178);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(71).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(28),i=n(136),o=n(239),a=n(478),s=1..toFixed,u=Math.floor,l=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*l[n],l[n]=r%1e7,r=u(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=l[t],l[t]=u(n/e),n=n%e*1e7},d=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var n=String(l[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},h=function e(t,n,r){return 0===n?r:n%2===1?e(t,n-1,r*t):e(t*t,n/2,r)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(78)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,c),l=i(e),m="",v="0";if(l<0||l>20)throw RangeError(c);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*h(2,69,1))-69)<0?u*h(2,-t,1):u/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(p(0,n),r=l;r>=7;)p(1e7,0),r-=7;for(p(h(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<<r),p(1,1),f(2),v=d()}else p(0,n),p(1<<-t,0),v=d()+a.call("0",l);return v=l>0?m+((s=v.length)<=l?"0."+a.call("0",l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l)):m+v}})},function(e,t,n){"use strict";var r=n(136),i=n(177);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(28),i=n(78),o=n(239),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(28);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(28),i=n(71).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(28);r(r.S,"Number",{isInteger:n(240)})},function(e,t,n){var r=n(28);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(28),i=n(240),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(28);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(28);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(28),i=n(488);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(71).parseFloat,i=n(179).trim;e.exports=1/r(n(180)+"-0")!==-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(28),i=n(490);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(71).parseInt,i=n(179).trim,o=n(180),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(121),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(494),i=n(546),o=n(252);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(242),i=n(184);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var l=n[a];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],p=e[c],f=l[1];if(u&&l[2]){if(void 0===p&&!(c in e))return!1}else{var d=new r;if(o)var h=o(p,f,c,e,t,d);if(!(void 0===h?i(f,p,3,o,d):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(138),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(138);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(138);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(138);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(137);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(137),i=n(182),o=n(183);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(12),i=n(506),o=n(42),a=n(243),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,p=l.hasOwnProperty,f=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(507),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(63)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(510),i=n(137),o=n(182);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(511),i=n(512),o=n(513),a=n(514),s=n(515);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(139);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(139),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(139),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(139);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(140);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(140);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(140);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(140);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(242),i=n(244),o=n(524),a=n(527),s=n(542),u=n(23),l=n(248),c=n(249),p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,m){var v=u(e),y=u(t),g=v?"[object Array]":s(e),b=y?"[object Array]":s(t),x=(g="[object Arguments]"==g?p:g)==p,_=(b="[object Arguments]"==b?p:b)==p,w=g==b;if(w&&l(e)){if(!l(t))return!1;v=!0,x=!1}if(w&&!x)return m||(m=new r),v||c(e)?i(e,t,n,d,h,m):o(e,t,g,n,d,h,m);if(!(1&n)){var E=x&&f.call(e,"__wrapped__"),D=_&&f.call(t,"__wrapped__");if(E||D){var C=E?e.value():e,O=D?t.value():t;return m||(m=new r),h(C,O,n,d,m)}}return!!w&&(m||(m=new r),a(e,t,n,d,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(121),i=n(525),o=n(181),a=n(244),s=n(526),u=n(187),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,p,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var v=a(d(e),d(t),r,l,p,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t,n){var r=n(63).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(528),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var p=c;p--;){var f=l[p];if(!(u?f in t:i.call(t,f)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=u;++p<c;){var y=e[f=l[p]],g=t[f];if(o)var b=u?o(g,y,f,t,e,s):o(y,g,f,e,t,s);if(!(void 0===b?y===g||a(y,g,n,o,s):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(529),i=n(530),o=n(141);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(246),i=n(23);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(247),i=n(531),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(533),i=n(188),o=n(23),a=n(248),s=n(189),u=n(249),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),p=!n&&!c&&a(e),f=!n&&!c&&!p&&u(e),d=n||c||p||f,h=d?r(e.length,String):[],m=h.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(91),i=n(79);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(91),i=n(190),o=n(79),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){(function(e){var r=n(241),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s}).call(this,n(170)(e))},function(e,t,n){var r=n(539),i=n(540),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(541)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(543),i=n(182),o=n(544),a=n(250),s=n(545),u=n(91),l=n(243),c=l(r),p=l(i),f=l(o),d=l(a),h=l(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(92)(n(63),"DataView");e.exports=r},function(e,t,n){var r=n(92)(n(63),"Promise");e.exports=r},function(e,t,n){var r=n(92)(n(63),"WeakMap");e.exports=r},function(e,t,n){var r=n(251),i=n(141);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(184),i=n(108),o=n(553),a=n(193),s=n(251),u=n(252),l=n(142);e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(549),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(550);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(183);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(552);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(121),i=n(122),o=n(23),a=n(102),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(554),i=n(555);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(253),i=n(188),o=n(23),a=n(189),s=n(190),u=n(142);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,p=!1;++l<c;){var f=u(t[l]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++l!=c?p:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},function(e,t,n){var r=n(557),i=n(558),o=n(193),a=n(142);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(192);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(185),i=n(254),o=n(256),a=n(186),s=n(563),u=n(187);e.exports=function(e,t,n){var l=-1,c=i,p=e.length,f=!0,d=[],h=d;if(n)f=!1,c=o;else if(p>=200){var m=t?null:s(e);if(m)return u(m);f=!1,c=a,h=new r}else h=t?[]:d;e:for(;++l<p;){var v=e[l],y=t?t(v):v;if(v=n||0!==v?v:0,f&&y===y){for(var g=h.length;g--;)if(h[g]===y)continue e;t&&h.push(y),d.push(v)}else c(h,y,n)||(h!==d&&h.push(y),d.push(v))}return d}},function(e,t,n){var r=n(255),i=n(561),o=n(562);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!==e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(250),i=n(564),o=n(187),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(226))},function(e,t,n){var r=n(185),i=n(254),o=n(256),a=n(122),s=n(191),u=n(186),l=Math.min;e.exports=function(e,t,n){for(var c=n?o:i,p=e[0].length,f=e.length,d=f,h=Array(f),m=1/0,v=[];d--;){var y=e[d];d&&t&&(y=a(y,s(t))),m=l(y.length,m),h[d]=!n&&(t||p>=120&&y.length>=120)?new r(d&&y):void 0}y=e[0];var g=-1,b=h[0];e:for(;++g<p&&v.length<m;){var x=y[g],_=t?t(x):x;if(x=n||0!==x?x:0,!(b?u(b,_):c(v,_,n))){for(d=f;--d;){var w=h[d];if(!(w?u(w,_):c(e[d],_,n)))continue e}b&&b.push(_),v.push(x)}}return v}},function(e,t,n){var r=n(568),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(570),i=n(572)(r);e.exports=i},function(e,t,n){var r=n(571),i=n(258),o=n(103),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(574);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(101),i=n(79);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(143);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},function(e,t,n){var r=n(577)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},function(e,t,n){var r=n(101);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(1));var r=s(n(580)),i=s(n(582)),o=s(n(0)),a=s(n(260));n(262);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},p=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),l(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=n?r+" "+i:i;t.removeClasses(e,n?"appear":"enter"),l(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),l(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),l(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&c(e,r),i&&c(e,i),o&&c(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,l(e,t))},i.render=function(){var e=u({},this.props);return delete e.classNames,o.default.createElement(a.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);p.defaultProps={classNames:""},p.propTypes={};var f=p;t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r=n(31);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(581));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(1));var r=a(n(0)),i=n(21),o=a(n(263));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var o,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],u=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var u=s;t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=i(e.children),u=o(t,s);return Object.keys(u).forEach((function(i){var o=u[i];if((0,r.isValidElement)(o)){var l=i in t,c=i in s,p=t[i],f=(0,r.isValidElement)(p)&&!p.props.in;!c||l&&!f?c||!l||f?c&&l&&(0,r.isValidElement)(p)&&(u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:p.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):u[i]=(0,r.cloneElement)(o,{in:!1}):u[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),u};var r=n(0);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r<i[u].length;r++){var l=i[u][r];s[i[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){var r=n(121),i=n(188),o=n(23),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(122),i=n(192),o=n(72),a=n(265),s=n(587),u=n(191),l=n(588),c=n(103),p=n(23);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return p(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[c];var f=-1;t=r(t,u(o));var d=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return s(d,(function(e,t){return l(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(589);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++i<s;){var l=r(o[i],a[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(102);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e===e,a=r(e),s=void 0!==t,u=null===t,l=t===t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}},function(e,t,n){var r=n(63);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(592),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=c(i),a=c(n(1)),s=c(n(594)),u=c(n(595)),l=c(n(596));function c(e){return e&&e.__esModule?e:{default:e}}var p={debounce:u.default,throttle:l.default},f={position:"absolute",width:0,height:0,visibility:"hidden",display:"none"},d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.createResizeObserver=function(e){var t=n.props,r=t.handleWidth,i=t.handleHeight,o=t.onResize;e.forEach((function(e){var t=e.contentRect,a=t.width,s=t.height,u=r&&n.width!==a,l=i&&n.height!==s;n.skipOnMount||!u&&!l||o(a,s),n.width=a,n.height=s,n.skipOnMount=!1}))};var r=e.skipOnMount,i=e.refreshMode,o=e.refreshRate;n.width=void 0,n.height=void 0,n.skipOnMount=r;var a=p[i]&&p[i](n.createResizeObserver,o)||n.createResizeObserver;return n.ro=new s.default(a),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){var e=this.props.resizableElementId,t=e?document.getElementById(e):this.el.parentElement;this.ro.observe(t)}},{key:"componentWillUnmount",value:function(){var e=this.props.resizableElementId,t=e?document.getElementById(e):this.el.parentElement;this.ro.unobserve(t)}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{style:f,ref:function(t){e.el=t}})}}]),t}(i.PureComponent);t.default=d,d.propTypes={handleWidth:a.default.bool,handleHeight:a.default.bool,skipOnMount:a.default.bool,refreshRate:a.default.number,refreshMode:a.default.string,resizableElementId:a.default.string,onResize:a.default.func},d.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,resizableElementId:"",onResize:function(e){return e}}},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i="undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),o="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function s(){o(a)}function u(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},c=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=y(0,0,0,0);function f(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=c(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=f(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=f(r.width),u=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=d(r,"left","right")+o),Math.round(u+a)!==n&&(u-=d(r,"top","bottom")+a)),!function(e){return e===c(e).document.documentElement}(e)){var l=Math.round(s+o)-t,h=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(h)&&(u-=h)}return y(i.left,i.top,s,u)}var m="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof c(e).SVGGraphicsElement}:function(e){return e instanceof c(e).SVGElement&&"function"===typeof e.getBBox};function v(e){return r?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):h(e):p}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return l(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);l(this,{target:e,contentRect:n})},x=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!==typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new x(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var E="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:w;t.default=E}.call(this,n(77))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=s||u||Function("return this")(),c=Object.prototype.toString,p=Math.max,f=Math.min,d=function(){return l.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,a,s,u,l=0,c=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){return l=e,s=setTimeout(_,t),c?g(e):a}function x(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-l>=o}function _(){var e=d();if(x(e))return w(e);s=setTimeout(_,function(e){var n=t-(e-u);return v?f(n,o-(e-l)):n}(e))}function w(e){return s=void 0,y&&r?g(e):(r=i=void 0,a)}function E(){var e=d(),n=x(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return b(u);if(v)return s=setTimeout(_,t),g(u)}return void 0===s&&(s=setTimeout(_,t)),a}return t=m(t)||0,h(n)&&(c=!!n.leading,o=(v="maxWait"in n)?p(m(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},E.flush=function(){return void 0===s?a:w(d())},E}}).call(this,n(77))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=s||u||Function("return this")(),c=Object.prototype.toString,p=Math.max,f=Math.min,d=function(){return l.Date.now()};function h(e,t,n){var r,i,o,a,s,u,l=0,c=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){return l=e,s=setTimeout(_,t),c?g(e):a}function x(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-l>=o}function _(){var e=d();if(x(e))return w(e);s=setTimeout(_,function(e){var n=t-(e-u);return h?f(n,o-(e-l)):n}(e))}function w(e){return s=void 0,y&&r?g(e):(r=i=void 0,a)}function E(){var e=d(),n=x(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return b(u);if(h)return s=setTimeout(_,t),g(u)}return void 0===s&&(s=setTimeout(_,t)),a}return t=v(t)||0,m(n)&&(c=!!n.leading,o=(h="maxWait"in n)?p(v(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},E.flush=function(){return void 0===s?a:w(d())},E}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.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(n,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),h(e,t,{leading:r,maxWait:t,trailing:i})}}).call(this,n(77))},function(e,t){e.exports=function(e,t){return e>t}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){var r=n(122),i=n(72),o=n(265),a=n(23);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t){function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var o=i(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())<o&&(o=i,a=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[o,a])}return s}e.exports=n,n.range=i},function(e,t,n){var r=n(602);function i(e,t,n){var o=e;return function(e,t){var n=[],i="string"===typeof t?new RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)return n;if(void 0===o[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,u=r("(",")",e.substring(s));if(!u||u.start!==o[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:u,functionIdentifier:a}),e=u.post}while(i.test(e));return n}(e,t).reduce((function(e,r){return e.replace(r.functionIdentifier+"("+r.matches.body+")",function(e,t,n,r,o){return n(i(e,o,n),t,r)}(r.matches.body,r.functionIdentifier,n,o,t))}),e)}e.exports=i},function(e,t,n){"use strict";function r(e,t,n){e instanceof RegExp&&(e=i(e,n)),t instanceof RegExp&&(t=i(t,n));var r=o(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function i(e,t){var n=t.match(e);return n?n[0]:null}function o(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){if(e===t)return[u,l];for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())<o&&(o=i,a=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[o,a])}return s}e.exports=r,r.range=o},function(e,t,n){var r=n(604);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o<i.length;o++)1===i[o].type||3===i[o].type?r.push({value:3===i[o].type?i[o].show:i[o].value,type:1}):13===i[o].type?r.push({value:i[o].show,type:1}):0===i[o].type?r[r.length-1]={value:i[o].show+("-"!=i[o].show?"(":"")+r[r.length-1].value+("-"!=i[o].show?")":""),type:0}:7===i[o].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+i[o].show,type:7}:10===i[o].type?(e=r.pop(),t=r.pop(),"P"===i[o].show||"C"===i[o].show?r.push({value:"<sup>"+t.value+"</sup>"+i[o].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},function(e,t,n){var r=n(605);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,i,o=[],a=this.value,s="undefined"!==typeof e.n,u=0;u<a.length;u++)1===a[u].type?o.push({value:a[u].value,type:1}):3===a[u].type?o.push({value:e[a[u].value],type:1}):0===a[u].type||7===a[u].type?"undefined"===typeof o[o.length-1].type?o[o.length-1].value.push(a[u]):o[o.length-1].value=a[u].value(o[o.length-1].value):8===a[u].type?(t=o.pop(),n=o.pop(),o.push({type:1,value:a[u].value(n.value,t.value)})):10===a[u].type?(t=o.pop(),"undefined"===typeof(n=o.pop()).type?(n.value=n.concat(t),n.value.push(a[u]),o.push(n)):"undefined"===typeof t.type?(t.unshift(n),t.push(a[u]),o.push(t)):o.push({type:1,value:a[u].value(n.value,t.value)})):2===a[u].type||9===a[u].type?(t=o.pop(),"undefined"===typeof(n=o.pop()).type?((n=n.concat(t)).push(a[u]),o.push(n)):"undefined"===typeof t.type?(t.unshift(n),t.push(a[u]),o.push(t)):o.push({type:1,value:a[u].value(n.value,t.value)})):12===a[u].type?("undefined"!==typeof(t=o.pop()).type&&(t=[t]),n=o.pop(),i=o.pop(),o.push({type:1,value:a[u].value(i.value,n.value,new r(t))})):13===a[u].type&&(s?o.push({value:e[a[u].value],type:3}):o.push([a[u]]));if(o.length>1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return"undefined"===typeof t?this.lex(e).toPostfix().postfixEval():"undefined"===typeof n?"undefined"!==typeof t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},function(e,t,n){var r=n(606);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,i,o,a=[],s=[{value:"(",type:4,pre:0}],u=this.value,l=1;l<u.length;l++)if(1===u[l].type||3===u[l].type||13===u[l].type)1===u[l].type&&(u[l].value=Number(u[l].value)),a.push(u[l]);else if(4===u[l].type)s.push(u[l]);else if(5===u[l].type)for(;4!==(t=s.pop()).type;)a.push(t);else if(11===u[l].type){for(;4!==(t=s.pop()).type;)a.push(t);s.push(t)}else{i=(e=u[l]).pre,n=(o=s[s.length-1]).pre;var c="Math.pow"==o.value&&"Math.pow"==e.value;if(i>n)s.push(e);else{for(;n>=i&&!c||c&&i<n;)t=s.pop(),o=s[s.length-1],a.push(t),n=o.pre,c="Math.pow"==e.value&&"Math.pow"==o.value;s.push(e)}}return new r(a)},e.exports=r},function(e,t,n){"use strict";var r=n(607);function i(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}var o=["sin","cos","tan","pi","(",")","P","C"," ","asin","acos","atan","7","8","9","int","cosh","acosh","ln","^","root","4","5","6","/","!","tanh","atanh","Mod","1","2","3","*","sinh","asinh","e","log","0",".","+","-",",","Sigma","n","Pi","pow"],a=["sin","cos","tan","π","(",")","P","C"," ","asin","acos","atan","7","8","9","Int","cosh","acosh"," ln","^","root","4","5","6","÷","!","tanh","atanh"," Mod ","1","2","3","×","sinh","asinh","e"," log","0",".","+","-",",","Σ","n","Π","pow"],s=[r.math.sin,r.math.cos,r.math.tan,"PI","(",")",r.math.P,r.math.C," ".anchor,r.math.asin,r.math.acos,r.math.atan,"7","8","9",Math.floor,r.math.cosh,r.math.acosh,Math.log,Math.pow,Math.sqrt,"4","5","6",r.math.div,r.math.fact,r.math.tanh,r.math.atanh,r.math.mod,"1","2","3",r.math.mul,r.math.sinh,r.math.asinh,"E",r.math.log,"0",".",r.math.add,r.math.sub,",",r.math.sigma,"n",r.math.Pi,Math.pow],u={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1},l=[0,0,0,3,4,5,10,10,14,0,0,0,1,1,1,0,0,0,0,10,0,1,1,1,2,7,0,0,2,1,1,1,2,0,0,3,0,1,6,9,9,11,12,13,12,8],c={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0},p={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},f={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},d={},h={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},m={1:!0},v=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," "],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function y(e,t,n,r){for(var i=0;i<r;i++)if(e[n+i]!==t[i])return!1;return!0}r.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;v[n]=v[n]||[];for(var i=0;i<v[n].length;i++)if(e[t].token===v[n][i]){r=o.indexOf(v[n][i]);break}-1===r?(o.push(e[t].token),l.push(e[t].type),v.length<=e[t].token.length&&(v[e[t].token.length]=[]),v[e[t].token.length].push(e[t].token),s.push(e[t].value),a.push(e[t].show)):(o[r]=e[t].token,l[r]=e[t].type,s[r]=e[t].value,a[r]=e[t].show)}},r.lex=function(e,t){var n,g={value:r.math.changeSign,type:0,pre:21,show:"-"},b={value:")",show:")",type:5,pre:0},x={value:"(",type:4,pre:0,show:"("},_=[x],w=[],E=e,D=c,C=0,O=d,S="";"undefined"!==typeof t&&r.addToken(t);var k={},A=function(e){for(var t,n,i,c=[],p=e.length,f=0;f<p;f++)if(!(f<p-1&&" "===e[f]&&" "===e[f+1])){for(t="",n=e.length-f>v.length-2?v.length-1:e.length-f;n>0;n--)if(void 0!==v[n])for(i=0;i<v[n].length;i++)y(e,v[n][i],f,n)&&(t=v[n][i],i=v[n].length,n=0);if(f+=t.length-1,""===t)throw new r.Exception("Can't understand after "+e.slice(f));var d=o.indexOf(t);c.push({index:d,token:t,type:l[d],eval:s[d],precedence:u[l[d]],show:a[d]})}return c}(E);for(n=0;n<A.length;n++){var T=A[n];if(14!==T.type){T.index;var P,M=T.token,j=T.type,I=T.eval,F=T.precedence,R=T.show,z=_[_.length-1];for(P=w.length;P--&&0===w[P];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(j)){if(!0!==D[j])throw console.log(e,T,A,D),new r.Exception(M+" is not allowed after "+S);_.push(b),D=p,O=h,i(w,-1).pop()}if(!0!==D[j])throw new r.Exception(M+" is not allowed after "+S);if(!0===O[j]&&(j=2,I=r.math.mul,R="×",F=3,n-=M.length),k={value:I,type:j,pre:F,show:R},0===j)D=c,O=d,i(w,2).push(2),_.push(k),_.push(x);else if(1===j)1===z.type?(z.value+=I,i(w,1)):_.push(k),D=p,O=f;else if(2===j)D=c,O=d,i(w,2),_.push(k);else if(3===j)_.push(k),D=p,O=h;else if(4===j)i(w,1),C++,D=c,O=d,_.push(k);else if(5===j){if(!C)throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");C--,D=p,O=h,_.push(k),i(w,1)}else if(6===j){if(z.hasDec)throw new r.Exception("Two decimals are not allowed in one number");1!==z.type&&(z={value:0,type:1,pre:0},_.push(z),i(w,-1)),D=m,i(w,1),O=d,z.value+=I,z.hasDec=!0}else 7===j&&(D=p,O=h,i(w,1),_.push(k));8===j?(D=c,O=d,i(w,4).push(4),_.push(k),_.push(x)):9===j?(9===z.type?z.value===r.math.add?(z.value=I,z.show=R,i(w,1)):z.value===r.math.sub&&"-"===R&&(z.value=r.math.add,z.show="+",i(w,1)):5!==z.type&&7!==z.type&&1!==z.type&&3!==z.type&&13!==z.type?"-"===M&&(D=c,O=d,i(w,2).push(2),_.push(g),_.push(x)):(_.push(k),i(w,2)),D=c,O=d):10===j?(D=c,O=d,i(w,2),_.push(k)):11===j?(D=c,O=d,_.push(k)):12===j?(D=c,O=d,i(w,6).push(6),_.push(k),_.push(x)):13===j&&(D=p,O=h,_.push(k)),i(w,-1),S=M}else if(n>0&&n<A.length-1&&1===A[n+1].type&&(1===A[n-1].type||6===A[n-1].type))throw new r.Exception("Unexpected Space")}for(P=w.length;P--&&0===w[P];)_.push(b),i(w,-1).pop();if(!0!==D[5])throw new r.Exception("complete the expression");for(;C--;)_.push(b);return _.push(b),new r(_)},e.exports=r},function(e,t,n){"use strict";var r=function(e){this.value=e};r.math={isDegree:!0,acos:function(e){return r.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return r.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return r.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,i=e-t,o=t;o<i&&(o=i,i=t);for(var a=o+1;a<=e;a++)n*=a;return n/r.math.fact(i)},changeSign:function(e){return-e},cos:function(e){return r.math.isDegree&&(e=r.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,i=e;i<=t;i++)r*=Number(n.postfixEval({n:i}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,i=e;i<=t;i++)r+=Number(n.postfixEval({n:i}));return r},sin:function(e){return r.math.isDegree&&(e=r.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return r.math.isDegree&&(e=r.math.toRadian(e)),Math.tan(e)},tanh:function(e){return r.sinha(e)/r.cosha(e)},toRadian:function(e){return e*Math.PI/180}},r.Exception=function(e){this.message=e},e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},function(e,t,n){var r=n(143);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,i){return n=!!t(e,r,i)})),n}},function(e,t,n){var r=n(72),i=n(101),o=n(141);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}},function(e,t,n){var r=n(255),i=n(72),o=n(612),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},function(e,t,n){var r=n(268);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},function(e,t,n){var r=n(614),i=n(144),o=n(268);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,i,o){for(var a=-1,s=r(n((t-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},function(e,t,n){var r=n(143);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},function(e,t,n){var r=n(258);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(148),i=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,o=e.productionPrefix,a=void 0===o?"jss":o,s=e.seed,u=void 0===s?"":s,l=""===u?"":"".concat(u,"-"),c=0,p=function(){return c+=1};return function(e,t){var o=t.options.name;if(o&&0===o.indexOf("Mui")&&!t.options.link&&!n){if(-1!==i.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(l).concat(o,"-").concat(e.key);return t.options.theme[r.a]&&""===u?"".concat(s,"-").concat(p()):s}return"".concat(l).concat(a).concat(p())}}},function(e,t,n){"use strict";var r=n(0),i=n(21),o=(n(1),n(46)),a=n(14);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,u=r.forwardRef((function(e,t){var n=e.children,u=e.container,l=e.disablePortal,c=void 0!==l&&l,p=e.onRendered,f=r.useState(null),d=f[0],h=f[1],m=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return s((function(){c||h(function(e){return e="function"===typeof e?e():e,i.findDOMNode(e)}(u)||document.body)}),[u,c]),s((function(){if(d&&!c)return Object(o.a)(t,d),function(){Object(o.a)(t,null)}}),[t,d,c]),s((function(){p&&(d||c)&&p()}),[p,d,c]),c?r.isValidElement(n)?r.cloneElement(n,{ref:m}):n:d?i.createPortal(n,d):d}));t.a=u},function(e,t,n){"use strict";var r=n(0),i=n(21),o=(n(1),n(27)),a=n(14);t.a=function(e){var t=e.children,n=e.disableAutoFocus,s=void 0!==n&&n,u=e.disableEnforceFocus,l=void 0!==u&&u,c=e.disableRestoreFocus,p=void 0!==c&&c,f=e.getDoc,d=e.isEnabled,h=e.open,m=r.useRef(),v=r.useRef(null),y=r.useRef(null),g=r.useRef(),b=r.useRef(null),x=r.useCallback((function(e){b.current=i.findDOMNode(e)}),[]),_=Object(a.a)(t.ref,x),w=r.useRef();return r.useEffect((function(){w.current=h}),[h]),!w.current&&h&&"undefined"!==typeof window&&(g.current=f().activeElement),r.useEffect((function(){if(h){var e=Object(o.a)(b.current);s||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!l&&d()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!l&&d()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),p||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[s,l,p,d,h]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:_}),r.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(355),l=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.invisible,p=void 0!==c&&c,f=e.open,d=e.transitionDuration,h=e.TransitionComponent,m=void 0===h?u.a:h,v=Object(i.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(m,Object(r.a)({in:f,timeout:d},v),o.createElement("div",{className:Object(a.a)(s.root,l,p&&s.invisible),"aria-hidden":!0,ref:t},n))}));t.a=Object(s.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(58),l=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.component,p=void 0===c?"ul":c,f=e.dense,d=void 0!==f&&f,h=e.disablePadding,m=void 0!==h&&h,v=e.subheader,y=Object(i.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=o.useMemo((function(){return{dense:d}}),[d]);return o.createElement(u.a.Provider,{value:g},o.createElement(p,Object(r.a)({className:Object(a.a)(s.root,l,d&&s.dense,!m&&s.padding,v&&s.subheader),ref:t},y),v,n))}));t.a=Object(s.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(130),l=n(83),c=n(14),p=n(58),f=n(21),d="undefined"===typeof window?o.useEffect:o.useLayoutEffect,h=o.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,m=void 0!==h&&h,v=e.button,y=void 0!==v&&v,g=e.children,b=e.classes,x=e.className,_=e.component,w=e.ContainerComponent,E=void 0===w?"li":w,D=e.ContainerProps,C=(D=void 0===D?{}:D).className,O=Object(i.a)(D,["className"]),S=e.dense,k=void 0!==S&&S,A=e.disabled,T=void 0!==A&&A,P=e.disableGutters,M=void 0!==P&&P,j=e.divider,I=void 0!==j&&j,F=e.focusVisibleClassName,R=e.selected,z=void 0!==R&&R,L=Object(i.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),B=o.useContext(p.a),N={dense:k||B.dense||!1,alignItems:s},V=o.useRef(null);d((function(){m&&V.current&&V.current.focus()}),[m]);var U=o.Children.toArray(g),H=U.length&&Object(l.a)(U[U.length-1],["ListItemSecondaryAction"]),W=o.useCallback((function(e){V.current=f.findDOMNode(e)}),[]),G=Object(c.a)(W,t),q=Object(r.a)({className:Object(a.a)(b.root,x,N.dense&&b.dense,!M&&b.gutters,I&&b.divider,T&&b.disabled,y&&b.button,"center"!==s&&b.alignItemsFlexStart,H&&b.secondaryAction,z&&b.selected),disabled:T},L),Y=_||"li";return y&&(q.component=_||"div",q.focusVisibleClassName=Object(a.a)(b.focusVisible,F),Y=u.a),H?(Y=q.component||_?Y:"div","li"===E&&("li"===Y?Y="div":"li"===q.component&&(q.component="div")),o.createElement(p.a.Provider,{value:N},o.createElement(E,Object(r.a)({className:Object(a.a)(b.container,C),ref:G},O),o.createElement(Y,q,U),U.pop()))):o.createElement(p.a.Provider,{value:N},o.createElement(Y,Object(r.a)({ref:G},q),U))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(58),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(i.a)(e,["classes","className"]),c=o.useContext(u.a);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"flex-start"===c.alignItems&&n.alignItemsFlexStart),ref:t},l))}));t.a=Object(s.a)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(0),o=n(164),a=n(203);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(o.a)(),s=Object(a.a)({theme:n,name:"MuiUseMediaQuery",props:{}});var u="function"===typeof e?e(n):e;u=u.replace(/^@media( ?)/m,"");var l="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,c=Object(r.a)({},s,t),p=c.defaultMatches,f=void 0!==p&&p,d=c.matchMedia,h=void 0===d?l?window.matchMedia:null:d,m=c.noSsr,v=void 0!==m&&m,y=c.ssrMatchMedia,g=void 0===y?null:y,b=i.useState((function(){return v&&l?h(u).matches:g?g(u).matches:f})),x=b[0],_=b[1];return i.useEffect((function(){var e=!0;if(l){var t=h(u),n=function(){e&&_(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[u,h,l]),x}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(53),u=n(6),l=n(87),c=n(9),p=o.forwardRef((function(e,t){e.checked;var n=e.classes,u=e.className,p=e.control,f=e.disabled,d=(e.inputRef,e.label),h=e.labelPlacement,m=void 0===h?"end":h,v=(e.name,e.onChange,e.value,Object(i.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),y=Object(s.a)(),g=f;"undefined"===typeof g&&"undefined"!==typeof p.props.disabled&&(g=p.props.disabled),"undefined"===typeof g&&y&&(g=y.disabled);var b={disabled:g};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof p.props[t]&&"undefined"!==typeof e[t]&&(b[t]=e[t])})),o.createElement("label",Object(r.a)({className:Object(a.a)(n.root,u,"end"!==m&&n["labelPlacement".concat(Object(c.a)(m))],g&&n.disabled),ref:t},v),o.cloneElement(p,b),o.createElement(l.a,{component:"span",className:Object(a.a)(n.label,g&&n.disabled)},d))}));t.a=Object(u.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(p)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(10),l=n(9),c=n(156),p=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,p=void 0===u?"secondary":u,f=e.edge,d=void 0!==f&&f,h=e.size,m=void 0===h?"medium":h,v=Object(i.a)(e,["classes","className","color","edge","size"]),y=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:Object(a.a)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[d],"small"===m&&n["size".concat(Object(l.a)(m))])},o.createElement(c.a,Object(r.a)({type:"checkbox",icon:y,checkedIcon:y,classes:{root:Object(a.a)(n.switchBase,n["color".concat(Object(l.a)(p))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},v)),o.createElement("span",{className:n.track}))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(p)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(9),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,p=e.disableShrink,f=void 0!==p&&p,d=e.size,h=void 0===d?40:d,m=e.style,v=e.thickness,y=void 0===v?3.6:v,g=e.value,b=void 0===g?0:g,x=e.variant,_=void 0===x?"indeterminate":x,w=Object(i.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),E={},D={},C={};if("determinate"===_||"static"===_){var O=2*Math.PI*((44-y)/2);E.strokeDasharray=O.toFixed(3),C["aria-valuenow"]=Math.round(b),E.strokeDashoffset="".concat(((100-b)/100*O).toFixed(3),"px"),D.transform="rotate(-90deg)"}return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"inherit"!==c&&n["color".concat(Object(u.a)(c))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[_]),style:Object(r.a)({width:h,height:h},D,m),ref:t,role:"progressbar"},C,w),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},o.createElement("circle",{className:Object(a.a)(n.circle,f&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[_]),style:E,cx:44,cy:44,r:(44-y)/2,fill:"none",strokeWidth:y})))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(l)},function(e,t,n){"use strict";var r=n(0),i=(n(1),"undefined"!==typeof window?r.useLayoutEffect:r.useEffect);t.a=function(e){var t=e.children,n=e.defer,o=void 0!==n&&n,a=e.fallback,s=void 0===a?null:a,u=r.useState(!1),l=u[0],c=u[1];return i((function(){o||c(!0)}),[o]),r.useEffect((function(){o&&c(!0)}),[o]),r.createElement(r.Fragment,null,l?t:s)}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(210),l=n(89),c=n(208),p=n(694),f=n(685),d=n(87),h=n(22),m=Object(h.a)(o.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),v=Object(h.a)(o.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),y=n(30),g=n(96),b=o.createElement(v,null),x=o.createElement(m,null),_=o.createElement(m,null),w=o.createElement(v,null),E=o.forwardRef((function(e,t){var n=e.backIconButtonProps,a=e.count,s=e.nextIconButtonProps,u=e.onChangePage,l=e.page,c=e.rowsPerPage,p=Object(i.a)(e,["backIconButtonProps","count","nextIconButtonProps","onChangePage","page","rowsPerPage"]),f=Object(y.a)();return o.createElement("div",Object(r.a)({ref:t},p),o.createElement(g.a,Object(r.a)({onClick:function(e){u(e,l-1)},disabled:0===l,color:"inherit"},n),"rtl"===f.direction?b:x),o.createElement(g.a,Object(r.a)({onClick:function(e){u(e,l+1)},disabled:-1!==a&&l>=Math.ceil(a/c)-1,color:"inherit"},s),"rtl"===f.direction?_:w))})),D=n(34),C=function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},O=[10,25,50,100],S=o.forwardRef((function(e,t){var n,s=e.ActionsComponent,h=void 0===s?E:s,m=e.backIconButtonProps,v=e.backIconButtonText,y=void 0===v?"Previous page":v,g=e.classes,b=e.className,x=e.colSpan,_=e.component,w=void 0===_?p.a:_,S=e.count,k=e.labelDisplayedRows,A=void 0===k?C:k,T=e.labelRowsPerPage,P=void 0===T?"Rows per page:":T,M=e.nextIconButtonProps,j=e.nextIconButtonText,I=void 0===j?"Next page":j,F=e.onChangePage,R=e.onChangeRowsPerPage,z=e.page,L=e.rowsPerPage,B=e.rowsPerPageOptions,N=void 0===B?O:B,V=e.SelectProps,U=void 0===V?{}:V,H=Object(i.a)(e,["ActionsComponent","backIconButtonProps","backIconButtonText","classes","className","colSpan","component","count","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","nextIconButtonText","onChangePage","onChangeRowsPerPage","page","rowsPerPage","rowsPerPageOptions","SelectProps"]);w!==p.a&&"td"!==w||(n=x||1e3);var W=Object(D.a)(),G=Object(D.a)(),q=U.native?"option":l.a;return o.createElement(w,Object(r.a)({className:Object(a.a)(g.root,b),colSpan:n,ref:t},H),o.createElement(f.a,{className:g.toolbar},o.createElement("div",{className:g.spacer}),N.length>1&&o.createElement(d.a,{color:"inherit",variant:"body2",className:g.caption,id:G},P),N.length>1&&o.createElement(c.a,Object(r.a)({classes:{select:g.select,icon:g.selectIcon},input:o.createElement(u.a,{className:Object(a.a)(g.input,g.selectRoot)}),value:L,onChange:R,id:W,labelId:G},U),N.map((function(e){return o.createElement(q,{className:g.menuItem,key:e.value?e.value:e,value:e.value?e.value:e},e.label?e.label:e)}))),o.createElement(d.a,{color:"inherit",variant:"body2",className:g.caption},A({from:0===S?0:z*L+1,to:-1!==S?Math.min(S,(z+1)*L):(z+1)*L,count:-1===S?-1:S,page:z})),o.createElement(h,{className:g.actions,backIconButtonProps:Object(r.a)({title:y,"aria-label":y},m),count:S,nextIconButtonProps:Object(r.a)({title:I,"aria-label":I},M),onChangePage:F,page:z,rowsPerPage:L})))}));t.a=Object(s.a)((function(e){return{root:{color:e.palette.text.primary,fontSize:e.typography.pxToRem(14),overflow:"auto","&:last-child":{padding:0}},toolbar:{minHeight:52,paddingRight:2},spacer:{flex:"1 1 100%"},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"},selectIcon:{},input:{color:"inherit",fontSize:"inherit",flexShrink:0},menuItem:{},actions:{flexShrink:0,marginLeft:20}}}),{name:"MuiTablePagination"})(S)},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=n(21),s=(n(1),n(164)),u=n(203),l=n(27),c=n(619),p=n(52),f=n(14),d=n(24),h=n(152),m=n(153),v=n(85),y=n(57),g=n(154),b=n(82);function x(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(y.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&x(e,i)}))}function E(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function D(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(b.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Object(g.a)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(_(o)+a,"px"),n=Object(l.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(_(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){Object(m.a)(this,e),this.modals=[],this.containers=[]}return Object(v.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&x(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mountNode,e.modalRef,r,!0);var i=E(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=D(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&x(e.modalRef,!0),w(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&x(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),O=n(620),S={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},k=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,u=Object(r.a)(e,["invisible","open"]);return s?o.createElement("div",Object(i.a)({"aria-hidden":!0,ref:t},u,{style:Object(i.a)({},S.root,a?S.invisible:{},u.style)})):null}));var A=new C,T=o.forwardRef((function(e,t){var n=Object(s.a)(),m=Object(u.a)({name:"MuiModal",props:Object(i.a)({},e),theme:n}),v=m.BackdropComponent,y=void 0===v?k:v,g=m.BackdropProps,b=m.children,_=m.closeAfterTransition,w=void 0!==_&&_,E=m.container,D=m.disableAutoFocus,C=void 0!==D&&D,S=m.disableBackdropClick,T=void 0!==S&&S,P=m.disableEnforceFocus,M=void 0!==P&&P,j=m.disableEscapeKeyDown,I=void 0!==j&&j,F=m.disablePortal,R=void 0!==F&&F,z=m.disableRestoreFocus,L=void 0!==z&&z,B=m.disableScrollLock,N=void 0!==B&&B,V=m.hideBackdrop,U=void 0!==V&&V,H=m.keepMounted,W=void 0!==H&&H,G=m.manager,q=void 0===G?A:G,Y=m.onBackdropClick,Z=m.onClose,$=m.onEscapeKeyDown,K=m.onRendered,X=m.open,J=Object(r.a)(m,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),ee=Q[0],te=Q[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=Object(f.a)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(m),se=function(){return Object(l.a)(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},le=function(){q.mount(ue(),{disableScrollLock:N}),ie.current.scrollTop=0},ce=Object(d.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(E)||se().body;q.add(ue(),e),ie.current&&le()})),pe=o.useCallback((function(){return q.isTopModal(ue())}),[q]),fe=Object(d.a)((function(e){re.current=e,e&&(K&&K(),X&&pe()?le():x(ie.current,!0))})),de=o.useCallback((function(){q.remove(ue())}),[q]);if(o.useEffect((function(){return function(){de()}}),[de]),o.useEffect((function(){X?ce():ae&&w||de()}),[X,de,ae,w,ce]),!W&&!X&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.a}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=Object(p.a)((function(){te(!1)}),b.props.onEnter),me.onExited=Object(p.a)((function(){te(!0),w&&de()}),b.props.onExited)),o.createElement(c.a,{ref:fe,container:E,disablePortal:R},o.createElement("div",Object(i.a)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&pe()&&($&&$(e),I||(e.stopPropagation(),Z&&Z(e,"escapeKeyDown")))},role:"presentation"},J,{style:Object(i.a)({},he.root,!X&&ee?he.hidden:{},J.style)}),U?null:o.createElement(y,Object(i.a)({open:X,onClick:function(e){e.target===e.currentTarget&&(Y&&Y(e),!T&&Z&&Z(e,"backdropClick"))}},g)),o.createElement(O.a,{disableEnforceFocus:M,disableAutoFocus:C,disableRestoreFocus:L,getDoc:se,isEnabled:pe,open:X},o.cloneElement(b,me))))}));t.a=T},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(15),a=n(0),s=(n(1),n(3)),u=n(6),l=n(9),c=n(631),p=n(621),f=n(355),d=n(38),h=n(163),m={enter:d.b.enteringScreen,exit:d.b.leavingScreen},v=a.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,u=e.classes,d=e.className,v=e.disableBackdropClick,y=void 0!==v&&v,g=e.disableEscapeKeyDown,b=void 0!==g&&g,x=e.fullScreen,_=void 0!==x&&x,w=e.fullWidth,E=void 0!==w&&w,D=e.maxWidth,C=void 0===D?"sm":D,O=e.onBackdropClick,S=e.onClose,k=e.onEnter,A=e.onEntered,T=e.onEntering,P=e.onEscapeKeyDown,M=e.onExit,j=e.onExited,I=e.onExiting,F=e.open,R=e.PaperComponent,z=void 0===R?h.a:R,L=e.PaperProps,B=void 0===L?{}:L,N=e.scroll,V=void 0===N?"paper":N,U=e.TransitionComponent,H=void 0===U?f.a:U,W=e.transitionDuration,G=void 0===W?m:W,q=e.TransitionProps,Y=e["aria-describedby"],Z=e["aria-labelledby"],$=Object(i.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),K=a.useRef();return a.createElement(c.a,Object(r.a)({className:Object(s.a)(u.root,d),BackdropComponent:p.a,BackdropProps:Object(r.a)({transitionDuration:G},n),closeAfterTransition:!0,disableBackdropClick:y,disableEscapeKeyDown:b,onEscapeKeyDown:P,onClose:S,open:F,ref:t},$),a.createElement(H,Object(r.a)({appear:!0,in:F,timeout:G,onEnter:k,onEntering:T,onEntered:A,onExit:M,onExiting:I,onExited:j,role:"none presentation"},q),a.createElement("div",{className:Object(s.a)(u.container,u["scroll".concat(Object(l.a)(V))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===K.current&&(K.current=null,O&&O(e),!y&&S&&S(e,"backdropClick"))},onMouseDown:function(e){K.current=e.target}},a.createElement(z,Object(r.a)({elevation:24,role:"dialog","aria-describedby":Y,"aria-labelledby":Z},B,{className:Object(s.a)(u.paper,u["paperScroll".concat(Object(l.a)(V))],u["paperWidth".concat(Object(l.a)(String(C)))],B.className,_&&u.paperFullScreen,E&&u.paperFullWidth)}),o))))}));t.a=Object(u.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(o.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(v)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r,i=n(2),o=n(4),a=n(0),s=n.n(a),u=(n(1),n(618)),l=n(40),c=n(358),p=Object(l.c)(Object(c.a)()),f={disableGeneration:!1,generateClassName:Object(u.a)(),jss:p,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},d=s.a.createContext(f);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,u=e.disableGeneration,p=void 0!==u&&u,f=Object(o.a)(e,["children","injectFirst","disableGeneration"]),h=s.a.useContext(d),m=Object(i.a)({},h,{disableGeneration:p},f);if(!m.jss.options.insertionPoint&&a&&"undefined"!==typeof window){if(!r){var v=document.head;r=document.createComment("mui-inject-first"),v.insertBefore(r,v.firstChild)}m.jss=Object(l.c)({plugins:Object(c.a)().plugins,insertionPoint:r})}return s.a.createElement(d.Provider,{value:m},t)}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.dividers,l=void 0!==u&&u,c=Object(i.a)(e,["classes","className","dividers"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,l&&n.dividers),ref:t},c))}));t.a=Object(s.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(0),o=(n(1),n(6)),a=n(87),s=i.forwardRef((function(e,t){return i.createElement(a.a,Object(r.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));t.a=Object(o.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=o.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,u=e.classes,l=e.className,c=Object(i.a)(e,["disableSpacing","classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(u.root,l,!s&&u.spacing),ref:t},c))}));t.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=(n(1),n(3)),s=n(6),u=n(130),l=n(9),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,p=e.color,f=void 0===p?"default":p,d=e.component,h=void 0===d?"button":d,m=e.disabled,v=void 0!==m&&m,y=e.disableFocusRipple,g=void 0!==y&&y,b=e.focusVisibleClassName,x=e.size,_=void 0===x?"large":x,w=e.variant,E=void 0===w?"round":w,D=Object(r.a)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return o.createElement(u.a,Object(i.a)({className:Object(a.a)(s.root,c,"round"!==E&&s.extended,"large"!==_&&s["size".concat(Object(l.a)(_))],v&&s.disabled,{primary:s.primary,secondary:s.secondary,inherit:s.colorInherit}[f]),component:h,disabled:v,focusRipple:!g,focusVisibleClassName:Object(a.a)(s.focusVisible,b),ref:t},D),o.createElement("span",{className:s.label},n))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(58),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(i.a)(e,["classes","className"]),c=o.useContext(u.a);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s,"flex-start"===c.alignItems&&n.alignItemsFlexStart),ref:t},l))}));t.a=Object(s.a)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(87),l=n(58),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,p=e.disableTypography,f=void 0!==p&&p,d=e.inset,h=void 0!==d&&d,m=e.primary,v=e.primaryTypographyProps,y=e.secondary,g=e.secondaryTypographyProps,b=Object(i.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),x=o.useContext(l.a).dense,_=null!=m?m:n;null==_||_.type===u.a||f||(_=o.createElement(u.a,Object(r.a)({variant:x?"body2":"body1",className:s.primary,component:"span",display:"block"},v),_));var w=y;return null==w||w.type===u.a||f||(w=o.createElement(u.a,Object(r.a)({variant:"body2",className:s.secondary,color:"textSecondary",display:"block"},g),w)),o.createElement("div",Object(r.a)({className:Object(a.a)(s.root,c,x&&s.dense,h&&s.inset,_&&w&&s.multiline),ref:t},b),_,w)}));t.a=Object(s.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=Object(i.a)(e,["classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s),ref:t},u))}));u.muiName="ListItemSecondaryAction",t.a=Object(s.a)({root:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"}},{name:"MuiListItemSecondaryAction"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(10),l=o.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,u=e.classes,l=e.className,c=e.component,p=void 0===c?"hr":c,f=e.flexItem,d=void 0!==f&&f,h=e.light,m=void 0!==h&&h,v=e.orientation,y=void 0===v?"horizontal":v,g=e.role,b=void 0===g?"hr"!==p?"separator":void 0:g,x=e.variant,_=void 0===x?"fullWidth":x,w=Object(i.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(p,Object(r.a)({className:Object(a.a)(u.root,l,"fullWidth"!==_&&u[_],s&&u.absolute,d&&u.flexItem,m&&u.light,"vertical"===y&&u.vertical),role:b,ref:t},w))}));t.a=Object(s.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(u.d)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(9),l=n(163),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,p=void 0===c?"primary":c,f=e.position,d=void 0===f?"fixed":f,h=Object(i.a)(e,["classes","className","color","position"]);return o.createElement(l.a,Object(r.a)({square:!0,component:"header",elevation:4,className:Object(a.a)(n.root,n["position".concat(Object(u.a)(d))],n["color".concat(Object(u.a)(p))],s,"fixed"===d&&"mui-fixed"),ref:t},h))}));t.a=Object(s.a)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(15),a=n(0),s=(n(1),n(3)),u=n(6),l=a.forwardRef((function(e,t){var n=e.classes,o=e.className,u=e.component,l=void 0===u?"div":u,c=e.disableGutters,p=void 0!==c&&c,f=e.variant,d=void 0===f?"regular":f,h=Object(i.a)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(l,Object(r.a)({className:Object(s.a)(n.root,n[d],o,!p&&n.gutters),ref:t},h))}));t.a=Object(u.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(o.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(9),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,p=e.component,f=void 0===p?"li":p,d=e.disableGutters,h=void 0!==d&&d,m=e.disableSticky,v=void 0!==m&&m,y=e.inset,g=void 0!==y&&y,b=Object(i.a)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return o.createElement(f,Object(r.a)({className:Object(a.a)(n.root,s,"default"!==c&&n["color".concat(Object(u.a)(c))],g&&n.inset,!v&&n.sticky,!h&&n.gutters),ref:t},b))}));t.a=Object(s.a)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(l)},function(e,t,n){"use strict";n.d(t,"b",(function(){return f}));var r=n(2),i=n(4),o=n(0),a=(n(1),n(203)),s=n(51),u=n.n(s),l=n(30),c=n(62),p=n(625),f=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?c.b.indexOf(e)<=c.b.indexOf(t):c.b.indexOf(e)<c.b.indexOf(t)},d="undefined"===typeof window?o.useEffect:o.useLayoutEffect;t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,s=void 0!==n&&n,c=e.noSSR,f=void 0!==c&&c,h=e.initialWidth;function m(e){var n=Object(l.a)(),u=e.theme||n,c=Object(a.a)({theme:u,name:"MuiWithWidth",props:Object(r.a)({},e)}),m=c.initialWidth,v=c.width,y=Object(i.a)(c,["initialWidth","width"]),g=o.useState(!1),b=g[0],x=g[1];d((function(){x(!0)}),[]);var _=u.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=Object(p.a)(u.breakpoints.up(t));return!e&&n?t:e}),null),w=Object(r.a)({width:v||(b||f?_:void 0)||m||h},s?{theme:u}:{},y);return void 0===w.width?null:o.createElement(t,w)}return u()(m,t),m}}},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=(n(1),n(3)),s=n(6),u=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var p=o.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,u=e.alignItems,l=void 0===u?"stretch":u,c=e.classes,p=e.className,f=e.component,d=void 0===f?"div":f,h=e.container,m=void 0!==h&&h,v=e.direction,y=void 0===v?"row":v,g=e.item,b=void 0!==g&&g,x=e.justify,_=void 0===x?"flex-start":x,w=e.lg,E=void 0!==w&&w,D=e.md,C=void 0!==D&&D,O=e.sm,S=void 0!==O&&O,k=e.spacing,A=void 0===k?0:k,T=e.wrap,P=void 0===T?"wrap":T,M=e.xl,j=void 0!==M&&M,I=e.xs,F=void 0!==I&&I,R=e.zeroMinWidth,z=void 0!==R&&R,L=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=Object(a.a)(c.root,p,m&&[c.container,0!==A&&c["spacing-xs-".concat(String(A))]],b&&c.item,z&&c.zeroMinWidth,"row"!==y&&c["direction-xs-".concat(String(y))],"wrap"!==P&&c["wrap-xs-".concat(String(P))],"stretch"!==l&&c["align-items-xs-".concat(String(l))],"stretch"!==s&&c["align-content-xs-".concat(String(s))],"flex-start"!==_&&c["justify-xs-".concat(String(_))],!1!==F&&c["grid-xs-".concat(String(F))],!1!==S&&c["grid-sm-".concat(String(S))],!1!==C&&c["grid-md-".concat(String(C))],!1!==E&&c["grid-lg-".concat(String(E))],!1!==j&&c["grid-xl-".concat(String(j))]);return o.createElement(d,Object(i.a)({className:B,ref:t},L))})),f=Object(s.a)((function(e){return Object(i.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return u.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(c(i,2)),width:"calc(100% + ".concat(c(i),")"),"& > $item":{padding:c(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};l.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(i.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(p);t.a=f},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(9),u=n(6),l=n(64),c=n(14),p=n(87),f=o.forwardRef((function(e,t){var n=e.classes,u=e.className,f=e.color,d=void 0===f?"primary":f,h=e.component,m=void 0===h?"a":h,v=e.onBlur,y=e.onFocus,g=e.TypographyClasses,b=e.underline,x=void 0===b?"hover":b,_=e.variant,w=void 0===_?"inherit":_,E=Object(i.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),D=Object(l.a)(),C=D.isFocusVisible,O=D.onBlurVisible,S=D.ref,k=o.useState(!1),A=k[0],T=k[1],P=Object(c.a)(t,S);return o.createElement(p.a,Object(r.a)({className:Object(a.a)(n.root,n["underline".concat(Object(s.a)(x))],u,A&&n.focusVisible,"button"===m&&n.button),classes:g,color:d,component:m,onBlur:function(e){A&&(O(),T(!1)),v&&v(e)},onFocus:function(e){C(e)&&T(!0),y&&y(e)},ref:P,variant:w},E))}));t.a=Object(u.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(210),u=n(6),l=o.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,c=void 0!==l&&l,p=e.inputComponent,f=void 0===p?"input":p,d=e.multiline,h=void 0!==d&&d,m=e.type,v=void 0===m?"text":m,y=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(s.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:c,inputComponent:f,multiline:h,ref:t,type:v},y))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(210),u=n(6),l=o.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,c=void 0!==l&&l,p=e.inputComponent,f=void 0===p?"input":p,d=e.multiline,h=void 0!==d&&d,m=e.type,v=void 0===m?"text":m,y=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(s.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:c,inputComponent:f,multiline:h,ref:t,type:v},y))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(119),n(1),n(3)),s=n(9),u=n(10),l=n(6);n(88).a.styles;var c=o.forwardRef((function(e,t){var n=e.children,u=e.classes,l=e.className,c=e.color,p=void 0===c?"default":c,f=e.component,d=void 0===f?"div":f,h=e.disabled,m=void 0!==h&&h,v=e.disableElevation,y=void 0!==v&&v,g=e.disableFocusRipple,b=void 0!==g&&g,x=e.disableRipple,_=void 0!==x&&x,w=e.fullWidth,E=void 0!==w&&w,D=e.orientation,C=void 0===D?"horizontal":D,O=e.size,S=void 0===O?"medium":O,k=e.variant,A=void 0===k?"outlined":k,T=Object(i.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),P=Object(a.a)(u.grouped,u["grouped".concat(Object(s.a)(C))],u["grouped".concat(Object(s.a)(A))],u["grouped".concat(Object(s.a)(A)).concat(Object(s.a)(C))],u["grouped".concat(Object(s.a)(A)).concat("default"!==p?Object(s.a)(p):"")],m&&u.disabled);return o.createElement(d,Object(r.a)({role:"group",className:Object(a.a)(u.root,l,E&&u.fullWidth,y&&u.disableElevation,"contained"===A&&u.contained,"vertical"===C&&u.vertical),ref:t},T),o.Children.map(n,(function(e){return o.isValidElement(e)?o.cloneElement(e,{className:Object(a.a)(P,e.props.className),color:e.props.color||p,disabled:e.props.disabled||m,disableElevation:e.props.disableElevation||y,disableFocusRipple:b,disableRipple:_,fullWidth:E,size:e.props.size||S,variant:e.props.variant||A}):null})))}));t.a=Object(l.a)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:Object(u.d)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:Object(u.d)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(0),o=n.n(i),a=(n(1),n(146)),s=n(164),u=n(148);t.a=function(e){var t=e.children,n=e.theme,i=Object(s.a)(),l=o.a.useMemo((function(){var e=null===i?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)({},e,t)}(i,n);return null!=e&&(e[u.a]=null!==i),e}),[n,i]);return o.a.createElement(a.a.Provider,{value:l},t)}},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=(n(1),n(3)),s=n(6),u=n(9),l=n(10),c=n(157),p=n(84),f=o.forwardRef((function(e,t){var n,s,l=e.align,f=void 0===l?"inherit":l,d=e.classes,h=e.className,m=e.component,v=e.padding,y=e.scope,g=e.size,b=e.sortDirection,x=e.variant,_=Object(r.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),w=o.useContext(c.a),E=o.useContext(p.a),D=E&&"head"===E.variant;m?(s=m,n=D?"columnheader":"cell"):s=D?"th":"td";var C=y;!C&&D&&(C="col");var O=v||(w&&w.padding?w.padding:"default"),S=g||(w&&w.size?w.size:"medium"),k=x||E&&E.variant,A=null;return b&&(A="asc"===b?"ascending":"descending"),o.createElement(s,Object(i.a)({ref:t,className:Object(a.a)(d.root,d[k],h,"inherit"!==f&&d["align".concat(Object(u.a)(f))],"default"!==O&&d["padding".concat(Object(u.a)(O))],"medium"!==S&&d["size".concat(Object(u.a)(S))],"head"===k&&w&&w.stickyHeader&&d.stickyHeader),"aria-sort":A,role:n,scope:C},_))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Object(l.i)(Object(l.d)(e.palette.divider,1),.88):Object(l.a)(Object(l.d)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h}));var r=n(2),i=n(32),o=(n(80),n(0)),a=n(34),s=n(47),u=n(24),l=n(46);function c(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,s=void 0===a?"any":a,u=e.stringify,l=e.trim,p=void 0!==l&&l;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,l=p?r.trim():r;i&&(l=l.toLowerCase()),n&&(l=c(l));var f=e.filter((function(e){var t=(u||a)(e);return i&&(t=t.toLowerCase()),n&&(t=c(t)),"start"===s?0===t.indexOf(l):t.indexOf(l)>-1}));return"number"===typeof o?f.slice(0,o):f}}function f(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var d=p();function h(e){var t=e.autoComplete,n=void 0!==t&&t,c=e.autoHighlight,p=void 0!==c&&c,h=e.autoSelect,m=void 0!==h&&h,v=e.blurOnSelect,y=void 0!==v&&v,g=e.clearOnBlur,b=void 0===g?!e.freeSolo:g,x=e.clearOnEscape,_=void 0!==x&&x,w=e.componentName,E=void 0===w?"useAutocomplete":w,D=e.debug,C=void 0!==D&&D,O=e.defaultValue,S=void 0===O?e.multiple?[]:null:O,k=e.disableClearable,A=void 0!==k&&k,T=e.disableCloseOnSelect,P=void 0!==T&&T,M=e.disabledItemsFocusable,j=void 0!==M&&M,I=e.disableListWrap,F=void 0!==I&&I,R=e.filterOptions,z=void 0===R?d:R,L=e.filterSelectedOptions,B=void 0!==L&&L,N=e.freeSolo,V=void 0!==N&&N,U=e.getOptionDisabled,H=e.getOptionLabel,W=void 0===H?function(e){return e}:H,G=e.getOptionSelected,q=void 0===G?function(e,t){return e===t}:G,Y=e.groupBy,Z=e.handleHomeEndKeys,$=void 0===Z?!e.freeSolo:Z,K=e.id,X=e.includeInputInList,J=void 0!==X&&X,Q=e.inputValue,ee=e.multiple,te=void 0!==ee&&ee,ne=e.onChange,re=e.onClose,ie=e.onHighlightChange,oe=e.onInputChange,ae=e.onOpen,se=e.open,ue=e.openOnFocus,le=void 0!==ue&&ue,ce=e.options,pe=e.selectOnFocus,fe=void 0===pe?!e.freeSolo:pe,de=e.value,he=Object(a.a)(K),me=W;var ve=o.useRef(!1),ye=o.useRef(!0),ge=o.useRef(null),be=o.useRef(null),xe=o.useState(null),_e=xe[0],we=xe[1],Ee=o.useState(-1),De=Ee[0],Ce=Ee[1],Oe=p?0:-1,Se=o.useRef(Oe),ke=Object(s.a)({controlled:de,default:S,name:E}),Ae=Object(i.a)(ke,2),Te=Ae[0],Pe=Ae[1],Me=Object(s.a)({controlled:Q,default:"",name:E,state:"inputValue"}),je=Object(i.a)(Me,2),Ie=je[0],Fe=je[1],Re=o.useState(!1),ze=Re[0],Le=Re[1],Be=Object(u.a)((function(e,t){var n;if(te)n="";else if(null==t)n="";else{var r=me(t);n="string"===typeof r?r:""}Ie!==n&&(Fe(n),oe&&oe(e,n,"reset"))}));o.useEffect((function(){Be(null,Te)}),[Te,Be]);var Ne=Object(s.a)({controlled:se,default:!1,name:E,state:"open"}),Ve=Object(i.a)(Ne,2),Ue=Ve[0],He=Ve[1],We=!te&&null!=Te&&Ie===me(Te),Ge=Ue,qe=Ge?z(ce.filter((function(e){return!B||!(te?Te:[Te]).some((function(t){return null!==t&&q(e,t)}))})),{inputValue:We?"":Ie,getOptionLabel:me}):[],Ye=Object(u.a)((function(e){-1===e?ge.current.focus():_e.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));o.useEffect((function(){te&&De>Te.length-1&&(Ce(-1),Ye(-1))}),[Te,te,De,Ye]);var Ze=Object(u.a)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(Se.current=n,-1===n?ge.current.removeAttribute("aria-activedescendant"):ge.current.setAttribute("aria-activedescendant","".concat(he,"-option-").concat(n)),ie&&ie(t,-1===n?null:qe[n],i),be.current){var o=be.current.querySelector("[data-focus]");o&&o.removeAttribute("data-focus");var a=be.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=be.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==i)){var u=s,l=a.clientHeight+a.scrollTop,c=u.offsetTop+u.offsetHeight;c>l?a.scrollTop=c-a.clientHeight:u.offsetTop-u.offsetHeight*(Y?1.3:0)<a.scrollTop&&(a.scrollTop=u.offsetTop-u.offsetHeight*(Y?1.3:0))}}else a.scrollTop=0}})),$e=Object(u.a)((function(e){var t=e.event,r=e.diff,i=e.direction,o=void 0===i?"next":i,a=e.reason,s=void 0===a?"auto":a;if(Ge){var u=function(e,t){if(!be.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===qe.length||"previous"===t&&-1===n)return-1;var r=be.current.querySelector('[data-option-index="'.concat(n,'"]')),i=!j&&(r&&(r.disabled||"true"===r.getAttribute("aria-disabled")));if(!(r&&!r.hasAttribute("tabindex")||i))return n;n+="next"===t?1:-1}}(function(){var e=qe.length-1;if("reset"===r)return Oe;if("start"===r)return 0;if("end"===r)return e;var t=Se.current+r;return t<0?-1===t&&J?-1:F&&-1!==Se.current||Math.abs(r)>1?0:e:t>e?t===e+1&&J?-1:F||Math.abs(r)>1?e:0:t}(),o);if(Ze({index:u,reason:s,event:t}),n&&"reset"!==r)if(-1===u)ge.current.value=Ie;else{var l=me(qe[u]);ge.current.value=l,0===l.toLowerCase().indexOf(Ie.toLowerCase())&&Ie.length>0&&ge.current.setSelectionRange(Ie.length,l.length)}}})),Ke=o.useCallback((function(){if(Ge){var e=te?Te[0]:Te;if(0!==qe.length&&null!=e){if(be.current)if(B||null==e)Se.current>=qe.length-1?Ze({index:qe.length-1}):Ze({index:Se.current});else{var t=qe[Se.current];if(te&&t&&-1!==f(Te,(function(e){return q(t,e)})))return;var n=f(qe,(function(t){return q(t,e)}));-1===n?$e({diff:"reset"}):Ze({index:n})}}else $e({diff:"reset"})}}),[0===qe.length,!te&&Te,B,$e,Ze,Ge,Ie,te]),Xe=Object(u.a)((function(e){Object(l.a)(be,e),e&&Ke()}));o.useEffect((function(){Ke()}),[Ke]);var Je=function(e){Ue||(He(!0),ae&&ae(e))},Qe=function(e,t){Ue&&(He(!1),re&&re(e,t))},et=function(e,t,n,r){Te!==t&&(ne&&ne(e,t,n,r),Pe(t))},tt=o.useRef(!1),nt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,o=t;if(te){var a=f(o=Array.isArray(Te)?Te.slice():[],(function(e){return q(t,e)}));-1===a?o.push(t):"freeSolo"!==r&&(o.splice(a,1),i="remove-option")}Be(e,o),et(e,o,i,{option:t}),P||Qe(e,i),(!0===y||"touch"===y&&tt.current||"mouse"===y&&!tt.current)&&ge.current.blur()};var rt=function(e,t){if(te){Qe(e,"toggleInput");var n=De;-1===De?""===Ie&&"previous"===t&&(n=Te.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Te.length||"previous"===t&&-1===n)return-1;var r=_e.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Ce(n),Ye(n)}},it=function(e){ve.current=!0,Fe(""),oe&&oe(e,"","clear"),et(e,te?[]:null,"clear")},ot=function(e){return function(t){switch(-1!==De&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ce(-1),Ye(-1)),t.key){case"Home":Ge&&$&&(t.preventDefault(),$e({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ge&&$&&(t.preventDefault(),$e({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),$e({diff:-5,direction:"previous",reason:"keyboard",event:t}),Je(t);break;case"PageDown":t.preventDefault(),$e({diff:5,direction:"next",reason:"keyboard",event:t}),Je(t);break;case"ArrowDown":t.preventDefault(),$e({diff:1,direction:"next",reason:"keyboard",event:t}),Je(t);break;case"ArrowUp":t.preventDefault(),$e({diff:-1,direction:"previous",reason:"keyboard",event:t}),Je(t);break;case"ArrowLeft":rt(t,"previous");break;case"ArrowRight":rt(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==Se.current&&Ge){var r=qe[Se.current],i=!!U&&U(r);if(t.preventDefault(),i)return;nt(t,r,"select-option"),n&&ge.current.setSelectionRange(ge.current.value.length,ge.current.value.length)}else V&&""!==Ie&&!1===We&&(te&&t.preventDefault(),nt(t,Ie,"create-option","freeSolo"));break;case"Escape":Ge?(t.preventDefault(),t.stopPropagation(),Qe(t,"escape")):_&&(""!==Ie||te&&Te.length>0)&&(t.preventDefault(),t.stopPropagation(),it(t));break;case"Backspace":if(te&&""===Ie&&Te.length>0){var o=-1===De?Te.length-1:De,a=Te.slice();a.splice(o,1),et(t,a,"remove-option",{option:Te[o]})}}e.onKeyDown&&e.onKeyDown(t)}},at=function(e){Le(!0),le&&!ve.current&&Je(e)},st=function(e){null===be.current||document.activeElement!==be.current.parentElement?(Le(!1),ye.current=!0,ve.current=!1,C&&""!==Ie||(m&&-1!==Se.current&&Ge?nt(e,qe[Se.current],"blur"):m&&V&&""!==Ie?nt(e,Ie,"blur","freeSolo"):b&&Be(e,Te),Qe(e,"blur"))):ge.current.focus()},ut=function(e){var t=e.target.value;Ie!==t&&(Fe(t),oe&&oe(e,t,"input")),""===t?A||te||et(e,null,"clear"):Je(e)},lt=function(e){Ze({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ct=function(){tt.current=!0},pt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));nt(e,qe[t],"select-option"),tt.current=!1},ft=function(e){return function(t){var n=Te.slice();n.splice(e,1),et(t,n,"remove-option",{option:Te[e]})}},dt=function(e){Ue?Qe(e,"toggleInput"):Je(e)},ht=function(e){e.target.getAttribute("id")!==he&&e.preventDefault()},mt=function(){ge.current.focus(),fe&&ye.current&&ge.current.selectionEnd-ge.current.selectionStart===0&&ge.current.select(),ye.current=!1},vt=function(e){""!==Ie&&Ue||dt(e)},yt=V&&Ie.length>0;yt=yt||(te?Te.length>0:null!==Te);var gt=qe;if(Y){new Map;gt=qe.reduce((function(e,t,n){var r=Y(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r.a)({"aria-owns":Ge?"".concat(he,"-popup"):null,role:"combobox","aria-expanded":Ge},e,{onKeyDown:ot(e),onMouseDown:ht,onClick:mt})},getInputLabelProps:function(){return{id:"".concat(he,"-label"),htmlFor:he}},getInputProps:function(){return{id:he,value:Ie,onBlur:st,onFocus:at,onChange:ut,onMouseDown:vt,"aria-activedescendant":Ge?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ge?"".concat(he,"-popup"):null,autoComplete:"off",ref:ge,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:it}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:dt}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:ft(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(he,"-popup"),"aria-labelledby":"".concat(he,"-label"),ref:Xe,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(te?Te:[Te]).some((function(e){return null!=e&&q(n,e)})),i=!!U&&U(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(he,"-option-").concat(t),onMouseOver:lt,onClick:pt,onTouchStart:ct,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:he,inputValue:Ie,value:Te,dirty:yt,popupOpen:Ge,focused:ze||-1!==De,anchorEl:_e,setAnchorEl:we,focusedTag:De,groupedOptions:gt}}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(87),u=n(6),l=n(69),c=o.forwardRef((function(e,t){var n=e.children,u=e.classes,c=e.className,p=e.component,f=void 0===p?"div":p,d=e.disablePointerEvents,h=void 0!==d&&d,m=e.disableTypography,v=void 0!==m&&m,y=e.position,g=e.variant,b=Object(i.a)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),x=Object(l.b)()||{},_=g;return g&&x.variant,x&&!_&&(_=x.variant),o.createElement(l.a.Provider,{value:null},o.createElement(f,Object(r.a)({className:Object(a.a)(u.root,c,h&&u.disablePointerEvents,x.hiddenLabel&&u.hiddenLabel,"filled"===_&&u.filled,{start:u.positionStart,end:u.positionEnd}[y],"dense"===x.margin&&u.marginDense),ref:t},b),"string"!==typeof n||v?n:o.createElement(s.a,{color:"textSecondary"},n)))}));t.a=Object(u.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(15),a=n(0),s=(n(1),n(3)),u=n(6),l=n(9),c=a.forwardRef((function(e,t){var n=e.classes,o=e.className,u=e.component,c=void 0===u?"div":u,p=e.disableGutters,f=void 0!==p&&p,d=e.fixed,h=void 0!==d&&d,m=e.maxWidth,v=void 0===m?"lg":m,y=Object(i.a)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return a.createElement(c,Object(r.a)({className:Object(s.a)(n.root,o,h&&n.fixed,f&&n.disableGutters,!1!==v&&n["maxWidth".concat(Object(l.a)(String(v)))]),ref:t},y))}));t.a=Object(u.a)((function(e){return{root:Object(o.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Object(o.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(o.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(o.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(o.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(o.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(130),u=n(96),l=n(6),c=n(158),p=o.forwardRef((function(e,t){var n=e.children,l=e.classes,p=e.className,f=e.expandIcon,d=e.IconButtonProps,h=e.onBlur,m=e.onClick,v=e.onFocusVisible,y=Object(i.a)(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),g=o.useState(!1),b=g[0],x=g[1],_=o.useContext(c.a),w=_.disabled,E=void 0!==w&&w,D=_.expanded,C=_.toggle;return o.createElement(s.a,Object(r.a)({focusRipple:!1,disableRipple:!0,disabled:E,component:"div","aria-expanded":D,className:Object(a.a)(l.root,p,E&&l.disabled,D&&l.expanded,b&&l.focused),onFocusVisible:function(e){x(!0),v&&v(e)},onBlur:function(e){x(!1),h&&h(e)},onClick:function(e){C&&C(e),m&&m(e)},ref:t},y),o.createElement("div",{className:Object(a.a)(l.content,D&&l.expanded)},n),f&&o.createElement(u.a,Object(r.a)({className:Object(a.a)(l.expandIcon,D&&l.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},d),f))}));t.a=Object(l.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(p)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=Object(i.a)(e,["classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s),ref:t},u))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=o.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,l=void 0===u?"div":u,c=Object(i.a)(e,["classes","className","component"]);return o.createElement(l,Object(r.a)({ref:t,className:Object(a.a)(n.root,s)},c))}));t.a=Object(s.a)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(u)},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=(n(1),n(3)),s=n(6),u=n(157),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"table":l,p=e.padding,f=void 0===p?"default":p,d=e.size,h=void 0===d?"medium":d,m=e.stickyHeader,v=void 0!==m&&m,y=Object(r.a)(e,["classes","className","component","padding","size","stickyHeader"]),g=o.useMemo((function(){return{padding:f,size:h,stickyHeader:v}}),[f,h,v]);return o.createElement(u.a.Provider,{value:g},o.createElement(c,Object(i.a)({role:"table"===c?null:"table",ref:t,className:Object(a.a)(n.root,s,v&&n.stickyHeader)},y)))}));t.a=Object(s.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(i.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(84),l={variant:"head"},c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,p=void 0===c?"thead":c,f=Object(i.a)(e,["classes","className","component"]);return o.createElement(u.a.Provider,{value:l},o.createElement(p,Object(r.a)({className:Object(a.a)(n.root,s),ref:t,role:"thead"===p?null:"rowgroup"},f)))}));t.a=Object(s.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(84),l=n(10),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"tr":l,p=e.hover,f=void 0!==p&&p,d=e.selected,h=void 0!==d&&d,m=Object(i.a)(e,["classes","className","component","hover","selected"]),v=o.useContext(u.a);return o.createElement(c,Object(r.a)({ref:t,className:Object(a.a)(n.root,s,v&&{head:n.head,footer:n.footer}[v.variant],f&&n.hover,h&&n.selected),role:"tr"===c?null:"row"},m))}));t.a=Object(s.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:Object(l.d)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(84),l={variant:"body"},c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,p=void 0===c?"tbody":c,f=Object(i.a)(e,["classes","className","component"]);return o.createElement(u.a.Provider,{value:l},o.createElement(p,Object(r.a)({className:Object(a.a)(n.root,s),ref:t,role:"tbody"===p?null:"rowgroup"},f)))}));t.a=Object(s.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(0),o=(n(1),n(6)),a={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(e){return Object(r.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};t.a=Object(o.a)((function(e){return{"@global":{html:a,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(r.a)({margin:0},s(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,i.createElement(i.Fragment,null,n)}))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(9),u=n(6),l=n(10),c=n(30),p=o.forwardRef((function(e,t){var n=e.classes,u=e.className,l=e.color,p=void 0===l?"primary":l,f=e.value,d=e.valueBuffer,h=e.variant,m=void 0===h?"indeterminate":h,v=Object(i.a)(e,["classes","className","color","value","valueBuffer","variant"]),y=Object(c.a)(),g={},b={bar1:{},bar2:{}};if("determinate"===m||"buffer"===m)if(void 0!==f){g["aria-valuenow"]=Math.round(f),g["aria-valuemin"]=0,g["aria-valuemax"]=100;var x=f-100;"rtl"===y.direction&&(x=-x),b.bar1.transform="translateX(".concat(x,"%)")}else 0;if("buffer"===m)if(void 0!==d){var _=(d||0)-100;"rtl"===y.direction&&(_=-_),b.bar2.transform="translateX(".concat(_,"%)")}else 0;return o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,n["color".concat(Object(s.a)(p))],u,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[m]),role:"progressbar"},g,{ref:t},v),"buffer"===m?o.createElement("div",{className:Object(a.a)(n.dashed,n["dashedColor".concat(Object(s.a)(p))])}):null,o.createElement("div",{className:Object(a.a)(n.bar,n["barColor".concat(Object(s.a)(p))],("indeterminate"===m||"query"===m)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[m]),style:b.bar1}),"determinate"===m?null:o.createElement("div",{className:Object(a.a)(n.bar,("indeterminate"===m||"query"===m)&&n.bar2Indeterminate,"buffer"===m?[n["color".concat(Object(s.a)(p))],n.bar2Buffer]:n["barColor".concat(Object(s.a)(p))]),style:b.bar2}))}));t.a=Object(u.a)((function(e){var t=function(t){return"light"===e.palette.type?Object(l.i)(t,.62):Object(l.a)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(p)},function(e,t,n){"use strict";var r=n(57),i=n(2),o=(n(1),n(81));var a=function(e){var t=function(t){var n=e(t);return t.css?Object(i.a)({},Object(o.a)(n,e(Object(i.a)({theme:t.theme},t.css))),function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(Object(r.a)(e.filterProps)),t};var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Object(o.a)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r},u=n(15),l=n(151);function c(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var p=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=c(e.theme,i)||{};return Object(l.a)(e,n,(function(e){var t;return"function"===typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=c(a,e)||e,o&&(t=o(t))),!1===r?t:Object(u.a)({},r,t)}))};return a.propTypes={},a.filterProps=[t],a};function f(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var d=s(p({prop:"border",themeKey:"borders",transform:f}),p({prop:"borderTop",themeKey:"borders",transform:f}),p({prop:"borderRight",themeKey:"borders",transform:f}),p({prop:"borderBottom",themeKey:"borders",transform:f}),p({prop:"borderLeft",themeKey:"borders",transform:f}),p({prop:"borderColor",themeKey:"palette"}),p({prop:"borderRadius",themeKey:"shape"})),h=s(p({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),p({prop:"display"}),p({prop:"overflow"}),p({prop:"textOverflow"}),p({prop:"visibility"}),p({prop:"whiteSpace"})),m=s(p({prop:"flexBasis"}),p({prop:"flexDirection"}),p({prop:"flexWrap"}),p({prop:"justifyContent"}),p({prop:"alignItems"}),p({prop:"alignContent"}),p({prop:"order"}),p({prop:"flex"}),p({prop:"flexGrow"}),p({prop:"flexShrink"}),p({prop:"alignSelf"}),p({prop:"justifyItems"}),p({prop:"justifySelf"})),v=s(p({prop:"gridGap"}),p({prop:"gridColumnGap"}),p({prop:"gridRowGap"}),p({prop:"gridColumn"}),p({prop:"gridRow"}),p({prop:"gridAutoFlow"}),p({prop:"gridAutoColumns"}),p({prop:"gridAutoRows"}),p({prop:"gridTemplateColumns"}),p({prop:"gridTemplateRows"}),p({prop:"gridTemplateAreas"}),p({prop:"gridArea"})),y=s(p({prop:"position"}),p({prop:"zIndex",themeKey:"zIndex"}),p({prop:"top"}),p({prop:"right"}),p({prop:"bottom"}),p({prop:"left"})),g=s(p({prop:"color",themeKey:"palette"}),p({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),b=p({prop:"boxShadow",themeKey:"shadows"});function x(e){return e<=1?"".concat(100*e,"%"):e}var _=p({prop:"width",transform:x}),w=p({prop:"maxWidth",transform:x}),E=p({prop:"minWidth",transform:x}),D=p({prop:"height",transform:x}),C=p({prop:"maxHeight",transform:x}),O=p({prop:"minHeight",transform:x}),S=(p({prop:"size",cssProperty:"width",transform:x}),p({prop:"size",cssProperty:"height",transform:x}),s(_,w,E,D,C,O,p({prop:"boxSizing"}))),k=n(715),A=s(p({prop:"fontFamily",themeKey:"typography"}),p({prop:"fontSize",themeKey:"typography"}),p({prop:"fontStyle",themeKey:"typography"}),p({prop:"fontWeight",themeKey:"typography"}),p({prop:"letterSpacing"}),p({prop:"lineHeight"}),p({prop:"textAlign"})),T=n(145),P=a(s(d,h,m,v,y,g,b,S,k.b,A)),M=Object(T.a)("div")(P,{name:"MuiBox"});t.a=M},function(e,t,n){"use strict";var r=n(4),i=n(15),o=n(2),a=n(0),s=(n(1),n(3)),u=n(6),l=n(207),c=n(686),p=n(163),f=n(96),d=n(22),h=Object(d.a)(a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),m=n(10),v=n(14),y=n(9),g=n(130);function b(e){return"Backspace"===e.key||"Delete"===e.key}var x=a.forwardRef((function(e,t){var n=e.avatar,i=e.classes,u=e.className,l=e.clickable,c=e.color,p=void 0===c?"default":c,f=e.component,d=e.deleteIcon,m=e.disabled,x=void 0!==m&&m,_=e.icon,w=e.label,E=e.onClick,D=e.onDelete,C=e.onKeyDown,O=e.onKeyUp,S=e.size,k=void 0===S?"medium":S,A=e.variant,T=void 0===A?"default":A,P=Object(r.a)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),M=a.useRef(null),j=Object(v.a)(M,t),I=function(e){e.stopPropagation(),D&&D(e)},F=!(!1===l||!E)||l,R="small"===k,z=f||(F?g.a:"div"),L=z===g.a?{component:"div"}:{},B=null;if(D){var N=Object(s.a)("default"!==p&&("default"===T?i["deleteIconColor".concat(Object(y.a)(p))]:i["deleteIconOutlinedColor".concat(Object(y.a)(p))]),R&&i.deleteIconSmall);B=d&&a.isValidElement(d)?a.cloneElement(d,{className:Object(s.a)(d.props.className,i.deleteIcon,N),onClick:I}):a.createElement(h,{className:Object(s.a)(i.deleteIcon,N),onClick:I})}var V=null;n&&a.isValidElement(n)&&(V=a.cloneElement(n,{className:Object(s.a)(i.avatar,n.props.className,R&&i.avatarSmall,"default"!==p&&i["avatarColor".concat(Object(y.a)(p))])}));var U=null;return _&&a.isValidElement(_)&&(U=a.cloneElement(_,{className:Object(s.a)(i.icon,_.props.className,R&&i.iconSmall,"default"!==p&&i["iconColor".concat(Object(y.a)(p))])})),a.createElement(z,Object(o.a)({role:F||D?"button":void 0,className:Object(s.a)(i.root,u,"default"!==p&&[i["color".concat(Object(y.a)(p))],F&&i["clickableColor".concat(Object(y.a)(p))],D&&i["deletableColor".concat(Object(y.a)(p))]],"default"!==T&&[i.outlined,{primary:i.outlinedPrimary,secondary:i.outlinedSecondary}[p]],x&&i.disabled,R&&i.sizeSmall,F&&i.clickable,D&&i.deletable),"aria-disabled":!!x||void 0,tabIndex:F||D?0:void 0,onClick:E,onKeyDown:function(e){e.currentTarget===e.target&&b(e)&&e.preventDefault(),C&&C(e)},onKeyUp:function(e){e.currentTarget===e.target&&(D&&b(e)?D(e):"Escape"===e.key&&M.current&&M.current.blur()),O&&O(e)},ref:j},L,P),V||U,a.createElement("span",{className:Object(s.a)(i.label,R&&i.labelSmall)},w),B)})),_=Object(u.a)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Object(m.d)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Object(m.c)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(m.c)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(m.c)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(m.c)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(m.c)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(m.c)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(m.d)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(m.d)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(m.d)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(m.d)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(m.d)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(m.d)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(m.d)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(m.d)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(x),w=Object(d.a)(a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),E=Object(d.a)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),D=n(695);function C(e){e.anchorEl,e.open;var t=Object(r.a)(e,["anchorEl","open"]);return a.createElement("div",t)}var O=a.createElement(w,{fontSize:"small"}),S=a.createElement(E,null),k=a.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,i=e.ChipProps,u=e.classes,d=e.className,h=e.clearOnBlur,m=(void 0===h&&e.freeSolo,e.clearOnEscape,e.clearText),v=void 0===m?"Clear":m,y=e.closeIcon,g=void 0===y?O:y,b=e.closeText,x=void 0===b?"Close":b,w=(e.debug,e.defaultValue),E=(void 0===w&&e.multiple,e.disableClearable),k=void 0!==E&&E,A=(e.disableCloseOnSelect,e.disabled),T=void 0!==A&&A,P=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),M=void 0!==P&&P,j=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),I=void 0===j?"auto":j,F=e.freeSolo,R=void 0!==F&&F,z=e.fullWidth,L=void 0!==z&&z,B=e.getLimitTagsText,N=void 0===B?function(e){return"+".concat(e)}:B,V=(e.getOptionDisabled,e.getOptionLabel),U=void 0===V?function(e){return e}:V,H=(e.getOptionSelected,e.groupBy),W=e.handleHomeEndKeys,G=(void 0===W&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),q=void 0===G?-1:G,Y=e.ListboxComponent,Z=void 0===Y?"ul":Y,$=e.ListboxProps,K=e.loading,X=void 0!==K&&K,J=e.loadingText,Q=void 0===J?"Loading\u2026":J,ee=e.multiple,te=void 0!==ee&&ee,ne=e.noOptionsText,re=void 0===ne?"No options":ne,ie=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),oe=void 0===ie?"Open":ie,ae=(e.options,e.PaperComponent),se=void 0===ae?p.a:ae,ue=e.PopperComponent,le=void 0===ue?l.a:ue,ce=e.popupIcon,pe=void 0===ce?S:ce,fe=e.renderGroup,de=e.renderInput,he=e.renderOption,me=e.renderTags,ve=e.selectOnFocus,ye=(void 0===ve&&e.freeSolo,e.size),ge=void 0===ye?"medium":ye,be=(e.value,Object(r.a)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),xe=M?C:le,_e=Object(D.b)(Object(o.a)({},e,{componentName:"Autocomplete"})),we=_e.getRootProps,Ee=_e.getInputProps,De=_e.getInputLabelProps,Ce=_e.getPopupIndicatorProps,Oe=_e.getClearProps,Se=_e.getTagProps,ke=_e.getListboxProps,Ae=_e.getOptionProps,Te=_e.value,Pe=_e.dirty,Me=_e.id,je=_e.popupOpen,Ie=_e.focused,Fe=_e.focusedTag,Re=_e.anchorEl,ze=_e.setAnchorEl,Le=_e.inputValue,Be=_e.groupedOptions;if(te&&Te.length>0){var Ne=function(e){return Object(o.a)({className:Object(s.a)(u.tag,"small"===ge&&u.tagSizeSmall),disabled:T},Se(e))};n=me?me(Te,Ne):Te.map((function(e,t){return a.createElement(_,Object(o.a)({label:U(e),size:ge},Ne({index:t}),i))}))}if(q>-1&&Array.isArray(n)){var Ve=n.length-q;!Ie&&Ve>0&&(n=n.splice(0,q)).push(a.createElement("span",{className:u.tag,key:n.length},N(Ve)))}var Ue=fe||function(e){return a.createElement("li",{key:e.key},a.createElement(c.a,{className:u.groupLabel,component:"div"},e.group),a.createElement("ul",{className:u.groupUl},e.children))},He=he||U,We=function(e,t){var n=Ae({option:e,index:t});return a.createElement("li",Object(o.a)({},n,{className:u.option}),He(e,{selected:n["aria-selected"],inputValue:Le}))},Ge=!k&&!T,qe=(!R||!0===I)&&!1!==I;return a.createElement(a.Fragment,null,a.createElement("div",Object(o.a)({ref:t,className:Object(s.a)(u.root,d,Ie&&u.focused,L&&u.fullWidth,Ge&&u.hasClearIcon,qe&&u.hasPopupIcon)},we(be)),de({id:Me,disabled:T,fullWidth:!0,size:"small"===ge?"small":void 0,InputLabelProps:De(),InputProps:{ref:ze,className:u.inputRoot,startAdornment:n,endAdornment:a.createElement("div",{className:u.endAdornment},Ge?a.createElement(f.a,Object(o.a)({},Oe(),{"aria-label":v,title:v,className:Object(s.a)(u.clearIndicator,Pe&&u.clearIndicatorDirty)}),g):null,qe?a.createElement(f.a,Object(o.a)({},Ce(),{disabled:T,"aria-label":je?x:oe,title:je?x:oe,className:Object(s.a)(u.popupIndicator,je&&u.popupIndicatorOpen)}),pe):null)},inputProps:Object(o.a)({className:Object(s.a)(u.input,-1===Fe&&u.inputFocused),disabled:T},Ee())})),je&&Re?a.createElement(xe,{className:Object(s.a)(u.popper,M&&u.popperDisablePortal),style:{width:Re?Re.clientWidth:null},role:"presentation",anchorEl:Re,open:!0},a.createElement(se,{className:u.paper},X&&0===Be.length?a.createElement("div",{className:u.loading},Q):null,0!==Be.length||R||X?null:a.createElement("div",{className:u.noOptions},re),Be.length>0?a.createElement(Z,Object(o.a)({className:u.listbox},ke(),$),Be.map((function(e,t){return H?Ue({key:e.key,group:e.group,children:e.options.map((function(t,n){return We(t,e.index+n)}))}):We(e,t)}))):null)):null)}));t.a=Object(u.a)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:Object(o.a)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},Object(i.a)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),Object(i.a)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),Object(i.a)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),Object(i.a)(t,"&:active",{backgroundColor:e.palette.action.selected}),Object(i.a)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(k)},function(e,t,n){"use strict";var r=n(2),i=n(149),o=n(147),a=n(107),s=n(150);var u=n(32),l=n(4),c=n(0),p=(n(119),n(1),n(3)),f=n(360),d=n(6),h=n(38),m=n(49),v=n(30),y=n(14),g=c.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.collapsedHeight,s=void 0===a?"0px":a,d=e.component,g=void 0===d?"div":d,b=e.disableStrictModeCompat,x=void 0!==b&&b,_=e.in,w=e.onEnter,E=e.onEntered,D=e.onEntering,C=e.onExit,O=e.onExited,S=e.onExiting,k=e.style,A=e.timeout,T=void 0===A?h.b.standard:A,P=e.TransitionComponent,M=void 0===P?f.a:P,j=Object(l.a)(e,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),I=Object(v.a)(),F=c.useRef(),R=c.useRef(null),z=c.useRef(),L="number"===typeof s?"".concat(s,"px"):s;c.useEffect((function(){return function(){clearTimeout(F.current)}}),[]);var B=I.unstable_strictMode&&!x,N=c.useRef(null),V=Object(y.a)(t,B?N:void 0),U=function(e){return function(t,n){if(e){var r=B?[N.current,t]:[t,n],i=Object(u.a)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},H=U((function(e,t){e.style.height=L,w&&w(e,t)})),W=U((function(e,t){var n=R.current?R.current.clientHeight:0,r=Object(m.a)({style:k,timeout:T},{mode:"enter"}).duration;if("auto"===T){var i=I.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),z.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),D&&D(e,t)})),G=U((function(e,t){e.style.height="auto",E&&E(e,t)})),q=U((function(e){var t=R.current?R.current.clientHeight:0;e.style.height="".concat(t,"px"),C&&C(e)})),Y=U(O),Z=U((function(e){var t=R.current?R.current.clientHeight:0,n=Object(m.a)({style:k,timeout:T},{mode:"exit"}).duration;if("auto"===T){var r=I.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),z.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=L,S&&S(e)}));return c.createElement(M,Object(r.a)({in:_,onEnter:H,onEntered:G,onEntering:W,onExit:q,onExited:Y,onExiting:Z,addEndListener:function(e,t){var n=B?e:t;"auto"===T&&(F.current=setTimeout(n,z.current||0))},nodeRef:B?N:void 0,timeout:"auto"===T?null:T},j),(function(e,t){return c.createElement(g,Object(r.a)({className:Object(p.a)(i.container,o,{entered:i.entered,exited:!_&&"0px"===L&&i.hidden}[e]),style:Object(r.a)({minHeight:L},k),ref:V},t),c.createElement("div",{className:i.wrapper,ref:R},c.createElement("div",{className:i.wrapperInner},n)))}))}));g.muiSupportAuto=!0;var b=Object(d.a)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(g),x=n(163),_=n(158),w=n(47),E=c.forwardRef((function(e,t){var n,f=e.children,d=e.classes,h=e.className,m=e.defaultExpanded,v=void 0!==m&&m,y=e.disabled,g=void 0!==y&&y,E=e.expanded,D=e.onChange,C=e.square,O=void 0!==C&&C,S=e.TransitionComponent,k=void 0===S?b:S,A=e.TransitionProps,T=Object(l.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),P=Object(w.a)({controlled:E,default:v,name:"Accordion",state:"expanded"}),M=Object(u.a)(P,2),j=M[0],I=M[1],F=c.useCallback((function(e){I(!j),D&&D(e,!j)}),[j,D,I]),R=c.Children.toArray(f),z=(n=R,Object(i.a)(n)||Object(o.a)(n)||Object(a.a)(n)||Object(s.a)()),L=z[0],B=z.slice(1),N=c.useMemo((function(){return{expanded:j,disabled:g,toggle:F}}),[j,g,F]);return c.createElement(x.a,Object(r.a)({className:Object(p.a)(d.root,h,j&&d.expanded,g&&d.disabled,!O&&d.rounded),ref:t,square:O},T),c.createElement(_.a.Provider,{value:N},L),c.createElement(k,Object(r.a)({in:j,timeout:"auto"},A),c.createElement("div",{"aria-labelledby":L.props.id,id:L.props["aria-controls"],role:"region"},B)))}));t.a=Object(d.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(E)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(6),u=n(22),l=Object(u.a)(o.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var c=o.forwardRef((function(e,t){var n=e.alt,s=e.children,u=e.classes,c=e.className,p=e.component,f=void 0===p?"div":p,d=e.imgProps,h=e.sizes,m=e.src,v=e.srcSet,y=e.variant,g=void 0===y?"circle":y,b=Object(i.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),x=null,_=function(e){var t=e.src,n=e.srcSet,r=o.useState(!1),i=r[0],a=r[1];return o.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),i}({src:m,srcSet:v}),w=m||v,E=w&&"error"!==_;return x=E?o.createElement("img",Object(r.a)({alt:n,src:m,srcSet:v,sizes:h,className:u.img},d)):null!=s?s:w&&n?n[0]:o.createElement(l,{className:u.fallback}),o.createElement(f,Object(r.a)({className:Object(a.a)(u.root,u.system,u[g],c,!E&&u.colorDefault),ref:t},b),x)}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(631),u=n(621),l=n(6),c=n(21),p=n(66),f=n(360),d=n(14),h=n(30),m=n(38),v=n(49);function y(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var g={enter:m.b.enteringScreen,exit:m.b.leavingScreen},b=o.forwardRef((function(e,t){var n=e.children,a=e.direction,s=void 0===a?"down":a,u=e.in,l=e.onEnter,m=e.onEntered,b=e.onEntering,x=e.onExit,_=e.onExited,w=e.onExiting,E=e.style,D=e.timeout,C=void 0===D?g:D,O=e.TransitionComponent,S=void 0===O?f.a:O,k=Object(i.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=Object(h.a)(),T=o.useRef(null),P=o.useCallback((function(e){T.current=c.findDOMNode(e)}),[]),M=Object(d.a)(n.ref,P),j=Object(d.a)(M,t),I=function(e){return function(t){e&&(void 0===t?e(T.current):e(T.current,t))}},F=I((function(e,t){y(s,e),Object(v.b)(e),l&&l(e,t)})),R=I((function(e,t){var n=Object(v.a)({timeout:C,style:E},{mode:"enter"});e.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)({},n,{easing:A.transitions.easing.easeOut})),e.style.transition=A.transitions.create("transform",Object(r.a)({},n,{easing:A.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",b&&b(e,t)})),z=I(m),L=I(w),B=I((function(e){var t=Object(v.a)({timeout:C,style:E},{mode:"exit"});e.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)({},t,{easing:A.transitions.easing.sharp})),e.style.transition=A.transitions.create("transform",Object(r.a)({},t,{easing:A.transitions.easing.sharp})),y(s,e),x&&x(e)})),N=I((function(e){e.style.webkitTransition="",e.style.transition="",_&&_(e)})),V=o.useCallback((function(){T.current&&y(s,T.current)}),[s]);return o.useEffect((function(){if(!u&&"down"!==s&&"right"!==s){var e=Object(p.a)((function(){T.current&&y(s,T.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[s,u]),o.useEffect((function(){u||V()}),[u,V]),o.createElement(S,Object(r.a)({nodeRef:T,onEnter:F,onEntered:z,onEntering:R,onExit:B,onExited:N,onExiting:L,appear:!0,in:u,timeout:C},k),(function(e,t){return o.cloneElement(n,Object(r.a)({ref:j,style:Object(r.a)({visibility:"exited"!==e||u?void 0:"hidden"},E,n.props.style)},t))}))})),x=n(163),_=n(9),w={left:"right",right:"left",top:"down",bottom:"up"};var E={enter:m.b.enteringScreen,exit:m.b.leavingScreen},D=o.forwardRef((function(e,t){var n=e.anchor,l=void 0===n?"left":n,c=e.BackdropProps,p=e.children,f=e.classes,d=e.className,m=e.elevation,v=void 0===m?16:m,y=e.ModalProps,g=(y=void 0===y?{}:y).BackdropProps,D=Object(i.a)(y,["BackdropProps"]),C=e.onClose,O=e.open,S=void 0!==O&&O,k=e.PaperProps,A=void 0===k?{}:k,T=e.SlideProps,P=e.TransitionComponent,M=void 0===P?b:P,j=e.transitionDuration,I=void 0===j?E:j,F=e.variant,R=void 0===F?"temporary":F,z=Object(i.a)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),L=Object(h.a)(),B=o.useRef(!1);o.useEffect((function(){B.current=!0}),[]);var N=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?w[t]:t}(L,l),V=o.createElement(x.a,Object(r.a)({elevation:"temporary"===R?v:0,square:!0},A,{className:Object(a.a)(f.paper,f["paperAnchor".concat(Object(_.a)(N))],A.className,"temporary"!==R&&f["paperAnchorDocked".concat(Object(_.a)(N))])}),p);if("permanent"===R)return o.createElement("div",Object(r.a)({className:Object(a.a)(f.root,f.docked,d),ref:t},z),V);var U=o.createElement(M,Object(r.a)({in:S,direction:w[N],timeout:I,appear:B.current},T),V);return"persistent"===R?o.createElement("div",Object(r.a)({className:Object(a.a)(f.root,f.docked,d),ref:t},z),U):o.createElement(s.a,Object(r.a)({BackdropProps:Object(r.a)({},c,g,{transitionDuration:I}),BackdropComponent:u.a,className:Object(a.a)(f.root,f.modal,d),open:S,onClose:C,ref:t},z,D),U)}));t.a=Object(l.a)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(D)},function(e,t,n){"use strict";var r=n(4),i=n(15),o=n(2),a=n(0),s=(n(1),n(3)),u=n(6),l=n(38),c=n(357),p=n(24),f=n(9),d=n(52),h=n(356),m=n(163),v=n(10),y=a.forwardRef((function(e,t){var n=e.action,i=e.classes,u=e.className,l=e.message,c=e.role,p=void 0===c?"alert":c,f=Object(r.a)(e,["action","classes","className","message","role"]);return a.createElement(m.a,Object(o.a)({role:p,square:!0,elevation:6,className:Object(s.a)(i.root,u),ref:t},f),a.createElement("div",{className:i.message},l),n?a.createElement("div",{className:i.action},n):null)})),g=Object(u.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(v.c)(e.palette.background.default,t);return{root:Object(o.a)({},e.typography.body2,Object(i.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(y),b=a.forwardRef((function(e,t){var n=e.action,i=e.anchorOrigin,u=(i=void 0===i?{vertical:"bottom",horizontal:"center"}:i).vertical,m=i.horizontal,v=e.autoHideDuration,y=void 0===v?null:v,b=e.children,x=e.classes,_=e.className,w=e.ClickAwayListenerProps,E=e.ContentProps,D=e.disableWindowBlurListener,C=void 0!==D&&D,O=e.message,S=e.onClose,k=e.onEnter,A=e.onEntered,T=e.onEntering,P=e.onExit,M=e.onExited,j=e.onExiting,I=e.onMouseEnter,F=e.onMouseLeave,R=e.open,z=e.resumeHideDuration,L=e.TransitionComponent,B=void 0===L?h.a:L,N=e.transitionDuration,V=void 0===N?{enter:l.b.enteringScreen,exit:l.b.leavingScreen}:N,U=e.TransitionProps,H=Object(r.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),W=a.useRef(),G=a.useState(!0),q=G[0],Y=G[1],Z=Object(p.a)((function(){S&&S.apply(void 0,arguments)})),$=Object(p.a)((function(e){S&&null!=e&&(clearTimeout(W.current),W.current=setTimeout((function(){Z(null,"timeout")}),e))}));a.useEffect((function(){return R&&$(y),function(){clearTimeout(W.current)}}),[R,y,$]);var K=function(){clearTimeout(W.current)},X=a.useCallback((function(){null!=y&&$(null!=z?z:.5*y)}),[y,z,$]);return a.useEffect((function(){if(!C&&R)return window.addEventListener("focus",X),window.addEventListener("blur",K),function(){window.removeEventListener("focus",X),window.removeEventListener("blur",K)}}),[C,X,R]),!R&&q?null:a.createElement(c.a,Object(o.a)({onClickAway:function(e){S&&S(e,"clickaway")}},w),a.createElement("div",Object(o.a)({className:Object(s.a)(x.root,x["anchorOrigin".concat(Object(f.a)(u)).concat(Object(f.a)(m))],_),onMouseEnter:function(e){I&&I(e),K()},onMouseLeave:function(e){F&&F(e),X()},ref:t},H),a.createElement(B,Object(o.a)({appear:!0,in:R,onEnter:Object(d.a)((function(){Y(!1)}),k),onEntered:A,onEntering:T,onExit:P,onExited:Object(d.a)((function(){Y(!0)}),M),onExiting:j,timeout:V,direction:"top"===u?"down":"up"},U),b||a.createElement(g,Object(o.a)({message:O,action:n},E)))))}));t.a=Object(u.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},a={justifyContent:"flex-start"},s={top:24},u={bottom:24},l={right:24},c={left:24},p={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(o.a)({},t,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({},s,p))),anchorOriginBottomCenter:Object(o.a)({},n,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({},u,p))),anchorOriginTopRight:Object(o.a)({},t,r,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({left:"auto"},s,l))),anchorOriginBottomRight:Object(o.a)({},n,r,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({left:"auto"},u,l))),anchorOriginTopLeft:Object(o.a)({},t,a,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({right:"auto"},s,c))),anchorOriginBottomLeft:Object(o.a)({},n,a,Object(i.a)({},e.breakpoints.up("sm"),Object(o.a)({right:"auto"},u,c)))}}),{flip:!1,name:"MuiSnackbar"})(b)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(0),a=(n(1),n(3)),s=n(210),u=n(15),l=n(6),c=n(30),p=n(9),f=o.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,l=e.label,f=e.labelWidth,d=e.notched,h=e.style,m=Object(i.a)(e,["children","classes","className","label","labelWidth","notched","style"]),v="rtl"===Object(c.a)().direction?"right":"left";if(void 0!==l)return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,s),ref:t,style:h},m),o.createElement("legend",{className:Object(a.a)(n.legendLabelled,d&&n.legendNotched)},l?o.createElement("span",null,l):o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var y=f>0?.75*f+8:.01;return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(u.a)({},"padding".concat(Object(p.a)(v)),8),h),className:Object(a.a)(n.root,s),ref:t},m),o.createElement("legend",{className:n.legend,style:{width:d?y:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),d=Object(l.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(f),h=o.forwardRef((function(e,t){var n=e.classes,u=e.fullWidth,l=void 0!==u&&u,c=e.inputComponent,p=void 0===c?"input":c,f=e.label,h=e.labelWidth,m=void 0===h?0:h,v=e.multiline,y=void 0!==v&&v,g=e.notched,b=e.type,x=void 0===b?"text":b,_=Object(i.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return o.createElement(s.a,Object(r.a)({renderSuffix:function(e){return o.createElement(d,{className:n.notchedOutline,label:f,labelWidth:m,notched:"undefined"!==typeof g?g:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:p,multiline:y,ref:t,type:x},_))}));h.muiName="Input";t.a=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)},function(e,t,n){"use strict";var r=n(57),i=n(32),o=n(4),a=n(2),s=n(0),u=(n(1),n(3)),l=n(6),c=n(30),p=n(10),f=n(64),d=n(27),h=n(24),m=n(14),v=n(9),y=n(47);var g=Object(l.a)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:Object(a.a)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var t=e.children,n=e.classes,r=e.className,i=e.open,o=e.value,a=e.valueLabelDisplay;return"off"===a?t:s.cloneElement(t,{className:Object(u.a)(t.props.className,(i||"on"===a)&&n.open,n.thumb)},s.createElement("span",{className:Object(u.a)(n.offset,r)},s.createElement("span",{className:n.circle},s.createElement("span",{className:n.label},o))))}));function b(e,t){return e-t}function x(e,t,n){return Math.min(Math.max(t,e),n)}function _(e,t){return e.reduce((function(e,n,r){var i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e}),null).index}function w(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function E(e,t,n){return 100*(e-t)/(n-t)}function D(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function C(e){var t=e.values,n=e.source,r=e.newValue,i=e.index;if(t[i]===r)return n;var o=t.slice();return o[i]=r,o}function O(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var S={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},k=function(e){return e},A=s.forwardRef((function(e,t){var n=e["aria-label"],l=e["aria-labelledby"],p=e["aria-valuetext"],A=e.classes,T=e.className,P=e.color,M=void 0===P?"primary":P,j=e.component,I=void 0===j?"span":j,F=e.defaultValue,R=e.disabled,z=void 0!==R&&R,L=e.getAriaLabel,B=e.getAriaValueText,N=e.marks,V=void 0!==N&&N,U=e.max,H=void 0===U?100:U,W=e.min,G=void 0===W?0:W,q=e.name,Y=e.onChange,Z=e.onChangeCommitted,$=e.onMouseDown,K=e.orientation,X=void 0===K?"horizontal":K,J=e.scale,Q=void 0===J?k:J,ee=e.step,te=void 0===ee?1:ee,ne=e.ThumbComponent,re=void 0===ne?"span":ne,ie=e.track,oe=void 0===ie?"normal":ie,ae=e.value,se=e.ValueLabelComponent,ue=void 0===se?g:se,le=e.valueLabelDisplay,ce=void 0===le?"off":le,pe=e.valueLabelFormat,fe=void 0===pe?k:pe,de=Object(o.a)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),he=Object(c.a)(),me=s.useRef(),ve=s.useState(-1),ye=ve[0],ge=ve[1],be=s.useState(-1),xe=be[0],_e=be[1],we=Object(y.a)({controlled:ae,default:F,name:"Slider"}),Ee=Object(i.a)(we,2),De=Ee[0],Ce=Ee[1],Oe=Array.isArray(De),Se=Oe?De.slice().sort(b):[De];Se=Se.map((function(e){return x(e,G,H)}));var ke=!0===V&&null!==te?Object(r.a)(Array(Math.floor((H-G)/te)+1)).map((function(e,t){return{value:G+te*t}})):V||[],Ae=Object(f.a)(),Te=Ae.isFocusVisible,Pe=Ae.onBlurVisible,Me=Ae.ref,je=s.useState(-1),Ie=je[0],Fe=je[1],Re=s.useRef(),ze=Object(m.a)(Me,Re),Le=Object(m.a)(t,ze),Be=Object(h.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));Te(e)&&Fe(t),_e(t)})),Ne=Object(h.a)((function(){-1!==Ie&&(Fe(-1),Pe()),_e(-1)})),Ve=Object(h.a)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));_e(t)})),Ue=Object(h.a)((function(){_e(-1)})),He="rtl"===he.direction,We=Object(h.a)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=Se[n],i=(H-G)/10,o=ke.map((function(e){return e.value})),a=o.indexOf(r),s=He?"ArrowLeft":"ArrowRight",u=He?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=G;break;case"End":t=H;break;case"PageUp":te&&(t=r+i);break;case"PageDown":te&&(t=r-i);break;case s:case"ArrowUp":t=te?r+te:o[a+1]||o[o.length-1];break;case u:case"ArrowDown":t=te?r-te:o[a-1]||o[0];break;default:return}if(e.preventDefault(),te&&(t=D(t,te,G)),t=x(t,G,H),Oe){var l=t;t=C({values:Se,source:De,newValue:t,index:n}).sort(b),O({sliderRef:Re,activeIndex:t.indexOf(l)})}Ce(t),Fe(n),Y&&Y(e,t),Z&&Z(e,t)})),Ge=s.useRef(),qe=X;He&&"vertical"!==X&&(qe+="-reverse");var Ye=function(e){var t,n,r=e.finger,i=e.move,o=void 0!==i&&i,a=e.values,s=e.source,u=Re.current.getBoundingClientRect(),l=u.width,c=u.height,p=u.bottom,f=u.left;if(t=0===qe.indexOf("vertical")?(p-r.y)/c:(r.x-f)/l,-1!==qe.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,G,H),te)n=D(n,te,G);else{var d=ke.map((function(e){return e.value}));n=d[_(d,n)]}n=x(n,G,H);var h=0;if(Oe){var m=n;h=(n=C({values:a,source:s,newValue:n,index:h=o?Ge.current:_(a,n)}).sort(b)).indexOf(m),Ge.current=h}return{newValue:n,activeIndex:h}},Ze=Object(h.a)((function(e){var t=w(e,me);if(t){var n=Ye({finger:t,move:!0,values:Se,source:De}),r=n.newValue,i=n.activeIndex;O({sliderRef:Re,activeIndex:i,setActive:ge}),Ce(r),Y&&Y(e,r)}})),$e=Object(h.a)((function(e){var t=w(e,me);if(t){var n=Ye({finger:t,values:Se,source:De}).newValue;ge(-1),"touchend"===e.type&&_e(-1),Z&&Z(e,n),me.current=void 0;var r=Object(d.a)(Re.current);r.removeEventListener("mousemove",Ze),r.removeEventListener("mouseup",$e),r.removeEventListener("touchmove",Ze),r.removeEventListener("touchend",$e)}})),Ke=Object(h.a)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(me.current=t.identifier);var n=w(e,me),r=Ye({finger:n,values:Se,source:De}),i=r.newValue,o=r.activeIndex;O({sliderRef:Re,activeIndex:o,setActive:ge}),Ce(i),Y&&Y(e,i);var a=Object(d.a)(Re.current);a.addEventListener("touchmove",Ze),a.addEventListener("touchend",$e)}));s.useEffect((function(){var e=Re.current;e.addEventListener("touchstart",Ke);var t=Object(d.a)(e);return function(){e.removeEventListener("touchstart",Ke),t.removeEventListener("mousemove",Ze),t.removeEventListener("mouseup",$e),t.removeEventListener("touchmove",Ze),t.removeEventListener("touchend",$e)}}),[$e,Ze,Ke]);var Xe=Object(h.a)((function(e){$&&$(e),e.preventDefault();var t=w(e,me),n=Ye({finger:t,values:Se,source:De}),r=n.newValue,i=n.activeIndex;O({sliderRef:Re,activeIndex:i,setActive:ge}),Ce(r),Y&&Y(e,r);var o=Object(d.a)(Re.current);o.addEventListener("mousemove",Ze),o.addEventListener("mouseup",$e)})),Je=E(Oe?Se[0]:G,G,H),Qe=E(Se[Se.length-1],G,H)-Je,et=Object(a.a)({},S[qe].offset(Je),S[qe].leap(Qe));return s.createElement(I,Object(a.a)({ref:Le,className:Object(u.a)(A.root,A["color".concat(Object(v.a)(M))],T,z&&A.disabled,ke.length>0&&ke.some((function(e){return e.label}))&&A.marked,!1===oe&&A.trackFalse,"vertical"===X&&A.vertical,"inverted"===oe&&A.trackInverted),onMouseDown:Xe},de),s.createElement("span",{className:A.rail}),s.createElement("span",{className:A.track,style:et}),s.createElement("input",{value:Se.join(","),name:q,type:"hidden"}),ke.map((function(e,t){var n,r=E(e.value,G,H),i=S[qe].offset(r);return n=!1===oe?-1!==Se.indexOf(e.value):"normal"===oe&&(Oe?e.value>=Se[0]&&e.value<=Se[Se.length-1]:e.value<=Se[0])||"inverted"===oe&&(Oe?e.value<=Se[0]||e.value>=Se[Se.length-1]:e.value>=Se[0]),s.createElement(s.Fragment,{key:e.value},s.createElement("span",{style:i,"data-index":t,className:Object(u.a)(A.mark,n&&A.markActive)}),null!=e.label?s.createElement("span",{"aria-hidden":!0,"data-index":t,style:i,className:Object(u.a)(A.markLabel,n&&A.markLabelActive)},e.label):null)})),Se.map((function(e,t){var r=E(e,G,H),i=S[qe].offset(r);return s.createElement(ue,{key:t,valueLabelFormat:fe,valueLabelDisplay:ce,className:A.valueLabel,value:"function"===typeof fe?fe(Q(e),t):fe,index:t,open:xe===t||ye===t||"on"===ce,disabled:z},s.createElement(re,{className:Object(u.a)(A.thumb,A["thumbColor".concat(Object(v.a)(M))],ye===t&&A.active,z&&A.disabled,Ie===t&&A.focusVisible),tabIndex:z?null:0,role:"slider",style:i,"data-index":t,"aria-label":L?L(t):n,"aria-labelledby":l,"aria-orientation":X,"aria-valuemax":Q(H),"aria-valuemin":Q(G),"aria-valuenow":Q(e),"aria-valuetext":B?B(Q(e),t):p,onKeyDown:We,onFocus:Be,onBlur:Ne,onMouseOver:Ve,onMouseLeave:Ue}))})))}));t.a=Object(l.a)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?Object(p.i)(e.palette.primary.main,.62):Object(p.a)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(p.d)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(p.d)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat(Object(p.d)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat(Object(p.d)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:Object(a.a)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(A)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(32),i=n(151),o=n(81);var a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=Object(r.a)(t,2),i=n[0],o=n[1],l=a[i],c=s[o]||"";return Array.isArray(c)?c.map((function(e){return l+e})):[l+c]})),c=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function f(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function d(e){var t=p(e.theme);return Object.keys(e).map((function(n){if(-1===c.indexOf(n))return null;var r=f(l(n),t),o=e[n];return Object(i.a)(e,o,r)})).reduce(o.a,{})}d.propTypes={},d.filterProps=c;t.b=d}]]); //# sourceMappingURL=2.20723cf4.chunk.js.map